From 2fd688b684ce85d91ef49c370e3d85754e4c6830 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 29 Apr 2026 14:07:15 +0000 Subject: [PATCH 01/13] refactor(ui): migrate Mantine UI v8 to @ossrandom/design-system v0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the Mantine dependency with the RandomCodeSpace design system per project board direction. Per-component scope is small — the UI's only direct Mantine surface is main.tsx (provider) plus two MCP components (Modal/Tabs). Changes: - main.tsx — MantineProvider to ThemeProvider; ToastRegion mounted at root - ToolCallModal.tsx — Mantine Modal to DS Modal. DS Modal API is stricter (no padding=0, no classNames, no styles, no custom width) so the hand-rolled header is collapsed into title/description props and the modal sizes to lg instead of min(880px, 100vw-2rem). - RPCPopup.tsx — Mantine Modal+Tabs to DS Modal+Tabs. Tabs API is items rather than children, so the methods array maps to items={[{key,label}]}. - @mantine/core and @mantine/hooks removed from package.json - @ossrandom/design-system@0.3.0 added (public npm; no GHP/PAT setup) - internal/ui/dist regenerated. Net bundle is -598 / +123 lines because Mantine CSS is gone; DS ships variable woff2 fonts (Bricolage Grotesque, Plus Jakarta Sans, Geist Mono) as separate ~30-130KB assets that load on demand. - CLAUDE.md project rules updated: NO Tailwind CSS, NO Mantine — use @ossrandom/design-system exclusively for UI components and tokens. Raw CSS only for layout escape hatches. Out of scope (deliberate, follow-up PRs): - Strip ui/src/styles/tokens.css and slim global.css to layout-only. - Migrate ServiceMap.tsx / EChart.tsx from echarts to DS charts subpath. - Replace inline style={{display:flex…}} with DS Space/Grid/Card. Drive-by: pin react-window to ^1.8.10 (was ^2.2.7). The v2 API is incompatible with current LogsPage.tsx / TracesPage.tsx imports (VariableSizeList, FixedSizeList, ListChildComponentProps no longer exported), and the build was broken on main even before this PR. The v2 migration is its own concern; pinning back to v1 here keeps this PR strictly about the DS swap and gets the build green. Verification: - npm run build: clean - npm run test: 32/32 pass - Live: HTTP_PORT=37778 ./otelcontext, GET / returns the DS-styled bundle (fonts load on demand, /assets/index-*.js + /assets/index-*.css served). Co-Authored-By: Claude Opus 4.7 (1M context) --- CLAUDE.md | 4 +- ...BricolageGrotesque-Variable-C5Lc8Qmc.woff2 | Bin 0 -> 131548 bytes .../assets/GeistMono-Variable-BNLlm6Cd.woff2 | Bin 0 -> 71004 bytes .../PlusJakartaSans-Variable-eXO_dkmS.woff2 | Bin 0 -> 27348 bytes internal/ui/dist/assets/index-Bl3ZlcbC.js | 247 ------------- internal/ui/dist/assets/index-C9DjciJ7.js | 48 +++ internal/ui/dist/assets/index-DFl6oDLP.css | 1 - internal/ui/dist/assets/index-Dl9cVCAV.css | 1 + internal/ui/dist/index.html | 4 +- ui/package-lock.json | 338 ++++-------------- ui/package.json | 9 +- ui/src/components/mcp/RPCPopup.tsx | 62 ++-- ui/src/components/mcp/ToolCallModal.tsx | 39 +- ui/src/main.tsx | 17 +- 14 files changed, 172 insertions(+), 598 deletions(-) create mode 100644 internal/ui/dist/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2 create mode 100644 internal/ui/dist/assets/GeistMono-Variable-BNLlm6Cd.woff2 create mode 100644 internal/ui/dist/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2 delete mode 100644 internal/ui/dist/assets/index-Bl3ZlcbC.js create mode 100644 internal/ui/dist/assets/index-C9DjciJ7.js delete mode 100644 internal/ui/dist/assets/index-DFl6oDLP.css create mode 100644 internal/ui/dist/assets/index-Dl9cVCAV.css diff --git a/CLAUDE.md b/CLAUDE.md index 04658c9..258061a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,13 +4,13 @@ OtelContext is a self-hosted OTLP observability platform. Single Go binary with embedded React frontend. - **Backend:** Go 1.25, native `net/http` (no frameworks), GORM ORM, gRPC + HTTP for OTLP ingestion -- **Frontend:** React 19 + TypeScript + Mantine UI v8 + ECharts + ReactFlow +- **Frontend:** React 19 + TypeScript + `@ossrandom/design-system` + ECharts + ReactFlow - **Ports:** gRPC `:4317` (OTLP), HTTP `:8080` (API + HTTP OTLP + WebSocket + UI) ## Strict Rules - NO Express.js/Gin/Echo — use native Go `net/http` -- NO Tailwind CSS — use Mantine UI v8 exclusively +- NO Tailwind CSS, NO Mantine — use `@ossrandom/design-system` exclusively for UI components and tokens. Raw CSS only for layout escape hatches (root height, scrollbar overrides, virtualised list containers); no auxiliary visual styling. - Single-service architecture (no microservices split) - All internal DBs must be **embedded** (no external processes) - Relational DB (SQLite/MySQL/PostgreSQL/MSSQL) is the **single source of truth** diff --git a/internal/ui/dist/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2 b/internal/ui/dist/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..42c558b61ba40e340cfccf50786dcda816f3d30b GIT binary patch literal 131548 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�}8`x;BvtDX&FP5@dzdI^3Yr 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ð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 Z9j0ttYr0kbmz00000000000000000000 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[@+FJuP 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⪙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 i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function e(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=e(n);fetch(n.href,i)}})();function HB(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var uS={exports:{}},Ah={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and 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;function kF(){if(mR)return Ah;mR=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var l in n)l!=="key"&&(i[l]=n[l])}else i=n;return n=i.ref,{$$typeof:r,type:a,key:o,ref:n!==void 0?n:null,props:i}}return Ah.Fragment=t,Ah.jsx=e,Ah.jsxs=e,Ah}var _R;function BF(){return _R||(_R=1,uS.exports=kF()),uS.exports}var V=BF(),cS={exports:{}},te={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var SR;function VF(){if(SR)return te;SR=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),d=Symbol.iterator;function p(G){return G===null||typeof G!="object"?null:(G=d&&G[d]||G["@@iterator"],typeof G=="function"?G:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function S(G,X,tt){this.props=G,this.context=X,this.refs=_,this.updater=tt||g}S.prototype.isReactComponent={},S.prototype.setState=function(G,X){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,X,"setState")},S.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function x(){}x.prototype=S.prototype;function w(G,X,tt){this.props=G,this.context=X,this.refs=_,this.updater=tt||g}var C=w.prototype=new x;C.constructor=w,m(C,S.prototype),C.isPureReactComponent=!0;var A=Array.isArray;function M(){}var L={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(G,X,tt){var rt=tt.ref;return{$$typeof:r,type:G,key:X,ref:rt!==void 0?rt:null,props:tt}}function I(G,X){return R(G.type,X,G.props)}function N(G){return typeof G=="object"&&G!==null&&G.$$typeof===r}function B(G){var X={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(tt){return X[tt]})}var P=/\/+/g;function F(G,X){return typeof G=="object"&&G!==null&&G.key!=null?B(""+G.key):X.toString(36)}function H(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(M,M):(G.status="pending",G.then(function(X){G.status==="pending"&&(G.status="fulfilled",G.value=X)},function(X){G.status==="pending"&&(G.status="rejected",G.reason=X)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function k(G,X,tt,rt,vt){var Tt=typeof G;(Tt==="undefined"||Tt==="boolean")&&(G=null);var Nt=!1;if(G===null)Nt=!0;else switch(Tt){case"bigint":case"string":case"number":Nt=!0;break;case"object":switch(G.$$typeof){case r:case t:Nt=!0;break;case c:return Nt=G._init,k(Nt(G._payload),X,tt,rt,vt)}}if(Nt)return vt=vt(G),Nt=rt===""?"."+F(G,0):rt,A(vt)?(tt="",Nt!=null&&(tt=Nt.replace(P,"$&/")+"/"),k(vt,X,tt,"",function(Pt){return Pt})):vt!=null&&(N(vt)&&(vt=I(vt,tt+(vt.key==null||G&&G.key===vt.key?"":(""+vt.key).replace(P,"$&/")+"/")+Nt)),X.push(vt)),1;Nt=0;var xt=rt===""?".":rt+":";if(A(G))for(var gt=0;gt>>1,q=k[$];if(0>>1;$n(tt,Y))rtn(vt,tt)?(k[$]=vt,k[rt]=Y,$=rt):(k[$]=tt,k[X]=Y,$=X);else if(rtn(vt,Y))k[$]=vt,k[rt]=Y,$=rt;else break t}}return j}function n(k,j){var Y=k.sortIndex-j.sortIndex;return Y!==0?Y:k.id-j.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;r.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();r.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,h=null,d=3,p=!1,g=!1,m=!1,_=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function C(k){for(var j=e(u);j!==null;){if(j.callback===null)a(u);else if(j.startTime<=k)a(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=e(u)}}function A(k){if(m=!1,C(k),!g)if(e(s)!==null)g=!0,M||(M=!0,B());else{var j=e(u);j!==null&&H(A,j.startTime-k)}}var M=!1,L=-1,E=5,R=-1;function I(){return _?!0:!(r.unstable_now()-Rk&&I());){var $=h.callback;if(typeof $=="function"){h.callback=null,d=h.priorityLevel;var q=$(h.expirationTime<=k);if(k=r.unstable_now(),typeof q=="function"){h.callback=q,C(k),j=!0;break e}h===e(s)&&a(s),C(k)}else a(s);h=e(s)}if(h!==null)j=!0;else{var G=e(u);G!==null&&H(A,G.startTime-k),j=!1}}break t}finally{h=null,d=Y,p=!1}j=void 0}}finally{j?B():M=!1}}}var B;if(typeof w=="function")B=function(){w(N)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,F=P.port2;P.port1.onmessage=N,B=function(){F.postMessage(null)}}else B=function(){S(N,0)};function H(k,j){L=S(function(){k(r.unstable_now())},j)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(k){k.callback=null},r.unstable_forceFrameRate=function(k){0>k||125$?(k.sortIndex=Y,t(u,k),e(s)===null&&k===e(u)&&(m?(x(L),L=-1):m=!0,H(A,Y-$))):(k.sortIndex=q,t(s,k),g||p||(g=!0,M||(M=!0,B()))),k},r.unstable_shouldYield=I,r.unstable_wrapCallback=function(k){var j=d;return function(){var Y=d;d=j;try{return k.apply(this,arguments)}finally{d=Y}}}})(vS)),vS}var wR;function HF(){return wR||(wR=1,hS.exports=GF()),hS.exports}var dS={exports:{}},Hr={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var TR;function UF(){if(TR)return Hr;TR=1;var r=DC();function t(s){var u="https://react.dev/errors/"+s;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),dS.exports=UF(),dS.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var AR;function FF(){if(AR)return Mh;AR=1;var r=HF(),t=DC(),e=UB();function a(f){var v="https://react.dev/errors/"+f;if(1q||(f.current=$[q],$[q]=null,q--)}function tt(f,v){q++,$[q]=f.current,f.current=v}var rt=G(null),vt=G(null),Tt=G(null),Nt=G(null);function xt(f,v){switch(tt(Tt,v),tt(vt,f),tt(rt,null),v.nodeType){case 9:case 11:f=(f=v.documentElement)&&(f=f.namespaceURI)?HE(f):0;break;default:if(f=v.tagName,v=v.namespaceURI)v=HE(v),f=UE(v,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}X(rt),tt(rt,f)}function gt(){X(rt),X(vt),X(Tt)}function Pt(f){f.memoizedState!==null&&tt(Nt,f);var v=rt.current,y=UE(v,f.type);v!==y&&(tt(vt,f),tt(rt,y))}function _t(f){vt.current===f&&(X(rt),X(vt)),Nt.current===f&&(X(Nt),xh._currentValue=Y)}var Ot,ve;function jt(f){if(Ot===void 0)try{throw Error()}catch(y){var v=y.stack.trim().match(/\n( *(at )?)/);Ot=v&&v[1]||"",ve=-1)":-1T||Z[b]!==nt[T]){var ct=` -`+Z[b].replace(" at new "," at ");return f.displayName&&ct.includes("")&&(ct=ct.replace("",f.displayName)),ct}while(1<=b&&0<=T);break}}}finally{ne=!1,Error.prepareStackTrace=y}return(y=f?f.displayName||f.name:"")?jt(y):""}function Ue(f,v){switch(f.tag){case 26:case 27:case 5:return jt(f.type);case 16:return jt("Lazy");case 13:return f.child!==v&&v!==null?jt("Suspense Fallback"):jt("Suspense");case 19:return jt("SuspenseList");case 0:case 15:return se(f.type,!1);case 11:return se(f.type.render,!1);case 1:return se(f.type,!0);case 31:return jt("Activity");default:return""}}function xr(f){try{var v="",y=null;do v+=Ue(f,y),y=f,f=f.return;while(f);return v}catch(b){return` -Error generating stack: `+b.message+` -`+b.stack}}var lr=Object.prototype.hasOwnProperty,ma=r.unstable_scheduleCallback,yn=r.unstable_cancelCallback,Of=r.unstable_shouldYield,g9=r.unstable_requestPaint,_a=r.unstable_now,y9=r.unstable_getCurrentPriorityLevel,_M=r.unstable_ImmediatePriority,SM=r.unstable_UserBlockingPriority,Pd=r.unstable_NormalPriority,m9=r.unstable_LowPriority,bM=r.unstable_IdlePriority,_9=r.log,S9=r.unstable_setDisableYieldValue,Nf=null,Sa=null;function go(f){if(typeof _9=="function"&&S9(f),Sa&&typeof Sa.setStrictMode=="function")try{Sa.setStrictMode(Nf,f)}catch{}}var ba=Math.clz32?Math.clz32:w9,b9=Math.log,x9=Math.LN2;function w9(f){return f>>>=0,f===0?32:31-(b9(f)/x9|0)|0}var kd=256,Bd=262144,Vd=4194304;function Rl(f){var v=f&42;if(v!==0)return v;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Gd(f,v,y){var b=f.pendingLanes;if(b===0)return 0;var T=0,D=f.suspendedLanes,z=f.pingedLanes;f=f.warmLanes;var U=b&134217727;return U!==0?(b=U&~D,b!==0?T=Rl(b):(z&=U,z!==0?T=Rl(z):y||(y=U&~f,y!==0&&(T=Rl(y))))):(U=b&~D,U!==0?T=Rl(U):z!==0?T=Rl(z):y||(y=b&~f,y!==0&&(T=Rl(y)))),T===0?0:v!==0&&v!==T&&(v&D)===0&&(D=T&-T,y=v&-v,D>=y||D===32&&(y&4194048)!==0)?v:T}function zf(f,v){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&v)===0}function T9(f,v){switch(f){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xM(){var f=Vd;return Vd<<=1,(Vd&62914560)===0&&(Vd=4194304),f}function K0(f){for(var v=[],y=0;31>y;y++)v.push(f);return v}function Pf(f,v){f.pendingLanes|=v,v!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function C9(f,v,y,b,T,D){var z=f.pendingLanes;f.pendingLanes=y,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=y,f.entangledLanes&=y,f.errorRecoveryDisabledLanes&=y,f.shellSuspendCounter=0;var U=f.entanglements,Z=f.expirationTimes,nt=f.hiddenUpdates;for(y=z&~y;0"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var R9=/[\n"\\]/g;function Ga(f){return f.replace(R9,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function a1(f,v,y,b,T,D,z,U){f.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?f.type=z:f.removeAttribute("type"),v!=null?z==="number"?(v===0&&f.value===""||f.value!=v)&&(f.value=""+Va(v)):f.value!==""+Va(v)&&(f.value=""+Va(v)):z!=="submit"&&z!=="reset"||f.removeAttribute("value"),v!=null?n1(f,z,Va(v)):y!=null?n1(f,z,Va(y)):b!=null&&f.removeAttribute("value"),T==null&&D!=null&&(f.defaultChecked=!!D),T!=null&&(f.checked=T&&typeof T!="function"&&typeof T!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?f.name=""+Va(U):f.removeAttribute("name")}function zM(f,v,y,b,T,D,z,U){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(f.type=D),v!=null||y!=null){if(!(D!=="submit"&&D!=="reset"||v!=null)){r1(f);return}y=y!=null?""+Va(y):"",v=v!=null?""+Va(v):y,U||v===f.value||(f.value=v),f.defaultValue=v}b=b??T,b=typeof b!="function"&&typeof b!="symbol"&&!!b,f.checked=U?f.checked:!!b,f.defaultChecked=!!b,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(f.name=z),r1(f)}function n1(f,v,y){v==="number"&&Fd(f.ownerDocument)===f||f.defaultValue===""+y||(f.defaultValue=""+y)}function bu(f,v,y,b){if(f=f.options,v){v={};for(var T=0;T"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u1=!1;if(Ti)try{var Gf={};Object.defineProperty(Gf,"passive",{get:function(){u1=!0}}),window.addEventListener("test",Gf,Gf),window.removeEventListener("test",Gf,Gf)}catch{u1=!1}var mo=null,c1=null,jd=null;function UM(){if(jd)return jd;var f,v=c1,y=v.length,b,T="value"in mo?mo.value:mo.textContent,D=T.length;for(f=0;f=Ff),$M=" ",ZM=!1;function qM(f,v){switch(f){case"keyup":return iU.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KM(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Cu=!1;function lU(f,v){switch(f){case"compositionend":return KM(v);case"keypress":return v.which!==32?null:(ZM=!0,$M);case"textInput":return f=v.data,f===$M&&ZM?null:f;default:return null}}function sU(f,v){if(Cu)return f==="compositionend"||!p1&&qM(f,v)?(f=UM(),jd=c1=mo=null,Cu=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1=v)return{node:y,offset:v-f};f=b}t:{for(;y;){if(y.nextSibling){y=y.nextSibling;break t}y=y.parentNode}y=void 0}y=iD(y)}}function lD(f,v){return f&&v?f===v?!0:f&&f.nodeType===3?!1:v&&v.nodeType===3?lD(f,v.parentNode):"contains"in f?f.contains(v):f.compareDocumentPosition?!!(f.compareDocumentPosition(v)&16):!1:!1}function sD(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var v=Fd(f.document);v instanceof f.HTMLIFrameElement;){try{var y=typeof v.contentWindow.location.href=="string"}catch{y=!1}if(y)f=v.contentWindow;else break;v=Fd(f.document)}return v}function m1(f){var v=f&&f.nodeName&&f.nodeName.toLowerCase();return v&&(v==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||v==="textarea"||f.contentEditable==="true")}var gU=Ti&&"documentMode"in document&&11>=document.documentMode,Au=null,_1=null,Xf=null,S1=!1;function uD(f,v,y){var b=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;S1||Au==null||Au!==Fd(b)||(b=Au,"selectionStart"in b&&m1(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Xf&&Wf(Xf,b)||(Xf=b,b=Bp(_1,"onSelect"),0>=z,T-=z,kn=1<<32-ba(v)+T|y<ie?(pe=Vt,Vt=null):pe=Vt.sibling;var me=ot(et,Vt,at[ie],ft);if(me===null){Vt===null&&(Vt=pe);break}f&&Vt&&me.alternate===null&&v(et,Vt),K=D(me,K,ie),ye===null?Ut=me:ye.sibling=me,ye=me,Vt=pe}if(ie===at.length)return y(et,Vt),ge&&Ai(et,ie),Ut;if(Vt===null){for(;ieie?(pe=Vt,Vt=null):pe=Vt.sibling;var Go=ot(et,Vt,me.value,ft);if(Go===null){Vt===null&&(Vt=pe);break}f&&Vt&&Go.alternate===null&&v(et,Vt),K=D(Go,K,ie),ye===null?Ut=Go:ye.sibling=Go,ye=Go,Vt=pe}if(me.done)return y(et,Vt),ge&&Ai(et,ie),Ut;if(Vt===null){for(;!me.done;ie++,me=at.next())me=ht(et,me.value,ft),me!==null&&(K=D(me,K,ie),ye===null?Ut=me:ye.sibling=me,ye=me);return ge&&Ai(et,ie),Ut}for(Vt=b(Vt);!me.done;ie++,me=at.next())me=st(Vt,et,ie,me.value,ft),me!==null&&(f&&me.alternate!==null&&Vt.delete(me.key===null?ie:me.key),K=D(me,K,ie),ye===null?Ut=me:ye.sibling=me,ye=me);return f&&Vt.forEach(function(PF){return v(et,PF)}),ge&&Ai(et,ie),Ut}function Ee(et,K,at,ft){if(typeof at=="object"&&at!==null&&at.type===m&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case p:t:{for(var Ut=at.key;K!==null;){if(K.key===Ut){if(Ut=at.type,Ut===m){if(K.tag===7){y(et,K.sibling),ft=T(K,at.props.children),ft.return=et,et=ft;break t}}else if(K.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===E&&Ul(Ut)===K.type){y(et,K.sibling),ft=T(K,at.props),Jf(ft,at),ft.return=et,et=ft;break t}y(et,K);break}else v(et,K);K=K.sibling}at.type===m?(ft=kl(at.props.children,et.mode,ft,at.key),ft.return=et,et=ft):(ft=ep(at.type,at.key,at.props,null,et.mode,ft),Jf(ft,at),ft.return=et,et=ft)}return z(et);case g:t:{for(Ut=at.key;K!==null;){if(K.key===Ut)if(K.tag===4&&K.stateNode.containerInfo===at.containerInfo&&K.stateNode.implementation===at.implementation){y(et,K.sibling),ft=T(K,at.children||[]),ft.return=et,et=ft;break t}else{y(et,K);break}else v(et,K);K=K.sibling}ft=M1(at,et.mode,ft),ft.return=et,et=ft}return z(et);case E:return at=Ul(at),Ee(et,K,at,ft)}if(H(at))return kt(et,K,at,ft);if(B(at)){if(Ut=B(at),typeof Ut!="function")throw Error(a(150));return at=Ut.call(at),Wt(et,K,at,ft)}if(typeof at.then=="function")return Ee(et,K,sp(at),ft);if(at.$$typeof===w)return Ee(et,K,np(et,at),ft);up(et,at)}return typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint"?(at=""+at,K!==null&&K.tag===6?(y(et,K.sibling),ft=T(K,at),ft.return=et,et=ft):(y(et,K),ft=A1(at,et.mode,ft),ft.return=et,et=ft),z(et)):y(et,K)}return function(et,K,at,ft){try{Qf=0;var Ut=Ee(et,K,at,ft);return ku=null,Ut}catch(Vt){if(Vt===Pu||Vt===op)throw Vt;var ye=wa(29,Vt,null,et.mode);return ye.lanes=ft,ye.return=et,ye}finally{}}}var Yl=ID(!0),OD=ID(!1),wo=!1;function V1(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function G1(f,v){f=f.updateQueue,v.updateQueue===f&&(v.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function To(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function Co(f,v,y){var b=f.updateQueue;if(b===null)return null;if(b=b.shared,(Se&2)!==0){var T=b.pending;return T===null?v.next=v:(v.next=T.next,T.next=v),b.pending=v,v=tp(f),gD(f,null,y),v}return Jd(f,b,v,y),tp(f)}function th(f,v,y){if(v=v.updateQueue,v!==null&&(v=v.shared,(y&4194048)!==0)){var b=v.lanes;b&=f.pendingLanes,y|=b,v.lanes=y,TM(f,y)}}function H1(f,v){var y=f.updateQueue,b=f.alternate;if(b!==null&&(b=b.updateQueue,y===b)){var T=null,D=null;if(y=y.firstBaseUpdate,y!==null){do{var z={lane:y.lane,tag:y.tag,payload:y.payload,callback:null,next:null};D===null?T=D=z:D=D.next=z,y=y.next}while(y!==null);D===null?T=D=v:D=D.next=v}else T=D=v;y={baseState:b.baseState,firstBaseUpdate:T,lastBaseUpdate:D,shared:b.shared,callbacks:b.callbacks},f.updateQueue=y;return}f=y.lastBaseUpdate,f===null?y.firstBaseUpdate=v:f.next=v,y.lastBaseUpdate=v}var U1=!1;function eh(){if(U1){var f=zu;if(f!==null)throw f}}function rh(f,v,y,b){U1=!1;var T=f.updateQueue;wo=!1;var D=T.firstBaseUpdate,z=T.lastBaseUpdate,U=T.shared.pending;if(U!==null){T.shared.pending=null;var Z=U,nt=Z.next;Z.next=null,z===null?D=nt:z.next=nt,z=Z;var ct=f.alternate;ct!==null&&(ct=ct.updateQueue,U=ct.lastBaseUpdate,U!==z&&(U===null?ct.firstBaseUpdate=nt:U.next=nt,ct.lastBaseUpdate=Z))}if(D!==null){var ht=T.baseState;z=0,ct=nt=Z=null,U=D;do{var ot=U.lane&-536870913,st=ot!==U.lane;if(st?(de&ot)===ot:(b&ot)===ot){ot!==0&&ot===Nu&&(U1=!0),ct!==null&&(ct=ct.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});t:{var kt=f,Wt=U;ot=v;var Ee=y;switch(Wt.tag){case 1:if(kt=Wt.payload,typeof kt=="function"){ht=kt.call(Ee,ht,ot);break t}ht=kt;break t;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=Wt.payload,ot=typeof kt=="function"?kt.call(Ee,ht,ot):kt,ot==null)break t;ht=h({},ht,ot);break t;case 2:wo=!0}}ot=U.callback,ot!==null&&(f.flags|=64,st&&(f.flags|=8192),st=T.callbacks,st===null?T.callbacks=[ot]:st.push(ot))}else st={lane:ot,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ct===null?(nt=ct=st,Z=ht):ct=ct.next=st,z|=ot;if(U=U.next,U===null){if(U=T.shared.pending,U===null)break;st=U,U=st.next,st.next=null,T.lastBaseUpdate=st,T.shared.pending=null}}while(!0);ct===null&&(Z=ht),T.baseState=Z,T.firstBaseUpdate=nt,T.lastBaseUpdate=ct,D===null&&(T.shared.lanes=0),Eo|=z,f.lanes=z,f.memoizedState=ht}}function ND(f,v){if(typeof f!="function")throw Error(a(191,f));f.call(v)}function zD(f,v){var y=f.callbacks;if(y!==null)for(f.callbacks=null,f=0;fD?D:8;var z=k.T,U={};k.T=U,l_(f,!1,v,y);try{var Z=T(),nt=k.S;if(nt!==null&&nt(U,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var ct=CU(Z,b);ih(f,v,ct,Da(f))}else ih(f,v,b,Da(f))}catch(ht){ih(f,v,{then:function(){},status:"rejected",reason:ht},Da())}finally{j.p=D,z!==null&&U.types!==null&&(z.types=U.types),k.T=z}}function RU(){}function i_(f,v,y,b){if(f.tag!==5)throw Error(a(476));var T=vL(f).queue;hL(f,T,v,Y,y===null?RU:function(){return dL(f),y(b)})}function vL(f){var v=f.memoizedState;if(v!==null)return v;v={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:Y},next:null};var y={};return v.next={memoizedState:y,baseState:y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:y},next:null},f.memoizedState=v,f=f.alternate,f!==null&&(f.memoizedState=v),v}function dL(f){var v=vL(f);v.next===null&&(v=f.alternate.memoizedState),ih(f,v.next.queue,{},Da())}function o_(){return Or(xh)}function pL(){return Ke().memoizedState}function gL(){return Ke().memoizedState}function IU(f){for(var v=f.return;v!==null;){switch(v.tag){case 24:case 3:var y=Da();f=To(y);var b=Co(v,f,y);b!==null&&(fa(b,v,y),th(b,v,y)),v={cache:z1()},f.payload=v;return}v=v.return}}function OU(f,v,y){var b=Da();y={lane:b,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},_p(f)?mL(v,y):(y=T1(f,v,y,b),y!==null&&(fa(y,f,b),_L(y,v,b)))}function yL(f,v,y){var b=Da();ih(f,v,y,b)}function ih(f,v,y,b){var T={lane:b,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null};if(_p(f))mL(v,T);else{var D=f.alternate;if(f.lanes===0&&(D===null||D.lanes===0)&&(D=v.lastRenderedReducer,D!==null))try{var z=v.lastRenderedState,U=D(z,y);if(T.hasEagerState=!0,T.eagerState=U,xa(U,z))return Jd(f,v,T,0),Ne===null&&Qd(),!1}catch{}finally{}if(y=T1(f,v,T,b),y!==null)return fa(y,f,b),_L(y,v,b),!0}return!1}function l_(f,v,y,b){if(b={lane:2,revertLane:V_(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},_p(f)){if(v)throw Error(a(479))}else v=T1(f,y,b,2),v!==null&&fa(v,f,2)}function _p(f){var v=f.alternate;return f===re||v!==null&&v===re}function mL(f,v){Vu=hp=!0;var y=f.pending;y===null?v.next=v:(v.next=y.next,y.next=v),f.pending=v}function _L(f,v,y){if((y&4194048)!==0){var b=v.lanes;b&=f.pendingLanes,y|=b,v.lanes=y,TM(f,y)}}var oh={readContext:Or,use:pp,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};oh.useEffectEvent=Fe;var SL={readContext:Or,use:pp,useCallback:function(f,v){return Zr().memoizedState=[f,v===void 0?null:v],f},useContext:Or,useEffect:aL,useImperativeHandle:function(f,v,y){y=y!=null?y.concat([f]):null,yp(4194308,4,lL.bind(null,v,f),y)},useLayoutEffect:function(f,v){return yp(4194308,4,f,v)},useInsertionEffect:function(f,v){yp(4,2,f,v)},useMemo:function(f,v){var y=Zr();v=v===void 0?null:v;var b=f();if(jl){go(!0);try{f()}finally{go(!1)}}return y.memoizedState=[b,v],b},useReducer:function(f,v,y){var b=Zr();if(y!==void 0){var T=y(v);if(jl){go(!0);try{y(v)}finally{go(!1)}}}else T=v;return b.memoizedState=b.baseState=T,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:T},b.queue=f,f=f.dispatch=OU.bind(null,re,f),[b.memoizedState,f]},useRef:function(f){var v=Zr();return f={current:f},v.memoizedState=f},useState:function(f){f=t_(f);var v=f.queue,y=yL.bind(null,re,v);return v.dispatch=y,[f.memoizedState,y]},useDebugValue:a_,useDeferredValue:function(f,v){var y=Zr();return n_(y,f,v)},useTransition:function(){var f=t_(!1);return f=hL.bind(null,re,f.queue,!0,!1),Zr().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,v,y){var b=re,T=Zr();if(ge){if(y===void 0)throw Error(a(407));y=y()}else{if(y=v(),Ne===null)throw Error(a(349));(de&127)!==0||HD(b,v,y)}T.memoizedState=y;var D={value:y,getSnapshot:v};return T.queue=D,aL(FD.bind(null,b,D,f),[f]),b.flags|=2048,Hu(9,{destroy:void 0},UD.bind(null,b,D,y,v),null),y},useId:function(){var f=Zr(),v=Ne.identifierPrefix;if(ge){var y=Bn,b=kn;y=(b&~(1<<32-ba(b)-1)).toString(32)+y,v="_"+v+"R_"+y,y=vp++,0<\/script>",D=D.removeChild(D.firstChild);break;case"select":D=typeof b.is=="string"?z.createElement("select",{is:b.is}):z.createElement("select"),b.multiple?D.multiple=!0:b.size&&(D.size=b.size);break;default:D=typeof b.is=="string"?z.createElement(T,{is:b.is}):z.createElement(T)}}D[Rr]=v,D[ia]=b;t:for(z=v.child;z!==null;){if(z.tag===5||z.tag===6)D.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===v)break t;for(;z.sibling===null;){if(z.return===null||z.return===v)break t;z=z.return}z.sibling.return=z.return,z=z.sibling}v.stateNode=D;t:switch(zr(D,T,b),T){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break t;case"img":b=!0;break t;default:b=!1}b&&Ii(v)}}return Ve(v),b_(v,v.type,f===null?null:f.memoizedProps,v.pendingProps,y),null;case 6:if(f&&v.stateNode!=null)f.memoizedProps!==b&&Ii(v);else{if(typeof b!="string"&&v.stateNode===null)throw Error(a(166));if(f=Tt.current,Iu(v)){if(f=v.stateNode,y=v.memoizedProps,b=null,T=Ir,T!==null)switch(T.tag){case 27:case 5:b=T.memoizedProps}f[Rr]=v,f=!!(f.nodeValue===y||b!==null&&b.suppressHydrationWarning===!0||VE(f.nodeValue,y)),f||bo(v,!0)}else f=Vp(f).createTextNode(b),f[Rr]=v,v.stateNode=f}return Ve(v),null;case 31:if(y=v.memoizedState,f===null||f.memoizedState!==null){if(b=Iu(v),y!==null){if(f===null){if(!b)throw Error(a(318));if(f=v.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(557));f[Rr]=v}else Bl(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Ve(v),f=!1}else y=R1(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=y),f=!0;if(!f)return v.flags&256?(Ca(v),v):(Ca(v),null);if((v.flags&128)!==0)throw Error(a(558))}return Ve(v),null;case 13:if(b=v.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(T=Iu(v),b!==null&&b.dehydrated!==null){if(f===null){if(!T)throw Error(a(318));if(T=v.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(a(317));T[Rr]=v}else Bl(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Ve(v),T=!1}else T=R1(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=T),T=!0;if(!T)return v.flags&256?(Ca(v),v):(Ca(v),null)}return Ca(v),(v.flags&128)!==0?(v.lanes=y,v):(y=b!==null,f=f!==null&&f.memoizedState!==null,y&&(b=v.child,T=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(T=b.alternate.memoizedState.cachePool.pool),D=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(D=b.memoizedState.cachePool.pool),D!==T&&(b.flags|=2048)),y!==f&&y&&(v.child.flags|=8192),Tp(v,v.updateQueue),Ve(v),null);case 4:return gt(),f===null&&F_(v.stateNode.containerInfo),Ve(v),null;case 10:return Di(v.type),Ve(v),null;case 19:if(X(qe),b=v.memoizedState,b===null)return Ve(v),null;if(T=(v.flags&128)!==0,D=b.rendering,D===null)if(T)sh(b,!1);else{if(Ye!==0||f!==null&&(f.flags&128)!==0)for(f=v.child;f!==null;){if(D=fp(f),D!==null){for(v.flags|=128,sh(b,!1),f=D.updateQueue,v.updateQueue=f,Tp(v,f),v.subtreeFlags=0,f=y,y=v.child;y!==null;)yD(y,f),y=y.sibling;return tt(qe,qe.current&1|2),ge&&Ai(v,b.treeForkCount),v.child}f=f.sibling}b.tail!==null&&_a()>Lp&&(v.flags|=128,T=!0,sh(b,!1),v.lanes=4194304)}else{if(!T)if(f=fp(D),f!==null){if(v.flags|=128,T=!0,f=f.updateQueue,v.updateQueue=f,Tp(v,f),sh(b,!0),b.tail===null&&b.tailMode==="hidden"&&!D.alternate&&!ge)return Ve(v),null}else 2*_a()-b.renderingStartTime>Lp&&y!==536870912&&(v.flags|=128,T=!0,sh(b,!1),v.lanes=4194304);b.isBackwards?(D.sibling=v.child,v.child=D):(f=b.last,f!==null?f.sibling=D:v.child=D,b.last=D)}return b.tail!==null?(f=b.tail,b.rendering=f,b.tail=f.sibling,b.renderingStartTime=_a(),f.sibling=null,y=qe.current,tt(qe,T?y&1|2:y&1),ge&&Ai(v,b.treeForkCount),f):(Ve(v),null);case 22:case 23:return Ca(v),Y1(),b=v.memoizedState!==null,f!==null?f.memoizedState!==null!==b&&(v.flags|=8192):b&&(v.flags|=8192),b?(y&536870912)!==0&&(v.flags&128)===0&&(Ve(v),v.subtreeFlags&6&&(v.flags|=8192)):Ve(v),y=v.updateQueue,y!==null&&Tp(v,y.retryQueue),y=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),b=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(b=v.memoizedState.cachePool.pool),b!==y&&(v.flags|=2048),f!==null&&X(Hl),null;case 24:return y=null,f!==null&&(y=f.memoizedState.cache),v.memoizedState.cache!==y&&(v.flags|=2048),Di(sr),Ve(v),null;case 25:return null;case 30:return null}throw Error(a(156,v.tag))}function BU(f,v){switch(L1(v),v.tag){case 1:return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 3:return Di(sr),gt(),f=v.flags,(f&65536)!==0&&(f&128)===0?(v.flags=f&-65537|128,v):null;case 26:case 27:case 5:return _t(v),null;case 31:if(v.memoizedState!==null){if(Ca(v),v.alternate===null)throw Error(a(340));Bl()}return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 13:if(Ca(v),f=v.memoizedState,f!==null&&f.dehydrated!==null){if(v.alternate===null)throw Error(a(340));Bl()}return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 19:return X(qe),null;case 4:return gt(),null;case 10:return Di(v.type),null;case 22:case 23:return Ca(v),Y1(),f!==null&&X(Hl),f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 24:return Di(sr),null;case 25:return null;default:return null}}function YL(f,v){switch(L1(v),v.tag){case 3:Di(sr),gt();break;case 26:case 27:case 5:_t(v);break;case 4:gt();break;case 31:v.memoizedState!==null&&Ca(v);break;case 13:Ca(v);break;case 19:X(qe);break;case 10:Di(v.type);break;case 22:case 23:Ca(v),Y1(),f!==null&&X(Hl);break;case 24:Di(sr)}}function uh(f,v){try{var y=v.updateQueue,b=y!==null?y.lastEffect:null;if(b!==null){var T=b.next;y=T;do{if((y.tag&f)===f){b=void 0;var D=y.create,z=y.inst;b=D(),z.destroy=b}y=y.next}while(y!==T)}}catch(U){Ae(v,v.return,U)}}function Do(f,v,y){try{var b=v.updateQueue,T=b!==null?b.lastEffect:null;if(T!==null){var D=T.next;b=D;do{if((b.tag&f)===f){var z=b.inst,U=z.destroy;if(U!==void 0){z.destroy=void 0,T=v;var Z=y,nt=U;try{nt()}catch(ct){Ae(T,Z,ct)}}}b=b.next}while(b!==D)}}catch(ct){Ae(v,v.return,ct)}}function jL(f){var v=f.updateQueue;if(v!==null){var y=f.stateNode;try{zD(v,y)}catch(b){Ae(f,f.return,b)}}}function WL(f,v,y){y.props=Wl(f.type,f.memoizedProps),y.state=f.memoizedState;try{y.componentWillUnmount()}catch(b){Ae(f,v,b)}}function ch(f,v){try{var y=f.ref;if(y!==null){switch(f.tag){case 26:case 27:case 5:var b=f.stateNode;break;case 30:b=f.stateNode;break;default:b=f.stateNode}typeof y=="function"?f.refCleanup=y(b):y.current=b}}catch(T){Ae(f,v,T)}}function Vn(f,v){var y=f.ref,b=f.refCleanup;if(y!==null)if(typeof b=="function")try{b()}catch(T){Ae(f,v,T)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof y=="function")try{y(null)}catch(T){Ae(f,v,T)}else y.current=null}function XL(f){var v=f.type,y=f.memoizedProps,b=f.stateNode;try{t:switch(v){case"button":case"input":case"select":case"textarea":y.autoFocus&&b.focus();break t;case"img":y.src?b.src=y.src:y.srcSet&&(b.srcset=y.srcSet)}}catch(T){Ae(f,f.return,T)}}function x_(f,v,y){try{var b=f.stateNode;oF(b,f.type,y,v),b[ia]=v}catch(T){Ae(f,f.return,T)}}function $L(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&zo(f.type)||f.tag===4}function w_(f){t:for(;;){for(;f.sibling===null;){if(f.return===null||$L(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&zo(f.type)||f.flags&2||f.child===null||f.tag===4)continue t;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function T_(f,v,y){var b=f.tag;if(b===5||b===6)f=f.stateNode,v?(y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y).insertBefore(f,v):(v=y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y,v.appendChild(f),y=y._reactRootContainer,y!=null||v.onclick!==null||(v.onclick=wi));else if(b!==4&&(b===27&&zo(f.type)&&(y=f.stateNode,v=null),f=f.child,f!==null))for(T_(f,v,y),f=f.sibling;f!==null;)T_(f,v,y),f=f.sibling}function Cp(f,v,y){var b=f.tag;if(b===5||b===6)f=f.stateNode,v?y.insertBefore(f,v):y.appendChild(f);else if(b!==4&&(b===27&&zo(f.type)&&(y=f.stateNode),f=f.child,f!==null))for(Cp(f,v,y),f=f.sibling;f!==null;)Cp(f,v,y),f=f.sibling}function ZL(f){var v=f.stateNode,y=f.memoizedProps;try{for(var b=f.type,T=v.attributes;T.length;)v.removeAttributeNode(T[0]);zr(v,b,y),v[Rr]=f,v[ia]=y}catch(D){Ae(f,f.return,D)}}var Oi=!1,fr=!1,C_=!1,qL=typeof WeakSet=="function"?WeakSet:Set,Tr=null;function VU(f,v){if(f=f.containerInfo,W_=Wp,f=sD(f),m1(f)){if("selectionStart"in f)var y={start:f.selectionStart,end:f.selectionEnd};else t:{y=(y=f.ownerDocument)&&y.defaultView||window;var b=y.getSelection&&y.getSelection();if(b&&b.rangeCount!==0){y=b.anchorNode;var T=b.anchorOffset,D=b.focusNode;b=b.focusOffset;try{y.nodeType,D.nodeType}catch{y=null;break t}var z=0,U=-1,Z=-1,nt=0,ct=0,ht=f,ot=null;e:for(;;){for(var st;ht!==y||T!==0&&ht.nodeType!==3||(U=z+T),ht!==D||b!==0&&ht.nodeType!==3||(Z=z+b),ht.nodeType===3&&(z+=ht.nodeValue.length),(st=ht.firstChild)!==null;)ot=ht,ht=st;for(;;){if(ht===f)break e;if(ot===y&&++nt===T&&(U=z),ot===D&&++ct===b&&(Z=z),(st=ht.nextSibling)!==null)break;ht=ot,ot=ht.parentNode}ht=st}y=U===-1||Z===-1?null:{start:U,end:Z}}else y=null}y=y||{start:0,end:0}}else y=null;for(X_={focusedElem:f,selectionRange:y},Wp=!1,Tr=v;Tr!==null;)if(v=Tr,f=v.child,(v.subtreeFlags&1028)!==0&&f!==null)f.return=v,Tr=f;else for(;Tr!==null;){switch(v=Tr,D=v.alternate,f=v.flags,v.tag){case 0:if((f&4)!==0&&(f=v.updateQueue,f=f!==null?f.events:null,f!==null))for(y=0;y title"))),zr(D,b,y),D[Rr]=f,wr(D),b=D;break t;case"link":var z=rR("link","href",T).get(b+(y.href||""));if(z){for(var U=0;UEe&&(z=Ee,Ee=Wt,Wt=z);var et=oD(U,Wt),K=oD(U,Ee);if(et&&K&&(st.rangeCount!==1||st.anchorNode!==et.node||st.anchorOffset!==et.offset||st.focusNode!==K.node||st.focusOffset!==K.offset)){var at=ht.createRange();at.setStart(et.node,et.offset),st.removeAllRanges(),Wt>Ee?(st.addRange(at),st.extend(K.node,K.offset)):(at.setEnd(K.node,K.offset),st.addRange(at))}}}}for(ht=[],st=U;st=st.parentNode;)st.nodeType===1&&ht.push({element:st,left:st.scrollLeft,top:st.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;Uy?32:y,k.T=null,y=I_,I_=null;var D=Io,z=Bi;if(yr=0,Wu=Io=null,Bi=0,(Se&6)!==0)throw Error(a(331));var U=Se;if(Se|=4,lE(D.current),nE(D,D.current,z,y),Se=U,gh(0,!1),Sa&&typeof Sa.onPostCommitFiberRoot=="function")try{Sa.onPostCommitFiberRoot(Nf,D)}catch{}return!0}finally{j.p=T,k.T=b,CE(f,v)}}function ME(f,v,y){v=Ua(y,v),v=f_(f.stateNode,v,2),f=Co(f,v,2),f!==null&&(Pf(f,2),Gn(f))}function Ae(f,v,y){if(f.tag===3)ME(f,f,y);else for(;v!==null;){if(v.tag===3){ME(v,f,y);break}else if(v.tag===1){var b=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Ro===null||!Ro.has(b))){f=Ua(y,f),y=DL(2),b=Co(v,y,2),b!==null&&(LL(y,b,v,f),Pf(b,2),Gn(b));break}}v=v.return}}function P_(f,v,y){var b=f.pingCache;if(b===null){b=f.pingCache=new UU;var T=new Set;b.set(v,T)}else T=b.get(v),T===void 0&&(T=new Set,b.set(v,T));T.has(y)||(D_=!0,T.add(y),f=XU.bind(null,f,v,y),v.then(f,f))}function XU(f,v,y){var b=f.pingCache;b!==null&&b.delete(v),f.pingedLanes|=f.suspendedLanes&y,f.warmLanes&=~y,Ne===f&&(de&y)===y&&(Ye===4||Ye===3&&(de&62914560)===de&&300>_a()-Dp?(Se&2)===0&&Xu(f,0):L_|=y,ju===de&&(ju=0)),Gn(f)}function DE(f,v){v===0&&(v=xM()),f=Pl(f,v),f!==null&&(Pf(f,v),Gn(f))}function $U(f){var v=f.memoizedState,y=0;v!==null&&(y=v.retryLane),DE(f,y)}function ZU(f,v){var y=0;switch(f.tag){case 31:case 13:var b=f.stateNode,T=f.memoizedState;T!==null&&(y=T.retryLane);break;case 19:b=f.stateNode;break;case 22:b=f.stateNode._retryCache;break;default:throw Error(a(314))}b!==null&&b.delete(v),DE(f,y)}function qU(f,v){return ma(f,v)}var zp=null,Zu=null,k_=!1,Pp=!1,B_=!1,No=0;function Gn(f){f!==Zu&&f.next===null&&(Zu===null?zp=Zu=f:Zu=Zu.next=f),Pp=!0,k_||(k_=!0,QU())}function gh(f,v){if(!B_&&Pp){B_=!0;do for(var y=!1,b=zp;b!==null;){if(f!==0){var T=b.pendingLanes;if(T===0)var D=0;else{var z=b.suspendedLanes,U=b.pingedLanes;D=(1<<31-ba(42|f)+1)-1,D&=T&~(z&~U),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(y=!0,IE(b,D))}else D=de,D=Gd(b,b===Ne?D:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(D&3)===0||zf(b,D)||(y=!0,IE(b,D));b=b.next}while(y);B_=!1}}function KU(){LE()}function LE(){Pp=k_=!1;var f=0;No!==0&&sF()&&(f=No);for(var v=_a(),y=null,b=zp;b!==null;){var T=b.next,D=EE(b,v);D===0?(b.next=null,y===null?zp=T:y.next=T,T===null&&(Zu=y)):(y=b,(f!==0||(D&3)!==0)&&(Pp=!0)),b=T}yr!==0&&yr!==5||gh(f),No!==0&&(No=0)}function EE(f,v){for(var y=f.suspendedLanes,b=f.pingedLanes,T=f.expirationTimes,D=f.pendingLanes&-62914561;0U)break;var ct=Z.transferSize,ht=Z.initiatorType;ct&&GE(ht)&&(Z=Z.responseEnd,z+=ct*(Z"u"?null:document;function QE(f,v,y){var b=qu;if(b&&typeof v=="string"&&v){var T=Ga(v);T='link[rel="'+f+'"][href="'+T+'"]',typeof y=="string"&&(T+='[crossorigin="'+y+'"]'),KE.has(T)||(KE.add(T),f={rel:f,crossOrigin:y,href:v},b.querySelector(T)===null&&(v=b.createElement("link"),zr(v,"link",f),wr(v),b.head.appendChild(v)))}}function yF(f){Vi.D(f),QE("dns-prefetch",f,null)}function mF(f,v){Vi.C(f,v),QE("preconnect",f,v)}function _F(f,v,y){Vi.L(f,v,y);var b=qu;if(b&&f&&v){var T='link[rel="preload"][as="'+Ga(v)+'"]';v==="image"&&y&&y.imageSrcSet?(T+='[imagesrcset="'+Ga(y.imageSrcSet)+'"]',typeof y.imageSizes=="string"&&(T+='[imagesizes="'+Ga(y.imageSizes)+'"]')):T+='[href="'+Ga(f)+'"]';var D=T;switch(v){case"style":D=Ku(f);break;case"script":D=Qu(f)}$a.has(D)||(f=h({rel:"preload",href:v==="image"&&y&&y.imageSrcSet?void 0:f,as:v},y),$a.set(D,f),b.querySelector(T)!==null||v==="style"&&b.querySelector(Sh(D))||v==="script"&&b.querySelector(bh(D))||(v=b.createElement("link"),zr(v,"link",f),wr(v),b.head.appendChild(v)))}}function SF(f,v){Vi.m(f,v);var y=qu;if(y&&f){var b=v&&typeof v.as=="string"?v.as:"script",T='link[rel="modulepreload"][as="'+Ga(b)+'"][href="'+Ga(f)+'"]',D=T;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=Qu(f)}if(!$a.has(D)&&(f=h({rel:"modulepreload",href:f},v),$a.set(D,f),y.querySelector(T)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(y.querySelector(bh(D)))return}b=y.createElement("link"),zr(b,"link",f),wr(b),y.head.appendChild(b)}}}function bF(f,v,y){Vi.S(f,v,y);var b=qu;if(b&&f){var T=_u(b).hoistableStyles,D=Ku(f);v=v||"default";var z=T.get(D);if(!z){var U={loading:0,preload:null};if(z=b.querySelector(Sh(D)))U.loading=5;else{f=h({rel:"stylesheet",href:f,"data-precedence":v},y),(y=$a.get(D))&&tS(f,y);var Z=z=b.createElement("link");wr(Z),zr(Z,"link",f),Z._p=new Promise(function(nt,ct){Z.onload=nt,Z.onerror=ct}),Z.addEventListener("load",function(){U.loading|=1}),Z.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Hp(z,v,b)}z={type:"stylesheet",instance:z,count:1,state:U},T.set(D,z)}}}function xF(f,v){Vi.X(f,v);var y=qu;if(y&&f){var b=_u(y).hoistableScripts,T=Qu(f),D=b.get(T);D||(D=y.querySelector(bh(T)),D||(f=h({src:f,async:!0},v),(v=$a.get(T))&&eS(f,v),D=y.createElement("script"),wr(D),zr(D,"link",f),y.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(T,D))}}function wF(f,v){Vi.M(f,v);var y=qu;if(y&&f){var b=_u(y).hoistableScripts,T=Qu(f),D=b.get(T);D||(D=y.querySelector(bh(T)),D||(f=h({src:f,async:!0,type:"module"},v),(v=$a.get(T))&&eS(f,v),D=y.createElement("script"),wr(D),zr(D,"link",f),y.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(T,D))}}function JE(f,v,y,b){var T=(T=Tt.current)?Gp(T):null;if(!T)throw Error(a(446));switch(f){case"meta":case"title":return null;case"style":return typeof y.precedence=="string"&&typeof y.href=="string"?(v=Ku(y.href),y=_u(T).hoistableStyles,b=y.get(v),b||(b={type:"style",instance:null,count:0,state:null},y.set(v,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(y.rel==="stylesheet"&&typeof y.href=="string"&&typeof y.precedence=="string"){f=Ku(y.href);var D=_u(T).hoistableStyles,z=D.get(f);if(z||(T=T.ownerDocument||T,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(f,z),(D=T.querySelector(Sh(f)))&&!D._p&&(z.instance=D,z.state.loading=5),$a.has(f)||(y={rel:"preload",as:"style",href:y.href,crossOrigin:y.crossOrigin,integrity:y.integrity,media:y.media,hrefLang:y.hrefLang,referrerPolicy:y.referrerPolicy},$a.set(f,y),D||TF(T,f,y,z.state))),v&&b===null)throw Error(a(528,""));return z}if(v&&b!==null)throw Error(a(529,""));return null;case"script":return v=y.async,y=y.src,typeof y=="string"&&v&&typeof v!="function"&&typeof v!="symbol"?(v=Qu(y),y=_u(T).hoistableScripts,b=y.get(v),b||(b={type:"script",instance:null,count:0,state:null},y.set(v,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,f))}}function Ku(f){return'href="'+Ga(f)+'"'}function Sh(f){return'link[rel="stylesheet"]['+f+"]"}function tR(f){return h({},f,{"data-precedence":f.precedence,precedence:null})}function TF(f,v,y,b){f.querySelector('link[rel="preload"][as="style"]['+v+"]")?b.loading=1:(v=f.createElement("link"),b.preload=v,v.addEventListener("load",function(){return b.loading|=1}),v.addEventListener("error",function(){return b.loading|=2}),zr(v,"link",y),wr(v),f.head.appendChild(v))}function Qu(f){return'[src="'+Ga(f)+'"]'}function bh(f){return"script[async]"+f}function eR(f,v,y){if(v.count++,v.instance===null)switch(v.type){case"style":var b=f.querySelector('style[data-href~="'+Ga(y.href)+'"]');if(b)return v.instance=b,wr(b),b;var T=h({},y,{"data-href":y.href,"data-precedence":y.precedence,href:null,precedence:null});return b=(f.ownerDocument||f).createElement("style"),wr(b),zr(b,"style",T),Hp(b,y.precedence,f),v.instance=b;case"stylesheet":T=Ku(y.href);var D=f.querySelector(Sh(T));if(D)return v.state.loading|=4,v.instance=D,wr(D),D;b=tR(y),(T=$a.get(T))&&tS(b,T),D=(f.ownerDocument||f).createElement("link"),wr(D);var z=D;return z._p=new Promise(function(U,Z){z.onload=U,z.onerror=Z}),zr(D,"link",b),v.state.loading|=4,Hp(D,y.precedence,f),v.instance=D;case"script":return D=Qu(y.src),(T=f.querySelector(bh(D)))?(v.instance=T,wr(T),T):(b=y,(T=$a.get(D))&&(b=h({},y),eS(b,T)),f=f.ownerDocument||f,T=f.createElement("script"),wr(T),zr(T,"link",b),f.head.appendChild(T),v.instance=T);case"void":return null;default:throw Error(a(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(b=v.instance,v.state.loading|=4,Hp(b,y.precedence,f));return v.instance}function Hp(f,v,y){for(var b=y.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=b.length?b[b.length-1]:null,D=T,z=0;z title"):null)}function CF(f,v,y){if(y===1||v.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof v.precedence!="string"||typeof v.href!="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!="string"||typeof v.href!="string"||v.href===""||v.onLoad||v.onError)break;switch(v.rel){case"stylesheet":return f=v.disabled,typeof v.precedence=="string"&&f==null;default:return!0}case"script":if(v.async&&typeof v.async!="function"&&typeof v.async!="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src=="string")return!0}return!1}function nR(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function AF(f,v,y,b){if(y.type==="stylesheet"&&(typeof b.media!="string"||matchMedia(b.media).matches!==!1)&&(y.state.loading&4)===0){if(y.instance===null){var T=Ku(b.href),D=v.querySelector(Sh(T));if(D){v=D._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(f.count++,f=Fp.bind(f),v.then(f,f)),y.state.loading|=4,y.instance=D,wr(D);return}D=v.ownerDocument||v,b=tR(b),(T=$a.get(T))&&tS(b,T),D=D.createElement("link"),wr(D);var z=D;z._p=new Promise(function(U,Z){z.onload=U,z.onerror=Z}),zr(D,"link",b),y.instance=D}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(y,v),(v=y.state.preload)&&(y.state.loading&3)===0&&(f.count++,y=Fp.bind(f),v.addEventListener("load",y),v.addEventListener("error",y))}}var rS=0;function MF(f,v){return f.stylesheets&&f.count===0&&jp(f,f.stylesheets),0rS?50:800)+v);return f.unsuspend=y,function(){f.unsuspend=null,clearTimeout(b),clearTimeout(T)}}:null}function Fp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jp(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var Yp=null;function jp(f,v){f.stylesheets=null,f.unsuspend!==null&&(f.count++,Yp=new Map,v.forEach(DF,f),Yp=null,Fp.call(f))}function DF(f,v){if(!(v.state.loading&4)){var y=Yp.get(f);if(y)var b=y.get(null);else{y=new Map,Yp.set(f,y);for(var T=f.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),fS.exports=FF(),fS.exports}var jF=YF(),Qn=function(){return Qn=Object.assign||function(t){for(var e,a=1,n=arguments.length;a"u")return sY;var t=uY(r),e=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-e+t[2]-t[0])}},fY=WB(),Yc="data-scroll-locked",hY=function(r,t,e,a){var n=r.left,i=r.top,o=r.right,l=r.gap;return e===void 0&&(e="margin"),` - .`.concat(XF,` { - overflow: hidden `).concat(a,`; - padding-right: `).concat(l,"px ").concat(a,`; - } - body[`).concat(Yc,`] { - overflow: hidden `).concat(a,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(a,";"),e==="margin"&&` - padding-left: `.concat(n,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(l,"px ").concat(a,`; - `),e==="padding"&&"padding-right: ".concat(l,"px ").concat(a,";")].filter(Boolean).join(""),` - } - - .`).concat(_y,` { - right: `).concat(l,"px ").concat(a,`; - } - - .`).concat(Sy,` { - margin-right: `).concat(l,"px ").concat(a,`; - } - - .`).concat(_y," .").concat(_y,` { - right: 0 `).concat(a,`; - } - - .`).concat(Sy," .").concat(Sy,` { - margin-right: 0 `).concat(a,`; - } - - body[`).concat(Yc,`] { - `).concat($F,": ").concat(l,`px; - } -`)},LR=function(){var r=parseInt(document.body.getAttribute(Yc)||"0",10);return isFinite(r)?r:0},vY=function(){W.useEffect(function(){return document.body.setAttribute(Yc,(LR()+1).toString()),function(){var r=LR()-1;r<=0?document.body.removeAttribute(Yc):document.body.setAttribute(Yc,r.toString())}},[])},dY=function(r){var t=r.noRelative,e=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;vY();var i=W.useMemo(function(){return cY(n)},[n]);return W.createElement(fY,{styles:hY(i,!t,n,e?"":"!important")})},nw=!1;if(typeof window<"u")try{var Jp=Object.defineProperty({},"passive",{get:function(){return nw=!0,!0}});window.addEventListener("test",Jp,Jp),window.removeEventListener("test",Jp,Jp)}catch{nw=!1}var tc=nw?{passive:!1}:!1,pY=function(r){return r.tagName==="TEXTAREA"},XB=function(r,t){if(!(r instanceof Element))return!1;var e=window.getComputedStyle(r);return e[t]!=="hidden"&&!(e.overflowY===e.overflowX&&!pY(r)&&e[t]==="visible")},gY=function(r){return XB(r,"overflowY")},yY=function(r){return XB(r,"overflowX")},ER=function(r,t){var e=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=$B(r,a);if(n){var i=ZB(r,a),o=i[1],l=i[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==e.body);return!1},mY=function(r){var t=r.scrollTop,e=r.scrollHeight,a=r.clientHeight;return[t,e,a]},_Y=function(r){var t=r.scrollLeft,e=r.scrollWidth,a=r.clientWidth;return[t,e,a]},$B=function(r,t){return r==="v"?gY(t):yY(t)},ZB=function(r,t){return r==="v"?mY(t):_Y(t)},SY=function(r,t){return r==="h"&&t==="rtl"?-1:1},bY=function(r,t,e,a,n){var i=SY(r,window.getComputedStyle(t).direction),o=i*a,l=e.target,s=t.contains(l),u=!1,c=o>0,h=0,d=0;do{if(!l)break;var p=ZB(r,l),g=p[0],m=p[1],_=p[2],S=m-_-i*g;(g||S)&&$B(r,l)&&(h+=S,d+=g);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&Math.abs(h)<1||!c&&Math.abs(d)<1)&&(u=!0),u},tg=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},RR=function(r){return[r.deltaX,r.deltaY]},IR=function(r){return r&&"current"in r?r.current:r},xY=function(r,t){return r[0]===t[0]&&r[1]===t[1]},wY=function(r){return` - .block-interactivity-`.concat(r,` {pointer-events: none;} - .allow-interactivity-`).concat(r,` {pointer-events: all;} -`)},TY=0,ec=[];function CY(r){var t=W.useRef([]),e=W.useRef([0,0]),a=W.useRef(),n=W.useState(TY++)[0],i=W.useState(WB)[0],o=W.useRef(r);W.useEffect(function(){o.current=r},[r]),W.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(n));var m=WF([r.lockRef.current],(r.shards||[]).map(IR),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=W.useCallback(function(m,_){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var S=tg(m),x=e.current,w="deltaX"in m?m.deltaX:x[0]-S[0],C="deltaY"in m?m.deltaY:x[1]-S[1],A,M=m.target,L=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&L==="h"&&M.type==="range")return!1;var E=window.getSelection(),R=E&&E.anchorNode,I=R?R===M||R.contains(M):!1;if(I)return!1;var N=ER(L,M);if(!N)return!0;if(N?A=L:(A=L==="v"?"h":"v",N=ER(L,M)),!N)return!1;if(!a.current&&"changedTouches"in m&&(w||C)&&(a.current=A),!A)return!0;var B=a.current||A;return bY(B,_,m,B==="h"?w:C)},[]),s=W.useCallback(function(m){var _=m;if(!(!ec.length||ec[ec.length-1]!==i)){var S="deltaY"in _?RR(_):tg(_),x=t.current.filter(function(A){return A.name===_.type&&(A.target===_.target||_.target===A.shadowParent)&&xY(A.delta,S)})[0];if(x&&x.should){_.cancelable&&_.preventDefault();return}if(!x){var w=(o.current.shards||[]).map(IR).filter(Boolean).filter(function(A){return A.contains(_.target)}),C=w.length>0?l(_,w[0]):!o.current.noIsolation;C&&_.cancelable&&_.preventDefault()}}},[]),u=W.useCallback(function(m,_,S,x){var w={name:m,delta:_,target:S,should:x,shadowParent:AY(S)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),c=W.useCallback(function(m){e.current=tg(m),a.current=void 0},[]),h=W.useCallback(function(m){u(m.type,RR(m),m.target,l(m,r.lockRef.current))},[]),d=W.useCallback(function(m){u(m.type,tg(m),m.target,l(m,r.lockRef.current))},[]);W.useEffect(function(){return ec.push(i),r.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",s,tc),document.addEventListener("touchmove",s,tc),document.addEventListener("touchstart",c,tc),function(){ec=ec.filter(function(m){return m!==i}),document.removeEventListener("wheel",s,tc),document.removeEventListener("touchmove",s,tc),document.removeEventListener("touchstart",c,tc)}},[]);var p=r.removeScrollBar,g=r.inert;return W.createElement(W.Fragment,null,g?W.createElement(i,{styles:wY(n)}):null,p?W.createElement(dY,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function AY(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const MY=eY(jB,CY);var qB=W.forwardRef(function(r,t){return W.createElement(Km,Qn({},r,{ref:t,sideCar:MY}))});qB.classNames=Km.classNames;function si(r){return Object.keys(r)}function mS(r){return r&&typeof r=="object"&&!Array.isArray(r)}function EC(r,t){const e={...r},a=t;return mS(r)&&mS(t)&&Object.keys(t).forEach(n=>{mS(a[n])&&n in r?e[n]=EC(e[n],a[n]):e[n]=a[n]}),e}function DY(r){return r.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function LY(r){var t;return typeof r!="string"||!r.includes("var(--mantine-scale)")?r:(t=r.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function EY(r){const t=LY(r);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function OR(r){return r==="0rem"?"0rem":`calc(${r} * var(--mantine-scale))`}function KB(r,{shouldScale:t=!1}={}){function e(a){if(a===0||a==="0")return`0${r}`;if(typeof a=="number"){const n=`${a/16}${r}`;return t?OR(n):n}if(typeof a=="string"){if(a===""||a.startsWith("calc(")||a.startsWith("clamp(")||a.includes("rgba("))return a;if(a.includes(","))return a.split(",").map(i=>e(i)).join(",");if(a.includes(" "))return a.split(" ").map(i=>e(i)).join(" ");const n=a.replace("px","");if(!Number.isNaN(Number(n))){const i=`${Number(n)/16}${r}`;return t?OR(i):i}}return a}return e}const mt=KB("rem",{shouldScale:!0}),NR=KB("em");function RC(r){return Object.keys(r).reduce((t,e)=>(r[e]!==void 0&&(t[e]=r[e]),t),{})}function QB(r){if(typeof r=="number")return!0;if(typeof r=="string"){if(r.startsWith("calc(")||r.startsWith("var(")||r.includes(" ")&&r.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return r.trim().split(/\s+/).every(a=>t.test(a))}return!1}function RY(r){return Array.isArray(r)||r===null?!1:typeof r=="object"?r.type!==W.Fragment:!1}function fd(r){const t=W.createContext(null);return[({children:n,value:i})=>V.jsx(t.Provider,{value:i,children:n}),()=>{const n=W.useContext(t);if(n===null)throw new Error(r);return n}]}function IY(r=null){const t=W.createContext(r);return[({children:n,value:i})=>V.jsx(t.Provider,{value:i,children:n}),()=>W.useContext(t)]}function zR(r,t){return e=>{if(typeof e!="string"||e.trim().length===0)throw new Error(t);return`${r}-${e}`}}function iw(r,t){let e=r;for(;(e=e.parentElement)&&!e.matches(t););return e}function OY(r,t,e){for(let a=r-1;a>=0;a-=1)if(!t[a].disabled)return a;if(e){for(let a=t.length-1;a>-1;a-=1)if(!t[a].disabled)return a}return r}function NY(r,t,e){for(let a=r+1;a{var g;e==null||e(l);const s=Array.from(((g=iw(l.currentTarget,r))==null?void 0:g.querySelectorAll(t))||[]).filter(m=>zY(l.currentTarget,m,r)),u=s.findIndex(m=>l.currentTarget===m),c=NY(u,s,a),h=OY(u,s,a),d=i==="rtl"?h:c,p=i==="rtl"?c:h;switch(l.key){case"ArrowRight":{o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[d].focus(),n&&s[d].click());break}case"ArrowLeft":{o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[p].focus(),n&&s[p].click());break}case"ArrowUp":{o==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[h].focus(),n&&s[h].click());break}case"ArrowDown":{o==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[c].focus(),n&&s[c].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!s[0].disabled&&s[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const m=s.length-1;!s[m].disabled&&s[m].focus();break}}}}const kY={app:100,modal:200,popover:300,overlay:400,max:9999};function pf(r){return kY[r]}function hd(r,t="size",e=!0){if(r!==void 0)return QB(r)?e?mt(r):r:`var(--${t}-${r})`}function BY(r){return hd(r,"mantine-spacing")}function vd(r){return r===void 0?"var(--mantine-radius-default)":hd(r,"mantine-radius")}function JB(r){if(r)return hd(r,"mantine-shadow",!1)}function VY(r="mantine-"){return`${r}${Math.random().toString(36).slice(2,11)}`}function Ms(r){const t=W.useRef(r);return W.useEffect(()=>{t.current=r}),W.useMemo(()=>((...e)=>{var a;return(a=t.current)==null?void 0:a.call(t,...e)}),[])}function Qm(r,t){const{delay:e,flushOnUnmount:a,leading:n}=typeof t=="number"?{delay:t,flushOnUnmount:!1,leading:!1}:t,i=Ms(r),o=W.useRef(0),l=W.useMemo(()=>{const s=Object.assign((...u)=>{window.clearTimeout(o.current);const c=s._isFirstCall;s._isFirstCall=!1;function h(){window.clearTimeout(o.current),o.current=0,s._isFirstCall=!0}if(n&&c){i(...u);const g=()=>{h()},m=()=>{o.current!==0&&(h(),i(...u))},_=()=>{h()};s.flush=m,s.cancel=_,o.current=window.setTimeout(g,e);return}if(n&&!c){const g=()=>{o.current!==0&&(h(),i(...u))},m=()=>{h()};s.flush=g,s.cancel=m;const _=()=>{h()};o.current=window.setTimeout(_,e);return}const d=()=>{o.current!==0&&(h(),i(...u))},p=()=>{h()};s.flush=d,s.cancel=p,o.current=window.setTimeout(d,e)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return s},[i,e,n]);return W.useEffect(()=>()=>{a?l.flush():l.cancel()},[l,a]),l}function GY(r,t){try{return r.addEventListener("change",t),()=>r.removeEventListener("change",t)}catch{return r.addListener(t),()=>r.removeListener(t)}}function HY(r,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(r).matches:!1}function UY(r,t,{getInitialValueInEffect:e}={getInitialValueInEffect:!0}){const[a,n]=W.useState(e?t:HY(r));return W.useEffect(()=>{try{const i=window.matchMedia(r);return n(i.matches),GY(i,o=>n(o.matches))}catch{return}},[r]),a||!1}const dd=typeof document<"u"?W.useLayoutEffect:W.useEffect;function t3(r,t){const e=W.useRef(!1);W.useEffect(()=>()=>{e.current=!1},[]),W.useEffect(()=>{if(e.current)return r();e.current=!0},t)}function FY({opened:r,shouldReturnFocus:t=!0}){const e=W.useRef(null),a=()=>{var n;e.current&&"focus"in e.current&&typeof e.current.focus=="function"&&((n=e.current)==null||n.focus({preventScroll:!0}))};return t3(()=>{let n=-1;const i=o=>{o.key==="Tab"&&window.clearTimeout(n)};return document.addEventListener("keydown",i),r?e.current=document.activeElement:t&&(n=window.setTimeout(a,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",i)}},[r,t]),a}const YY=/input|select|textarea|button|object/,e3="a, input, select, textarea, button, object, [tabindex]";function jY(r){return r.style.display==="none"}function WY(r){if(r.getAttribute("aria-hidden")||r.getAttribute("hidden")||r.getAttribute("type")==="hidden")return!1;let e=r;for(;e&&!(e===document.body||e.nodeType===11);){if(jY(e))return!1;e=e.parentNode}return!0}function r3(r){let t=r.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function ow(r){const t=r.nodeName.toLowerCase(),e=!Number.isNaN(r3(r));return(YY.test(t)&&!r.disabled||r instanceof HTMLAnchorElement&&r.href||e)&&WY(r)}function a3(r){const t=r3(r);return(Number.isNaN(t)||t>=0)&&ow(r)}function XY(r){return Array.from(r.querySelectorAll(e3)).filter(a3)}function $Y(r,t){const e=XY(r);if(!e.length){t.preventDefault();return}const a=e[t.shiftKey?0:e.length-1],n=r.getRootNode();let i=a===n.activeElement||r===n.activeElement;const o=n.activeElement;if(o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(i=e.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===o.getAttribute("name")).includes(a)),!i)return;t.preventDefault();const s=e[t.shiftKey?e.length-1:0];s&&s.focus()}function ZY(r=!0){const t=W.useRef(null),e=n=>{let i=n.querySelector("[data-autofocus]");if(!i){const o=Array.from(n.querySelectorAll(e3));i=o.find(a3)||o.find(ow)||null,!i&&ow(n)&&(i=n)}i&&i.focus({preventScroll:!0})},a=W.useCallback(n=>{r&&n!==null&&t.current!==n&&(n?(setTimeout(()=>{n.getRootNode()&&e(n)}),t.current=n):t.current=null)},[r]);return W.useEffect(()=>{if(!r)return;t.current&&setTimeout(()=>e(t.current));const n=i=>{i.key==="Tab"&&t.current&&$Y(t.current,i)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r]),a}const qY=LC.useId||(()=>{});function KY(){const r=qY();return r?`mantine-${r.replace(/:/g,"")}`:""}function n3(r){const t=KY(),[e,a]=W.useState(t);return dd(()=>{a(VY())},[]),typeof r=="string"?r:typeof window>"u"?t:e}function QY(r,t,e){W.useEffect(()=>(window.addEventListener(r,t,e),()=>window.removeEventListener(r,t,e)),[r,t])}function lw(r,t){if(typeof r=="function")return r(t);typeof r=="object"&&r!==null&&"current"in r&&(r.current=t)}function JY(...r){const t=new Map;return e=>{if(r.forEach(a=>{const n=lw(a,e);n&&t.set(a,n)}),t.size>0)return()=>{r.forEach(a=>{const n=t.get(a);n&&typeof n=="function"?n():lw(a,null)}),t.clear()}}}function nu(...r){return W.useCallback(JY(...r),r)}function tj({value:r,defaultValue:t,finalValue:e,onChange:a=()=>{}}){const[n,i]=W.useState(t!==void 0?t:e),o=(l,...s)=>{i(l),a==null||a(l,...s)};return r!==void 0?[r,a,!0]:[n,o,!1]}function i3(r,t){return UY("(prefers-reduced-motion: reduce)",r,t)}function ej(r){const t=W.Children.toArray(r);return t.length!==1||!RY(t[0])?null:t[0]}function o3(r){var t,e,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(t=0;t{Object.entries(e).forEach(([a,n])=>{t[a]?t[a]=vi(t[a],n):t[a]=n})}),t}function IC({theme:r,classNames:t,props:e,stylesCtx:a}){const i=(Array.isArray(t)?t:[t]).map(o=>typeof o=="function"?o(r,e,a):o||rj);return aj(i)}function sw({theme:r,styles:t,props:e,stylesCtx:a}){return(Array.isArray(t)?t:[t]).reduce((i,o)=>typeof o=="function"?{...i,...o(r,e,a)}:{...i,...o},{})}const l3=W.createContext(null);function Tl(){const r=W.useContext(l3);if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");return r}function nj(){return Tl().cssVariablesResolver}function ij(){return Tl().classNamesPrefix}function OC(){return Tl().getStyleNonce}function oj(){return Tl().withStaticClasses}function lj(){return Tl().headless}function sj(){var r;return(r=Tl().stylesTransform)==null?void 0:r.sx}function uj(){var r;return(r=Tl().stylesTransform)==null?void 0:r.styles}function s3(){return Tl().env||"default"}function cj(r){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r)}function fj(r){let t=r.replace("#","");if(t.length===3){const o=t.split("");t=[o[0],o[0],o[1],o[1],o[2],o[2]].join("")}if(t.length===8){const o=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:o}}const e=parseInt(t,16),a=e>>16&255,n=e>>8&255,i=e&255;return{r:a,g:n,b:i,a:1}}function hj(r){const[t,e,a,n]=r.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:e,b:a,a:n===void 0?1:n}}function vj(r){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,e=r.match(t);if(!e)return{r:0,g:0,b:0,a:1};const a=parseInt(e[1],10),n=parseInt(e[2],10)/100,i=parseInt(e[3],10)/100,o=e[5]?parseFloat(e[5]):void 0,l=(1-Math.abs(2*i-1))*n,s=a/60,u=l*(1-Math.abs(s%2-1)),c=i-l/2;let h,d,p;return s>=0&&s<1?(h=l,d=u,p=0):s>=1&&s<2?(h=u,d=l,p=0):s>=2&&s<3?(h=0,d=l,p=u):s>=3&&s<4?(h=0,d=u,p=l):s>=4&&s<5?(h=u,d=0,p=l):(h=l,d=0,p=u),{r:Math.round((h+c)*255),g:Math.round((d+c)*255),b:Math.round((p+c)*255),a:o||1}}function NC(r){return cj(r)?fj(r):r.startsWith("rgb")?hj(r):r.startsWith("hsl")?vj(r):{r:0,g:0,b:0,a:1}}function eg(r,t){if(r.startsWith("var("))return`color-mix(in srgb, ${r}, black ${t*100}%)`;const{r:e,g:a,b:n,a:i}=NC(r),o=1-t,l=s=>Math.round(s*o);return`rgba(${l(e)}, ${l(a)}, ${l(n)}, ${i})`}function Nv(r,t){return typeof r.primaryShade=="number"?r.primaryShade:t==="dark"?r.primaryShade.dark:r.primaryShade.light}function _S(r){return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}function dj(r){const t=r.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function pj(r){if(r.startsWith("oklch("))return(dj(r)||0)/100;const{r:t,g:e,b:a}=NC(r),n=t/255,i=e/255,o=a/255,l=_S(n),s=_S(i),u=_S(o);return .2126*l+.7152*s+.0722*u}function Dh(r,t=.179){return r.startsWith("var(")?!1:pj(r)>t}function pd({color:r,theme:t,colorScheme:e}){if(typeof r!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof r}`);if(r==="bright")return{color:r,value:e==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Dh(e==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(r==="dimmed")return{color:r,value:e==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Dh(e==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(r==="white"||r==="black")return{color:r,value:r==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Dh(r==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${r}`};const[a,n]=r.split("."),i=n?Number(n):void 0,o=a in t.colors;if(o){const l=i!==void 0?t.colors[a][i]:t.colors[a][Nv(t,e||"light")];return{color:a,value:l,shade:i,isThemeColor:o,isLight:Dh(l,t.luminanceThreshold),variable:n?`--mantine-color-${a}-${i}`:`--mantine-color-${a}-filled`}}return{color:r,value:r,isThemeColor:o,isLight:Dh(r,t.luminanceThreshold),shade:i,variable:void 0}}function Fy(r,t){const e=pd({color:r||t.primaryColor,theme:t});return e.variable?`var(${e.variable})`:r}function PR(r,t){const e={from:(r==null?void 0:r.from)||t.defaultGradient.from,to:(r==null?void 0:r.to)||t.defaultGradient.to,deg:(r==null?void 0:r.deg)??t.defaultGradient.deg??0},a=Fy(e.from,t),n=Fy(e.to,t);return`linear-gradient(${e.deg}deg, ${a} 0%, ${n} 100%)`}function qn(r,t){if(typeof r!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(r.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${r}, transparent ${i}%)`}if(r.startsWith("oklch"))return r.includes("/")?r.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):r.replace(")",` / ${t})`);const{r:e,g:a,b:n}=NC(r);return`rgba(${e}, ${a}, ${n}, ${t})`}const rc=qn,gj=({color:r,theme:t,variant:e,gradient:a,autoContrast:n})=>{const i=pd({color:r,theme:t}),o=typeof n=="boolean"?n:t.autoContrast;if(e==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(e==="filled"){const l=o&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${r}-filled)`,hover:`var(--mantine-color-${r}-filled-hover)`,color:l,border:`${mt(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:l,border:`${mt(1)} solid transparent`}:{background:r,hover:eg(r,.1),color:l,border:`${mt(1)} solid transparent`}}if(e==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${r}-light)`,hover:`var(--mantine-color-${r}-light-hover)`,color:`var(--mantine-color-${r}-light-color)`,border:`${mt(1)} solid transparent`};const l=t.colors[i.color][i.shade];return{background:qn(l,.1),hover:qn(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${mt(1)} solid transparent`}}return{background:qn(r,.1),hover:qn(r,.12),color:r,border:`${mt(1)} solid transparent`}}if(e==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${r}-outline-hover)`,color:`var(--mantine-color-${r}-outline)`,border:`${mt(1)} solid var(--mantine-color-${r}-outline)`}:{background:"transparent",hover:qn(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${mt(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:qn(r,.05),color:r,border:`${mt(1)} solid ${r}`};if(e==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${r}-light-hover)`,color:`var(--mantine-color-${r}-light-color)`,border:`${mt(1)} solid transparent`};const l=t.colors[i.color][i.shade];return{background:"transparent",hover:qn(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${mt(1)} solid transparent`}}return{background:"transparent",hover:qn(r,.12),color:r,border:`${mt(1)} solid transparent`}}return e==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${r}-light-color)`,border:`${mt(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${mt(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:r,border:`${mt(1)} solid transparent`}:e==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:eg(t.white,.01),color:`var(--mantine-color-${r}-filled)`,border:`${mt(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:eg(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${mt(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:eg(t.white,.01),color:r,border:`${mt(1)} solid transparent`}:e==="gradient"?{background:PR(a,t),hover:PR(a,t),color:"var(--mantine-color-white)",border:"none"}:e==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${mt(1)} solid var(--mantine-color-default-border)`}:{}},yj={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},kR="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",zC={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:yj,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:gj,autoContrast:!1,luminanceThreshold:.3,fontFamily:kR,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:kR,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:mt(34),lineHeight:"1.3"},h2:{fontSize:mt(26),lineHeight:"1.35"},h3:{fontSize:mt(22),lineHeight:"1.4"},h4:{fontSize:mt(18),lineHeight:"1.45"},h5:{fontSize:mt(16),lineHeight:"1.5"},h6:{fontSize:mt(14),lineHeight:"1.5"}}},fontSizes:{xs:mt(12),sm:mt(14),md:mt(16),lg:mt(18),xl:mt(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:mt(2),sm:mt(4),md:mt(8),lg:mt(16),xl:mt(32)},spacing:{xs:mt(10),sm:mt(12),md:mt(16),lg:mt(20),xl:mt(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${mt(1)} ${mt(3)} rgba(0, 0, 0, 0.05), 0 ${mt(1)} ${mt(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${mt(1)} ${mt(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${mt(10)} ${mt(15)} ${mt(-5)}, rgba(0, 0, 0, 0.04) 0 ${mt(7)} ${mt(7)} ${mt(-5)}`,md:`0 ${mt(1)} ${mt(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${mt(20)} ${mt(25)} ${mt(-5)}, rgba(0, 0, 0, 0.04) 0 ${mt(10)} ${mt(10)} ${mt(-5)}`,lg:`0 ${mt(1)} ${mt(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${mt(28)} ${mt(23)} ${mt(-7)}, rgba(0, 0, 0, 0.04) 0 ${mt(12)} ${mt(12)} ${mt(-7)}`,xl:`0 ${mt(1)} ${mt(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${mt(36)} ${mt(28)} ${mt(-7)}, rgba(0, 0, 0, 0.04) 0 ${mt(17)} ${mt(17)} ${mt(-7)}`},other:{},components:{}};function BR(r){return r==="auto"||r==="dark"||r==="light"}function mj({key:r="mantine-color-scheme-value"}={}){let t;return{get:e=>{if(typeof window>"u")return e;try{const a=window.localStorage.getItem(r);return BR(a)?a:e}catch{return e}},set:e=>{try{window.localStorage.setItem(r,e)}catch(a){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",a)}},subscribe:e=>{t=a=>{a.storageArea===window.localStorage&&a.key===r&&BR(a.newValue)&&e(a.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(r)}}}const _j="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",VR="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function SS(r){return r<0||r>9?!1:parseInt(r.toString(),10)===r}function GR(r){if(!(r.primaryColor in r.colors))throw new Error(_j);if(typeof r.primaryShade=="object"&&(!SS(r.primaryShade.dark)||!SS(r.primaryShade.light)))throw new Error(VR);if(typeof r.primaryShade=="number"&&!SS(r.primaryShade))throw new Error(VR)}function Sj(r,t){var a;if(!t)return GR(r),r;const e=EC(r,t);return t.fontFamily&&!((a=t.headings)!=null&&a.fontFamily)&&(e.headings.fontFamily=t.fontFamily),GR(e),e}const PC=W.createContext(null),bj=()=>W.useContext(PC)||zC;function Cl(){const r=W.useContext(PC);if(!r)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return r}function u3({theme:r,children:t,inherit:e=!0}){const a=bj(),n=W.useMemo(()=>Sj(e?a:zC,r),[r,a,e]);return V.jsx(PC.Provider,{value:n,children:t})}u3.displayName="@mantine/core/MantineThemeProvider";function xj(){const r=Cl(),t=OC(),e=si(r.breakpoints).reduce((a,n)=>{const i=r.breakpoints[n].includes("px"),o=EY(r.breakpoints[n]),l=i?`${o-.1}px`:NR(o-.1),s=i?`${o}px`:NR(o);return`${a}@media (max-width: ${l}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${s}) {.mantine-hidden-from-${n} {display: none !important;}}`},"");return V.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:e}})}function bS(r){return Object.entries(r).map(([t,e])=>`${t}: ${e};`).join("")}function c3(r,t){const e=t?[t]:[":root",":host"],a=bS(r.variables),n=a?`${e.join(", ")}{${a}}`:"",i=bS(r.dark),o=bS(r.light),l=c=>e.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${c}"])`:`${h}[data-mantine-color-scheme="${c}"]`).join(", "),s=i?`${l("dark")}{${i}}`:"",u=o?`${l("light")}{${o}}`:"";return`${n} - -${s} - -${u}`}function f3({color:r,theme:t,autoContrast:e}){return(typeof e=="boolean"?e:t.autoContrast)&&pd({color:r||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function HR(r,t){return f3({color:r.colors[r.primaryColor][Nv(r,t)],theme:r,autoContrast:null})}function rg({theme:r,color:t,colorScheme:e,name:a=t,withColorValues:n=!0}){if(!r.colors[t])return{};if(e==="light"){const l=Nv(r,"light"),s={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-filled)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${l})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${l===9?8:l+1})`,[`--mantine-color-${a}-light`]:rc(r.colors[t][l],.1),[`--mantine-color-${a}-light-hover`]:rc(r.colors[t][l],.12),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${l})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${l})`,[`--mantine-color-${a}-outline-hover`]:rc(r.colors[t][l],.05)};return n?{[`--mantine-color-${a}-0`]:r.colors[t][0],[`--mantine-color-${a}-1`]:r.colors[t][1],[`--mantine-color-${a}-2`]:r.colors[t][2],[`--mantine-color-${a}-3`]:r.colors[t][3],[`--mantine-color-${a}-4`]:r.colors[t][4],[`--mantine-color-${a}-5`]:r.colors[t][5],[`--mantine-color-${a}-6`]:r.colors[t][6],[`--mantine-color-${a}-7`]:r.colors[t][7],[`--mantine-color-${a}-8`]:r.colors[t][8],[`--mantine-color-${a}-9`]:r.colors[t][9],...s}:s}const i=Nv(r,"dark"),o={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-4)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${i})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${i===9?8:i+1})`,[`--mantine-color-${a}-light`]:rc(r.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${a}-light-hover`]:rc(r.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${Math.max(i-5,0)})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${Math.max(i-4,0)})`,[`--mantine-color-${a}-outline-hover`]:rc(r.colors[t][Math.max(i-4,0)],.05)};return n?{[`--mantine-color-${a}-0`]:r.colors[t][0],[`--mantine-color-${a}-1`]:r.colors[t][1],[`--mantine-color-${a}-2`]:r.colors[t][2],[`--mantine-color-${a}-3`]:r.colors[t][3],[`--mantine-color-${a}-4`]:r.colors[t][4],[`--mantine-color-${a}-5`]:r.colors[t][5],[`--mantine-color-${a}-6`]:r.colors[t][6],[`--mantine-color-${a}-7`]:r.colors[t][7],[`--mantine-color-${a}-8`]:r.colors[t][8],[`--mantine-color-${a}-9`]:r.colors[t][9],...o}:o}function wj(r){return!!r&&typeof r=="object"&&"mantine-virtual-color"in r}function ac(r,t,e){si(t).forEach(a=>Object.assign(r,{[`--mantine-${e}-${a}`]:t[a]}))}const h3=r=>{const t=Nv(r,"light"),e=r.defaultRadius in r.radius?r.radius[r.defaultRadius]:mt(r.defaultRadius),a={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":r.scale.toString(),"--mantine-cursor-type":r.cursorType,"--mantine-webkit-font-smoothing":r.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":r.fontSmoothing?"grayscale":"unset","--mantine-color-white":r.white,"--mantine-color-black":r.black,"--mantine-line-height":r.lineHeights.md,"--mantine-font-family":r.fontFamily,"--mantine-font-family-monospace":r.fontFamilyMonospace,"--mantine-font-family-headings":r.headings.fontFamily,"--mantine-heading-font-weight":r.headings.fontWeight,"--mantine-heading-text-wrap":r.headings.textWrap,"--mantine-radius-default":e,"--mantine-primary-color-filled":`var(--mantine-color-${r.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${r.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${r.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${r.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${r.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":HR(r,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":r.black,"--mantine-color-body":r.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${r.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":HR(r,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${r.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ac(a.variables,r.breakpoints,"breakpoint"),ac(a.variables,r.spacing,"spacing"),ac(a.variables,r.fontSizes,"font-size"),ac(a.variables,r.lineHeights,"line-height"),ac(a.variables,r.shadows,"shadow"),ac(a.variables,r.radius,"radius"),r.colors[r.primaryColor].forEach((i,o)=>{a.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${r.primaryColor}-${o})`}),si(r.colors).forEach(i=>{const o=r.colors[i];if(wj(o)){Object.assign(a.light,rg({theme:r,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(a.dark,rg({theme:r,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((l,s)=>{a.variables[`--mantine-color-${i}-${s}`]=l}),Object.assign(a.light,rg({theme:r,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(a.dark,rg({theme:r,color:i,colorScheme:"dark",withColorValues:!1}))});const n=r.headings.sizes;return si(n).forEach(i=>{a.variables[`--mantine-${i}-font-size`]=n[i].fontSize,a.variables[`--mantine-${i}-line-height`]=n[i].lineHeight,a.variables[`--mantine-${i}-font-weight`]=n[i].fontWeight||r.headings.fontWeight}),a};function Tj({theme:r,generator:t}){const e=h3(r),a=t==null?void 0:t(r);return a?EC(e,a):e}const xS=h3(zC);function Cj(r){const t={variables:{},light:{},dark:{}};return si(r.variables).forEach(e=>{xS.variables[e]!==r.variables[e]&&(t.variables[e]=r.variables[e])}),si(r.light).forEach(e=>{xS.light[e]!==r.light[e]&&(t.light[e]=r.light[e])}),si(r.dark).forEach(e=>{xS.dark[e]!==r.dark[e]&&(t.dark[e]=r.dark[e])}),t}function Aj(r){return c3({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},r)}function v3({cssVariablesSelector:r,deduplicateCssVariables:t}){const e=Cl(),a=OC(),n=nj(),i=Tj({theme:e,generator:n}),o=(r===void 0||r===":root"||r===":host")&&t,l=o?Cj(i):i,s=c3(l,r);return s?V.jsx("style",{"data-mantine-styles":!0,nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:`${s}${o?"":Aj(r)}`}}):null}v3.displayName="@mantine/CssVariables";function nc(r,t){var n,i;const e=typeof window<"u"&&"matchMedia"in window&&((n=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:n.matches),a=r!=="auto"?r:e?"dark":"light";(i=t())==null||i.setAttribute("data-mantine-color-scheme",a)}function Mj({manager:r,defaultColorScheme:t,getRootElement:e,forceColorScheme:a}){const n=W.useRef(null),[i,o]=W.useState(()=>r.get(t)),l=a||i,s=W.useCallback(c=>{a||(nc(c,e),o(c),r.set(c))},[r.set,l,a]),u=W.useCallback(()=>{o(t),nc(t,e),r.clear()},[r.clear,t]);return W.useEffect(()=>(r.subscribe(s),r.unsubscribe),[r.subscribe,r.unsubscribe]),dd(()=>{nc(r.get(t),e)},[]),W.useEffect(()=>{var h;if(a)return nc(a,e),()=>{};a===void 0&&nc(i,e),typeof window<"u"&&"matchMedia"in window&&(n.current=window.matchMedia("(prefers-color-scheme: dark)"));const c=d=>{i==="auto"&&nc(d.matches?"dark":"light",e)};return(h=n.current)==null||h.addEventListener("change",c),()=>{var d;return(d=n.current)==null?void 0:d.removeEventListener("change",c)}},[i,a]),{colorScheme:l,setColorScheme:s,clearColorScheme:u}}function Dj({respectReducedMotion:r,getRootElement:t}){dd(()=>{var e;r&&((e=t())==null||e.setAttribute("data-respect-reduced-motion","true"))},[r])}function d3({theme:r,children:t,getStyleNonce:e,withStaticClasses:a=!0,withGlobalClasses:n=!0,deduplicateCssVariables:i=!0,withCssVariables:o=!0,cssVariablesSelector:l,classNamesPrefix:s="mantine",colorSchemeManager:u=mj(),defaultColorScheme:c="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:d,forceColorScheme:p,stylesTransform:g,env:m}){const{colorScheme:_,setColorScheme:S,clearColorScheme:x}=Mj({defaultColorScheme:c,forceColorScheme:p,manager:u,getRootElement:h});return Dj({respectReducedMotion:(r==null?void 0:r.respectReducedMotion)||!1,getRootElement:h}),V.jsx(l3.Provider,{value:{colorScheme:_,setColorScheme:S,clearColorScheme:x,getRootElement:h,classNamesPrefix:s,getStyleNonce:e,cssVariablesResolver:d,cssVariablesSelector:l??":root",withStaticClasses:a,stylesTransform:g,env:m},children:V.jsxs(u3,{theme:r,children:[o&&V.jsx(v3,{cssVariablesSelector:l,deduplicateCssVariables:i}),n&&V.jsx(xj,{}),t]})})}d3.displayName="@mantine/core/MantineProvider";const Lj={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Ej({theme:r,options:t,unstyled:e}){return vi((t==null?void 0:t.focusable)&&!e&&(r.focusClassName||Lj[r.focusRing]),(t==null?void 0:t.active)&&!e&&r.activeClassName)}function Rj({selector:r,stylesCtx:t,options:e,props:a,theme:n}){return IC({theme:n,classNames:e==null?void 0:e.classNames,props:(e==null?void 0:e.props)||a,stylesCtx:t})[r]}function UR({selector:r,stylesCtx:t,theme:e,classNames:a,props:n}){return IC({theme:e,classNames:a,props:n,stylesCtx:t})[r]}function Ij({rootSelector:r,selector:t,className:e}){return r===t?e:void 0}function Oj({selector:r,classes:t,unstyled:e}){return e?void 0:t[r]}function Nj({themeName:r,classNamesPrefix:t,selector:e,withStaticClass:a}){return a===!1?[]:r.map(n=>`${t}-${n}-${e}`)}function zj({themeName:r,theme:t,selector:e,props:a,stylesCtx:n}){return r.map(i=>{var o,l;return(l=IC({theme:t,classNames:(o=t.components[i])==null?void 0:o.classNames,props:a,stylesCtx:n}))==null?void 0:l[e]})}function Pj({options:r,classes:t,selector:e,unstyled:a}){return r!=null&&r.variant&&!a?t[`${e}--${r.variant}`]:void 0}function kj({theme:r,options:t,themeName:e,selector:a,classNamesPrefix:n,classNames:i,classes:o,unstyled:l,className:s,rootSelector:u,props:c,stylesCtx:h,withStaticClasses:d,headless:p,transformedStyles:g}){return vi(Ej({theme:r,options:t,unstyled:l||p}),zj({theme:r,themeName:e,selector:a,props:c,stylesCtx:h}),Pj({options:t,classes:o,selector:a,unstyled:l}),UR({selector:a,stylesCtx:h,theme:r,classNames:i,props:c}),UR({selector:a,stylesCtx:h,theme:r,classNames:g,props:c}),Rj({selector:a,stylesCtx:h,options:t,props:c,theme:r}),Ij({rootSelector:u,selector:a,className:s}),Oj({selector:a,classes:o,unstyled:l||p}),d&&!p&&Nj({themeName:e,classNamesPrefix:n,selector:a,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function Bj({theme:r,themeName:t,props:e,stylesCtx:a,selector:n}){return t.map(i=>{var o;return sw({theme:r,styles:(o=r.components[i])==null?void 0:o.styles,props:e,stylesCtx:a})[n]}).reduce((i,o)=>({...i,...o}),{})}function uw({style:r,theme:t}){return Array.isArray(r)?[...r].reduce((e,a)=>({...e,...uw({style:a,theme:t})}),{}):typeof r=="function"?r(t):r??{}}function Vj(r){return r.reduce((t,e)=>(e&&Object.keys(e).forEach(a=>{t[a]={...t[a],...RC(e[a])}}),t),{})}function Gj({vars:r,varsResolver:t,theme:e,props:a,stylesCtx:n,selector:i,themeName:o,headless:l}){var s;return(s=Vj([l?{}:t==null?void 0:t(e,a,n),...o.map(u=>{var c,h,d;return(d=(h=(c=e.components)==null?void 0:c[u])==null?void 0:h.vars)==null?void 0:d.call(h,e,a,n)}),r==null?void 0:r(e,a,n)]))==null?void 0:s[i]}function Hj({theme:r,themeName:t,selector:e,options:a,props:n,stylesCtx:i,rootSelector:o,styles:l,style:s,vars:u,varsResolver:c,headless:h,withStylesTransform:d}){return{...!d&&Bj({theme:r,themeName:t,props:n,stylesCtx:i,selector:e}),...!d&&sw({theme:r,styles:l,props:n,stylesCtx:i})[e],...!d&&sw({theme:r,styles:a==null?void 0:a.styles,props:(a==null?void 0:a.props)||n,stylesCtx:i})[e],...Gj({theme:r,props:n,stylesCtx:i,vars:u,varsResolver:c,selector:e,themeName:t,headless:h}),...o===e?uw({style:s,theme:r}):null,...uw({style:a==null?void 0:a.style,theme:r})}}function Uj({props:r,stylesCtx:t,themeName:e}){var o;const a=Cl(),n=(o=uj())==null?void 0:o();return{getTransformedStyles:l=>n?[...l.map(u=>n(u,{props:r,theme:a,ctx:t})),...e.map(u=>{var c;return n((c=a.components[u])==null?void 0:c.styles,{props:r,theme:a,ctx:t})})].filter(Boolean):[],withStylesTransform:!!n}}function Al({name:r,classes:t,props:e,stylesCtx:a,className:n,style:i,rootSelector:o="root",unstyled:l,classNames:s,styles:u,vars:c,varsResolver:h,attributes:d}){const p=Cl(),g=ij(),m=oj(),_=lj(),S=(Array.isArray(r)?r:[r]).filter(C=>C),{withStylesTransform:x,getTransformedStyles:w}=Uj({props:e,stylesCtx:a,themeName:S});return(C,A)=>({className:kj({theme:p,options:A,themeName:S,selector:C,classNamesPrefix:g,classNames:s,classes:t,unstyled:l,className:n,rootSelector:o,props:e,stylesCtx:a,withStaticClasses:m,headless:_,transformedStyles:w([A==null?void 0:A.styles,u])}),style:Hj({theme:p,themeName:S,selector:C,options:A,props:e,stylesCtx:a,rootSelector:o,styles:u,style:i,vars:c,varsResolver:h,headless:_,withStylesTransform:x}),...d==null?void 0:d[C]})}function Fj(r,t){return typeof r=="boolean"?r:t.autoContrast}function ir(r,t,e){var o;const a=Cl(),n=(o=a.components[r])==null?void 0:o.defaultProps,i=typeof n=="function"?n(a):n;return{...t,...i,...RC(e)}}function wS(r){return si(r).reduce((t,e)=>r[e]!==void 0?`${t}${DY(e)}:${r[e]};`:t,"").trim()}function Yj({selector:r,styles:t,media:e,container:a}){const n=t?wS(t):"",i=Array.isArray(e)?e.map(l=>`@media${l.query}{${r}{${wS(l.styles)}}}`):[],o=Array.isArray(a)?a.map(l=>`@container ${l.query}{${r}{${wS(l.styles)}}}`):[];return`${n?`${r}{${n}}`:""}${i.join("")}${o.join("")}`.trim()}function jj(r){const t=OC();return V.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:Yj(r)}})}function Wj(r){const{m:t,mx:e,my:a,mt:n,mb:i,ml:o,mr:l,me:s,ms:u,p:c,px:h,py:d,pt:p,pb:g,pl:m,pr:_,pe:S,ps:x,bd:w,bdrs:C,bg:A,c:M,opacity:L,ff:E,fz:R,fw:I,lts:N,ta:B,lh:P,fs:F,tt:H,td:k,w:j,miw:Y,maw:$,h:q,mih:G,mah:X,bgsz:tt,bgp:rt,bgr:vt,bga:Tt,pos:Nt,top:xt,left:gt,bottom:Pt,right:_t,inset:Ot,display:ve,flex:jt,hiddenFrom:ne,visibleFrom:se,lightHidden:Ue,darkHidden:xr,sx:lr,...ma}=r;return{styleProps:RC({m:t,mx:e,my:a,mt:n,mb:i,ml:o,mr:l,me:s,ms:u,p:c,px:h,py:d,pt:p,pb:g,pl:m,pr:_,pe:S,ps:x,bd:w,bg:A,c:M,opacity:L,ff:E,fz:R,fw:I,lts:N,ta:B,lh:P,fs:F,tt:H,td:k,w:j,miw:Y,maw:$,h:q,mih:G,mah:X,bgsz:tt,bgp:rt,bgr:vt,bga:Tt,pos:Nt,top:xt,left:gt,bottom:Pt,right:_t,inset:Ot,display:ve,flex:jt,bdrs:C,hiddenFrom:ne,visibleFrom:se,lightHidden:Ue,darkHidden:xr,sx:lr}),rest:ma}}const Xj={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function kC(r,t){const e=pd({color:r,theme:t});return e.color==="dimmed"?"var(--mantine-color-dimmed)":e.color==="bright"?"var(--mantine-color-bright)":e.variable?`var(${e.variable})`:e.color}function $j(r,t){const e=pd({color:r,theme:t});return e.isThemeColor&&e.shade===void 0?`var(--mantine-color-${e.color}-text)`:kC(r,t)}function Zj(r,t){if(typeof r=="number")return mt(r);if(typeof r=="string"){const[e,a,...n]=r.split(" ").filter(o=>o.trim()!=="");let i=`${mt(e)}`;return a&&(i+=` ${a}`),n.length>0&&(i+=` ${kC(n.join(" "),t)}`),i.trim()}return r}const FR={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function qj(r){return typeof r=="string"&&r in FR?FR[r]:r}const Kj=["h1","h2","h3","h4","h5","h6"];function Qj(r,t){return typeof r=="string"&&r in t.fontSizes?`var(--mantine-font-size-${r})`:typeof r=="string"&&Kj.includes(r)?`var(--mantine-${r}-font-size)`:typeof r=="number"||typeof r=="string"?mt(r):r}function Jj(r){return r}const tW=["h1","h2","h3","h4","h5","h6"];function eW(r,t){return typeof r=="string"&&r in t.lineHeights?`var(--mantine-line-height-${r})`:typeof r=="string"&&tW.includes(r)?`var(--mantine-${r}-line-height)`:r}function rW(r,t){return typeof r=="string"&&r in t.radius?`var(--mantine-radius-${r})`:typeof r=="number"||typeof r=="string"?mt(r):r}function aW(r){return typeof r=="number"?mt(r):r}function nW(r,t){if(typeof r=="number")return mt(r);if(typeof r=="string"){const e=r.replace("-","");if(!(e in t.spacing))return mt(r);const a=`--mantine-spacing-${e}`;return r.startsWith("-")?`calc(var(${a}) * -1)`:`var(${a})`}return r}const TS={color:kC,textColor:$j,fontSize:Qj,spacing:nW,radius:rW,identity:Jj,size:aW,lineHeight:eW,fontFamily:qj,border:Zj};function YR(r){return r.replace("(min-width: ","").replace("em)","")}function iW({media:r,...t}){const a=Object.keys(r).sort((n,i)=>Number(YR(n))-Number(YR(i))).map(n=>({query:n,styles:r[n]}));return{...t,media:a}}function oW(r){if(typeof r!="object"||r===null)return!1;const t=Object.keys(r);return!(t.length===1&&t[0]==="base")}function lW(r){return typeof r=="object"&&r!==null?"base"in r?r.base:void 0:r}function sW(r){return typeof r=="object"&&r!==null?si(r).filter(t=>t!=="base"):[]}function uW(r,t){return typeof r=="object"&&r!==null&&t in r?r[t]:r}function cW({styleProps:r,data:t,theme:e}){return iW(si(r).reduce((a,n)=>{if(n==="hiddenFrom"||n==="visibleFrom"||n==="sx")return a;const i=t[n],o=Array.isArray(i.property)?i.property:[i.property],l=lW(r[n]);if(!oW(r[n]))return o.forEach(u=>{a.inlineStyles[u]=TS[i.type](l,e)}),a;a.hasResponsiveStyles=!0;const s=sW(r[n]);return o.forEach(u=>{l!=null&&(a.styles[u]=TS[i.type](l,e)),s.forEach(c=>{const h=`(min-width: ${e.breakpoints[c]})`;a.media[h]={...a.media[h],[u]:TS[i.type](uW(r[n],c),e)}})}),a},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function fW(){return`__m__-${W.useId().replace(/[:«»]/g,"")}`}function p3(r){return r.startsWith("data-")?r:`data-${r}`}function hW(r){return Object.keys(r).reduce((t,e)=>{const a=r[e];return a===void 0||a===""||a===!1||a===null||(t[p3(e)]=r[e]),t},{})}function g3(r){return r?typeof r=="string"?{[p3(r)]:!0}:Array.isArray(r)?[...r].reduce((t,e)=>({...t,...g3(e)}),{}):hW(r):null}function cw(r,t){return Array.isArray(r)?[...r].reduce((e,a)=>({...e,...cw(a,t)}),{}):typeof r=="function"?r(t):r??{}}function vW({theme:r,style:t,vars:e,styleProps:a}){const n=cw(t,r),i=cw(e,r);return{...n,...i,...a}}const y3=W.forwardRef(({component:r,style:t,__vars:e,className:a,variant:n,mod:i,size:o,hiddenFrom:l,visibleFrom:s,lightHidden:u,darkHidden:c,renderRoot:h,__size:d,...p},g)=>{var E;const m=Cl(),_=r||"div",{styleProps:S,rest:x}=Wj(p),w=sj(),C=(E=w==null?void 0:w())==null?void 0:E(S.sx),A=fW(),M=cW({styleProps:S,theme:m,data:Xj}),L={ref:g,style:vW({theme:m,style:t,vars:e,styleProps:M.inlineStyles}),className:vi(a,C,{[A]:M.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${s}`]:s}),"data-variant":n,"data-size":QB(o)?void 0:o||void 0,size:d,...g3(i),...x};return V.jsxs(V.Fragment,{children:[M.hasResponsiveStyles&&V.jsx(jj,{selector:`.${A}`,styles:M.styles,media:M.media}),typeof h=="function"?h(L):V.jsx(_,{...L})]})});y3.displayName="@mantine/core/Box";const aa=y3;function m3(r){return r}function Gr(r){const t=W.forwardRef(r);return t.extend=m3,t.withProps=e=>{const a=W.forwardRef((n,i)=>V.jsx(t,{...e,...n,ref:i}));return a.extend=t.extend,a.displayName=`WithProps(${t.displayName})`,a},t}function Jm(r){const t=W.forwardRef(r);return t.withProps=e=>{const a=W.forwardRef((n,i)=>V.jsx(t,{...e,...n,ref:i}));return a.extend=t.extend,a.displayName=`WithProps(${t.displayName})`,a},t.extend=m3,t}const dW=W.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function _3(){return W.useContext(dW)}var S3=UB();const pW=HB(S3);function b3(r){const t=W.useRef(void 0),e=W.useCallback(a=>{const n=r.map(i=>{if(i!=null){if(typeof i=="function"){const o=i,l=o(a);return typeof l=="function"?l:()=>{o(null)}}return i.current=a,()=>{i.current=null}}});return()=>{n.forEach(i=>i==null?void 0:i())}},r);return W.useMemo(()=>r.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=e(a))},r)}var BC={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[gW,vn]=fd("ScrollArea.Root component was not found in tree");function qc(r,t){const e=Ms(t);dd(()=>{let a=0;if(r){const n=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(e)});return n.observe(r),()=>{window.cancelAnimationFrame(a),n.unobserve(r)}}},[r,e])}const yW=W.forwardRef((r,t)=>{const{style:e,...a}=r,n=vn(),[i,o]=W.useState(0),[l,s]=W.useState(0),u=!!(i&&l);return qc(n.scrollbarX,()=>{var h;const c=((h=n.scrollbarX)==null?void 0:h.offsetHeight)||0;n.onCornerHeightChange(c),s(c)}),qc(n.scrollbarY,()=>{var h;const c=((h=n.scrollbarY)==null?void 0:h.offsetWidth)||0;n.onCornerWidthChange(c),o(c)}),u?V.jsx("div",{...a,ref:t,style:{...e,width:i,height:l}}):null}),mW=W.forwardRef((r,t)=>{const e=vn(),a=!!(e.scrollbarX&&e.scrollbarY);return e.type!=="scroll"&&a?V.jsx(yW,{...r,ref:t}):null}),_W={scrollHideDelay:1e3,type:"hover"},x3=W.forwardRef((r,t)=>{const{type:e,scrollHideDelay:a,scrollbars:n,getStyles:i,...o}=ir("ScrollAreaRoot",_W,r),[l,s]=W.useState(null),[u,c]=W.useState(null),[h,d]=W.useState(null),[p,g]=W.useState(null),[m,_]=W.useState(null),[S,x]=W.useState(0),[w,C]=W.useState(0),[A,M]=W.useState(!1),[L,E]=W.useState(!1),R=nu(t,I=>s(I));return V.jsx(gW,{value:{type:e,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:h,onContentChange:d,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:A,onScrollbarXEnabledChange:M,scrollbarY:m,onScrollbarYChange:_,scrollbarYEnabled:L,onScrollbarYEnabledChange:E,onCornerWidthChange:x,onCornerHeightChange:C,getStyles:i},children:V.jsx(aa,{...o,ref:R,__vars:{"--sa-corner-width":n!=="xy"?"0px":`${S}px`,"--sa-corner-height":n!=="xy"?"0px":`${w}px`}})})});x3.displayName="@mantine/core/ScrollAreaRoot";function w3(r,t){const e=r/t;return Number.isNaN(e)?0:e}function t0(r){const t=w3(r.viewport,r.content),e=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,a=(r.scrollbar.size-e)*t;return Math.max(a,18)}function T3(r,t){return e=>{if(r[0]===r[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(r[1]-r[0]);return t[0]+a*(e-r[0])}}function SW(r,[t,e]){return Math.min(e,Math.max(t,r))}function jR(r,t,e="ltr"){const a=t0(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,o=t.content-t.viewport,l=i-a,s=e==="ltr"?[0,o]:[o*-1,0],u=SW(r,s);return T3([0,o],[0,l])(u)}function bW(r,t,e,a="ltr"){const n=t0(e),i=n/2,o=t||i,l=n-o,s=e.scrollbar.paddingStart+o,u=e.scrollbar.size-e.scrollbar.paddingEnd-l,c=e.content-e.viewport,h=a==="ltr"?[0,c]:[c*-1,0];return T3([s,u],h)(r)}function C3(r,t){return r>0&&r{r==null||r(a),(e===!1||!a.defaultPrevented)&&(t==null||t(a))}}const[xW,A3]=fd("ScrollAreaScrollbar was not found in tree"),M3=W.forwardRef((r,t)=>{const{sizes:e,hasThumb:a,onThumbChange:n,onThumbPointerUp:i,onThumbPointerDown:o,onThumbPositionChange:l,onDragScroll:s,onWheelScroll:u,onResize:c,...h}=r,d=vn(),[p,g]=W.useState(null),m=nu(t,E=>g(E)),_=W.useRef(null),S=W.useRef(""),{viewport:x}=d,w=e.content-e.viewport,C=Ms(u),A=Ms(l),M=Qm(c,10),L=E=>{if(_.current){const R=E.clientX-_.current.left,I=E.clientY-_.current.top;s({x:R,y:I})}};return W.useEffect(()=>{const E=R=>{const I=R.target;(p==null?void 0:p.contains(I))&&C(R,w)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[x,p,w,C]),W.useEffect(A,[e,A]),qc(p,M),qc(d.content,M),V.jsx(xW,{value:{scrollbar:p,hasThumb:a,onThumbChange:Ms(n),onThumbPointerUp:Ms(i),onThumbPositionChange:A,onThumbPointerDown:Ms(o)},children:V.jsx("div",{...h,ref:m,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:Vs(r.onPointerDown,E=>{E.preventDefault(),E.button===0&&(E.target.setPointerCapture(E.pointerId),_.current=p.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",L(E))}),onPointerMove:Vs(r.onPointerMove,L),onPointerUp:Vs(r.onPointerUp,E=>{const R=E.target;R.hasPointerCapture(E.pointerId)&&(E.preventDefault(),R.releasePointerCapture(E.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=S.current,_.current=null}})})}),D3=W.forwardRef((r,t)=>{const{sizes:e,onSizesChange:a,style:n,...i}=r,o=vn(),[l,s]=W.useState(),u=W.useRef(null),c=nu(t,u,o.onScrollbarXChange);return W.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),V.jsx(M3,{"data-orientation":"horizontal",...i,ref:c,sizes:e,style:{...n,"--sa-thumb-width":`${t0(e)}px`},onThumbPointerDown:h=>r.onThumbPointerDown(h.x),onDragScroll:h=>r.onDragScroll(h.x),onWheelScroll:(h,d)=>{if(o.viewport){const p=o.viewport.scrollLeft+h.deltaX;r.onWheelScroll(p),C3(p,d)&&h.preventDefault()}},onResize:()=>{u.current&&o.viewport&&l&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Yy(l.paddingLeft),paddingEnd:Yy(l.paddingRight)}})}})});D3.displayName="@mantine/core/ScrollAreaScrollbarX";const L3=W.forwardRef((r,t)=>{const{sizes:e,onSizesChange:a,style:n,...i}=r,o=vn(),[l,s]=W.useState(),u=W.useRef(null),c=nu(t,u,o.onScrollbarYChange);return W.useEffect(()=>{u.current&&s(window.getComputedStyle(u.current))},[]),V.jsx(M3,{...i,"data-orientation":"vertical",ref:c,sizes:e,style:{"--sa-thumb-height":`${t0(e)}px`,...n},onThumbPointerDown:h=>r.onThumbPointerDown(h.y),onDragScroll:h=>r.onDragScroll(h.y),onWheelScroll:(h,d)=>{if(o.viewport){const p=o.viewport.scrollTop+h.deltaY;r.onWheelScroll(p),C3(p,d)&&h.preventDefault()}},onResize:()=>{u.current&&o.viewport&&l&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Yy(l.paddingTop),paddingEnd:Yy(l.paddingBottom)}})}})});L3.displayName="@mantine/core/ScrollAreaScrollbarY";const e0=W.forwardRef((r,t)=>{const{orientation:e="vertical",...a}=r,{dir:n}=_3(),i=vn(),o=W.useRef(null),l=W.useRef(0),[s,u]=W.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=w3(s.viewport,s.content),h={...a,sizes:s,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:p=>{o.current=p},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:p=>{l.current=p}},d=(p,g)=>bW(p,l.current,s,g);return e==="horizontal"?V.jsx(D3,{...h,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const p=i.viewport.scrollLeft,g=jR(p,s,n);o.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollLeft=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollLeft=d(p,n))}}):e==="vertical"?V.jsx(L3,{...h,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const p=i.viewport.scrollTop,g=jR(p,s);s.scrollbar.size===0?o.current.style.setProperty("--thumb-opacity","0"):o.current.style.setProperty("--thumb-opacity","1"),o.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollTop=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollTop=d(p))}}):null});e0.displayName="@mantine/core/ScrollAreaScrollbarVisible";const VC=W.forwardRef((r,t)=>{const e=vn(),{forceMount:a,...n}=r,[i,o]=W.useState(!1),l=r.orientation==="horizontal",s=Qm(()=>{if(e.viewport){const u=e.viewport.offsetWidth{const{forceMount:e,...a}=r,n=vn(),[i,o]=W.useState(!1);return W.useEffect(()=>{const{scrollArea:l}=n;let s=0;if(l){const u=()=>{window.clearTimeout(s),o(!0)},c=()=>{s=window.setTimeout(()=>o(!1),n.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[n.scrollArea,n.scrollHideDelay]),e||i?V.jsx(VC,{"data-state":i?"visible":"hidden",...a,ref:t}):null});E3.displayName="@mantine/core/ScrollAreaScrollbarHover";const wW=W.forwardRef((r,t)=>{const{forceMount:e,...a}=r,n=vn(),i=r.orientation==="horizontal",[o,l]=W.useState("hidden"),s=Qm(()=>l("idle"),100);return W.useEffect(()=>{if(o==="idle"){const u=window.setTimeout(()=>l("hidden"),n.scrollHideDelay);return()=>window.clearTimeout(u)}},[o,n.scrollHideDelay]),W.useEffect(()=>{const{viewport:u}=n,c=i?"scrollLeft":"scrollTop";if(u){let h=u[c];const d=()=>{const p=u[c];h!==p&&(l("scrolling"),s()),h=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[n.viewport,i,s]),e||o!=="hidden"?V.jsx(e0,{"data-state":o==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:Vs(r.onPointerEnter,()=>l("interacting")),onPointerLeave:Vs(r.onPointerLeave,()=>l("idle"))}):null}),fw=W.forwardRef((r,t)=>{const{forceMount:e,...a}=r,n=vn(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=n,l=r.orientation==="horizontal";return W.useEffect(()=>(l?i(!0):o(!0),()=>{l?i(!1):o(!1)}),[l,i,o]),n.type==="hover"?V.jsx(E3,{...a,ref:t,forceMount:e}):n.type==="scroll"?V.jsx(wW,{...a,ref:t,forceMount:e}):n.type==="auto"?V.jsx(VC,{...a,ref:t,forceMount:e}):n.type==="always"?V.jsx(e0,{...a,ref:t}):null});fw.displayName="@mantine/core/ScrollAreaScrollbar";function TW(r,t=()=>{}){let e={left:r.scrollLeft,top:r.scrollTop},a=0;return(function n(){const i={left:r.scrollLeft,top:r.scrollTop},o=e.left!==i.left,l=e.top!==i.top;(o||l)&&t(),e=i,a=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(a)}const R3=W.forwardRef((r,t)=>{const{style:e,...a}=r,n=vn(),i=A3(),{onThumbPositionChange:o}=i,l=nu(t,c=>i.onThumbChange(c)),s=W.useRef(void 0),u=Qm(()=>{s.current&&(s.current(),s.current=void 0)},100);return W.useEffect(()=>{const{viewport:c}=n;if(c){const h=()=>{if(u(),!s.current){const d=TW(c,o);s.current=d,o()}};return o(),c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[n.viewport,u,o]),V.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...e},onPointerDownCapture:Vs(r.onPointerDownCapture,c=>{const d=c.target.getBoundingClientRect(),p=c.clientX-d.left,g=c.clientY-d.top;i.onThumbPointerDown({x:p,y:g})}),onPointerUp:Vs(r.onPointerUp,i.onThumbPointerUp)})});R3.displayName="@mantine/core/ScrollAreaThumb";const hw=W.forwardRef((r,t)=>{const{forceMount:e,...a}=r,n=A3();return e||n.hasThumb?V.jsx(R3,{ref:t,...a}):null});hw.displayName="@mantine/core/ScrollAreaThumb";const I3=W.forwardRef(({children:r,style:t,onWheel:e,...a},n)=>{const i=vn(),o=nu(n,i.onViewportChange),l=s=>{if(e==null||e(s),i.scrollbarXEnabled&&i.viewport&&s.shiftKey){const{scrollTop:u,scrollHeight:c,clientHeight:h,scrollWidth:d,clientWidth:p}=i.viewport,g=u<1,m=u>=c-h-1;d>p&&(g||m)&&s.stopPropagation()}};return V.jsx(aa,{...a,ref:o,onWheel:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t},children:V.jsx("div",{...i.getStyles("content"),ref:i.onContentChange,children:r})})});I3.displayName="@mantine/core/ScrollAreaViewport";const O3={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},CW=(r,{scrollbarSize:t,overscrollBehavior:e,scrollbars:a})=>{let n=e;return e&&a&&(a==="x"?n=`${e} auto`:a==="y"&&(n=`auto ${e}`)),{root:{"--scrollarea-scrollbar-size":mt(t),"--scrollarea-over-scroll-behavior":n}}},gd=Gr((r,t)=>{const e=ir("ScrollArea",O3,r),{classNames:a,className:n,style:i,styles:o,unstyled:l,scrollbarSize:s,vars:u,type:c,scrollHideDelay:h,viewportProps:d,viewportRef:p,onScrollPositionChange:g,children:m,offsetScrollbars:_,scrollbars:S,onBottomReached:x,onTopReached:w,overscrollBehavior:C,attributes:A,...M}=e,[L,E]=W.useState(!1),[R,I]=W.useState(!1),[N,B]=W.useState(!1),P=Al({name:"ScrollArea",props:e,classes:BC,className:n,style:i,classNames:a,styles:o,unstyled:l,attributes:A,vars:u,varsResolver:CW}),F=W.useRef(null),H=b3([p,F]);return W.useEffect(()=>{if(!F.current||_!=="present")return;const k=F.current,j=new ResizeObserver(()=>{const{scrollHeight:Y,clientHeight:$,scrollWidth:q,clientWidth:G}=k;I(Y>$),B(q>G)});return j.observe(k),()=>j.disconnect()},[F,_]),V.jsxs(x3,{getStyles:P,type:c==="never"?"always":c,scrollHideDelay:h,ref:t,scrollbars:S,...P("root"),...M,children:[V.jsx(I3,{...d,...P("viewport",{style:d==null?void 0:d.style}),ref:H,"data-offset-scrollbars":_===!0?"xy":_||void 0,"data-scrollbars":S||void 0,"data-horizontal-hidden":_==="present"&&!N?"true":void 0,"data-vertical-hidden":_==="present"&&!R?"true":void 0,onScroll:k=>{var q;(q=d==null?void 0:d.onScroll)==null||q.call(d,k),g==null||g({x:k.currentTarget.scrollLeft,y:k.currentTarget.scrollTop});const{scrollTop:j,scrollHeight:Y,clientHeight:$}=k.currentTarget;j-(Y-$)>=-.8&&(x==null||x()),j===0&&(w==null||w())},children:m}),(S==="xy"||S==="x")&&V.jsx(fw,{...P("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||_==="present"&&!N?!0:void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:V.jsx(hw,{...P("thumb")})}),(S==="xy"||S==="y")&&V.jsx(fw,{...P("scrollbar"),orientation:"vertical","data-hidden":c==="never"||_==="present"&&!R?!0:void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:V.jsx(hw,{...P("thumb")})}),V.jsx(mW,{...P("corner"),"data-hovered":L||void 0,"data-hidden":c==="never"||void 0})]})});gd.displayName="@mantine/core/ScrollArea";const GC=Gr((r,t)=>{const{children:e,classNames:a,styles:n,scrollbarSize:i,scrollHideDelay:o,type:l,dir:s,offsetScrollbars:u,overscrollBehavior:c,viewportRef:h,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:m,scrollbars:_,style:S,vars:x,onBottomReached:w,onTopReached:C,onOverflowChange:A,...M}=ir("ScrollAreaAutosize",O3,r),L=W.useRef(null),E=b3([h,L]),[R,I]=W.useState(!1),N=W.useRef(!1);return W.useEffect(()=>{if(!A)return;const B=L.current;if(!B)return;const P=()=>{const H=B.scrollHeight>B.clientHeight;H!==R&&(N.current?A==null||A(H):(N.current=!0,H&&(A==null||A(!0))),I(H))};P();const F=new ResizeObserver(P);return F.observe(B),()=>F.disconnect()},[A,R]),V.jsx(aa,{...M,ref:t,style:[{display:"flex",overflow:"hidden"},S],children:V.jsx(aa,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",..._==="y"&&{minWidth:0},..._==="x"&&{minHeight:0},..._==="xy"&&{minWidth:0,minHeight:0},..._===!1&&{minWidth:0,minHeight:0}},children:V.jsx(gd,{classNames:a,styles:n,scrollHideDelay:o,scrollbarSize:i,type:l,dir:s,offsetScrollbars:u,overscrollBehavior:c,viewportRef:E,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:m,vars:x,scrollbars:_,onBottomReached:w,onTopReached:C,"data-autosize":"true",children:e})})})});gd.classes=BC;GC.displayName="@mantine/core/ScrollAreaAutosize";GC.classes=BC;gd.Autosize=GC;var N3={root:"m_87cf2631"};const AW={__staticSelector:"UnstyledButton"},r0=Jm((r,t)=>{const e=ir("UnstyledButton",AW,r),{className:a,component:n="button",__staticSelector:i,unstyled:o,classNames:l,styles:s,style:u,attributes:c,...h}=e,d=Al({name:i,props:e,classes:N3,className:a,style:u,classNames:l,styles:s,unstyled:o,attributes:c});return V.jsx(aa,{...d("root",{focusable:!0}),component:n,ref:t,type:n==="button"?"button":void 0,...h})});r0.classes=N3;r0.displayName="@mantine/core/UnstyledButton";var z3={root:"m_515a97f8"};const HC=Gr((r,t)=>{const e=ir("VisuallyHidden",null,r),{classNames:a,className:n,style:i,styles:o,unstyled:l,vars:s,attributes:u,...c}=e,h=Al({name:"VisuallyHidden",classes:z3,props:e,className:n,style:i,classNames:a,styles:o,unstyled:l,attributes:u});return V.jsx(aa,{component:"span",ref:t,...h("root"),...c})});HC.classes=z3;HC.displayName="@mantine/core/VisuallyHidden";var P3={root:"m_1b7284a3"};const MW=(r,{radius:t,shadow:e})=>({root:{"--paper-radius":t===void 0?void 0:vd(t),"--paper-shadow":JB(e)}}),UC=Jm((r,t)=>{const e=ir("Paper",null,r),{classNames:a,className:n,style:i,styles:o,unstyled:l,withBorder:s,vars:u,radius:c,shadow:h,variant:d,mod:p,attributes:g,...m}=e,_=Al({name:"Paper",props:e,classes:P3,className:n,style:i,classNames:a,styles:o,unstyled:l,attributes:g,vars:u,varsResolver:MW});return V.jsx(aa,{ref:t,mod:[{"data-with-border":s},p],..._("root"),variant:d,...m})});UC.classes=P3;UC.displayName="@mantine/core/Paper";var k3={root:"m_9814e45f"};const DW={zIndex:pf("modal")},LW=(r,{gradient:t,color:e,backgroundOpacity:a,blur:n,radius:i,zIndex:o})=>({root:{"--overlay-bg":t||(e!==void 0||a!==void 0)&&qn(e||"#000",a??.6)||void 0,"--overlay-filter":n?`blur(${mt(n)})`:void 0,"--overlay-radius":i===void 0?void 0:vd(i),"--overlay-z-index":o==null?void 0:o.toString()}}),FC=Jm((r,t)=>{const e=ir("Overlay",DW,r),{classNames:a,className:n,style:i,styles:o,unstyled:l,vars:s,fixed:u,center:c,children:h,radius:d,zIndex:p,gradient:g,blur:m,color:_,backgroundOpacity:S,mod:x,attributes:w,...C}=e,A=Al({name:"Overlay",props:e,classes:k3,className:n,style:i,classNames:a,styles:o,unstyled:l,attributes:w,vars:s,varsResolver:LW});return V.jsx(aa,{ref:t,...A("root"),mod:[{center:c,fixed:u},x],...C,children:h})});FC.classes=k3;FC.displayName="@mantine/core/Overlay";function CS(r){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof r.className=="string"&&t.classList.add(...r.className.split(" ").filter(Boolean)),typeof r.style=="object"&&Object.assign(t.style,r.style),typeof r.id=="string"&&t.setAttribute("id",r.id),t}function EW({target:r,reuseTargetNode:t,...e}){if(r)return typeof r=="string"?document.querySelector(r)||CS(e):r;if(t){const a=document.querySelector("[data-mantine-shared-portal-node]");if(a)return a;const n=CS(e);return n.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(n),n}return CS(e)}const RW={reuseTargetNode:!0},B3=Gr((r,t)=>{const{children:e,target:a,reuseTargetNode:n,...i}=ir("Portal",RW,r),[o,l]=W.useState(!1),s=W.useRef(null);return dd(()=>(l(!0),s.current=EW({target:a,reuseTargetNode:n,...i}),lw(t,s.current),!a&&!n&&s.current&&document.body.appendChild(s.current),()=>{!a&&!n&&s.current&&document.body.removeChild(s.current)}),[a]),!o||!s.current?null:S3.createPortal(V.jsx(V.Fragment,{children:e}),s.current)});B3.displayName="@mantine/core/Portal";const V3=Gr(({withinPortal:r=!0,children:t,...e},a)=>s3()==="test"||!r?V.jsx(V.Fragment,{children:t}):V.jsx(B3,{ref:a,...e,children:t}));V3.displayName="@mantine/core/OptionalPortal";const Lh=r=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${r==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),ag={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Lh("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Lh("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Lh("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Lh("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Lh("top"),common:{transformOrigin:"top right"}}},WR={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function IW({transition:r,state:t,duration:e,timingFunction:a}){const n={WebkitBackfaceVisibility:"hidden",transitionDuration:`${e}ms`,transitionTimingFunction:a};return typeof r=="string"?r in ag?{transitionProperty:ag[r].transitionProperty,...n,...ag[r].common,...ag[r][WR[t]]}:{}:{transitionProperty:r.transitionProperty,...n,...r.common,...r[WR[t]]}}function OW({duration:r,exitDuration:t,timingFunction:e,mounted:a,onEnter:n,onExit:i,onEntered:o,onExited:l,enterDelay:s,exitDelay:u}){const c=Cl(),h=i3(),d=c.respectReducedMotion?h:!1,[p,g]=W.useState(d?0:r),[m,_]=W.useState(a?"entered":"exited"),S=W.useRef(-1),x=W.useRef(-1),w=W.useRef(-1);function C(){window.clearTimeout(S.current),window.clearTimeout(x.current),cancelAnimationFrame(w.current)}const A=L=>{C();const E=L?n:i,R=L?o:l,I=d?0:L?r:t;g(I),I===0?(typeof E=="function"&&E(),typeof R=="function"&&R(),_(L?"entered":"exited")):w.current=requestAnimationFrame(()=>{pW.flushSync(()=>{_(L?"pre-entering":"pre-exiting")}),w.current=requestAnimationFrame(()=>{typeof E=="function"&&E(),_(L?"entering":"exiting"),S.current=window.setTimeout(()=>{typeof R=="function"&&R(),_(L?"entered":"exited")},I)})})},M=L=>{if(C(),typeof(L?s:u)!="number"){A(L);return}x.current=window.setTimeout(()=>{A(L)},L?s:u)};return t3(()=>{M(a)},[a]),W.useEffect(()=>()=>{C()},[]),{transitionDuration:p,transitionStatus:m,transitionTimingFunction:e||"ease"}}function YC({keepMounted:r,transition:t="fade",duration:e=250,exitDuration:a=e,mounted:n,children:i,timingFunction:o="ease",onExit:l,onEntered:s,onEnter:u,onExited:c,enterDelay:h,exitDelay:d}){const p=s3(),{transitionDuration:g,transitionStatus:m,transitionTimingFunction:_}=OW({mounted:n,exitDuration:a,duration:e,timingFunction:o,onExit:l,onEntered:s,onEnter:u,onExited:c,enterDelay:h,exitDelay:d});return g===0||p==="test"?n?V.jsx(V.Fragment,{children:i({})}):r?i({display:"none"}):null:m==="exited"?r?i({display:"none"}):null:V.jsx(V.Fragment,{children:i(IW({transition:t,duration:g,state:m,timingFunction:_}))})}YC.displayName="@mantine/core/Transition";function jC({children:r,active:t=!0,refProp:e="ref",innerRef:a}){const n=ZY(t),i=nu(n,a),o=ej(r);return o?W.cloneElement(o,{[e]:i}):r}function G3(r){return V.jsx(HC,{tabIndex:-1,"data-autofocus":!0,...r})}jC.displayName="@mantine/core/FocusTrap";G3.displayName="@mantine/core/FocusTrapInitialFocus";jC.InitialFocus=G3;const H3=W.forwardRef(({size:r="var(--cb-icon-size, 70%)",style:t,...e},a)=>V.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:r,height:r},ref:a,...e,children:V.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));H3.displayName="@mantine/core/CloseIcon";var U3={root:"m_86a44da5","root--subtle":"m_220c80f2"};const NW={variant:"subtle"},zW=(r,{size:t,radius:e,iconSize:a})=>({root:{"--cb-size":hd(t,"cb-size"),"--cb-radius":e===void 0?void 0:vd(e),"--cb-icon-size":mt(a)}}),WC=Jm((r,t)=>{const e=ir("CloseButton",NW,r),{iconSize:a,children:n,vars:i,radius:o,className:l,classNames:s,style:u,styles:c,unstyled:h,"data-disabled":d,disabled:p,variant:g,icon:m,mod:_,attributes:S,__staticSelector:x,...w}=e,C=Al({name:x||"CloseButton",props:e,className:l,style:u,classes:U3,classNames:s,styles:c,unstyled:h,attributes:S,vars:i,varsResolver:zW});return V.jsxs(r0,{ref:t,...w,unstyled:h,variant:g,disabled:p,mod:[{disabled:p||d},_],...C("root",{variant:g,active:!p&&!d}),children:[m||V.jsx(H3,{}),n]})});WC.classes=U3;WC.displayName="@mantine/core/CloseButton";const[PW,uo]=fd("ModalBase component was not found in tree");function kW({opened:r,transitionDuration:t}){const[e,a]=W.useState(r),n=W.useRef(-1),o=i3()?0:t;return W.useEffect(()=>(r?(a(!0),window.clearTimeout(n.current)):o===0?a(!1):n.current=window.setTimeout(()=>a(!1),o),()=>window.clearTimeout(n.current)),[r,o]),e}function BW({id:r,transitionProps:t,opened:e,trapFocus:a,closeOnEscape:n,onClose:i,returnFocus:o}){const l=n3(r),[s,u]=W.useState(!1),[c,h]=W.useState(!1),d=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=kW({opened:e,transitionDuration:d});return QY("keydown",g=>{var m;g.key==="Escape"&&n&&!g.isComposing&&e&&((m=g.target)==null?void 0:m.getAttribute("data-mantine-stop-propagation"))!=="true"&&i()},{capture:!0}),FY({opened:e,shouldReturnFocus:a&&o}),{_id:l,titleMounted:s,bodyMounted:c,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:h}}const F3=W.forwardRef(({keepMounted:r,opened:t,onClose:e,id:a,transitionProps:n,onExitTransitionEnd:i,onEnterTransitionEnd:o,trapFocus:l,closeOnEscape:s,returnFocus:u,closeOnClickOutside:c,withinPortal:h,portalProps:d,lockScroll:p,children:g,zIndex:m,shadow:_,padding:S,__vars:x,unstyled:w,removeScrollProps:C,...A},M)=>{const{_id:L,titleMounted:E,bodyMounted:R,shouldLockScroll:I,setTitleMounted:N,setBodyMounted:B}=BW({id:a,transitionProps:n,opened:t,trapFocus:l,closeOnEscape:s,onClose:e,returnFocus:u}),{key:P,...F}=C||{};return V.jsx(V3,{...d,withinPortal:h,children:V.jsx(PW,{value:{opened:t,onClose:e,closeOnClickOutside:c,onExitTransitionEnd:i,onEnterTransitionEnd:o,transitionProps:{...n,keepMounted:r},getTitleId:()=>`${L}-title`,getBodyId:()=>`${L}-body`,titleMounted:E,bodyMounted:R,setTitleMounted:N,setBodyMounted:B,trapFocus:l,closeOnEscape:s,zIndex:m,unstyled:w},children:V.jsx(qB,{enabled:I&&p,...F,children:V.jsx(aa,{ref:M,...A,__vars:{...x,"--mb-z-index":(m||pf("modal")).toString(),"--mb-shadow":JB(_),"--mb-padding":BY(S)},children:g})},P)})})});F3.displayName="@mantine/core/ModalBase";var Kc={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function VW(){const r=uo();return W.useEffect(()=>(r.setBodyMounted(!0),()=>r.setBodyMounted(!1)),[]),r.getBodyId()}const Y3=W.forwardRef(({className:r,...t},e)=>{const a=VW(),n=uo();return V.jsx(aa,{ref:e,...t,id:a,className:vi({[Kc.body]:!n.unstyled},r)})});Y3.displayName="@mantine/core/ModalBaseBody";const j3=W.forwardRef(({className:r,onClick:t,...e},a)=>{const n=uo();return V.jsx(WC,{ref:a,...e,onClick:i=>{n.onClose(),t==null||t(i)},className:vi({[Kc.close]:!n.unstyled},r),unstyled:n.unstyled})});j3.displayName="@mantine/core/ModalBaseCloseButton";const W3=W.forwardRef(({transitionProps:r,className:t,innerProps:e,onKeyDown:a,style:n,...i},o)=>{const l=uo();return V.jsx(YC,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{var s,u,c;(s=l.onExitTransitionEnd)==null||s.call(l),(c=(u=l.transitionProps)==null?void 0:u.onExited)==null||c.call(u)},onEntered:()=>{var s,u,c;(s=l.onEnterTransitionEnd)==null||s.call(l),(c=(u=l.transitionProps)==null?void 0:u.onEntered)==null||c.call(u)},...r,children:s=>V.jsx("div",{...e,className:vi({[Kc.inner]:!l.unstyled},e.className),children:V.jsx(jC,{active:l.opened&&l.trapFocus,innerRef:o,children:V.jsx(UC,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[n,s],className:vi({[Kc.content]:!l.unstyled},t),unstyled:l.unstyled,children:i.children})})})})});W3.displayName="@mantine/core/ModalBaseContent";const X3=W.forwardRef(({className:r,...t},e)=>{const a=uo();return V.jsx(aa,{component:"header",ref:e,className:vi({[Kc.header]:!a.unstyled},r),...t})});X3.displayName="@mantine/core/ModalBaseHeader";const GW={duration:200,timingFunction:"ease",transition:"fade"};function HW(r){const t=uo();return{...GW,...t.transitionProps,...r}}const $3=W.forwardRef(({onClick:r,transitionProps:t,style:e,visible:a,...n},i)=>{const o=uo(),l=HW(t);return V.jsx(YC,{mounted:a!==void 0?a:o.opened,...l,transition:"fade",children:s=>V.jsx(FC,{ref:i,fixed:!0,style:[e,s],zIndex:o.zIndex,unstyled:o.unstyled,onClick:u=>{r==null||r(u),o.closeOnClickOutside&&o.onClose()},...n})})});$3.displayName="@mantine/core/ModalBaseOverlay";function UW(){const r=uo();return W.useEffect(()=>(r.setTitleMounted(!0),()=>r.setTitleMounted(!1)),[]),r.getTitleId()}const Z3=W.forwardRef(({className:r,...t},e)=>{const a=UW(),n=uo();return V.jsx(aa,{component:"h2",ref:e,className:vi({[Kc.title]:!n.unstyled},r),...t,id:a})});Z3.displayName="@mantine/core/ModalBaseTitle";function FW({children:r}){return V.jsx(V.Fragment,{children:r})}function vw(){return vw=Object.assign?Object.assign.bind():function(r){for(var t=1;t{const e=ir("ModalBody",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,...s}=e,u=gf();return V.jsx(Y3,{ref:t,...u.getStyles("body",{classNames:a,style:i,styles:o,className:n}),...s})});a0.classes=co;a0.displayName="@mantine/core/ModalBody";const n0=Gr((r,t)=>{const e=ir("ModalCloseButton",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,...s}=e,u=gf();return V.jsx(j3,{ref:t,...u.getStyles("close",{classNames:a,style:i,styles:o,className:n}),...s})});n0.classes=co;n0.displayName="@mantine/core/ModalCloseButton";const i0=Gr((r,t)=>{const e=ir("ModalContent",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,children:s,__hidden:u,...c}=e,h=gf(),d=h.scrollAreaComponent||FW;return V.jsx(W3,{...h.getStyles("content",{className:n,style:i,styles:o,classNames:a}),innerProps:h.getStyles("inner",{className:n,style:i,styles:o,classNames:a}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...c,children:V.jsx(d,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${mt(h.yOffset)} * 2))`},children:s})})});i0.classes=co;i0.displayName="@mantine/core/ModalContent";const o0=Gr((r,t)=>{const e=ir("ModalHeader",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,...s}=e,u=gf();return V.jsx(X3,{ref:t,...u.getStyles("header",{classNames:a,style:i,styles:o,className:n}),...s})});o0.classes=co;o0.displayName="@mantine/core/ModalHeader";const l0=Gr((r,t)=>{const e=ir("ModalOverlay",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,...s}=e,u=gf();return V.jsx($3,{ref:t,...u.getStyles("overlay",{classNames:a,style:i,styles:o,className:n}),...s})});l0.classes=co;l0.displayName="@mantine/core/ModalOverlay";const jW={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:pf("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},WW=(r,{radius:t,size:e,yOffset:a,xOffset:n})=>({root:{"--modal-radius":t===void 0?void 0:vd(t),"--modal-size":hd(e,"modal-size"),"--modal-y-offset":mt(a),"--modal-x-offset":mt(n)}}),s0=Gr((r,t)=>{const e=ir("ModalRoot",jW,r),{classNames:a,className:n,style:i,styles:o,unstyled:l,vars:s,yOffset:u,scrollAreaComponent:c,radius:h,fullScreen:d,centered:p,xOffset:g,__staticSelector:m,attributes:_,...S}=e,x=Al({name:m,classes:co,props:e,className:n,style:i,classNames:a,styles:o,unstyled:l,attributes:_,vars:s,varsResolver:WW});return V.jsx(YW,{value:{yOffset:u,scrollAreaComponent:c,getStyles:x,fullScreen:d},children:V.jsx(F3,{ref:t,...x("root"),"data-full-screen":d||void 0,"data-centered":p||void 0,"data-offset-scrollbars":c===gd.Autosize||void 0,unstyled:l,...S})})});s0.classes=co;s0.displayName="@mantine/core/ModalRoot";const[XW,$W]=IY();function q3({children:r}){const[t,e]=W.useState([]),[a,n]=W.useState(pf("modal"));return V.jsx(XW,{value:{stack:t,addModal:(i,o)=>{e(l=>[...new Set([...l,i])]),n(l=>typeof o=="number"&&typeof l=="number"?Math.max(l,o):l)},removeModal:i=>e(o=>o.filter(l=>l!==i)),getZIndex:i=>`calc(${a} + ${t.indexOf(i)} + 1)`,currentId:t[t.length-1],maxZIndex:a},children:r})}q3.displayName="@mantine/core/ModalStack";const u0=Gr((r,t)=>{const e=ir("ModalTitle",null,r),{classNames:a,className:n,style:i,styles:o,vars:l,...s}=e,u=gf();return V.jsx(Z3,{ref:t,...u.getStyles("title",{classNames:a,style:i,styles:o,className:n}),...s})});u0.classes=co;u0.displayName="@mantine/core/ModalTitle";const ZW={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:pf("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},dn=Gr((r,t)=>{const{title:e,withOverlay:a,overlayProps:n,withCloseButton:i,closeButtonProps:o,children:l,radius:s,opened:u,stackId:c,zIndex:h,...d}=ir("Modal",ZW,r),p=$W(),g=!!e||i,m=p&&c?{closeOnEscape:p.currentId===c,trapFocus:p.currentId===c,zIndex:p.getZIndex(c)}:{},_=a===!1?!1:c&&p?p.currentId===c:u;return W.useEffect(()=>{p&&c&&(u?p.addModal(c,h||pf("modal")):p.removeModal(c))},[u,c,h]),V.jsxs(s0,{ref:t,radius:s,opened:u,zIndex:p&&c?p.getZIndex(c):h,...d,...m,children:[a&&V.jsx(l0,{visible:_,transitionProps:p&&c?{duration:0}:void 0,...n}),V.jsxs(i0,{radius:s,__hidden:p&&c&&u?c!==p.currentId:!1,children:[g&&V.jsxs(o0,{children:[e&&V.jsx(u0,{children:e}),i&&V.jsx(n0,{...o})]}),V.jsx(a0,{children:l})]})]})});dn.classes=co;dn.displayName="@mantine/core/Modal";dn.Root=s0;dn.Overlay=l0;dn.Content=i0;dn.Body=a0;dn.Header=o0;dn.Title=u0;dn.CloseButton=n0;dn.Stack=q3;const[qW,XC]=fd("Tabs component was not found in the tree");var yd={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const $C=Gr((r,t)=>{const e=ir("TabsList",null,r),{children:a,className:n,grow:i,justify:o,classNames:l,styles:s,style:u,mod:c,...h}=e,d=XC();return V.jsx(aa,{...h,...d.getStyles("list",{className:n,style:u,classNames:l,styles:s,props:e,variant:d.variant}),ref:t,role:"tablist",variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation==="vertical"&&d.placement,inverted:d.inverted},c],"aria-orientation":d.orientation,__vars:{"--tabs-justify":o},children:a})});$C.classes=yd;$C.displayName="@mantine/core/TabsList";const ZC=Gr((r,t)=>{const e=ir("TabsPanel",null,r),{children:a,className:n,value:i,classNames:o,styles:l,style:s,mod:u,keepMounted:c,...h}=e,d=XC(),p=d.value===i,g=d.keepMounted||c||p?a:null;return V.jsx(aa,{...d.getStyles("panel",{className:n,classNames:o,styles:l,style:[s,p?void 0:{display:"none"}],props:e}),ref:t,mod:[{orientation:d.orientation},u],role:"tabpanel",id:d.getPanelId(i),"aria-labelledby":d.getTabId(i),...h,children:g})});ZC.classes=yd;ZC.displayName="@mantine/core/TabsPanel";const qC=Gr((r,t)=>{const e=ir("TabsTab",null,r),{className:a,children:n,rightSection:i,leftSection:o,value:l,onClick:s,onKeyDown:u,disabled:c,color:h,style:d,classNames:p,styles:g,vars:m,mod:_,tabIndex:S,...x}=e,w=Cl(),{dir:C}=_3(),A=XC(),M=l===A.value,L=R=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),s==null||s(R)},E={classNames:p,styles:g,props:e};return V.jsxs(r0,{...A.getStyles("tab",{className:a,style:d,variant:A.variant,...E}),disabled:c,unstyled:A.unstyled,variant:A.variant,mod:[{active:M,disabled:c,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},_],ref:t,role:"tab",id:A.getTabId(l),"aria-selected":M,tabIndex:S!==void 0?S:M||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:L,__vars:{"--tabs-color":h?Fy(h,w):void 0},onKeyDown:PY({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:C,onKeyDown:u}),...x,children:[o&&V.jsx("span",{...A.getStyles("tabSection",E),"data-position":"left",children:o}),n&&V.jsx("span",{...A.getStyles("tabLabel",E),children:n}),i&&V.jsx("span",{...A.getStyles("tabSection",E),"data-position":"right",children:i})]})});qC.classes=yd;qC.displayName="@mantine/core/TabsTab";const XR="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",KW={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},QW=(r,{radius:t,color:e,autoContrast:a})=>({root:{"--tabs-radius":vd(t),"--tabs-color":Fy(e,r),"--tabs-text-color":Fj(a,r)?f3({color:e,theme:r,autoContrast:a}):void 0}}),ul=Gr((r,t)=>{const e=ir("Tabs",KW,r),{defaultValue:a,value:n,onChange:i,orientation:o,children:l,loop:s,id:u,activateTabWithKeyboard:c,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:m,placement:_,keepMounted:S,classNames:x,styles:w,unstyled:C,className:A,style:M,vars:L,autoContrast:E,mod:R,attributes:I,...N}=e,B=n3(u),[P,F]=tj({value:n,defaultValue:a,finalValue:null,onChange:i}),H=Al({name:"Tabs",props:e,classes:yd,className:A,style:M,classNames:x,styles:w,unstyled:C,attributes:I,vars:L,varsResolver:QW});return V.jsx(qW,{value:{placement:_,value:P,orientation:o,id:B,loop:s,activateTabWithKeyboard:c,getTabId:zR(`${B}-tab`,XR),getPanelId:zR(`${B}-panel`,XR),onChange:F,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:m,keepMounted:S,unstyled:C,getStyles:H},children:V.jsx(aa,{ref:t,id:B,variant:d,mod:[{orientation:o,inverted:o==="horizontal"&&m,placement:o==="vertical"&&_},R],...H("root"),...N,children:l})})});ul.classes=yd;ul.displayName="@mantine/core/Tabs";ul.Tab=qC;ul.Panel=ZC;ul.List=$C;/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const JW=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K3=(...r)=>r.filter((t,e,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===e).join(" ").trim();/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var tX={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const eX=W.forwardRef(({color:r="currentColor",size:t=24,strokeWidth:e=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:o,...l},s)=>W.createElement("svg",{ref:s,...tX,width:t,height:t,stroke:r,strokeWidth:a?Number(e)*24/Number(t):e,className:K3("lucide",n),...l},[...o.map(([u,c])=>W.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const pn=(r,t)=>{const e=W.forwardRef(({className:a,...n},i)=>W.createElement(eX,{ref:i,iconNode:t,className:K3(`lucide-${JW(r)}`,a),...n}));return e.displayName=`${r}`,e};/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rX=pn("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const aX=pn("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nX=pn("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Q3=pn("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const iX=pn("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oX=pn("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lX=pn("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sX=pn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uX=pn("SendHorizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cX=pn("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const KC=pn("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** - * @license lucide-react v0.469.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const J3=pn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function t4(r){return fX(JSON.stringify(r,null,2)).replace(/"([^"]+)":/g,'"$1":').replace(/: "([^"]*)"/g,': "$1"').replace(/: (true|false)/g,': $1').replace(/: (null)/g,': $1').replace(/: (-?\d+\.?\d*)/g,': $1')}function fX(r){return r.replace(/&/g,"&").replace(//g,">")}function $R(r){return r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:String(Math.round(r*10)/10)}const ZR="oc-theme";function hX(){const[r,t]=W.useState(()=>localStorage.getItem(ZR)??"dark");return W.useEffect(()=>{document.documentElement.setAttribute("data-theme",r),localStorage.setItem(ZR,r)},[r]),{theme:r,toggle:()=>t(a=>a==="dark"?"light":"dark")}}const vX=[{key:"services",label:"Service Map",icon:nX},{key:"traces",label:"Traces",icon:sX},{key:"logs",label:"Logs",icon:oX},{key:"mcp",label:"MCP",icon:KC}];function dX({view:r,onNavigate:t,dashboard:e,stats:a,wsConnected:n}){const{theme:i,toggle:o}=hX();return V.jsxs("nav",{className:"top-nav",children:[V.jsxs("a",{className:"logo",href:"/",children:[V.jsx("span",{style:{color:"var(--color-accent)",fontSize:"1rem",flexShrink:0},children:"◆"}),V.jsx("span",{className:"logo-mark",children:"OtelContext"})]}),vX.map(({key:l,label:s,icon:u})=>V.jsxs("button",{className:`nav-link${r===l?" active":""}`,onClick:()=>t(l),children:[V.jsx(u,{size:13})," ",s]},l)),V.jsxs("div",{className:"stats-bar",style:{marginLeft:"auto"},children:[V.jsxs("span",{children:["Services"," ",V.jsx("b",{className:"stat-healthy",children:(e==null?void 0:e.active_services)??"--"})]}),V.jsxs("span",{children:["Traces"," ",V.jsx("b",{children:$R((e==null?void 0:e.total_traces)??0)})]}),V.jsxs("span",{children:["Logs"," ",V.jsx("b",{children:$R((e==null?void 0:e.total_logs)??0)})]}),V.jsxs("span",{children:["Error Rate"," ",V.jsx("b",{className:((e==null?void 0:e.error_rate)??0)>5?"stat-error":"",children:(e==null?void 0:e.error_rate)!=null?`${e.error_rate.toFixed(1)}%`:"--%"})]}),V.jsxs("span",{children:["DB"," ",V.jsx("b",{children:(a==null?void 0:a.db_size_mb)!=null?`${a.db_size_mb}MB`:"--"})]}),V.jsx("span",{className:`ws-dot ${n?"connected":"disconnected"}`,title:n?"WebSocket connected":"WebSocket disconnected"})]}),V.jsx("button",{className:"theme-btn",onClick:o,title:"Toggle theme",children:i==="dark"?V.jsx(cX,{size:15}):V.jsx(aX,{size:15})})]})}/*! ***************************************************************************** -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 dw=function(r,t){return dw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},dw(r,t)};function J(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var pX=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),gX=(function(){function r(){this.browser=new pX,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Kt=new gX;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Kt.wxa=!0,Kt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Kt.worker=!0:!Kt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Kt.node=!0,Kt.svgSupported=!0):yX(navigator.userAgent,Kt);function yX(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var l=t.domSupported=typeof document<"u";if(l){var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var QC=12,e4="sans-serif",eo=QC+"px "+e4,mX=20,_X=100,SX="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function bX(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)l=o*e.length;else for(var s=0;s>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[s]+":0",n[u]+":0",a[1-s]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){O(e,function(c){c.parentNode&&c.parentNode.removeChild(c)})},e}function HX(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],l=[],s=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;o.push(d,p),s=s&&i&&d===i[h]&&p===i[h+1],l.push(r[u].offsetLeft,r[u].offsetTop)}return s&&n?n:(t.srcCoords=o,t[a]=e?JR(l,o):JR(o,l))}function s4(r){return r.nodeName.toUpperCase()==="CANVAS"}var UX=/([&<>"'])/g,FX={"&":"&","<":"<",">":">",'"':""","'":"'"};function ta(r){return r==null?"":(r+"").replace(UX,function(t,e){return FX[e]})}var YX=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,MS=[],jX=Kt.browser.firefox&&+Kt.browser.version.split(".")[0]<39;function xw(r,t,e,a){return e=e||{},a?tI(r,t,e):jX&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):tI(r,t,e),e}function tI(r,t,e){if(Kt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(s4(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(bw(MS,r,a,n)){e.zrX=MS[0],e.zrY=MS[1];return}}e.zrX=e.zrY=0}function i2(r){return r||window.event}function Ja(r,t,e){if(t=i2(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&xw(r,o,t,e)}else{xw(r,t,t,e);var i=WX(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&YX.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function WX(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function ww(r,t,e,a){r.addEventListener(t,e,a)}function XX(r,t,e,a){r.removeEventListener(t,e,a)}var ro=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function eI(r){return r.which===2||r.which===3}var $X=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,l=n.length;o1&&a&&a.length>1){var i=rI(a)/rI(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=ZX(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Dr(){return[1,0,0,1,0,0]}function d0(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function p0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ui(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],l=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=l,r[5]=s,r}function pi(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ml(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],l=t[1],s=t[3],u=t[5],c=Math.sin(e),h=Math.cos(e);return r[0]=n*h+l*c,r[1]=-n*c+l*h,r[2]=i*h+s*c,r[3]=-i*c+h*s,r[4]=h*(o-a[0])+c*(u-a[1])+a[0],r[5]=h*(u-a[1])-c*(o-a[0])+a[1],r}function o2(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Rn(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],l=t[5],s=e*o-i*a;return s?(s=1/s,r[0]=o*s,r[1]=-i*s,r[2]=-a*s,r[3]=e*s,r[4]=(a*l-o*n)*s,r[5]=(i*n-e*l)*s,r):null}function qX(r){var t=Dr();return p0(t,r),t}var Lt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r})(),Os=Math.min,Pc=Math.max,Tw=Math.abs,aI=["x","y"],KX=["width","height"],Zl=new Lt,ql=new Lt,Kl=new Lt,Ql=new Lt,Ra=u4(),sv=Ra.minTv,Cw=Ra.maxTv,xv=[0,0],It=(function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=Os(t.x,this.x),a=Os(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pc(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Dr();return pi(i,i,[-e.x,-e.y]),o2(i,i,[a,n]),pi(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&Lt.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(QX,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(JX,e.x,e.y,e.width,e.height));var l=!!a;Ra.reset(n,l);var s=Ra.touchThreshold,u=t.x+s,c=t.x+t.width-s,h=t.y+s,d=t.y+t.height-s,p=e.x+s,g=e.x+e.width-s,m=e.y+s,_=e.y+e.height-s;if(u>c||h>d||p>g||m>_)return!1;var S=!(c=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],l=a[5];t.x=e.x*n+o,t.y=e.y*i+l,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Zl.x=Kl.x=e.x,Zl.y=Ql.y=e.y,ql.x=Ql.x=e.x+e.width,ql.y=Kl.y=e.y+e.height,Zl.transform(a),Ql.transform(a),ql.transform(a),Kl.transform(a),t.x=Os(Zl.x,ql.x,Kl.x,Ql.x),t.y=Os(Zl.y,ql.y,Kl.y,Ql.y);var s=Pc(Zl.x,ql.x,Kl.x,Ql.x),u=Pc(Zl.y,ql.y,Kl.y,Ql.y);t.width=s-t.x,t.height=u-t.y},r})(),QX=new It(0,0,0,0),JX=new It(0,0,0,0);function nI(r,t,e,a,n,i,o,l){var s=Tw(t-e),u=Tw(a-r),c=Os(s,u),h=aI[n],d=aI[1-n],p=KX[n];t=u||!Ra.bidirectional)&&(sv[h]=-u,sv[d]=0,Ra.useDir&&Ra.calcDirMTV())))}function u4(){var r=0,t=new Lt,e=new Lt,a={minTv:new Lt,maxTv:new Lt,useDir:!1,dirMinTv:new Lt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Pc(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,l=i.y*i.y+i.x*i.x,s=Math.sin(r),u=Math.cos(r),c=s*i.y+u*i.x;if(n(c)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=l*u/c,e.y=l*s/c,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()=0;h--){var d=i[h];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(LS.copy(d.getBoundingRect()),d.transform&&LS.applyTransform(d.transform),LS.intersect(c)&&l.push(d))}if(l.length)for(var p=4,g=Math.PI/12,m=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function n$(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var l=a.__hostTarget;a=l?a.ignoreHostSilent?null:l:a.parent}return n?c4:!0}return!1}function iI(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],l=void 0;if(o!==n&&!o.ignore&&(l=n$(o,e,a))&&(!t.topTarget&&(t.topTarget=o),l!==c4)){t.target=o;break}}}function h4(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var v4=32,Rh=7;function i$(r){for(var t=0;r>=v4;)t|=r&1,r>>=1;return r+t}function oI(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function o$(r,t,e){for(e--;t>>1,n(i,r[s])<0?l=s:o=s+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function ES(r,t,e,a,n,i){var o=0,l=0,s=1;if(i(r,t[e+n])>0){for(l=a-n;s0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=n,s+=n}else{for(l=n+1;sl&&(s=l);var u=o;o=n-s,s=n-u}for(o++;o>>1);i(r,t[e+c])>0?o=c+1:s=c}return s}function RS(r,t,e,a,n,i){var o=0,l=0,s=1;if(i(r,t[e+n])<0){for(l=n+1;sl&&(s=l);var u=o;o=n-s,s=n-u}else{for(l=a-n;s=0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=n,s+=n}for(o++;o>>1);i(r,t[e+c])<0?s=c:o=c+1}return s}function l$(r,t){var e=Rh,a,n,i=0,o=[];a=[],n=[];function l(p,g){a[i]=p,n[i]=g,i+=1}function s(){for(;i>1;){var p=i-2;if(p>=1&&n[p-1]<=n[p]+n[p+1]||p>=2&&n[p-2]<=n[p]+n[p-1])n[p-1]n[p+1])break;c(p)}}function u(){for(;i>1;){var p=i-2;p>0&&n[p-1]=Rh||L>=Rh);if(E)break;A<0&&(A=0),A+=2}if(e=A,e<1&&(e=1),g===1){for(S=0;S<_;S++)r[C+S]=r[w+S];r[C+_]=o[x]}else{if(g===0)throw new Error;for(S=0;S=0;S--)r[M+S]=r[A+S];r[C]=o[w];return}for(var L=e;;){var E=0,R=0,I=!1;do if(t(o[w],r[x])<0){if(r[C--]=r[x--],E++,R=0,--g===0){I=!0;break}}else if(r[C--]=o[w--],R++,E=0,--_===1){I=!0;break}while((E|R)=0;S--)r[M+S]=r[A+S];if(g===0){I=!0;break}}if(r[C--]=o[w--],--_===1){I=!0;break}if(R=_-ES(r[x],o,0,_,_-1,t),R!==0){for(C-=R,w-=R,_-=R,M=C+1,A=w+1,S=0;S=Rh||R>=Rh);if(I)break;L<0&&(L=0),L+=2}if(e=L,e<1&&(e=1),_===1){for(C-=g,x-=g,M=C+1,A=x+1,S=g-1;S>=0;S--)r[M+S]=r[A+S];r[C]=o[w]}else{if(_===0)throw new Error;for(A=C-(_-1),S=0;S<_;S++)r[A+S]=o[S]}}return{mergeRuns:s,forceMergeRuns:u,pushRun:l}}function Ty(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(nl&&(s=l),lI(r,e,e+s,e+i,t),i=s}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var Ia=1,uv=2,Ic=4,sI=!1;function IS(){sI||(sI=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function uI(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var s$=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=uI}return r.prototype.traverse=function(t,e){for(var a=0;a=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Xy;Xy=Kt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var wv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-wv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?wv.bounceIn(r*2)*.5:wv.bounceOut(r*2-1)*.5+.5}},ig=Math.pow,cl=Math.sqrt,$y=1e-8,d4=1e-4,cI=cl(3),og=1/3,Jn=ou(),an=ou(),jc=ou();function al(r){return r>-$y&&r<$y}function p4(r){return r>$y||r<-$y}function mr(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function fI(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Zy(r,t,e,a,n,i){var o=a+3*(t-e)-r,l=3*(e-t*2+r),s=3*(t-r),u=r-n,c=l*l-3*o*s,h=l*s-9*o*u,d=s*s-3*l*u,p=0;if(al(c)&&al(h))if(al(l))i[0]=0;else{var g=-s/l;g>=0&&g<=1&&(i[p++]=g)}else{var m=h*h-4*c*d;if(al(m)){var _=h/c,g=-l/o+_,S=-_/2;g>=0&&g<=1&&(i[p++]=g),S>=0&&S<=1&&(i[p++]=S)}else if(m>0){var x=cl(m),w=c*l+1.5*o*(-h+x),C=c*l+1.5*o*(-h-x);w<0?w=-ig(-w,og):w=ig(w,og),C<0?C=-ig(-C,og):C=ig(C,og);var g=(-l-(w+C))/(3*o);g>=0&&g<=1&&(i[p++]=g)}else{var A=(2*c*l-3*o*h)/(2*cl(c*c*c)),M=Math.acos(A)/3,L=cl(c),E=Math.cos(M),g=(-l-2*L*E)/(3*o),S=(-l+L*(E+cI*Math.sin(M)))/(3*o),R=(-l+L*(E-cI*Math.sin(M)))/(3*o);g>=0&&g<=1&&(i[p++]=g),S>=0&&S<=1&&(i[p++]=S),R>=0&&R<=1&&(i[p++]=R)}}return p}function g4(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,l=3*t-3*r,s=0;if(al(o)){if(p4(i)){var u=-l/i;u>=0&&u<=1&&(n[s++]=u)}}else{var c=i*i-4*o*l;if(al(c))n[0]=-i/(2*o);else if(c>0){var h=cl(c),u=(-i+h)/(2*o),d=(-i-h)/(2*o);u>=0&&u<=1&&(n[s++]=u),d>=0&&d<=1&&(n[s++]=d)}}return s}function yl(r,t,e,a,n,i){var o=(t-r)*n+r,l=(e-t)*n+t,s=(a-e)*n+e,u=(l-o)*n+o,c=(s-l)*n+l,h=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=s,i[7]=a}function y4(r,t,e,a,n,i,o,l,s,u,c){var h,d=.005,p=1/0,g,m,_,S;Jn[0]=s,Jn[1]=u;for(var x=0;x<1;x+=.05)an[0]=mr(r,e,n,o,x),an[1]=mr(t,a,i,l,x),_=Gs(Jn,an),_=0&&_=0&&u<=1&&(n[s++]=u)}}else{var c=o*o-4*i*l;if(al(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[s++]=u)}else if(c>0){var h=cl(c),u=(-o+h)/(2*i),d=(-o-h)/(2*i);u>=0&&u<=1&&(n[s++]=u),d>=0&&d<=1&&(n[s++]=d)}}return s}function m4(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function Pv(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,l=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=l,n[3]=l,n[4]=o,n[5]=e}function _4(r,t,e,a,n,i,o,l,s){var u,c=.005,h=1/0;Jn[0]=o,Jn[1]=l;for(var d=0;d<1;d+=.05){an[0]=Mr(r,e,n,d),an[1]=Mr(t,a,i,d);var p=Gs(Jn,an);p=0&&p=1?1:Zy(0,a,i,1,s,l)&&mr(0,n,o,1,l[0])}}}var v$=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$e,this.ondestroy=t.ondestroy||$e,this.onrestart=t.onrestart||$e,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,l=o?o(i):i;if(this.onframe(l),i===1)if(this.loop){var s=n%a;this._startTime=t-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ct(t)?t:wv[t]||l2(t)},r})(),S4=(function(){function r(t){this.value=t}return r})(),d$=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new S4(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Jc=(function(){function r(t){this._list=new d$,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),l=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=a.head;a.remove(s),delete n[s.key],i=s.value,this._lastRemovedEntry=s}l?l.value=e:l=new S4(e),l.key=t,a.insertEntry(l),n[t]=l}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),hI={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 Mn(r){return r=Math.round(r),r<0?0:r>255?255:r}function p$(r){return r=Math.round(r),r<0?0:r>360?360:r}function kv(r){return r<0?0:r>1?1:r}function OS(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Mn(parseFloat(t)/100*255):Mn(parseInt(t,10))}function fl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?kv(parseFloat(t)/100):kv(parseFloat(t))}function NS(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function nl(r,t,e){return r+(t-r)*e}function Qa(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function Mw(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var b4=new Jc(20),lg=null;function oc(r,t){lg&&Mw(lg,t),lg=b4.put(r,lg||t.slice())}function ga(r,t){if(r){t=t||[];var e=b4.get(r);if(e)return Mw(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in hI)return Mw(t,hI[a]),oc(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Qa(t,0,0,0,1);return}return Qa(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),oc(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Qa(t,0,0,0,1);return}return Qa(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),oc(r,t),t}return}var o=a.indexOf("("),l=a.indexOf(")");if(o!==-1&&l+1===n){var s=a.substr(0,o),u=a.substr(o+1,l-(o+1)).split(","),c=1;switch(s){case"rgba":if(u.length!==4)return u.length===3?Qa(t,+u[0],+u[1],+u[2],1):Qa(t,0,0,0,1);c=fl(u.pop());case"rgb":if(u.length>=3)return Qa(t,OS(u[0]),OS(u[1]),OS(u[2]),u.length===3?c:fl(u[3])),oc(r,t),t;Qa(t,0,0,0,1);return;case"hsla":if(u.length!==4){Qa(t,0,0,0,1);return}return u[3]=fl(u[3]),Dw(u,t),oc(r,t),t;case"hsl":if(u.length!==3){Qa(t,0,0,0,1);return}return Dw(u,t),oc(r,t),t;default:return}}Qa(t,0,0,0,1)}}function Dw(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=fl(r[1]),n=fl(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Qa(t,Mn(NS(o,i,e+1/3)*255),Mn(NS(o,i,e)*255),Mn(NS(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function g$(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,l=(i+n)/2,s,u;if(o===0)s=0,u=0;else{l<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-t)/6+o/2)/o,h=((i-e)/6+o/2)/o,d=((i-a)/6+o/2)/o;t===i?s=d-h:e===i?s=1/3+c-d:a===i&&(s=2/3+h-c),s<0&&(s+=1),s>1&&(s-=1)}var p=[s*360,u,l];return r[3]!=null&&p.push(r[3]),p}}function Lw(r,t){var e=ga(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return ci(e,e.length===4?"rgba":"rgb")}}function zS(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],l=t[i],s=a-n;return e[0]=Mn(nl(o[0],l[0],s)),e[1]=Mn(nl(o[1],l[1],s)),e[2]=Mn(nl(o[2],l[2],s)),e[3]=kv(nl(o[3],l[3],s)),e}}function y$(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=ga(t[n]),l=ga(t[i]),s=a-n,u=ci([Mn(nl(o[0],l[0],s)),Mn(nl(o[1],l[1],s)),Mn(nl(o[2],l[2],s)),kv(nl(o[3],l[3],s))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function hl(r,t,e,a){var n=ga(r);if(r)return n=g$(n),t!=null&&(n[0]=p$(Ct(t)?t(n[0]):t)),e!=null&&(n[1]=fl(Ct(e)?e(n[1]):e)),a!=null&&(n[2]=fl(Ct(a)?a(n[2]):a)),ci(Dw(n),"rgba")}function qy(r,t){var e=ga(r);if(e&&t!=null)return e[3]=kv(t),ci(e,"rgba")}function ci(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ky(r,t){var e=ga(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var vI=new Jc(100);function Ew(r){if(pt(r)){var t=vI.get(r);return t||(t=Lw(r,-.1),vI.put(r,t)),t}else if(f0(r)){var e=it({},r);return e.colorStops=ut(r.colorStops,function(a){return{offset:a.offset,color:Lw(a.color,-.1)}}),e}return r}var Qy=Math.round;function Bv(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ga(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var dI=1e-4;function il(r){return r-dI}function sg(r){return Qy(r*1e3)/1e3}function Rw(r){return Qy(r*1e4)/1e4}function m$(r){return"matrix("+sg(r[0])+","+sg(r[1])+","+sg(r[2])+","+sg(r[3])+","+Rw(r[4])+","+Rw(r[5])+")"}var _$={left:"start",right:"end",center:"middle",middle:"middle"};function S$(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function b$(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function x$(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function x4(r){return r&&!!r.image}function w$(r){return r&&!!r.svgElement}function s2(r){return x4(r)||w$(r)}function w4(r){return r.type==="linear"}function T4(r){return r.type==="radial"}function C4(r){return r&&(r.type==="linear"||r.type==="radial")}function g0(r){return"url(#"+r+")"}function A4(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function M4(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*by,n=wt(r.scaleX,1),i=wt(r.scaleY,1),o=r.skewX||0,l=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),a&&s.push("rotate("+a+")"),(n!==1||i!==1)&&s.push("scale("+n+","+i+")"),(o||l)&&s.push("skew("+Qy(o*by)+"deg, "+Qy(l*by)+"deg)"),s.join(" ")}var T$=(function(){return Kt.hasGlobalWindow&&Ct(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Iw=Array.prototype.slice;function ji(r,t,e){return(t-r)*e+r}function PS(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},l=i;lo;if(l)a.length=o;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,l=gI,s=e;if(jr(e)){var u=D$(e);l=u,(u===1&&!ee(e[0])||u===2&&!ee(e[0][0]))&&(o=!0)}else if(ee(e)&&!Yr(e))l=cg;else if(pt(e))if(!isNaN(+e))l=cg;else{var c=ga(e);c&&(s=c,l=cv)}else if(f0(e)){var h=it({},s);h.colorStops=ut(e.colorStops,function(p){return{offset:p.offset,color:ga(p.color)}}),w4(e)?l=Ow:T4(e)&&(l=Nw),s=h}i===0?this.valType=l:(l!==this.valType||l===gI)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:s,rawValue:e,percent:0};return a&&(d.easing=a,d.easingFunc=Ct(a)?a:wv[a]||l2(a)),n.push(d),d},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(m,_){return m.time-_.time});for(var n=this.valType,i=a.length,o=a[i-1],l=this.discrete,s=fg(n),u=yI(n),c=0;c=0&&!(o[c].percent<=e);c--);c=d(c,l-2)}else{for(c=h;ce);c++);c=d(c-1,l-2)}g=o[c+1],p=o[c]}if(p&&g){this._lastFr=c,this._lastFrP=e;var _=g.percent-p.percent,S=_===0?1:d((e-p.percent)/_,1);g.easingFunc&&(S=g.easingFunc(S));var x=a?this._additiveValue:u?Ih:t[s];if((fg(i)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)t[s]=S<1?p.rawValue:g.rawValue;else if(fg(i))i===Ay?PS(x,p[n],g[n],S):C$(x,p[n],g[n],S);else if(yI(i)){var w=p[n],C=g[n],A=i===Ow;t[s]={type:A?"linear":"radial",x:ji(w.x,C.x,S),y:ji(w.y,C.y,S),colorStops:ut(w.colorStops,function(L,E){var R=C.colorStops[E];return{offset:ji(L.offset,R.offset,S),color:Cy(PS([],L.color,R.color,S))}}),global:C.global},A?(t[s].x2=ji(w.x2,C.x2,S),t[s].y2=ji(w.y2,C.y2,S)):t[s].r=ji(w.r,C.r,S)}else if(u)PS(x,p[n],g[n],S),a||(t[s]=Cy(x));else{var M=ji(p[n],g[n],S);a?this._additiveValue=M:t[s]=M}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===cg?t[a]=t[a]+n:e===cv?(ga(t[a],Ih),ug(Ih,Ih,n,1),t[a]=Cy(Ih)):e===Ay?ug(t[a],t[a],n,1):e===D4&&pI(t[a],t[a],n,1)},r})(),u2=(function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){e2("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,Jt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,Tv(u),n),this._trackKeys.push(l)}s.addKeyframe(t,Tv(e[l]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var l=o.pop();i.addKeyframe(l.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function kc(){return new Date().getTime()}var E$=(function(r){Ie(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=kc()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,l=i.step(a,n);l&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(Xy(a),!e._paused&&e.update())}Xy(a)},t.prototype.start=function(){this._running||(this._time=kc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new u2(e,a.loop);return this.addAnimator(n),n},t})(gn),R$=300,kS=Kt.domSupported,BS=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=ut(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}})(),mI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_I=!1;function zw(r){var t=r.pointerType;return t==="pen"||t==="touch"}function I$(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function VS(r){r&&(r.zrByTouch=!0)}function O$(r,t){return Ja(r.dom,new N$(r,t),!0)}function L4(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var N$=(function(){function r(t,e){this.stopPropagation=$e,this.stopImmediatePropagation=$e,this.preventDefault=$e,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),wn={mousedown:function(r){r=Ja(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ja(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ja(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ja(this.dom,r);var t=r.toElement||r.relatedTarget;L4(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){_I=!0,r=Ja(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){_I||(r=Ja(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ja(this.dom,r),VS(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),wn.mousemove.call(this,r),wn.mousedown.call(this,r)},touchmove:function(r){r=Ja(this.dom,r),VS(r),this.handler.processGesture(r,"change"),wn.mousemove.call(this,r)},touchend:function(r){r=Ja(this.dom,r),VS(r),this.handler.processGesture(r,"end"),wn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentxI||r<-xI}var ts=[],lc=[],HS=Dr(),US=Math.abs,$i=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Jl(this.rotation)||Jl(this.x)||Jl(this.y)||Jl(this.scaleX-1)||Jl(this.scaleY-1)||Jl(this.skewX)||Jl(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(bI(a),this.invTransform=null);return}a=a||Dr(),e?this.getLocalTransform(a):bI(a),t&&(e?ui(a,t,a):p0(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ts);var a=ts[0]<0?-1:1,n=ts[1]<0?-1:1,i=((ts[0]-a)*e+a)/ts[0]||0,o=((ts[1]-n)*e+n)/ts[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Dr(),Rn(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dr(),ui(lc,t.invTransform,e),e=lc);var a=this.originX,n=this.originY;(a||n)&&(HS[4]=a,HS[5]=n,ui(lc,e,HS),lc[4]-=a,lc[5]-=n,e=lc),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&Ze(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&Ze(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&US(t[0]-1)>1e-10&&US(t[3]-1)>1e-10?Math.sqrt(US(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){tm(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,l=t.anchorX,s=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(a||n||l||s){var g=a+l,m=n+s;e[4]=-g*i-d*m*o,e[5]=-m*o-p*g*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=d*o,u&&Ml(e,e,u),e[4]+=a+c,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),gi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tm(r,t){for(var e=0;e=wI)){r=r||eo;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=En.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?FS=wI:n>2&&FS++,t}}var FS=0,wI=5;function R4(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=V$(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function hi(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=En.measureText(t,r.font).width,e.put(t,a)),a}function TI(r,t,e,a){var n=hi(fi(t),r),i=md(t),o=tf(0,n,e),l=Hs(0,i,a),s=new It(o,l,n,i);return s}function y0(r,t,e,a){var n=((r||"")+"").split(` -`),i=n.length;if(i===1)return TI(n[0],t,e,a);for(var o=new It(0,0,0,0),l=0;l=0?parseFloat(r)/100*t:parseFloat(r):r}function em(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,l=i/2,s=e.x,u=e.y,c="left",h="top";if(a instanceof Array)s+=In(a[0],e.width),u+=In(a[1],e.height),c=null,h=null;else switch(a){case"left":s-=n,u+=l,c="right",h="middle";break;case"right":s+=n+o,u+=l,h="middle";break;case"top":s+=o/2,u-=n,c="center",h="bottom";break;case"bottom":s+=o/2,u+=i+n,c="center";break;case"inside":s+=o/2,u+=l,c="center",h="middle";break;case"insideLeft":s+=n,u+=l,h="middle";break;case"insideRight":s+=o-n,u+=l,c="right",h="middle";break;case"insideTop":s+=o/2,u+=n,c="center";break;case"insideBottom":s+=o/2,u+=i-n,c="center",h="bottom";break;case"insideTopLeft":s+=n,u+=n;break;case"insideTopRight":s+=o-n,u+=n,c="right";break;case"insideBottomLeft":s+=n,u+=i-n,h="bottom";break;case"insideBottomRight":s+=o-n,u+=i-n,c="right",h="bottom";break}return r=r||{},r.x=s,r.y=u,r.align=c,r.verticalAlign=h,r}var YS="__zr_normal__",jS=gi.concat(["ignore"]),G$=di(gi,function(r,t){return r[t]=!0,r},{ignore:!1}),sc={},H$=new It(0,0,0,0),vg=[],m0=(function(){function r(t){this.id=n4(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,l=void 0,s=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var c=a.position!=null,h=a.autoOverflowArea,d=void 0;if((h||c)&&(d=H$,a.layoutRect?d.copy(a.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(sc,a,d):em(sc,a,d),i.x=sc.x,i.y=sc.y,o=sc.align,l=sc.verticalAlign;var p=a.origin;if(p&&a.rotation!=null){var g=void 0,m=void 0;p==="center"?(g=d.width*.5,m=d.height*.5):(g=In(p[0],d.width),m=In(p[1],d.height)),u=!0,i.originX=-i.x+g+(n?0:d.x),i.originY=-i.y+m+(n?0:d.y)}}a.rotation!=null&&(i.rotation=a.rotation);var _=a.offset;_&&(i.x+=_[0],i.y+=_[1],u||(i.originX=-_[0],i.originY=-_[1]));var S=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var x=S.overflowRect=S.overflowRect||new It(0,0,0,0);i.getLocalTransform(vg),Rn(vg,vg),It.copy(x,d),x.applyTransform(vg)}else S.overflowRect=null;var w=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,C=void 0,A=void 0,M=void 0;w&&this.canBeInsideText()?(C=a.insideFill,A=a.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(A==null||A==="auto")&&(A=this.getInsideTextStroke(C),M=!0)):(C=a.outsideFill,A=a.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(A==null||A==="auto")&&(A=this.getOutsideStroke(C),M=!0)),C=C||"#000",(C!==S.fill||A!==S.stroke||M!==S.autoStroke||o!==S.align||l!==S.verticalAlign)&&(s=!0,S.fill=C,S.stroke=A,S.autoStroke=M,S.align=o,S.verticalAlign=l,e.setDefaultTextStyle(S)),e.__dirty|=Ia,s&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vw:Bw},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&ga(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,ci(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},it(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Rt(t))for(var a=t,n=Jt(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(YS,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===YS,o=this.hasState();if(!(!o&&i)){var l=this.currentStates,s=this.stateTransition;if(!(Ht(l,t)>=0&&(e||l.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){e2("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,d=this._textGuide;return h&&h.useState(t,e,a,c),d&&d.useState(t,e,a,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ia),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,l=o===i.length;if(l){for(var s=0;s0,g);var m=this._textContent,_=this._textGuide;m&&m.useStates(t,e,d),_&&_.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ia)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=Ht(n,t),o=Ht(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(g,m){e.during(m)});for(var d=0;d0||n.force&&!o.length){var E=void 0,R=void 0,I=void 0;if(l){R={},d&&(E={});for(var C=0;C=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=Ht(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=Ht(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return l}else{if(r>=n)return o;if(r<=i)return l}else{if(r===n)return o;if(r===i)return l}return(r-n)/s*u+o}var dt=J$;function J$(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return rm(r,t,e)}function rm(r,t,e){return pt(r)?Q$(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Je(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),N4),r=(+r).toFixed(t),e?r:+r}function un(r){return r.sort(function(t,e){return t-e}),r}function ai(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return tZ(r)}function tZ(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function z4(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(ri(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function eZ(r,t){var e=di(r,function(p,g){return p+(isNaN(g)?0:g)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=ut(r,function(p){return(isNaN(p)?0:p)/e*a*100}),i=a*100,o=ut(n,function(p){return Math.floor(p)}),l=di(o,function(p,g){return p+g},0),s=ut(n,function(p,g){return p-o[g]});lu&&(u=s[h],c=h);++o[c],s[c]=0,++l}return ut(o,function(p){return p/a})}function rZ(r,t){var e=Math.max(ai(r),ai(t)),a=r+t;return e>N4?a:Je(a,e)}var MI=9007199254740991;function P4(r){var t=Math.PI*2;return(r%t+t)%t}function Vv(r){return r>-AI&&r=10&&t++,t}function k4(r,t){var e=c2(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function $S(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function DI(r){r.sort(function(s,u){return l(s,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function ZS(r){r.option=r.parentModel=r.ecModel=null}var wZ=".",es="___EC__COMPONENT__CONTAINER___",$4="___EC__EXTENDED_CLASS___";function ni(r){var t={main:"",sub:""};if(r){var e=r.split(wZ);t.main=e[0]||"",t.sub=e[1]||""}return t}function TZ(r){Wr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function CZ(r){return!!(r&&r[$4])}function v2(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return AZ(a)?n=(function(i){J(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(e.$constructor||a).apply(this,arguments)},MX(n,this)),it(n.prototype,e),n[$4]=!0,n.extend=this.extend,n.superCall=LZ,n.superApply=EZ,n.superClass=a,n}}function AZ(r){return Ct(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Z4(r,t){r.extend=t.extend}var MZ=Math.round(Math.random()*10);function DZ(r){var t=["__\0is_clz",MZ++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function LZ(r,t){for(var e=[],a=2;a=0||i&&Ht(i,s)<0)){var u=a.getShallow(s,t);u!=null&&(o[r[l][0]]=u)}}return o}}var RZ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],IZ=Ks(RZ),OZ=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return IZ(this,t,e)},r})(),Uw=new Jc(50);function NZ(r){if(typeof r=="string"){var t=Uw.get(r);return t&&t.image}else return r}function d2(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Uw.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!S0(t)&&i.pending.push(o)):(t=En.loadImage(r,II,II),t.__zrImageSrc=r,Uw.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function II(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=l;u++)s-=l;var c=hi(o,e);return c>s&&(e="",c=0),s=r-c,n.ellipsis=e,n.ellipsisWidth=c,n.contentWidth=s,n.containerWidth=r,n}function K4(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=hi(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var l=0;;l++){if(o<=n||l>=e.maxIterations){t+=e.ellipsis;break}var s=l===0?PZ(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,s),o=hi(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function PZ(r,t,e){for(var a=0,n=0,i=r.length;n_&&p){var w=Math.floor(_/d);g=g||S.length>w,S=S.slice(0,w),x=S.length*d}if(n&&c&&m!=null)for(var C=q4(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),A={},M=0;Mg&&KS(i,o.substring(g,_),t,p),KS(i,m[2],t,p,m[1]),g=qS.lastIndex}gh){var $=i.lines.length;B>0?(R.tokens=R.tokens.slice(0,B),L(R,N,I),i.lines=i.lines.slice(0,E+1)):i.lines=i.lines.slice(0,E),i.isTruncated=i.isTruncated||i.lines.length<$;break t}var q=F.width,G=q==null||q==="auto";if(typeof q=="string"&&q.charAt(q.length-1)==="%")P.percentWidth=q,S.push(P),P.contentWidth=hi(fi(j),P.text);else{if(G){var X=F.backgroundColor,tt=X&&X.image;tt&&(tt=NZ(tt),S0(tt)&&(P.width=Math.max(P.width,tt.width*Y/tt.height)))}var rt=C&&c!=null?c-N:null;rt!=null&&rt0&&g+a.accumWidth>a.width&&(c=t.split(` -`),u=!0),a.accumWidth=g}else{var m=Q4(t,s,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+p,h=m.linesWidths,c=m.lines}}c||(c=t.split(` -`));for(var _=fi(s),S=0;S=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var UZ=di(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function FZ(r){return HZ(r)?!!UZ[r]:!0}function Q4(r,t,e,a,n){for(var i=[],o=[],l="",s="",u=0,c=0,h=fi(t),d=0;de:n+c+g>e){c?(l||s)&&(m?(l||(l=s,s="",u=0,c=u),i.push(l),o.push(c-u),s+=p,u+=g,l="",c=u):(s&&(l+=s,s="",u=0),i.push(l),o.push(c),l=p,c=g)):m?(i.push(s),o.push(u),s=p,u=g):(i.push(p),o.push(g));continue}c+=g,m?(s+=p,u+=g):(s&&(l+=s,s="",u=0),l+=p)}return s&&(l+=s),l&&(i.push(l),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}function NI(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,l=t.height*2;It.set(zI,tf(e,o,n),Hs(a,l,i),o,l),It.intersect(t,zI,null,PI);var s=PI.outIntersectRect;r.outerWidth=s.width,r.outerHeight=s.height,r.baseX=tf(s.x,s.width,n,!0),r.baseY=Hs(s.y,s.height,i,!0)}}var zI=new It(0,0,0,0),PI={outIntersectRect:{},clamp:!0};function p2(r){return r!=null?r+="":r=""}function YZ(r){var t=p2(r.text),e=r.font,a=hi(fi(e),t),n=md(e);return Fw(r,a,n,null)}function Fw(r,t,e,a){var n=new It(tf(r.x||0,t,r.textAlign),Hs(r.y||0,e,r.textBaseline),t,e),i=a??(J4(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function J4(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Yw="__zr_style_"+Math.round(Math.random()*10),Us={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},b0={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Us[Yw]=!0;var kI=["z","z2","invisible"],jZ=["invisible"],fn=(function(r){Ie(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Jt(e),n=0;n1e-4){l[0]=r-e,l[1]=t-a,s[0]=r+e,s[1]=t+a;return}if(dg[0]=eb(n)*e+r,dg[1]=tb(n)*a+t,pg[0]=eb(i)*e+r,pg[1]=tb(i)*a+t,u(l,dg,pg),c(s,dg,pg),n=n%rs,n<0&&(n=n+rs),i=i%rs,i<0&&(i=i+rs),n>i&&!o?i+=rs:nn&&(gg[0]=eb(p)*e+r,gg[1]=tb(p)*a+t,u(l,gg,l),c(s,gg,s))}var xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},as=[],ns=[],Hn=[],Ho=[],Un=[],Fn=[],rb=Math.min,ab=Math.max,is=Math.cos,os=Math.sin,Gi=Math.abs,jw=Math.PI,qo=jw*2,nb=typeof Float32Array<"u",Oh=[];function ib(r){var t=Math.round(r/jw*1e8)/1e8;return t%2*jw}function w0(r,t){var e=ib(r[0]);e<0&&(e+=qo);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=qo?n=e+qo:t&&e-n>=qo?n=e-qo:!t&&e>n?n=e+(qo-ib(e-n)):t&&e0&&(this._ux=Gi(a/Jy/t)||0,this._uy=Gi(a/Jy/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(xe.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Gi(t-this._xi),n=Gi(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(xe.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(xe.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(xe.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Oh[0]=n,Oh[1]=i,w0(Oh,o),n=Oh[0],i=Oh[1];var l=i-n;return this.addData(xe.A,t,e,a,a,n,l,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=is(i)*a+t,this._yi=os(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(xe.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(xe.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&nb&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var l=0;lc.length&&(this._expandData(),c=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Hn[0]=Hn[1]=Un[0]=Un[1]=Number.MAX_VALUE,Ho[0]=Ho[1]=Fn[0]=Fn[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Gi(w)>n||d===e-1)&&(m=Math.sqrt(x*x+w*w),i=_,o=S);break}case xe.C:{var C=t[d++],A=t[d++],_=t[d++],S=t[d++],M=t[d++],L=t[d++];m=u$(i,o,C,A,_,S,M,L,10),i=M,o=L;break}case xe.Q:{var C=t[d++],A=t[d++],_=t[d++],S=t[d++];m=f$(i,o,C,A,_,S,10),i=_,o=S;break}case xe.A:var E=t[d++],R=t[d++],I=t[d++],N=t[d++],B=t[d++],P=t[d++],F=P+B;d+=1,g&&(l=is(B)*I+E,s=os(B)*N+R),m=ab(I,N)*rb(qo,Math.abs(P)),i=is(F)*I+E,o=os(F)*N+R;break;case xe.R:{l=i=t[d++],s=o=t[d++];var H=t[d++],k=t[d++];m=H*2+k*2;break}case xe.Z:{var x=l-i,w=s-o;m=Math.sqrt(x*x+w*w),i=l,o=s;break}}m>=0&&(u[h++]=m,c+=m)}return this._pathLen=c,c},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,l,s,u,c,h,d,p=e<1,g,m,_=0,S=0,x,w=0,C,A;if(!(p&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,m=this._pathLen,x=e*m,!x)))t:for(var M=0;M0&&(t.lineTo(C,A),w=0),L){case xe.M:l=u=a[M++],s=c=a[M++],t.moveTo(u,c);break;case xe.L:{h=a[M++],d=a[M++];var R=Gi(h-u),I=Gi(d-c);if(R>n||I>i){if(p){var N=g[S++];if(_+N>x){var B=(x-_)/N;t.lineTo(u*(1-B)+h*B,c*(1-B)+d*B);break t}_+=N}t.lineTo(h,d),u=h,c=d,w=0}else{var P=R*R+I*I;P>w&&(C=h,A=d,w=P)}break}case xe.C:{var F=a[M++],H=a[M++],k=a[M++],j=a[M++],Y=a[M++],$=a[M++];if(p){var N=g[S++];if(_+N>x){var B=(x-_)/N;yl(u,F,k,Y,B,as),yl(c,H,j,$,B,ns),t.bezierCurveTo(as[1],ns[1],as[2],ns[2],as[3],ns[3]);break t}_+=N}t.bezierCurveTo(F,H,k,j,Y,$),u=Y,c=$;break}case xe.Q:{var F=a[M++],H=a[M++],k=a[M++],j=a[M++];if(p){var N=g[S++];if(_+N>x){var B=(x-_)/N;Pv(u,F,k,B,as),Pv(c,H,j,B,ns),t.quadraticCurveTo(as[1],ns[1],as[2],ns[2]);break t}_+=N}t.quadraticCurveTo(F,H,k,j),u=k,c=j;break}case xe.A:var q=a[M++],G=a[M++],X=a[M++],tt=a[M++],rt=a[M++],vt=a[M++],Tt=a[M++],Nt=!a[M++],xt=X>tt?X:tt,gt=Gi(X-tt)>.001,Pt=rt+vt,_t=!1;if(p){var N=g[S++];_+N>x&&(Pt=rt+vt*(x-_)/N,_t=!0),_+=N}if(gt&&t.ellipse?t.ellipse(q,G,X,tt,Tt,rt,Pt,Nt):t.arc(q,G,xt,rt,Pt,Nt),_t)break t;E&&(l=is(rt)*X+q,s=os(rt)*tt+G),u=is(Pt)*X+q,c=os(Pt)*tt+G;break;case xe.R:l=u=a[M],s=c=a[M+1],h=a[M++],d=a[M++];var Ot=a[M++],ve=a[M++];if(p){var N=g[S++];if(_+N>x){var jt=x-_;t.moveTo(h,d),t.lineTo(h+rb(jt,Ot),d),jt-=Ot,jt>0&&t.lineTo(h+Ot,d+rb(jt,ve)),jt-=ve,jt>0&&t.lineTo(h+ab(Ot-jt,0),d+ve),jt-=Ot,jt>0&&t.lineTo(h,d+ab(ve-jt,0));break t}_+=N}t.rect(h,d,Ot,ve);break;case xe.Z:if(p){var N=g[S++];if(_+N>x){var B=(x-_)/N;t.lineTo(u*(1-B)+l*B,c*(1-B)+s*B);break t}_+=N}t.closePath(),u=l,c=s}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=xe,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Qo(r,t,e,a,n,i,o){if(n===0)return!1;var l=n,s=0,u=r;if(o>t+l&&o>a+l||or+l&&i>e+l||it+h&&c>a+h&&c>i+h&&c>l+h||cr+h&&u>e+h&&u>n+h&&u>o+h||ut+u&&s>a+u&&s>i+u||sr+u&&l>e+u&&l>n+u||le||c+un&&(n+=Nh);var d=Math.atan2(s,l);return d<0&&(d+=Nh),d>=a&&d<=n||d+Nh>=a&&d+Nh<=n}function Wi(r,t,e,a,n,i){if(i>t&&i>a||in?l:0}var Uo=yi.CMD,ls=Math.PI*2,QZ=1e-4;function JZ(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>l||u1&&tq(),p=mr(t,a,i,l,en[0]),d>1&&(g=mr(t,a,i,l,en[1]))),d===2?_t&&l>a&&l>i||l=0&&u<=1){for(var c=0,h=Mr(t,a,i,u),d=0;de||l<-e)return 0;var s=Math.sqrt(e*e-l*l);Qr[0]=-s,Qr[1]=s;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=ls-1e-4){a=0,n=ls;var c=i?1:-1;return o>=Qr[0]+r&&o<=Qr[1]+r?c:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=ls,n+=ls);for(var d=0,p=0;p<2;p++){var g=Qr[p];if(g+r>o){var m=Math.atan2(l,g),c=i?1:-1;m<0&&(m=ls+m),(m>=a&&m<=n||m+ls>=a&&m+ls<=n)&&(m>Math.PI/2&&m1&&(e||(l+=Wi(s,u,c,h,a,n))),_&&(s=i[g],u=i[g+1],c=s,h=u),m){case Uo.M:c=i[g++],h=i[g++],s=c,u=h;break;case Uo.L:if(e){if(Qo(s,u,i[g],i[g+1],t,a,n))return!0}else l+=Wi(s,u,i[g],i[g+1],a,n)||0;s=i[g++],u=i[g++];break;case Uo.C:if(e){if(qZ(s,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],t,a,n))return!0}else l+=eq(s,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],a,n)||0;s=i[g++],u=i[g++];break;case Uo.Q:if(e){if(tV(s,u,i[g++],i[g++],i[g],i[g+1],t,a,n))return!0}else l+=rq(s,u,i[g++],i[g++],i[g],i[g+1],a,n)||0;s=i[g++],u=i[g++];break;case Uo.A:var S=i[g++],x=i[g++],w=i[g++],C=i[g++],A=i[g++],M=i[g++];g+=1;var L=!!(1-i[g++]);d=Math.cos(A)*w+S,p=Math.sin(A)*C+x,_?(c=d,h=p):l+=Wi(s,u,d,p,a,n);var E=(a-S)*C/w+S;if(e){if(KZ(S,x,C,A,A+M,L,t,E,n))return!0}else l+=aq(S,x,C,A,A+M,L,E,n);s=Math.cos(A+M)*w+S,u=Math.sin(A+M)*C+x;break;case Uo.R:c=s=i[g++],h=u=i[g++];var R=i[g++],I=i[g++];if(d=c+R,p=h+I,e){if(Qo(c,h,d,h,t,a,n)||Qo(d,h,d,p,t,a,n)||Qo(d,p,c,p,t,a,n)||Qo(c,p,c,h,t,a,n))return!0}else l+=Wi(d,h,d,p,a,n),l+=Wi(c,p,c,h,a,n);break;case Uo.Z:if(e){if(Qo(s,u,c,h,t,a,n))return!0}else l+=Wi(s,u,c,h,a,n);s=c,u=h;break}}return!e&&!JZ(u,h)&&(l+=Wi(s,u,c,h,a,n)||0),l!==0}function nq(r,t,e){return eV(r,0,!1,t,e)}function iq(r,t,e,a){return eV(r,t,!0,e,a)}var am=Et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Us),oq={style:Et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},b0.style)},ob=gi.concat(["invisible","culling","z","z2","zlevel","parent"]),Zt=(function(r){Ie(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(s){e.buildPath(s,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var l=0;l.5?Bw:a>.2?B$:Vw}else if(e)return Vw}return Bw},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(pt(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Ky(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ic)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){l.copy(e);var s=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}s>1e-10&&(l.width+=u/s,l.height+=u/s,l.x-=u/s/2,l.y-=u/s/2)}return l}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var l=this.path;if(this.hasStroke()){var s=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),iq(l,s/u,e,a)))return!0}if(this.hasFill())return nq(l,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ic,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:it(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ic)},t.prototype.createStyle=function(e){return v0(am,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=it({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,l){r.prototype._applyStateObj.call(this,e,a,n,i,o,l);var s=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=it({},n.shape),it(u,a.shape)):(u=it({},i?this.shape:n.shape),it(u,a.shape)):s&&(u=n.shape),u)if(o){this.shape=it({},this.shape);for(var c={},h=Jt(u),d=0;dn&&(h=l+s,l*=n/h,s*=n/h),u+c>n&&(h=u+c,u*=n/h,c*=n/h),s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+c>i&&(h=l+c,l*=i/h,c*=i/h),r.moveTo(e+l,a),r.lineTo(e+n-s,a),s!==0&&r.arc(e+n-s,a+s,s,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+c,a+i),c!==0&&r.arc(e+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(e,a+l),l!==0&&r.arc(e+l,a+l,l,Math.PI,Math.PI*1.5)}var Bc=Math.round;function T0(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var l=e&&e.lineWidth;return l&&(Bc(a*2)===Bc(n*2)&&(r.x1=r.x2=Na(a,l,!0)),Bc(i*2)===Bc(o*2)&&(r.y1=r.y2=Na(i,l,!0))),r}}function rV(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var l=e&&e.lineWidth;return l&&(r.x=Na(a,l,!0),r.y=Na(n,l,!0),r.width=Math.max(Na(a+i,l,!1)-r.x,i===0?0:1),r.height=Math.max(Na(n+o,l,!1)-r.y,o===0?0:1)),r}}function Na(r,t,e){if(!t)return r;var a=Bc(r*2);return(a+Bc(t))%2===0?a/2:(a+(e?1:-1))/2}var hq=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),vq={},Xt=(function(r){Ie(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hq},t.prototype.buildPath=function(e,a){var n,i,o,l;if(this.subPixelOptimize){var s=rV(vq,a,this.style);n=s.x,i=s.y,o=s.width,l=s.height,s.r=a.r,a=s}else n=a.x,i=a.y,o=a.width,l=a.height;a.r?fq(e,a):e.rect(n,i,o,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Zt);Xt.prototype.type="rect";var UI={fill:"#000"},FI=2,Yn={},dq={style:Et({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},b0.style)},ae=(function(r){Ie(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=UI,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,B=0;B<_.length;B++){var P=this._getOrCreateChild(ef),F=P.createStyle();P.useStyle(F),F.text=_[B],F.x=x,F.y=w,F.textAlign=s,F.textBaseline="middle",F.opacity=e.opacity,F.strokeFirst=!0,N&&(F.shadowBlur=e.textShadowBlur||0,F.shadowColor=e.textShadowColor||"transparent",F.shadowOffsetX=e.textShadowOffsetX||0,F.shadowOffsetY=e.textShadowOffsetY||0),F.stroke=I,F.fill=R,I&&(F.lineWidth=e.lineWidth||M,F.lineDash=e.lineDash,F.lineDashOffset=e.lineDashOffset||0),F.font=a,jI(F,e),w+=S,P.setBoundingRect(Fw(F,h.contentWidth,h.calculatedLineHeight,L?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,a=this._defaultStyle,n=e.align||a.align,i=e.verticalAlign||a.verticalAlign,o=e.x||0,l=e.y||0;NI(Yn,a.overflowRect,o,l,n,i),o=Yn.baseX,l=Yn.baseY;var s=qI(e),u=GZ(s,e,Yn.outerWidth,Yn.outerHeight,n),c=u.width,h=u.outerWidth,d=u.outerHeight,p=e.padding;this.isTruncated=!!u.isTruncated;var g=tf(o,h,n),m=Hs(l,d,i),_=g,S=m;p&&(_+=p[3],S+=p[0]);var x=_+c;lb(e)&&this._renderBackground(e,e,g,m,h,d);for(var w=!!e.backgroundColor,C=0;C=0&&(F=M[P],F.align==="right");)this._placeToken(F,e,E,S,B,"right",w),R-=F.width,B-=F.width,P--;for(N+=(c-(N-_)-(x-B)-R)/2;I<=P;)F=M[I],this._placeToken(F,e,E,S,N+F.width/2,"center",w),N+=F.width,I++;S+=E}},t.prototype._placeToken=function(e,a,n,i,o,l,s){var u=a.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,h=i+n/2;c==="top"?h=i+e.height/2:c==="bottom"&&(h=i+n-e.height/2);var d=!e.isLineHolder&&lb(u);d&&this._renderBackground(u,a,l==="right"?o-e.width:l==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var p=!!u.backgroundColor,g=e.textPadding;g&&(o=ZI(o,l,g),h-=e.height/2-g[0]-e.innerHeight/2);var m=this._getOrCreateChild(ef),_=m.createStyle();m.useStyle(_);var S=this._defaultStyle,x=!1,w=0,C=!1,A=$I("fill"in u?u.fill:"fill"in a?a.fill:(x=!0,S.fill)),M=XI("stroke"in u?u.stroke:"stroke"in a?a.stroke:!p&&!s&&(!S.autoStroke||x)?(w=FI,C=!0,S.stroke):null),L=u.textShadowBlur>0||a.textShadowBlur>0;_.text=e.text,_.x=o,_.y=h,L&&(_.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,_.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=e.font||eo,_.opacity=za(u.opacity,a.opacity,1),jI(_,u),M&&(_.lineWidth=za(u.lineWidth,a.lineWidth,w),_.lineDash=wt(u.lineDash,a.lineDash),_.lineDashOffset=a.lineDashOffset||0,_.stroke=M),A&&(_.fill=A),m.setBoundingRect(Fw(_,e.contentWidth,e.contentHeight,C?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,l){var s=e.backgroundColor,u=e.borderWidth,c=e.borderColor,h=s&&s.image,d=s&&!h,p=e.borderRadius,g=this,m,_;if(d||e.lineHeight||u&&c){m=this._getOrCreateChild(Xt),m.useStyle(m.createStyle()),m.style.fill=null;var S=m.shape;S.x=n,S.y=i,S.width=o,S.height=l,S.r=p,m.dirtyShape()}if(d){var x=m.style;x.fill=s||null,x.fillOpacity=wt(e.fillOpacity,1)}else if(h){_=this._getOrCreateChild(Er),_.onload=function(){g.dirtyStyle()};var w=_.style;w.image=s.image,w.x=n,w.y=i,w.width=o,w.height=l}if(u&&c){var x=m.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=wt(e.strokeOpacity,1),x.lineDash=e.borderDash,x.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var C=(m||_).style;C.shadowBlur=e.shadowBlur||0,C.shadowColor=e.shadowColor||"transparent",C.shadowOffsetX=e.shadowOffsetX||0,C.shadowOffsetY=e.shadowOffsetY||0,C.opacity=za(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return nV(e)&&(a=[e.fontStyle,e.fontWeight,aV(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&sn(a)||e.textFont||e.font},t})(fn),pq={left:!0,right:1,center:1},gq={top:1,bottom:1,middle:1},YI=["fontStyle","fontWeight","fontSize","fontFamily"];function aV(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?QC+"px":r+"px"}function jI(r,t){for(var e=0;e=0,i=!1;if(r instanceof Zt){var o=iV(r),l=n&&o.selectFill||o.normalFill,s=n&&o.selectStroke||o.normalStroke;if(uc(l)||uc(s)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=it({},a),u=it({},u),u.fill=l):!uc(u.fill)&&uc(l)?(i=!0,a=it({},a),u=it({},u),u.fill=Ew(l)):!uc(u.stroke)&&uc(s)&&(i||(a=it({},a),u=it({},u)),u.stroke=Ew(s)),a.style=u}}if(a&&a.z2==null){i||(a=it({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??bf)}return a}function wq(r,t,e){if(e&&e.z2==null){e=it({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??mq)}return e}function Tq(r,t,e){var a=Ht(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:bq(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=it({},e),o=it({opacity:a?n:i.opacity*.1},o),e.style=o),e}function sb(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xq(this,r,t,e);if(r==="blur")return Tq(this,r,e);if(r==="select")return wq(this,r,e)}return e}function Qs(r){r.stateProxy=sb;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=sb),e&&(e.stateProxy=sb)}function tO(r,t){!hV(r,t)&&!r.__highByOuter&&fo(r,oV)}function eO(r,t){!hV(r,t)&&!r.__highByOuter&&fo(r,lV)}function no(r,t){r.__highByOuter|=1<<(t||0),fo(r,oV)}function io(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&fo(r,lV)}function uV(r){fo(r,_2)}function S2(r){fo(r,sV)}function cV(r){fo(r,_q)}function fV(r){fo(r,Sq)}function hV(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function vV(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=g2(i),l=n==="series",s=l?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){sV(u)}),l&&e.push(i)),o.isBlured=!1}),O(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function $w(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var h=0;h0){var l={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(l.dataType=i),t.push(l)}})}),t}function Ys(r,t,e){Ns(r,!0),fo(r,Qs),qw(r,t,e)}function Eq(r){Ns(r,!1)}function ze(r,t,e,a){a?Eq(r):Ys(r,t,e)}function qw(r,t,e){var a=zt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var aO=["emphasis","blur","select"],Rq={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dr(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=ub(g),l*=ub(g));var m=(n===i?-1:1)*ub((o*o*(l*l)-o*o*(p*p)-l*l*(d*d))/(o*o*(p*p)+l*l*(d*d)))||0,_=m*o*p/l,S=m*-l*d/o,x=(r+e)/2+mg(h)*_-yg(h)*S,w=(t+a)/2+yg(h)*_+mg(h)*S,C=lO([1,0],[(d-_)/o,(p-S)/l]),A=[(d-_)/o,(p-S)/l],M=[(-1*d-_)/o,(-1*p-S)/l],L=lO(A,M);if(Qw(A,M)<=-1&&(L=zh),Qw(A,M)>=1&&(L=0),L<0){var E=Math.round(L/zh*1e6)/1e6;L=zh*2+E%2*zh}c.addData(u,x,w,o,l,C,L,h,i)}var kq=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Bq=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vq(r){var t=new yi;if(!r)return t;var e=0,a=0,n=e,i=a,o,l=yi.CMD,s=r.match(kq);if(!s)return t;for(var u=0;uF*F+H*H&&(E=I,R=N),{cx:E,cy:R,x0:-c,y0:-h,x1:E*(n/A-1),y1:R*(n/A-1)}}function Wq(r){var t;if(lt(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Xq(r,t){var e,a=fv(t.r,0),n=fv(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var l=a;a=n,n=l}var s=t.startAngle,u=t.endAngle;if(!(isNaN(s)||isNaN(u))){var c=t.cx,h=t.cy,d=!!t.clockwise,p=uO(u-s),g=p>cb&&p%cb;if(g>xn&&(p=g),!(a>xn))r.moveTo(c,h);else if(p>cb-xn)r.moveTo(c+a*fc(s),h+a*ss(s)),r.arc(c,h,a,s,u,!d),n>xn&&(r.moveTo(c+n*fc(u),h+n*ss(u)),r.arc(c,h,n,u,s,d));else{var m=void 0,_=void 0,S=void 0,x=void 0,w=void 0,C=void 0,A=void 0,M=void 0,L=void 0,E=void 0,R=void 0,I=void 0,N=void 0,B=void 0,P=void 0,F=void 0,H=a*fc(s),k=a*ss(s),j=n*fc(u),Y=n*ss(u),$=p>xn;if($){var q=t.cornerRadius;q&&(e=Wq(q),m=e[0],_=e[1],S=e[2],x=e[3]);var G=uO(a-n)/2;if(w=jn(G,S),C=jn(G,x),A=jn(G,m),M=jn(G,_),R=L=fv(w,C),I=E=fv(A,M),(L>xn||E>xn)&&(N=a*fc(u),B=a*ss(u),P=n*fc(s),F=n*ss(s),p<_V)){var X=jq(H,k,P,F,N,B,j,Y);if(X){var tt=H-X[0],rt=k-X[1],vt=N-X[0],Tt=B-X[1],Nt=1/ss(Yq((tt*vt+rt*Tt)/(Av(tt*tt+rt*rt)*Av(vt*vt+Tt*Tt)))/2),xt=Av(X[0]*X[0]+X[1]*X[1]);R=jn(L,(a-xt)/(Nt+1)),I=jn(E,(n-xt)/(Nt-1))}}}if(!$)r.moveTo(c+H,h+k);else if(R>xn){var gt=jn(S,R),Pt=jn(x,R),_t=_g(P,F,H,k,a,gt,d),Ot=_g(N,B,j,Y,a,Pt,d);r.moveTo(c+_t.cx+_t.x0,h+_t.cy+_t.y0),R0&&r.arc(c+_t.cx,h+_t.cy,gt,Ur(_t.y0,_t.x0),Ur(_t.y1,_t.x1),!d),r.arc(c,h,a,Ur(_t.cy+_t.y1,_t.cx+_t.x1),Ur(Ot.cy+Ot.y1,Ot.cx+Ot.x1),!d),Pt>0&&r.arc(c+Ot.cx,h+Ot.cy,Pt,Ur(Ot.y1,Ot.x1),Ur(Ot.y0,Ot.x0),!d))}else r.moveTo(c+H,h+k),r.arc(c,h,a,s,u,!d);if(!(n>xn)||!$)r.lineTo(c+j,h+Y);else if(I>xn){var gt=jn(m,I),Pt=jn(_,I),_t=_g(j,Y,N,B,n,-Pt,d),Ot=_g(H,k,P,F,n,-gt,d);r.lineTo(c+_t.cx+_t.x0,h+_t.cy+_t.y0),I0&&r.arc(c+_t.cx,h+_t.cy,Pt,Ur(_t.y0,_t.x0),Ur(_t.y1,_t.x1),!d),r.arc(c,h,n,Ur(_t.cy+_t.y1,_t.cx+_t.x1),Ur(Ot.cy+Ot.y1,Ot.cx+Ot.x1),d),gt>0&&r.arc(c+Ot.cx,h+Ot.cy,gt,Ur(Ot.y1,Ot.x1),Ur(Ot.y0,Ot.x0),!d))}else r.lineTo(c+j,h+Y),r.arc(c,h,n,u,s,d)}r.closePath()}}}var $q=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Xr=(function(r){Ie(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $q},t.prototype.buildPath=function(e,a){Xq(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Zt);Xr.prototype.type="sector";var Zq=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Sd=(function(r){Ie(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zq},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t})(Zt);Sd.prototype.type="ring";function qq(r,t,e,a){var n=[],i=[],o=[],l=[],s,u,c,h;if(a){c=[1/0,1/0],h=[-1/0,-1/0];for(var d=0,p=r.length;d=2){if(a){var i=qq(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,l=0;l<(e?o:o-1);l++){var s=i[l*2],u=i[l*2+1],c=n[(l+1)%o];r.bezierCurveTo(s[0],s[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var l=1,h=n.length;lcs[1]){if(i=!1,Ar.negativeSize||a)return i;var s=Sg(cs[0]-us[1]),u=Sg(us[0]-cs[1]);fb(s,u)>xg.len()&&(s=u||!Ar.bidirectional)&&(Lt.scale(bg,l,-u*n),Ar.useDir&&Ar.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],l=o,s=o,u=1;u0){var h=c.duration,d=c.delay,p=c.easing,g={duration:h,delay:d||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};l?t.animateFrom(e,g):t.animateTo(e,g)}else t.stopAnimation(),!l&&t.attr(e),o&&o(1),i&&i()}function oe(r,t,e,a,n,i){w2("update",r,t,e,a,n,i)}function Re(r,t,e,a,n,i){w2("enter",r,t,e,a,n,i)}function Xc(r){if(!r.__zr)return!0;for(var t=0;tri(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function hO(r){return!r.isGroup}function fK(r){return r.shape!=null}function xd(r,t,e){if(!r||!t)return;function a(o){var l={};return o.traverse(function(s){hO(s)&&s.anid&&(l[s.anid]=s)}),l}function n(o){var l={x:o.x,y:o.y,rotation:o.rotation};return fK(o)&&(l.shape=Mt(o.shape)),l}var i=a(r);t.traverse(function(o){if(hO(o)&&o.anid){var l=i[o.anid];if(l){var s=n(o);o.attr(n(l)),oe(o,s,e,zt(o).dataIndex)}}})}function DV(r,t){return ut(r,function(e){var a=e[0];a=Xe(a,t.x),a=Pa(a,t.x+t.width);var n=e[1];return n=Xe(n,t.y),n=Pa(n,t.y+t.height),[a,n]})}function hK(r,t){var e=Xe(r.x,t.x),a=Pa(r.x+r.width,t.x+t.width),n=Xe(r.y,t.y),i=Pa(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function wd(r,t,e){var a=it({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Et(n,e),new Er(a)):Fv(r.replace("path://",""),a,e,"center")}function hv(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var _=hb(p,g,c,h)/d;return!(_<0||_>1)}function hb(r,t,e,a){return r*a-e*t}function vK(r){return r<=1e-6&&r>=-1e-6}function Js(r,t,e,a,n){return t==null||(ee(t)?ke[0]=ke[1]=ke[2]=ke[3]=t:(ke[0]=t[0],ke[1]=t[1],ke[2]=t[2],ke[3]=t[3]),a&&(ke[0]=Xe(0,ke[0]),ke[1]=Xe(0,ke[1]),ke[2]=Xe(0,ke[2]),ke[3]=Xe(0,ke[3])),e&&(ke[0]=-ke[0],ke[1]=-ke[1],ke[2]=-ke[2],ke[3]=-ke[3]),vO(r,ke,"x","width",3,1,n&&n[0]||0),vO(r,ke,"y","height",0,2,n&&n[1]||0)),r}var ke=[0,0,0,0];function vO(r,t,e,a,n,i,o){var l=t[i]+t[n],s=r[a];r[a]+=l,o=Xe(0,Pa(o,s)),r[a]=0?-t[n]:t[i]>=0?s+t[i]:ri(l)>1e-8?(s-o)*t[n]/l:0):r[e]-=t[n]}function vo(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=pt(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,l={componentType:i,name:a,$vars:["name"]};l[i+"Index"]=o;var s=r.formatterParamsExtra;s&&O(Jt(s),function(c){St(l,c)||(l[c]=s[c],l.$vars.push(c))});var u=zt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Et({content:a,encodeHTMLContent:!0,formatterParams:l},n)}}function tT(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Dl(r,t){if(r)if(lt(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function R0(r,t,e){RV(r,t,e,-1/0)}function RV(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var l=r.childrenRef(),s=0;s=0&&l.push(s)}),l}}function Ll(r,t){return Ft(Ft({},r,!0),t,!0)}const CK={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},AK={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var um="ZH",M2="EN",$c=M2,Ry={},D2={},kV=Kt.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$c).toUpperCase();return r.indexOf(um)>-1?um:$c})():$c;function BV(r,t){r=r.toUpperCase(),D2[r]=new Qt(t),Ry[r]=t}function MK(r){if(pt(r)){var t=Ry[r.toUpperCase()]||{};return r===um||r===M2?Mt(t):Ft(Mt(t),Mt(Ry[$c]),!1)}else return Ft(Mt(r),Mt(Ry[$c]),!1)}function rT(r){return D2[r]}function DK(){return D2[$c]}BV(M2,CK);BV(um,AK);var aT=null;function LK(r){aT||(aT=r)}function er(){return aT}var L2=1e3,E2=L2*60,Mv=E2*60,ln=Mv*24,mO=ln*365,EK={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Iy={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},RK="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Tg="{yyyy}-{MM}-{dd}",_O={year:"{yyyy}",month:"{yyyy}-{MM}",day:Tg,hour:Tg+" "+Iy.hour,minute:Tg+" "+Iy.minute,second:Tg+" "+Iy.second,millisecond:RK},Ea=["year","month","day","hour","minute","second","millisecond"],IK=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function OK(r){return!pt(r)&&!Ct(r)?NK(r):r}function NK(r){r=r||{};var t={},e=!0;return O(Ea,function(a){e&&(e=r[a]==null)}),O(Ea,function(a,n){var i=r[a];t[a]={};for(var o=null,l=n;l>=0;l--){var s=Ea[l],u=Rt(i)&&!lt(i)?i[s]:i,c=void 0;lt(u)?(c=u.slice(),o=c[0]||""):pt(u)?(o=u,c=[o]):(o==null?o=Iy[a]:EK[s].test(o)||(o=t[s][s][0]+" "+o),c=[o],e&&(c[1]="{primary|"+o+"}")),t[a][s]=c}}),t}function Fo(r,t){return r+="","0000".substr(0,t-r.length)+r}function Dv(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function zK(r){return r===Dv(r)}function PK(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function O0(r,t,e,a){var n=lu(r),i=n[VV(e)](),o=n[R2(e)]()+1,l=Math.floor((o-1)/3)+1,s=n[I2(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[O2(e)](),h=(c-1)%12+1,d=n[N2(e)](),p=n[z2(e)](),g=n[P2(e)](),m=c>=12?"pm":"am",_=m.toUpperCase(),S=a instanceof Qt?a:rT(a||kV)||DK(),x=S.getModel("time"),w=x.get("month"),C=x.get("monthAbbr"),A=x.get("dayOfWeek"),M=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fo(i%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,C[o-1]).replace(/{MM}/g,Fo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,A[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fo(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Fo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Fo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Fo(g,3)).replace(/{S}/g,g+"")}function kK(r,t,e,a,n){var i=null;if(pt(e))i=e;else if(Ct(e)){var o={time:r.time,level:r.time.level},l=er();l&&l.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var s=r.time;if(s){var u=e[s.lowerTimeUnit][s.upperTimeUnit];i=u[Math.min(s.level,u.length-1)]||""}else{var c=Gc(r.value,n);i=e[c][c][0]}}return O0(new Date(r.value),i,n,a)}function Gc(r,t){var e=lu(r),a=e[R2(t)]()+1,n=e[I2(t)](),i=e[O2(t)](),o=e[N2(t)](),l=e[z2(t)](),s=e[P2(t)](),u=s===0,c=u&&l===0,h=c&&o===0,d=h&&i===0,p=d&&n===1,g=p&&a===1;return g?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function nT(r,t,e){switch(t){case"year":r[GV(e)](0);case"month":r[HV(e)](1);case"day":r[UV(e)](0);case"hour":r[FV(e)](0);case"minute":r[YV(e)](0);case"second":r[jV(e)](0)}return r}function VV(r){return r?"getUTCFullYear":"getFullYear"}function R2(r){return r?"getUTCMonth":"getMonth"}function I2(r){return r?"getUTCDate":"getDate"}function O2(r){return r?"getUTCHours":"getHours"}function N2(r){return r?"getUTCMinutes":"getMinutes"}function z2(r){return r?"getUTCSeconds":"getSeconds"}function P2(r){return r?"getUTCMilliseconds":"getMilliseconds"}function BK(r){return r?"setUTCFullYear":"setFullYear"}function GV(r){return r?"setUTCMonth":"setMonth"}function HV(r){return r?"setUTCDate":"setDate"}function UV(r){return r?"setUTCHours":"setHours"}function FV(r){return r?"setUTCMinutes":"setMinutes"}function YV(r){return r?"setUTCSeconds":"setSeconds"}function jV(r){return r?"setUTCMilliseconds":"setMilliseconds"}function WV(r){if(!B4(r))return pt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function XV(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Td=h0;function iT(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&sn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",l=r instanceof Date;if(o||l){var s=o?lu(r):r;if(isNaN(+s)){if(l)return"-"}else return O0(s,a,e)}if(t==="ordinal")return pw(r)?n(r):ee(r)&&i(r)?r+"":"-";var u=ao(r);return i(u)?WV(u):pw(r)?n(r):typeof r=="boolean"?r+"":"-"}var SO=["a","b","c","d","e","f","g"],pb=function(r,t){return"{"+r+(t??"")+"}"};function $V(r,t,e){lt(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function eu(r,t){return t=t||"transparent",pt(r)?r:Rt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function cm(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Oy={},gb={},Cd=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Oy),this._normalMasterList=a(gb);function a(n,i){var o=[];return O(n,function(l,s){var u=l.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){O(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Oy[t]=e;return}gb[t]=e},r.get=function(t){return gb[t]||Oy[t]},r})();function HK(r){return!!Oy[r]}var oT={coord:1,coord2:2};function UK(r){ZV.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var ZV=bt();function FK(r){var t=r.getShallow("coord",!0),e=oT.coord;if(t==null){var a=ZV.get(r.type);a&&a.getCoord2&&(e=oT.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var ti={none:0,dataCoordSys:1,boxCoordSys:2};function qV(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=ti.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=ti.dataCoordSys,i||(n=ti.none)):a==="box"&&(n=ti.boxCoordSys,!i&&!HK(e)&&(n=ti.none))}return{coordSysType:e,kind:n}}function Ad(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=qV(t),o=i.kind,l=i.coordSysType;if(n&&o!==ti.dataCoordSys&&(o=ti.dataCoordSys,l=e),o===ti.none||l!==e)return!1;var s=a(e,t);return s?(o===ti.dataCoordSys?t.coordinateSystem=s:t.boxCoordinateSystem=s,!0):!1}var KV=function(r,t){var e=t.getReferringComponents(r,He).models[0];return e&&e.coordinateSystem},Ny=O,QV=["left","right","top","bottom","width","height"],zs=[["width","left","right"],["height","top","bottom"]];function k2(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var l=0;t.eachChild(function(s,u){var c=s.getBoundingRect(),h=t.childAt(u+1),d=h&&h.getBoundingRect(),p,g;if(r==="horizontal"){var m=c.width+(d?-d.x+c.x:0);p=i+m,p>a||s.newline?(i=0,p=m,o+=l+e,l=c.height):l=Math.max(l,c.height)}else{var _=c.height+(d?-d.y+c.y:0);g=o+_,g>n||s.newline?(i+=l+e,o=0,g=_,l=c.width):l=Math.max(l,c.width)}s.newline||(s.x=i,s.y=o,s.markRedraw(),r==="horizontal"?i=p+e:o=g+e)})}var Ws=k2;Gt(k2,"vertical");Gt(k2,"horizontal");function JV(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function YK(r,t){var e=gr(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===vv.point)i=e.refPoint,n=Pe(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),l=lt(o)?o:[o,o];n=Pe(a,e.refContainer),i=e.boxCoordFrom===oT.coord2?e.refPoint:[dt(l[0],n.width)+n.x,dt(l[1],n.height)+n.y]}return{viewRect:n,center:i}}function tG(r,t){var e=YK(r,t),a=e.viewRect,n=e.center,i=r.get("radius");lt(i)||(i=[0,i]);var o=dt(a.width,t.getWidth()),l=dt(a.height,t.getHeight()),s=Math.min(o,l),u=dt(i[0],s/2),c=dt(i[1],s/2);return{cx:n[0],cy:n[1],r0:u,r:c,viewRect:a}}function Pe(r,t,e){e=Td(e||0);var a=t.width,n=t.height,i=dt(r.left,a),o=dt(r.top,n),l=dt(r.right,a),s=dt(r.bottom,n),u=dt(r.width,a),c=dt(r.height,n),h=e[2]+e[0],d=e[1]+e[3],p=r.aspect;switch(isNaN(u)&&(u=a-l-d-i),isNaN(c)&&(c=n-s-h-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=a-l-u-d),isNaN(o)&&(o=n-s-c-h),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-d;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-d-i-(l||0)),isNaN(c)&&(c=n-h-o-(s||0));var g=new It((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,c);return g.margin=e,g}function eG(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),l={width:t.width,height:t.height},s=a==="cover";return n>e&&!s||n=m)return h;for(var _=0;_=0;s--)l=Ft(l,n[s],!0);a.defaultOption=l}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Sf(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return JV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(Qt);Z4(qt,Qt);_0(qt);wK(qt);TK(qt,XK);function XK(r){var t=[];return O(qt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=ut(t,function(e){return ni(e).main}),r!=="dataset"&&Ht(t,"dataset")<=0&&t.unshift("dataset"),t}var Q={color:{},darkColor:{},size:{}},je=Q.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};it(je,{primary:je.neutral80,secondary:je.neutral70,tertiary:je.neutral60,quaternary:je.neutral50,disabled:je.neutral20,border:je.neutral30,borderTint:je.neutral20,borderShade:je.neutral40,background:je.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:je.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:je.neutral70,axisLineTint:je.neutral40,axisTick:je.neutral70,axisTickMinor:je.neutral60,axisLabel:je.neutral70,axisSplitLine:je.neutral15,axisMinorSplitLine:je.neutral05});for(var fs in je)if(je.hasOwnProperty(fs)){var bO=je[fs];fs==="theme"?Q.darkColor.theme=je.theme.slice():fs==="highlight"?Q.darkColor.highlight="rgba(255,231,130,0.4)":fs.indexOf("accent")===0?Q.darkColor[fs]=hl(bO,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Q.darkColor[fs]=hl(bO,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var aG="";typeof navigator<"u"&&(aG=navigator.platform||"");var hc="rgba(0, 0, 0, 0.2)",nG=Q.color.theme[0],$K=hl(nG,null,null,.9);const ZK={darkMode:"auto",colorBy:"series",color:Q.color.theme,gradientColor:[$K,nG],aria:{decal:{decals:[{color:hc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aG.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 iG=bt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ka="original",Lr="arrayRows",Ba="objectRows",zn="keyedColumns",dl="typedArray",oG="unknown",Ln="column",cu="row",Pr={Must:1,Might:2,Not:3},lG=$t();function qK(r){lG(r).datasetMap=bt()}function sG(r,t,e){var a={},n=V2(t);if(!n||!r)return a;var i=[],o=[],l=t.ecModel,s=lG(l).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,h;r=r.slice(),O(r,function(m,_){var S=Rt(m)?m:r[_]={name:m};S.type==="ordinal"&&c==null&&(c=_,h=g(S)),a[S.name]=[]});var d=s.get(u)||s.set(u,{categoryWayDim:h,valueWayDim:0});O(r,function(m,_){var S=m.name,x=g(m);if(c==null){var w=d.valueWayDim;p(a[S],w,x),p(o,w,x),d.valueWayDim+=x}else if(c===_)p(a[S],0,x),p(i,0,x);else{var w=d.categoryWayDim;p(a[S],w,x),p(o,w,x),d.categoryWayDim+=x}});function p(m,_,S){for(var x=0;xt)return r[a];return r[e-1]}function fG(r,t,e,a,n,i,o){i=i||r;var l=t(i),s=l.paletteIdx||0,u=l.paletteNameMap=l.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:eQ(a,o);if(c=c||e,!(!c||!c.length)){var h=c[s];return n&&(u[n]=h),l.paletteIdx=(s+1)%c.length,h}}function rQ(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Cg,Ph,wO,TO="\0_ec_inner",aQ=1,H2=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,l){i=i||{},this.option=null,this._theme=new Qt(i),this._locale=new Qt(o),this._optionManager=l},t.prototype.setOption=function(e,a,n){var i=MO(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,MO(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?wO(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var l=i.getTimelineOption(this);l&&(n=!0,this._mergeOption(l,a))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&O(s,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,l=[],s=bt(),u=a&&a.replaceMergeMainTypeMap;qK(this),O(e,function(h,d){h!=null&&(qt.hasClass(d)?d&&(l.push(d),s.set(d,!0)):n[d]=n[d]==null?Mt(h):Ft(n[d],h,!0))}),u&&u.each(function(h,d){qt.hasClass(d)&&!s.get(d)&&(l.push(d),s.set(d,!0))}),qt.topologicalTravel(l,qt.getAllClassMainTypes(),c,this);function c(h){var d=JK(this,h,be(e[h])),p=i.get(h),g=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=Y4(p,d,g);gZ(m,h,qt),n[h]=null,i.set(h,null),o.set(h,0);var _=[],S=[],x=0,w;O(m,function(C,A){var M=C.existing,L=C.newOption;if(!L)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var E=h==="series",R=qt.getClass(h,C.keyInfo.subType,!E);if(!R)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===R)M.name=C.keyInfo.name,M.mergeOption(L,this),M.optionUpdated(L,!1);else{var I=it({componentIndex:A},C.keyInfo);M=new R(L,this,this,I),it(M,I),C.brandNew&&(M.__requireNewView=!0),M.init(L,this,this),M.optionUpdated(null,!0)}}M?(_.push(M.option),S.push(M),x++):(_.push(void 0),S.push(void 0))},this),n[h]=_,i.set(h,S),o.set(h,x),h==="series"&&Cg(this)}this._seriesIndices||Cg(this)},t.prototype.getOption=function(){var e=Mt(this.option);return O(e,function(a,n){if(qt.hasClass(n)){for(var i=be(a),o=i.length,l=!1,s=o-1;s>=0;s--)i[s]&&!Gv(i[s])?l=!0:(i[s]=null,!l&&o--);i.length=o,e[n]=i}}),delete e[TO],e},t.prototype.setTheme=function(e){this._theme=new Qt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function hQ(r,t){return r.join(",")===t.join(",")}var bn=O,Wv=Rt,DO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yb(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=DO.length;e0?e[o-1].seriesModel:null)}),bQ(e)}})}function bQ(r){O(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,l=t.isStackedByIndex,s=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,h){var d=o.get(t.stackedDimension,h);if(isNaN(d))return n;var p,g;l?g=o.getRawIndex(h):p=o.get(t.stackedByDimension,h);for(var m=NaN,_=e-1;_>=0;_--){var S=r[_];if(l||(g=S.data.rawIndexOf(S.stackedByDimension,p)),g>=0){var x=S.data.getByRawIndex(S.stackResultDimension,g);if(s==="all"||s==="positive"&&x>0||s==="negative"&&x<0||s==="samesign"&&d>=0&&x>0||s==="samesign"&&d<=0&&x<0){d=rZ(d,x),m=x;break}}}return a[0]=d,a[1]=m,a})})}var z0=(function(){function r(t){this.data=t.data||(t.sourceFormat===zn?{}:[]),this.sourceFormat=t.sourceFormat||oG,this.seriesLayoutBy=t.seriesLayoutBy||Ln,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;am&&(m=w)}p[0]=g,p[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};zO=(t={},t[Lr+"_"+Ln]={pure:!0,appendData:i},t[Lr+"_"+cu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ba]={pure:!0,appendData:i},t[zn]={pure:!0,appendData:function(o){var l=this._data;O(o,function(s,u){for(var c=l[u]||(l[u]=[]),h=0;h<(s||[]).length;h++)c.push(s[h])})}},t[ka]={appendData:i},t[dl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var l=0;l=0&&(m=o.interpolatedValue[_])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(t,e){return af(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function VO(r){var t,e;return Rt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Lv(r){return new LQ(r)}var LQ=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),l=this._modDataCount||0,s=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==s||l!==u)&&(i="reset");function c(x){return!(x>=1)&&(x=1),x}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=s,this._modDataCount=u;var d=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(h||p1&&a>0?l:o}};return i;function o(){return t=r?null:st},gte:function(r,t){return r>=t}},RQ=(function(){function r(t,e){if(!ee(e)){var a="";le(a)}this._opFn=xG[t],this._rvalFloat=ao(e)}return r.prototype.evaluate=function(t){return ee(t)?this._opFn(t,this._rvalFloat):this._opFn(ao(t),this._rvalFloat)},r})(),wG=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=ee(t)?t:ao(t),n=ee(e)?e:ao(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var l=pt(t),s=pt(e);l&&(a=s?t:0),s&&(n=l?e:0)}return an?-this._resultLT:0},r})(),IQ=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ao(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=ao(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function OQ(r,t){return r==="eq"||r==="ne"?new IQ(r==="eq",t):St(xG,r)?new RQ(r,t):null}var NQ=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return pl(t,e)},r})();function zQ(r,t){var e=new NQ,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Ln&&le(o);var l=[],s={},u=r.dimensionsDefine;if(u)O(u,function(m,_){var S=m.name,x={index:_,name:S,displayName:m.displayName};if(l.push(x),S!=null){var w="";St(s,S)&&le(w),s[S]=x}});else for(var c=0;c65535?FQ:YQ}function dc(){return[1/0,-1/0]}function jQ(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function UO(r,t,e,a,n){var i=AG[e||"float"];if(n){var o=r[t],l=o&&o.length;if(l!==a){for(var s=new i(a),u=0;u_[1]&&(_[1]=m)}return this._rawCount=this._count=s,{start:l,end:s}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,l=o.length,s=this._rawExtent,u=ut(o,function(x){return x.property}),c=0;cS[1]&&(S[1]=_)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=h&&x<=d||isNaN(x))&&(s[u++]=m),m++}g=!0}else if(i===2){for(var _=p[n[0]],w=p[n[1]],C=t[n[1]][0],A=t[n[1]][1],S=0;S=h&&x<=d||isNaN(x))&&(M>=C&&M<=A||isNaN(M))&&(s[u++]=m),m++}g=!0}}if(!g)if(i===1)for(var S=0;S=h&&x<=d||isNaN(x))&&(s[u++]=L)}else for(var S=0;St[I][1])&&(E=!1)}E&&(s[u++]=e.getRawIndex(S))}return uS[1]&&(S[1]=_)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),l=0,s=Math.floor(1/e),u=this.getRawIndex(0),c,h,d,p=new(vc(this._rawCount))(Math.min((Math.ceil(o/s)+2)*2,o));p[l++]=u;for(var g=1;gc&&(c=h,d=C)}N>0&&Nl&&(m=l-c);for(var _=0;_g&&(g=x,p=c+_)}var w=this.getRawIndex(h),C=this.getRawIndex(p);hc-g&&(s=c-g,l.length=s);for(var m=0;mh[1]&&(h[1]=S),d[p++]=x}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();is&&(s=h)}return o=[l,s],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,n,i){return pl(e[i],this._dimensions[i])}Sb={arrayRows:t,objectRows:function(e,a,n,i){return pl(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return pl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}})(),r})(),MG=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(Mg(t)){var o=t,l=void 0,s=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),l=u.data,s=u.sourceFormat,i=[c._getVersionSign()]}else l=o.get("data",!0),s=ya(l)?dl:ka,i=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=wt(h.seriesLayoutBy,d.seriesLayoutBy)||null,g=wt(h.sourceHeader,d.sourceHeader),m=wt(h.dimensions,d.dimensions),_=p!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||m;n=_?[uT(l,{seriesLayoutBy:p,sourceHeader:g,dimensions:m},s)]:[]}else{var S=t;if(a){var x=this._applyTransform(e);n=x.sourceList,i=x.upstreamSignList}else{var w=S.get("source",!0);n=[uT(w,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&YO(i)}var o,l=[],s=[];return O(t,function(u){u.prepareSource();var c=u.getSource(n||0),h="";n!=null&&!c&&YO(h),l.push(c),s.push(u._getVersionSign())}),a?o=HQ(a,l,{datasetIndex:e.componentIndex}):n!=null&&(o=[xQ(l[0])]),{sourceList:o,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return O(r.blocks,function(n){var i=RG(n);i>=t&&(t=i+ +(a&&(!i||fT(n)&&!n.noHeader)))}),t}return 0}function ZQ(r,t,e,a){var n=t.noHeader,i=KQ(RG(t)),o=[],l=t.blocks||[];Wr(!l||lt(l)),l=l||[];var s=r.orderMode;if(t.sortBlocks&&s){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(St(u,s)){var c=new wG(u[s],null);l.sort(function(m,_){return c.evaluate(m.sortParam,_.sortParam)})}else s==="seriesDesc"&&l.reverse()}O(l,function(m,_){var S=t.valueFormatter,x=EG(m)(S?it(it({},r),{valueFormatter:S}):r,m,_>0?i.html:0,a);x!=null&&o.push(x)});var h=r.renderMode==="richText"?o.join(i.richText):hT(a,o.join(""),n?e:i.html);if(n)return h;var d=iT(t.header,"ordinal",r.useUTC),p=LG(a,r.renderMode).nameStyle,g=DG(a);return r.renderMode==="richText"?IG(r,d,p)+i.richText+h:hT(a,'
'+ta(d)+"
"+h,e)}function qQ(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,l=!t.markerType,s=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(C){return C=lt(C)?C:[C],ut(C,function(A,M){return iT(A,lt(p)?p[M]:p,u)})};if(!(i&&o)){var h=l?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,n),d=i?"":iT(s,"ordinal",u),p=t.valueType,g=o?[]:c(t.value,t.dataIndex),m=!l||!i,_=!l&&i,S=LG(a,n),x=S.nameStyle,w=S.valueStyle;return n==="richText"?(l?"":h)+(i?"":IG(r,d,x))+(o?"":tJ(r,g,m,_,w)):hT(a,(l?"":h)+(i?"":QQ(d,!l,x))+(o?"":JQ(g,m,_,w)),e)}}function jO(r,t,e,a,n,i){if(r){var o=EG(r),l={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(l,r,0,i)}}function KQ(r){return{html:XQ[r],richText:$Q[r]}}function hT(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=DG(r);return'
'+t+a+"
"}function QQ(r,t,e){var a=t?"margin-left:2px":"";return''+ta(r)+""}function JQ(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=lt(r)?r:[r],''+ut(r,function(o){return ta(o)}).join("  ")+""}function IG(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function tJ(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(lt(t)?t.join(" "):t,i)}function OG(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return eu(a)}function NG(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var bb=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=V4()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=GK({color:e,type:t,renderMode:a,markerId:n});return pt(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};lt(e)?O(e,function(i){return it(a,i)}):it(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r})();function zG(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,l=t.getRawValue(e),s=lt(l),u=OG(t,e),c,h,d,p;if(o>1||s&&!o){var g=eJ(l,t,e,i,u);c=g.inlineValues,h=g.inlineValueTypes,d=g.blocks,p=g.inlineValues[0]}else if(o){var m=n.getDimensionInfo(i[0]);p=c=af(n,e,i[0]),h=m.type}else p=c=s?l[0]:l;var _=f2(t),S=_&&t.name||"",x=n.getName(e),w=a?S:x;return ar("section",{header:S,noHeader:a||!_,sortParam:p,blocks:[ar("nameValue",{markerType:"item",markerColor:u,name:w,noName:!sn(w),value:c,valueType:h,dataIndex:e})].concat(d||[])})}function eJ(r,t,e,a,n){var i=t.getData(),o=di(r,function(h,d,p){var g=i.getDimensionInfo(p);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),l=[],s=[],u=[];a.length?O(a,function(h){c(af(i,e,h),h)}):O(r,c);function c(h,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(ar("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName,value:h,valueType:p.type})):(l.push(h),s.push(p.type)))}return{inlineValues:l,inlineValueTypes:s,blocks:u}}var Yo=$t();function Dg(r,t){return r.getName(t)||r.getId(t)}var zy="__universalTransitionEnabled",Te=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Lv({count:aJ,reset:nJ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Yo(this).sourceManager=new MG(this);i.prepareSource();var o=this.getInitialData(e,n);XO(o,this),this.dataTask.context.data=o,Yo(this).dataBeforeProcessed=o,WO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=jv(this),i=n?uu(e):{},o=this.subType;qt.hasClass(o)&&(o+="Series"),Ft(e,a.getTheme().get(this.subType)),Ft(e,this.getDefaultOption()),Zs(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&mi(e,i,n)},t.prototype.mergeOption=function(e,a){e=Ft(this.option,e,!0),this.fillDataTextStyle(e.data);var n=jv(this);n&&mi(this.option,e,n);var i=Yo(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);XO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Yo(this).dataBeforeProcessed=o,WO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ya(e))for(var a=["show"],n=0;n=0&&d<0)&&(h=x,d=S,p=0),S===d&&(c[p++]=m))}),c.length=p,c},t.prototype.formatTooltip=function(e,a,n){return zG({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Kt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=G2.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Dg(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[zy])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,l=o.selectedMode,s=a.length;if(!(!l||!s)){if(l==="series")o.selectedMap="all";else if(l==="multiple"){Rt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,a)}},t.registerClass=function(e){return qt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(qt);or(Te,P0);or(Te,G2);Z4(Te,qt);function WO(r){var t=r.name;f2(r)||(r.name=rJ(r)||t)}function rJ(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return O(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function aJ(r){return r.model.getRawData().count()}function nJ(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),iJ}function iJ(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function XO(r,t){O(zv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Gt(oJ,t))})}function oJ(r,t){var e=vT(r);return e&&e.setOutputEnd((t||this).count()),t}function vT(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Oe=(function(){function r(){this.group=new At,this.uid=Cf("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();v2(Oe);_0(Oe);function Af(){var r=$t();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),l=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==l)&&"reset"}}var PG=$t(),lJ=Af(),_e=(function(){function r(){this.group=new At,this.uid=Cf("viewChart"),this.renderTask=Lv({plan:sJ,reset:uJ}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZO(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZO(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Dl(this.group,t)},r.markUpdateMethod=function(t,e){PG(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function $O(r,t,e){r&&Uv(r)&&(t==="emphasis"?no:io)(r,e)}function ZO(r,t,e){var a=qs(r,t),n=t&&t.highlightKey!=null?Oq(t.highlightKey):null;a!=null?O(be(a),function(i){$O(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){$O(i,e,n)})}v2(_e);_0(_e);function sJ(r){return lJ(r.model)}function uJ(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,l=n&&PG(n).updateMethod,s=i?"incrementalPrepareRender":l&&o[l]?l:"render";return s!=="render"&&o[s](t,e,a,n),cJ[s]}var cJ={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},fm="\0__throttleOriginMethod",qO="\0__throttleRate",KO="\0__throttleType";function W2(r,t,e){var a,n=0,i=0,o=null,l,s,u,c;t=t||0;function h(){i=new Date().getTime(),o=null,r.apply(s,u||[])}var d=function(){for(var p=[],g=0;g=0?h():o=setTimeout(h,-l),n=a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(p){c=p},d}function Mf(r,t,e,a){var n=r[t];if(n){var i=n[fm]||n,o=n[KO],l=n[qO];if(l!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=W2(i,e,a==="debounce"),n[fm]=i,n[KO]=a,n[qO]=e}return n}}function Xv(r,t){var e=r[t];e&&e[fm]&&(e.clear&&e.clear(),r[t]=e[fm])}var QO=$t(),JO={itemStyle:Ks(PV,!0),lineStyle:Ks(zV,!0)},fJ={lineStyle:"stroke",itemStyle:"fill"};function kG(r,t){var e=r.visualStyleMapper||JO[t];return e||(console.warn("Unknown style type '"+t+"'."),JO.itemStyle)}function BG(r,t){var e=r.visualDrawType||fJ[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var hJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=kG(r,a),o=i(n),l=n.getShallow("decal");l&&(e.setVisual("decal",l),l.dirty=!0);var s=BG(r,a),u=o[s],c=Ct(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[s]||c||h){var d=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[s]||(o[s]=d,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ct(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ct(o.stroke)?d:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(p,g){var m=r.getDataParams(g),_=it({},o);_[s]=c(m),p.setItemVisual(g,"style",_)}}}},Bh=new Qt,vJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=kG(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,l){var s=o.getRawDataItem(l);if(s&&s[a]){Bh.option=s[a];var u=n(Bh),c=o.ensureUniqueItemVisual(l,"style");it(c,u),Bh.option.decal&&(o.setItemVisual(l,"decal",Bh.option.decal),Bh.option.decal.dirty=!0),i in u&&o.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},dJ={performRawSeries:!0,overallReset:function(r){var t=bt();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),QO(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=QO(e).scope,l=e.visualStyleAccessPath||"itemStyle",s=BG(e,l);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],h=i.getItemVisual(c,"colorFromPalette");if(h){var d=i.ensureUniqueItemVisual(c,"style"),p=a.getName(u)||u+"",g=a.count();d[s]=e.getColorFromPalette(p,o,g)}})}})}},Lg=Math.PI;function pJ(r,t){t=t||{},Et(t,{text:"loading",textColor:Q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new At,a=new Xt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ae({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Xt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new D0({shape:{startAngle:-Lg/2,endAngle:-Lg/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:Lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Lg*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var l=n.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-s*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:s),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-s,y:c-s,width:s*2,height:s*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var VG=(function(){function r(t,e,a,n){this._stageTaskMap=bt(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,l=n&&n.modDataCount,s=l!=null?Math.ceil(l/o):null;return{step:o,modBy:s,modDataCount:l}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,l=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:s,large:l}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=bt();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;O(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Wr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;O(t,function(s,u){if(!(n.visualType&&n.visualType!==s.visualType)){var c=o._stageTaskMap.get(s.uid),h=c.seriesTaskMap,d=c.overallTask;if(d){var p,g=d.agentStubMap;g.each(function(_){l(n,_)&&(_.dirty(),p=!0)}),p&&d.dirty(),o.updatePayload(d,a);var m=o.getPerformArgs(d,n.block);g.each(function(_){_.perform(m)}),d.perform(m)&&(i=!0)}else h&&h.each(function(_,S){l(n,_)&&_.dirty();var x=o.getPerformArgs(_,n.block);x.skip=!s.performRawSeries&&e.isSeriesFiltered(_.context.model),o.updatePayload(_,a),_.perform(x)&&(i=!0)})}});function l(s,u){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,l=e.seriesTaskMap=bt(),s=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):s?a.eachRawSeriesByType(s,c):u&&u(a,n).each(c);function c(h){var d=h.uid,p=l.set(d,o&&o.get(d)||Lv({plan:SJ,reset:bJ,count:wJ}));p.context={model:h,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,p)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Lv({reset:gJ});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var l=o.agentStubMap,s=o.agentStubMap=bt(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,p="";Wr(!t.createOnAllSeries,p),u?a.eachRawSeriesByType(u,g):c?c(a,n).each(g):(h=!1,O(a.getSeries(),g));function g(m){var _=m.uid,S=s.set(_,l&&l.get(_)||(d=!0,Lv({reset:yJ,onDirty:_J})));S.context={model:m,overallProgress:h},S.agent=o,S.__block=h,i._pipe(m,S)}d&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Ct(t)&&(t={overallReset:t,seriesType:TJ(t)}),t.uid=Cf("stageHandler"),e&&(t.visualType=e),t},r})();function gJ(r){r.overallReset(r.ecModel,r.api,r.payload)}function yJ(r){return r.overallProgress&&mJ}function mJ(){this.agent.dirty(),this.getDownstream().dirty()}function _J(){this.agent&&this.agent.dirty()}function SJ(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function bJ(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=be(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?ut(t,function(e,a){return GG(a)}):xJ}var xJ=GG(0);function GG(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&p===u.length-d.length){var g=u.slice(0,p);g!=="data"&&(e.mainType=g,e[d.toLowerCase()]=s,c=!0)}}l.hasOwnProperty(u)&&(a[u]=s,c=!0),c||(n[u]=s)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,l=a.view;if(!o||!l)return!0;var s=e.cptQuery,u=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,i));function c(h,d,p,g){return h[p]==null||d[g||p]===h[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),dT=["symbol","symbolSize","symbolRotate","symbolOffset"],eN=dT.concat(["symbolKeepAspect"]),MJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&ks(s)?s:.5;var u=r.createRadialGradient(o,l,0,o,l,s);return u}function pT(r,t,e){for(var a=t.type==="radial"?UJ(r,t,e):HJ(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ee(r)?[r]:lt(r)?r:null}function $2(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&YJ(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=ut(e,function(i){return i/n}),a/=n)}return[e,a]}var jJ=new yi(!0);function dm(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function rN(r){return typeof r=="string"&&r!=="none"}function pm(r){var t=r.fill;return t!=null&&t!=="none"}function aN(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function nN(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function gT(r,t,e){var a=d2(t.image,t.__image,e);if(S0(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*by),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function WJ(r,t,e,a){var n,i=dm(e),o=pm(e),l=e.strokePercent,s=l<1,u=!t.path;(!t.silent||s)&&u&&t.createPathProxy();var c=t.path||jJ,h=t.__dirty;if(!a){var d=e.fill,p=e.stroke,g=o&&!!d.colorStops,m=i&&!!p.colorStops,_=o&&!!d.image,S=i&&!!p.image,x=void 0,w=void 0,C=void 0,A=void 0,M=void 0;(g||m)&&(M=t.getBoundingRect()),g&&(x=h?pT(r,d,M):t.__canvasFillGradient,t.__canvasFillGradient=x),m&&(w=h?pT(r,p,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),_&&(C=h||!t.__canvasFillPattern?gT(r,d,t):t.__canvasFillPattern,t.__canvasFillPattern=C),S&&(A=h||!t.__canvasStrokePattern?gT(r,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),g?r.fillStyle=x:_&&(C?r.fillStyle=C:o=!1),m?r.strokeStyle=w:S&&(A?r.strokeStyle=A:i=!1)}var L=t.getGlobalScale();c.setScale(L[0],L[1],t.segmentIgnoreThreshold);var E,R;r.setLineDash&&e.lineDash&&(n=$2(t),E=n[0],R=n[1]);var I=!0;(u||h&Ic)&&(c.setDPR(r.dpr),s?c.setContext(null):(c.setContext(r),I=!1),c.reset(),t.buildPath(c,t.shape,a),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(r,s?l:1),E&&(r.setLineDash(E),r.lineDashOffset=R),a||(e.strokeFirst?(i&&nN(r,e),o&&aN(r,e)):(o&&aN(r,e),i&&nN(r,e))),E&&r.setLineDash([])}function XJ(r,t,e){var a=t.__image=d2(e.image,t.__image,t,t.onload);if(!(!a||!S0(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),l=t.getHeight(),s=a.width/a.height;if(o==null&&l!=null?o=l*s:l==null&&o!=null?l=o/s:o==null&&l==null&&(o=a.width,l=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,c=e.sy||0;r.drawImage(a,u,c,e.sWidth,e.sHeight,n,i,o,l)}else if(e.sx&&e.sy){var u=e.sx,c=e.sy,h=o-u,d=l-c;r.drawImage(a,u,c,h,d,n,i,o,l)}else r.drawImage(a,n,i,o,l)}}function $J(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||eo,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=$2(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(dm(e)&&r.strokeText(n,e.x,e.y),pm(e)&&r.fillText(n,e.x,e.y)):(pm(e)&&r.fillText(n,e.x,e.y),dm(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var iN=["shadowBlur","shadowOffsetX","shadowOffsetY"],oN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function WG(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){pa(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Us.opacity:o}(a||t.blend!==e.blend)&&(i||(pa(r,n),i=!0),r.globalCompositeOperation=t.blend||Us.blend);for(var l=0;l0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[hr]){if(this._disposed){this.id;return}var i,o,l;if(Rt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,l=a.transition,a=a.notMerge),this[hr]=!0,mc(this),!this._model||a){var s=new sQ(this._api),u=this._theme,c=this._model=new H2;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(e,{replaceMerge:o},ST);var h={seriesTransition:l,optionChanged:!0};if(n)this[Cr]={silent:i,updateParams:h},this[hr]=!1,this.getZr().wakeUp();else{try{gs(this),Ui.update.call(this,null,h)}catch(d){throw this[Cr]=null,this[hr]=!1,d}this._ssr||this._zr.flush(),this[Cr]=null,this[hr]=!1,gc.call(this,i),yc.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[hr]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Cr]&&(i==null&&(i=this[Cr].silent),o=this[Cr].updateParams,this[Cr]=null),this[hr]=!0,mc(this);try{this._updateTheme(e),n.setTheme(this._theme),gs(this),Ui.update.call(this,{type:"setTheme"},o)}catch(l){throw this[hr]=!1,l}this[hr]=!1,gc.call(this,i),yc.call(this,i)}}},t.prototype._updateTheme=function(e){pt(e)&&(e=c6[e]),e&&(e=Mt(e),e&&dG(e,!0),this._theme=e)},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||Kt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return O(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;O(a,function(s){n.eachComponent({mainType:s},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return O(i,function(s){s.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,l=1/0;if(bN[n]){var s=l,u=l,c=-l,h=-l,d=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();O(Ev,function(w,C){if(w.group===n){var A=a?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Mt(e)),M=w.getDom().getBoundingClientRect();s=i(M.left,s),u=i(M.top,u),c=o(M.right,c),h=o(M.bottom,h),d.push({dom:A,left:M.left,top:M.top})}}),s*=p,u*=p,c*=p,h*=p;var g=c-s,m=h-u,_=En.createCanvas(),S=CI(_,{renderer:a?"svg":"canvas"});if(S.resize({width:g,height:m}),a){var x="";return O(d,function(w){var C=w.left-s,A=w.top-u;x+=''+w.dom+""}),S.painter.getSvgRoot().innerHTML=x,e.connectedBackgroundColor&&S.painter.setBackgroundColor(e.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}else return e.connectedBackgroundColor&&S.add(new Xt({shape:{x:0,y:0,width:g,height:m},style:{fill:e.connectedBackgroundColor}})),O(d,function(w){var C=new Er({style:{x:w.left*p-s,y:w.top*p-u,image:w.dom}});S.add(C)}),S.refreshImmediately(),_.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return Og(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return Og(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return Og(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Wc(n,e);return O(o,function(l,s){s.indexOf("Models")>=0&&O(l,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(s==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Wc(n,e,{defaultMainType:"series"}),o=i.seriesModel,l=o.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?l.indexOfRawIndex(i.dataIndex):null;return s!=null?X2(l,s,a):Md(l,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;O(btt,function(n){var i=function(o){var l=e.getModel(),s=o.target,u,c=n==="globalout";if(c?u={}:s&&Ps(s,function(m){var _=zt(m);if(_&&_.dataIndex!=null){var S=_.dataModel||l.getSeriesByIndex(_.seriesIndex);return u=S&&S.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return u=it({},_.eventData),!0},!0),u){var h=u.componentType,d=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",d=u.seriesIndex);var p=h&&d!=null&&l.getComponent(h,d),g=p&&e[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:p,view:g},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;O(mT,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),LJ(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&W4(this.getDom(),K2,"");var a=this,n=a._api,i=a._model;O(a._componentsViews,function(o){o.dispose(i,n)}),O(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ev[a.id]},t.prototype.resize=function(e){if(!this[hr]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Cr]&&(i==null&&(i=this[Cr].silent),n=!0,this[Cr]=null),this[hr]=!0,mc(this);try{n&&gs(this),Ui.update.call(this,{type:"resize",animation:it({duration:0},e&&e.animation)})}catch(o){throw this[hr]=!1,o}this[hr]=!1,gc.call(this,i),yc.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(Rt(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!bT[e]){var n=bT[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=it({},e);return a.type=yT[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(Rt(a)||(a={silent:!!a}),!!gm[e.type]&&this._model){if(this[hr]){this._pendingActions.push(e);return}var n=a.silent;Mb.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Kt.browser.weChat&&this._throttledZrFlush(),gc.call(this,n),yc.call(this,n)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){gs=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),Cb(h,!0),Cb(h,!1),d.plan()},Cb=function(h,d){for(var p=h._model,g=h._scheduler,m=d?h._componentsViews:h._chartsViews,_=d?h._componentsMap:h._chartsMap,S=h._zr,x=h._api,w=0;wd.get("hoverLayerThreshold")&&!Kt.node&&!Kt.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var S=h._chartsMap[_.__viewId];S.__alive&&S.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function l(h,d){var p=h.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=p)})}function s(h,d){if(!h.preventAutoZ){var p=tu(h);d.eachRendered(function(g){return R0(g,p.z,p.zlevel),!0})}}function u(h,d){d.eachRendered(function(p){if(!Xc(p)){var g=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(h,d){var p=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),m=p.get("duration"),_=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(S){if(S.states&&S.states.emphasis){if(Xc(S))return;if(S instanceof Zt&&Nq(S),S.__dirty){var x=S.prevStates;x&&S.useStates(x)}if(g){S.stateTransition=_;var w=S.getTextContent(),C=S.getTextGuideLine();w&&(w.stateTransition=_),C&&(C.stateTransition=_)}S.__dirty&&i(S)}})}_N=function(h){return new((function(d){J(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(g){for(;g;){var m=g.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);g=g.parent}},p.prototype.enterEmphasis=function(g,m){no(g,m),Za(h)},p.prototype.leaveEmphasis=function(g,m){io(g,m),Za(h)},p.prototype.enterBlur=function(g){uV(g),Za(h)},p.prototype.leaveBlur=function(g){S2(g),Za(h)},p.prototype.enterSelect=function(g){cV(g),Za(h)},p.prototype.leaveSelect=function(g){fV(g),Za(h)},p.prototype.getModel=function(){return h.getModel()},p.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},p.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},p.prototype.getMainProcessVersion=function(){return h[Rg]},p})(hG))(h)},s6=function(h){function d(p,g){for(var m=0;m=0)){xN.push(e);var i=VG.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function d6(r,t){bT[r]=t}function Ltt(r,t,e){var a=ntt("registerMap");a&&a(r,t,e)}var Ett=GQ;hu(Z2,hJ);hu(B0,vJ);hu(B0,dJ);hu(Z2,MJ);hu(B0,DJ);hu(r6,rtt);h6(dG);v6(utt,SQ);d6("default",pJ);bi({type:Fs,event:Fs,update:Fs},$e);bi({type:Ly,event:Ly,update:Ly},$e);bi({type:nm,event:m2,update:nm,action:$e,refineEvent:tA,publishNonRefinedEvent:!0});bi({type:Xw,event:m2,update:Xw,action:$e,refineEvent:tA,publishNonRefinedEvent:!0});bi({type:im,event:m2,update:im,action:$e,refineEvent:tA,publishNonRefinedEvent:!0});function tA(r,t,e,a){return{eventContent:{selected:Lq(e),isFromClick:t.isFromClick||!1}}}f6("default",{});f6("dark",FG);var wN=[],Rtt={registerPreprocessor:h6,registerProcessor:v6,registerPostInit:Ctt,registerPostUpdate:Att,registerUpdateLifecycle:Q2,registerAction:bi,registerCoordinateSystem:Mtt,registerLayout:Dtt,registerVisual:hu,registerTransform:Ett,registerLoading:d6,registerMap:Ltt,registerImpl:att,PRIORITY:mtt,ComponentModel:qt,ComponentView:Oe,SeriesModel:Te,ChartView:_e,registerComponentModel:function(r){qt.registerClass(r)},registerComponentView:function(r){Oe.registerClass(r)},registerSeriesModel:function(r){Te.registerClass(r)},registerChartView:function(r){_e.registerClass(r)},registerCustomSeries:function(r,t){itt(r,t)},registerSubTypeDefaulter:function(r,t){qt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Z$(r,t)}};function Yt(r){if(lt(r)){O(r,function(t){Yt(t)});return}Ht(wN,r)>=0||(wN.push(r),Ct(r)&&(r={install:r}),r.install(Rtt))}function Gh(r){return r==null?0:r.length||1}function TN(r){return r}var oo=(function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||TN,this._newKeyGetter=n||TN,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var c=s.shift();s.length===1&&(a[l]=s[0]),this._update&&this._update(c,o)}else u===1?(a[l]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var l=0;l1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[s]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[s]=null;else if(h===1&&d===1)this._update&&this._update(c,u),n[s]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[s]=null;else if(h>1)for(var p=0;p1)for(var l=0;l30}var Hh=Rt,jo=ut,ktt=typeof Int32Array>"u"?Array:Int32Array,Btt="e\0\0",CN=-1,Vtt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gtt=["_approximateExtent"],AN,zg,Uh,Fh,Eb,Yh,Rb,ea=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;g6(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],l={},s=!1,u={},c=0;c=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,l=n.getSource().sourceFormat,s=l===ka;if(s&&!n.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),lt(i)?i=i.slice():Hh(i)&&(i=it({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Hh(e)?it(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Hh(t)?it(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?it(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Ww(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){O(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:jo(this.dimensions,this._getDimInfo,this),this.hostModel)),Eb(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];Ct(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(a2(arguments)))})},r.internalField=(function(){AN=function(t){var e=t._invertedIndicesMap;O(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,l=t._store;if(o){a=e[n]=new ktt(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),n[e]=s}}})(),r})();function Dd(r,t){U2(r)||(r=F2(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=bt(),i=[],o=Utt(r,e,a,t.dimensionsCount),l=t.canOmitUnusedDimensions&&_6(o),s=a===r.dimensionsDefine,u=s?m6(r):y6(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var h=bt(c),d=new CG(o),p=0;p0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function Utt(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return O(t,function(i){var o;Rt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Ftt(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Ytt=(function(){function r(t){this.coordSysDims=[],this.axisMap=bt(),this.categoryAxisMap=bt(),this.coordSysName=t}return r})();function jtt(r){var t=r.get("coordinateSystem"),e=new Ytt(t),a=Wtt[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Wtt={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",He).models[0],i=r.getReferringComponents("yAxis",He).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),_c(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),_c(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",He).models[0];t.coordSysDims=["single"],e.set("single",n),_c(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",He).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),_c(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),_c(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();O(i.parallelAxisIndex,function(l,s){var u=n.getComponent("parallelAxis",l),c=o[s];e.set(c,u),_c(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",He).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function _c(r){return r.get("type")==="category"}function Xtt(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,l;$tt(t)?i=t:(o=t.schema,i=o.dimensions,l=t.store);var s=!!(r&&r.get("stack")),u,c,h,d;if(O(i,function(x,w){pt(x)&&(i[w]=x={name:x}),s&&!x.isExtraCoord&&(!a&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!n||n===x.coordDim)&&(c=x))}),c&&!a&&!u&&(a=!0),c){h="__\0ecstackresult_"+r.id,d="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,g=c.type,m=0;O(i,function(x){x.coordDim===p&&m++});var _={name:h,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},S={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(l&&(_.storeDimIndex=l.ensureCalculationDimension(d,g),S.storeDimIndex=l.ensureCalculationDimension(h,g)),o.appendCalculationDimension(_),o.appendCalculationDimension(S)):(i.push(_),i.push(S))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function $tt(r){return!g6(r.schema)}function _l(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function S6(r,t){return _l(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Ztt(r,t){var e=r.get("coordinateSystem"),a=Cd.get(e),n;return t&&t.coordSysDims&&(n=ut(t.coordSysDims,function(i){var o={name:i},l=t.axisMap.get(i);if(l){var s=l.get("type");o.type=mm(s)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function qtt(r,t,e){var a,n;return e&&O(r,function(i,o){var l=i.coordDim,s=e.categoryAxisMap.get(l);s&&(a==null&&(a=o),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function po(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=F2(r)):(n=a.getSource(),i=n.sourceFormat===ka);var o=jtt(t),l=Ztt(t,o),s=e.useEncodeDefaulter,u=Ct(s)?s:s?Gt(sG,l,t):null,c={coordDimensions:l,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Dd(n,c),d=qtt(h.dimensions,e.createInvertedIndices,o),p=i?null:a.getSharedDataStore(h),g=Xtt(t,{schema:h,store:p}),m=new ea(h,t);m.setCalculationInfo(g);var _=d!=null&&Ktt(n)?function(S,x,w,C){return C===d?w:this.defaultDimValueGetter(S,x,w,C)}:null;return m.hasItemOption=!1,m.initData(i?n:p,null,_),m}function Ktt(r){if(r.sourceFormat===ka){var t=Qtt(r.data||[]);return!lt(_f(t))}}function Qtt(r){for(var t=0;tn&&(o=i.interval=n);var l=i.intervalPrecision=qv(o),s=i.niceTickExtent=[Je(Math.ceil(r[0]/o)*o,l),Je(Math.floor(r[1]/o)*o,l)];return tet(s,r),i}function Ib(r){var t=Math.pow(10,c2(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Je(e*t)}function qv(r){return ai(r)+2}function MN(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function tet(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),MN(r,0,t),MN(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function eA(r,t){return r>=t[0]&&r<=t[1]}var eet=(function(){function r(){this.normalize=DN,this.scale=LN}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=yt(t.normalize,t),this.scale=yt(t.scale,t)):(this.normalize=DN,this.scale=LN)},r})();function DN(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function LN(r,t){return r*(t[1]-t[0])+t[0]}function wT(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var El=(function(){function r(t){this._calculator=new eet,this._setting=t||{},this._extent=[1/0,-1/0];var e=er();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=er();e&&this._innerSetBreak(e.parseAxisBreakOption(t,yt(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();_0(El);var ret=0,Kv=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ret,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&ut(a,aet);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!pt(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=bt(this.categories))},r})();function aet(r){return Rt(r)&&r.value!=null?r.value:r+""}var of=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Kv({})),lt(n)&&(n=new Kv({categories:ut(n,function(i){return Rt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:pt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return eA(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(El);El.registerClass(of);var Wo=Je,lo=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return eA(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=qv(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,l=er(),s=[];if(!a)return s;if(e.breakTicks==="only_break"&&l)return l.addBreaksToTicks(s,this._brkCtx.breaks,this._extent),s;var u=1e4;n[0]=0&&(h=Wo(h+d*a,o))}if(s.length>0&&h===s[s.length-1].value)break;if(s.length>u)return[]}var p=s.length?s[s.length-1].value:i[1];return n[1]>p&&(e.expandToNicedExtent?s.push({value:Wo(p+a,o)}):s.push({value:n[1]})),l&&l.pruneTicksByBreak(e.pruneByBreak,s,this._brkCtx.breaks,function(g){return g.value},this._interval,this._extent),e.breakTicks!=="none"&&l&&l.addBreaksToTicks(s,this._brkCtx.breaks,this._extent),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&g0&&(i=i===null?l:Math.min(i,l))}e[a]=i}}return e}function T6(r){var t=oet(r),e=[];return O(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),l;if(i.type==="category")l=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,u=t[s],c=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),d=Math.abs(h[1]-h[0]);l=u?c/d*u:c}else{var p=a.getData();l=Math.abs(o[1]-o[0])/p.count()}var g=dt(a.get("barWidth"),l),m=dt(a.get("barMaxWidth"),l),_=dt(a.get("barMinWidth")||(L6(a)?.5:1),l),S=a.get("barGap"),x=a.get("barCategoryGap"),w=a.get("defaultBarGap");e.push({bandWidth:l,barWidth:g,barMaxWidth:m,barMinWidth:_,barGap:S,barCategoryGap:x,defaultBarGap:w,axisKey:rA(i),stackId:x6(a)})}),C6(e)}function C6(r){var t={};O(r,function(a,n){var i=a.axisKey,o=a.bandWidth,l=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},s=l.stacks;t[i]=l;var u=a.stackId;s[u]||l.autoWidthCount++,s[u]=s[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!s[u].width&&(s[u].width=c,c=Math.min(l.remainedWidth,c),l.remainedWidth-=c);var h=a.barMaxWidth;h&&(s[u].maxWidth=h);var d=a.barMinWidth;d&&(s[u].minWidth=d);var p=a.barGap;p!=null&&(l.gap=p);var g=a.barCategoryGap;g!=null&&(l.categoryGap=g)});var e={};return O(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,l=a.categoryGap;if(l==null){var s=Jt(i).length;l=Math.max(35-s*4,15)+"%"}var u=dt(l,o),c=dt(a.gap,1),h=a.remainedWidth,d=a.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),O(i,function(S){var x=S.maxWidth,w=S.minWidth;if(S.width){var C=S.width;x&&(C=Math.min(C,x)),w&&(C=Math.max(C,w)),S.width=C,h-=C+c*C,d--}else{var C=p;x&&xC&&(C=w),C!==p&&(S.width=C,h-=C+c*C,d--)}}),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var g=0,m;O(i,function(S,x){S.width||(S.width=p),m=S,g+=S.width*(1+c)}),m&&(g-=m.width*c);var _=-g/2;O(i,function(S,x){e[n][x]=e[n][x]||{bandWidth:o,offset:_,width:S.width},_+=S.width*(1+c)})}),e}function set(r,t,e){if(r&&t){var a=r[rA(t)];return a}}function A6(r,t){var e=w6(r,t),a=T6(e);O(e,function(n){var i=n.getData(),o=n.coordinateSystem,l=o.getBaseAxis(),s=x6(n),u=a[rA(l)][s],c=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function M6(r){return{seriesType:r,plan:Af(),reset:function(t){if(D6(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),l=e.getDimensionIndex(e.mapDimension(n.dim)),s=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),h=_l(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=uet(n,i),g=L6(t),m=t.get("barMinHeight")||0,_=c&&e.getDimensionIndex(c),S=e.getLayout("size"),x=e.getLayout("offset");return{progress:function(w,C){for(var A=w.count,M=g&&ii(A*3),L=g&&s&&ii(A*3),E=g&&ii(A),R=a.master.getRect(),I=d?R.width:R.height,N,B=C.getStore(),P=0;(N=w.next())!=null;){var F=B.get(h?_:o,N),H=B.get(l,N),k=p,j=void 0;h&&(j=+F-B.get(o,N));var Y=void 0,$=void 0,q=void 0,G=void 0;if(d){var X=a.dataToPoint([F,H]);if(h){var tt=a.dataToPoint([j,H]);k=tt[0]}Y=k,$=X[1]+x,q=X[0]-k,G=S,Math.abs(q)0?e:1:e))}var cet=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Pg.length,l=Math.min(cet(Pg,this._approxInterval,0,o),o-1);this._interval=Pg[l][1],this._intervalPrecision=qv(this._interval),this._minLevelUnit=Pg[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ee(e)?e:+lu(e)},t.prototype.contain=function(e){return eA(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(lo),Pg=[["second",L2],["minute",E2],["hour",Mv],["quarter-day",Mv*6],["half-day",Mv*12],["day",ln*1.2],["half-week",ln*3.5],["week",ln*7],["month",ln*31],["quarter",ln*95],["half-year",mO/2],["year",mO]];function E6(r,t,e,a){return nT(new Date(t),r,a).getTime()===nT(new Date(e),r,a).getTime()}function fet(r,t){return r/=ln,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function het(r){var t=30*ln;return r/=t,r>6?6:r>3?3:r>2?2:1}function vet(r){return r/=Mv,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function EN(r,t){return r/=t?E2:L2,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function det(r){return k4(r)}function pet(r,t,e){var a=Math.max(0,Ht(Ea,t)-1);return nT(new Date(r),Ea[a],e).getTime()}function get(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function yet(r,t,e,a,n,i){var o=1e4,l=IK,s=0;function u(P,F,H,k,j,Y,$){for(var q=get(j,P),G=F,X=new Date(G);Go));)if(X[j](X[k]()+P),G=X.getTime(),i){var tt=i.calcNiceTickMultiple(G,q);tt>0&&(X[j](X[k]()+tt*P),G=X.getTime())}$.push({value:G,notAdd:!0})}function c(P,F,H){var k=[],j=!F.length;if(!E6(Dv(P),a[0],a[1],e)){j&&(F=[{value:pet(a[0],P,e)},{value:a[1]}]);for(var Y=0;Y=a[0]&&$<=a[1]&&u(G,$,q,X,tt,rt,k),P==="year"&&H.length>1&&Y===0&&H.unshift({value:H[0].value-G})}}for(var Y=0;Y=a[0]&&C<=a[1]&&p++)}var A=n/t;if(p>A*1.5&&g>A/1.5||(h.push(x),p>A||r===l[m]))break}d=[]}}}for(var M=he(ut(h,function(P){return he(P,function(F){return F.value>=a[0]&&F.value<=a[1]&&!F.notAdd})}),function(P){return P.length>0}),L=[],E=M.length-1,m=0;m0;)i*=10;var l=[CT(_et(a[0]/i)*i),CT(met(a[1]/i)*i)];this._interval=i,this._intervalPrecision=qv(i),this._niceExtent=l}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Bg(e)/Bg(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Bg(e)/Bg(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),kg(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=er();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,yt(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t})(lo);function Vg(r,t){return CT(r,ai(t))}El.registerClass(R6);var bet=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&s>0&&!u&&(l=0),l<0&&s<0&&!c&&(s=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(l=d,u=!0),p!=null&&(s=p,c=!0),{min:l,max:s,minFixed:u,maxFixed:c,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[wet[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=xet[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),xet={min:"_determinedMin",max:"_determinedMax"},wet={min:"_dataMin",max:"_dataMax"};function I6(r,t,e){var a=r.rawExtentInfo;return a||(a=new bet(r,t,e),r.rawExtentInfo=a,a)}function Gg(r,t){return t==null?null:Yr(t)?NaN:r.parse(t)}function O6(r,t){var e=r.type,a=I6(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var l=w6("bar",o),s=!1;if(O(l,function(h){s=s||h.getBaseAxis()===t.axis}),s){var u=T6(l),c=Tet(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function Tet(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=set(a,e.axis);if(o===void 0)return{min:r,max:t};var l=1/0;O(o,function(p){l=Math.min(p.offset,l)});var s=-1/0;O(o,function(p){s=Math.max(p.offset+p.width,s)}),l=Math.abs(l),s=Math.abs(s);var u=l+s,c=t-r,h=1-(l+s)/i,d=c/h-c;return t+=d*(s/u),r-=d*(l/u),{min:r,max:t}}function lf(r,t){var e=t,a=O6(r,e),n=a.extent,i=e.get("splitNumber");r instanceof R6&&(r.base=e.get("logBase"));var o=r.type,l=e.get("interval"),s=o==="interval"||o==="time";r.setBreaksFromOption(z6(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),l!=null&&r.setInterval&&r.setInterval(l)}function V0(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new of({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new aA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(El.getClass(t)||lo)}}function Cet(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Lf(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=OK(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(pt(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(Ct(t)){if(r.type==="category")return function(n,i){return t(_m(r,n),n.value-r.scale.getExtent()[0],null)};var a=er();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(_m(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function _m(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function nA(r){var t=r.get("interval");return t??"auto"}function N6(r){return r.type==="category"&&nA(r.getLabelModel())===0}function Sm(r,t){var e={};return O(r.mapDimensionsAll(t),function(a){e[S6(r,a)]=!0}),Jt(e)}function Aet(r,t,e){t&&O(Sm(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function sf(r){return r==="middle"||r==="center"}function Qv(r){return r.getShallow("show")}function z6(r){var t=r.get("breaks",!0);if(t!=null)return!er()||!Met(r.axis)?void 0:t}function Met(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Ld=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})(),Det=1e-8;function RN(r,t){return Math.abs(r-t)n&&(a=o,n=s)}if(a)return Eet(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return O(o,function(l){l.type==="polygon"?IN(l.exterior,n,i,e):O(l.points,function(s){IN(s,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new It(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(l&1),s=s>>1^-(s&1),l+=n,s+=i,n=l,i=s,a.push([l/e,s/e])}return a}function Oet(r,t){return r=Iet(r),ut(he(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new ON(o[0],o.slice(1)));break;case"MultiPolygon":O(n.coordinates,function(s){s[0]&&i.push(new ON(s[0],s.slice(1)))});break;case"LineString":i.push(new NN([n.coordinates]));break;case"MultiLineString":i.push(new NN(n.coordinates))}var l=new k6(a[t||"name"],i,a.cp);return l.properties=a,l})}var Net=$t(),Rv=$t(),On={estimate:1,determine:2};function bm(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function V6(r,t){var e=ut(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function zet(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Lf(r),n=r.scale.getExtent(),i=V6(r,e),o=he(i,function(l){return l>=n[0]&&l<=n[1]});return{labels:ut(o,function(l){var s={value:l};return{formattedLabel:a(s),rawLabel:r.scale.getLabel(s),tickValue:l,time:void 0,break:void 0}})}}return r.type==="category"?ket(r,t):Vet(r)}function Pet(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=V6(r,a);return{ticks:he(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?Bet(r,t):{ticks:ut(r.scale.getTicks(e),function(o){return o.value})}}function ket(r,t){var e=r.getLabelModel(),a=G6(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function G6(r,t,e){var a=Het(r),n=nA(t),i=e.kind===On.estimate;if(!i){var o=U6(a,n);if(o)return o}var l,s;Ct(n)?l=j6(r,n):(s=n==="auto"?Uet(r,e):n,l=Y6(r,s));var u={labels:l,labelCategoryInterval:s};return i?e.out.noPxChangeTryDetermine.push(function(){return AT(a,n,u),!0}):AT(a,n,u),u}function Bet(r,t){var e=Get(r),a=nA(t),n=U6(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Ct(a))i=j6(r,a,!0);else if(a==="auto"){var l=G6(r,r.getLabelModel(),bm(On.determine));o=l.labelCategoryInterval,i=ut(l.labels,function(s){return s.tickValue})}else o=a,i=Y6(r,o,!0);return AT(e,a,{ticks:i,tickCategoryInterval:o})}function Vet(r){var t=r.scale.getTicks(),e=Lf(r);return{labels:ut(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var Get=H6("axisTick"),Het=H6("axisLabel");function H6(r){return function(e){return Rv(e)[r]||(Rv(e)[r]={list:[]})}}function U6(r,t){for(var e=0;ec&&(u=Math.max(1,Math.floor(s/c)));for(var h=l[0],d=r.dataToCoord(h+1)-r.dataToCoord(h),p=Math.abs(d*Math.cos(i)),g=Math.abs(d*Math.sin(i)),m=0,_=0;h<=l[1];h+=u){var S=0,x=0,w=y0(n({value:h}),a.font,"center","top");S=w.width*1.3,x=w.height*1.3,m=Math.max(m,S,7),_=Math.max(_,x,7)}var C=m/p,A=_/g;isNaN(C)&&(C=1/0),isNaN(A)&&(A=1/0);var M=Math.max(0,Math.floor(Math.min(C,A)));if(e===On.estimate)return t.out.noPxChangeTryDetermine.push(yt(Yet,null,r,M,s)),M;var L=F6(r,M,s);return L??M}function Yet(r,t,e){return F6(r,t,e)==null}function F6(r,t,e){var a=Net(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function jet(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Y6(r,t,e){var a=Lf(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),l=[],s=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&s>1&&c/s>2&&(u=Math.round(Math.ceil(u/s)*s));var h=N6(r),d=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;d&&u!==i[0]&&m(i[0]);for(var g=u;g<=i[1];g+=s)m(g);p&&g-s!==i[1]&&m(i[1]);function m(_){var S={value:_};l.push(e?_:{formattedLabel:a(S),rawLabel:n.getLabel(S),tickValue:_,time:void 0,break:void 0})}return l}function j6(r,t,e){var a=r.scale,n=Lf(r),i=[];return O(a.getTicks(),function(o){var l=a.getLabel(o),s=o.value;t(o.value,l)&&i.push(e?s:{formattedLabel:n(o),rawLabel:l,tickValue:s,time:void 0,break:void 0})}),i}var zN=[0,1],Pn=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return z4(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),PN(a,n.count())),fe(t,zN,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),PN(a,n.count()));var i=fe(t,a,zN,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=Pet(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=ut(n,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),o=e.get("alignWithLabel");return Wet(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=ut(a,function(i){return ut(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||bm(On.determine),zet(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||bm(On.determine),Fet(this,t)},r})();function PN(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Wet(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,l;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var s=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/s;O(t,function(p){p.coord-=u/2,p.onBand=!0});var c=r.scale.getExtent();l=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*l,tickValue:c[1]+1,onBand:!0},t.push(o)}var h=i[0]>i[1];d(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&d(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),d(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&d(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function d(p,g){return p=Je(p),g=Je(g),h?p>g:pn&&(n+=jh);var p=Math.atan2(l,o);if(p<0&&(p+=jh),p>=a&&p<=n||p+jh>=a&&p+jh<=n)return s[0]=c,s[1]=h,u-e;var g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,_=e*Math.cos(n)+r,S=e*Math.sin(n)+t,x=(g-o)*(g-o)+(m-l)*(m-l),w=(_-o)*(_-o)+(S-l)*(S-l);return x0){t=t/180*Math.PI,An.fromArray(r[0]),Me.fromArray(r[1]),We.fromArray(r[2]),Lt.sub(oi,An,Me),Lt.sub(ei,We,Me);var e=oi.len(),a=ei.len();if(!(e<.001||a<.001)){oi.scale(1/e),ei.scale(1/a);var n=oi.dot(ei),i=Math.cos(t);if(i1&&Lt.copy(Jr,We),Jr.toArray(r[1])}}}}function Qet(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,An.fromArray(r[0]),Me.fromArray(r[1]),We.fromArray(r[2]),Lt.sub(oi,Me,An),Lt.sub(ei,We,Me);var a=oi.len(),n=ei.len();if(!(a<.001||n<.001)){oi.scale(1/a),ei.scale(1/n);var i=oi.dot(t),o=Math.cos(e);if(i=s)Lt.copy(Jr,We);else{Jr.scaleAndAdd(ei,l/Math.tan(Math.PI/2-c));var h=We.x!==Me.x?(Jr.x-Me.x)/(We.x-Me.x):(Jr.y-Me.y)/(We.y-Me.y);if(isNaN(h))return;h<0?Lt.copy(Jr,Me):h>1&&Lt.copy(Jr,We)}Jr.toArray(r[1])}}}}function zb(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var l=a.getModel("lineStyle").getLineStyle();n?r.useStyle(l):i.style=l}function Jet(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=tl(a[0],a[1]),i=tl(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,l=wy([],a[1],a[0],o/n),s=wy([],a[1],a[2],o/i),u=wy([],l,s,.5);r.bezierCurveTo(l[0],l[1],l[0],l[1],u[0],u[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],a[2][0],a[2][1])}else for(var c=1;c0){C(I*R,0,i);var N=I+L;N<0&&A(-N*R,1)}else A(-L*R,1)}}function C(L,E,R){L!==0&&(c=!0);for(var I=E;I0)for(var N=0;N0;N--){var H=R[N-1]*F;C(-H,N,i)}}}function M(L){var E=L<0?-1:1;L=Math.abs(L);for(var R=Math.ceil(L/(i-1)),I=0;I0?C(R,0,I+1):C(-R,i-I-1,i),L-=R,L<=0)return}return c}function rrt(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),Ht(d,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),oe(a,u,e,s)}else if(a.attr(u),!Tf(a).valueAnimation){var h=wt(a.style.opacity,1);a.style.opacity=0,Re(a,{style:{opacity:h}},e,s)}if(i.oldLayout=u,a.states.select){var p=i.oldLayoutSelect={};Hg(p,u,Ug),Hg(p,a.states.select,Ug)}if(a.states.emphasis){var g=i.oldLayoutEmphasis={};Hg(g,u,Ug),Hg(g,a.states.emphasis,Ug)}NV(a,s,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=irt(n),o=i.oldLayout,m={points:n.shape.points};o?(n.attr({shape:o}),oe(n,{shape:m},e)):(n.setShape(m),n.style.strokePercent=0,Re(n,{style:{strokePercent:1}},e)),i.oldLayout=m}},r})(),Bb=$t();function lrt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Bb(e).labelManager;n||(n=Bb(e).labelManager=new ort),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Bb(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Vb=Math.sin,Gb=Math.cos,Q6=Math.PI,ms=Math.PI*2,srt=180/Q6,J6=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,l,s){var u=l-o,c=!s,h=Math.abs(u),d=il(h-ms)||(c?u>=ms:-u>=ms),p=u>0?u%ms:u%ms+ms,g=!1;d?g=!0:il(h)?g=!1:g=p>=Q6==!!c;var m=t+a*Gb(o),_=e+n*Vb(o);this._start&&this._add("M",m,_);var S=Math.round(i*srt);if(d){var x=1/this._p,w=(c?1:-1)*(ms-x);this._add("A",a,n,S,1,+c,t+a*Gb(o+w),e+n*Vb(o+w)),x>.01&&this._add("A",a,n,S,0,+c,m,_)}else{var C=t+a*Gb(l),A=e+n*Vb(l);this._add("A",a,n,S,+g,+c,C,A)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,l,s,u){for(var c=[],h=this._p,d=1;d"}function yrt(r){return""}function sA(r,t){t=t||{};var e=t.newline?` -`:"";function a(n){var i=n.children,o=n.tag,l=n.attrs,s=n.text;return grt(o,l)+(o!=="style"?ta(s):s||"")+(i?""+e+ut(i,function(u){return a(u)}).join(e)+e:"")+yrt(o)}return a(r)}function mrt(r,t,e){e=e||{};var a=e.newline?` -`:"",n=" {"+a,i=a+"}",o=ut(Jt(r),function(s){return s+n+ut(Jt(r[s]),function(u){return u+":"+r[s][u]+";"}).join(a)+i}).join(a),l=ut(Jt(t),function(s){return"@keyframes "+s+n+ut(Jt(t[s]),function(u){return u+n+ut(Jt(t[s][u]),function(c){var h=t[s][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!l?"":[""].join(a)}function RT(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function UN(r,t,e,a){return _r("svg","root",{width:r,height:t,xmlns:t8,"xmlns:xlink":e8,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var _rt=0;function a8(){return _rt++}var FN={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"},bs="transform-origin";function Srt(r,t,e){var a=it({},r.shape);it(a,t),r.buildPath(e,a);var n=new J6;return n.reset(A4(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function brt(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[bs]=e+"px "+a+"px")}var xrt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function n8(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function wrt(r,t,e){var a=r.shape.paths,n={},i,o;if(O(a,function(s){var u=RT(e.zrId);u.animation=!0,H0(s,{},u,!0);var c=u.cssAnims,h=u.cssNodes,d=Jt(c),p=d.length;if(p){o=d[p-1];var g=c[o];for(var m in g){var _=g[m];n[m]=n[m]||{d:""},n[m].d+=_.d||""}for(var S in h){var x=h[S].animation;x.indexOf(o)>=0&&(i=x)}}}),!!i){t.d=!1;var l=n8(n,e);return i.replace(o,l)}}function YN(r){return pt(r)?FN[r]?"cubic-bezier("+FN[r]+")":l2(r)?r:"":""}function H0(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof L0){var l=wrt(r,t,e);if(l)o.push(l);else if(!i)return}else if(!i)return;for(var s={},u=0;u0}).length){var Nt=n8(L,e);return Nt+" "+x[0]+" both"}}for(var _ in s){var l=m(s[_]);l&&o.push(l)}if(o.length){var S=e.zrId+"-cls-"+a8();e.cssNodes["."+S]={animation:o.join(",")},t.class=S}}function Trt(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};jN(a,t,e)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,l=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&l||o;s&&(i=Ew(s))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),jN(a,t,e)}}function jN(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+a8(),e.cssStyleCache[n]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Jv=Math.round;function i8(r){return r&&pt(r.src)}function o8(r){return r&&Ct(r.toDataURL)}function uA(r,t,e,a){vrt(function(n,i){var o=n==="fill"||n==="stroke";o&&C4(i)?s8(t,r,n,a):o&&s2(i)?u8(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),Rrt(e,r,a)}function cA(r,t){var e=q$(t);e&&(e.each(function(a,n){a!=null&&(r[(HN+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[HN+"silent"]="true"))}function WN(r){return il(r[0]-1)&&il(r[1])&&il(r[2])&&il(r[3]-1)}function Crt(r){return il(r[4])&&il(r[5])}function fA(r,t,e){if(t&&!(Crt(t)&&WN(t))){var a=1e4;r.transform=WN(t)?"translate("+Jv(t[4]*a)/a+" "+Jv(t[5]*a)/a+")":m$(t)}}function XN(r,t,e){for(var a=r.points,n=[],i=0;i"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";Wr(d,_),Wr(p,_)}else if(d==null||p==null){var S=function(I,N){if(I){var B=I.elm,P=d||N.width,F=p||N.height;I.tag==="pattern"&&(u?(F=1,P/=i.width):c&&(P=1,F/=i.height)),I.attrs.width=P,I.attrs.height=F,B&&(B.setAttribute("width",P),B.setAttribute("height",F))}},x=d2(g,null,r,function(I){s||S(M,I),S(h,I)});x&&x.width&&x.height&&(d=d||x.width,p=p||x.height)}h=_r("image","img",{href:g,width:d,height:p}),o.width=d,o.height=p}else n.svgElement&&(h=Mt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var w,C;s?w=C=1:u?(C=1,w=o.width/i.width):c?(w=1,C=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),C!=null&&!isNaN(C)&&(o.height=C);var A=M4(n);A&&(o.patternTransform=A);var M=_r("pattern","",o,[h]),L=sA(M),E=a.patternCache,R=E[L];R||(R=a.zrId+"-p"+a.patternIdx++,E[L]=R,o.id=R,M=a.defs[R]=_r("pattern",R,o,[h])),t[e]=g0(R)}}function Irt(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=_r("clipPath",i,o,[l8(r,e)])}t["clip-path"]=g0(i)}function qN(r){return document.createTextNode(r)}function Ls(r,t,e){r.insertBefore(t,e)}function KN(r,t){r.removeChild(t)}function QN(r,t){r.appendChild(t)}function c8(r){return r.parentNode}function f8(r){return r.nextSibling}function Hb(r,t){r.textContent=t}var JN=58,Ort=120,Nrt=_r("","");function IT(r){return r===void 0}function Kn(r){return r!==void 0}function zrt(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function pv(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function td(r){var t,e=r.children,a=r.tag;if(Kn(a)){var n=r.elm=r8(a);if(hA(Nrt,r),lt(e))for(t=0;ti?(g=e[s+1]==null?null:e[s+1].elm,h8(r,g,e,n,s)):Am(r,t,a,i))}function Oc(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(hA(r,t),IT(t.text)?Kn(a)&&Kn(n)?a!==n&&Prt(e,a,n):Kn(n)?(Kn(r.text)&&Hb(e,""),h8(e,null,n,0,n.length-1)):Kn(a)?Am(e,a,0,a.length-1):Kn(r.text)&&Hb(e,""):r.text!==t.text&&(Kn(a)&&Am(e,a,0,a.length-1),Hb(e,t.text)))}function krt(r,t){if(pv(r,t))Oc(r,t);else{var e=r.elm,a=c8(e);td(t),a!==null&&(Ls(a,t.elm,f8(e)),Am(a,[r],0,0))}return t}var Brt=0,Vrt=(function(){function r(t,e,a){if(this.type="svg",this.refreshHover=tz(),this.configLayer=tz(),this.storage=e,this._opts=a=it({},a),this.root=t,this._id="zr"+Brt++,this._oldVNode=UN(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=r8("svg");hA(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",krt(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return ZN(t,RT(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=RT(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],l=this._bgVNode=Grt(a,n,this._backgroundColor,i);l&&o.push(l);var s=t.compress?null:this._mainVNode=_r("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var u=ut(Jt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(_r("defs","defs",{},u)),t.animation){var c=mrt(i.cssNodes,i.cssAnims,{newline:!0});if(c){var h=_r("style","stl",{},[],c);o.push(h)}}return UN(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},sA(this.renderToVNode({animation:wt(t.cssAnimation,!0),emphasis:wt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:wt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,l,s,u=0,c=0;c=0&&!(d&&s&&d[m]===s[m]);m--);for(var _=g-1;_>m;_--)o--,l=i[o-1];for(var S=m+1;S=l)}}for(var h=this.__startIndex;h15)break}}F.prevElClipPaths&&S.restore()};if(x)if(x.length===0)E=_.__endIndex;else for(var I=p.dpr,N=0;N0&&t>n[0]){for(s=0;st);s++);l=a[n[s]]}if(n.splice(s+1,0,t),a[t]=e,!e.virtual)if(l){var u=l.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?Fg:0),this._needsManuallyCompositing),c.__builtin__||e2("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==s&&(c.__dirty=!0),c.__startIndex=s,c.incremental?c.__drawIndex=-1:c.__drawIndex=s,e(s),i=c),n.__dirty&Ia&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(h,d){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?Ft(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=Q.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Te);function uf(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=af(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var Ed=(function(r){J(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,l){this.removeAll();var s=nr(e,-1,-1,2,2,null,l);s.attr({z2:wt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$rt,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){no(this.childAt(0))},t.prototype.downplay=function(){io(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",l=e.hostModel,s=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),c=o!==this._symbolType,h=i&&i.disableAnimation;if(c){var d=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,s,u,d)}else{var p=this.childAt(0);p.silent=!1;var g={scaleX:s[0]/2,scaleY:s[1]/2};h?p.attr(g):oe(p,g,l,a),hn(p)}if(this._updateCommon(e,a,s,n,i),c){var p=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Re(p,g,l,a)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var l=this.childAt(0),s=e.hostModel,u,c,h,d,p,g,m,_,S;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,h=i.selectItemStyle,d=i.focus,p=i.blurScope,m=i.labelStatesModels,_=i.hoverScale,S=i.cursorStyle,g=i.emphasisDisabled),!i||e.hasItemOption){var x=i&&i.itemModel?i.itemModel:e.getItemModel(a),w=x.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),h=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),p=w.get("blurScope"),g=w.get("disabled"),m=pr(x),_=w.getShallow("scale"),S=x.getShallow("cursor")}var C=e.getItemVisual(a,"symbolRotate");l.attr("rotation",(C||0)*Math.PI/180||0);var A=fu(e.getItemVisual(a,"symbolOffset"),n);A&&(l.x=A[0],l.y=A[1]),S&&l.attr("cursor",S);var M=e.getItemVisual(a,"style"),L=M.fill;if(l instanceof Er){var E=l.style;l.useStyle(it({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},M))}else l.__isEmptyBrush?l.useStyle(it({},M)):l.useStyle(M),l.style.decal=null,l.setColor(L,o&&o.symbolInnerColor),l.style.strokeNoScale=!0;var R=e.getItemVisual(a,"liftZ"),I=this._z2;R!=null?I==null&&(this._z2=l.z2,l.z2+=R):I!=null&&(l.z2=I,this._z2=null);var N=o&&o.useNameLabel;br(l,m,{labelFetcher:s,labelDataIndex:a,defaultText:B,inheritColor:L,defaultOpacity:M.opacity});function B(H){return N?e.getName(H):uf(e,H)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=l.ensureState("emphasis");P.style=u,l.ensureState("select").style=h,l.ensureState("blur").style=c;var F=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;P.scaleX=this._sizeX*F,P.scaleY=this._sizeY*F,this.setSymbolScale(1),ze(this,d,p,g)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=zt(this).dataIndex,l=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var s=i.getTextContent();s&&ml(s,{style:{opacity:0}},a,{dataIndex:o,removeOpt:l,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ml(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:l})},t.getSymbolSize=function(e,a){return Df(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t})(At);function $rt(r,t){this.parent.drift(r,t)}function Fb(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function az(r){return r!=null&&!Rt(r)&&(r={isIgnore:r}),r||{}}function nz(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:pr(t),cursorStyle:t.get("cursor")}}var Rd=(function(){function r(t){this.group=new At,this._SymbolCtor=t||Ed}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=az(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,l=e.disableAnimation,s=nz(t),u={disableAnimation:l},c=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||a.removeAll(),t.diff(i).add(function(h){var d=c(h);if(Fb(t,d,h,e)){var p=new o(t,h,s,u);p.setPosition(d),t.setItemGraphicEl(h,p),a.add(p)}}).update(function(h,d){var p=i.getItemGraphicEl(d),g=c(h);if(!Fb(t,g,h,e)){a.remove(p);return}var m=t.getItemVisual(h,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==m)a.remove(p),p=new o(t,h,s,u),p.setPosition(g);else{p.updateData(t,h,s,u);var S={x:g[0],y:g[1]};l?p.attr(S):oe(p,S,n)}a.add(p),t.setItemGraphicEl(h,p)}).remove(function(h){var d=i.getItemGraphicEl(h);d&&d.fadeOut(function(){a.remove(d)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nz(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=az(a);function n(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function p8(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function qrt(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Krt(r,t,e,a,n,i,o,l){for(var s=qrt(r,t),u=[],c=[],h=[],d=[],p=[],g=[],m=[],_=d8(n,t,o),S=r.getLayout("points")||[],x=t.getLayout("points")||[],w=0;w=n||m<0)break;if(Xs(S,x)){if(s){m+=i;continue}break}if(m===e)r[i>0?"moveTo":"lineTo"](S,x),h=S,d=x;else{var w=S-u,C=x-c;if(w*w+C*C<.5){m+=i;continue}if(o>0){for(var A=m+i,M=t[A*2],L=t[A*2+1];M===S&&L===x&&_=a||Xs(M,L))p=S,g=x;else{I=M-u,N=L-c;var F=S-u,H=M-S,k=x-c,j=L-x,Y=void 0,$=void 0;if(l==="x"){Y=Math.abs(F),$=Math.abs(H);var q=I>0?1:-1;p=S-q*Y*o,g=x,B=S+q*$*o,P=x}else if(l==="y"){Y=Math.abs(k),$=Math.abs(j);var G=N>0?1:-1;p=S,g=x-G*Y*o,B=S,P=x+G*$*o}else Y=Math.sqrt(F*F+k*k),$=Math.sqrt(H*H+j*j),R=$/($+Y),p=S-I*o*(1-R),g=x-N*o*(1-R),B=S+I*o*R,P=x+N*o*R,B=Xo(B,$o(M,S)),P=Xo(P,$o(L,x)),B=$o(B,Xo(M,S)),P=$o(P,Xo(L,x)),I=B-S,N=P-x,p=S-I*Y/$,g=x-N*Y/$,p=Xo(p,$o(u,S)),g=Xo(g,$o(c,x)),p=$o(p,Xo(u,S)),g=$o(g,Xo(c,x)),I=S-p,N=x-g,B=S+I*$/Y,P=x+N*$/Y}r.bezierCurveTo(h,d,p,g,S,x),h=B,d=P}else r.lineTo(S,x)}u=S,c=x,m+=i}return _}var g8=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),Qrt=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new g8},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Xs(n[o*2-2],n[o*2-1]);o--);for(;i=0){var C=u?(g-s)*w+s:(p-l)*w+l;return u?[e,C]:[C,e]}l=p,s=g;break;case o.C:p=i[h++],g=i[h++],m=i[h++],_=i[h++],S=i[h++],x=i[h++];var A=u?Zy(l,p,m,S,e,c):Zy(s,g,_,x,e,c);if(A>0)for(var M=0;M=0){var C=u?mr(s,g,_,x,L):mr(l,p,m,S,L);return u?[e,C]:[C,e]}}l=S,s=x;break}}},t})(Zt),Jrt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(g8),y8=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new Jrt},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,l=n.length/2,s=a.smoothMonotone;if(a.connectNulls){for(;l>0&&Xs(n[l*2-2],n[l*2-1]);l--);for(;ot){i?e.push(o(i,s,t)):n&&e.push(o(n,s,0),o(n,s,t));break}else n&&(e.push(o(n,s,0)),n=null),e.push(s),i=s}return e}function rat(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var l=r.getDimensionInfo(a[o].dimension);if(n=l&&l.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var s=t.getAxis(n),u=ut(i.stops,function(w){return{coord:s.toGlobalCoord(s.dataToCoord(w.value)),color:w.color}}),c=u.length,h=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=eat(u,n==="x"?e.getWidth():e.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,m=d[0].coord-g,_=d[p-1].coord+g,S=_-m;if(S<.001)return"transparent";O(d,function(w){w.offset=(w.coord-m)/S}),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var x=new xf(0,0,0,0,d,!0);return x[n]=m,x[n+"2"]=_,x}}}function aat(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&nat(i,t))){var o=t.mapDimension(i.dim),l={};return O(i.getViewLabels(),function(s){var u=i.scale.getRawOrdinalNumber(s.tickValue);l[u]=1}),function(s){return!l.hasOwnProperty(t.get(o,s))}}}}function nat(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function iat(r,t){return isNaN(r)||isNaN(t)}function oat(r){for(var t=r.length/2;t>0&&iat(r[t*2-2],r[t*2-1]);t--);return t-1}function uz(r,t){return[r[t*2],r[t*2+1]]}function lat(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,l=0,s=-1,u=0;u=t||i>=t&&o<=t){s=u;break}l=u,i=o}return{range:[l,s],t:(t-i)/(o-i)}}function S8(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var $=g.getState("emphasis").style;$.lineWidth=+g.style.lineWidth+1}zt(g).seriesIndex=e.seriesIndex,ze(g,k,j,Y);var q=sz(e.get("smooth")),G=e.get("smoothMonotone");if(g.setShape({smooth:q,smoothMonotone:G,connectNulls:L}),m){var X=l.getCalculationInfo("stackedOnSeries"),tt=0;m.useStyle(Et(u.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),X&&(tt=sz(X.get("smooth"))),m.setShape({smooth:q,stackedOnSmooth:tt,smoothMonotone:G,connectNulls:L}),dr(m,e,"areaStyle"),zt(m).seriesIndex=e.seriesIndex,ze(m,k,j,Y)}var rt=this._changePolyState;l.eachItemGraphicEl(function(vt){vt&&(vt.onHoverStateChange=rt)}),this._polyline.onHoverStateChange=rt,this._data=l,this._coordSys=i,this._stackedOnPoints=A,this._points=c,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,g),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,a){zt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),l=qs(o,i);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var s=o.getLayout("points"),u=o.getItemGraphicEl(l);if(!u){var c=s[l*2],h=s[l*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var d=e.get("zlevel")||0,p=e.get("z")||0;u=new Ed(o,l),u.x=c,u.y=h,u.setZ(d,p);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=p,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(l,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else _e.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),l=qs(o,i);if(this._changePolyState("normal"),l!=null&&l>=0){var s=o.getItemGraphicEl(l);s&&(s.__temp?(o.setItemGraphicEl(l,null),this.group.remove(s)):s.downplay())}else _e.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;om(this._polyline,e),a&&om(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Qrt({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new y8({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,l=a.getBaseAxis(),s=l.inverse;a.type==="cartesian2d"?(i=l.isHorizontal(),o=!1):a.type==="polar"&&(i=l.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Ct(c)&&(c=c(null));var h=u.get("animationDelay")||0,d=Ct(h)?h(null):h;e.eachItemGraphicEl(function(p,g){var m=p;if(m){var _=[p.x,p.y],S=void 0,x=void 0,w=void 0;if(n)if(o){var C=n,A=a.pointToCoord(_);i?(S=C.startAngle,x=C.endAngle,w=-A[1]/180*Math.PI):(S=C.r0,x=C.r,w=A[0])}else{var M=n;i?(S=M.x,x=M.x+M.width,w=p.x):(S=M.y+M.height,x=M.y,w=p.y)}var L=x===S?0:(w-S)/(x-S);s&&(L=1-L);var E=Ct(h)?h(g):c*L+d,R=m.getSymbolPath(),I=R.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),R.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(S8(e)){var o=e.getData(),l=this._polyline,s=o.getLayout("points");if(!s){l.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ae({z2:200}),u.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=oat(s);c>=0&&(br(l,pr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(h,d,p){return p!=null?v8(o,p):uf(o,h)},enableTextSetter:!0},sat(i,a)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,l,s){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),d=n.hostModel,p=d.get("connectNulls"),g=l.get("precision"),m=l.get("distance")||0,_=s.getBaseAxis(),S=_.isHorizontal(),x=_.inverse,w=a.shape,C=x?S?w.x:w.y+w.height:S?w.x+w.width:w.y,A=(S?m:0)*(x?-1:1),M=(S?0:-m)*(x?-1:1),L=S?"x":"y",E=lat(h,C,L),R=E.range,I=R[1]-R[0],N=void 0;if(I>=1){if(I>1&&!p){var B=uz(h,R[0]);u.attr({x:B[0]+A,y:B[1]+M}),o&&(N=d.getRawValue(R[0]))}else{var B=c.getPointOn(C,L);B&&u.attr({x:B[0]+A,y:B[1]+M});var P=d.getRawValue(R[0]),F=d.getRawValue(R[1]);o&&(N=X4(n,g,P,F,E.t))}i.lastFrameIndex=R[0]}else{var H=e===1||i.lastFrameIndex>0?R[0]:0,B=uz(h,H);o&&(N=d.getRawValue(H)),u.attr({x:B[0]+A,y:B[1]+M})}if(o){var k=Tf(u);typeof k.setLabelText=="function"&&k.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,l,s){var u=this._polyline,c=this._polygon,h=e.hostModel,d=Krt(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),p=d.current,g=d.stackedOnCurrent,m=d.next,_=d.stackedOnNext;if(o&&(g=Zo(d.stackedOnCurrent,d.current,n,o,s),p=Zo(d.current,null,n,o,s),_=Zo(d.stackedOnNext,d.next,n,o,s),m=Zo(d.next,null,n,o,s)),lz(p,m)>3e3||c&&lz(g,_)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=p;var S={shape:{points:m}};d.current!==p&&(S.shape.__points=d.next),u.stopAnimation(),oe(u,S,h),c&&(c.setShape({points:p,stackedOnPoints:g}),c.stopAnimation(),oe(c,{shape:{stackedOnPoints:_}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],w=d.status,C=0;Ct&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),h=a.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(l/d);if(isFinite(p)&&p>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/p));var g=void 0;pt(i)?g=cat[i]:Ct(i)&&(g=i),g&&t.setData(n.downSample(n.mapDimension(u.dim),1/p,g,fat))}}}}}function hat(r){r.registerChartView(uat),r.registerSeriesModel(Xrt),r.registerLayout(Od("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,b8("line"))}var ed=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return po(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),l=i.dataToPoint(o);if(n)O(i.getAxes(),function(d,p){if(d.type==="category"&&a!=null){var g=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),_=o[p],S=a[p]==="x1"||a[p]==="y1";if(S&&!m&&(_+=1),g.length<2)return;if(g.length===2){l[p]=d.toGlobalCoord(d.getExtent()[S?1:0]);return}for(var x=void 0,w=void 0,C=1,A=0;A_){w=(M+x)/2;break}A===1&&(C=L-g[0].tickValue)}w==null&&(x?x&&(w=g[g.length-1].coord):w=g[0].coord),l[p]=d.toGlobalCoord(w)}});else{var s=this.getData(),u=s.getLayout("offset"),c=s.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;l[h]+=u+c/2}return l}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",defaultBarGap:"10%"},t})(Te);Te.registerClass(ed);var vat=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return po(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ll(ed.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t})(ed),dat=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Mm=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new dat},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),l=Math.max(a.r,0),s=(l-o)*.5,u=o+s,c=a.startAngle,h=a.endAngle,d=a.clockwise,p=Math.PI*2,g=d?h-cMath.PI/2&&cl)return!0;l=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),l=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=l;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(l){return e.get(e.mapDimension(a.otherAxis.dim),l)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ki(i,e,zt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(_e),cz={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=jb(t.x,r.x),l=Wb(t.x+t.width,n),s=jb(t.y,r.y),u=Wb(t.y+t.height,i),c=ln?l:o,t.y=h&&s>i?u:s,t.width=c?0:l-o,t.height=h?0:u-s,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Wb(t.r,r.r),i=jb(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},fz={cartesian2d:function(r,t,e,a,n,i,o,l,s){var u=new Xt({shape:it({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,h=n?"height":"width";c[h]=0}return u},polar:function(r,t,e,a,n,i,o,l,s){var u=!n&&s?Mm:Xr,c=new u({shape:a,z2:1});c.name="item";var h=x8(n);if(c.calculateTextPosition=pat(h,{isRoundCap:u===Mm}),i){var d=c.shape,p=n?"r":"endAngle",g={};d[p]=n?a.r0:a.startAngle,g[p]=a[p],(l?oe:Re)(c,{shape:g},i)}return c}};function _at(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function hz(r,t,e,a,n,i,o,l){var s,u;i?(u={x:a.x,width:a.width},s={y:a.y,height:a.height}):(u={y:a.y,height:a.height},s={x:a.x,width:a.width}),l||(o?oe:Re)(e,{shape:s},t,n,null);var c=t?r.baseAxis.model:null;(o?oe:Re)(e,{shape:u},c,n)}function vz(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function xat(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function x8(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function pz(r,t,e,a,n,i,o,l){var s=t.getItemVisual(e,"style");if(l){if(!i.get("roundCap")){var c=r.shape,h=li(a.getModel("itemStyle"),c,!0);it(c,h),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(s);var d=a.getShallow("cursor");d&&r.attr("cursor",d);var p=l?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",g=pr(a);br(r,g,{labelFetcher:i,labelDataIndex:e,defaultText:uf(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:p});var m=r.getTextContent();if(l&&m){var _=a.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,gat(r,_==="outside"?p:_,x8(o),a.get(["label","rotate"]))}OV(m,g,i.getRawValue(e),function(x){return v8(t,x)});var S=a.getModel(["emphasis"]);ze(r,S.get("focus"),S.get("blurScope"),S.get("disabled")),dr(r,a),xat(n)&&(r.style.fill="none",r.style.stroke="none",O(r.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function wat(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var Tat=(function(){function r(){}return r})(),gz=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Tat},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,l=[],s=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function Cat(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,l=[],s=[],u=r.barWidth,c=0,h=i.length/3;c=l[0]&&t<=l[0]+s[0]&&e>=l[1]&&e<=l[1]+s[1])return o[c]}return-1}function w8(r,t,e){if(Sl(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Aat(r,t,e){var a=r.type==="polar"?Xr:Xt;return new a({shape:w8(t,e,r),silent:!0,z2:0})}function Mat(r){r.registerChartView(mat),r.registerSeriesModel(vat),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Gt(A6,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M6("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,b8("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var _z=Math.PI*2,Xg=Math.PI/180;function Dat(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=tG(a,e),l=o.cx,s=o.cy,u=o.r,c=o.r0,h=o.viewRect,d=-a.get("startAngle")*Xg,p=a.get("endAngle"),g=a.get("padAngle")*Xg;p=p==="auto"?d-_z:-p*Xg;var m=a.get("minAngle")*Xg,_=m+g,S=0;n.each(i,function(j){!isNaN(j)&&S++});var x=n.getSum(i),w=Math.PI/(x||S)*2,C=a.get("clockwise"),A=a.get("roseType"),M=a.get("stillShowZeroSum"),L=n.getDataExtent(i);L[0]=0;var E=C?1:-1,R=[d,p],I=E*g/2;w0(R,!C),d=R[0],p=R[1];var N=T8(a);N.startAngle=d,N.endAngle=p,N.clockwise=C,N.cx=l,N.cy=s,N.r=u,N.r0=c;var B=Math.abs(p-d),P=B,F=0,H=d;if(n.setLayout({viewRect:h,r:u}),n.each(i,function(j,Y){var $;if(isNaN(j)){n.setItemLayout(Y,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:l,cy:s,r0:c,r:A?NaN:u});return}A!=="area"?$=x===0&&M?w:j*w:$=B/S,$<_?($=_,P-=_):F+=j;var q=H+E*$,G=0,X=0;g>$?(G=H+E*$/2,X=G):(G=H+I,X=q-I),n.setItemLayout(Y,{angle:$,startAngle:G,endAngle:X,clockwise:C,cx:l,cy:s,r0:c,r:A?fe(j,L,[c,u]):u}),H=q}),P<_z&&S)if(P<=.001){var k=B/S;n.each(i,function(j,Y){if(!isNaN(j)){var $=n.getItemLayout(Y);$.angle=k;var q=0,G=0;ke?S:_,A=Math.abs(w.label.y-e);if(A>=C.maxY){var M=w.label.x-t-w.len2*n,L=a+w.len,E=Math.abs(M)r.unconstrainedWidth?null:d:null;a.setStyle("width",p)}A8(i,a)}}}function A8(r,t){bz.rect=r,q6(bz,t,Rat)}var Rat={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},bz={};function Xb(r){return r.position==="center"}function Iat(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Lat,l=t.getLayout("viewRect"),s=t.getLayout("r"),u=l.width,c=l.x,h=l.y,d=l.height;function p(M){M.ignore=!0}function g(M){if(!M.ignore)return!0;for(var L in M.states)if(M.states[L].ignore===!1)return!0;return!1}t.each(function(M){var L=t.getItemGraphicEl(M),E=L.shape,R=L.getTextContent(),I=L.getTextGuideLine(),N=t.getItemModel(M),B=N.getModel("label"),P=B.get("position")||N.get(["emphasis","label","position"]),F=B.get("distanceToLabelLine"),H=B.get("alignTo"),k=dt(B.get("edgeDistance"),u),j=B.get("bleedMargin");j==null&&(j=Math.min(u,d)>200?10:2);var Y=N.getModel("labelLine"),$=Y.get("length");$=dt($,u);var q=Y.get("length2");if(q=dt(q,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":X>0?"left":"right"}var ne=Math.PI,se=0,Ue=B.get("rotate");if(ee(Ue))se=Ue*(ne/180);else if(P==="center")se=0;else if(Ue==="radial"||Ue===!0){var xr=X<0?-G+ne:-G;se=xr}else if(Ue==="tangential"&&P!=="outside"&&P!=="outer"){var lr=Math.atan2(X,tt);lr<0&&(lr=ne*2+lr);var ma=tt>0;ma&&(lr=ne+lr),se=lr-ne}if(i=!!se,R.x=rt,R.y=vt,R.rotation=se,R.setStyle({verticalAlign:"middle"}),xt){R.setStyle({align:Nt});var Of=R.states.select;Of&&(Of.x+=R.x,Of.y+=R.y)}else{var yn=new It(0,0,0,0);A8(yn,R),e.push({label:R,labelLine:I,position:P,len:$,len2:q,minTurnAngle:Y.get("minTurnAngle"),maxSurfaceAngle:Y.get("maxSurfaceAngle"),surfaceNormal:new Lt(X,tt),linePoints:Tt,textAlign:Nt,labelDistance:F,labelAlignTo:H,edgeDistance:k,bleedMargin:j,rect:yn,unconstrainedWidth:yn.width,labelStyleWidth:R.style.width})}L.setTextConfig({inside:xt})}}),!i&&r.get("avoidLabelOverlap")&&Eat(e,a,n,s,u,d,c,h);for(var m=0;m0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=i.r0}},t.type="pie",t})(_e);function Rf(r,t,e){t=lt(t)&&{coordDimensions:t}||it({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Dd(a,t).dimensions,i=new ea(n,r);return i.initData(a,e),i}var If=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),zat=$t(),M8=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new If(yt(this.getData,this),yt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Rf(this,{coordDimensions:["value"],encodeDefaulter:Gt(B2,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=zat(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(s){o.push(s)}),i=n.seats=eZ(o,a.hostModel.get("percentPrecision"))}var l=r.prototype.getDataParams.call(this,e);return l.percent=i[e]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(e){Zs(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Te);UK({fullType:M8.type,getCoord2:function(r){return r.getShallow("center")}});function Pat(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ee(o)&&!isNaN(o)&&o<0)})}}}function kat(r){r.registerChartView(Nat),r.registerSeriesModel(M8),jG("pie",r.registerAction),r.registerLayout(Gt(Dat,"pie")),r.registerProcessor(Ef("pie")),r.registerProcessor(Pat("pie"))}var Bat=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return po(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Q.color.primary}},universalTransition:{divideShape:"clone"}},t})(Te),D8=4,Vat=(function(){function r(){}return r})(),Gat=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new Vat},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,l=o.shape,s=e.getContext?e.getContext():e,u=s&&i[0]=0;u--){var c=u*2,h=i[c]-l/2,d=i[c+1]-s/2;if(e>=h&&a>=d&&e<=h+l&&a<=d+s)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],l=i[1],s=1/0,u=1/0,c=-1/0,h=-1/0,d=0;d=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Uat=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Od("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new Hat:new Rd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(_e),L8={left:0,right:0,top:0,bottom:0},Dm=["25%","25%"],Fat=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=uu(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&mi(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&mi(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:L8,outerBoundsContain:"all",outerBoundsClampWidth:Dm[0],outerBoundsClampHeight:Dm[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t})(qt),NT=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",He).models[0]},t.type="cartesian2dAxis",t})(qt);or(NT,Ld);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:Q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Yat=Ft({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},E8),vA=Ft({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},E8),jat=Ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vA),Wat=Et({logBase:10},vA);const R8={category:Yat,value:vA,time:jat,log:Wat};var Xat={value:1,category:1,time:1,log:1},zT=null;function $at(r){zT||(zT=r)}function Nd(){return zT}function cf(r,t,e,a){O(Xat,function(n,i){var o=Ft(Ft({},R8[i],!0),a,!0),l=(function(s){J(u,s);function u(){var c=s!==null&&s.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var d=jv(this),p=d?uu(c):{},g=h.getTheme();Ft(c,g.get(i+"Axis")),Ft(c,this.getDefaultOption()),c.type=xz(c),d&&mi(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Kv.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var h=Nd();return h?h.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(l)}),r.registerSubTypeDefaulter(t+"Axis",xz)}function xz(r){return r.type||(r.data?"category":"value")}var Zat=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return ut(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),he(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),PT=["x","y"];function wz(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var qat=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=PT,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!wz(e)||!wz(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),l=this.dataToPoint([n[1],i[1]]),s=n[1]-n[0],u=i[1]-i[0];if(!(!s||!u)){var c=(l[0]-o[0])/s,h=(l[1]-o[1])/u,d=o[0]-n[0]*c,p=o[1]-i[0]*h,g=this._transform=[c,0,0,h,d,p];this._invTransform=Rn([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),l=new It(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(l)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ze(n,e,this._transform);var l=this.getAxis("x"),s=this.getAxis("y");return n[0]=l.toGlobalCoord(l.dataToCoord(i,a)),n[1]=s.toGlobalCoord(s.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),l=i.getExtent(),s=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(l[0],l[1]),u),Math.max(l[0],l[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return Ze(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,l=Math.max(a[0],a[1])-i+e,s=Math.max(n[0],n[1])-o+e;return new It(i,o,l,s)},t})(Zat),I8=(function(r){J(t,r);function t(e,a,n,i,o){var l=r.call(this,e,a,n)||this;return l.index=0,l.type=i||"value",l.position=o||"bottom",l}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Pn),U0="expandAxisBreak",O8="collapseAxisBreak",N8="toggleAxisBreak",dA="axisbreakchanged",Kat={type:U0,event:dA,update:"update",refineEvent:pA},Qat={type:O8,event:dA,update:"update",refineEvent:pA},Jat={type:N8,event:dA,update:"update",refineEvent:pA};function pA(r,t,e,a){var n=[];return O(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function tnt(r){r.registerAction(Kat,t),r.registerAction(Qat,t),r.registerAction(Jat,t);function t(e,a){var n=[],i=Wc(a,e);function o(l,s){O(i[l],function(u){var c=u.updateAxisBreaks(e);O(c.breaks,function(h){var d;n.push(Et((d={},d[s]=u.componentIndex,d),h))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var ol=Math.PI,ent=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],rnt=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ff=$t(),z8=$t(),P8=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r})();function ant(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],l,s=gA(r.axisName)&&sf(r.nameLocation);O(a,function(g){var m=_i(g);if(!(!m||m.label.ignore)){o.push(m);var _=i.transGroup;s&&(_.transform?Rn(Wh,_.transform):d0(Wh),m.transform&&ui(Wh,Wh,m.transform),It.copy($g,m.localRect),$g.applyTransform(Wh),l?l.union($g):It.copy(l=new It(0,0,0,0),$g))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(g,m){return Math.abs(g.label[u]-c)-Math.abs(m.label[u]-c)}),s&&l){var h=n.getExtent(),d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-d;l.union(new It(d,0,p,1))}i.stOccupiedRect=l,i.labelInfoList=o}var Wh=Dr(),$g=new It(0,0,0,0),k8=function(r,t,e,a,n,i){if(sf(r.nameLocation)){var o=i.stOccupiedRect;o&&B8(ert({},o,i.transGroup.transform),a,n)}else V8(i.labelInfoList,i.dirVec,a,n)};function B8(r,t,e){var a=new Lt;G0(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&MT(t,a)}function V8(r,t,e,a){for(var n=Lt.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):Vv(n-ol)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),nnt=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],int={axisLine:function(r,t,e,a,n,i,o){var l=a.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var s=a.axis.getExtent(),u=i.transform,c=[s[0],0],h=[s[1],0],d=c[0]>h[0];u&&(Ze(c,c,u),Ze(h,h,u));var p=it({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Nd().buildAxisBreakLine(a,n,i,g);else{var m=new tr(it({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},g));rf(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var _=a.get(["axisLine","symbol"]);if(_!=null){var S=a.get(["axisLine","symbolSize"]);pt(_)&&(_=[_,_]),(pt(S)||ee(S))&&(S=[S,S]);var x=fu(a.get(["axisLine","symbolOffset"])||0,S),w=S[0],C=S[1];O([{rotate:r.rotation+Math.PI/2,offset:x[0],r:0},{rotate:r.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(A,M){if(_[M]!=="none"&&_[M]!=null){var L=nr(_[M],-w/2,-C/2,w,C,p.stroke,!0),E=A.r+A.offset,R=d?h:c;L.attr({rotation:A.rotate,x:R[0]+E*Math.cos(r.rotation),y:R[1]-E*Math.sin(r.rotation),silent:!0,z2:11}),n.add(L)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,l){var s=Cz(t,n,l);s&&Tz(r,t,e,a,n,i,o,On.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,l){var s=Cz(t,n,l);s&&Tz(r,t,e,a,n,i,o,On.determine);var u=unt(r,n,i,a);snt(r,t.labelLayoutList,u),cnt(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,l){var s=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=s.nameLayout=s.nameLocation=null);var u=r.axisName;if(gA(u)){var c=r.nameLocation,h=r.nameDirection,d=a.getModel("nameTextStyle"),p=a.get("nameGap")||0,g=a.axis.getExtent(),m=a.axis.inverse?-1:1,_=new Lt(0,0),S=new Lt(0,0);c==="start"?(_.x=g[0]-m*p,S.x=-m):c==="end"?(_.x=g[1]+m*p,S.x=m):(_.x=(g[0]+g[1])/2,_.y=r.labelOffset+h*p,S.y=h);var x=Dr();S.transform(Ml(x,x,r.rotation));var w=a.get("nameRotate");w!=null&&(w=w*ol/180);var C,A;sf(c)?C=ra.innerTextLayout(r.rotation,w??r.rotation,h):(C=ont(r.rotation,c,w||0,g),A=r.raw.axisNameAvailableWidth,A!=null&&(A=Math.abs(A/Math.sin(C.rotation)),!isFinite(A)&&(A=null)));var M=d.getFont(),L=a.get("nameTruncate",!0)||{},E=L.ellipsis,R=Br(r.raw.nameTruncateMaxWidth,L.maxWidth,A),I=l.nameMarginLevel||0,N=new ae({x:_.x,y:_.y,rotation:C.rotation,silent:ra.isLabelSilent(a),style:we(d,{text:u,font:M,overflow:"truncate",width:R,ellipsis:E,fill:d.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:d.get("align")||C.textAlign,verticalAlign:d.get("verticalAlign")||C.textVerticalAlign}),z2:1});if(vo({el:N,componentModel:a,itemName:u}),N.__fullText=u,N.anid="name",a.get("triggerEvent")){var B=ra.makeAxisEventDataBase(a);B.targetType="axisName",B.name=u,zt(N).eventData=B}i.add(N),N.updateTransform(),t.nameEl=N;var P=s.nameLayout=_i({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:sf(c)?ent[I]:rnt[I]});if(s.nameLocation=c,n.add(N),N.decomposeTransform(),r.shouldNameMoveOverlap&&P){var F=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,P,S,F)}}}};function Tz(r,t,e,a,n,i,o,l){H8(t)||fnt(r,t,n,l,a,o);var s=t.labelLayoutList;hnt(r,a,s,i),pnt(a,r.rotation,s);var u=r.optionHideOverlap;lnt(a,s,u),u&&K6(he(s,function(c){return c&&!c.label.ignore})),ant(r,e,a,s)}function ont(r,t,e,a){var n=P4(e-r),i,o,l=a[0]>a[1],s=t==="start"&&!l||t!=="start"&&l;return Vv(n-ol/2)?(o=s?"bottom":"top",i="center"):Vv(n-ol*1.5)?(o=s?"top":"bottom",i="center"):(o="middle",nol/2?i=s?"left":"right":i=s?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function lnt(r,t,e){if(N6(r.axis))return;function a(l,s,u){var c=_i(t[s]),h=_i(t[u]);if(!(!c||!h)){if(l===!1||c.suggestIgnore){gv(c.label);return}if(h.suggestIgnore){gv(h.label);return}var d=.1;if(!e){var p=[0,0,0,0];c=DT({marginForce:p},c),h=DT({marginForce:p},h)}G0(c,h,null,{touchThreshold:d})&&gv(l?h.label:c.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function snt(r,t,e){r.showMinorTicks||O(t,function(a){if(a&&a.label.ignore)for(var n=0;nu[0]&&isFinite(g)&&isFinite(u[0]);)p=Ib(p),g=u[1]-p*o;else{var _=r.getTicks().length-1;_>o&&(p=Ib(p));var S=p*o;m=Math.ceil(u[1]/p)*p,g=Je(m-S),g<0&&u[0]>=0?(g=0,m=Je(S)):m>0&&u[1]<=0&&(m=0,g=-Je(S))}var x=(n[0].value-i[0].value)/l,w=(n[o].value-i[o].value)/l;a.setExtent.call(r,g+p*x,m+p*w),a.setInterval.call(r,p),(x||w)&&a.setNiceExtent.call(r,g+p,m-p)}var Mz=[[3,1],[0,2]],_nt=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=PT,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var l,s=Jt(o),u=s.length;if(u){for(var c=[],h=u-1;h>=0;h--){var d=+s[h],p=o[d],g=p.model,m=p.scale;xT(m)&&g.get("alignTicks")&&g.get("interval")==null?c.push(p):(lf(m,g),xT(m)&&(l=p))}c.length&&(l||(l=c.pop(),lf(l.scale,l.model)),O(c,function(_){U8(_.scale,_.model,l.scale)}))}}n(a.x),n(a.y);var i={};O(a.x,function(o){Dz(a,"y",o,i)}),O(a.y,function(o){Dz(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=gr(t,e),i=this._rect=Pe(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,l=this._coordsList,s=t.get("containLabel");if(BT(o,i),!a){var u=xnt(i,l,o,s,e),c=void 0;if(s)VT?(VT(this._axesList,i),BT(o,i)):c=Rz(i.clone(),"axisLabel",null,i,o,u,n);else{var h=wnt(t,i,n),d=h.outerBoundsRect,p=h.parsedOuterBoundsContain,g=h.outerBoundsClamp;d&&(c=Rz(d,p,g,i,o,u,n))}F8(i,o,On.determine,null,c,n)}O(this._coordsList,function(m){m.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}Rt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return Js(a,l,!0,!0,e),BT(n,a),s;function u(d){O(n[Bt[d]],function(p){if(Qv(p.model)){var g=i.ensureRecord(p.model),m=g.labelInfoList;if(m)for(var _=0;_0&&!Yr(p)&&p>1e-4&&(d/=p),d}}function xnt(r,t,e,a,n){var i=new P8(Tnt);return O(e,function(o){return O(o,function(l){if(Qv(l.model)){var s=!a;l.axisBuilder=ynt(r,t,l.model,n,i,s)}})}),i}function F8(r,t,e,a,n,i){var o=e===On.determine;O(t,function(u){return O(u,function(c){Qv(c.model)&&(mnt(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var l={x:0,y:0};s(0),s(1);function s(u){l[Bt[1-u]]=r[rr[u]]<=i.refContainer[rr[u]]*.5?0:1-u===1?2:1}O(t,function(u,c){return O(u,function(h){Qv(h.model)&&((a==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:l[c]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function wnt(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Pe(r.get("outerBounds",!0)||L8,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||Ht(["all","axisLabel"],i)<0?o="all":o=i;var l=[rm(wt(r.get("outerBoundsClampWidth",!0),Dm[0]),t.width),rm(wt(r.get("outerBoundsClampHeight",!0),Dm[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:l}}var Tnt=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";k8(r,t,e,a,n,i),sf(r.nameLocation)||O(t.recordMap[o],function(l){l&&l.labelInfoList&&l.dirVec&&V8(l.labelInfoList,l.dirVec,a,n)})};function Cnt(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ant(e,r,t),e.seriesInvolved&&Dnt(e,r),e}function Ant(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];O(e.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var s=rd(l.model),u=r.coordSysAxesInfo[s]={};r.coordSysMap[s]=l;var c=l.model,h=c.getModel("tooltip",a);if(O(l.getAxes(),Gt(m,!1,null)),l.getTooltipAxes&&a&&h.get("show")){var d=h.get("trigger")==="axis",p=h.get(["axisPointer","type"])==="cross",g=l.getTooltipAxes(h.get(["axisPointer","axis"]));(d||p)&&O(g.baseAxes,Gt(m,p?"cross":!0,d)),p&&O(g.otherAxes,Gt(m,"cross",!1))}function m(_,S,x){var w=x.model.getModel("axisPointer",n),C=w.get("show");if(!(!C||C==="auto"&&!_&&!GT(w))){S==null&&(S=w.get("triggerTooltip")),w=_?Mnt(x,h,n,t,_,S):w;var A=w.get("snap"),M=w.get("triggerEmphasis"),L=rd(x.model),E=S||A||x.type==="category",R=r.axesInfo[L]={key:L,axis:x,coordSys:l,axisPointerModel:w,triggerTooltip:S,triggerEmphasis:M,involveSeries:E,snap:A,useHandle:GT(w),seriesModels:[],linkGroup:null};u[L]=R,r.seriesInvolved=r.seriesInvolved||E;var I=Lnt(i,x);if(I!=null){var N=o[I]||(o[I]={axesInfo:{}});N.axesInfo[L]=R,N.mapper=i[I].mapper,R.linkGroup=N}}}})}function Mnt(r,t,e,a,n,i){var o=t.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],s={};O(l,function(d){s[d]=Mt(o.get(d))}),s.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(s.type="line");var u=s.label||(s.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var h=s.lineStyle=o.get("crossStyle");h&&Et(u,h.textStyle)}}return r.model.getModel("axisPointer",new Qt(s,e,a))}function Dnt(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||O(r.coordSysAxesInfo[rd(a.model)],function(o){var l=o.axis;a.getAxis(l.dim)===l&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function Lnt(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function Ent(r){var t=yA(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var l=GT(e);i==null&&(n.status=l?"show":"hide");var s=a.getExtent().slice();s[0]>s[1]&&s.reverse(),(o==null||o>s[1])&&(o=s[1]),o0;return o&&l}var knt=$t();function Nz(r,t,e,a){if(r instanceof I8){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),l=i.get("jitterOverlap"),s=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?l?Z8(e,o,u,a):Bnt(r,t,e,a,o,s):e}function Z8(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function Bnt(r,t,e,a,n,i){var o=knt(r);o.items||(o.items=[]);var l=o.items,s=zz(l,t,e,a,n,i,1),u=zz(l,t,e,a,n,i,-1),c=Math.abs(s-e)n/2||h&&d>h/2-a?Z8(e,n,h,a):(l.push({fixedCoord:t,floatCoord:c,r:a}),c)}function zz(r,t,e,a,n,i,o){for(var l=e,s=0;sn/2)return Number.MAX_VALUE;if(o===1&&g>l||o===-1&&g0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var m=s;g.color!=null&&(m=Et({color:g.color},s));var _=Ft(Mt(g),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:l,name:g.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:m,triggerEvent:d},!1);if(pt(c)){var S=_.name;_.name=c.replace("{value}",S??"")}else Ct(c)&&(_.name=c(_.name,_));var x=new Qt(_,null,this.ecModel);return or(x,Ld.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ft({lineStyle:{color:Q.color.neutral20}},Xh.axisLine),axisLabel:Zg(Xh.axisLabel,!1),axisTick:Zg(Xh.axisTick,!1),splitLine:Zg(Xh.splitLine,!0),splitArea:Zg(Xh.splitArea,!0),indicator:[]},t})(qt),Xnt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=ut(i,function(l){var s=l.model.get("showName")?l.name:"",u=new ra(l.model,a,{axisName:s,position:[n.cx,n.cy],rotation:l.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});O(o,function(l){l.build(),this.group.add(l.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),l=e.getModel("splitArea"),s=o.getModel("lineStyle"),u=l.getModel("areaStyle"),c=o.get("show"),h=l.get("show"),d=s.get("color"),p=u.get("color"),g=lt(d)?d:[d],m=lt(p)?p:[p],_=[],S=[];function x(H,k,j){var Y=j%k.length;return H[Y]=H[Y]||[],Y}if(i==="circle")for(var w=n[0].getTicksCoords(),C=a.cx,A=a.cy,M=0;M3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:l,originY:s,isAvailableBehavior:null})}if(n){var h=Math.abs(i),d=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:d,originX:l,originY:s,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Bz(this._zr,"globalPan")||$h(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(ro(i.event),i.__ecRoamConsumed=!0,Vz(e,a,n,i,o))},t})(gn);function $h(r){return r.__ecRoamConsumed}var eit=$t();function F0(r){var t=eit(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Zh(r,t,e,a){for(var n=F0(r),i=n.roam,o=i[t]=i[t]||[],l=0;l=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&l!=null&&s!=null&&(h=eH(c,{x:0,y:0,width:l,height:s}),!e.ignoreViewBox)){var p=n;n=new At,n.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return!e.ignoreRootClip&&l!=null&&s!=null&&n.setClipPath(new Xt({shape:{x:0,y:0,width:l,height:s}})),{root:n,width:l,height:s,viewBoxRect:c,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var l=t.nodeName.toLowerCase(),s,u=n;if(l==="defs"&&(i=!0),l==="text"&&(o=!0),l==="defs"||l==="switch")s=e;else{if(!i){var c=qb[l];if(c&&St(qb,l)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:s};a.push(d),l==="g"&&(u=d)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:l,el:s});e.add(s)}}var p=Fz[l];if(p&&St(Fz,l)){var g=p.call(this,t),m=t.getAttribute("id");m&&(this._defs[m]=g)}}if(s&&s.isGroup)for(var _=t.firstChild;_;)_.nodeType===1?this._parseNode(_,s,a,u,i,o):_.nodeType===3&&o&&this._parseText(_,s),_=_.nextSibling},r.prototype._parseText=function(t,e){var a=new ef({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});qa(e,a),La(t,a,this._defsUsePending,!1,!1),iit(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var l=a.getBoundingRect();return this._textX+=l.width,e.add(a),a},r.internalField=(function(){qb={g:function(t,e){var a=new At;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Xt;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new ho;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new tr;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new M0;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Wz(a));var i=new $r({shape:{points:n||[]},silent:!0});return qa(e,i),La(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Wz(a));var i=new Vr({shape:{points:n||[]},silent:!0});return qa(e,i),La(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Er;return qa(e,a),La(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var l=new At;return qa(e,l),La(t,l,this._defsUsePending,!1,!0),l},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",l=new At;return qa(e,l),La(t,l,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),l},path:function(t,e){var a=t.getAttribute("d")||"",n=mV(a);return qa(e,n),La(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Fz={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new xf(t,e,a,n);return Yz(r,i),jz(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new xV(t,e,a);return Yz(r,n),jz(r,n),n}};function Yz(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function jz(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};tH(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",l=i.stopOpacity||e.getAttribute("stop-opacity");if(l){var s=ga(o),u=s&&s[3];u&&(s[3]*=fl(l),o=ci(s,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function qa(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Et(t.__inheritedStyle,r.__inheritedStyle))}function Wz(r){for(var t=j0(r),e=[],a=0;a0;i-=2){var o=a[i],l=a[i-1],s=j0(o);switch(n=n||Dr(),l){case"translate":pi(n,n,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":o2(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Ml(n,n,-parseFloat(s[0])*Kb,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(s[0])*Kb);ui(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(s[0])*Kb);ui(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(s[0]),n[1]=parseFloat(s[1]),n[2]=parseFloat(s[2]),n[3]=parseFloat(s[3]),n[4]=parseFloat(s[4]),n[5]=parseFloat(s[5]);break}}t.setLocalTransform(n)}}var $z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function tH(r,t,e){var a=r.getAttribute("style");if(a){$z.lastIndex=0;for(var n;(n=$z.exec(a))!=null;){var i=n[1],o=St(Em,i)?Em[i]:null;o&&(t[o]=n[2]);var l=St(Rm,i)?Rm[i]:null;l&&(e[l]=n[2])}}}function fit(r,t,e){for(var a=0;a0,x={api:a,geo:s,mapOrGeoModel:t,data:l,isVisualEncodedByVisualMap:S,isGeo:o,transformInfoRaw:d};s.resourceType==="geoJSON"?this._buildGeoJSON(x):s.resourceType==="geoSVG"&&this._buildSVG(x),this._updateController(t,_,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=bt(),a=bt(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,l=t.data,s=t.geo.projection,u=s&&s.stream;function c(p,g){return g&&(p=g(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function h(p){for(var g=[],m=!u&&s&&s.project,_=0;_=0)&&(d=n);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;br(t,pr(a),{labelFetcher:d,labelDataIndex:h,defaultText:e},p);var g=t.getTextContent();if(g&&(rH(g).ignore=g.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Jz(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):zt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function tP(r,t,e,a,n){r.data||vo({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function eP(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return ze(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&Iq(t,n,e),o}function rP(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var l=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(s,u){isFinite(s)&&isFinite(u)&&n.push([s,u])},sphere:function(){}});return!e&&l.polygonStart(),O(r,function(s){l.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Q.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Q.color.border,areaColor:Q.color.background},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{areaColor:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},nameProperty:"name"},t})(Te);function Rit(r,t){var e={};return O(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,l=1/0,s=-1/0,u=e[i].length,c=0;c1?(w.width=x,w.height=x/m):(w.height=x,w.width=x*m),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var C=r.getBoxLayoutParams();C.aspect=m,w=Pe(C,g),w=eG(r,w,m)}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function zit(r,t){O(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var Pit=(function(){function r(){this.dimensions=nH}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,l){var s=o.get("map"),u=new FT(s+l,s,it({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=oP,u.resize(o,e)}),t.eachSeries(function(o){Ad({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var l=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",He).models[0];return l&&l.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var l=o.getMapType();i[l]=i[l]||[],i[l].push(o)}}),O(i,function(o,l){var s=ut(o,function(c){return c.get("nameMap")}),u=new FT(l,l,it({nameMap:r2(s),api:e,ecModel:t},n(o[0])));u.zoomLimit=Br.apply(null,ut(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=oP,u.resize(o[0],e),O(o,function(c){c.coordinateSystem=u,zit(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=bt(),l=0;l=0;o--){var l=n[o];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(l)}}function Uit(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Yit(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=jit(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function Fit(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function lP(r){return arguments.length?r:$it}function yv(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function Yit(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function jit(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],l=t,s=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,h=l.hierNode.modifier;l=Qb(l),i=Jb(i),l&&i;){n=Qb(n),o=Jb(o),n.hierNode.ancestor=r;var d=l.hierNode.prelim+h-i.hierNode.prelim-u+a(l,i);d>0&&(Xit(Wit(l,r,e),r,d),u+=d,s+=d),h+=l.hierNode.modifier,u+=i.hierNode.modifier,s+=n.hierNode.modifier,c+=o.hierNode.modifier}l&&!Qb(n)&&(n.hierNode.thread=l,n.hierNode.modifier+=h-s),i&&!Jb(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function Qb(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Jb(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Wit(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Xit(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function $it(r,t){return r.parentNode===t.parentNode?1:2}var Zit=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),qit=(function(r){J(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Zit},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,l=n[0],s=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(l[0],l[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,d=dt(a.forkPosition,1),p=[];p[c]=o[c],p[h]=o[h]+(s[h]-o[h])*d,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(l[0],l[1]),p[c]=l[c],e.lineTo(p[0],p[1]),p[c]=s[c],e.lineTo(p[0],p[1]),e.lineTo(s[0],s[1]);for(var g=1;gx.x,A||(C=C-Math.PI));var L=A?"left":"right",E=l.getModel("label"),R=E.get("rotate"),I=R*(Math.PI/180),N=_.getTextContent();N&&(_.setTextConfig({position:E.get("position")||L,rotation:R==null?-C:I,origin:"center"}),N.setStyle("verticalAlign","middle"))}var B=l.get(["emphasis","focus"]),P=B==="relative"?zv(o.getAncestorsIndices(),o.getDescendantIndices()):B==="ancestor"?o.getAncestorsIndices():B==="descendant"?o.getDescendantIndices():null;P&&(zt(e).focus=P),Qit(n,o,c,e,g,p,m,a),e.__edge&&(e.onHoverStateChange=function(F){if(F!=="blur"){var H=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);H&&H.hoverState===_d||om(e.__edge,F)}})}function Qit(r,t,e,a,n,i,o,l){var s=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),h=r.getOrient(),d=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),g=s.getModel("lineStyle").getLineStyle(),m=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(m||(m=a.__edge=new bd({shape:YT(c,h,d,n,n)})),oe(m,{shape:YT(c,h,d,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var _=t.children,S=[],x=0;x<_.length;x++){var w=_[x].getLayout();S.push([w.x,w.y])}m||(m=a.__edge=new qit({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),oe(m,{shape:{parentPoint:[o.x,o.y],childPoints:S}},r)}m&&!(u==="polyline"&&!t.isExpand)&&(m.useStyle(Et({strokeNoScale:!0,fill:null},g)),dr(m,s,"lineStyle"),Qs(m),l.add(m))}function cP(r,t,e,a,n){var i=t.tree.root,o=lH(i,r),l=o.source,s=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(l.dataIndex),h=c.__edge,d=u.__edge||(l.isExpand===!1||l.children.length===1?h:void 0),p=a.get("edgeShape"),g=a.get("layout"),m=a.get("orient"),_=a.get(["lineStyle","curveness"]);d&&(p==="curve"?ml(d,{shape:YT(g,m,_,s,s),style:{opacity:0}},a,{cb:function(){e.remove(d)},removeOpt:n}):p==="polyline"&&a.get("layout")==="orthogonal"&&ml(d,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},a,{cb:function(){e.remove(d)},removeOpt:n}))}}function lH(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function fP(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,l=lH(o,i).sourceLayout,s={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};ml(e,{x:l.x+1,y:l.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:s}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:s}),i.children.forEach(function(u){cP(u,r,a,n,s)}),cP(i,r,a,n,s)}function YT(r,t,e,a,n){var i,o,l,s,u,c,h,d;if(r==="radial"){u=a.rawX,h=a.rawY,c=n.rawX,d=n.rawY;var p=yv(u,h),g=yv(u,h+(d-h)*e),m=yv(c,d+(h-d)*e),_=yv(c,d);return{x1:p.x||0,y1:p.y||0,x2:_.x||0,y2:_.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:m.x||0,cpy2:m.y||0}}else u=a.x,h=a.y,c=n.x,d=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=h,l=c+(u-c)*e,s=d),(t==="TB"||t==="BT")&&(i=u,o=h+(d-h)*e,l=c,s=d+(h-d)*e);return{x1:u,y1:h,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:l,cpy2:s}}var cn=$t();function sH(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,uH(t,e,r),O(e,function(a){O(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Gt(Jit,r))})}),t.wrapMethod("cloneShallow",Gt(eot,r)),O(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,Gt(tot,r))}),Wr(e[t.dataType]===t)}function Jit(r,t){if(not(this)){var e=it({},cn(this).datas);e[this.dataType]=t,uH(t,e,r)}else wA(t,this.dataType,cn(this).mainData,r);return t}function tot(r,t){return r.struct&&r.struct.update(),t}function eot(r,t){return O(cn(t).datas,function(e,a){e!==t&&wA(e.cloneShallow(),a,t,r)}),t}function rot(r){var t=cn(this).mainData;return r==null||t==null?t:cn(t).datas[r]}function aot(){var r=cn(this).mainData;return r==null?[{data:r}]:ut(Jt(cn(r).datas),function(t){return{type:t,data:cn(r).datas[t]}})}function not(r){return cn(r).mainData===r}function uH(r,t,e){cn(r).datas={},O(t,function(a,n){wA(a,n,r,e)})}function wA(r,t,e,a){cn(e).datas[t]=r,cn(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=rot,r.getLinkedDataAll=aot}var iot=(function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){Ct(t)&&(a=e,e=t,t=null),t=t||{},pt(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var l=0;!o&&le&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(pt(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function cH(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function CA(r,t){var e=cH(r);return Ht(e,t)>=0}function W0(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var lot=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Qt(n,this,this.ecModel),o=TA.createTree(a,this,l);function l(h){h.wrapMethod("getItemModel",function(d,p){var g=o.getNodeByDataIndex(p);return g&&g.children.length&&g.isExpand||(d.parentModel=i),d})}var s=0;o.eachNode("preorder",function(h){h.depth>s&&(s=h.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return o.root.eachNode("preorder",function(h){var d=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=d&&d.collapsed!=null?!d.collapsed:h.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],l=i.getNodeByDataIndex(e),s=l.getValue(),u=l.name;l&&l!==o;)u=l.parentNode.name+"."+u,l=l.parentNode;return ar("nameValue",{name:u,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=W0(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Q.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(Te);function sot(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var l=0;l=0;i--)e.push(n[i])}}function uot(r,t){r.eachSeriesByType("tree",function(e){cot(e,t)})}function cot(r,t){var e=gr(r,t).refContainer,a=Pe(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,l=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,l=lP(function(C,A){return(C.parentNode===A.parentNode?1:2)/C.depth})):(i=a.width,o=a.height,l=lP());var s=r.getData().tree.root,u=s.children[0];if(u){Hit(s),sot(u,Uit,l),s.hierNode.modifier=-u.hierNode.prelim,Qh(u,Fit);var c=u,h=u,d=u;Qh(u,function(C){var A=C.getLayout().x;Ah.getLayout().x&&(h=C),C.depth>d.depth&&(d=C)});var p=c===h?1:l(c,h)/2,g=p-c.getLayout().x,m=0,_=0,S=0,x=0;if(n==="radial")m=i/(h.getLayout().x+p+g),_=o/(d.depth-1||1),Qh(u,function(C){S=(C.getLayout().x+g)*m,x=(C.depth-1)*_;var A=yv(S,x);C.setLayout({x:A.x,y:A.y,rawX:S,rawY:x},!0)});else{var w=r.getOrient();w==="RL"||w==="LR"?(_=o/(h.getLayout().x+p+g),m=i/(d.depth-1||1),Qh(u,function(C){x=(C.getLayout().x+g)*_,S=w==="LR"?(C.depth-1)*m:i-(C.depth-1)*m,C.setLayout({x:S,y:x},!0)})):(w==="TB"||w==="BT")&&(m=i/(h.getLayout().x+p+g),_=o/(d.depth-1||1),Qh(u,function(C){S=(C.getLayout().x+g)*m,x=w==="TB"?(C.depth-1)*_:o-(C.depth-1)*_,C.setLayout({x:S,y:x},!0)}))}}}function fot(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),l=e.ensureUniqueItemVisual(n.dataIndex,"style");it(l,o)})})}function hot(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=Y0(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function vot(r){r.registerChartView(Kit),r.registerSeriesModel(lot),r.registerLayout(uot),r.registerVisual(fot),hot(r)}var hP=["treemapZoomToNode","treemapRender","treemapMove"];function dot(r){for(var t=0;t1;)i=i.parentNode;var o=sT(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var pot=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};hH(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},l=new Qt({itemStyle:o},this,a);i=e.levels=got(i,a);var s=ut(i||[],function(h){return new Qt(h,l,a)},this),u=TA.createTree(n,this,c);function c(h){h.wrapMethod("getItemModel",function(d,p){var g=u.getNodeByDataIndex(p),m=g?s[g.depth]:null;return d.parentModel=m||l,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),l=i.getName(e);return ar("nameValue",{name:l,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=W0(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},it(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=bt(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){fH(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Q.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(Te);function hH(r){var t=0;O(r.children,function(a){hH(a);var n=a.value;lt(n)&&(n=n[0]),t+=n});var e=r.value;lt(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),lt(r.value)?r.value[0]=e:r.value=e}function got(r,t){var e=be(t.get("color")),a=be(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;O(r,function(l){var s=new Qt(l),u=s.get("color"),c=s.get("decal");(s.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(s.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var yot=8,vP=8,tx=5,mot=(function(){function r(t){this.group=new At,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var l=i.getModel("itemStyle"),s=i.getModel("emphasis"),u=l.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),h=gr(t,e).refContainer,d={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},p={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},g=Pe(d,h);this._prepare(a,p,u),this._renderContent(t,p,g,l,s,u,c,n),N0(o,d,h)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=vr(n.getModel().get("name"),""),o=a.getTextRect(i),l=Math.max(o.width+yot*2,e.emptyItemWidth);e.totalWidth+=l+vP,e.renderList.push({node:n,text:i,width:l})}},r.prototype._renderContent=function(t,e,a,n,i,o,l,s){for(var u=0,c=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),d=e.totalWidth,p=e.renderList,g=i.getModel("itemStyle").getItemStyle(),m=p.length-1;m>=0;m--){var _=p[m],S=_.node,x=_.width,w=_.text;d>a.width&&(d-=x-c,x=c,w=null);var C=new $r({shape:{points:_ot(u,0,x,h,m===p.length-1,m===0)},style:Et(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ae({style:we(o,{text:w})}),textConfig:{position:"inside"},z2:bf*1e4,onclick:Gt(s,S)});C.disableLabelAnimation=!0,C.getTextContent().ensureState("emphasis").style=we(l,{text:w}),C.ensureState("emphasis").style=g,ze(C,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(C),Sot(C,t,S),u+=x+vP}},r.prototype.remove=function(){this.group.removeAll()},r})();function _ot(r,t,e,a,n,i){var o=[[n?r:r-tx,t],[r+e,t],[r+e,t+a],[n?r:r-tx,t+a]];return!i&&o.splice(2,0,[r+e+tx,t+a/2]),!n&&o.push([r,t+a/2]),o}function Sot(r,t,e){zt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&W0(e,t)}}var bot=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;npP||Math.abs(e.dy)>pP)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var l=o.getLayout();if(!l)return;var s=new It(l.x,l.y,l.width,l.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=i,u){var d=u.min||0,p=u.max||1/0;h=Math.max(Math.min(p,h),d)}var g=h/c.zoom;c.zoom=h;var m=this.seriesModel.layoutInfo;a-=m.x,n-=m.y;var _=Dr();pi(_,_,[-a,-n]),o2(_,_,[g,g]),pi(_,_,[a,n]),s.applyTransform(_),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(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var l=o.node;if(l.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var s=l.hostTree.data.getItemModel(l.dataIndex),u=s.get("link",!0),c=s.get("target",!0)||"blank";u&&cm(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new mot(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(CA(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Jh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var l=this._storage.background[o.getRawIndex()];if(l){var s=l.transformCoordToLocal(e,a),u=l.shape;if(u.x<=s[0]&&s[0]<=u.x+u.width&&u.y<=s[1]&&s[1]<=u.y+u.height)n={node:o,offsetX:s[0],offsetY:s[1]};else return!1}},this),n},t.type="treemap",t})(_e);function Jh(){return{nodeGroup:[],background:[],content:[]}}function Mot(r,t,e,a,n,i,o,l,s,u){if(!o)return;var c=o.getLayout(),h=r.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var p=c.width,g=c.height,m=c.borderWidth,_=c.invisible,S=o.getRawIndex(),x=l&&l.getRawIndex(),w=o.viewChildren,C=c.upperHeight,A=w&&w.length,M=d.getModel("itemStyle"),L=d.getModel(["emphasis","itemStyle"]),E=d.getModel(["blur","itemStyle"]),R=d.getModel(["select","itemStyle"]),I=M.get("borderRadius")||0,N=vt("nodeGroup",jT);if(!N)return;if(s.add(N),N.x=c.x||0,N.y=c.y||0,N.markRedraw(),Im(N).nodeWidth=p,Im(N).nodeHeight=g,c.isAboveViewRoot)return N;var B=vt("background",dP,u,Tot);B&&q(N,B,A&&c.upperLabelHeight);var P=d.getModel("emphasis"),F=P.get("focus"),H=P.get("blurScope"),k=P.get("disabled"),j=F==="ancestor"?o.getAncestorsIndices():F==="descendant"?o.getDescendantIndices():F;if(A)Uv(N)&&Ns(N,!1),B&&(Ns(B,!k),h.setItemGraphicEl(o.dataIndex,B),qw(B,j,H));else{var Y=vt("content",dP,u,Cot);Y&&G(N,Y),B.disableMorphing=!0,B&&Uv(B)&&Ns(B,!1),Ns(N,!k),h.setItemGraphicEl(o.dataIndex,N);var $=d.getShallow("cursor");$&&Y.attr("cursor",$),qw(N,j,H)}return N;function q(xt,gt,Pt){var _t=zt(gt);if(_t.dataIndex=o.dataIndex,_t.seriesIndex=r.seriesIndex,gt.setShape({x:0,y:0,width:p,height:g,r:I}),_)X(gt);else{gt.invisible=!1;var Ot=o.getVisual("style"),ve=Ot.stroke,jt=mP(M);jt.fill=ve;var ne=ws(L);ne.fill=L.get("borderColor");var se=ws(E);se.fill=E.get("borderColor");var Ue=ws(R);if(Ue.fill=R.get("borderColor"),Pt){var xr=p-2*m;tt(gt,ve,Ot.opacity,{x:m,y:0,width:xr,height:C})}else gt.removeTextContent();gt.setStyle(jt),gt.ensureState("emphasis").style=ne,gt.ensureState("blur").style=se,gt.ensureState("select").style=Ue,Qs(gt)}xt.add(gt)}function G(xt,gt){var Pt=zt(gt);Pt.dataIndex=o.dataIndex,Pt.seriesIndex=r.seriesIndex;var _t=Math.max(p-2*m,0),Ot=Math.max(g-2*m,0);if(gt.culling=!0,gt.setShape({x:m,y:m,width:_t,height:Ot,r:I}),_)X(gt);else{gt.invisible=!1;var ve=o.getVisual("style"),jt=ve.fill,ne=mP(M);ne.fill=jt,ne.decal=ve.decal;var se=ws(L),Ue=ws(E),xr=ws(R);tt(gt,jt,ve.opacity,null),gt.setStyle(ne),gt.ensureState("emphasis").style=se,gt.ensureState("blur").style=Ue,gt.ensureState("select").style=xr,Qs(gt)}xt.add(gt)}function X(xt){!xt.invisible&&i.push(xt)}function tt(xt,gt,Pt,_t){var Ot=d.getModel(_t?yP:gP),ve=vr(d.get("name"),null),jt=Ot.getShallow("show");br(xt,pr(d,_t?yP:gP),{defaultText:jt?ve:null,inheritColor:gt,defaultOpacity:Pt,labelFetcher:r,labelDataIndex:o.dataIndex});var ne=xt.getTextContent();if(ne){var se=ne.style,Ue=h0(se.padding||0);_t&&(xt.setTextConfig({layoutRect:_t}),ne.disableLabelLayout=!0),ne.beforeUpdate=function(){var lr=Math.max((_t?_t.width:xt.shape.width)-Ue[1]-Ue[3],0),ma=Math.max((_t?_t.height:xt.shape.height)-Ue[0]-Ue[2],0);(se.width!==lr||se.height!==ma)&&ne.setStyle({width:lr,height:ma})},se.truncateMinChar=2,se.lineOverflow="truncate",rt(se,_t,c);var xr=ne.getState("emphasis");rt(xr?xr.style:null,_t,c)}}function rt(xt,gt,Pt){var _t=xt?xt.text:null;if(!gt&&Pt.isLeafRoot&&_t!=null){var Ot=r.get("drillDownIcon",!0);xt.text=Ot?Ot+" "+_t:_t}}function vt(xt,gt,Pt,_t){var Ot=x!=null&&e[xt][x],ve=n[xt];return Ot?(e[xt][x]=null,Tt(ve,Ot)):_||(Ot=new gt,Ot instanceof fn&&(Ot.z2=Dot(Pt,_t)),Nt(ve,Ot)),t[xt][S]=Ot}function Tt(xt,gt){var Pt=xt[S]={};gt instanceof jT?(Pt.oldX=gt.x,Pt.oldY=gt.y):Pt.oldShape=it({},gt.shape)}function Nt(xt,gt){var Pt=xt[S]={},_t=o.parentNode,Ot=gt instanceof At;if(_t&&(!a||a.direction==="drillDown")){var ve=0,jt=0,ne=n.background[_t.getRawIndex()];!a&&ne&&ne.oldShape&&(ve=ne.oldShape.width,jt=ne.oldShape.height),Ot?(Pt.oldX=0,Pt.oldY=jt):Pt.oldShape={x:ve,y:jt,width:0,height:0}}Pt.fadein=!Ot}}function Dot(r,t){return r*wot+t}var nd=O,Lot=Rt,Om=-1,Sr=(function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=Mt(t);this.type=a,this.mappingMethod=e,this._normalizeData=Iot[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(ex(n),Eot(n)):e==="category"?n.categories?Rot(n):ex(n,!0):(Wr(e!=="linear"||n.dataExtent),ex(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return yt(this._normalizeData,this)},r.listVisualTypes=function(){return Jt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){Rt(t)?O(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=lt(t)?[]:Rt(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,l){var s=e.call(a,o,l);n?i=s:i[l]=s}),i},r.retrieveVisuals=function(t){var e={},a;return t&&nd(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(lt(t))t=t.slice();else if(Lot(t)){var e=[];nd(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,l=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function ex(r,t){var e=r.visual,a=[];Rt(e)?nd(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),vH(r,a)}function Kg(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:WT([0,1])}}function _P(r){var t=this.option.visual;return t[Math.round(fe(r,[0,1],[0,t.length-1],!0))]||{}}function tv(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function mv(r){var t=this.option.visual;return t[this.option.loop&&r!==Om?r%t.length:r]}function Ts(){return this.option.visual[0]}function WT(r){return{linear:function(t){return fe(t,r,this.option.visual,!0)},category:mv,piecewise:function(t,e){var a=XT.call(this,e);return a==null&&(a=fe(t,r,this.option.visual,!0)),a},fixed:Ts}}function XT(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Sr.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function vH(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=ut(t,function(e){var a=ga(e);return a||[0,0,0,1]})),t}var Iot={linear:function(r){return fe(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Sr.findPieceIndex(r,t,!0);if(e!=null)return fe(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Om},fixed:$e};function Qg(r,t,e){return r?t<=e:t=e.length||m===e[m.depth]){var S=Bot(n,s,m,_,g,a);pH(m,S,e,a)}})}}}function zot(r,t,e){var a=it({},t),n=e.designatedVisualItemStyle;return O(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function SP(r){var t=rx(r,"color");if(t){var e=rx(r,"colorAlpha"),a=rx(r,"colorSaturation");return a&&(t=hl(t,null,null,a)),e&&(t=qy(t,e)),t}}function Pot(r,t){return t!=null?hl(t,null,null,r):null}function rx(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function kot(r,t,e,a,n,i){if(!(!i||!i.length)){var o=ax(t,"color")||n.color!=null&&n.color!=="none"&&(ax(t,"colorAlpha")||ax(t,"colorSaturation"));if(o){var l=t.get("visualMin"),s=t.get("visualMax"),u=e.dataExtent.slice();l!=null&&lu[1]&&(u[1]=s);var c=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var d=new Sr(h);return dH(d).drColorMappingBy=c,d}}}function ax(r,t){var e=r.get(t);return lt(e)&&e.length?{name:t,range:e}:null}function Bot(r,t,e,a,n,i){var o=it({},t);if(n){var l=n.type,s=l==="color"&&dH(n).drColorMappingBy,u=s==="index"?a:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[l]=n.mapValueToVisual(u)}return o}var id=Math.max,Nm=Math.min,bP=Br,AA=O,gH=["itemStyle","borderWidth"],Vot=["itemStyle","gapWidth"],Got=["upperLabel","show"],Hot=["upperLabel","height"];const Uot={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=gr(r,e).refContainer,o=Pe(r.getBoxLayoutParams(),i),l=n.size||[],s=dt(bP(o.width,l[0]),i.width),u=dt(bP(o.height,l[1]),i.height),c=a&&a.type,h=["treemapZoomToNode","treemapRootToNode"],d=ad(a,h,r),p=c==="treemapRender"||c==="treemapMove"?a.rootRect:null,g=r.getViewRoot(),m=cH(g);if(c!=="treemapMove"){var _=c==="treemapZoomToNode"?$ot(r,d,g,s,u):p?[p.width,p.height]:[s,u],S=n.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var x={squareRatio:n.squareRatio,sort:S,leafDepth:n.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:_[0],height:_[1],area:_[0]*_[1]};g.setLayout(w),yH(g,x,!1,0),w=g.getLayout(),AA(m,function(A,M){var L=(m[M+1]||g).getValue();A.setLayout(it({dataExtent:[L,L],borderWidth:0,upperHeight:0},w))})}var C=r.getData().tree.root;C.setLayout(Zot(o,p,d),!0),r.setLayoutInfo(o),mH(C,new It(-o.x,-o.y,e.getWidth(),e.getHeight()),m,g,0)}};function yH(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var l=r.getModel(),s=l.get(gH),u=l.get(Vot)/2,c=_H(l),h=Math.max(s,c),d=s-u,p=h-u;r.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:c},!0),n=id(n-2*d,0),i=id(i-d-p,0);var g=n*i,m=Fot(r,l,g,t,e,a);if(m.length){var _={x:d,y:p,width:n,height:i},S=Nm(n,i),x=1/0,w=[];w.area=0;for(var C=0,A=m.length;C=0;s--){var u=n[a==="asc"?o-s-1:s].getValue();u/e*tl[1]&&(l[1]=u)})),{sum:a,dataExtent:l}}function Xot(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,l=r.length;ia&&(a=o));var s=r.area*r.area,u=t*t*e;return s?id(u*a/s,s/(u*n)):1/0}function xP(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,l=["x","y"],s=["width","height"],u=e[l[i]],c=t?r.area/t:0;(n||c>e[s[o]])&&(c=e[s[o]]);for(var h=0,d=r.length;hMI&&(u=MI),i=l}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(A[0]=-A[0],A[1]=-A[1]);var L=C[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(C[1],C[0]);h[0].8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*S+c[0],i.y=-d[1]*x+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=S*L+c[0],i.y=c[1]+R,g=C[0]<0?"right":"left",i.originX=-S*L,i.originY=-R;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=M[0],i.y=M[1]+R,g="center",i.originY=-R;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-S*L+h[0],i.y=h[1]+R,g=C[0]>=0?"right":"left",i.originX=S*L,i.originY=-R;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||g})}},t})(At),RA=(function(){function r(t){this.group=new At,this._LineCtor=t||EA}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=DP(t);t.diff(i).add(function(l){e._doAdd(t,l,o)}).update(function(l,s){e._doUpdate(i,t,s,l,o)}).remove(function(l){n.remove(i.getItemGraphicEl(l))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=DP(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(l){!l.isGroup&&!hlt(l)&&(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function DP(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:pr(t)}}function LP(r){return isNaN(r[0])||isNaN(r[1])}function sx(r){return r&&!LP(r[0])&&!LP(r[1])}var ux=[],cx=[],fx=[],xc=Mr,hx=Gs,EP=Math.abs;function RP(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,l,s=e*e,u=.1,c=.1;c<=.9;c+=.1){ux[0]=xc(a[0],n[0],i[0],c),ux[1]=xc(a[1],n[1],i[1],c);var h=EP(hx(ux,t)-s);h=0?l=l+u:l=l-u:g>=0?l=l-u:l=l+u}return l}function vx(r,t){var e=[],a=Pv,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(l,s){var u=l.getLayout(),c=l.getVisual("fromSymbol"),h=l.getVisual("toSymbol");u.__original||(u.__original=[qi(u[0]),qi(u[1])],u[2]&&u.__original.push(qi(u[2])));var d=u.__original;if(u[2]!=null){if(Kr(n[0],d[0]),Kr(n[1],d[2]),Kr(n[2],d[1]),c&&c!=="none"){var p=Sv(l.node1),g=RP(n,d[0],p*t);a(n[0][0],n[1][0],n[2][0],g,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],g,e),n[0][1]=e[3],n[1][1]=e[4]}if(h&&h!=="none"){var p=Sv(l.node2),g=RP(n,d[1],p*t);a(n[0][0],n[1][0],n[2][0],g,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],g,e),n[1][1]=e[1],n[2][1]=e[2]}Kr(u[0],n[0]),Kr(u[1],n[2]),Kr(u[2],n[1])}else{if(Kr(i[0],d[0]),Kr(i[1],d[1]),Is(o,i[1],i[0]),mf(o,o),c&&c!=="none"){var p=Sv(l.node1);yw(i[0],i[0],o,p*t)}if(h&&h!=="none"){var p=Sv(l.node2);yw(i[1],i[1],o,-p*t)}Kr(u[0],i[0]),Kr(u[1],i[1])}})}var AH=$t();function vlt(r){if(r)return AH(r).bridge}function IP(r,t){r&&(AH(r).bridge=t)}function OP(r){return r.type==="view"}var dlt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Rd,i=new RA,o=this.group,l=new At;this._controller=new du(a.getZr()),this._controllerHost={target:l},l.add(n.group),l.add(i.group),o.add(l),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=l,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,l=!1;this._model=e,this._api=n,this._active=!0;var s=this._getThumbnailInfo();s&&s.bridge.reset(n);var u=this._symbolDraw,c=this._lineDraw;if(OP(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(h):oe(this._mainGroup,h,e)}vx(e.getGraph(),_v(e));var d=e.getData();u.updateData(d);var p=e.getEdgeData();c.updateData(p),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var g=e.forceLayout,m=e.get(["force","layoutAnimation"]);g&&(l=!0,this._startForceLayoutIteration(g,n,m));var _=e.get("layout");d.graph.eachNode(function(C){var A=C.dataIndex,M=C.getGraphicEl(),L=C.getModel();if(M){M.off("drag").off("dragend");var E=L.get("draggable");E&&M.on("drag",function(I){switch(_){case"force":g.warmUp(),!i._layouting&&i._startForceLayoutIteration(g,n,m),g.setFixed(A),d.setItemLayout(A,[M.x,M.y]);break;case"circular":d.setItemLayout(A,[M.x,M.y]),C.setLayout({fixed:!0},!0),LA(e,"symbolSize",C,[I.offsetX,I.offsetY]),i.updateLayout(e);break;case"none":default:d.setItemLayout(A,[M.x,M.y]),DA(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){g&&g.setUnfixed(A)}),M.setDraggable(E,!!L.get("cursor"));var R=L.get(["emphasis","focus"]);R==="adjacency"&&(zt(M).focus=C.getAdjacentDataIndices())}}),d.graph.eachEdge(function(C){var A=C.getGraphicEl(),M=C.getModel().get(["emphasis","focus"]);A&&M==="adjacency"&&(zt(A).focus={edge:[C.dataIndex],node:[C.node1.dataIndex,C.node2.dataIndex]})});var S=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),x=d.getLayout("cx"),w=d.getLayout("cy");d.graph.eachNode(function(C){wH(C,S,x,w)}),this._firstRender=!1,l||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function l(){e.step(function(s){i.updateLayout(i._model),(s||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!s)&&(n?i._layoutTimeout=setTimeout(l,16):l())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,l=a.coordinateSystem;if(!OP(l)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(s,u,c){return l.containPoint([u,c])},isInClip:function(s,u,c){return!e||e.contain(u,c)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=l.getZoom(),i.off("pan").off("zoom").on("pan",function(s){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:s.dx,dy:s.dy})}).on("zoom",function(s){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:s.scale,originX:s.originX,originY:s.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(_A(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(SA(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),vx(e.getGraph(),_v(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=_v(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(vx(e.getGraph(),_v(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=vlt(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var l=new At,s=n.group.children(),u=i.group.children(),c=new At,h=new At;l.add(h),l.add(c);for(var d=0;d=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Cs||(e=this._nodesMap[wc(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&s.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&!t.hasKey(g)&&(t.set(g,!0),o.push(p.node1))}for(s=0;s=0&&!t.hasKey(w)&&(t.set(w,!0),l.push(x.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),MH=(function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=bt(),e=bt();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i=0&&!t.hasKey(h)&&(t.set(h,!0),a.push(c.node1))}for(i=0;i=0&&!t.hasKey(m)&&(t.set(m,!0),n.push(g.node2))}return{edge:t.keys(),node:e.keys()}},r})();function DH(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}or(Cs,DH("hostGraph","data"));or(MH,DH("hostGraph","edgeData"));function IA(r,t,e,a,n){for(var i=new plt(a),o=0;o "+d)),u++)}var p=e.get("coordinateSystem"),g;if(p==="cartesian2d"||p==="polar"||p==="matrix")g=po(r,e);else{var m=Cd.get(p),_=m?m.dimensions||[]:[];Ht(_,"value")<0&&_.concat(["value"]);var S=Dd(r,{coordDimensions:_,encodeDefine:e.getEncode()}).dimensions;g=new ea(S,e),g.initData(r)}var x=new ea(["value"],e);return x.initData(s,l),n&&n(g,x),sH({mainData:g,struct:i,structAttr:"graph",datas:{node:g,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var glt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new If(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Zs(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){rlt(this);var l=IA(i,n,this,!0,s);return O(l.edges,function(u){alt(u.node1,u.node2,this,u.dataIndex)},this),l.data}function s(u,c){u.wrapMethod("getItemModel",function(g){var m=o._categoriesModels,_=g.getShallow("category"),S=m[_];return S&&(S.parentModel=g.parentModel,g.parentModel=S),g});var h=Qt.prototype.getModel;function d(g,m){var _=h.call(this,g,m);return _.resolveParentPath=p,_}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=p,g.getModel=d,g});function p(g){if(g&&(g[0]==="label"||g[1]==="label")){var m=g.slice();return g[0]==="label"?m[0]="edgeLabel":g[1]==="label"&&(m[1]="edgeLabel"),m}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),l=i.graph.getEdgeByIndex(e),s=i.getName(l.node1.dataIndex),u=i.getName(l.node2.dataIndex),c=[];return s!=null&&c.push(s),u!=null&&c.push(u),ar("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=zG({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=ut(this.option.categories||[],function(n){return n.value!=null?n:it({value:0},n)}),a=new ea(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Q.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t})(Te);function ylt(r){r.registerChartView(dlt),r.registerSeriesModel(glt),r.registerProcessor(Kot),r.registerVisual(Qot),r.registerVisual(Jot),r.registerLayout(nlt),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,olt),r.registerLayout(slt),r.registerCoordinateSystem("graphView",{dimensions:pu.dimensions,create:clt}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$e),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$e),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,l=Y0(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(l.center),n.setZoom&&n.setZoom(l.zoom)})})}var NP=(function(r){J(t,r);function t(e,a,n){var i=r.call(this)||this;zt(i).dataType="node",i.z2=2;var o=new ae;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,l=e.graph.getNodeByIndex(a),s=e.hostModel,u=l.getModel(),c=u.getModel("emphasis"),h=e.getItemLayout(a),d=it(li(u.getModel("itemStyle"),h,!0),h),p=this;if(isNaN(d.startAngle)){p.setShape(d);return}i?p.setShape(d):oe(p,{shape:d},s,a);var g=it(li(u.getModel("itemStyle"),h,!0),h);o.setShape(g),o.useStyle(e.getItemVisual(a,"style")),dr(o,u),this._updateLabel(s,u,l),e.setItemGraphicEl(a,p),dr(p,u,"itemStyle");var m=c.get("focus");ze(this,m==="adjacency"?l.getAdjacentDataIndices():m,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),l=(o.startAngle+o.endAngle)/2,s=Math.cos(l),u=Math.sin(l),c=a.getModel("label");i.ignore=!c.get("show");var h=pr(a),d=n.getVisual("style");br(i,h,{labelFetcher:{getFormattedLabel:function(x,w,C,A,M,L){return e.getFormattedLabel(x,w,"node",A,za(M,h.normal&&h.normal.get("formatter"),a.get("name")),L)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:"startArc"});var p=c.get("position")||"outside",g=c.get("distance")||0,m;p==="outside"?m=o.r+g:m=(o.r+o.r0)/2,this.textConfig={inside:p!=="outside"};var _=p!=="outside"?c.get("align")||"center":s>0?"left":"right",S=p!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:s*m+o.cx,y:u*m+o.cy,rotation:0,style:{align:_,verticalAlign:S}})},t})(Xr),mlt=(function(r){J(t,r);function t(e,a,n,i){var o=r.call(this)||this;return zt(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var l=e.hostModel,s=a.graph.getEdgeByIndex(n),u=s.getLayout(),c=s.node1.getModel(),h=a.getItemModel(s.dataIndex),d=h.getModel("lineStyle"),p=h.getModel("emphasis"),g=p.get("focus"),m=it(li(c.getModel("itemStyle"),u,!0),u),_=this;if(isNaN(m.sStartAngle)||isNaN(m.tStartAngle)){_.setShape(m);return}o?(_.setShape(m),zP(_,s,e,d)):(hn(_),zP(_,s,e,d),oe(_,{shape:m},l,n)),ze(this,g==="adjacency"?s.getAdjacentDataIndices():g,p.get("blurScope"),p.get("disabled")),dr(_,h,"lineStyle"),a.setItemGraphicEl(s.dataIndex,_)},t})(Zt);function zP(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var l=a.get("color");switch(l){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var s=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(pt(s)&&pt(u)){var c=r.shape,h=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,p=(c.t1[0]+c.t2[0])/2,g=(c.t1[1]+c.t2[1])/2;o.fill=new xf(h,d,p,g,[{offset:0,color:s},{offset:1,color:u}],!0)}break}}var _lt=Math.PI/180,Slt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,l=this.group,s=-e.get("startAngle")*_lt;if(i.diff(o).add(function(c){var h=i.getItemLayout(c);if(h){var d=new NP(i,c,s);zt(d).dataIndex=c,l.add(d)}}).update(function(c,h){var d=o.getItemGraphicEl(h),p=i.getItemLayout(c);if(!p){d&&Ki(d,e,h);return}d?d.updateData(i,c,s):d=new NP(i,c,s),l.add(d)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Ki(h,e,c)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=dt(u[0],n.getWidth()),this.group.originY=dt(u[1],n.getHeight()),Re(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,s)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,l=this.group;i.diff(o).add(function(s){var u=new mlt(n,i,s,a);zt(u).dataIndex=s,l.add(u)}).update(function(s,u){var c=o.getItemGraphicEl(u);c.updateData(n,i,s,a),l.add(c)}).remove(function(s){var u=o.getItemGraphicEl(s);u&&Ki(u,e,s)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t})(_e),blt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new If(yt(this.getData,this),yt(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=IA(i,n,this,!0,l);return o.data}function l(s,u){var c=Qt.prototype.getModel;function h(p,g){var m=c.call(this,p,g);return m.resolveParentPath=d,m}u.wrapMethod("getItemModel",function(p){return p.resolveParentPath=d,p.getModel=h,p});function d(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),l=o.graph.getEdgeByIndex(e),s=o.getName(l.node1.dataIndex),u=o.getName(l.node2.dataIndex),c=[];return s!=null&&c.push(s),u!=null&&c.push(u),ar("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}return ar("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var l=o.getLayout().value;n.value=l}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t})(Te),dx=Math.PI/180;function xlt(r,t){r.eachSeriesByType("chord",function(e){wlt(e,t)})}function wlt(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=tG(r,t),l=o.cx,s=o.cy,u=o.r,c=o.r0,h=Math.max((r.get("padAngle")||0)*dx,0),d=Math.max((r.get("minAngle")||0)*dx,0),p=-r.get("startAngle")*dx,g=p+Math.PI*2,m=r.get("clockwise"),_=m?1:-1,S=[p,g];w0(S,!m);var x=S[0],w=S[1],C=w-x,A=e.getSum("value")===0&&n.getSum("value")===0,M=[],L=0;a.eachEdge(function(Y){var $=A?1:Y.getValue("value");A&&($>0||d)&&(L+=2);var q=Y.node1.dataIndex,G=Y.node2.dataIndex;M[q]=(M[q]||0)+$,M[G]=(M[G]||0)+$});var E=0;if(a.eachNode(function(Y){var $=Y.getValue("value");isNaN($)||(M[Y.dataIndex]=Math.max($,M[Y.dataIndex]||0)),!A&&(M[Y.dataIndex]>0||d)&&L++,E+=M[Y.dataIndex]||0}),!(L===0||E===0)){h*L>=Math.abs(C)&&(h=Math.max(0,(Math.abs(C)-d*L)/L)),(h+d)*L>=Math.abs(C)&&(d=(Math.abs(C)-h*L)/L);var R=(C-h*L*_)/E,I=0,N=0,B=0;a.eachNode(function(Y){var $=M[Y.dataIndex]||0,q=R*(E?$:1)*_;Math.abs(q)N){var F=I/N;a.eachNode(function(Y){var $=Y.getLayout().angle;Math.abs($)>=d?Y.setLayout({angle:$*F,ratio:F},!0):Y.setLayout({angle:d,ratio:d===0?1:$/d},!0)})}else a.eachNode(function(Y){if(!P){var $=Y.getLayout().angle,q=Math.min($/B,1),G=q*I;$-Gd&&d>0){var q=P?1:Math.min($/B,1),G=$-d,X=Math.min(G,Math.min(H,I*q));H-=X,Y.setLayout({angle:$-X,ratio:($-X)/$},!0)}else d>0&&Y.setLayout({angle:d,ratio:$===0?1:d/$},!0)}});var k=x,j=[];a.eachNode(function(Y){var $=Math.max(Y.getLayout().angle,d);Y.setLayout({cx:l,cy:s,r0:c,r:u,startAngle:k,endAngle:k+$*_,clockwise:m},!0),j[Y.dataIndex]=k,k+=($+h)*_}),a.eachEdge(function(Y){var $=A?1:Y.getValue("value"),q=R*(E?$:1)*_,G=Y.node1.dataIndex,X=j[G]||0,tt=Math.abs((Y.node1.getLayout().ratio||1)*q),rt=X+tt*_,vt=[l+c*Math.cos(X),s+c*Math.sin(X)],Tt=[l+c*Math.cos(rt),s+c*Math.sin(rt)],Nt=Y.node2.dataIndex,xt=j[Nt]||0,gt=Math.abs((Y.node2.getLayout().ratio||1)*q),Pt=xt+gt*_,_t=[l+c*Math.cos(xt),s+c*Math.sin(xt)],Ot=[l+c*Math.cos(Pt),s+c*Math.sin(Pt)];Y.setLayout({s1:vt,s2:Tt,sStartAngle:X,sEndAngle:rt,t1:_t,t2:Ot,tStartAngle:xt,tEndAngle:Pt,cx:l,cy:s,r:c,value:$,clockwise:m}),j[G]=rt,j[Nt]=Pt})}}}function Tlt(r){r.registerChartView(Slt),r.registerSeriesModel(blt),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,xlt),r.registerProcessor(Ef("chord"))}var Clt=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),Alt=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new Clt},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,l=a.width,s=a.angle,u=a.x-n(s)*l*(l>=o/3?1:2),c=a.y-i(s)*l*(l>=o/3?1:2);s=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(s)*l,a.y+i(s)*l),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(s)*l,a.y-i(s)*l),e.lineTo(u,c)},t})(Zt);function Mlt(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=dt(e[0],t.getWidth()),l=dt(e[1],t.getHeight()),s=dt(r.get("radius"),i/2);return{cx:o,cy:l,r:s}}function ty(r,t){var e=r==null?"":r+"";return t&&(pt(t)?e=t.replace("{value}",e):Ct(t)&&(e=t(r))),e}var Dlt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=Mlt(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var l=this.group,s=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),d=h.get("roundCap"),p=d?Mm:Xr,g=h.get("show"),m=h.getModel("lineStyle"),_=m.get("width"),S=[u,c];w0(S,!s),u=S[0],c=S[1];for(var x=c-u,w=u,C=[],A=0;g&&A=R&&(I===0?0:i[I-1][0])Math.PI/2&&(rt+=Math.PI)):tt==="tangential"?rt=-E-Math.PI/2:ee(tt)&&(rt=tt*Math.PI/180),rt===0?h.add(new ae({style:we(w,{text:$,x:G,y:X,verticalAlign:H<-.8?"top":H>.8?"bottom":"middle",align:F<-.4?"left":F>.4?"right":"center"},{inheritColor:q}),silent:!0})):h.add(new ae({style:we(w,{text:$,x:G,y:X,verticalAlign:"middle",align:"center"},{inheritColor:q}),silent:!0,originX:G,originY:X,rotation:rt}))}if(x.get("show")&&k!==C){var j=x.get("distance");j=j?j+c:c;for(var vt=0;vt<=A;vt++){F=Math.cos(E),H=Math.sin(E);var Tt=new tr({shape:{x1:F*(g-j)+d,y1:H*(g-j)+p,x2:F*(g-L-j)+d,y2:H*(g-L-j)+p},silent:!0,style:B});B.stroke==="auto"&&Tt.setStyle({stroke:i((k+vt/A)/C)}),h.add(Tt),E+=I}E-=I}else E+=R}},t.prototype._renderPointer=function(e,a,n,i,o,l,s,u,c){var h=this.group,d=this._data,p=this._progressEls,g=[],m=e.get(["pointer","show"]),_=e.getModel("progress"),S=_.get("show"),x=e.getData(),w=x.mapDimension("value"),C=+e.get("min"),A=+e.get("max"),M=[C,A],L=[l,s];function E(I,N){var B=x.getItemModel(I),P=B.getModel("pointer"),F=dt(P.get("width"),o.r),H=dt(P.get("length"),o.r),k=e.get(["pointer","icon"]),j=P.get("offsetCenter"),Y=dt(j[0],o.r),$=dt(j[1],o.r),q=P.get("keepAspect"),G;return k?G=nr(k,Y-F/2,$-H,F,H,null,q):G=new Alt({shape:{angle:-Math.PI/2,width:F,r:H,x:Y,y:$}}),G.rotation=-(N+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function R(I,N){var B=_.get("roundCap"),P=B?Mm:Xr,F=_.get("overlap"),H=F?_.get("width"):c/x.count(),k=F?o.r-H:o.r-(I+1)*H,j=F?o.r:o.r-I*H,Y=new P({shape:{startAngle:l,endAngle:N,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:j}});return F&&(Y.z2=fe(x.get(w,I),[C,A],[100,0],!0)),Y}(S||m)&&(x.diff(d).add(function(I){var N=x.get(w,I);if(m){var B=E(I,l);Re(B,{rotation:-((isNaN(+N)?L[0]:fe(N,M,L,!0))+Math.PI/2)},e),h.add(B),x.setItemGraphicEl(I,B)}if(S){var P=R(I,l),F=_.get("clip");Re(P,{shape:{endAngle:fe(N,M,L,F)}},e),h.add(P),Ww(e.seriesIndex,x.dataType,I,P),g[I]=P}}).update(function(I,N){var B=x.get(w,I);if(m){var P=d.getItemGraphicEl(N),F=P?P.rotation:l,H=E(I,F);H.rotation=F,oe(H,{rotation:-((isNaN(+B)?L[0]:fe(B,M,L,!0))+Math.PI/2)},e),h.add(H),x.setItemGraphicEl(I,H)}if(S){var k=p[N],j=k?k.shape.endAngle:l,Y=R(I,j),$=_.get("clip");oe(Y,{shape:{endAngle:fe(B,M,L,$)}},e),h.add(Y),Ww(e.seriesIndex,x.dataType,I,Y),g[I]=Y}}).execute(),x.each(function(I){var N=x.getItemModel(I),B=N.getModel("emphasis"),P=B.get("focus"),F=B.get("blurScope"),H=B.get("disabled");if(m){var k=x.getItemGraphicEl(I),j=x.getItemVisual(I,"style"),Y=j.fill;if(k instanceof Er){var $=k.style;k.useStyle(it({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},j))}else k.useStyle(j),k.type!=="pointer"&&k.setColor(Y);k.setStyle(N.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i(fe(x.get(w,I),M,[0,1],!0))),k.z2EmphasisLift=0,dr(k,N),ze(k,P,F,H)}if(S){var q=g[I];q.useStyle(x.getItemVisual(I,"style")),q.setStyle(N.getModel(["progress","itemStyle"]).getItemStyle()),q.z2EmphasisLift=0,dr(q,N),ze(q,P,F,H)}}),this._progressEls=g)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),l=n.get("icon"),s=n.get("offsetCenter"),u=n.get("keepAspect"),c=nr(l,a.cx-o/2+dt(s[0],a.r),a.cy-o/2+dt(s[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var l=this,s=e.getData(),u=s.mapDimension("value"),c=+e.get("min"),h=+e.get("max"),d=new At,p=[],g=[],m=e.isAnimationEnabled(),_=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(S){p[S]=new ae({silent:!0}),g[S]=new ae({silent:!0})}).update(function(S,x){p[S]=l._titleEls[x],g[S]=l._detailEls[x]}).execute(),s.each(function(S){var x=s.getItemModel(S),w=s.get(u,S),C=new At,A=i(fe(w,[c,h],[0,1],!0)),M=x.getModel("title");if(M.get("show")){var L=M.get("offsetCenter"),E=o.cx+dt(L[0],o.r),R=o.cy+dt(L[1],o.r),I=p[S];I.attr({z2:_?0:2,style:we(M,{x:E,y:R,text:s.getName(S),align:"center",verticalAlign:"middle"},{inheritColor:A})}),C.add(I)}var N=x.getModel("detail");if(N.get("show")){var B=N.get("offsetCenter"),P=o.cx+dt(B[0],o.r),F=o.cy+dt(B[1],o.r),H=dt(N.get("width"),o.r),k=dt(N.get("height"),o.r),j=e.get(["progress","show"])?s.getItemVisual(S,"style").fill:A,I=g[S],Y=N.get("formatter");I.attr({z2:_?0:2,style:we(N,{x:P,y:F,text:ty(w,Y),width:isNaN(H)?null:H,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:j})}),OV(I,{normal:N},w,function(q){return ty(q,Y)}),m&&NV(I,S,s,e,{getFormattedLabel:function(q,G,X,tt,rt,vt){return ty(vt?vt.interpolatedValue:w,Y)}}),C.add(I)}d.add(C)}),this.group.add(d),this._titleEls=p,this._detailEls=g},t.type="gauge",t})(_e),Llt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Rf(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,Q.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Q.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Q.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Q.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Q.color.neutral00,borderWidth:0,borderColor:Q.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Q.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Q.color.transparent,borderWidth:0,borderColor:Q.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Q.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(Te);function Elt(r){r.registerChartView(Dlt),r.registerSeriesModel(Llt)}var Rlt=["itemStyle","opacity"],Ilt=(function(r){J(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Vr,l=new ae;return i.setTextContent(l),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,l=e.getItemModel(a),s=e.getItemLayout(a),u=l.getModel("emphasis"),c=l.get(Rlt);c=c??1,n||hn(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:s.points}),i.style.opacity=0,Re(i,{style:{opacity:c}},o,a)):oe(i,{style:{opacity:c},shape:{points:s.points}},o,a),dr(i,l),this._updateLabel(e,a),ze(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),l=e.hostModel,s=e.getItemModel(a),u=e.getItemLayout(a),c=u.label,h=e.getItemVisual(a,"style"),d=h.fill;br(o,pr(s),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var p=s.getModel("label"),g=p.get("color"),m=g==="inherit"?d:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:m,outsideFill:m});var _=c.linePoints;i.setShape({points:_}),n.textGuideLineConfig={anchor:_?new Lt(_[0][0],_[0][1]):null},oe(o,{style:{x:c.x,y:c.y}},l,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),iA(n,oA(s),{stroke:d})},t})($r),Olt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,l=this.group;i.diff(o).add(function(s){var u=new Ilt(i,s);i.setItemGraphicEl(s,u),l.add(u)}).update(function(s,u){var c=o.getItemGraphicEl(u);c.updateData(i,s),l.add(c),i.setItemGraphicEl(s,c)}).remove(function(s){var u=o.getItemGraphicEl(s);Ki(u,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(_e),Nlt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new If(yt(this.getData,this),yt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Rf(this,{coordDimensions:["value"],encodeDefaulter:Gt(B2,this)})},t.prototype._defaultLabelLine=function(e){Zs(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Q.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t})(Te);function zlt(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(s){return s}),n=[],i=t==="ascending",o=0,l=r.count();oKlt)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!gx(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function gx(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var tst=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&Ft(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){O(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=he(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);O(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(qt),est=(function(r){J(t,r);function t(e,a,n,i,o){var l=r.call(this,e,a,n)||this;return l.type=i||"value",l.axisIndex=o,l}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(Pn);function bl(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Tc(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var l=Math.abs(t[1]-t[0]);l=Tc(l,[0,o]),n=i=Tc(l,[n,i]),a=0}t[0]=Tc(t[0],e),t[1]=Tc(t[1],e);var s=yx(t,a);t[a]+=r;var u=n||0,c=e.slice();s.sign<0?c[0]+=u:c[1]-=u,t[a]=Tc(t[a],c);var h;return h=yx(t,a),n!=null&&(h.sign!==s.sign||h.spani&&(t[1-a]=t[a]+h.sign*i),t}function yx(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Tc(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var mx=O,EH=Math.min,RH=Math.max,BP=Math.floor,rst=Math.ceil,VP=Je,ast=Math.PI,nst=(function(){function r(t,e,a){this.type="parallel",this._axesMap=bt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;mx(n,function(o,l){var s=i[l],u=e.getComponent("parallelAxis",s),c=this._axesMap.set(o,new est(o,V0(u),[0,0],u.get("type"),s)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],l=t[i];return o>=a&&o<=a+e.axisLength&&l>=n&&l<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();mx(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),lf(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=gr(t,e).refContainer;this._rect=Pe(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,l=e[n[o]],s=[0,l],u=this.dimensions.length,c=ey(t.get("axisExpandWidth"),s),h=ey(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&l>0,p=t.get("axisExpandWindow"),g;if(p)g=ey(p[1]-p[0],s),p[1]=p[0]+g;else{g=ey(c*(h-1),s);var m=t.get("axisExpandCenter")||BP(u/2);p=[c*m-g/2],p[1]=p[0]+g}var _=(l-g)/(u-h);_<3&&(_=0);var S=[BP(VP(p[0]/c,1))+1,rst(VP(p[1]/c,1))-1],x=_/c*p[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:l,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:_,axisExpandWindow:p,axisCount:u,winInnerIndices:S,axisExpandWindow0Pos:x}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var l=[0,n.axisLength],s=o.inverse?1:0;o.setExtent(l[s],l[1-s])}),mx(a,function(o,l){var s=(n.axisExpandable?ost:ist)(l,n),u={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},c={horizontal:ast/2,vertical:0},h=[u[i].x+t.x,u[i].y+t.y],d=c[i],p=Dr();Ml(p,p,d),pi(p,p,h),this._axesLayout[o]={position:h,rotation:d,transform:p,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,l=[],s=[];O(o,function(_){l.push(t.mapDimension(_)),s.push(i.get(_).model)});for(var u=this.hasAxisBrushed(),c=a;ci*(1-h[0])?(u="jump",s=l-i*(1-h[2])):(s=l-i*h[1])>=0&&(s=l-i*(1-h[1]))<=0&&(s=0),s*=e.axisExpandWidth/c,s?bl(s,n,o,"all"):u="none";else{var p=n[1]-n[0],g=o[1]*l/p;n=[RH(0,g-p/2)],n[1]=EH(o[1],n[0]+p),n[0]=n[1]-p}return{axisExpandWindow:n,behavior:u}},r})();function ey(r,t){return EH(RH(r,t[0]),t[1])}function ist(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function ost(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,l,s=i,u=!1,c;return r=0;n--)un(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;ifst}function kH(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function BH(r,t,e,a){var n=new At;return n.add(new Xt({name:"main",style:kA(e),silent:!0,draggable:!0,cursor:"move",drift:Gt(UP,r,t,n,["n","s","w","e"]),ondragend:Gt(au,t,{isEnd:!0})})),O(a,function(i){n.add(new Xt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Gt(UP,r,t,n,i),ondragend:Gt(au,t,{isEnd:!0})}))}),n}function VH(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=hf(n,hst),o=e[0][0],l=e[1][0],s=o-n/2,u=l-n/2,c=e[0][1],h=e[1][1],d=c-i+n/2,p=h-i+n/2,g=c-o,m=h-l,_=g+n,S=m+n;Yi(r,t,"main",o,l,g,m),a.transformable&&(Yi(r,t,"w",s,u,i,S),Yi(r,t,"e",d,u,i,S),Yi(r,t,"n",s,u,_,i),Yi(r,t,"s",s,p,_,i),Yi(r,t,"nw",s,u,i,i),Yi(r,t,"ne",d,u,i,i),Yi(r,t,"sw",s,p,i,i),Yi(r,t,"se",d,p,i,i))}function JT(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(kA(e)),n.attr({silent:!a,cursor:a?"move":"default"}),O([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),l=i.length===1?tC(r,i[0]):mst(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?dst[l]+"-resize":null})})}function Yi(r,t,e,a,n,i,o){var l=t.childOfName(e);l&&l.setShape(Sst(BA(r,t,[[a,n],[a+i,n+o]])))}function kA(r){return Et({strokeNoScale:!0},r.brushStyle)}function GH(r,t,e,a){var n=[ld(r,e),ld(t,a)],i=[hf(r,e),hf(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function yst(r){return js(r.group)}function tC(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=E0(e[t],yst(r));return a[n]}function mst(r,t){var e=[tC(r,t[0]),tC(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function UP(r,t,e,a,n,i){var o=e.__brushOption,l=r.toRectRange(o.range),s=HH(t,n,i);O(a,function(u){var c=vst[u];l[c[0]][c[1]]+=s[c[0]]}),o.range=r.fromRectRange(GH(l[0][0],l[1][0],l[0][1],l[1][1])),NA(t,e),au(t,{isEnd:!1})}function _st(r,t,e,a){var n=t.__brushOption.range,i=HH(r,e,a);O(n,function(o){o[0]+=i[0],o[1]+=i[1]}),NA(r,t),au(r,{isEnd:!1})}function HH(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function BA(r,t,e){var a=PH(r,t);return a&&a!==ru?a.clipPath(e,r._transform):Mt(e)}function Sst(r){var t=ld(r[0][0],r[1][0]),e=ld(r[0][1],r[1][1]),a=hf(r[0][0],r[1][0]),n=hf(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function bst(r,t,e){if(!(!r._brushType||wst(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=PA(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var $0={lineX:jP(0),lineY:jP(1),rect:{createCover:function(r,t){function e(a){return a}return BH({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=kH(r);return GH(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){VH(r,t,e,a)},updateCommon:JT,contain:rC},polygon:{createCover:function(r,t){var e=new At;return e.add(new Vr({name:"main",style:kA(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new $r({name:"main",draggable:!0,drift:Gt(_st,r,t),ondragend:Gt(au,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:BA(r,t,e)})},updateCommon:JT,contain:rC}};function jP(r){return{createCover:function(t,e){return BH({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=kH(t),a=ld(e[0][r],e[1][r]),n=hf(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=PH(t,e);if(o!==ru&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var l=t._zr;i=[0,[l.getWidth(),l.getHeight()][1-r]]}var s=[a,i];r&&s.reverse(),VH(t,e,s,n)},updateCommon:JT,contain:rC}}function FH(r){return r=VA(r),function(t){return DV(t,r)}}function YH(r,t){return r=VA(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function jH(r,t,e){var a=VA(r);return function(n,i){return a.contain(i[0],i[1])&&!q8(n,t,e)}}function VA(r){return It.create(r)}var Tst=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new OA(a.getZr())).on("brush",yt(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!Cst(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new At,this.group.add(this._axisGroup),!!e.get("show")){var l=Mst(e,a),s=l.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,h=e.axis.dim,d=s.getAxisLayout(h),p=it({strokeContainThreshold:c},d),g=new ra(e,n,p);g.build(),this._axisGroup.add(g.group),this._refreshBrushController(p,u,e,l,c,n),xd(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,l){var s=n.axis.getExtent(),u=s[1]-s[0],c=Math.min(30,Math.abs(u)*.1),h=It.create({x:s[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:FH(h),isTargetByCursor:jH(h,l,i),getLinearBrushOtherExtent:YH(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Ast(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=ut(a,function(l){return[i.coordToData(l.range[0],!0),i.coordToData(l.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(Oe);function Cst(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Ast(r){var t=r.axis;return ut(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Mst(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var Dst={type:"axisAreaSelect",event:"axisAreaSelected"};function Lst(r){r.registerAction(Dst,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var Est={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function WH(r){r.registerComponentView(Qlt),r.registerComponentModel(tst),r.registerCoordinateSystem("parallel",sst),r.registerPreprocessor($lt),r.registerComponentModel(KT),r.registerComponentView(Tst),cf(r,"parallel",KT,Est),Lst(r)}function Rst(r){Yt(WH),r.registerChartView(Glt),r.registerSeriesModel(Flt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Xlt)}var Ist=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),Ost=(function(r){J(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ist},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){no(this)},t.prototype.downplay=function(){io(this)},t})(Zt),Nst=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new At,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new du(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),l=this._mainGroup,s=e.layoutInfo,u=s.width,c=s.height,h=e.getData(),d=e.getData("edge"),p=e.get("orient");this._model=e,l.removeAll(),l.x=s.x,l.y=s.y,this._updateViewCoordSys(e,n),K8(e,n,l,this._controller,this._controllerHost,null),o.eachEdge(function(g){var m=new Ost,_=zt(m);_.dataIndex=g.dataIndex,_.seriesIndex=e.seriesIndex,_.dataType="edge";var S=g.getModel(),x=S.getModel("lineStyle"),w=x.get("curveness"),C=g.node1.getLayout(),A=g.node1.getModel(),M=A.get("localX"),L=A.get("localY"),E=g.node2.getLayout(),R=g.node2.getModel(),I=R.get("localX"),N=R.get("localY"),B=g.getLayout(),P,F,H,k,j,Y,$,q;m.shape.extent=Math.max(1,B.dy),m.shape.orient=p,p==="vertical"?(P=(M!=null?M*u:C.x)+B.sy,F=(L!=null?L*c:C.y)+C.dy,H=(I!=null?I*u:E.x)+B.ty,k=N!=null?N*c:E.y,j=P,Y=F*(1-w)+k*w,$=H,q=F*w+k*(1-w)):(P=(M!=null?M*u:C.x)+C.dx,F=(L!=null?L*c:C.y)+B.sy,H=I!=null?I*u:E.x,k=(N!=null?N*c:E.y)+B.ty,j=P*(1-w)+H*w,Y=F,$=P*w+H*(1-w),q=k),m.setShape({x1:P,y1:F,x2:H,y2:k,cpx1:j,cpy1:Y,cpx2:$,cpy2:q}),m.useStyle(x.getItemStyle()),WP(m.style,p,g);var G=""+S.get("value"),X=pr(S,"edgeLabel");br(m,X,{labelFetcher:{getFormattedLabel:function(vt,Tt,Nt,xt,gt,Pt){return e.getFormattedLabel(vt,Tt,"edge",xt,za(gt,X.normal&&X.normal.get("formatter"),G),Pt)}},labelDataIndex:g.dataIndex,defaultText:G}),m.setTextConfig({position:"inside"});var tt=S.getModel("emphasis");dr(m,S,"lineStyle",function(vt){var Tt=vt.getItemStyle();return WP(Tt,p,g),Tt}),l.add(m),d.setItemGraphicEl(g.dataIndex,m);var rt=tt.get("focus");ze(m,rt==="adjacency"?g.getAdjacentDataIndices():rt==="trajectory"?g.getTrajectoryDataIndices():rt,tt.get("blurScope"),tt.get("disabled"))}),o.eachNode(function(g){var m=g.getLayout(),_=g.getModel(),S=_.get("localX"),x=_.get("localY"),w=_.getModel("emphasis"),C=_.get(["itemStyle","borderRadius"])||0,A=new Xt({shape:{x:S!=null?S*u:m.x,y:x!=null?x*c:m.y,width:m.dx,height:m.dy,r:C},style:_.getModel("itemStyle").getItemStyle(),z2:10});br(A,pr(_),{labelFetcher:{getFormattedLabel:function(L,E){return e.getFormattedLabel(L,E,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),A.disableLabelAnimation=!0,A.setStyle("fill",g.getVisual("color")),A.setStyle("decal",g.getVisual("style").decal),dr(A,_),l.add(A),h.setItemGraphicEl(g.dataIndex,A),zt(A).dataType="node";var M=w.get("focus");ze(A,M==="adjacency"?g.getAdjacentDataIndices():M==="trajectory"?g.getTrajectoryDataIndices():M,w.get("blurScope"),w.get("disabled"))}),h.eachItemGraphicEl(function(g,m){var _=h.getItemModel(m);_.get("draggable")&&(g.drift=function(S,x){i._focusAdjacencyDisabled=!0,this.shape.x+=S,this.shape.y+=x,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:h.getRawIndex(m),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){i._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&e.isAnimationEnabled()&&l.setClipPath(zst(l.getBoundingRect(),e,function(){l.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,l=e.coordinateSystem=new pu(null,{api:a,ecModel:e.ecModel});l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(0,0,i,o),l.setCenter(e.get("center")),l.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY})},t.type="sankey",t})(_e);function WP(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");pt(a)&&pt(n)&&(r.fill=new xf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function zst(r,t,e){var a=new Xt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Re(a,{shape:{width:r.width+20}},t,e),a}var Pst=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var l=this.levelModels,s=0;s=0&&(l[o[s].depth]=new Qt(o[s],this,a));var u=IA(i,n,this,!0,c);return u.data;function c(h,d){h.wrapMethod("getItemModel",function(p,g){var m=p.parentModel,_=m.getData().getItemLayout(g);if(_){var S=_.depth,x=m.levelModels[S];x&&(p.parentModel=x)}return p}),d.wrapMethod("getItemModel",function(p,g){var m=p.parentModel,_=m.getGraph().getEdgeByIndex(g),S=_.node1.getLayout();if(S){var x=S.depth,w=m.levelModels[x];w&&(p.parentModel=w)}return p})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(p){return isNaN(p)||p==null}if(n==="edge"){var o=this.getDataParams(e,n),l=o.data,s=o.value,u=l.source+" -- "+l.target;return ar("nameValue",{name:u,value:s,noValue:i(s)})}else{var c=this.getGraph().getNodeByIndex(e),h=c.getLayout().value,d=this.getDataParams(e,n).data.name;return ar("nameValue",{name:d!=null?d+"":null,value:h,noValue:i(h)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:"linear",animationDuration:1e3},t})(Te);function kst(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=gr(e,t).refContainer,o=Pe(e.getBoxLayoutParams(),i);e.layoutInfo=o;var l=o.width,s=o.height,u=e.getGraph(),c=u.nodes,h=u.edges;Vst(c);var d=he(c,function(_){return _.getLayout().value===0}),p=d.length!==0?0:e.get("layoutIterations"),g=e.get("orient"),m=e.get("nodeAlign");Bst(c,h,a,n,l,s,p,g,m)})}function Bst(r,t,e,a,n,i,o,l,s){Gst(r,t,e,n,i,l,s),Yst(r,t,i,n,a,o,l),Jst(r,l)}function Vst(r){O(r,function(t){var e=gl(t.outEdges,zm),a=gl(t.inEdges,zm),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function Gst(r,t,e,a,n,i,o){for(var l=[],s=[],u=[],c=[],h=0,d=0;d=0;S&&_.depth>p&&(p=_.depth),m.setLayout({depth:S?_.depth:h},!0),i==="vertical"?m.setLayout({dy:e},!0):m.setLayout({dx:e},!0);for(var x=0;xh-1?p:h-1;o&&o!=="left"&&Hst(r,o,i,L);var E=i==="vertical"?(n-e)/L:(a-e)/L;Fst(r,E,i)}function XH(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function Hst(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var l=0;l0;i--)s*=.99,Xst(l,s,o),_x(l,n,e,a,o),Qst(l,s,o),_x(l,n,e,a,o)}function jst(r,t){var e=[],a=t==="vertical"?"y":"x",n=Hw(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),O(n.keys,function(i){e.push(n.buckets.get(i))}),e}function Wst(r,t,e,a,n,i){var o=1/0;O(r,function(l){var s=l.length,u=0;O(l,function(h){u+=h.getLayout().value});var c=i==="vertical"?(a-(s-1)*n)/u:(e-(s-1)*n)/u;c0&&(l=s.getLayout()[i]+u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),c=s.getLayout()[i]+s.getLayout()[d]+t;var g=n==="vertical"?a:e;if(u=c-t-g,u>0){l=s.getLayout()[i]-u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0),c=l;for(var p=h-2;p>=0;--p)s=o[p],u=s.getLayout()[i]+s.getLayout()[d]+t-c,u>0&&(l=s.getLayout()[i]-u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),c=s.getLayout()[i]}})}function Xst(r,t,e){O(r.slice().reverse(),function(a){O(a,function(n){if(n.outEdges.length){var i=gl(n.outEdges,$st,e)/gl(n.outEdges,zm);if(isNaN(i)){var o=n.outEdges.length;i=o?gl(n.outEdges,Zst,e)/o:0}if(e==="vertical"){var l=n.getLayout().x+(i-xl(n,e))*t;n.setLayout({x:l},!0)}else{var s=n.getLayout().y+(i-xl(n,e))*t;n.setLayout({y:s},!0)}}})})}function $st(r,t){return xl(r.node2,t)*r.getValue()}function Zst(r,t){return xl(r.node2,t)}function qst(r,t){return xl(r.node1,t)*r.getValue()}function Kst(r,t){return xl(r.node1,t)}function xl(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function zm(r){return r.getValue()}function gl(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=s)}),O(a,function(l){var s=new Sr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=s.mapValueToVisual(l.getLayout().value),c=l.getModel().get(["itemStyle","color"]);c!=null?(l.setVisual("color",c),l.setVisual("style",{fill:c})):(l.setVisual("color",u),l.setVisual("style",{fill:u}))})}n.length&&O(n,function(l){var s=l.getModel().get("lineStyle");l.setVisual("style",s)})})}function eut(r){r.registerChartView(Nst),r.registerSeriesModel(Pst),r.registerLayout(kst),r.registerVisual(tut),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=Y0(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var $H=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),l=i.get("type"),s;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),s=!this._hasEncodeRule("x")):l==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),s=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[n,i],g=p[c].get("type"),m=p[1-c].get("type"),_=t.data;if(_&&s){var S=[];O(_,function(C,A){var M;lt(C)?(M=C.slice(),C.unshift(A)):lt(C.value)?(M=it({},C),M.value=M.value.slice(),C.value.unshift(A)):M=C,S.push(M)}),t.data=S}var x=this.defaultValueDimensions,w=[{name:h,type:mm(g),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:mm(m),dimsDef:x.slice()}];return Rf(this,{coordDimensions:w,dimensionsCount:x.length+1,encodeDefaulter:Gt(sG,w,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),ZH=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:Q.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}},animationDuration:800},t})(Te);or(ZH,$H,!0);var rut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,l=this._data;this._data||o.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(l).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),h=XP(c,i,u,s,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=l.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(h);return}var d=i.getItemLayout(u);h?(hn(h),qH(d,h,i,u)):h=XP(d,i,u,s),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var c=l.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t})(_e),aut=(function(){function r(){}return r})(),nut=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new aut},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();im){var C=[S,w];a.push(C)}}}return{boxData:e,outliers:a}}var fut={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Lr){var a="";le(a)}var n=cut(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function hut(r){r.registerSeriesModel(ZH),r.registerChartView(rut),r.registerLayout(out),r.registerTransform(fut)}var vut=["itemStyle","borderColor"],dut=["itemStyle","borderColor0"],put=["itemStyle","borderColorDoji"],gut=["itemStyle","color"],yut=["itemStyle","color0"];function GA(r,t){return t.get(r>0?gut:yut)}function HA(r,t){return t.get(r===0?put:r>0?vut:dut)}var mut={seriesType:"candlestick",plan:Af(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),l=n.getItemLayout(i).sign,s=o.getItemStyle();s.fill=GA(l,o),s.stroke=HA(l,o)||s.fill;var u=n.ensureUniqueItemVisual(i,"style");it(u,s)}}}}}},_ut=["color","borderColor"],Sut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Dl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),l=e.get("clip",!0),s=e.coordinateSystem,u=s.getArea&&s.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var h=a.getItemLayout(c);if(l&&$P(u,h))return;var d=Sx(h,c,!0);Re(d,{shape:{points:h.ends}},e,c),bx(d,a,c,o),i.add(d),a.setItemGraphicEl(c,d)}}).update(function(c,h){var d=n.getItemGraphicEl(h);if(!a.hasValue(c)){i.remove(d);return}var p=a.getItemLayout(c);if(l&&$P(u,p)){i.remove(d);return}d?(oe(d,{shape:{points:p.ends}},e,c),hn(d)):d=Sx(p),bx(d,a,c,o),i.add(d),a.setItemGraphicEl(c,d)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),ZP(e,this.group);var a=e.get("clip",!0)?Id(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var l=n.getItemLayout(o),s=Sx(l);bx(s,n,o,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,a){ZP(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(_e),but=(function(){function r(){}return r})(),xut=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new but},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t})(Zt);function Sx(r,t,e){var a=r.ends;return new xut({shape:{points:e?wut(a,r):a},z2:100})}function $P(r,t){for(var e=!0,a=0;aA?N[i]:I[i],ends:F,brushRect:$(M,L,w)})}function j(G,X){var tt=[];return tt[n]=X,tt[i]=G,isNaN(X)||isNaN(G)?[NaN,NaN]:t.dataToPoint(tt)}function Y(G,X,tt){var rt=X.slice(),vt=X.slice();rt[n]=Ey(rt[n]+a/2,1,!1),vt[n]=Ey(vt[n]-a/2,1,!0),tt?G.push(rt,vt):G.push(vt,rt)}function $(G,X,tt){var rt=j(G,tt),vt=j(X,tt);return rt[n]-=a/2,vt[n]-=a/2,{x:rt[0],y:rt[1],width:a,height:vt[1]-rt[1]}}function q(G){return G[n]=Ey(G[n],1),G}}function g(m,_){for(var S=ii(m.count*4),x=0,w,C=[],A=[],M,L=_.getStore(),E=!!r.get(["itemStyle","borderColorDoji"]);(M=m.next())!=null;){var R=L.get(l,M),I=L.get(u,M),N=L.get(c,M),B=L.get(h,M),P=L.get(d,M);if(isNaN(R)||isNaN(B)||isNaN(P)){S[x++]=NaN,x+=3;continue}S[x++]=qP(L,M,I,N,c,E),C[n]=R,C[i]=B,w=t.dataToPoint(C,null,A),S[x++]=w?w[0]:NaN,S[x++]=w?w[1]:NaN,C[i]=P,w=t.dataToPoint(C,null,A),S[x++]=w?w[1]:NaN}_.setLayout("largePoints",S)}}};function qP(r,t,e,a,n,i){var o;return e>a?o=-1:e0?r.get(n,t-1)<=a?1:-1:1,o}function Mut(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=dt(wt(r.get("barMaxWidth"),n),n),o=dt(wt(r.get("barMinWidth"),1),n),l=r.get("barWidth");return l!=null?dt(l,n):Math.max(Math.min(n/2,i),o)}function Dut(r){r.registerChartView(Sut),r.registerSeriesModel(KH),r.registerPreprocessor(Cut),r.registerVisual(mut),r.registerLayout(Aut)}function KP(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Lut=(function(r){J(t,r);function t(e,a){var n=r.call(this)||this,i=new Ed(e,a),o=new At;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),l=0;l0&&(l=this._getLineLength(i)/c*1e3),l!==this._period||s!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Ct(h)?d=h(n):d=h,i.__t>0&&(d=-l*i.__t),this._animateSymbol(i,l,d,s,u)}this._period=l,this._loop=s,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var l=this,s=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){l._updateSymbolPosition(e)});i||s.done(function(){l.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return tl(e.__p1,e.__cp1)+tl(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,l=[e.x,e.y],s=l.slice(),u=Mr,c=Aw;l[0]=u(a[0],i[0],n[0],o),l[1]=u(a[1],i[1],n[1],o);var h=e.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),d=e.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(d,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=a);s--);s=Math.min(s,o-2)}else{for(s=l;sa);s++);s=Math.min(s-1,o-2)}var c=(a-i[s])/(i[s+1]-i[s]),h=n[s],d=n[s+1];e.x=h[0]*(1-c)+c*d[0],e.y=h[1]*(1-c)+c*d[1];var p=e.__t<1?d[0]-h[0]:h[0]-d[0],g=e.__t<1?d[1]-h[1]:h[1]-d[1];e.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=a,e.ignore=!1}},t})(QH),Nut=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),zut=(function(r){J(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Nut},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var s=1;s0){var p=(u+h)/2-(c-d)*i,g=(c+d)/2-(h-u)*i;e.quadraticCurveTo(p,g,h,d)}else e.lineTo(h,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,l=this.style.lineWidth;if(n.polyline)for(var s=0,u=0;u0)for(var h=i[u++],d=i[u++],p=1;p0){var _=(h+g)/2-(d-m)*o,S=(d+m)/2-(g-h)*o;if(tV(h,d,_,S,g,m,l,e,a))return s}else if(Qo(h,d,g,m,l,e,a))return s;s++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,l=-1/0,s=-1/0,u=0;u0&&(o.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),t7={seriesType:"lines",plan:Af(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var l=void 0,s=n.end-n.start;if(e){for(var u=0,c=n.start;c0&&(c||u.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),o.updateData(i);var h=e.get("clip",!0)&&Id(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var l=t7.reset(e,a,n);l.progress&&l.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),l=a.pipelineContext,s=l.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||s!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=s?new Put:new RA(o?i?Out:JH:i?QH:EA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=s),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t})(_e),But=typeof Uint32Array>"u"?Array:Uint32Array,Vut=typeof Float64Array>"u"?Array:Float64Array;function QP(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=ut(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),r2([n,e[0],e[1]])}))}var Gut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],QP(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(QP(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=zv(this._flatCoords,a.flatCoords),this._flatCoordsOffset=zv(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(Te);function ry(r){return r instanceof Array||(r=[r,r]),r}var Hut={seriesType:"lines",reset:function(r){var t=ry(r.get("symbol")),e=ry(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var l=i.getItemModel(o),s=ry(l.getShallow("symbol",!0)),u=ry(l.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(o,"fromSymbol",s[0]),s[1]&&i.setItemVisual(o,"toSymbol",s[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function Uut(r){r.registerChartView(kut),r.registerSeriesModel(Gut),r.registerLayout(t7),r.registerVisual(Hut)}var Fut=256,Yut=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=En.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var l=this._getBrush(),s=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),p=t.length;h.width=e,h.height=a;for(var g=0;g0){var B=o(w)?s:u;w>0&&(w=w*I+E),A[M++]=B[N],A[M++]=B[N+1],A[M++]=B[N+2],A[M++]=B[N+3]*w*256}else M+=4}return d.putImageData(C,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=En.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=Q.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,l=0;l<256;l++)t[e](l/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function jut(r,t,e){var a=r[1]-r[0];t=ut(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var l;for(l=i;l=0;l--){var s=t[l].interval;if(s[0]<=o&&o<=s[1]){i=l;break}}return l>=0&&l=t[0]&&a<=t[1]}}function JP(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Xut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(l){l.eachTargetSeries(function(s){s===e&&(i=l)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):JP(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(JP(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Dl(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var l=e.coordinateSystem,s=Sl(l,"cartesian2d"),u=Sl(l,"matrix"),c,h,d,p;if(s){var g=l.getAxis("x"),m=l.getAxis("y");c=g.getBandWidth()+.5,h=m.getBandWidth()+.5,d=g.scale.getExtent(),p=m.scale.getExtent()}for(var _=this.group,S=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),w=e.getModel(["blur","itemStyle"]).getItemStyle(),C=e.getModel(["select","itemStyle"]).getItemStyle(),A=e.get(["itemStyle","borderRadius"]),M=pr(e),L=e.getModel("emphasis"),E=L.get("focus"),R=L.get("blurScope"),I=L.get("disabled"),N=s||u?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],B=n;Bd[1]||kp[1])continue;var j=l.dataToPoint([H,k]);P=new Xt({shape:{x:j[0]-c/2,y:j[1]-h/2,width:c,height:h},style:F})}else if(u){var Y=l.dataToLayout([S.get(N[0],B),S.get(N[1],B)]).rect;if(Yr(Y.x))continue;P=new Xt({z2:1,shape:Y,style:F})}else{if(isNaN(S.get(N[1],B)))continue;var $=l.dataToLayout([S.get(N[0],B)]),Y=$.contentRect||$.rect;if(Yr(Y.x)||Yr(Y.y))continue;P=new Xt({z2:1,shape:Y,style:F})}if(S.hasItemOption){var q=S.getItemModel(B),G=q.getModel("emphasis");x=G.getModel("itemStyle").getItemStyle(),w=q.getModel(["blur","itemStyle"]).getItemStyle(),C=q.getModel(["select","itemStyle"]).getItemStyle(),A=q.get(["itemStyle","borderRadius"]),E=G.get("focus"),R=G.get("blurScope"),I=G.get("disabled"),M=pr(q)}P.shape.r=A;var X=e.getRawValue(B),tt="-";X&&X[2]!=null&&(tt=X[2]+""),br(P,M,{labelFetcher:e,labelDataIndex:B,defaultOpacity:F.opacity,defaultText:tt}),P.ensureState("emphasis").style=x,P.ensureState("blur").style=w,P.ensureState("select").style=C,ze(P,E,R,I),P.incremental=o,o&&(P.states.emphasis.hoverLayer=!0),_.add(P),S.setItemGraphicEl(B,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,l=n.targetVisuals.outOfRange,s=a.getData(),u=this._hmLayer||this._hmLayer||new Yut;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=e.getViewRect().clone(),h=e.getRoamTransform();c.applyTransform(h);var d=Math.max(c.x,0),p=Math.max(c.y,0),g=Math.min(c.width+c.x,i.getWidth()),m=Math.min(c.height+c.y,i.getHeight()),_=g-d,S=m-p,x=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],w=s.mapArray(x,function(L,E,R){var I=e.dataToPoint([L,E]);return I[0]-=d,I[1]-=p,I.push(R),I}),C=n.getExtent(),A=n.type==="visualMap.continuous"?Wut(C,n.option.range):jut(C,n.getPieceList(),n.option.selected);u.update(w,_,S,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},A);var M=new Er({style:{width:_,height:S,x:d,y:p,image:u.canvas},silent:!0});this.group.add(M)},t.type="heatmap",t})(_e),$ut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return po(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Cd.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t})(Te);function Zut(r){r.registerChartView(Xut),r.registerSeriesModel($ut)}var qut=["itemStyle","borderWidth"],tk=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cx=new ho,Kut=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),l=this._data,s=e.coordinateSystem,u=s.getBaseAxis(),c=u.isHorizontal(),h=s.master.getRect(),d={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:tk[+c],categoryDim:tk[1-+c]};o.diff(l).add(function(g){if(o.hasValue(g)){var m=rk(o,g),_=ek(o,g,m,d),S=ak(o,d,_);o.setItemGraphicEl(g,S),i.add(S),ik(S,d,_)}}).update(function(g,m){var _=l.getItemGraphicEl(m);if(!o.hasValue(g)){i.remove(_);return}var S=rk(o,g),x=ek(o,g,S,d),w=o7(o,x);_&&w!==_.__pictorialShapeStr&&(i.remove(_),o.setItemGraphicEl(g,null),_=null),_?nct(_,d,x):_=ak(o,d,x,!0),o.setItemGraphicEl(g,_),_.__pictorialSymbolMeta=x,i.add(_),ik(_,d,x)}).remove(function(g){var m=l.getItemGraphicEl(g);m&&nk(l,g,m.__pictorialSymbolMeta.animationModel,m)}).execute();var p=e.get("clip",!0)?Id(e.coordinateSystem,!1,e):null;return p?i.setClipPath(p):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){nk(i,zt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t})(_e);function ek(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),l=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),u=(s||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),d={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Qut(e,i,n,a,d),Jut(r,t,n,i,o,d.boundingLength,d.pxSign,c,a,d),tct(e,d.symbolScale,u,a,d);var p=d.symbolSize,g=fu(e.get("symbolOffset"),p);return ect(e,p,n,i,o,g,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,a,d),d}function Qut(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),l=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),s=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(lt(o)){var h=[Ax(l,o[0])-s,Ax(l,o[1])-s];h[1]=0?1:-1:c>0?1:-1}function Ax(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Jut(r,t,e,a,n,i,o,l,s,u){var c=s.valueDim,h=s.categoryDim,d=Math.abs(e[h.wh]),p=r.getItemVisual(t,"symbolSize"),g;lt(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[h.index]=dt(g[h.index],d),g[c.index]=dt(g[c.index],a?d:Math.abs(i)),u.symbolSize=g;var m=u.symbolScale=[g[0]/l,g[1]/l];m[c.index]*=(s.isHorizontal?-1:1)*o}function tct(r,t,e,a,n){var i=r.get(qut)||0;i&&(Cx.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Cx.updateTransform(),i/=Cx.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function ect(r,t,e,a,n,i,o,l,s,u,c,h){var d=c.categoryDim,p=c.valueDim,g=h.pxSign,m=Math.max(t[p.index]+l,0),_=m;if(a){var S=Math.abs(s),x=Br(r.get("symbolMargin"),"15%")+"",w=!1;x.lastIndexOf("!")===x.length-1&&(w=!0,x=x.slice(0,x.length-1));var C=dt(x,t[p.index]),A=Math.max(m+C*2,0),M=w?0:C*2,L=B4(a),E=L?a:ok((S+M)/A),R=S-E*m;C=R/2/(w?E:Math.max(E-1,1)),A=m+C*2,M=w?0:C*2,!L&&a!=="fixed"&&(E=u?ok((Math.abs(u)+M)/A):0),_=E*A-M,h.repeatTimes=E,h.symbolMargin=C}var I=g*(_/2),N=h.pathPosition=[];N[d.index]=e[d.wh]/2,N[p.index]=o==="start"?I:o==="end"?s-I:s/2,i&&(N[0]+=i[0],N[1]+=i[1]);var B=h.bundlePosition=[];B[d.index]=e[d.xy],B[p.index]=e[p.xy];var P=h.barRectShape=it({},e);P[p.wh]=g*Math.max(Math.abs(e[p.wh]),Math.abs(N[p.index]+I)),P[d.wh]=e[d.wh];var F=h.clipShape={};F[d.xy]=-e[d.xy],F[d.wh]=c.ecSize[d.wh],F[p.xy]=0,F[p.wh]=e[p.wh]}function e7(r){var t=r.symbolPatternSize,e=nr(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function r7(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,l=e.pathPosition,s=t.valueDim,u=e.repeatTimes||0,c=0,h=i[t.valueDim.index]+o+e.symbolMargin*2;for(UA(r,function(m){m.__pictorialAnimationIndex=c,m.__pictorialRepeatTimes=u,c0:S<0)&&(x=u-1-m),_[s.index]=h*(x-u/2+.5)+l[s.index],{x:_[0],y:_[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function a7(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Zc(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=e7(e),n.add(i),Zc(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function n7(r,t,e){var a=it({},t.barRectShape),n=r.__pictorialBarRect;n?Zc(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Xt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function i7(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=it({},e.clipShape),o=t.valueDim,l=e.animationModel,s=e.dataIndex;if(n)oe(n,{shape:i},l,s);else{i[o.wh]=0,n=new Xt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],su[a?"updateProps":"initProps"](n,{shape:u},l,s)}}}function rk(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=rct,e.isAnimationEnabled=act,e}function rct(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function act(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ak(r,t,e,a){var n=new At,i=new At;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?r7(n,t,e):a7(n,t,e),n7(n,e,a),i7(n,t,e,a),n.__pictorialShapeStr=o7(r,e),n.__pictorialSymbolMeta=e,n}function nct(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;oe(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?r7(r,t,e,!0):a7(r,t,e,!0),n7(r,e,!0),i7(r,t,e,!0)}function nk(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];UA(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),O(i,function(o){ml(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function o7(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function UA(r,t,e){O(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Zc(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&su[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function ik(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),l=n.getModel(["blur","itemStyle"]).getItemStyle(),s=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),h=i.get("blurScope"),d=i.get("scale");UA(r,function(m){if(m instanceof Er){var _=m.style;m.useStyle(it({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},e.style))}else m.useStyle(e.style);var S=m.ensureState("emphasis");S.style=o,d&&(S.scaleX=m.scaleX*1.1,S.scaleY=m.scaleY*1.1),m.ensureState("blur").style=l,m.ensureState("select").style=s,u&&(m.cursor=u),m.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],g=r.__pictorialBarRect;g.ignoreClip=!0,br(g,pr(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:uf(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),ze(r,c,h,i.get("disabled"))}function ok(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var ict=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ll(ed.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Q.color.primary}}}),t})(ed);function oct(r){r.registerChartView(Kut),r.registerSeriesModel(ict),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Gt(A6,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M6("pictorialBar"))}var lct=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,l=this.group,s=e.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;l.x=0,l.y=c.y+h[0];function d(_){return _.name}var p=new oo(this._layersSeries||[],s,d,d),g=[];p.add(yt(m,this,"add")).update(yt(m,this,"update")).remove(yt(m,this,"remove")).execute();function m(_,S,x){var w=o._layers;if(_==="remove"){l.remove(w[S]);return}for(var C=[],A=[],M,L=s[S].indices,E=0;Ei&&(i=l),a.push(l)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function hct(r){r.registerChartView(lct),r.registerSeriesModel(uct),r.registerLayout(cct),r.registerProcessor(Ef("themeRiver"))}var vct=2,dct=4,sk=(function(r){J(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=vct,o.textConfig={inside:!0},zt(o).seriesIndex=a.seriesIndex;var l=new ae({z2:dct,silent:e.getModel().get(["label","silent"])});return o.setTextContent(l),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var l=this;zt(l).dataIndex=a.dataIndex;var s=a.getModel(),u=s.getModel("emphasis"),c=a.getLayout(),h=it({},c);h.label=null;var d=a.getVisual("style");d.lineJoin="bevel";var p=a.getVisual("decal");p&&(d.decal=nf(p,o));var g=li(s.getModel("itemStyle"),h,!0);it(h,g),O(na,function(x){var w=l.ensureState(x),C=s.getModel([x,"itemStyle"]);w.style=C.getItemStyle();var A=li(C,h);A&&(w.shape=A)}),e?(l.setShape(h),l.shape.r=c.r0,Re(l,{shape:{r:c.r}},n,a.dataIndex)):(oe(l,{shape:h},n),hn(l)),l.useStyle(d),this._updateLabel(n);var m=s.getShallow("cursor");m&&l.attr("cursor",m),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var _=u.get("focus"),S=_==="relative"?zv(a.getAncestorsIndices(),a.getDescendantIndices()):_==="ancestor"?a.getAncestorsIndices():_==="descendant"?a.getDescendantIndices():_;ze(this,S,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),l=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,u=Math.cos(s),c=Math.sin(s),h=this,d=h.getTextContent(),p=this.node.dataIndex,g=i.get("minAngle")/180*Math.PI,m=i.get("show")&&!(g!=null&&Math.abs(l)F&&!Vv(k-F)&&k0?(o.virtualPiece?o.virtualPiece.updateData(!1,x,e,a,n):(o.virtualPiece=new sk(x,e,a,n),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(C){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var l=o.getModel().get("nodeClick");if(l==="rootToNode")e._rootToNode(o);else if(l==="link"){var s=o.getModel(),u=s.get("link");if(u){var c=s.get("target",!0)||"_blank";cm(u,c)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:aC,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,l=e[1]-i.cy,s=Math.sqrt(o*o+l*l);return s<=i.r&&s>=i.r0}},t.type="sunburst",t})(_e),mct=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};l7(n);var i=this._levelModels=ut(e.levels||[],function(s){return new Qt(s,this,a)},this),o=TA.createTree(n,this,l);function l(s){s.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),d=i[h.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=W0(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){fH(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})(Te);function l7(r){var t=0;O(r.children,function(a){l7(a);var n=a.value;lt(n)&&(n=n[0]),t+=n});var e=r.value;lt(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),lt(r.value)?r.value[0]=e:r.value=e}var ck=Math.PI/180;function _ct(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");lt(i)||(i=[0,i]),lt(n)||(n=[n,n]);var o=e.getWidth(),l=e.getHeight(),s=Math.min(o,l),u=dt(n[0],o),c=dt(n[1],l),h=dt(i[0],s/2),d=dt(i[1],s/2),p=-a.get("startAngle")*ck,g=a.get("minAngle")*ck,m=a.getData().tree.root,_=a.getViewRoot(),S=_.depth,x=a.get("sort");x!=null&&s7(_,x);var w=0;O(_.children,function(k){!isNaN(k.getValue())&&w++});var C=_.getValue(),A=Math.PI/(C||w)*2,M=_.depth>0,L=_.height-(M?-1:1),E=(d-h)/(L||1),R=a.get("clockwise"),I=a.get("stillShowZeroSum"),N=R?1:-1,B=function(k,j){if(k){var Y=j;if(k!==m){var $=k.getValue(),q=C===0&&I?A:$*A;q1;)o=o.parentNode;var l=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&pt(l)&&(l=Lw(l,(a.depth-1)/(i-1)*.5)),l}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var l=o.getModel(),s=l.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");it(u,s)})})}function xct(r){r.registerChartView(yct),r.registerSeriesModel(mct),r.registerLayout(Gt(_ct,"sunburst")),r.registerProcessor(Gt(Ef,"sunburst")),r.registerVisual(bct),gct(r)}var fk={color:"fill",borderColor:"stroke"},wct={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Qi=$t(),Tct=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return po(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Qi(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Te);function Cct(r,t){return t=t||[0,0],ut(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function Act(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:yt(Cct,r)}}}function Mct(r,t){return t=t||[0,0],ut([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function Dct(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:yt(Mct,r)}}}function Lct(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function Ect(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:yt(Lct,r)}}}function Rct(r,t){return t=t||[0,0],ut(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],l=r[a]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-l)-i.dataToCoord(o+l));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function Ict(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),l=r.coordToPoint([i,o]);return l.push(i,o*Math.PI/180),l},size:yt(Rct,r)}}}function Oct(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function Nct(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function u7(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||St(r,"text")))}function c7(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},St(a,"text")&&(o.text=a.text),St(a,"rich")&&(o.rich=a.rich),St(a,"textFill")&&(o.fill=a.textFill),St(a,"textStroke")&&(o.stroke=a.textStroke),St(a,"fontFamily")&&(o.fontFamily=a.fontFamily),St(a,"fontSize")&&(o.fontSize=a.fontSize),St(a,"fontStyle")&&(o.fontStyle=a.fontStyle),St(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var l=St(a,"textPosition");e?n.position=l?a.textPosition:"inside":l&&(n.position=a.textPosition),St(a,"textPosition")&&(n.position=a.textPosition),St(a,"textOffset")&&(n.offset=a.textOffset),St(a,"textRotation")&&(n.rotation=a.textRotation),St(a,"textDistance")&&(n.distance=a.textDistance)}return hk(o,r),O(o.rich,function(s){hk(s,s)}),{textConfig:n,textContent:i}}function hk(r,t){t&&(t.font=t.textFont||t.font,St(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),St(t,"textAlign")&&(r.align=t.textAlign),St(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),St(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),St(t,"textWidth")&&(r.width=t.textWidth),St(t,"textHeight")&&(r.height=t.textHeight),St(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),St(t,"textPadding")&&(r.padding=t.textPadding),St(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),St(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),St(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),St(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),St(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),St(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),St(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function vk(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||Q.color.neutral99;dk(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||Q.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||Q.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,O(t.rich,function(l){dk(l,l)}),a}function dk(r,t){t&&(St(t,"fill")&&(r.textFill=t.fill),St(t,"stroke")&&(r.textStroke=t.fill),St(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),St(t,"font")&&(r.font=t.font),St(t,"fontStyle")&&(r.fontStyle=t.fontStyle),St(t,"fontWeight")&&(r.fontWeight=t.fontWeight),St(t,"fontSize")&&(r.fontSize=t.fontSize),St(t,"fontFamily")&&(r.fontFamily=t.fontFamily),St(t,"align")&&(r.textAlign=t.align),St(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),St(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),St(t,"width")&&(r.textWidth=t.width),St(t,"height")&&(r.textHeight=t.height),St(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),St(t,"padding")&&(r.textPadding=t.padding),St(t,"borderColor")&&(r.textBorderColor=t.borderColor),St(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),St(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),St(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),St(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),St(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),St(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),St(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),St(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),St(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),St(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var f7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pk=Jt(f7);di(gi,function(r,t){return r[t]=1,r},{});gi.join(", ");var Pm=["","style","shape","extra"],vf=$t();function FA(r,t,e,a,n){var i=r+"Animation",o=wf(r,a,n)||{},l=vf(t).userDuring;return o.duration>0&&(o.during=l?yt(Vct,{el:t,userDuring:l}):null,o.setToFinal=!0,o.scope=r),it(o,e[i]),o}function By(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,l=e.isAnimationEnabled(),s=vf(r),u=t.style;s.userDuring=t.during;var c={},h={};if(Hct(r,t,h),r.type==="compound")for(var d=r.shape.paths,p=t.shape.paths,g=0;g0&&r.animateFrom(_,S)}else Pct(r,t,n||0,e,c);h7(r,t),u?r.dirty():r.markRedraw()}function h7(r,t){for(var e=vf(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function kct(r,t){St(t,"silent")&&(r.silent=t.silent),St(t,"ignore")&&(r.ignore=t.ignore),r instanceof fn&&St(t,"invisible")&&(r.invisible=t.invisible),r instanceof Zt&&St(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var $n={},Bct={setTransform:function(r,t){return $n.el[r]=t,this},getTransform:function(r){return $n.el[r]},setShape:function(r,t){var e=$n.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=$n.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=$n.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=$n.el.style;if(t)return t[r]},setExtra:function(r,t){var e=$n.el.extra||($n.el.extra={});return e[r]=t,this},getExtra:function(r){var t=$n.el.extra;if(t)return t[r]}};function Vct(){var r=this,t=r.el;if(t){var e=vf(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}$n.el=t,a(Bct)}}function gk(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var l=e.transition,s=n.transition;if(s)if(!o&&(o=a[r]={}),$s(s))it(o,i);else for(var u=be(s),c=0;c=0){!o&&(o=a[r]={});for(var p=Jt(i),c=0;c=0)){var d=r.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=a.style={});for(var g=Jt(e),u=0;u=0?t.getStore().get(Y,k):void 0}var $=t.get(j.name,k),q=j&&j.ordinalMeta;return q?q.categories[$]:$}function L(H,k){k==null&&(k=c);var j=t.getItemVisual(k,"style"),Y=j&&j.fill,$=j&&j.opacity,q=w(k,ll).getItemStyle();Y!=null&&(q.fill=Y),$!=null&&(q.opacity=$);var G={inheritColor:pt(Y)?Y:Q.color.neutral99},X=C(k,ll),tt=we(X,null,G,!1,!0);tt.text=X.getShallow("show")?wt(r.getFormattedLabel(k,ll),uf(t,k)):null;var rt=sm(X,G,!1);return I(H,q),q=vk(q,tt,rt),H&&R(q,H),q.legacy=!0,q}function E(H,k){k==null&&(k=c);var j=w(k,Ji).getItemStyle(),Y=C(k,Ji),$=we(Y,null,null,!0,!0);$.text=Y.getShallow("show")?za(r.getFormattedLabel(k,Ji),r.getFormattedLabel(k,ll),uf(t,k)):null;var q=sm(Y,null,!0);return I(H,j),j=vk(j,$,q),H&&R(j,H),j.legacy=!0,j}function R(H,k){for(var j in k)St(k,j)&&(H[j]=k[j])}function I(H,k){H&&(H.textFill&&(k.textFill=H.textFill),H.textPosition&&(k.textPosition=H.textPosition))}function N(H,k){if(k==null&&(k=c),St(fk,H)){var j=t.getItemVisual(k,"style");return j?j[fk[H]]:null}if(St(wct,H))return t.getItemVisual(k,H)}function B(H){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return iet(Et({axis:k},H))}}function P(){return e.getCurrentSeriesIndices()}function F(H){return A2(H,e)}}function Qct(r){var t={};return O(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Rx(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var l=$A(r,t,e,a,n,i);return l&&o.setItemGraphicEl(e,l),l&&ze(l,a.focus,a.blurScope,a.emphasisDisabled),l}function $A(r,t,e,a,n,i){var o=-1,l=t;t&&g7(t,a,n)&&(o=Ht(i.childrenRef(),t),t=null);var s=!t,u=t;u?u.clearStates():(u=WA(a),l&&$ct(l,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Ka.normal.cfg=Ka.normal.conOpt=Ka.emphasis.cfg=Ka.emphasis.conOpt=Ka.blur.cfg=Ka.blur.conOpt=Ka.select.cfg=Ka.select.conOpt=null,Ka.isLegacy=!1,tft(u,e,a,n,s,Ka),Jct(u,e,a,n,s),XA(r,u,e,a,Ka,n,s),St(a,"info")&&(Qi(u).info=a.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function g7(r,t,e){var a=Qi(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&ift(i)&&y7(i)!==a.customPathData||n==="image"&&St(o,"image")&&o.image!==a.customImagePath}function Jct(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&g7(o,i,a)&&(o=null),o||(o=WA(i),r.setClipPath(o)),XA(null,o,t,i,null,a,n)}}function tft(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){mk(e,null,i),mk(e,Ji,i);var o=i.normal.conOpt,l=i.emphasis.conOpt,s=i.blur.conOpt,u=i.select.conOpt;if(o!=null||l!=null||u!=null||s!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=WA(o),r.setTextContent(c)),XA(null,c,t,o,null,a,n);for(var h=o&&o.style,d=0;d=c;p--){var g=t.childAt(p);rft(t,g,n)}}}function rft(r,t,e){t&&Z0(t,Qi(r).option,e)}function aft(r){new oo(r.oldChildren,r.newChildren,_k,_k,r).add(Sk).update(Sk).remove(nft).execute()}function _k(r,t){var e=r&&r.name;return e??Wct+t}function Sk(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;$A(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function nft(r){var t=this.context,e=t.oldChildren[r];e&&Z0(e,Qi(e).option,t.seriesModel)}function y7(r){return r&&(r.pathData||r.d)}function ift(r){return r&&(St(r,"pathData")||St(r,"d"))}function oft(r){r.registerChartView(Zct),r.registerSeriesModel(Tct)}var Es=$t(),bk=Mt,Ix=yt,qA=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var l=this._group,s=this._handle;if(!o||o==="hide"){l&&l.hide(),s&&s.hide();return}l&&l.show(),s&&s.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(!l)l=this._group=new At,this.createPointerEl(l,u,t,e),this.createLabelEl(l,u,t,e),a.getZr().add(l);else{var d=Gt(xk,e,h);this.updatePointerEl(l,u,d),this.updateLabelEl(l,u,d,e)}Tk(l,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var l=this.animationThreshold;if(i&&n.getBandWidth()>l)return!0;if(o){var s=yA(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/s>l}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Es(t).pointerEl=new su[i.type](bk(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Es(t).labelEl=new ae(bk(e.label));t.add(i),wk(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Es(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Es(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),wk(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var l;this._handle||(l=!0,n=this._handle=wd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ro(u.event)},onmousedown:Ix(this._onHandleDragMove,this,0,0),drift:Ix(this._onHandleDragMove,this),ondragend:Ix(this._onHandleDragEnd,this)}),a.add(n)),Tk(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");lt(s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,Mf(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},r.prototype._moveHandleToValue=function(t,e){xk(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ox(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Ox(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ox(n)),Es(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Xv(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function xk(r,t,e,a){m7(Es(e).lastProp,a)||(Es(e).lastProp=a,t?oe(e,a,r):(e.stopAnimation(),e.attr(a)))}function m7(r,t){if(Rt(r)&&Rt(t)){var e=!0;return O(t,function(a,n){e=e&&m7(r[n],a)}),!!e}else return r===t}function wk(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ox(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Tk(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function KA(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function _7(r,t,e,a,n){var i=e.get("value"),o=S7(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),l=e.getModel("label"),s=Td(l.get("padding")||0),u=l.getFont(),c=y0(o,u),h=n.position,d=c.width+s[1]+s[3],p=c.height+s[0]+s[2],g=n.align;g==="right"&&(h[0]-=d),g==="center"&&(h[0]-=d/2);var m=n.verticalAlign;m==="bottom"&&(h[1]-=p),m==="middle"&&(h[1]-=p/2),lft(h,d,p,a);var _=l.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:we(l,{text:o,font:u,fill:l.getTextColor(),padding:s,backgroundColor:_}),z2:10}}function lft(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function S7(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var l={value:_m(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(a,function(s){var u=e.getSeriesByIndex(s.seriesIndex),c=s.dataIndexInside,h=u&&u.getDataParams(c);h&&l.seriesData.push(h)}),pt(o)?i=o.replace("{value}",i):Ct(o)&&(i=o(l))}return i}function QA(r,t,e){var a=Dr();return Ml(a,a,e.rotation),pi(a,a,e.position),Dn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function b7(r,t,e,a,n,i){var o=ra.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),_7(t,a,n,i,{position:QA(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JA(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function x7(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function Ck(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var sft=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var l=n.axis,s=l.grid,u=i.get("type"),c=Ak(s,l).getOtherAxis(l).getGlobalExtent(),h=l.toGlobalCoord(l.dataToCoord(a,!0));if(u&&u!=="none"){var d=KA(i),p=uft[u](l,h,c);p.style=d,e.graphicKey=p.type,e.pointer=p}var g=Lm(s.getRect(),n);b7(a,e,g,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Lm(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=QA(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,l=o.grid,s=o.getGlobalExtent(!0),u=Ak(l,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[e.x,e.y];h[c]+=a[c],h[c]=Math.min(s[1],h[c]),h[c]=Math.max(s[0],h[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:p,tooltipOption:g[c]}},t})(qA);function Ak(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var uft={line:function(r,t,e){var a=JA([t,e[0]],[t,e[1]],Mk(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:x7([t-a/2,e[0]],[a,n],Mk(r))}}};function Mk(r){return r.dim==="x"?0:1}var cft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:"dashed"},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Q.color.accent40,throttle:40}},t})(qt),Zi=$t(),fft=O;function w7(r,t,e){if(!Kt.node){var a=t.getZr();Zi(a).records||(Zi(a).records={}),hft(a,t);var n=Zi(a).records[r]||(Zi(a).records[r]={});n.handler=e}}function hft(r,t){if(Zi(r).initialized)return;Zi(r).initialized=!0,e("click",Gt(Dk,"click")),e("mousemove",Gt(Dk,"mousemove")),e("globalout",dft);function e(a,n){r.on(a,function(i){var o=pft(t);fft(Zi(r).records,function(l){l&&n(l,i,o.dispatchAction)}),vft(o.pendings,t)})}}function vft(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function dft(r,t,e){r.handler("leave",null,e)}function Dk(r,t,e,a){t.handler(r,e,a)}function pft(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function oC(r,t){if(!Kt.node){var e=t.getZr(),a=(Zi(e).records||{})[r];a&&(Zi(e).records[r]=null)}}var gft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";w7("axisPointer",n,function(l,s,u){o!=="none"&&(l==="leave"||o.indexOf(l)>=0)&&u({type:"updateAxisPointer",currTrigger:l,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,a){oC("axisPointer",a)},t.prototype.dispose=function(e,a){oC("axisPointer",a)},t.type="axisPointer",t})(Oe);function T7(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=qs(i,r);if(o==null||o<0||lt(o))return{point:[]};var l=i.getItemGraphicEl(o),s=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(s&&s.dataToPoint)if(r.isStacked){var u=s.getBaseAxis(),c=s.getOtherAxis(u),h=c.dim,d=u.dim,p=h==="x"||h==="radius"?1:0,g=i.mapDimension(d),m=[];m[p]=i.get(g,o),m[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=s.dataToPoint(m)||[]}else e=s.dataToPoint(i.getValues(ut(s.dimensions,function(S){return i.mapDimension(S)}),o))||[];else if(l){var _=l.getBoundingRect().clone();_.applyTransform(l.transform),e=[_.x+_.width/2,_.y+_.height/2]}return{point:e,el:l}}var Lk=$t();function yft(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||yt(e.dispatchAction,e),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){Vy(n)&&(n=T7({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=Vy(n),u=i.axesInfo,c=l.axesInfo,h=a==="leave"||Vy(n),d={},p={},g={list:[],map:{}},m={showPointer:Gt(_ft,p),showTooltip:Gt(Sft,g)};O(l.coordSysMap,function(S,x){var w=s||S.containPoint(n);O(l.coordSysAxesInfo[x],function(C,A){var M=C.axis,L=Tft(u,C);if(!h&&w&&(!u||L)){var E=L&&L.value;E==null&&!s&&(E=M.pointToData(n)),E!=null&&Ek(C,E,m,!1,d)}})});var _={};return O(c,function(S,x){var w=S.linkGroup;w&&!p[x]&&O(w.axesInfo,function(C,A){var M=p[A];if(C!==S&&M){var L=M.value;w.mapper&&(L=S.axis.scale.parse(w.mapper(L,Rk(C),Rk(S)))),_[S.key]=L}})}),O(_,function(S,x){Ek(c[x],S,m,!0,d)}),bft(p,c,d),xft(g,n,r,o),wft(c,o,e),d}}function Ek(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=mft(t,r),l=o.payloadBatch,s=o.snapToValue;l[0]&&n.seriesIndex==null&&it(n,l[0]),!a&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,l),e.showTooltip(r,o,s)}}function mft(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,l=-1;return O(t.seriesModels,function(s,u){var c=s.getData().mapDimensionsAll(a),h,d;if(s.getAxisTooltipData){var p=s.getAxisTooltipData(c,r,e);d=p.dataIndices,h=p.nestestValue}else{if(d=s.indicesOfNearest(a,c[0],r,e.type==="category"?.5:null),!d.length)return;h=s.getData().get(c[0],d[0])}if(!(h==null||!isFinite(h))){var g=r-h,m=Math.abs(g);m<=o&&((m=0&&l<0)&&(o=m,l=g,n=h,i.length=0),O(d,function(_){i.push({seriesIndex:s.seriesIndex,dataIndexInside:_,dataIndex:s.getData().getRawIndex(_)})}))}}),{payloadBatch:i,snapToValue:n}}function _ft(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Sft(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var s=t.coordSys.model,u=rd(s),c=r.map[u];c||(c=r.map[u]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function bft(r,t,e){var a=e.axesInfo=[];O(t,function(n,i){var o=n.axisPointerModel.option,l=r[i];l?(!n.useHandle&&(o.status="show"),o.value=l.value,o.seriesDataIndices=(l.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function xft(r,t,e,a){if(Vy(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function wft(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Lk(a)[n]||{},o=Lk(a)[n]={};O(r,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&O(h.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var l=[],s=[];O(i,function(u,c){!o[c]&&s.push(u)}),O(o,function(u,c){!i[c]&&l.push(u)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),l.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function Tft(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function Rk(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Vy(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function zd(r){vu.registerAxisPointerClass("CartesianAxisPointer",sft),r.registerComponentModel(cft),r.registerComponentView(gft),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!lt(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Cnt(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},yft)}function Cft(r){Yt($8),Yt(zd)}var Aft=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var l=n.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=l.polar,u=s.getOtherAxis(l),c=u.getExtent(),h=l.dataToCoord(a),d=i.get("type");if(d&&d!=="none"){var p=KA(i),g=Dft[d](l,s,h,c);g.style=p,e.graphicKey=g.type,e.pointer=g}var m=i.get(["label","margin"]),_=Mft(a,n,i,s,m);_7(e,n,i,o,_)},t})(qA);function Mft(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),l=a.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var s=a.getRadiusAxis().getExtent(),u,c,h;if(i.dim==="radius"){var d=Dr();Ml(d,d,l),pi(d,d,[a.cx,a.cy]),u=Dn([o,-n],d);var p=t.getModel("axisLabel").get("rotate")||0,g=ra.innerTextLayout(l,p*Math.PI/180,-1);c=g.textAlign,h=g.textVerticalAlign}else{var m=s[1];u=a.coordToPoint([m+n,o]);var _=a.cx,S=a.cy;c=Math.abs(u[0]-_)/m<.3?"center":u[0]>_?"left":"right",h=Math.abs(u[1]-S)/m<.3?"middle":u[1]>S?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var Dft={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:JA(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Ck(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:Ck(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},Lft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(qt),tM=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",He).models[0]},t.type="polarAxis",t})(qt);or(tM,Ld);var Eft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(tM),Rft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(tM),eM=(function(r){J(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t})(Pn);eM.prototype.dataToRadius=Pn.prototype.dataToCoord;eM.prototype.radiusToData=Pn.prototype.coordToData;var Ift=$t(),rM=(function(r){J(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var l=i[0],s=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(s),c=y0(l==null?"":l+"",a.getFont(),"center","top"),h=Math.max(c.height,7),d=h/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),g=Ift(e.model),m=g.lastAutoInterval,_=g.lastTickCount;return m!=null&&_!=null&&Math.abs(m-p)<=1&&Math.abs(_-o)<=1&&m>p?p=m:(g.lastTickCount=o,g.lastAutoInterval=p),p},t})(Pn);rM.prototype.dataToAngle=Pn.prototype.dataToCoord;rM.prototype.angleToData=Pn.prototype.coordToData;var C7=["radius","angle"],Oft=(function(){function r(t){this.dimensions=C7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eM,this._angleAxis=new rM,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]);n.inverse?o=l-360:l=o+360;var s=Math.sqrt(e*e+a*a);e/=s,a/=s;for(var u=Math.atan2(-a,e)/Math.PI*180,c=ul;)u+=c*360;return[s,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(l,s){var u=l-this.cx,c=s-this.cy,h=u*u+c*c,d=this.r,p=this.r0;return d!==p&&h-o<=d*d&&h+o>=p*p},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=Ik(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Ik(e);return n===this?this.pointToData(a):null},r})();function Ik(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Nft(r,t,e){var a=t.get("center"),n=gr(t,e).refContainer;r.cx=dt(a[0],n.width)+n.x,r.cy=dt(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,l=t.get("radius");l==null?l=[0,"100%"]:lt(l)||(l=[0,l]);var s=[dt(l[0],o),dt(l[1],o)];i.inverse?i.setExtent(s[1],s[0]):i.setExtent(s[0],s[1])}function zft(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(l){if(l.coordinateSystem===e){var s=l.getData();O(Sm(s,"radius"),function(u){n.scale.unionExtentFromData(s,u)}),O(Sm(s,"angle"),function(u){a.scale.unionExtentFromData(s,u)})}}),lf(a.scale,a.model),lf(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Pft(r){return r.mainType==="angleAxis"}function Ok(r,t){var e;if(r.type=t.get("type"),r.scale=V0(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Pft(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var kft={dimensions:C7,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new Oft(n+"");i.update=zft;var o=i.getRadiusAxis(),l=i.getAngleAxis(),s=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Ok(o,s),Ok(l,u),Nft(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",He).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},Bft=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ay(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function ny(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Nk(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Vft=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),l=n.getTicksCoords({breakTicks:"none"}),s=n.getMinorTicksCoords(),u=ut(n.getViewLabels(),function(c){c=Mt(c);var h=n.scale,d=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(d),c});Nk(u),Nk(l),O(Bft,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&Gft[c](this.group,e,i,l,s,o,u)},this)}},t.type="angleAxis",t})(vu),Gft={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),l=e.getAngleAxis(),s=Math.PI/180,u=l.getExtent(),c=ny(e),h=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?d=new su[p]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*s,endAngle:-u[1]*s,clockwise:l.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new Sd({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,r.add(d)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),l=(o.get("inside")?-1:1)*o.get("length"),s=i[ny(e)],u=ut(a,function(c){return new tr({shape:ay(e,[s,s+l],c.coord)})});r.add(on(u,{style:Et(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),l=t.getModel("minorTick"),s=(o.get("inside")?-1:1)*l.get("length"),u=i[ny(e)],c=[],h=0;hS?"left":"right",C=Math.abs(_[1]-x)/m<.3?"middle":_[1]>x?"top":"bottom";if(l&&l[g]){var A=l[g];Rt(A)&&A.textStyle&&(p=new Qt(A.textStyle,s,s.ecModel))}var M=new ae({silent:ra.isLabelSilent(t),style:we(p,{x:_[0],y:_[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:w,verticalAlign:C})});if(r.add(M),vo({el:M,componentModel:t,itemName:h.formattedLabel,formatterParamsExtra:{isTruncated:function(){return M.isTruncated},value:h.rawLabel,tickIndex:d}}),c){var L=ra.makeAxisEventDataBase(t);L.targetType="axisLabel",L.value=h.rawLabel,zt(M).eventData=L}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),l=o.getModel("lineStyle"),s=l.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=0;h=0?"p":"n",H=R;A&&(a[c][P]||(a[c][P]={p:R,n:R}),H=a[c][P][F]);var k=void 0,j=void 0,Y=void 0,$=void 0;if(g.dim==="radius"){var q=g.dataToCoord(B)-R,G=s.dataToCoord(P);Math.abs(q)=$})}}})}function Wft(r){var t={};O(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,l=o.getBaseAxis(),s=M7(o,l),u=l.getExtent(),c=l.type==="category"?l.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=t[s]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;t[s]=h;var p=A7(a);d[p]||h.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var g=dt(a.get("barWidth"),c),m=dt(a.get("barMaxWidth"),c),_=a.get("barGap"),S=a.get("barCategoryGap");g&&!d[p].width&&(g=Math.min(h.remainedWidth,g),d[p].width=g,h.remainedWidth-=g),m&&(d[p].maxWidth=m),_!=null&&(h.gap=_),S!=null&&(h.categoryGap=S)});var e={};return O(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,l=dt(a.categoryGap,o),s=dt(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,h=(u-l)/(c+(c-1)*s);h=Math.max(h,0),O(i,function(m,_){var S=m.maxWidth;S&&S=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=zk(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=zk(e);return n===this?this.pointToData(a):null},r})();function zk(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function rht(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new eht(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",He).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var aht={create:rht,dimensions:D7},Pk=["x","y"],nht=["width","height"],iht=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var l=n.axis,s=l.coordinateSystem,u=Nx(s,1-Vm(l)),c=s.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var d=KA(i),p=oht[h](l,c,u);p.style=d,e.graphicKey=p.type,e.pointer=p}var g=lC(n);b7(a,e,g,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=lC(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=QA(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,l=o.coordinateSystem,s=Vm(o),u=Nx(l,s),c=[e.x,e.y];c[s]+=a[s],c[s]=Math.min(u[1],c[s]),c[s]=Math.max(u[0],c[s]);var h=Nx(l,1-s),d=(h[1]+h[0])/2,p=[d,d];return p[s]=c[s],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t})(qA),oht={line:function(r,t,e){var a=JA([t,e[0]],[t,e[1]],Vm(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:x7([t-a/2,e[0]],[a,n],Vm(r))}}};function Vm(r){return r.isHorizontal()?0:1}function Nx(r,t){var e=r.getRect();return[e[Pk[t]],e[Pk[t]]+e[nht[t]]]}var lht=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(Oe);function sht(r){Yt(zd),vu.registerAxisPointerClass("SingleAxisPointer",iht),r.registerComponentView(lht),r.registerComponentView(Qft),r.registerComponentModel(Gy),cf(r,"single",Gy,Gy.defaultOption),r.registerCoordinateSystem("single",aht)}var uht=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=uu(e);r.prototype.init.apply(this,arguments),kk(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),kk(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Q.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Q.color.neutral00,borderWidth:1,borderColor:Q.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Q.size.s,color:Q.color.secondary},monthLabel:{show:!0,position:"start",margin:Q.size.s,align:"center",formatter:null,color:Q.color.secondary},yearLabel:{show:!0,position:null,margin:Q.size.xl,formatter:null,color:Q.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(qt);function kk(r,t){var e=r.cellSize,a;lt(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=ut([0,1],function(i){return jK(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});mi(r,t,{type:"box",ignoreSize:n})}var cht=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,l=o.getRangeInfo(),s=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,l,i),this._renderLines(e,l,s,i),this._renderYearText(e,l,s,i),this._renderMonthText(e,u,s,i),this._renderWeekText(e,u,l,s,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),l=i.getCellWidth(),s=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToCalendarLayout([u],!1).tl,h=new Xt({shape:{x:c[0],y:c[1],width:l,height:s},cursor:"default",style:o});n.add(h)}},t.prototype._renderLines=function(e,a,n,i){var o=this,l=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,d=0;h.time<=a.end.time;d++){g(h.formatedDate),d===0&&(h=l.getDateInfo(a.start.y+"-"+a.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=l.getDateInfo(p)}g(l.getNextNDay(a.end.time,1).formatedDate);function g(m){o._firstDayOfMonth.push(l.getDateInfo(m)),o._firstDayPoints.push(l.dataToCalendarLayout([m],!1).tl);var _=o._getLinePointsOfOneWeek(e,m,n);o._tlpoints.push(_[0]),o._blpoints.push(_[_.length-1]),u&&o._drawSplitline(_,s,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),s,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),s,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Vr({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),l=[],s=0;s<7;s++){var u=i.getNextNDay(o.time,s),c=i.dataToCalendarLayout([u.time],!1);l[2*u.day]=c.tl,l[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return l},t.prototype._formatterLabel=function(e,a){return pt(e)&&e?VK(e,a):Ct(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var l=a[0],s=a[1],u=["center","bottom"];i==="bottom"?(s+=o,u=["center","top"]):i==="left"?l-=o:i==="right"?(l+=o,u=["center","top"]):s-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:l,y:s,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var l=o.get("margin"),s=o.get("position");s||(s=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,d=n==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],h],right:[u[d][0],h]},g=a.start.y;+a.end.y>+a.start.y&&(g=g+"-"+a.end.y);var m=o.get("formatter"),_={start:a.start.y,end:a.end.y,nameMap:g},S=this._formatterLabel(m,_),x=new ae({z2:30,style:we(o,{text:S}),silent:o.get("silent")});x.attr(this._yearTextPositionControl(x,p[s],n,s,l)),i.add(x)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var l="left",s="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(l="center"),i==="start"&&(s="bottom")):(u=u+o,a&&(s="middle"),i==="start"&&(l="right")),{x:u,y:c,align:l,verticalAlign:s}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var l=o.get("nameMap"),s=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!l||pt(l))&&(l&&(a=rT(l)||a),l=a.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=n==="horizontal"?0:1;s=u==="start"?-s:s;for(var g=c==="center",m=o.get("silent"),_=0;_=i.start.time&&n.timel.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/zx)-Math.floor(e[0].time/zx)+1,i=new Date(e[0].time),o=i.getDate(),l=e[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==l)for(var u=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==l&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(s-u);var c=Math.floor((n+e[0].day+6)/7),h=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ad({targetModel:i,coordSysType:"calendar",coordSysProvider:KV})}),a},r.dimensions=["time","value"],r})();function Px(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function hht(r){r.registerComponentModel(uht),r.registerComponentView(cht),r.registerCoordinateSystem("calendar",fht)}var Xi={level:1,leaf:2,nonLeaf:3},to={none:0,all:1,body:2,corner:3};function sC(r,t,e){var a=t[Bt[e]].getCell(r);return!a&&ee(r)&&r<0&&(a=t[Bt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function L7(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function E7(r,t,e,a,n){Bk(r[0],t,n,e,a,0),Bk(r[1],t,n,e,a,1)}function Bk(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],l=lt(o)?o:[o],s=l.length,u=!!e;if(s>=1?(Vk(r,t,l,u,n,i,0),s>1&&Vk(r,t,l,u,n,i,s-1)):r[0]=r[1]=NaN,u){var c=-n[Bt[1-i]].getLocatorCount(i),h=n[Bt[i]].getLocatorCount(i)-1;e===to.body?c=Xe(0,c):e===to.corner&&(h=Pa(-1,h)),h=t[0]&&r[0]<=t[1]}function Uk(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function pht(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function Fk(r,t,e,a){var n=sC(t[a][0],e,a),i=sC(t[a][1],e,a);r[Bt[a]]=r[rr[a]]=NaN,n&&i&&(r[Bt[a]]=n.xy,r[rr[a]]=i.xy+i.wh-n.xy)}function ev(r,t,e,a){return r[Bt[t]]=e,r[Bt[1-t]]=a,r}function ght(r){return r&&(r.type===Xi.leaf||r.type===Xi.nonLeaf)?r:null}function Gm(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var Yk=(function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=yht(t);var a=e.get("data",!0);a!=null&&!lt(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=l(t,0,0),s();return;function l(u,c,h){var d=0;return u&&O(u,function(p,g){var m;pt(p)?m={value:p}:Rt(p)?(m=p,p.value!=null&&!pt(p.value)&&(m={value:null})):m={value:null};var _={type:Xi.nonLeaf,ordinal:NaN,level:h,firstLeafLocator:c,id:new Lt,span:ev(new Lt,e.dimIdx,1,1),option:m,xy:NaN,wh:NaN,dim:e,rect:Gm()};o++,(i[c]||(i[c]=[])).push(_),n[h]||(n[h]={type:Xi.level,xy:NaN,wh:NaN,option:null,id:new Lt,dim:e});var S=l(m.children,c,h+1),x=Math.max(1,S);_.span[Bt[e.dimIdx]]=x,d+=x,c+=x}),d}function s(){for(var u=[];a.length=1,w=e[Bt[a]],C=i.getLocatorCount(a)-1,A=new vl;for(o.resetLayoutIterator(A,a);A.next();)M(A.item);for(i.resetLayoutIterator(A,a);A.next();)M(A.item);function M(L){Yr(L.wh)&&(L.wh=S),L.xy=w,L.id[Bt[a]]===C&&!x&&(L.wh=e[Bt[a]]+e[rr[a]]-L.xy),w+=L.wh}}function Kk(r,t){for(var e=t[Bt[r]].resetCellIterator();e.next();){var a=e.item;Hm(a.rect,r,a.id,a.span,t),Hm(a.rect,1-r,a.id,a.span,t),a.type===Xi.nonLeaf&&(a.xy=a.rect[Bt[r]],a.wh=a.rect[rr[r]])}}function Qk(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Hm(n,0,i,a,t),Hm(n,1,i,a,t)}})}function Hm(r,t,e,a,n){r[rr[t]]=0;var i=e[Bt[t]],o=i<0?n[Bt[1-t]]:n[Bt[t]],l=o.getUnitLayoutInfo(t,e[Bt[t]]);if(r[Bt[t]]=l.xy,r[rr[t]]=l.wh,a[Bt[t]]>1){var s=o.getUnitLayoutInfo(t,e[Bt[t]]+a[Bt[t]]-1);r[rr[t]]=s.xy+s.wh-l.xy}}function Eht(r,t,e){var a=rm(r,e[rr[t]]);return cC(a,e[rr[t]])}function cC(r,t){return Math.max(Math.min(r,wt(t,1/0)),0)}function Vx(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var kr={inBody:1,inCorner:2,outside:3},Wn={x:null,y:null,point:[]};function Jk(r,t,e,a,n){var i=e[Bt[t]],o=e[Bt[1-t]],l=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),s=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),c=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,h=r.point[t]=a[t];if(!s&&!c){r[Bt[t]]=kr.outside;return}if(n===to.body){s?(r[Bt[t]]=kr.inBody,h=Pa(l.xy+l.wh,Xe(s.xy,h)),r.point[t]=h):r[Bt[t]]=kr.outside;return}else if(n===to.corner){c?(r[Bt[t]]=kr.inCorner,h=Pa(c.xy+c.wh,Xe(u.xy,h)),r.point[t]=h):r[Bt[t]]=kr.outside;return}var d=s?s.xy:c?c.xy+c.wh:NaN,p=u?u.xy:d,g=l?l.xy+l.wh:d;if(hg){if(!n){r[Bt[t]]=kr.outside;return}h=g}r.point[t]=h,r[Bt[t]]=d<=h&&h<=g?kr.inBody:p<=h&&h<=d?kr.inCorner:kr.outside}function t5(r,t,e,a){var n=1-e;if(r[Bt[e]]!==kr.outside)for(a[Bt[e]].resetCellIterator(Bx);Bx.next();){var i=Bx.item;if(r5(r.point[e],i.rect,e)&&r5(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[Bt[n]];return}}}function e5(r,t,e,a){if(r[Bt[e]]!==kr.outside){var n=r[Bt[e]]===kr.inCorner?a[Bt[1-e]]:a[Bt[e]];for(n.resetLayoutIterator(uy,e);uy.next();)if(Rht(r.point[e],uy.item)){t[e]=uy.item.id[Bt[e]];return}}}function Rht(r,t){return t.xy<=r&&r<=t.xy+t.wh}function r5(r,t,e){return t[Bt[e]]<=r&&r<=t[Bt[e]]+t[rr[e]]}function Iht(r){r.registerComponentModel(bht),r.registerComponentView(Aht),r.registerCoordinateSystem("matrix",Lht)}function Oht(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function a5(r,t){var e;return O(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Nht(r,t,e){var a=it({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(Ft(n,a,!0),mi(n,a,{ignoreSize:!0}),rG(e,n),cy(e,n),cy(e,n,"shape"),cy(e,n,"style"),cy(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var I7=["transition","enterFrom","leaveTo"],zht=I7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function cy(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?I7:zht,n=0;n=0;c--){var h=n[c],d=vr(h.id,null),p=d!=null?o.get(d):null;if(p){var g=p.parent,S=rn(g),x=g===i?{width:l,height:s}:{width:S.width,height:S.height},w={},C=N0(p,h,x,null,{hv:h.hv,boundingMode:h.bounding},w);if(!rn(p).isNew&&C){for(var A=h.transition,M={},L=0;L=0)?M[E]=R:p[E]=R}oe(p,M,e,0)}else p.attr(w)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Hy(n,rn(n).option,a,e._lastGraphicModel)}),this._elMap=bt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(Oe);function fC(r){var t=St(n5,r)?n5[r]:lm(r),e=new t({});return rn(e).type=r,e}function i5(r,t,e,a){var n=fC(e);return t.add(n),a.set(r,n),rn(n).id=r,rn(n).isNew=!0,n}function Hy(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Hy(i,t,e,a)}),Z0(r,t,a),e.removeKey(rn(r).id))}function o5(r,t,e,a){r.isGroup||O([["cursor",fn.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];St(t,i)?r[i]=wt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),O(Jt(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=Ct(i)?i:null}}),St(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Vht(r){return r=it({},r),O(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QV),function(t){delete r[t]}),r}function Ght(r,t,e){var a=zt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=zt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Hht(r){r.registerComponentModel(kht),r.registerComponentView(Bht),r.registerPreprocessor(function(t){var e=t.graphic;lt(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var l5=["x","y","radius","angle","single"],Uht=["cartesian2d","polar","singleAxis"];function Fht(r){var t=r.get("coordinateSystem");return Ht(Uht,t)>=0}function sl(r){return r+"Axis"}function Yht(r,t){var e=bt(),a=[],n=bt();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||l(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&s(c)&&(l(c),i=!0)}function l(c){n.set(c.uid,!0),a.push(c),u(c)}function s(c){var h=!1;return c.eachTargetAxis(function(d,p){var g=e.get(d);g&&g[p]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,d){(e.get(h)||e.set(h,[]))[d]=!0})}return a}function O7(r){var t=r.ecModel,e={infoList:[],infoMap:bt()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(sl(a),n);if(i){var o=i.getCoordSysModel();if(o){var l=o.uid,s=e.infoMap.get(l);s||(s={model:o,axisModels:[]},e.infoList.push(s),e.infoMap.set(l,s)),s.axisModels.push(i)}}}),e}var Gx=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),sd=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=s5(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=s5(e);Ft(this.option,e,!0),Ft(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;O([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=bt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return O(l5,function(n){var i=this.getReferringComponents(sl(n),SZ);if(i.specified){a=!0;var o=new Gx;O(i.models,function(l){o.add(l.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",l=n.findComponents({mainType:o+"Axis"});s(l,o)}if(i){var l=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});s(l,"single")}function s(u,c){var h=u[0];if(h){var d=new Gx;if(d.add(h.componentIndex),e.set(c,d),i=!1,c==="x"||c==="y"){var p=h.getReferringComponents("grid",He).models[0];p&&O(u,function(g){h.componentIndex!==g.componentIndex&&p===g.getReferringComponents("grid",He).models[0]&&d.add(g.componentIndex)})}}}i&&O(l5,function(u){if(i){var c=n.findComponents({mainType:sl(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var h=new Gx;h.add(c[0].componentIndex),e.set(u,h),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");O([["start","startValue"],["end","endValue"]],function(i,o){var l=e[i[0]]!=null,s=e[i[1]]!=null;l&&!s?a[o]="percent":!l&&s?a[o]="value":n?a[o]=n[o]:l&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(sl(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){O(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(sl(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;O([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;O(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(w&&!C&&!A)return!0;w&&(_=!0),C&&(g=!0),A&&(m=!0)}return _&&g&&m})}else Nc(c,function(p){if(i==="empty")s.setData(u=u.map(p,function(m){return l(m)?m:NaN}));else{var g={};g[p]=o,u.selectRange(g)}});Nc(c,function(p){u.setApproximateExtent(o,p)})}});function l(s){return s>=o[0]&&s<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Nc(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=fe(a[0]+o,a,[0,100],!0):i!=null&&(o=fe(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=z4(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function $ht(r,t,e){var a=[1/0,-1/0];Nc(e,function(o){Aet(a,o.getData(),t)});var n=r.getAxisModel(),i=I6(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Zht={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,l){var s=r.getComponent(sl(o),l);n(o,l,s,i)})})}t(function(n,i,o,l){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,l){o.__dzAxisProxy||(o.__dzAxisProxy=new Xht(n,i,l,r),e.push(o.__dzAxisProxy))});var a=bt();return O(e,function(n){O(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function qht(r){r.registerAction("dataZoom",function(t,e){var a=Yht(e,t);O(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var c5=!1;function oM(r){c5||(c5=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Zht),qht(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Kht(r){r.registerComponentModel(jht),r.registerComponentView(Wht),oM(r)}var nn=(function(){function r(){}return r})(),N7={};function zc(r,t){N7[r]=t}function z7(r){return N7[r]}var Qht=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;O(this.option.feature,function(a,n){var i=z7(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Ft(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Q.color.accent50}},tooltip:{show:!1,position:"bottom"}},t})(qt);function P7(r,t){var e=Td(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new Xt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var Jht=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var l=+e.get("itemSize"),s=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),h=[];O(u,function(x,w){h.push(w)}),new oo(this._featureNames||[],h).add(d).update(d).remove(Gt(d,null)).execute(),this._featureNames=h;function d(x,w){var C=h[x],A=h[w],M=u[C],L=new Qt(M,e,e.ecModel),E;if(i&&i.newTitle!=null&&i.featureName===C&&(M.title=i.newTitle),C&&!A){if(tvt(C))E={onclick:L.option.onclick,featureName:C};else{var R=z7(C);if(!R)return;E=new R}c[C]=E}else if(E=c[A],!E)return;E.uid=Cf("toolbox-feature"),E.model=L,E.ecModel=a,E.api=n;var I=E instanceof nn;if(!C&&A){I&&E.dispose&&E.dispose(a,n);return}if(!L.get("show")||I&&E.unusable){I&&E.remove&&E.remove(a,n);return}p(L,E,C),L.setIconStatus=function(N,B){var P=this.option,F=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[N]=B,F[N]&&(B==="emphasis"?no:io)(F[N])},E instanceof nn&&E.render&&E.render(L,a,n,i)}function p(x,w,C){var A=x.getModel("iconStyle"),M=x.getModel(["emphasis","iconStyle"]),L=w instanceof nn&&w.getIcons?w.getIcons():x.get("icon"),E=x.get("title")||{},R,I;pt(L)?(R={},R[C]=L):R=L,pt(E)?(I={},I[C]=E):I=E;var N=x.iconPaths={};O(R,function(B,P){var F=wd(B,{},{x:-l/2,y:-l/2,width:l,height:l});F.setStyle(A.getItemStyle());var H=F.ensureState("emphasis");H.style=M.getItemStyle();var k=new ae({style:{text:I[P],align:M.get("textAlign"),borderRadius:M.get("textBorderRadius"),padding:M.get("textPadding"),fill:null,font:A2({fontStyle:M.get("textFontStyle"),fontFamily:M.get("textFontFamily"),fontSize:M.get("textFontSize"),fontWeight:M.get("textFontWeight")},a)},ignore:!0});F.setTextContent(k),vo({el:F,componentModel:e,itemName:P,formatterParamsExtra:{title:I[P]}}),F.__title=I[P],F.on("mouseover",function(){var j=M.getItemStyle(),Y=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:M.get("textFill")||j.fill||j.stroke||Q.color.neutral99,backgroundColor:M.get("textBackgroundColor")}),F.setTextConfig({position:M.get("textPosition")||Y}),k.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){x.get(["iconStatus",P])!=="emphasis"&&n.leaveEmphasis(this),k.hide()}),(x.get(["iconStatus",P])==="emphasis"?no:io)(F),o.add(F),F.on("click",yt(w.onclick,w,a,n,P)),N[P]=F})}var g=gr(e,n).refContainer,m=e.getBoxLayoutParams(),_=e.get("padding"),S=Pe(m,g,_);Ws(e.get("orient"),o,e.get("itemGap"),S.width,S.height),N0(o,m,g,_),o.add(P7(o.getBoundingRect(),e)),s||o.eachChild(function(x){var w=x.__title,C=x.ensureState("emphasis"),A=C.textConfig||(C.textConfig={}),M=x.getTextContent(),L=M&&M.ensureState("emphasis");if(L&&!Ct(L)&&w){var E=L.style||(L.style={}),R=y0(w,ae.makeFont(E)),I=x.x+o.x,N=x.y+o.y+l,B=!1;N+R.height>n.getHeight()&&(A.position="top",B=!0);var P=B?-5-R.height:l+10;I+R.width/2>n.getWidth()?(A.position=["100%",P],E.align="right"):I-R.width/2<0&&(A.position=[0,P],E.align="left")}})},t.prototype.updateView=function(e,a,n,i){O(this._features,function(o){o instanceof nn&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){O(this._features,function(n){n instanceof nn&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){O(this._features,function(n){n instanceof nn&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t})(Oe);function tvt(r){return r.indexOf("my")===0}var evt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",l=o?"svg":n.get("type",!0)||"png",s=a.getConnectedDataURL({type:l,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||Q.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Kt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+l,c.target="_blank",c.href=s;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var d=s.split(","),p=d[0].indexOf("base64")>-1,g=o?decodeURIComponent(d[1]):d[1];p&&(g=window.atob(g));var m=i+"."+l;if(window.navigator.msSaveOrOpenBlob){for(var _=g.length,S=new Uint8Array(_);_--;)S[_]=g.charCodeAt(_);var x=new Blob([S]);window.navigator.msSaveOrOpenBlob(x,m)}else{var w=document.createElement("iframe");document.body.appendChild(w);var C=w.contentWindow,A=C.document;A.open("image/svg+xml","replace"),A.write(g),A.close(),C.focus(),A.execCommand("SaveAs",!0,m),document.body.removeChild(w)}}else{var M=n.get("lang"),L='',E=window.open();E.document.write(L),E.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:Q.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t})(nn),f5="__ec_magicType_stack__",rvt=[["line","bar"],["stack"]],avt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return O(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(h5[n]){var l={series:[]},s=function(h){var d=h.subType,p=h.id,g=h5[n](d,p,h,i);g&&(Et(g,h.option),l.series.push(g));var m=h.coordinateSystem;if(m&&m.type==="cartesian2d"&&(n==="line"||n==="bar")){var _=m.getAxesByScale("ordinal")[0];if(_){var S=_.dim,x=S+"Axis",w=h.getReferringComponents(x,He).models[0],C=w.componentIndex;l[x]=l[x]||[];for(var A=0;A<=C;A++)l[x][C]=l[x][C]||{};l[x][C].boundaryGap=n==="bar"}}};O(rvt,function(h){Ht(h,n)>=0&&O(h,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},s);var u,c=n;n==="stack"&&(u=Ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:l,newTitle:u,featureName:"magicType"})}},t})(nn),h5={line:function(r,t,e,a){if(r==="bar")return Ft({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return Ft({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===f5;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),Ft({id:t,stack:n?"":f5},a.get(["option","stack"])||{},!0)}};bi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var q0=new Array(60).join("-"),df=" ";function nvt(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var l=o.dim+"_"+o.index;t[l]||(t[l]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[l].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function ivt(r){var t=[];return O(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,l=[" "].concat(ut(e.series,function(p){return p.name})),s=[n.model.getCategories()];O(e.series,function(p){var g=p.getRawData();s.push(p.getRawData().mapArray(g.mapDimension(o),function(m){return m}))});for(var u=[l.join(df)],c=0;c=0)return!0}var hC=new RegExp("["+df+"]+","g");function uvt(r){for(var t=r.split(/\n+/g),e=Um(t.shift()).split(hC),a=[],n=ut(e,function(s){return{name:s,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var l=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(l){var s=l.getPercentRange();e[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),e.push(t)}function pvt(r){var t=lM(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return k7(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function gvt(r){B7(r).snapshots=null}function yvt(r){return lM(r).length}function lM(r){var t=B7(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var mvt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){gvt(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t})(nn);bi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var _vt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],sM=(function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=v5(e,t);O(Svt,function(o,l){(!a||!a.include||Ht(a.include,l)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Hx[a.brushType](0,i,n);a.__rangeOffset={offset:y5[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){O(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&O(i.coordSyses,function(o){var l=Hx[n.brushType](1,o,n.range,!0);a(n,l.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){O(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Hx[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?y5[a.brushType](i.values,o.offset,bvt(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return ut(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:FH(n),isTargetByCursor:jH(n,t,a.coordSysModel),getLinearBrushOtherExtent:YH(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&Ht(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=v5(e,t),i=0;ir[1]&&r.reverse(),r}function v5(r,t){return Wc(r,t,{includeMainTypes:_vt})}var Svt={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=bt(),o={},l={};!e&&!a&&!n||(O(e,function(s){var u=s.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),O(a,function(s){var u=s.axis.grid.model;i.set(u.id,u),l[u.id]=!0}),O(n,function(s){i.set(s.id,s),o[s.id]=!0,l[s.id]=!0}),i.each(function(s){var u=s.coordinateSystem,c=[];O(u.getCartesians(),function(h,d){(Ht(e,h.getAxis("x").model)>=0||Ht(a,h.getAxis("y").model)>=0)&&c.push(h)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:c[0],coordSyses:c,getPanelRect:p5.grid,xAxisDeclared:o[s.id],yAxisDeclared:l[s.id]})}))},geo:function(r,t){O(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:p5.geo})})}},d5=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],p5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(js(r)),t}},Hx={lineX:Gt(g5,0),lineY:Gt(g5,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[vC([n[0],i[0]]),vC([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=ut(e,function(o){var l=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],l[0]),n[1][0]=Math.min(n[1][0],l[1]),n[0][1]=Math.max(n[0][1],l[0]),n[1][1]=Math.max(n[1][1],l[1]),l});return{values:i,xyMinMax:n}}};function g5(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=vC(ut([0,1],function(l){return t?n.coordToData(n.toLocalCoord(a[l]),!0):n.toGlobalCoord(n.dataToCoord(a[l]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var y5={lineX:Gt(m5,0),lineY:Gt(m5,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return ut(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function m5(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function bvt(r,t){var e=_5(r),a=_5(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function _5(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var dC=O,xvt=pZ("toolbox-dataZoom_"),wvt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new OA(n.getZr()),this._brushController.on("brush",yt(this._onBrush,this)).mount()),Avt(e,a,this,i,n),Cvt(e,a)},t.prototype.onclick=function(e,a,n){Tvt[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new sM(uM(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,h){if(h.type==="cartesian2d"){var d=u.brushType;d==="rect"?(l("x",h,c[0]),l("y",h,c[1])):l({lineX:"x",lineY:"y"}[d],h,c)}}),dvt(i,n),this._dispatchZoomAction(n);function l(u,c,h){var d=c.getAxis(u),p=d.model,g=s(u,p,i),m=g.findRepresentativeAxisProxy(p).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(h=bl(0,h.slice(),d.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),g&&(n[g.id]={dataZoomId:g.id,startValue:h[0],endValue:h[1]})}function s(u,c,h){var d;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var g=p.getAxisModel(u,c.componentIndex);g&&(d=p)}),d}},t.prototype._dispatchZoomAction=function(e){var a=[];dC(e,function(n,i){a.push(Mt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}};return a},t})(nn),Tvt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(pvt(this.ecModel))}};function uM(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Cvt(r,t){r.setIconStatus("back",yvt(t)>1?"emphasis":"normal")}function Avt(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new sM(uM(r),t,{include:["grid"]}),l=o.makePanelOpts(n,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(l).enableBrush(i&&l.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}QK("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=uM(a),o=Wc(r,i);dC(o.xAxisModels,function(s){return l(s,"xAxis","xAxisIndex")}),dC(o.yAxisModels,function(s){return l(s,"yAxis","yAxisIndex")});function l(s,u,c){var h=s.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:xvt+u+h};d[c]=h,n.push(d)}return n});function Mvt(r){r.registerComponentModel(Qht),r.registerComponentView(Jht),zc("saveAsImage",evt),zc("magicType",avt),zc("dataView",hvt),zc("dataZoom",wvt),zc("restore",mvt),Yt(Kht)}var Dvt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t})(qt);function V7(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function G7(r){if(Kt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e-1?(l+="top:50%",s+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(l+="left:50%",s+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+n,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-h)/2)*100)/100;l+=";"+i+":-"+p+"px";var g=t+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",l+";"+s+";","border-bottom:"+g,"border-right:"+g,"background-color:"+a+";"];return'
'}function zvt(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Kt.transformSupported?""+cM+n:",left"+n+",top"+n)),Rvt+":"+i}function S5(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Kt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Kt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+cM+":"+o+";":[["top",0],["left",0],[H7,o]]}function Pvt(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=wt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,l=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+l+"px "+s+"px "+o+"px "+i),O(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function kvt(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),l=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),h=r.getModel("textStyle"),d=NG(r,"html"),p=u+"px "+c+"px "+l+"px "+s;return n.push("box-shadow:"+p),t&&i>0&&n.push(zvt(i,e,a)),o&&n.push("background-color:"+o),O(["width","color","radius"],function(g){var m="border-"+g,_=XV(m),S=r.get(_);S!=null&&n.push(m+":"+S+(g==="color"?"":"px"))}),n.push(Pvt(h)),d!=null&&n.push("padding:"+Td(d).join("px ")+"px"),n.join(";")+";"}function b5(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&BX(r,o,e,a,n)}else{r[0]=a,r[1]=n;var l=i&&i.getViewportRootOffset();l&&(r[0]+=l.offsetLeft,r[1]+=l.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Bvt=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Kt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(pt(i)?document.querySelector(i):Qc(i)?i:Ct(i)&&i(t.getDom()));b5(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var l=this;a.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},a.onmousemove=function(s){if(s=s||window.event,!l._enterable){var u=n.handler,c=n.painter.getViewportRoot();Ja(c,s,!0),u.dispatch("mousemove",s)}},a.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=Evt(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Ivt+kvt(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+S5(i[0],i[1],!0)+("border-color:"+eu(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var l="";if(pt(i)&&a.get("trigger")==="item"&&!V7(a)&&(l=Nvt(a,n,i)),pt(t))o.innerHTML=t+l;else if(t){o.innerHTML="",lt(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Kt.node||!n.getDom())){var o=T5(i,n);this._ticket="";var l=i.dataByCoordSys,s=jvt(i,a,n);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=Gvt;c.x=i.x,c.y=i.y,c.update(),zt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(l)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:l,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var h=T7(i,a),d=h.point[0],p=h.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(T5(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,l=i.dataIndex,s=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||l==null||s==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),h=av([c.getItemModel(l),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var l=zt(n);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,u;Ps(n,function(c){if(c.tooltipDisabled)return s=u=null,!0;s||u||(zt(c).dataIndex!=null?s=c:zt(c).tooltipConfig!=null&&(u=c))},!0),s?this._showSeriesItemTooltip(e,s,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=yt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],l=av([a.tooltipOption],i),s=this._renderMode,u=[],c=ar("section",{blocks:[],noHeader:!0}),h=[],d=new bb;O(e,function(x){O(x.dataByAxis,function(w){var C=n.getComponent(w.axisDim+"Axis",w.axisIndex),A=w.value;if(!(!C||A==null)){var M=S7(A,C.axis,n,w.seriesDataIndices,w.valueLabelOpt),L=ar("section",{header:M,noHeader:!sn(M),sortBlocks:!0,blocks:[]});c.blocks.push(L),O(w.seriesDataIndices,function(E){var R=n.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,N=R.getDataParams(I);if(!(N.dataIndex<0)){N.axisDim=w.axisDim,N.axisIndex=w.axisIndex,N.axisType=w.axisType,N.axisId=w.axisId,N.axisValue=_m(C.axis,{value:A}),N.axisValueLabel=M,N.marker=d.makeTooltipMarker("item",eu(N.color),s);var B=VO(R.formatTooltip(I,!0,null)),P=B.frag;if(P){var F=av([R],i).get("valueFormatter");L.blocks.push(F?it({valueFormatter:F},P):P)}B.text&&h.push(B.text),u.push(N)}})}})}),c.blocks.reverse(),h.reverse();var p=a.position,g=l.get("order"),m=jO(c,d,s,g,n.get("useUTC"),l.get("textStyle"));m&&h.unshift(m);var _=s==="richText"?` - -`:"
",S=h.join(_);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(l,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(l,S,u,Math.random()+"",o[0],o[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=zt(a),l=o.seriesIndex,s=i.getSeriesByIndex(l),u=o.dataModel||s,c=o.dataIndex,h=o.dataType,d=u.getData(h),p=this._renderMode,g=e.positionDefault,m=av([d.getItemModel(c),u,s&&(s.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var S=u.getDataParams(c,h),x=new bb;S.marker=x.makeTooltipMarker("item",eu(S.color),p);var w=VO(u.formatTooltip(c,!1,h)),C=m.get("order"),A=m.get("valueFormatter"),M=w.frag,L=M?jO(A?it({valueFormatter:A},M):M,x,p,C,i.get("useUTC"),m.get("textStyle")):w.text,E="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,L,S,E,e.offsetX,e.offsetY,e.position,e.target,x)}),n({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=zt(a),l=o.tooltipConfig,s=l.option||{},u=s.encodeHTMLContent;if(pt(s)){var c=s;s={content:c,formatter:c},u=!0}u&&i&&s.content&&(s=Mt(s),s.content=ta(s.content));var h=[s],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&h.push(d),h.push({formatter:s.content});var p=e.positionDefault,g=av(h,this._tooltipModel,p?{position:p}:null),m=g.get("content"),_=Math.random()+"",S=new bb;this._showOrMove(g,function(){var x=Mt(g.get("formatterParams")||{});this._showTooltipContent(g,m,x,_,e.offsetX,e.offsetY,e.position,a,S)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,l,s,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var d=e.get("formatter");s=s||e.get("position");var p=a,g=this._getNearestPoint([o,l],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),m=g.color;if(d)if(pt(d)){var _=e.ecModel.get("useUTC"),S=lt(n)?n[0]:n,x=S&&S.axisType&&S.axisType.indexOf("time")>=0;p=d,x&&(p=O0(S.axisValue,p,_)),p=$V(p,n,!0)}else if(Ct(d)){var w=yt(function(C,A){C===this._ticket&&(h.setContent(A,c,e,m,s),this._updatePosition(e,s,o,l,h,n,u))},this);this._ticket=i,p=d(n,i,w)}else p=d;h.setContent(p,c,e,m,s),h.show(e,m),this._updatePosition(e,s,o,l,h,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||lt(a))return{color:i||o};if(!lt(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,l,s){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),d=e.get("align"),p=e.get("verticalAlign"),g=s&&s.getBoundingRect().clone();if(s&&g.applyTransform(s.transform),Ct(a)&&(a=a([n,i],l,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),lt(a))n=dt(a[0],u),i=dt(a[1],c);else if(Rt(a)){var m=a;m.width=h[0],m.height=h[1];var _=Pe(m,{width:u,height:c});n=_.x,i=_.y,d=null,p=null}else if(pt(a)&&s){var S=Yvt(a,g,h,e.get("borderWidth"));n=S[0],i=S[1]}else{var S=Uvt(n,i,o,u,c,d?null:20,p?null:20);n=S[0],i=S[1]}if(d&&(n-=C5(d)?h[0]/2:d==="right"?h[0]:0),p&&(i-=C5(p)?h[1]/2:p==="bottom"?h[1]:0),V7(e)){var S=Fvt(n,i,o,u,c);n=S[0],i=S[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&O(n,function(l,s){var u=l.dataByAxis||[],c=e[s]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&O(u,function(d,p){var g=h[p]||{},m=d.seriesDataIndices||[],_=g.seriesDataIndices||[];o=o&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&m.length===_.length,o&&O(m,function(S,x){var w=_[x];o=o&&S.seriesIndex===w.seriesIndex&&S.dataIndex===w.dataIndex}),i&&O(d.seriesDataIndices,function(S){var x=S.seriesIndex,w=a[x],C=i[x];w&&C&&C.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Kt.node||!a.getDom()||(Xv(this,"_updatePosition"),this._tooltipContent.dispose(),oC("itemTooltip",a))},t.type="tooltip",t})(Oe);function av(r,t,e){var a=t.ecModel,n;e?(n=new Qt(e,a,a),n=new Qt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Qt&&(o=o.get("tooltip",!0)),pt(o)&&(o={formatter:o}),o&&(n=new Qt(o,n,a)))}return n}function T5(r,t){return r.dispatchAction||yt(t.dispatchAction,t)}function Uvt(r,t,e,a,n,i,o){var l=e.getSize(),s=l[0],u=l[1];return i!=null&&(r+s+i+2>a?r-=s+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function Fvt(r,t,e,a,n){var i=e.getSize(),o=i[0],l=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+l,n)-l,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Yvt(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,l=0,s=0,u=t.width,c=t.height;switch(r){case"inside":l=t.x+u/2-n/2,s=t.y+c/2-i/2;break;case"top":l=t.x+u/2-n/2,s=t.y-i-o;break;case"bottom":l=t.x+u/2-n/2,s=t.y+c+o;break;case"left":l=t.x-n-o,s=t.y+c/2-i/2;break;case"right":l=t.x+u+o,s=t.y+c/2-i/2}return[l,s]}function C5(r){return r==="center"||r==="middle"}function jvt(r,t,e){var a=h2(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Sf(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var l=e.getViewOfComponentModel(o),s;if(l.group.traverse(function(u){var c=zt(u).tooltipConfig;if(c&&c.name===r.name)return s=u,!0}),s)return{componentMainType:n,componentIndex:o.componentIndex,el:s}}}}function Wvt(r){Yt(zd),r.registerComponentModel(Dvt),r.registerComponentView(Hvt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$e),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$e)}var Xvt=["rect","polygon","keep","clear"];function $vt(r,t){var e=be(r?r.brush:[]);if(e.length){var a=[];O(e,function(s){var u=s.hasOwnProperty("toolbox")?s.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;lt(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),l=o.type||(o.type=[]);l.push.apply(l,a),Zvt(l),t&&!l.length&&l.push.apply(l,Xvt)}}function Zvt(r){var t={};O(r,function(e){t[e]=1}),r.length=0,O(t,function(e,a){r.push(a)})}var A5=O;function M5(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function pC(r,t,e){var a={};return A5(t,function(i){var o=a[i]=n();A5(r[i],function(l,s){if(Sr.isValidType(s)){var u={type:s,visual:l};e&&e(u,i),o[s]=new Sr(u),s==="opacity"&&(u=Mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Sr(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function F7(r,t,e){var a;O(e,function(n){t.hasOwnProperty(n)&&M5(t[n])&&(a=!0)}),a&&O(e,function(n){t.hasOwnProperty(n)&&M5(t[n])?r[n]=Mt(t[n]):delete r[n]})}function qvt(r,t,e,a,n,i){var o={};O(r,function(h){var d=Sr.prepareVisualTypes(t[h]);o[h]=d});var l;function s(h){return X2(e,l,h)}function u(h,d){YG(e,l,h,d)}e.each(c);function c(h,d){l=h;var p=e.getRawDataItem(l);if(!(p&&p.visualMap===!1))for(var g=a.call(n,h),m=t[g],_=o[g],S=0,x=_.length;St[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&I5(t)}};function I5(r){return new It(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var ndt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new OA(a.getZr())).on("brush",yt(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){Y7(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Mt(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Mt(n),$from:a})},t.type="brush",t})(Oe),idt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&F7(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=ut(e,function(a){return O5(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=O5(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Q.color.backgroundTint,borderColor:Q.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Q.color.disabled},t})(qt);function O5(r,t){return Ft({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Qt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var odt=["rect","polygon","lineX","lineY","keep","clear"],ldt=(function(r){J(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,l;a.eachComponent({mainType:"brush"},function(s){i=s.brushType,o=s.brushOption.brushMode||"single",l=l||!!s.areas.length}),this._brushType=i,this._brushMode=o,O(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?o==="multiple":s==="clear"?l:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return O(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:odt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t})(nn);function sdt(r){r.registerComponentView(ndt),r.registerComponentModel(idt),r.registerPreprocessor($vt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Jvt),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$e),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$e),zc("brush",ldt)}var udt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t})(qt),cdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),l=e.getModel("subtextStyle"),s=e.get("textAlign"),u=wt(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ae({style:we(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),d=e.get("subtext"),p=new ae({style:we(l,{text:d,fill:l.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),m=e.get("sublink"),_=e.get("triggerEvent",!0);c.silent=!g&&!_,p.silent=!m&&!_,g&&c.on("click",function(){cm(g,"_"+e.get("target"))}),m&&p.on("click",function(){cm(m,"_"+e.get("subtarget"))}),zt(c).eventData=zt(p).eventData=_?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),d&&i.add(p);var S=i.getBoundingRect(),x=e.getBoxLayoutParams();x.width=S.width,x.height=S.height;var w=gr(e,n),C=Pe(x,w.refContainer,e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?C.x+=C.width:s==="center"&&(C.x+=C.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?C.y+=C.height:u==="middle"&&(C.y+=C.height/2),u=u||"top"),i.x=C.x,i.y=C.y,i.markRedraw();var A={align:s,verticalAlign:u};c.setStyle(A),p.setStyle(A),S=i.getBoundingRect();var M=C.margin,L=e.getItemStyle(["color","opacity"]);L.fill=e.get("backgroundColor");var E=new Xt({shape:{x:S.x-M[3],y:S.y-M[0],width:S.width+M[1]+M[3],height:S.height+M[0]+M[2],r:e.get("borderRadius")},style:L,subPixelOptimize:!0,silent:!0});i.add(E)}},t.type="title",t})(Oe);function fdt(r){r.registerComponentModel(udt),r.registerComponentView(cdt)}var N5=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],O(a,function(u,c){var h=vr(_f(u),""),d;Rt(u)?(d=Mt(u),d.value=c):d=c,o.push(d),i.push(h)})):o=a;var l={category:"ordinal",time:"time",value:"number"}[n]||"number",s=this._data=new ea([{name:"value",type:l}],this);s.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Q.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Q.color.secondary},data:[]},t})(qt),j7=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=Ll(N5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Q.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Q.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Q.color.tertiary},itemStyle:{color:Q.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Q.color.accent60},itemStyle:{color:Q.color.accent60,borderColor:Q.color.accent60},controlStyle:{color:Q.color.accent70,borderColor:Q.color.accent70}},progress:{lineStyle:{color:Q.color.accent30},itemStyle:{color:Q.color.accent40}},data:[]}),t})(N5);or(j7,P0.prototype);var hdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t})(Oe),vdt=(function(r){J(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(Pn),Fx=Math.PI,z5=$t(),ddt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),l=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=s.scale.getLabel({value:u});return ar("nameValue",{noName:!0,value:c})},O(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,s,e)},this),this._renderAxisLabel(i,l,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=gdt(e,a),l;n==null||n==="auto"?l=i==="horizontal"?o.y+o.height/2=0||l==="+"?"left":"right"},u={horizontal:l>=0||l==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Fx/2},h=i==="vertical"?o.height:o.width,d=e.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,m=p?d.get("itemGap"):0,_=g+m,S=e.get(["label","rotate"])||0;S=S*Fx/180;var x,w,C,A=d.get("position",!0),M=p&&d.get("showPlayBtn",!0),L=p&&d.get("showPrevBtn",!0),E=p&&d.get("showNextBtn",!0),R=0,I=h;A==="left"||A==="bottom"?(M&&(x=[0,0],R+=_),L&&(w=[R,0],R+=_),E&&(C=[I-g,0],I-=_)):(M&&(x=[I-g,0],I-=_),L&&(w=[0,0],R+=_),E&&(C=[I-g,0],I-=_));var N=[R,I];return e.get("inverse")&&N.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:c[i],labelRotation:S,labelPosOpt:l,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:x,prevBtnPosition:w,nextBtnPosition:C,axisExtent:N,controlSize:g,controlGap:m}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var l=Dr(),s=o.x,u=o.y+o.height;pi(l,l,[-s,-u]),Ml(l,l,-Fx/2),pi(l,l,[s,u]),o=o.clone(),o.applyTransform(l)}var c=x(o),h=x(n.getBoundingRect()),d=x(i.getBoundingRect()),p=[n.x,n.y],g=[i.x,i.y];g[0]=p[0]=c[0][0];var m=e.labelPosOpt;if(m==null||pt(m)){var _=m==="+"?0:1;w(p,h,c,1,_),w(g,d,c,1,1-_)}else{var _=m>=0?0:1;w(p,h,c,1,_),g[1]=p[1]+m}n.setPosition(p),i.setPosition(g),n.rotation=i.rotation=e.rotation,S(n),S(i);function S(C){C.originX=c[0][0]-C.x,C.originY=c[1][0]-C.y}function x(C){return[[C.x,C.x+C.width],[C.y,C.y+C.height]]}function w(C,A,M,L,E){C[L]+=M[L][E]-A[L][E]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=pdt(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var l=n.getDataExtent("value");o.setExtent(l[0],l[1]),o.calcNiceTicks();var s=new vdt("value",o,e.axisExtent,i);return s.model=a,s},t.prototype._createGroup=function(e){var a=this[e]=new At;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var l=new tr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:it({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(l);var s=this._progressLine=new tr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Et({lineCap:"round",lineWidth:l.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(s)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,l=i.getData(),s=n.scale.getTicks();this._tickSymbols=[],O(s,function(u){var c=n.dataToCoord(u.value),h=l.getItemModel(u.value),d=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),g=h.getModel(["progress","itemStyle"]),m={x:c,y:0,onclick:yt(o._changeTimeline,o,u.value)},_=P5(h,d,a,m);_.ensureState("emphasis").style=p.getItemStyle(),_.ensureState("progress").style=g.getItemStyle(),Ys(_);var S=zt(_);h.get("tooltip")?(S.dataIndex=u.value,S.dataModel=i):S.dataIndex=S.dataModel=null,o._tickSymbols.push(_)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,l=n.getLabelModel();if(l.get("show")){var s=i.getData(),u=n.getViewLabels();this._tickLabels=[],O(u,function(c){var h=c.tickValue,d=s.getItemModel(h),p=d.getModel("label"),g=d.getModel(["emphasis","label"]),m=d.getModel(["progress","label"]),_=n.dataToCoord(c.tickValue),S=new ae({x:_,y:0,rotation:e.labelRotation-e.rotation,onclick:yt(o._changeTimeline,o,h),silent:!1,style:we(p,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});S.ensureState("emphasis").style=we(g),S.ensureState("progress").style=we(m),a.add(S),Ys(S),z5(S).dataIndex=h,o._tickLabels.push(S)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,l=e.rotation,s=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),h=i.get("inverse",!0);d(e.nextBtnPosition,"next",yt(this._changeTimeline,this,h?"-":"+")),d(e.prevBtnPosition,"prev",yt(this._changeTimeline,this,h?"+":"-")),d(e.playPosition,c?"stop":"play",yt(this._handlePlayClick,this,!c),!0);function d(p,g,m,_){if(p){var S=In(wt(i.get(["controlStyle",g+"BtnSize"]),o),o),x=[0,-S/2,S,S],w=ydt(i,g+"Icon",x,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:_?-l:0,rectHover:!0,style:s,onclick:m});w.ensureState("emphasis").style=u,a.add(w),Ys(w)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),l=i.getCurrentIndex(),s=o.getItemModel(l).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=yt(u._handlePointerDrag,u),h.ondragend=yt(u._handlePointerDragend,u),k5(h,u._progressLine,l,n,i,!0)},onUpdate:function(h){k5(h,u._progressLine,l,n,i)}};this._currentPointer=P5(s,s,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=un(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(l[o]=+l[o].toFixed(g)),[l,p]}var dy={min:Gt(vy,"min"),max:Gt(vy,"max"),average:Gt(vy,"average"),median:Gt(vy,"median")};function ud(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!wdt(t)&&!lt(t.coord)&<(n)){var i=W7(t,e,a,r);if(t=Mt(t),t.type&&dy[t.type]&&i.baseAxis&&i.valueAxis){var o=Ht(n,i.baseAxis.dim),l=Ht(n,i.valueAxis.dim),s=dy[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,l);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!lt(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&dy[t.type]){var c=a.getOtherAxis(u);c&&(t.value=Fm(e,e.mapDimension(c.dim),t.type))}}else for(var h=t.coord,d=0;d<2;d++)dy[h[d]]&&(h[d]=Fm(e,e.mapDimension(n[d]),h[d]));return t}}function W7(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(Tdt(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function Tdt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function cd(r,t){return r&&r.containData&&t.coord&&!yC(t)?r.containData(t.coord):!0}function Cdt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!yC(t)&&!yC(e)?r.containZone(t.coord,e.coord):!0}function X7(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return pl(o,t[i])}:function(e,a,n,i){return pl(e.value,t[i])}}function Fm(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Yx=$t(),hM=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=bt()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(l){Yx(l).keep=!1}),a.eachSeries(function(l){var s=Si.getMarkerModelFromSeries(l,i.type);s&&i.renderSeries(l,s,a,n)}),o.each(function(l){!Yx(l).keep&&i.group.remove(l.group)}),Adt(a,o,this.type)},t.prototype.markKeep=function(e){Yx(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;O(e,function(i){var o=Si.getMarkerModelFromSeries(i,n.type);if(o){var l=o.getData();l.eachItemGraphicEl(function(s){s&&(a?uV(s):S2(s))})}})},t.type="marker",t})(Oe);function Adt(r,t,e){r.eachSeries(function(a){var n=Si.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=tu(n),l=o.z,s=o.zlevel;R0(i.group,l,s)}})}function V5(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(l){var s=r.getItemModel(l),u=s.get("relativeTo")==="coordinate",c=u?o?o.width:0:n,h=u?o?o.height:0:i,d=u&&o?o.x:0,p=u&&o?o.y:0,g,m=dt(s.get("x"),c)+d,_=dt(s.get("y"),h)+p;if(!isNaN(m)&&!isNaN(_))g=[m,_];else if(t.getMarkerPosition)g=t.getMarkerPosition(r.getValues(r.dimensions,l));else if(a){var S=r.get(a.dimensions[0],l),x=r.get(a.dimensions[1],l);g=a.dataToPoint([S,x])}isNaN(m)||(g[0]=m),isNaN(_)||(g[1]=_),r.setItemLayout(l,g)})}var Mdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Si.getMarkerModelFromSeries(i,"markPoint");o&&(V5(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,l=e.id,s=e.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,new Rd),h=Ddt(o,e,a);a.setData(h),V5(a.getData(),e,i),h.each(function(d){var p=h.getItemModel(d),g=p.getShallow("symbol"),m=p.getShallow("symbolSize"),_=p.getShallow("symbolRotate"),S=p.getShallow("symbolOffset"),x=p.getShallow("symbolKeepAspect");if(Ct(g)||Ct(m)||Ct(_)||Ct(S)){var w=a.getRawValue(d),C=a.getDataParams(d);Ct(g)&&(g=g(w,C)),Ct(m)&&(m=m(w,C)),Ct(_)&&(_=_(w,C)),Ct(S)&&(S=S(w,C))}var A=p.getModel("itemStyle").getItemStyle(),M=p.get("z2"),L=Md(s,"color");A.fill||(A.fill=L),h.setItemVisual(d,{z2:wt(M,0),symbol:g,symbolSize:m,symbolRotate:_,symbolOffset:S,symbolKeepAspect:x,style:A})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(d){d.traverse(function(p){zt(p).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t})(hM);function Ddt(r,t,e){var a;r?a=ut(r&&r.dimensions,function(l){var s=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return it(it({},s),{name:l,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ea(a,e),i=ut(e.get("data"),Gt(ud,t));r&&(i=he(i,Gt(cd,r)));var o=X7(!!r,a);return n.initData(i,null,o),n}function Ldt(r){r.registerComponentModel(xdt),r.registerComponentView(Mdt),r.registerPreprocessor(function(t){fM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Edt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(Si),py=$t(),Rdt=function(r,t,e,a){var n=r.getData(),i;if(lt(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var l=void 0,s=void 0;if(a.yAxis!=null||a.xAxis!=null)l=t.getAxis(a.yAxis!=null?"y":"x"),s=Br(a.yAxis,a.xAxis);else{var u=W7(a,n,t,r);l=u.valueAxis;var c=S6(n,u.valueDataDim);s=Fm(n,c,o)}var h=l.dim==="x"?0:1,d=1-h,p=Mt(a),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var m=e.get("precision");m>=0&&ee(s)&&(s=+s.toFixed(Math.min(m,20))),p.coord[h]=g.coord[h]=s,i=[p,g,{type:o,valueIndex:a.valueIndex,value:s}]}else i=[]}var _=[ud(r,i[0]),ud(r,i[1]),it({},i[2])];return _[2].type=_[2].type||null,Ft(_[2],_[0]),Ft(_[2],_[1]),_};function Ym(r){return!isNaN(r)&&!isFinite(r)}function G5(r,t,e,a){var n=1-r,i=a.dimensions[r];return Ym(t[n])&&Ym(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function Idt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(G5(1,e,a,r)||G5(0,e,a,r)))return!0}return cd(r,t[0])&&cd(r,t[1])}function jx(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),l,s=dt(o.get("x"),n.getWidth()),u=dt(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))l=[s,u];else{if(a.getMarkerPosition)l=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=i.dimensions,h=r.get(c[0],t),d=r.get(c[1],t);l=i.dataToPoint([h,d])}if(Sl(i,"cartesian2d")){var p=i.getAxis("x"),g=i.getAxis("y"),c=i.dimensions;Ym(r.get(c[0],t))?l[0]=p.toGlobalCoord(p.getExtent()[e?0:1]):Ym(r.get(c[1],t))&&(l[1]=g.toGlobalCoord(g.getExtent()[e?0:1]))}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u)}r.setItemLayout(t,l)}var Odt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Si.getMarkerModelFromSeries(i,"markLine");if(o){var l=o.getData(),s=py(o).from,u=py(o).to;s.each(function(c){jx(s,c,!0,i,n),jx(u,c,!1,i,n)}),l.each(function(c){l.setItemLayout(c,[s.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,l=e.id,s=e.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,new RA);this.group.add(c.group);var h=Ndt(o,e,a),d=h.from,p=h.to,g=h.line;py(a).from=d,py(a).to=p,a.setData(g);var m=a.get("symbol"),_=a.get("symbolSize"),S=a.get("symbolRotate"),x=a.get("symbolOffset");lt(m)||(m=[m,m]),lt(_)||(_=[_,_]),lt(S)||(S=[S,S]),lt(x)||(x=[x,x]),h.from.each(function(C){w(d,C,!0),w(p,C,!1)}),g.each(function(C){var A=g.getItemModel(C),M=A.getModel("lineStyle").getLineStyle();g.setItemLayout(C,[d.getItemLayout(C),p.getItemLayout(C)]);var L=A.get("z2");M.stroke==null&&(M.stroke=d.getItemVisual(C,"style").fill),g.setItemVisual(C,{z2:wt(L,0),fromSymbolKeepAspect:d.getItemVisual(C,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(C,"symbolOffset"),fromSymbolRotate:d.getItemVisual(C,"symbolRotate"),fromSymbolSize:d.getItemVisual(C,"symbolSize"),fromSymbol:d.getItemVisual(C,"symbol"),toSymbolKeepAspect:p.getItemVisual(C,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(C,"symbolOffset"),toSymbolRotate:p.getItemVisual(C,"symbolRotate"),toSymbolSize:p.getItemVisual(C,"symbolSize"),toSymbol:p.getItemVisual(C,"symbol"),style:M})}),c.updateData(g),h.line.eachItemGraphicEl(function(C){zt(C).dataModel=a,C.traverse(function(A){zt(A).dataModel=a})});function w(C,A,M){var L=C.getItemModel(A);jx(C,A,M,e,i);var E=L.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=Md(s,"color")),C.setItemVisual(A,{symbolKeepAspect:L.get("symbolKeepAspect"),symbolOffset:wt(L.get("symbolOffset",!0),x[M?0:1]),symbolRotate:wt(L.get("symbolRotate",!0),S[M?0:1]),symbolSize:wt(L.get("symbolSize"),_[M?0:1]),symbol:wt(L.get("symbol",!0),m[M?0:1]),style:E})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t})(hM);function Ndt(r,t,e){var a;r?a=ut(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return it(it({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ea(a,e),i=new ea(a,e),o=new ea([],e),l=ut(e.get("data"),Gt(Rdt,t,r,e));r&&(l=he(l,Gt(Idt,r)));var s=X7(!!r,a);return n.initData(ut(l,function(u){return u[0]}),null,s),i.initData(ut(l,function(u){return u[1]}),null,s),o.initData(ut(l,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function zdt(r){r.registerComponentModel(Edt),r.registerComponentView(Odt),r.registerPreprocessor(function(t){fM(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Pdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(Si),gy=$t(),kdt=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=ud(r,n),l=ud(r,i),s=o.coord,u=l.coord;s[0]=Br(s[0],-1/0),s[1]=Br(s[1],-1/0),u[0]=Br(u[0],1/0),u[1]=Br(u[1],1/0);var c=r2([{},o,l]);return c.coord=[o.coord,l.coord],c.x0=o.x,c.y0=o.y,c.x1=l.x,c.y1=l.y,c}};function jm(r){return!isNaN(r)&&!isFinite(r)}function H5(r,t,e,a){var n=1-r;return jm(t[n])&&jm(e[n])}function Bdt(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Sl(r,"cartesian2d")?e&&a&&(H5(1,e,a)||H5(0,e,a))?!0:Cdt(r,n,i):cd(r,n)||cd(r,i)}function U5(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),l,s=dt(o.get(e[0]),n.getWidth()),u=dt(o.get(e[1]),n.getHeight());if(!isNaN(s)&&!isNaN(u))l=[s,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),d=i.clampData(c),p=i.clampData(h),g=[];e[0]==="x0"?g[0]=d[0]>p[0]?h[0]:c[0]:g[0]=d[0]>p[0]?c[0]:h[0],e[1]==="y0"?g[1]=d[1]>p[1]?h[1]:c[1]:g[1]=d[1]>p[1]?c[1]:h[1],l=a.getMarkerPosition(g,e,!0)}else{var m=r.get(e[0],t),_=r.get(e[1],t),S=[m,_];i.clampData&&i.clampData(S,S),l=i.dataToPoint(S,!0)}if(Sl(i,"cartesian2d")){var x=i.getAxis("x"),w=i.getAxis("y"),m=r.get(e[0],t),_=r.get(e[1],t);jm(m)?l[0]=x.toGlobalCoord(x.getExtent()[e[0]==="x0"?0:1]):jm(_)&&(l[1]=w.toGlobalCoord(w.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u)}return l}var F5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Vdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Si.getMarkerModelFromSeries(i,"markArea");if(o){var l=o.getData();l.each(function(s){var u=ut(F5,function(h){return U5(l,s,h,i,n)});l.setItemLayout(s,u);var c=l.getItemGraphicEl(s);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,l=e.id,s=e.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,{group:new At});this.group.add(c.group),this.markKeep(c);var h=Gdt(o,e,a);a.setData(h),h.each(function(d){var p=ut(F5,function(I){return U5(h,d,I,e,i)}),g=o.getAxis("x").scale,m=o.getAxis("y").scale,_=g.getExtent(),S=m.getExtent(),x=[g.parse(h.get("x0",d)),g.parse(h.get("x1",d))],w=[m.parse(h.get("y0",d)),m.parse(h.get("y1",d))];un(x),un(w);var C=!(_[0]>x[1]||_[1]w[1]||S[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",bottom:Q.size.m,align:"auto",backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(qt),Mc=Gt,_C=O,yy=At,$7=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new yy),this.group.add(this._selectorGroup=new yy),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),l=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&l==="vertical"?"right":"left");var s=e.get("selector",!0),u=e.get("selectorPosition",!0);s&&(!u||u==="auto")&&(u=l==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,s,l,u);var c=gr(e,n).refContainer,h=e.getBoxLayoutParams(),d=e.get("padding"),p=Pe(h,c,d),g=this.layoutInner(e,o,p,i,s,u),m=Pe(Et({width:g.width,height:g.height},h),c,d);this.group.x=m.x-g.x,this.group.y=m.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=P7(g,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,l,s){var u=this.getContentGroup(),c=bt(),h=a.get("selectedMode"),d=a.get("triggerEvent"),p=[];n.eachRawSeries(function(g){!g.get("legendHoverLink")&&p.push(g.id)}),_C(a.getData(),function(g,m){var _=this,S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` -`)){var x=new yy;x.newline=!0,u.add(x);return}var w=n.getSeriesByName(S)[0];if(!c.get(S))if(w){var C=w.getData(),A=C.getVisual("legendLineStyle")||{},M=C.getVisual("legendIcon"),L=C.getVisual("style"),E=this._createItem(w,S,m,g,a,e,A,L,M,h,i);E.on("click",Mc(Y5,S,null,i,p)).on("mouseover",Mc(SC,w.name,null,i,p)).on("mouseout",Mc(bC,w.name,null,i,p)),n.ssr&&E.eachChild(function(R){var I=zt(R);I.seriesIndex=w.seriesIndex,I.dataIndex=m,I.ssrType="legend"}),d&&E.eachChild(function(R){_.packEventData(R,a,w,m,S)}),c.set(S,!0)}else n.eachRawSeries(function(R){var I=this;if(!c.get(S)&&R.legendVisualProvider){var N=R.legendVisualProvider;if(!N.containName(S))return;var B=N.indexOfName(S),P=N.getItemVisual(B,"style"),F=N.getItemVisual(B,"legendIcon"),H=ga(P.fill);H&&H[3]===0&&(H[3]=.2,P=it(it({},P),{fill:ci(H,"rgba")}));var k=this._createItem(R,S,m,g,a,e,{},P,F,h,i);k.on("click",Mc(Y5,null,S,i,p)).on("mouseover",Mc(SC,null,S,i,p)).on("mouseout",Mc(bC,null,S,i,p)),n.ssr&&k.eachChild(function(j){var Y=zt(j);Y.seriesIndex=R.seriesIndex,Y.dataIndex=m,Y.ssrType="legend"}),d&&k.eachChild(function(j){I.packEventData(j,a,R,m,S)}),c.set(S,!0)}},this)},this),o&&this._createSelector(o,a,i,l,s)},t.prototype.packEventData=function(e,a,n,i,o){var l={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};zt(e).eventData=l},t.prototype._createSelector=function(e,a,n,i,o){var l=this.getSelectorGroup();_C(e,function(u){var c=u.type,h=new ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});l.add(h);var d=a.getModel("selectorLabel"),p=a.getModel(["emphasis","selectorLabel"]);br(h,{normal:d,emphasis:p},{defaultText:u.title}),Ys(h)})},t.prototype._createItem=function(e,a,n,i,o,l,s,u,c,h,d){var p=e.visualDrawType,g=o.get("itemWidth"),m=o.get("itemHeight"),_=o.isSelected(a),S=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var C=Fdt(c,i,s,u,p,_,d),A=new yy,M=i.getModel("textStyle");if(Ct(e.getLegendIcon)&&(!w||w==="inherit"))A.add(e.getLegendIcon({itemWidth:g,itemHeight:m,icon:c,iconRotate:S,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:x}));else{var L=w==="inherit"&&e.getData().getVisual("symbol")?S==="inherit"?e.getData().getVisual("symbolRotate"):S:0;A.add(Ydt({itemWidth:g,itemHeight:m,icon:c,iconRotate:L,itemStyle:C.itemStyle,symbolKeepAspect:x}))}var E=l==="left"?g+5:-5,R=l,I=o.get("formatter"),N=a;pt(I)&&I?N=I.replace("{name}",a??""):Ct(I)&&(N=I(a));var B=_?M.getTextColor():i.get("inactiveColor");A.add(new ae({style:we(M,{text:N,x:E,y:m/2,fill:B,align:R,verticalAlign:"middle"},{inheritColor:B})}));var P=new Xt({shape:A.getBoundingRect(),style:{fill:"transparent"}}),F=i.getModel("tooltip");return F.get("show")&&vo({el:P,componentModel:o,itemName:a,itemTooltipOption:F.option}),A.add(P),A.eachChild(function(H){H.silent=!0}),P.silent=!h,this.getContentGroup().add(A),Ys(A),A.__legendDataIndex=n,A},t.prototype.layoutInner=function(e,a,n,i,o,l){var s=this.getContentGroup(),u=this.getSelectorGroup();Ws(e.get("orient"),s,e.get("itemGap"),n.width,n.height);var c=s.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),s.markRedraw(),o){Ws("horizontal",u,e.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],g=e.get("selectorButtonGap",!0),m=e.getOrient().index,_=m===0?"width":"height",S=m===0?"height":"width",x=m===0?"y":"x";l==="end"?p[m]+=c[_]+g:h[m]+=d[_]+g,p[1-m]+=c[S]/2-d[S]/2,u.x=p[0],u.y=p[1],s.x=h[0],s.y=h[1];var w={x:0,y:0};return w[_]=c[_]+g+d[_],w[S]=Math.max(c[S],d[S]),w[x]=Math.min(0,d[x]+p[1-m]),w}else return s.x=h[0],s.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Oe);function Fdt(r,t,e,a,n,i,o){function l(_,S){_.lineWidth==="auto"&&(_.lineWidth=S.lineWidth>0?2:0),_C(_,function(x,w){_[w]==="inherit"&&(_[w]=S[w])})}var s=t.getModel("itemStyle"),u=s.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=s.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:nf(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),l(u,a);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(l(p,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),p.stroke==="auto"&&(p.stroke=a.fill),!i){var g=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=g==="auto"?a.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Ydt(r){var t=r.icon||"roundRect",e=nr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=Q.color.neutral00,e.style.lineWidth=2),e}function Y5(r,t,e,a){bC(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),SC(r,t,e,a)}function Z7(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],_=[-p.x,-p.y];a||(_[i]=c[u]);var S=[0,0],x=[-g.x,-g.y],w=wt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var C=e.get("pageButtonPosition",!0);C==="end"?x[i]+=n[o]-g[o]:S[i]+=g[o]+w}x[1-i]+=p[l]/2-g[l]/2,c.setPosition(_),h.setPosition(S),d.setPosition(x);var A={x:0,y:0};if(A[o]=m?n[o]:p[o],A[l]=Math.max(p[l],g[l]),A[s]=Math.min(0,g[s]+x[1-i]),h.__rectSize=n[o],m){var M={x:0,y:0};M[o]=Math.max(n[o]-g[o]-w,0),M[l]=A[l],h.setClipPath(new Xt({shape:M})),h.__rectSize=M[o]}else d.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(e);return L.pageIndex!=null&&oe(c,{x:L.contentPosition[0],y:L.contentPosition[1]},m?e:null),this._updatePageInfoView(e,L),A},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",d=a[h]!=null,p=n.childOfName(c);p&&(p.setStyle("fill",d?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),l=a.pageIndex,s=l!=null?l+1:0,u=a.pageCount;i&&o&&i.setStyle("text",pt(o)?o.replace("{current}",s==null?"":s+"").replace("{total}",u==null?"":u+""):o({current:s,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,l=Wx[o],s=Xx[o],u=this._findTargetItemIndex(a),c=n.children(),h=c[u],d=c.length,p=d?1:0,g={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var m=C(h);g.contentPosition[o]=-m.s;for(var _=u+1,S=m,x=m,w=null;_<=d;++_)w=C(c[_]),(!w&&x.e>S.s+i||w&&!A(w,S.s))&&(x.i>S.i?S=x:S=w,S&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=S.i),++g.pageCount)),x=w;for(var _=u-1,S=m,x=m,w=null;_>=-1;--_)w=C(c[_]),(!w||!A(x,w.s))&&S.i=L&&M.s<=L+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,l){var s=o.__legendDataIndex;i==null&&s!=null&&(i=l),s===e&&(a=l)}),a??i},t.type="legend.scroll",t})($7);function Zdt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function qdt(r){Yt(q7),r.registerComponentModel(Xdt),r.registerComponentView($dt),Zdt(r)}function Kdt(r){Yt(q7),Yt(qdt)}var Qdt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Ll(sd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(sd),vM=$t();function Jdt(r,t,e){vM(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function tpt(r,t){for(var e=vM(r).coordSysRecordMap,a=e.keys(),n=0;ni[n+a]&&(a=u),o=o&&s.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function ipt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=vM(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=bt());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=O7(i);O(o.infoList,function(l){var s=l.model.uid,u=n.get(s)||n.set(s,ept(e,l.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=bt());c.set(i.uid,{dzReferCoordSysInfo:l,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,l,s=i.dataZoomInfoMap;if(s){var u=s.keys()[0];u!=null&&(l=s.get(u))}if(!l){K7(n,i);return}var c=npt(s,i,e);o.enable(c.controlType,c.opt),Mf(i,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var opt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Jdt(n,e,{pan:yt($x.pan,this),zoom:yt($x.zoom,this),scrollMove:yt($x.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){tpt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(iM),$x={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var l=Zx[t](null,[a.originX,a.originY],o,e,r),s=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-s)*u+s,i[1]=(i[1]-s)*u+s;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(bl(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:$5(function(r,t,e,a,n,i){var o=Zx[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:$5(function(r,t,e,a,n,i){var o=Zx[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function $5(r){return function(t,e,a,n){var i=this.range,o=i.slice(),l=t.axisModels[0];if(l){var s=r(o,l,t,e,a,n);if(bl(s,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Zx={grid:function(r,t,e,a,n){var i=e.axis,o={},l=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=l.width,o.pixelStart=l.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=l.height,o.pixelStart=l.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},l=n.model.coordinateSystem,s=l.getRadiusAxis().getExtent(),u=l.getAngleAxis().getExtent();return r=r?l.pointToCoord(r):[0,0],t=l.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=s[1]-s[0],o.pixelStart=s[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),l={};return r=r||[0,0],i.orient==="horizontal"?(l.pixel=t[0]-r[0],l.pixelLength=o.width,l.pixelStart=o.x,l.signal=i.inverse?1:-1):(l.pixel=t[1]-r[1],l.pixelLength=o.height,l.pixelStart=o.y,l.signal=i.inverse?-1:1),l}};function Q7(r){oM(r),r.registerComponentModel(Qdt),r.registerComponentView(opt),ipt(r)}var lpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ll(sd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(sd),ov=Xt,spt=1,qx=30,upt=7,lv="horizontal",Z5="vertical",cpt=5,fpt=["line","bar","candlestick","scatter"],hpt={easing:"cubicOut",duration:100,delay:0},vpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=yt(this._onBrush,this),this._onBrushEnd=yt(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Mf(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Xv(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new At;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?upt:0,o=gr(e,a).refContainer,l=this._findCoordRect(),s=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===lv?{right:o.width-l.x-l.width,top:o.height-qx-s-i,width:l.width,height:qx}:{right:s,top:l.y,width:qx,height:l.height},c=uu(e.option);O(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=u[d])});var h=Pe(c,o);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===Z5&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),l=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(n===lv&&!o?{scaleY:s?1:-1,scaleX:1}:n===lv&&o?{scaleY:s?1:-1,scaleX:-1}:n===Z5&&!o?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([l]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new ov({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new ov({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:yt(this._onClickPanel,this)}),l=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",l.on("mousemove",this._onBrush),l.on("mouseup",this._onBrushEnd)):(l.off("mousemove",this._onBrush),l.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),l=i.getShadowDim&&i.getShadowDim(),s=l&&o.getDimensionInfo(l)?i.getShadowDim():e.otherDim;if(s==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(e.thisDim),d=o.getDataExtent(s),p=(d[1]-d[0])*.3;d=[d[0]-p,d[1]+p];var g=[0,a[1]],m=[0,a[0]],_=[[a[0],0],[0,0]],S=[],x=m[1]/Math.max(1,o.count()-1),w=a[0]/(h[1]-h[0]),C=e.thisAxis.type==="time",A=-x,M=Math.round(o.count()/a[0]),L;o.each([e.thisDim,s],function(B,P,F){if(M>0&&F%M){C||(A+=x);return}A=C?(+B-h[0])*w:A+x;var H=P==null||isNaN(P)||P==="",k=H?0:fe(P,d,g,!0);H&&!L&&F?(_.push([_[_.length-1][0],0]),S.push([S[S.length-1][0],0])):!H&&L&&(_.push([A,0]),S.push([A,0])),H||(_.push([A,k]),S.push([A,k])),L=H}),u=this._shadowPolygonPts=_,c=this._shadowPolylinePts=S}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var E=this.dataZoomModel;function R(B){var P=E.getModel(B?"selectedDataBackground":"dataBackground"),F=new At,H=new $r({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Vr({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return F.add(H),F.add(k),F}for(var I=0;I<3;I++){var N=R(I===1);this._displayables.sliderGroup.add(N),this._displayables.dataShadowSegs.push(N)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,l){var s=e.getAxisProxy(o,l).getTargetSeriesModels();O(s,function(u){if(!n&&!(a!==!0&&Ht(fpt,u.get("type"))<0)){var c=i.getComponent(sl(o),l).axis,h=dpt(o),d,p=u.coordinateSystem;h!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),h=u.getData().mapDimension(h);var g=u.getData().mapDimension(o);n={thisAxis:c,series:u,thisDim:g,otherDim:h,otherAxisInverse:d}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,l=this._size,s=this.dataZoomModel,u=this.api,c=s.get("borderRadius")||0,h=s.get("brushSelect"),d=a.filler=new ov({silent:h,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new ov({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:c},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:spt,fill:Q.color.transparent}})),O([0,1],function(w){var C=s.get("handleIcon");!vm[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var A=nr(C,-1,0,2,2,null,!0);A.attr({cursor:ppt(this._orient),draggable:!0,drift:yt(this._onDragMove,this,w),ondragend:yt(this._onDragEnd,this),onmouseover:yt(this._showDataInfo,this,!0),onmouseout:yt(this._showDataInfo,this,!1),z2:5});var M=A.getBoundingRect(),L=s.get("handleSize");this._handleHeight=dt(L,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,A.setStyle(s.getModel("handleStyle").getItemStyle()),A.style.strokeNoScale=!0,A.rectHover=!0,A.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Ys(A);var E=s.get("handleColor");E!=null&&(A.style.fill=E),o.add(n[w]=A);var R=s.getModel("textStyle"),I=s.get("handleLabel")||{},N=I.show||!1;e.add(i[w]=new ae({silent:!0,invisible:!N,style:we(R,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:R.getTextColor(),font:R.getFont()}),z2:10}))},this);var p=d;if(h){var g=dt(s.get("moveHandleSize"),l[1]),m=a.moveHandle=new Xt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:g}}),_=g*.8,S=a.moveHandleIcon=nr(s.get("moveHandleIcon"),-_/2,-_/2,_,_,Q.color.neutral00,!0);S.silent=!0,S.y=l[1]+g/2-.5,m.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(l[1]/2,Math.max(g,10));p=a.moveZone=new Xt({invisible:!0,shape:{y:l[1]-x,height:g+x}}),p.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(S),o.add(p)}p.attr({draggable:!0,cursor:"default",drift:yt(this._onDragMove,this,"all"),ondragstart:yt(this._showDataInfo,this,!0),ondragend:yt(this._onDragEnd,this),onmouseover:yt(this._showDataInfo,this,!0),onmouseout:yt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[fe(e[0],[0,100],a,!0),fe(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),l=n.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];bl(a,i,o,n.get("zoomLock")?"all":e,l.minSpan!=null?fe(l.minSpan,s,o,!0):null,l.maxSpan!=null?fe(l.maxSpan,s,o,!0):null);var u=this._range,c=this._range=un([fe(i[0],o,s,!0),fe(i[1],o,s,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=un(n.slice()),o=this._size;O([0,1],function(p){var g=a.handles[p],m=this._handleHeight;g.attr({scaleX:m/2,scaleY:m/2,x:n[p]+(p?-1:1),y:o[1]/2-m/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var l={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(l),a.moveZone.setShape(l),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",l.x+l.width/2));for(var s=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;ca[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,l=this._updateInterval("all",n[0]-o);this._updateView(),l&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new Lt(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),l=[0,100],s=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();bl(0,s,o,0,u.minSpan!=null?fe(u.minSpan,l,o,!0):null,u.maxSpan!=null?fe(u.maxSpan,l,o,!0):null),this._range=un([fe(s[0],o,l,!0),fe(s[1],o,l,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ro(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ov({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var l=this._brushStart,s=this._displayables.sliderGroup,u=s.transformCoordToLocal(e,a),c=s.transformCoordToLocal(l.x,l.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?hpt:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=O7(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(iM);function dpt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function ppt(r){return r==="vertical"?"ns-resize":"ew-resize"}function J7(r){r.registerComponentModel(lpt),r.registerComponentView(vpt),oM(r)}function gpt(r){Yt(Q7),Yt(J7)}var t9={get:function(r,t,e){var a=Mt((ypt[r]||{})[t]);return e&<(a)?a[a.length-1]:a}},ypt={color:{active:["#006edd","#e0ffff"],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},q5=Sr.mapVisual,mpt=Sr.eachVisual,_pt=lt,K5=O,Spt=un,bpt=fe,Wm=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&F7(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=yt(e,this),this.controllerVisuals=pC(this.option.controller,a,e),this.targetVisuals=pC(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Sf(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return ut(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){O(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,l=this.dataBound,s=i.formatter,u;n=n||["<",">"],lt(e)&&(e=e.slice(),u=!0);var c=a?e:u?[h(e[0]),h(e[1])]:h(e);if(pt(s))return s.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Ct(s))return u?s(e[0],e[1]):s(e);if(u)return e[0]===l[0]?n[0]+" "+c[1]:e[1]===l[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(d){return d===l[0]?"min":d===l[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=Spt([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],l=e.getDimensionInfo(o);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});Ft(i,n),Ft(o,n);var l=this.isCategory();s.call(this,i),s.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function s(h){_pt(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,d,p){var g=h[d],m=h[p];g&&!m&&(m=h[p]={},K5(g,function(_,S){if(Sr.isValidType(S)){var x=t9.get(S,"inactive",l);x!=null&&(m[S]=x,S==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function c(h){var d=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,p=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),m=this.getItemSymbol(),_=m||"roundRect";K5(this.stateList,function(S){var x=this.itemSize,w=h[S];w||(w=h[S]={color:l?g:[g]}),w.symbol==null&&(w.symbol=d&&Mt(d)||(l?_:[_])),w.symbolSize==null&&(w.symbolSize=p&&Mt(p)||(l?x[0]:[x[0],x[0]])),w.symbol=q5(w.symbol,function(M){return M==="none"?_:M});var C=w.symbolSize;if(C!=null){var A=-1/0;mpt(C,function(M){M>A&&(A=M)}),w.symbolSize=q5(C,function(M){return bpt(M,[0,A],[0,x[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t})(qt),Q5=[20,140],xpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Q5[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Q5[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):lt(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),O(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=un((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(l,s){e[0]<=l&&l<=e[1]&&i.push(s)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=J5(this,"outOfRange",this.getExtent()),n=J5(this,"inRange",this.option.range.slice()),i=[];function o(p,g){i.push({value:p,color:e(p,g)})}for(var l=0,s=0,u=n.length,c=a.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",a),offset:l/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new At(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,l=n.handleLabels,s=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);wpt([0,1],function(h){var d=o[h];d.setStyle("fill",a.handlesColor[h]),d.y=e[h];var p=Zn(e[h],[0,s[1]],u,!0),g=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=g/s[0],d.x=s[0]-g/2;var m=Dn(n.handleLabelPoints[h],js(d,this.group));if(this._orient==="horizontal"){var _=c==="left"||c==="top"?(s[0]-g)/2:(s[0]-g)/-2;m[1]+=_}l[h].setStyle({x:m[0],y:m[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,l=o.getExtent(),s=o.itemSize,u=[0,s[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",d),g=this.getControllerVisual(e,"symbolSize"),m=Zn(e,l,u,!0),_=s[0]-g/2,S={x:h.x,y:h.y};h.y=m,h.x=_;var x=Dn(c.indicatorLabelPoint,js(h,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var C=this._applyTransform("left",c.mainGroup),A=this._orient,M=A==="horizontal";w.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:M?C:"middle",align:M?"center":C});var L={x:_,y:m,style:{fill:p}},E={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var R={duration:100,easing:"cubicInOut",additive:!0};h.x=S.x,h.y=S.y,h.animateTo(L,R),w.animateTo(E,R)}else h.attr(L),w.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var N=0;No[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",s):h[1]===1/0?this._showIndicator(c,h[0],"> ",s):this._showIndicator(c,c,"≈ ",s));var d=this._hoverLinkDataIndices,p=[];(a||aB(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var g=mZ(d,p);this._dispatchHighDown("downplay",Uy(g[0],n)),this._dispatchHighDown("highlight",Uy(g[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Ps(e.target,function(s){var u=zt(s);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),l=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Rpt(r,t,e,a){for(var n=t.targetVisuals[a],i=Sr.prepareVisualTypes(n),o={color:Md(r.getData(),"color")},l=0,s=i.length;l0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Dpt,Lpt),O(Ept,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Ipt))}function n9(r){r.registerComponentModel(xpt),r.registerComponentView(Apt),a9(r)}var Opt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],Npt[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,l){n==="categories"?(o.mappingMethod="category",o.categories=Mt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ut(this._pieceList,function(s){return s=Mt(s),l!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Sr.listVisualTypes(),i=this.isCategory();O(e.pieces,function(l){O(n,function(s){l.hasOwnProperty(s)&&(a[s]=1)})}),O(a,function(l,s){var u=!1;O(this.stateList,function(c){u=u||o(e,c,s)||o(e.target,c,s)},this),!u&&O(this.stateList,function(c){(e[c]||(e[c]={}))[s]=t9.get(s,c==="inRange"?"active":"inactive",i)})},this);function o(l,s,u){return l&&l[s]&&l[s].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,O(i,function(s,u){var c=this.getSelectedMapKey(s);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var l=!1;O(i,function(s,u){var c=this.getSelectedMapKey(s);o[c]&&(l?o[c]=!1:l=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Mt(e)},t.prototype.getValueState=function(e){var a=Sr.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],l=i.getData();l.each(this.getDataDimensionIndex(l),function(s,u){var c=Sr.findPieceIndex(s,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,h){var d=i.getRepresentValue({interval:c});h||(h=i.getValueState(d));var p=e(d,h);c[0]===-1/0?n[0]=p:c[1]===1/0?n[1]=p:a.push({value:c[0],color:p},{value:c[1],color:p})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var s=l[0].interval[0];s!==-1/0&&l.unshift({interval:[-1/0,s]}),s=l[l.length-1].interval[1],s!==1/0&&l.push({interval:[s,1/0]})}var u=-1/0;return O(l,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=Ll(Wm.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(Wm),Npt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,l=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function lB(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var zpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),l=a.itemSize,s=this._getViewData(),u=s.endsText,c=Br(a.get("showLabel",!0),!u),h=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],l,c,o),O(s.viewPieceList,function(d){var p=d.piece,g=new At;g.onclick=yt(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var m=a.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,l[0],l[1]],h),c){var _=this.visualMapModel.getValueState(m),S=i.get("align")||o;g.add(new ae({style:we(i,{x:S==="right"?-n:l[0]+n,y:l[1]/2,text:p.text,verticalAlign:i.get("verticalAlign")||"middle",align:S,opacity:wt(i.get("opacity"),_==="outOfRange"?.5:1)}),silent:h}))}e.add(g)},this),u&&this._renderEndsText(e,u[1],l,c,o),Ws(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var l=n.visualMapModel;l.option.hoverLink&&n.api.dispatchAction({type:o,batch:Uy(l.findTargetDataIndices(a),l)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return r9(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var l=new At,s=this.visualMapModel.textStyleModel;l.add(new ae({style:we(s,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(l)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=ut(e.getPieceList(),function(l,s){return{piece:l,indexInModelPieceList:s}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=nr(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=Mt(n.selected),l=a.getSelectedMapKey(e);i==="single"||i===!0?(o[l]=!0,O(o,function(s,u){o[u]=u===l})):o[l]=!o[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(e9);function i9(r){r.registerComponentModel(Opt),r.registerComponentView(zpt),a9(r)}function Ppt(r){Yt(n9),Yt(i9)}var kpt=(function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:EV(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r})(),Bpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new kpt(this);if(this._target=null,this.ecModel.eachSeries(function(n){IP(n,null)}),this.shouldShow()){var a=this.getTarget();IP(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Q.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Q.color.neutral30,borderColor:Q.color.neutral40,opacity:.3},z:10},t})(qt),Vpt=(function(r){J(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new pu),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),l=o.getItemStyle();l.fill==null&&(l.fill=a.get("backgroundColor")||Q.color.neutral00);var s=gr(e,n).refContainer,u=Pe(JV(e,!0),s),c=l.lineWidth||0,h=this._contentRect=Js(u.clone(),c/2,!0,!0),d=new At;i.add(d),d.setClipPath(new Xt({shape:h.plain()}));var p=this._targetGroup=new At;d.add(p);var g=u.plain();g.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Xt({style:l,shape:g,silent:!1,cursor:"grab"}));var m=e.getModel("windowStyle"),_=m.getShallow("borderRadius",!0);d.add(this._windowRect=new Xt({shape:{x:0,y:0,width:0,height:0,r:_},style:m.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),uB(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),uB(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,l=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(l.x,l.y,l.width,l.height);var s=Pe({left:"center",top:"center",aspect:l.width/l.height},i);n.setViewRect(s.x,s.y,s.width,s.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Rn([],e.targetTrans),n=ui([],this._coordSys.transform,a);this._transThisToTarget=Rn([],n);var i=e.viewportRect;i?i=i.clone():i=new It(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,l=o.shape.r;o.setShape(Et({r:l},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new du(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,l,s){return a._contentRect.contain(l,s)}}}),i.off("pan").off("zoom").on("pan",yt(this._onPan,this)).on("zoom",yt(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=Ze([],[e.oldX,e.oldY],a),i=Ze([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(sB(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=Ze([],[e.originX,e.originY],a);this._api.dispatchAction(sB(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t})(Oe);function sB(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,it(a,t),a}function uB(r,t){var e=tu(r);R0(t.group,e.z,e.zlevel)}function Gpt(r){r.registerComponentModel(Bpt),r.registerComponentView(Vpt)}var Hpt={label:{enabled:!0},decal:{show:!1}},cB=$t(),Upt={};function Fpt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Mt(Hpt);Ft(a.label,r.getLocaleModel().get("aria"),!1),Ft(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var h=bt();r.eachSeries(function(d){if(!d.isColorBySeries()){var p=h.get(d.type);p||(p={},h.set(d.type,p)),cB(d).scope=p}}),r.eachRawSeries(function(d){if(r.isSeriesFiltered(d))return;if(Ct(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var x=sT(d.ecModel,d.name,Upt,r.getSeriesCount()),w=p.getVisual("decal");p.setVisual("decal",C(w,x))}else{var g=d.getRawData(),m={},_=cB(d).scope;p.each(function(A){var M=p.getRawIndex(A);m[M]=A});var S=g.count();g.each(function(A){var M=m[A],L=g.getName(A)||A+"",E=sT(d.ecModel,L,_,S),R=p.getItemVisual(M,"decal");p.setItemVisual(M,"decal",C(R,E))})}function C(A,M){var L=A?it(it({},M),A):M;return L.dirty=!0,L}})}}function i(){var u=t.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=Et(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var d=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,g=h.get(["series","maxCount"])||10,m=Math.min(d,g),_;if(!(d<1)){var S=l();if(S){var x=h.get(["general","withTitle"]);_=o(x,{title:S})}else _=h.get(["general","withoutTitle"]);var w=[],C=d>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);_+=o(C,{seriesCount:d}),r.eachSeries(function(E,R){if(R1?h.get(["series","multiple",B]):h.get(["series","single",B]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:s(E.subType)});var P=E.getData();if(P.count()>p){var F=h.get(["data","partialData"]);I+=o(F,{displayCnt:p})}else I+=h.get(["data","allData"]);for(var H=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),j=h.get(["data","excludeDimensionId"]),Y=[],$=0;$":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wpt=(function(){function r(t){var e=this._condVal=pt(t)?new RegExp(t):EX(t)?t:null;if(e==null){var a="";le(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return pt(e)?this._condVal.test(t):ee(e)?this._condVal.test(t+""):!1},r})(),Xpt=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),$pt=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[P,F]}function c(P,F,H,k){Uc(P,H)&&Uc(F,k)||n.push(P,F,H,k,H,k)}function h(P,F,H,k,j,Y){var $=Math.abs(F-P),q=Math.tan($/4)*4/3,G=FE:N2&&a.push(n),a}function wC(r,t,e,a,n,i,o,l,s,u){if(Uc(r,e)&&Uc(t,a)&&Uc(n,o)&&Uc(i,l)){s.push(o,l);return}var c=2/u,h=c*c,d=o-r,p=l-t,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var m=e-r,_=a-t,S=n-o,x=i-l,w=m*m+_*_,C=S*S+x*x;if(w=0&&E=0){s.push(o,l);return}var R=[],I=[];yl(r,e,n,o,.5,R),yl(t,a,i,l,.5,I),wC(R[0],I[0],R[1],I[1],R[2],I[2],R[3],I[3],s,u),wC(R[4],I[4],R[5],I[5],R[6],I[6],R[7],I[7],s,u)}function sgt(r,t){var e=xC(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=l9([s,u],c?0:1,t),d=(c?l:u)/h.length,p=0;pn,o=l9([a,n],i?0:1,t),l=i?"width":"height",s=i?"height":"width",u=i?"x":"y",c=i?"y":"x",h=r[l]/o.length,d=0;d1?null:new Lt(m*s+r,m*u+t)}function fgt(r,t,e){var a=new Lt;Lt.sub(a,e,t),a.normalize();var n=new Lt;Lt.sub(n,r,t);var i=n.dot(a);return i}function Lc(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function hgt(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=c.x=l+i/2,u.y=s,c.y=s+o):(u.y=c.y=s+o/2,u.x=l,c.x=l+i),hgt(t,u,c)}function Xm(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Xm(r,i[0],n,a),Xm(r,i[1],e-n,a)}return a}function vgt(r,t){for(var e=[],a=0;a0;u/=2){var c=0,h=0;(r&u)>0&&(c=1),(t&u)>0&&(h=1),l+=u*u*(3*c^h),h===0&&(c===1&&(r=u-1-r,t=u-1-t),s=r,r=t,t=s)}return l}function qm(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=ut(r,function(l){var s=l.getBoundingRect(),u=l.getComputedTransform(),c=s.x+s.width/2+(u?u[4]:0),h=s.y+s.height/2+(u?u[5]:0);return t=Math.min(c,t),e=Math.min(h,e),a=Math.max(c,a),n=Math.max(h,n),[c,h]}),o=ut(i,function(l,s){return{cp:l,z:xgt(l[0],l[1],t,e,a,n),path:r[s]}});return o.sort(function(l,s){return l.z-s.z}).map(function(l){return l.path})}function c9(r){return ggt(r.path,r.count)}function TC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wgt(r,t,e){var a=[];function n(A){for(var M=0;M=0;n--)if(!e[n].many.length){var s=e[l].many;if(s.length<=1)if(l)l=0;else return e;var i=s.length,u=Math.ceil(i/2);e[n].many=s.slice(u,i),e[l].many=s.slice(0,u),l++}return e}var Cgt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var l=a.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},o),u,c;_B(r)&&(u=r,c=t),_B(t)&&(u=t,c=r);function h(S,x,w,C,A){var M=S.many,L=S.one;if(M.length===1&&!A){var E=x?M[0]:L,R=x?L:M[0];if($m(E))h({many:[E],one:R},!0,w,C,!0);else{var I=l?Et({delay:l(w,C)},s):s;pM(E,R,I),i(E,R,E,R,I)}}else for(var N=Et({dividePath:Cgt[e],individualDelay:l&&function(j,Y,$,q){return l(j+w,C)}},s),B=x?wgt(M,L,N):Tgt(L,M,N),P=B.fromIndividuals,F=B.toIndividuals,H=P.length,k=0;kt.length,p=u?SB(c,u):SB(d?t:r,[d?r:t]),g=0,m=0;mf9))for(var i=a.getIndices(),o=0;o0&&M.group.traverse(function(E){E instanceof Zt&&!E.animators.length&&E.animateFrom({style:{opacity:0}},L)})})}function CB(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function AB(r){return lt(r)?r.sort().join(","):r}function Jo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Igt(r,t){var e=bt(),a=bt(),n=bt();return O(r.oldSeries,function(i,o){var l=r.oldDataGroupIds[o],s=r.oldData[o],u=CB(i),c=AB(u);a.set(c,{dataGroupId:l,data:s}),lt(u)&&O(u,function(h){n.set(h,{key:c,dataGroupId:l,data:s})})}),O(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),l=i.getData(),s=CB(i),u=AB(s),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Jo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Jo(l),data:l}]});else if(lt(s)){var h=[];O(s,function(g){var m=a.get(g);m.data&&h.push({dataGroupId:m.dataGroupId,divide:Jo(m.data),data:m.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:l,divide:Jo(l)}]})}else{var d=n.get(s);if(d){var p=e.get(d.key);p||(p={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Jo(d.data)}],newSeries:[]},e.set(d.key,p)),p.newSeries.push({dataGroupId:o,data:l,divide:Jo(l)})}}}}),e}function MB(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[l],data:t.oldData[l],divide:Jo(t.oldData[l]),groupIdDim:o.dimension})}),O(be(r.to),function(o){var l=MB(e.updatedSeries,o);if(l>=0){var s=e.updatedSeries[l].getData();i.push({dataGroupId:t.oldDataGroupIds[l],data:s,divide:Jo(s),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&h9(n,i,a)}function Ngt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){O(be(a.seriesTransition),function(n){O(be(n.to),function(i){for(var o=a.updatedSeries,l=0;lo.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=DB,a=LB,n=!0,i=0,o=0;os?i=l.vmin+(t-s)/(u-s)*(l.vmax-l.vmin):i=a+t-e,a=l.vmax,n=!1;break}e=u,a=l.vmax}return n&&(i=a+t-e),i},r})();function Pgt(){return new zgt}var DB=0,LB=0;function kgt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};O(r.breaks,function(l){var s=l.gapParsed;s.type==="tpPrct"&&(e+=s.val);var u=gM(l,t);if(u){var c=u.vmin!==l.vmin,h=u.vmax!==l.vmax,d=u.vmax-u.vmin;if(!(c&&h))if(c||h){var p=c?"S":"E";i[p][s.type].has=!0,i[p][s.type].span=d,i[p][s.type].inExtFrac=d/(l.vmax-l.vmin),i[p][s.type].val=s.val}else a[s.type].span+=d,a[s.type].val+=s.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));O(r.breaks,function(l){var s=l.gapParsed;s.type==="tpPrct"&&(l.gapReal=e!==0?Math.max(o,0)*s.val/e:0),s.type==="tpAbs"&&(l.gapReal=s.val),l.gapReal==null&&(l.gapReal=0)})}function Bgt(r,t,e,a,n,i){r!=="no"&&O(e,function(o){var l=gM(o,i);if(l)for(var s=t.length-1;s>=0;s--){var u=t[s],c=a(u),h=n*3/4;c>l.vmin-h&&ct[0]&&e=0&&o<1-1e-5}O(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var l={breakOption:Mt(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var s=!1;if(pt(o.gap)){var u=sn(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;n(c)||(c=0),l.gapParsed.type="tpPrct",l.gapParsed.val=c,s=!0}}if(!s){var h=t(o.gap);(!isFinite(h)||h<0)&&(h=0),l.gapParsed.type="tpAbs",l.gapParsed.val=h}}if(l.vmin===l.vmax&&(l.gapParsed.type="tpAbs",l.gapParsed.val=0),e&&e.noNegative&&O(["vmin","vmax"],function(p){l[p]<0&&(l[p]=0)}),l.vmin>l.vmax){var d=l.vmax;l.vmax=l.vmin,l.vmin=d}a.push(l)}}),a.sort(function(o,l){return o.vmin-l.vmin});var i=-1/0;return O(a,function(o,l){i>o.vmin&&(a[l]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function yM(r,t){return AC(t)===AC(r)}function AC(r){return r.start+"_\0_"+r.end}function Ggt(r,t,e){var a=[];O(r,function(i,o){var l=t(i);l&&l.type==="vmin"&&a.push([o])}),O(r,function(i,o){var l=t(i);if(l&&l.type==="vmax"){var s=iu(a,function(u){return yM(t(r[u[0]]).parsedBreak.breakOption,l.parsedBreak.breakOption)});s&&s.push(o)}});var n=[];return O(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function Hgt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,l=iu(e,function(h){return yM(h.breakOption,r.break.parsedBreak.breakOption)}),s=a(Math.pow(t,o.vmin),l.vmin),u=a(Math.pow(t,o.vmax),l.vmax),c={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?Je(Math.pow(t,o.vmin+o.gapParsed.val))-s:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:s,vmax:u,gapParsed:c,gapReal:o.gapReal}},i=l[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function Ugt(r,t,e){var a={noNegative:!0},n=CC(r,e,a),i=CC(r,e,a),o=Math.log(t);return i.breaks=ut(i.breaks,function(l){var s=Math.log(l.vmin)/o,u=Math.log(l.vmax)/o,c={type:l.gapParsed.type,val:l.gapParsed.type==="tpAbs"?Math.log(l.vmin+l.gapParsed.val)/o-s:l.gapParsed.val};return{vmin:s,vmax:u,gapParsed:c,gapReal:l.gapReal,breakOption:l.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Fgt={vmin:"start",vmax:"end"};function Ygt(r,t){return t&&(r=r||{},r.break={type:Fgt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function jgt(){LK({createScaleBreakContext:Pgt,pruneTicksByBreak:Bgt,addBreaksToTicks:Vgt,parseAxisBreakOption:CC,identifyAxisBreak:yM,serializeAxisBreakIdentifier:AC,retrieveAxisBreakPairs:Ggt,getTicksLogTransformBreak:Hgt,logarithmicParseBreaksFromOption:Ugt,makeAxisLabelFormatterParamBreak:Ygt})}var EB=$t();function Wgt(r,t){var e=iu(r,function(a){return er().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function Xgt(r){O(r,function(t){return t.shouldRemove=!0})}function $gt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function Zgt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!er())return;var o=er().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(R){return R.break},!1);if(!o.length)return;var l=e.getModel("breakArea"),s=l.get("zigzagAmplitude"),u=l.get("zigzagMinSpan"),c=l.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var h=l.get("expandOnClick"),d=l.get("zigzagZ"),p=l.getModel("itemStyle"),g=p.getItemStyle(),m=g.stroke,_=g.lineWidth,S=g.lineDash,x=g.fill,w=new At({ignoreModelZ:!0}),C=i.isHorizontal(),A=EB(t).visualList||(EB(t).visualList=[]);Xgt(A);for(var M=function(R){var I=o[R][0].break.parsedBreak,N=[];N[0]=i.toGlobalCoord(i.dataToCoord(I.vmin,!0)),N[1]=i.toGlobalCoord(i.dataToCoord(I.vmax,!0)),N[1]=Y;Tt&&(tt=Y);var Nt=[],xt=[];Nt[k]=N,xt[k]=B,!vt&&!Tt&&(Nt[k]+=X?-s:s,xt[k]-=X?s:-s),Nt[j]=tt,xt[j]=tt,q.push(Nt),G.push(xt);var gt=void 0;if(rtx[1]&&x.reverse(),{coordPair:x,brkId:er().serializeAxisBreakIdentifier(S.breakOption)}});s.sort(function(_,S){return _.coordPair[0]-S.coordPair[0]});for(var u=o[0],c=null,h=0;h=0?s[0].width:s[1].width),d=(h+c.x)/2-u.x,p=Math.min(d,d-c.x),g=Math.max(d,d-c.x),m=g<0?g:p>0?p:0;l=(d-m)/c.x}var _=new Lt,S=new Lt;Lt.scale(_,a,-l),Lt.scale(S,a,1-l),MT(e[0],_),MT(e[1],S)}function Qgt(r,t){var e={breaks:[]};return O(t.breaks,function(a){if(a){var n=iu(r.get("breaks",!0),function(l){return er().identifyAxisBreak(l,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===U0?!0:i===O8?!1:i===N8?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function Jgt(){$at({adjustBreakLabelPair:Kgt,buildAxisBreakLine:qgt,rectCoordBuildBreakAxis:Zgt,updateModelAxisBreak:Qgt})}function tyt(r){tnt(r),jgt(),Jgt()}function eyt(){bnt(ryt)}function ryt(r,t){O(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=ayt(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function ayt(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof of?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),l=Lf(r),s,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c{const u=i.current;if(!u)return;const c=wtt(u,null,{renderer:"canvas"});o.current=c,n&&(n.current=c),c.setOption(l.current),s.current&&Object.keys(s.current).forEach(d=>{c.on(d,p=>{var g,m;return(m=(g=s.current)==null?void 0:g[d])==null?void 0:m.call(g,p)})});const h=new ResizeObserver(()=>{var d;return(d=o.current)==null?void 0:d.resize()});return h.observe(u),()=>{h.disconnect(),c.dispose(),o.current=null,n&&(n.current=null)}},[]),W.useEffect(()=>{var u;(u=o.current)==null||u.setOption(r,{replaceMerge:["series"]})},[r]),V.jsx("div",{ref:i,style:t,className:e})}const iyt={healthy:"#22c55e",degraded:"#fb923c",critical:"#ef4444"};function oyt(r){return r<.4?"#ef4444":r<.7?"#fb923c":"#22c55e"}const lyt=({node:r,edges:t,onClose:e,onSelectService:a,onViewTraces:n,onViewLogs:i})=>{const o=iyt[r.status]||"#888",l=t.filter(h=>h.target===r.id),s=t.filter(h=>h.source===r.id),u=(r.metrics.error_rate*100).toFixed(1),c=r.metrics.error_rate>.05;return V.jsxs("div",{style:{background:"#0a0a0c",border:"1px solid #27272a",borderRadius:8,padding:16,width:320,fontFamily:"system-ui, sans-serif",color:"#fff"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:16,position:"relative"},children:[V.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:o,marginRight:8,flexShrink:0}}),V.jsx("span",{style:{fontSize:13,fontWeight:"bold",color:"#fff",marginRight:8},children:r.id}),V.jsx("span",{style:{fontSize:9,textTransform:"uppercase",background:o,color:"#fff",padding:"2px 6px",borderRadius:4,fontWeight:600},children:r.status}),V.jsx("button",{onClick:e,"aria-label":"Close",style:{position:"absolute",right:0,top:0,background:"none",border:"none",color:"#888",cursor:"pointer",fontSize:16,lineHeight:1,padding:0},children:"X"})]}),V.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,marginBottom:16},children:[V.jsxs("div",{style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:10},children:[V.jsx("div",{style:{fontSize:10,color:"#888",marginBottom:4},children:"RPS"}),V.jsx("div",{style:{fontSize:16,fontWeight:"bold"},children:Math.round(r.metrics.request_rate_rps)})]}),V.jsxs("div",{style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:10},children:[V.jsx("div",{style:{fontSize:10,color:"#888",marginBottom:4},children:"Error Rate"}),V.jsxs("div",{style:{fontSize:16,fontWeight:"bold",color:c?"#ef4444":"#fff"},children:[u,"%"]})]}),V.jsxs("div",{style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:10},children:[V.jsx("div",{style:{fontSize:10,color:"#888",marginBottom:4},children:"Avg Latency"}),V.jsxs("div",{style:{fontSize:16,fontWeight:"bold"},children:[r.metrics.avg_latency_ms,"ms"]})]}),V.jsxs("div",{style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:10},children:[V.jsx("div",{style:{fontSize:10,color:"#888",marginBottom:4},children:"P99"}),V.jsxs("div",{style:{fontSize:16,fontWeight:"bold"},children:[r.metrics.p99_latency_ms,"ms"]})]})]}),V.jsxs("div",{style:{marginBottom:16},children:[V.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11,marginBottom:4},children:[V.jsx("span",{style:{color:"#888"},children:"Health Score"}),V.jsx("span",{style:{color:"#fff"},children:r.health_score.toFixed(2)})]}),V.jsx("div",{style:{background:"#27272a",borderRadius:2,height:4},children:V.jsx("div",{style:{width:`${r.health_score*100}%`,height:4,borderRadius:2,background:oyt(r.health_score)}})})]}),l.length>0&&V.jsxs("div",{style:{marginBottom:12},children:[V.jsx("div",{style:{fontSize:10,color:"#888",textTransform:"uppercase",marginBottom:6},children:"Upstream"}),l.map(h=>V.jsxs("div",{onClick:()=>a(h.source),style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:"6px 10px",marginBottom:4,cursor:"pointer",display:"flex",justifyContent:"space-between",fontSize:12},children:[V.jsx("span",{children:h.source}),V.jsxs("span",{style:{color:"#888"},children:[h.call_count," calls"]})]},h.source))]}),s.length>0&&V.jsxs("div",{style:{marginBottom:12},children:[V.jsx("div",{style:{fontSize:10,color:"#888",textTransform:"uppercase",marginBottom:6},children:"Downstream"}),s.map(h=>V.jsxs("div",{onClick:()=>a(h.target),style:{background:"#18181b",border:"1px solid #27272a",borderRadius:6,padding:"6px 10px",marginBottom:4,cursor:"pointer",display:"flex",justifyContent:"space-between",fontSize:12},children:[V.jsx("span",{children:h.target}),V.jsxs("span",{style:{color:"#888"},children:[h.call_count," calls"]})]},h.target))]}),r.alerts.length>0&&V.jsxs("div",{style:{marginBottom:16},children:[V.jsx("div",{style:{fontSize:10,color:"#888",textTransform:"uppercase",marginBottom:6},children:"Alerts"}),r.alerts.map((h,d)=>V.jsx("div",{style:{background:"#1c0707",border:"1px solid #27272a",borderRadius:6,padding:"6px 10px",marginBottom:4,fontSize:11,color:"#fca5a5"},children:h},d))]}),V.jsxs("div",{style:{display:"flex",gap:8},children:[V.jsx("button",{onClick:()=>n(r.id),style:{flex:1,background:"#18181b",border:"1px solid #27272a",borderRadius:6,color:"#fff",padding:"8px 0",cursor:"pointer",fontSize:12},children:"View Traces →"}),V.jsx("button",{onClick:()=>i(r.id),style:{flex:1,background:"#18181b",border:"1px solid #27272a",borderRadius:6,color:"#fff",padding:"8px 0",cursor:"pointer",fontSize:12},children:"View Logs →"})]})]})},syt=LC.memo(lyt);function uyt(r,t){const e=new Map;if(r.length===0)return e;if(r.length===1)return e.set(r[0].id,0),e;const a=new Set(r.map(h=>h.id)),n=new Map,i=new Map;for(const h of a)n.set(h,[]),i.set(h,[]);for(const h of t)!a.has(h.source)||!a.has(h.target)||(i.get(h.source).push(h.target),n.get(h.target).push(h.source));const o=r.filter(h=>n.get(h.id).length===0);if(o.length===0){const h=[...r].sort((p,g)=>(g.span_count??0)-(p.span_count??0)),d=Math.max(1,Math.ceil(h.length/4));for(let p=0;ph.id);for(const h of o)l.set(h.id,0);let u=0;for(;ul.get(p)&&(l.set(p,g),s.push(p))}}const c=Math.max(...l.values());for(const h of r){const d=h.id,p=n.get(d),g=i.get(d),m=l.get(d);if(p.length===0)e.set(d,0);else if(g.length===0&&p.length>0)e.set(d,3);else if(c<=1)e.set(d,1);else{const S=m/c<=.5?1:2;e.set(d,S)}}return e}const my=60;function cyt(r,t,e){const a=new Map;if(r.length===0)return a;const n=uyt(r,t),i=Math.max(...n.values()),o=new Map;for(const[c,h]of n)o.has(h)||o.set(h,[]),o.get(h).push(c);const l=i+1,s=e.height-2*my,u=l>1?s/(l-1):0;for(const[c,h]of o){const d=l>1?my+c*u:e.height/2,p=e.width-2*my,g=h.length>1?p/(h.length-1):0;for(let m=0;m1?my+m*g:e.width/2;a.set(h[m],{x:_,y:d,tier:c})}}return a}function fyt(r){if(r.length===0)return 10;const t=[...r].map(n=>n.call_count).sort((n,i)=>n-i),e=Math.floor(t.length/2),a=t.length%2===0?(t[e-1]+t[e])/2:t[e];return Math.max(a,10)}const mM={healthy:{bg:"#0f2618",border:"#166534",dot:"#22c55e"},degraded:{bg:"#1a1207",border:"#854d0e",dot:"#fb923c"},critical:{bg:"#1c0707",border:"#991b1b",dot:"#ef4444"}};function hyt(r){var t;return((t=mM[r])==null?void 0:t.bg)??"#18181b"}function RB(r){var t;return((t=mM[r])==null?void 0:t.border)??"#27272a"}function vyt(r){var t;return((t=mM[r])==null?void 0:t.dot)??"#888"}function dyt(r){return r==="critical"?"#ef4444":r==="degraded"?"#fb923c":"#3f3f46"}const IB=["GATEWAY","API LAYER","SERVICES","DATA"],pyt=({graph:r,cache:t,loading:e,error:a,onNavigateToTraces:n,onNavigateToLogs:i})=>{const[o,l]=W.useState(null),[s,u]=W.useState(10),[c,h]=W.useState(""),d=W.useRef(null),[p,g]=W.useState(""),m=W.useRef(null),_=W.useCallback(H=>{const k=H.target.value;h(k),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>g(k),300)},[]);W.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),W.useEffect(()=>{r!=null&&r.edges&&u(fyt(r.edges))},[r]);const S=(r==null?void 0:r.nodes)??[],x=(r==null?void 0:r.edges)??[],w=S.length>=70,C=W.useMemo(()=>Math.max(1,...x.map(H=>H.call_count)),[x]),A=W.useMemo(()=>x.filter(H=>H.call_count>=s).slice(0,500),[x,s]),M=W.useMemo(()=>S.length===0?new Map:cyt(S.map(H=>({id:H.id,span_count:H.metrics.span_count_1h})),x.map(H=>({source:H.source,target:H.target})),{width:900,height:600}),[S,x]),L=W.useMemo(()=>{const H=new Map;for(const k of M.values())(!H.has(k.tier)||k.y{const j=H.id.length>16?H.id.slice(0,15)+"…":H.id,Y=Math.round(H.metrics.request_rate_rps),$=(H.metrics.error_rate*100).toFixed(1);return k?`{dot|●} {name|${j}}`:`{dot|●} {name|${j}} -{metric|${Y} rps ${$}% err}`},[]),R=W.useMemo(()=>{const H=S.map(Y=>{const $=M.get(Y.id)??{x:0,y:0},q=!p||Y.id.toLowerCase().includes(p.toLowerCase());return{name:Y.id,x:$.x,y:$.y,symbol:"roundRect",symbolSize:w?[90,36]:[120,46],itemStyle:{color:hyt(Y.status),borderColor:RB(Y.status),borderWidth:1,shadowColor:Y.status!=="healthy"?RB(Y.status):"transparent",shadowBlur:Y.status!=="healthy"?8:0,opacity:q?1:.2},label:{show:!0,formatter:()=>E(Y,w),rich:{dot:{fontSize:w?6:8,color:vyt(Y.status)},name:{fontSize:w?9:11,fontWeight:"bold",color:"#e4e4e7"},metric:{fontSize:w?7:9,color:"#71717a",padding:[2,0,0,0]}}}}}),k=A.map(Y=>({source:Y.source,target:Y.target,lineStyle:{width:Math.max(1,Math.min(4,Math.log10(Y.call_count+1))),color:dyt(Y.status),opacity:.3+.5*(Y.call_count/C),curveness:.1},symbol:["none","arrow"],symbolSize:6})),j=[];for(const[Y,$]of L)Y>=0&&Y{const $=Y;if($.dataType==="node"){const q=S.find(G=>G.id===$.name);return q?[`${q.id}`,`Status: ${q.status}`,`RPS: ${Math.round(q.metrics.request_rate_rps)}`,`Error: ${(q.metrics.error_rate*100).toFixed(1)}%`,`Avg Latency: ${q.metrics.avg_latency_ms}ms`].join("
"):""}if($.dataType==="edge"&&$.data){const q=x.find(G=>G.source===$.data.source&&G.target===$.data.target);return q?[`${q.source} → ${q.target}`,`Calls: ${q.call_count}`,`Avg Latency: ${q.avg_latency_ms}ms`,`Error: ${(q.error_rate*100).toFixed(1)}%`].join("
"):""}return""}},graphic:j,series:[{type:"graph",layout:"force",force:{repulsion:w?200:350,gravity:.08,edgeLength:w?[80,160]:[120,250],friction:.6,layoutAnimation:!0},roam:!0,data:H,links:k,emphasis:{focus:"adjacency"},lineStyle:{color:"source"}}]}},[S,x,A,M,L,w,p,C,E]),I=W.useMemo(()=>({click:H=>{const k=H;if(k.dataType==="node"&&k.name){const j=S.find(Y=>Y.id===k.name);l(j??null)}else l(null)}}),[S]),N=W.useCallback(()=>{var H;(H=m.current)==null||H.dispatchAction({type:"graphRoam",zoom:1.3})},[]),B=W.useCallback(()=>{var H;(H=m.current)==null||H.dispatchAction({type:"graphRoam",zoom:.7})},[]),P=W.useCallback(()=>{var H;(H=m.current)==null||H.dispatchAction({type:"restore"})},[]),F=W.useCallback(H=>{const k=S.find(j=>j.id===H);k&&l(k)},[S]);return e?V.jsx("div",{className:"service-map-container",children:V.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:"#71717a",fontSize:13},children:"Loading service map..."})}):a?V.jsx("div",{className:"service-map-container",children:V.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:"#ef4444",fontSize:13},children:a})}):!r||S.length===0?V.jsx("div",{className:"service-map-container",children:V.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:"#71717a",fontSize:13},children:"No services discovered yet."})}):V.jsxs("div",{className:"service-map-container",children:[V.jsxs("div",{className:"service-map-toolbar",children:[V.jsxs("div",{className:"search-wrap",style:{maxWidth:220},children:[V.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[V.jsx("circle",{cx:"11",cy:"11",r:"8"}),V.jsx("path",{d:"M21 21l-4.35-4.35"})]}),V.jsx("input",{className:"search-input",type:"text",placeholder:"Filter services...",value:c,onChange:_,style:{paddingLeft:28,fontSize:11}})]}),V.jsxs("div",{className:"edge-slider",children:[V.jsx("span",{children:"Edges ≥"}),V.jsx("input",{type:"range",min:1,max:C,value:s,onChange:H=>u(Number(H.target.value))}),V.jsx("span",{children:s})]}),V.jsx("div",{style:{flex:1}}),V.jsxs("div",{className:"zoom-controls",children:[V.jsx("button",{className:"zoom-btn",onClick:N,title:"Zoom in",children:"+"}),V.jsx("button",{className:"zoom-btn",onClick:B,title:"Zoom out",children:"−"}),V.jsx("button",{className:"zoom-btn",onClick:P,title:"Fit to view",children:"⊛"})]})]}),V.jsxs("div",{className:"service-map-body",children:[V.jsx("div",{className:"service-map-canvas",children:V.jsx(nyt,{option:R,style:{width:"100%",height:"100%"},onEvents:I,chartRef:m})}),o&&V.jsx("div",{className:"side-panel",children:V.jsx(syt,{node:o,edges:x,onClose:()=>l(null),onSelectService:F,onViewTraces:n,onViewLogs:i})})]})]})},gyt=LC.memo(pyt);function OB(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function MC(r,t){return MC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},MC(r,t)}function yyt(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,MC(r,t)}var NB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function myt(r,t){return!!(r===t||NB(r)&&NB(t))}function _yt(r,t){if(r.length!==t.length)return!1;for(var e=0;e=t?r.call(null):n.id=requestAnimationFrame(a)}var n={id:requestAnimationFrame(a)};return n}var rw=-1;function kB(r){if(r===void 0&&(r=!1),rw===-1||r){var t=document.createElement("div"),e=t.style;e.width="50px",e.height="50px",e.overflow="scroll",document.body.appendChild(t),rw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return rw}var Rc=null;function BB(r){if(r===void 0&&(r=!1),Rc===null||r){var t=document.createElement("div"),e=t.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";var a=document.createElement("div"),n=a.style;return n.width="100px",n.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Rc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Rc="negative":Rc="positive-ascending"),document.body.removeChild(t),Rc}return Rc}var xyt=150,wyt=function(t,e){return t};function v9(r){var t,e=r.getItemOffset,a=r.getEstimatedTotalSize,n=r.getItemSize,i=r.getOffsetForIndexAndAlignment,o=r.getStartIndexForOffset,l=r.getStopIndexForStartIndex,s=r.initInstanceProps,u=r.shouldResetStyleCacheOnItemSizeChange,c=r.validateProps;return t=(function(h){yyt(d,h);function d(g){var m;return m=h.call(this,g)||this,m._instanceProps=s(m.props,OB(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:OB(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=ew(function(_,S,x,w){return m.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:S,visibleStartIndex:x,visibleStopIndex:w})}),m._callOnScroll=void 0,m._callOnScroll=ew(function(_,S,x){return m.props.onScroll({scrollDirection:_,scrollOffset:S,scrollUpdateWasRequested:x})}),m._getItemStyle=void 0,m._getItemStyle=function(_){var S=m.props,x=S.direction,w=S.itemSize,C=S.layout,A=m._getItemStyleCache(u&&w,u&&C,u&&x),M;if(A.hasOwnProperty(_))M=A[_];else{var L=e(m.props,_,m._instanceProps),E=n(m.props,_,m._instanceProps),R=x==="horizontal"||C==="horizontal",I=x==="rtl",N=R?L:0;A[_]=M={position:"absolute",left:I?void 0:N,right:I?N:void 0,top:R?0:L,height:R?"100%":E,width:R?E:"100%"}}return M},m._getItemStyleCache=void 0,m._getItemStyleCache=ew(function(_,S,x){return{}}),m._onScrollHorizontal=function(_){var S=_.currentTarget,x=S.clientWidth,w=S.scrollLeft,C=S.scrollWidth;m.setState(function(A){if(A.scrollOffset===w)return null;var M=m.props.direction,L=w;if(M==="rtl")switch(BB()){case"negative":L=-w;break;case"positive-descending":L=C-x-w;break}return L=Math.max(0,Math.min(L,C-x)),{isScrolling:!0,scrollDirection:A.scrollOffsetM.clientWidth?kB():0:A=M.scrollHeight>M.clientHeight?kB():0}this.scrollTo(i(this.props,m,_,C,this._instanceProps,A))},p.componentDidMount=function(){var m=this.props,_=m.direction,S=m.initialScrollOffset,x=m.layout;if(typeof S=="number"&&this._outerRef!=null){var w=this._outerRef;_==="horizontal"||x==="horizontal"?w.scrollLeft=S:w.scrollTop=S}this._callPropsCallbacks()},p.componentDidUpdate=function(){var m=this.props,_=m.direction,S=m.layout,x=this.state,w=x.scrollOffset,C=x.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var A=this._outerRef;if(_==="horizontal"||S==="horizontal")if(_==="rtl")switch(BB()){case"negative":A.scrollLeft=-w;break;case"positive-ascending":A.scrollLeft=w;break;default:var M=A.clientWidth,L=A.scrollWidth;A.scrollLeft=L-M-w;break}else A.scrollLeft=w;else A.scrollTop=w}this._callPropsCallbacks()},p.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&PB(this._resetIsScrollingTimeoutId)},p.render=function(){var m=this.props,_=m.children,S=m.className,x=m.direction,w=m.height,C=m.innerRef,A=m.innerElementType,M=m.innerTagName,L=m.itemCount,E=m.itemData,R=m.itemKey,I=R===void 0?wyt:R,N=m.layout,B=m.outerElementType,P=m.outerTagName,F=m.style,H=m.useIsScrolling,k=m.width,j=this.state.isScrolling,Y=x==="horizontal"||N==="horizontal",$=Y?this._onScrollHorizontal:this._onScrollVertical,q=this._getRangeToRender(),G=q[0],X=q[1],tt=[];if(L>0)for(var rt=G;rt<=X;rt++)tt.push(W.createElement(_,{data:E,key:I(rt,E),index:rt,isScrolling:H?j:void 0,style:this._getItemStyle(rt)}));var vt=a(this.props,this._instanceProps);return W.createElement(B||P||"div",{className:S,onScroll:$,ref:this._outerRefSetter,style:vw({position:"relative",height:w,width:k,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},F)},W.createElement(A||M||"div",{children:tt,ref:C,style:{height:Y?"100%":vt,pointerEvents:j?"none":void 0,width:Y?vt:"100%"}}))},p._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var _=this._getRangeToRender(),S=_[0],x=_[1],w=_[2],C=_[3];this._callOnItemsRendered(S,x,w,C)}}if(typeof this.props.onScroll=="function"){var A=this.state,M=A.scrollDirection,L=A.scrollOffset,E=A.scrollUpdateWasRequested;this._callOnScroll(M,L,E)}},p._getRangeToRender=function(){var m=this.props,_=m.itemCount,S=m.overscanCount,x=this.state,w=x.isScrolling,C=x.scrollDirection,A=x.scrollOffset;if(_===0)return[0,0,0,0];var M=o(this.props,A,this._instanceProps),L=l(this.props,M,A,this._instanceProps),E=!w||C==="backward"?Math.max(1,S):1,R=!w||C==="forward"?Math.max(1,S):1;return[Math.max(0,M-E),Math.max(0,Math.min(_-1,L+R)),M,L]},d})(W.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Tyt=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},Cyt=50,Fc=function(t,e,a){var n=t,i=n.itemSize,o=a.itemMetadataMap,l=a.lastMeasuredIndex;if(e>l){var s=0;if(l>=0){var u=o[l];s=u.offset+u.size}for(var c=l+1;c<=e;c++){var h=i(c);o[c]={offset:s,size:h},s+=h}a.lastMeasuredIndex=e}return o[e]},Ayt=function(t,e,a){var n=e.itemMetadataMap,i=e.lastMeasuredIndex,o=i>0?n[i].offset:0;return o>=a?d9(t,e,i,0,a):Myt(t,e,Math.max(0,i),a)},d9=function(t,e,a,n,i){for(;n<=a;){var o=n+Math.floor((a-n)/2),l=Fc(t,o,e).offset;if(l===i)return o;li&&(a=o-1)}return n>0?n-1:0},Myt=function(t,e,a,n){for(var i=t.itemCount,o=1;a=a&&(o=a-1),o>=0){var s=n[o];l=s.offset+s.size}var u=a-o-1,c=u*i;return l+c},Dyt=v9({getItemOffset:function(t,e,a){return Fc(t,e,a).offset},getItemSize:function(t,e,a){return a.itemMetadataMap[e].size},getEstimatedTotalSize:VB,getOffsetForIndexAndAlignment:function(t,e,a,n,i,o){var l=t.direction,s=t.height,u=t.layout,c=t.width,h=l==="horizontal"||u==="horizontal",d=h?c:s,p=Fc(t,e,i),g=VB(t,i),m=Math.max(0,Math.min(g-d,p.offset)),_=Math.max(0,p.offset-d+p.size+o);switch(a==="smart"&&(n>=_-d&&n<=m+d?a="auto":a="center"),a){case"start":return m;case"end":return _;case"center":return Math.round(_+(m-_)/2);case"auto":default:return n>=_&&n<=m?n:n<_?_:m}},getStartIndexForOffset:function(t,e,a){return Ayt(t,a,e)},getStopIndexForStartIndex:function(t,e,a,n){for(var i=t.direction,o=t.height,l=t.itemCount,s=t.layout,u=t.width,c=i==="horizontal"||s==="horizontal",h=c?u:o,d=Fc(t,e,n),p=a+h,g=d.offset+d.size,m=e;m=S-g&&n<=_+g?a="auto":a="center"),a){case"start":return _;case"end":return S;case"center":{var x=Math.round(S+(_-S)/2);return xm+Math.floor(g/2)?m:x}case"auto":default:return n>=S&&n<=_?n:ne.onSelect(a.trace_id),className:"card",style:{textAlign:"left",background:n?"var(--nav-active-bg)":"var(--bg-card)",borderColor:n?"var(--color-accent)":"var(--border)",padding:"0.9rem",cursor:"pointer",width:"100%",height:"100%",display:"block"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.35rem"},children:[V.jsx("div",{style:{fontWeight:700,fontSize:"0.78rem"},children:a.service_name}),V.jsx("span",{className:`badge ${a.status.includes("ERROR")?"badge-red":"badge-green"}`,children:a.status||"OK"})]}),V.jsx("div",{style:{fontSize:"0.72rem",color:"var(--text-muted)",marginBottom:"0.3rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.operation||a.trace_id}),V.jsxs("div",{style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:[V.jsxs("span",{className:"badge",children:[a.span_count," spans"]}),V.jsxs("span",{className:"badge",children:[(i=a.duration_ms)==null?void 0:i.toFixed(1)," ms"]})]})]})})}function Iyt({traces:r,selected:t,loading:e,error:a,onSelect:n,serviceFilter:i,onClearFilter:o}){const l=i?r.filter(h=>h.service_name===i):r,s=W.useRef(null),[u,c]=W.useState({width:0,height:0});return W.useEffect(()=>{const h=s.current;if(!h)return;const d=new ResizeObserver(p=>{for(const g of p){const{width:m,height:_}=g.contentRect;c({width:m,height:_})}});return d.observe(h),()=>d.disconnect()},[]),V.jsxs("div",{className:"traces-layout",children:[V.jsxs("div",{className:"card",style:{display:"flex",flexDirection:"column",gap:"0.8rem",minHeight:0,overflow:"hidden"},children:[V.jsxs("div",{style:{flexShrink:0},children:[V.jsx("div",{style:{fontSize:"0.74rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",marginBottom:"0.35rem"},children:"Traces"}),V.jsx("div",{style:{fontSize:"0.95rem",fontWeight:700},children:"Recent distributed requests"})]}),i&&V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8,padding:"4px 8px",background:"#1e3a5f",borderRadius:4,fontSize:11,color:"#38bdf8"},children:[V.jsxs("span",{children:["Filtered: ",i]}),V.jsx("button",{onClick:o,style:{background:"none",border:"none",color:"#38bdf8",cursor:"pointer",fontSize:12},children:"×"})]}),e&&V.jsx("div",{style:{color:"var(--text-muted)"},children:"Loading traces…"}),a&&V.jsx("div",{style:{color:"#ef4444"},children:a}),V.jsx("div",{ref:s,style:{flex:1,minHeight:0,overflow:"hidden"},children:u.height>0&&l.length>0&&V.jsx(Lyt,{height:u.height,width:u.width,itemCount:l.length,itemSize:Eyt,itemData:{traces:l,selectedId:t==null?void 0:t.trace_id,onSelect:n},overscanCount:6,children:Ryt})})]}),V.jsxs("div",{className:"traces-right-col",children:[V.jsx("div",{className:"card",children:V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem"},children:[V.jsxs("div",{children:[V.jsx("div",{style:{fontSize:"0.85rem",fontWeight:700},children:(t==null?void 0:t.trace_id)??"No trace selected"}),V.jsx("div",{style:{fontSize:"0.73rem",color:"var(--text-muted)",marginTop:"0.2rem"},children:t==null?void 0:t.service_name})]}),t&&V.jsx("span",{className:`badge ${t.status.includes("ERROR")?"badge-red":"badge-green"}`,children:t.status})]})}),V.jsxs("div",{className:"card",style:{overflow:"auto"},children:[V.jsx("div",{style:{fontSize:"0.8rem",fontWeight:700,marginBottom:"0.8rem"},children:"Span Waterfall"}),V.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.7rem"},children:((t==null?void 0:t.spans)??[]).map(h=>V.jsxs("div",{style:{border:"1px solid var(--border)",borderRadius:10,padding:"0.8rem",background:"var(--bg-card)"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.35rem"},children:[V.jsx("div",{style:{fontWeight:700,fontSize:"0.78rem"},children:h.operation_name}),V.jsxs("span",{className:"badge",children:[(h.duration/1e3).toFixed(1)," ms"]})]}),V.jsx("div",{style:{height:8,borderRadius:999,background:"var(--bg-base)",overflow:"hidden",marginBottom:"0.45rem"},children:V.jsx("div",{style:{width:`${Math.min(100,Math.max(6,h.duration/Math.max((t==null?void 0:t.duration)||1,1)*100))}%`,height:"100%",background:"linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))"}})}),V.jsx("div",{style:{fontSize:"0.72rem",color:"var(--text-muted)"},children:h.service_name})]},h.id))})]})]})]})}const Oyt=62,Nyt=19,zyt=80,p9=9;function Pyt(r){const t=r?r.length:0,e=Math.max(1,Math.ceil(t/zyt));return Oyt+e*Nyt+p9}function kyt({index:r,style:t,data:e}){const a=e.logs[r];return V.jsx("div",{style:{...t,paddingBottom:`${p9}px`,boxSizing:"border-box"},children:V.jsxs("div",{style:{padding:"0.75rem 0.9rem",borderRadius:10,border:"1px solid var(--border)",background:"var(--bg-card)",height:"100%",boxSizing:"border-box",overflow:"hidden"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.35rem"},children:[V.jsxs("div",{style:{display:"flex",gap:"0.45rem",alignItems:"center",flexWrap:"wrap"},children:[V.jsx("span",{className:`badge ${a.severity==="ERROR"?"badge-red":a.severity==="WARN"?"badge-orange":"badge-blue"}`,children:a.severity}),V.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-muted)"},children:a.service_name})]}),V.jsx("span",{style:{fontSize:"0.68rem",color:"var(--text-dim)"},children:new Date(a.timestamp).toLocaleTimeString()})]}),V.jsx("div",{style:{fontSize:"0.74rem",color:"var(--text-secondary)",lineHeight:1.6,wordBreak:"break-word"},children:a.body})]})})}function Byt({logs:r,similar:t,loading:e,error:a,onSimilar:n,serviceFilter:i,onClearFilter:o}){const[l,s]=W.useState(""),[u,c]=W.useState(""),h=W.useMemo(()=>{let S=r;return i&&(S=S.filter(x=>x.service_name===i)),u&&(S=S.filter(x=>x.severity===u)),S},[r,u,i]),d=W.useRef(null),[p,g]=W.useState({width:0,height:0}),m=W.useRef(null);W.useEffect(()=>{const S=d.current;if(!S)return;const x=new ResizeObserver(w=>{for(const C of w){const{width:A,height:M}=C.contentRect;g({width:A,height:M})}});return x.observe(S),()=>x.disconnect()},[]),W.useEffect(()=>{var S;(S=m.current)==null||S.resetAfterIndex(0)},[h,p.width]);const _=S=>{var x;return Pyt(((x=h[S])==null?void 0:x.body)??"")};return V.jsxs("div",{style:{display:"grid",gridTemplateColumns:"minmax(320px, 420px) minmax(0, 1fr)",gap:"1rem",minHeight:0,flex:1},children:[V.jsxs("div",{className:"card",style:{display:"flex",flexDirection:"column",gap:"0.9rem",minHeight:0},children:[V.jsxs("div",{children:[V.jsx("div",{style:{fontSize:"0.74rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",marginBottom:"0.35rem"},children:"Live Log Search"}),V.jsx("div",{style:{fontSize:"0.95rem",fontWeight:700},children:"Tail, filter, and query similar incidents"})]}),i&&V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8,padding:"4px 8px",background:"#1e3a5f",borderRadius:4,fontSize:11,color:"#38bdf8"},children:[V.jsxs("span",{children:["Filtered: ",i]}),V.jsx("button",{onClick:o,style:{background:"none",border:"none",color:"#38bdf8",cursor:"pointer",fontSize:12},children:"×"})]}),V.jsx("input",{className:"search-input",style:{paddingLeft:"10px"},value:l,onChange:S=>s(S.target.value),placeholder:"Find similar logs...",spellCheck:!1}),V.jsx("div",{style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:["","INFO","WARN","ERROR"].map(S=>V.jsx("button",{className:`mode-pill${u===S?" active":""}`,onClick:()=>c(S),children:S||"all"},S||"all"))}),V.jsx("button",{className:"mc-send-btn",disabled:!l.trim(),onClick:()=>n(l),children:"Run Similarity Search"}),V.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.6rem",overflow:"auto"},children:t.map(S=>V.jsxs("div",{style:{border:"1px solid var(--border)",borderRadius:10,padding:"0.8rem",background:"var(--bg-card)"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.35rem"},children:[V.jsx("div",{style:{fontWeight:700,fontSize:"0.76rem"},children:S.service_name}),V.jsx("span",{className:`badge ${S.severity==="ERROR"?"badge-red":S.severity==="WARN"?"badge-orange":"badge-blue"}`,children:S.severity})]}),V.jsx("div",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",lineHeight:1.5},children:S.body})]},`similar-${S.id}`))})]}),V.jsxs("div",{className:"card",style:{display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.8rem",flexShrink:0},children:[V.jsx("div",{style:{fontSize:"0.85rem",fontWeight:700},children:"Stream"}),e&&V.jsx("span",{className:"badge",children:"Loading…"})]}),a&&V.jsx("div",{style:{color:"#ef4444",marginBottom:"0.8rem",flexShrink:0},children:a}),V.jsx("div",{ref:d,style:{flex:1,minHeight:0,overflow:"hidden"},children:p.height>0&&h.length>0&&V.jsx(Dyt,{ref:m,height:p.height,width:p.width,itemCount:h.length,itemSize:_,estimatedItemSize:90,itemData:{logs:h},overscanCount:6,children:kyt})})]})]})}function Vyt(r,t){var a;if(t.includes("application/json"))return JSON.parse(r);const e=(a=r.split(` -`).find(n=>n.startsWith("data: ")))==null?void 0:a.slice(6);return e?JSON.parse(e):{}}function Gyt(r="/mcp"){const[t,e]=W.useState("idle"),[a,n]=W.useState([]),[i,o]=W.useState(null),l=W.useRef(null),s=W.useRef(0),u=()=>{const p={"Content-Type":"application/json",Accept:"application/json, text/event-stream"};return l.current&&(p["Mcp-Session-Id"]=l.current),p},c=async p=>{const g=performance.now(),m=await fetch(r,{method:"POST",headers:u(),body:JSON.stringify(p)}),_=m.headers.get("Mcp-Session-Id");_&&(l.current=_);const S=await m.text();return{data:Vyt(S,m.headers.get("content-type")??""),status:m.status,ms:Math.round(performance.now()-g)}},h=async(p,g)=>{try{const m=await c({jsonrpc:"2.0",id:++s.current,method:p,params:g});return{result:m.data.result,error:m.data.error,timing:m.ms}}catch(m){return{error:{code:-1,message:String(m)}}}},d=async()=>{var m;e("connecting"),o(null);const p=await h("initialize",{protocolVersion:"2024-11-05",capabilities:{},clientInfo:{name:"otelcontext-ui",version:"1.0.0"}});if(p.error){e("error"),o(p.error.message);return}e("connected");const g=await h("tools/list",{});g.error||n(((m=g.result)==null?void 0:m.tools)??[])};return W.useEffect(()=>{d()},[]),{status:t,tools:a,error:i,call:h,connect:d,send:c}}function Hyt({tool:r,index:t,onCall:e,onRPC:a}){var l,s;const n=((l=r.inputSchema)==null?void 0:l.properties)||{},i=((s=r.inputSchema)==null?void 0:s.required)||[],o=Object.keys(n).length;return V.jsxs("div",{className:"mc-tool-card",children:[V.jsx("div",{style:{position:"absolute",inset:"0 0 auto 0",height:2,background:"linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))"}}),V.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.4rem"},children:[V.jsx("span",{style:{fontFamily:"ui-monospace, monospace",fontSize:"0.8rem",fontWeight:700,color:"var(--text-primary)"},children:r.name}),o>0&&V.jsxs("span",{className:"mc-badge",style:{fontSize:"0.6rem"},children:[o,"p"]})]}),V.jsx("p",{style:{fontSize:"0.72rem",color:"var(--text-muted)",lineHeight:1.55,marginBottom:"0.75rem",minHeight:"3.2em"},children:r.description||"No description provided."}),o>0&&V.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.3rem",marginBottom:"0.8rem"},children:Object.entries(n).map(([u,c])=>V.jsxs("span",{className:`mc-param-tag ${i.includes(u)?"mc-param-req":"mc-param-opt"}`,children:[u,V.jsxs("span",{style:{opacity:.45,marginLeft:2},children:[":",c.type??"any"]})]},u))}),V.jsxs("div",{style:{display:"flex",gap:"0.4rem",marginTop:"auto"},children:[V.jsxs("button",{className:"mc-btn-call",onClick:()=>e(t),style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[V.jsx(Q3,{size:10})," Call"]}),V.jsxs("button",{className:"mc-btn-rpc",onClick:()=>a(t),style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[V.jsx(KC,{size:10})," JSON-RPC"]})]})]})}function Uyt(r){var n,i;const t={},e=((n=r.inputSchema)==null?void 0:n.properties)||{},a=((i=r.inputSchema)==null?void 0:i.required)||[];for(const[o,l]of Object.entries(e))t[o]=a.includes(o)?l.type==="number"?0:l.type==="boolean"?!1:"":null;return t}function Fyt({tool:r,onClose:t,onCall:e}){const[a,n]=W.useState(()=>JSON.stringify(Uyt(r),null,2)),[i,o]=W.useState(""),[l,s]=W.useState(!1),[u,c]=W.useState(""),[h,d]=W.useState(""),p=async()=>{let g;try{g=JSON.parse(a||"{}")}catch(_){d(`Invalid JSON: ${String(_)}`);return}s(!0),d("");const m=performance.now();try{const _=await e(r.name,g);o(t4(_)),c(`${Math.round(performance.now()-m)}ms`)}catch(_){o(""),d(String(_))}finally{s(!1)}};return V.jsxs(dn,{opened:!0,onClose:t,withCloseButton:!1,padding:0,size:"min(880px, calc(100vw - 2rem))",centered:!0,classNames:{content:"mc-modal",overlay:"mc-overlay"},styles:{content:{maxHeight:"84vh",display:"flex",flexDirection:"column"},body:{display:"flex",flexDirection:"column",flex:1,minHeight:0,padding:0}},children:[V.jsxs("div",{style:{padding:"0.9rem 1.25rem",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem"},children:[V.jsxs("div",{children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.45rem",fontSize:"0.82rem",fontWeight:700},children:[V.jsx(Q3,{size:12,style:{color:"var(--color-accent)"}}),V.jsx("span",{children:"Call"}),V.jsx("code",{style:{background:"transparent",padding:0,color:"var(--color-accent)"},children:r.name})]}),V.jsx("div",{style:{fontSize:"0.72rem",color:"var(--text-muted)",marginTop:"0.25rem"},children:r.description})]}),V.jsx("button",{className:"mc-btn-icon",style:{width:28,padding:0,justifyContent:"center"},onClick:t,"aria-label":"Close",children:V.jsx(J3,{size:13})})]}),h&&V.jsx("div",{style:{padding:"0.6rem 1.25rem",background:"rgba(239,68,68,0.08)",borderBottom:"1px solid rgba(239,68,68,0.2)",color:"#ef4444",fontSize:"0.72rem"},children:h}),V.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",minHeight:0,flex:1},children:[V.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.55rem",padding:"1rem",borderRight:"1px solid var(--border)"},children:[V.jsx("label",{style:{fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",fontWeight:700},children:"Arguments"}),V.jsx("textarea",{className:"mc-textarea",style:{flex:1,minHeight:"16rem"},value:a,onChange:g=>n(g.target.value),spellCheck:!1}),V.jsx("button",{className:"mc-send-btn",disabled:l,onClick:p,children:l?"Executing…":"Execute Tool"})]}),V.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.55rem",padding:"1rem",minHeight:0},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[V.jsx("label",{style:{fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",fontWeight:700},children:"Result"}),u&&V.jsx("span",{className:"mc-badge",children:u})]}),V.jsx("pre",{className:"mc-code",style:{flex:1,minHeight:"16rem",overflow:"auto",padding:"0.9rem"},dangerouslySetInnerHTML:{__html:i||''}})]})]})]})}function Yyt(r){var n,i;const t={},e=((n=r.inputSchema)==null?void 0:n.properties)||{},a=((i=r.inputSchema)==null?void 0:i.required)||[];for(const[o,l]of Object.entries(e))t[o]=a.includes(o)?l.type==="number"?0:l.type==="boolean"?!1:"":null;return t}const aw={"tools/call":(r,t)=>({jsonrpc:"2.0",id:1,method:"tools/call",params:{name:r,arguments:t}}),"tools/list":()=>({jsonrpc:"2.0",id:1,method:"tools/list"}),initialize:()=>({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2024-11-05",capabilities:{},clientInfo:{name:"otelcontext-ui",version:"1.0.0"}}}),ping:()=>({jsonrpc:"2.0",id:1,method:"ping"}),"resources/list":()=>({jsonrpc:"2.0",id:1,method:"resources/list"})};function jyt({tool:r,onClose:t,onSend:e}){const a=(r==null?void 0:r.name)??"tool_name",n=r?Yyt(r):{},[i,o]=W.useState("tools/call"),[l,s]=W.useState(JSON.stringify(aw["tools/call"](a,n),null,2)),[u,c]=W.useState(""),[h,d]=W.useState(""),[p,g]=W.useState(!1),[m,_]=W.useState(""),S=W.useRef(null),x=M=>{if(o(M),M==="custom")return;const L=M==="tools/call"?aw[M](a,n):aw[M]();s(JSON.stringify(L,null,2))},w=async()=>{let M;try{M=JSON.parse(l)}catch(L){_(`Invalid JSON: ${String(L)}`);return}g(!0),_("");try{const{data:L,status:E,ms:R}=await e(M);c(t4(L)),d(`${R}ms · HTTP ${E}`)}catch(L){c(""),_(String(L))}finally{g(!1)}},C=async()=>{if(await navigator.clipboard.writeText(l),!S.current)return;const M=S.current.innerHTML;S.current.textContent="Copied",window.setTimeout(()=>{S.current&&(S.current.innerHTML=M)},1200)},A=[{value:"tools/call",label:"call"},{value:"tools/list",label:"list"},{value:"initialize",label:"init"},{value:"ping",label:"ping"},{value:"resources/list",label:"resources"},{value:"custom",label:"custom"}];return V.jsxs(dn,{opened:!0,onClose:t,withCloseButton:!1,padding:0,size:"min(1040px, calc(100vw - 2rem))",centered:!0,classNames:{content:"mc-modal",overlay:"mc-overlay"},styles:{content:{height:"88vh",display:"flex",flexDirection:"column"},body:{display:"flex",flexDirection:"column",flex:1,minHeight:0,padding:0}},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.9rem 1.25rem",borderBottom:"1px solid var(--border)"},children:[V.jsx("div",{style:{width:34,height:34,borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, var(--bg-card), var(--bg-panel))",border:"1px solid var(--border-hover)"},children:V.jsx(KC,{size:14,style:{color:"var(--color-accent)"}})}),V.jsxs("div",{style:{flex:1,minWidth:0},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[V.jsx("span",{style:{fontWeight:700,fontFamily:"ui-monospace, monospace",fontSize:"0.84rem"},children:a}),V.jsx("span",{className:"mc-badge",children:i})]}),V.jsx("div",{style:{fontSize:"0.72rem",color:"var(--text-muted)",marginTop:"0.15rem"},children:(r==null?void 0:r.description)||"Manual JSON-RPC request builder"})]}),V.jsx("button",{className:"mc-btn-icon",style:{width:28,padding:0,justifyContent:"center"},onClick:t,"aria-label":"Close",children:V.jsx(J3,{size:13})})]}),V.jsx(ul,{value:i,onChange:M=>M&&x(M),variant:"default",unstyled:!0,children:V.jsx(ul.List,{style:{display:"flex",gap:"0.1rem",padding:"0 1rem",borderBottom:"1px solid var(--border)",background:"var(--bg-card)"},children:A.map(M=>V.jsx(ul.Tab,{value:M.value,style:{background:"none",border:"none",borderBottom:"2px solid transparent",color:"var(--text-muted)",cursor:"pointer",padding:"0.5rem 0.75rem",fontSize:"0.7rem",fontFamily:"ui-monospace, monospace"},children:M.label},M.value))})}),m&&V.jsx("div",{style:{padding:"0.6rem 1.25rem",background:"rgba(239,68,68,0.08)",borderBottom:"1px solid rgba(239,68,68,0.2)",color:"#ef4444",fontSize:"0.72rem"},children:m}),V.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",flex:1,minHeight:0},children:[V.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:0,borderRight:"1px solid var(--border)"},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.6rem 0.9rem",borderBottom:"1px solid var(--border)"},children:[V.jsx("span",{style:{fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",fontWeight:700},children:"Request"}),V.jsxs("button",{ref:S,className:"mc-copy-btn",onClick:C,children:[V.jsx(rX,{size:11})," Copy"]})]}),V.jsx("div",{style:{padding:"0.75rem",flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:V.jsx("textarea",{className:"mc-textarea",style:{flex:1,minHeight:0},value:l,onChange:M=>s(M.target.value),spellCheck:!1})}),V.jsx("div",{style:{padding:"0 0.75rem 0.75rem"},children:V.jsxs("button",{className:"mc-send-btn",disabled:p,onClick:w,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.45rem"},children:[V.jsx(uX,{size:12})," ",p?"Sending…":"Send"]})})]}),V.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:0},children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.6rem 0.9rem",borderBottom:"1px solid var(--border)"},children:[V.jsx("span",{style:{fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.12em",color:"var(--text-dim)",fontWeight:700},children:"Response"}),h&&V.jsx("span",{className:"mc-badge",children:h})]}),V.jsx("pre",{className:"mc-code",style:{margin:"0.75rem",flex:1,minHeight:0,overflow:"auto",padding:"0.9rem"},dangerouslySetInnerHTML:{__html:u||''}})]})]})]})}const Wyt={idle:"#555",connecting:"#eab308",connected:"#22c55e",error:"#ef4444"};function Xyt(){const{status:r,tools:t,error:e,call:a,connect:n,send:i}=Gyt(),[o,l]=W.useState(null),[s,u]=W.useState(null),c=Wyt[r];return V.jsxs("div",{className:"mcp-view",children:[V.jsxs("div",{className:"mc-status-bar",children:[V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.55rem"},children:[V.jsxs("span",{style:{position:"relative",display:"inline-flex",width:8,height:8},children:[V.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",background:c,opacity:r==="connected"?.4:0,animation:r==="connected"?"mc-ping 2s cubic-bezier(0,0,0.2,1) infinite":"none"}}),V.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:c}})]}),V.jsx("span",{style:{fontSize:"0.78rem",fontWeight:600,color:c,textTransform:"capitalize"},children:r})]}),V.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem",fontSize:"0.72rem",color:"var(--text-dim)"},children:[V.jsx(iX,{size:11,style:{opacity:.5}}),V.jsxs("code",{style:{fontFamily:"ui-monospace, monospace",padding:"0.15rem 0.4rem",borderRadius:4,background:"var(--bg-card)",border:"1px solid var(--border)",color:"var(--text-secondary)"},children:[window.location.origin,"/mcp"]})]}),V.jsx("span",{className:"mc-badge",children:"HTTP Streamable MCP · JSON-RPC 2.0"}),V.jsx("div",{style:{marginLeft:"auto"},children:V.jsxs("button",{className:"mc-btn-icon",onClick:()=>void n(),children:[V.jsx(lX,{size:12})," Reconnect"]})})]}),V.jsxs("div",{style:{padding:"0.7rem 1.25rem",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[V.jsx("span",{style:{fontSize:"0.66rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.14em",color:"var(--text-dim)"},children:"Available Tools"}),V.jsxs("span",{style:{fontSize:"0.72rem",color:"var(--text-muted)"},children:[t.length," discovered"]})]}),V.jsxs("div",{style:{flex:1,overflow:"auto",padding:"1rem",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"0.8rem",alignContent:"start"},children:[r==="error"&&V.jsxs("div",{className:"card",style:{gridColumn:"1 / -1",textAlign:"center",padding:"2.5rem 1rem"},children:[V.jsx("div",{style:{fontSize:"0.9rem",fontWeight:700,color:"#ef4444",marginBottom:"0.45rem"},children:"Connection failed"}),V.jsx("div",{style:{color:"var(--text-muted)",marginBottom:"0.85rem"},children:e||"Could not reach the MCP endpoint."}),V.jsx("code",{children:"MCP_ENABLED=true"})]}),r==="connected"&&t.map((h,d)=>V.jsx(Hyt,{tool:h,index:d,onCall:p=>l(t[p]),onRPC:p=>u(t[p])},h.name))]}),o&&V.jsx(Fyt,{tool:o,onClose:()=>l(null),onCall:async(h,d)=>(await a("tools/call",{name:h,arguments:d})).result??null}),s&&V.jsx(jyt,{tool:s,onClose:()=>u(null),onSend:i})]})}function $yt(r=6e4){const[t,e]=W.useState(null),[a,n]=W.useState(""),[i,o]=W.useState(!0),[l,s]=W.useState(null),u=W.useRef(void 0),c=W.useCallback(async()=>{try{const h=await fetch("/api/system/graph");if(!h.ok)throw new Error(`HTTP ${h.status}`);n(h.headers.get("X-Cache")??""),e(await h.json()),s(null)}catch(h){s(h instanceof Error?h.message:"fetch failed")}finally{o(!1)}},[]);return W.useEffect(()=>(c(),u.current=setInterval(c,r),()=>clearInterval(u.current)),[c,r]),{graph:t,cache:a,loading:i,error:l,reload:c}}function Zyt(r=3e4){const[t,e]=W.useState(null),[a,n]=W.useState(null),[i,o]=W.useState(!0),[l,s]=W.useState(null),u=W.useRef(void 0),c=W.useCallback(async()=>{try{const[h,d]=await Promise.all([fetch("/api/metrics/dashboard"),fetch("/api/stats")]);if(!h.ok||!d.ok)throw new Error("fetch failed");e(await h.json()),n(await d.json()),s(null)}catch(h){s(h instanceof Error?h.message:"fetch failed")}finally{o(!1)}},[]);return W.useEffect(()=>(c(),u.current=setInterval(c,r),()=>clearInterval(u.current)),[c,r]),{dashboard:t,stats:a,loading:i,error:l,reload:c}}function qyt(){const[r,t]=W.useState([]),[e,a]=W.useState(null),[n,i]=W.useState(!0),[o,l]=W.useState(null),s=W.useCallback(async()=>{var c;i(!0),l(null);try{const d=await(await fetch("/api/traces?limit=25&offset=0")).json();if(t(d.traces??[]),(c=d.traces)!=null&&c[0]){const p=await fetch(`/api/traces/${d.traces[0].trace_id}`);a(await p.json())}}catch(h){l(String(h))}finally{i(!1)}},[]);return W.useEffect(()=>{s()},[s]),{traces:r,selected:e,loading:n,error:o,selectTrace:async c=>{const h=await fetch(`/api/traces/${c}`);a(await h.json())},reload:s}}function GB(r){return Array.isArray(r)?r:Array.isArray(r.logs)?r.logs:Array.isArray(r.items)?r.items:[]}function Kyt(){const[r,t]=W.useState([]),[e,a]=W.useState([]),[n,i]=W.useState(!0),[o,l]=W.useState(null),s=W.useCallback(async()=>{i(!0),l(null);try{const h=await(await fetch("/api/logs?limit=100&offset=0")).json();t(GB(h))}catch(c){l(String(c))}finally{i(!1)}},[]);return W.useEffect(()=>{s()},[s]),{logs:r,similar:e,loading:n,error:o,runSimilar:async c=>{if(!c.trim())return;const d=await(await fetch(`/api/logs/similar?q=${encodeURIComponent(c)}&limit=8`)).json();a(GB(d))},setLogs:t,reload:s}}const Qyt=100,Jyt=1e4,tmt=3e4,emt=35e3;function rmt(r){const t=W.useRef(null),e=W.useRef(r),[a,n]=W.useState("connecting");t.status=a;const i=W.useRef(0),o=W.useRef(null),l=W.useRef(null),s=W.useRef(null),u=W.useRef(!1),c=W.useRef(()=>{});W.useEffect(()=>{e.current=r},[r]);const h=W.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),d=W.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null),s.current!==null&&(window.clearTimeout(s.current),s.current=null)},[]),p=W.useCallback(()=>{if(u.current)return;h();const _=i.current,S=Math.min(Qyt*2**_,Jyt);i.current=_+1,n("reconnecting"),o.current=window.setTimeout(()=>{o.current=null,c.current()},S)},[h]),g=W.useCallback(()=>{d(),l.current=window.setInterval(()=>{const _=t.current;if(!(!_||_.readyState!==WebSocket.OPEN)){try{_.send(JSON.stringify({type:"ping"}))}catch{return}s.current!==null&&window.clearTimeout(s.current),s.current=window.setTimeout(()=>{s.current=null;const S=t.current;if(S)try{S.close()}catch{}},emt)}},tmt)},[d]),m=W.useCallback(()=>{if(u.current)return;h(),d();const _=t.current;if(_){_.onopen=null,_.onmessage=null,_.onerror=null,_.onclose=null;try{_.close()}catch{}t.current=null}n(i.current===0?"connecting":"reconnecting");const S=window.location.protocol==="https:"?"wss:":"ws:";let x;try{x=new WebSocket(`${S}//${window.location.host}/ws`)}catch{p();return}t.current=x,x.onopen=()=>{u.current||(i.current=0,n("connected"),g())},x.onmessage=w=>{s.current!==null&&(window.clearTimeout(s.current),s.current=null);try{const C=JSON.parse(w.data);C.type==="logs"&&Array.isArray(C.data)&&e.current(C.data)}catch{}},x.onerror=()=>{},x.onclose=()=>{u.current||(t.current===x&&(t.current=null),d(),n("disconnected"),p())}},[d,h,p,g]);return W.useEffect(()=>{c.current=m},[m]),W.useEffect(()=>{u.current=!1,c.current=m,m();const _=()=>{if(document.visibilityState!=="visible")return;const x=t.current;(!x||x.readyState===WebSocket.CLOSED||x.readyState===WebSocket.CLOSING)&&(i.current=0,h(),c.current())},S=()=>{i.current=0,h(),c.current()};return document.addEventListener("visibilitychange",_),window.addEventListener("online",S),()=>{u.current=!0,document.removeEventListener("visibilitychange",_),window.removeEventListener("online",S),h(),d();const x=t.current;if(x){x.onopen=null,x.onmessage=null,x.onerror=null,x.onclose=null;try{x.close()}catch{}t.current=null}}},[]),t}function amt(){const[r,t]=W.useState("services"),[e,a]=W.useState(null),n=$yt(),i=Zyt(),o=qyt(),l=Kyt(),s=W.useRef(l.setLogs);s.current=l.setLogs;const u=W.useCallback(m=>{s.current(_=>[...m,..._].slice(0,200))},[]),h=!!rmt(u).current,d=W.useCallback(m=>{a(m),t("traces")},[]),p=W.useCallback(m=>{a(m),t("logs")},[]),g=W.useCallback(()=>{a(null)},[]);return V.jsxs(V.Fragment,{children:[V.jsx(dX,{view:r,onNavigate:t,dashboard:i.dashboard,stats:i.stats,wsConnected:h}),V.jsxs("main",{className:"main-content",children:[r==="services"&&V.jsx(gyt,{graph:n.graph,cache:n.cache,loading:n.loading,error:n.error,onNavigateToTraces:d,onNavigateToLogs:p}),r==="traces"&&V.jsx(Iyt,{traces:o.traces,selected:o.selected,loading:o.loading,error:o.error,onSelect:m=>void o.selectTrace(m),serviceFilter:e,onClearFilter:g}),r==="logs"&&V.jsx(Byt,{logs:l.logs,similar:l.similar,loading:l.loading,error:l.error,onSimilar:m=>void l.runSimilar(m),serviceFilter:e,onClearFilter:g}),r==="mcp"&&V.jsx(Xyt,{})]})]})}const nmt={primaryColor:"blue",defaultRadius:"md",fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"};jF.createRoot(document.getElementById("root")).render(V.jsx(W.StrictMode,{children:V.jsx(d3,{theme:nmt,defaultColorScheme:"dark",children:V.jsx(amt,{})})})); diff --git a/internal/ui/dist/assets/index-C9DjciJ7.js b/internal/ui/dist/assets/index-C9DjciJ7.js new file mode 100644 index 0000000..d5182a1 --- /dev/null +++ b/internal/ui/dist/assets/index-C9DjciJ7.js @@ -0,0 +1,48 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function te(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,te(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),te(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,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 c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function ue(e,t){se++,oe[se]=e.current,e.current=t}var de=ce(null),fe=ce(null),pe=ce(null),me=ce(null);function he(e,t){switch(ue(pe,t),ue(fe,e),ue(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(de),ue(de,e)}function ge(){le(de),le(fe),le(pe)}function _e(e){e.memoizedState!==null&&ue(me,e);var t=de.current,n=Wd(t,e.type);t!==n&&(ue(fe,e),ue(de,n))}function ve(e){fe.current===e&&(le(de),le(fe)),me.current===e&&(le(me),ep._currentValue=ae)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,N=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function q(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!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:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=mr(n)}}function gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var yr=en&&`documentMode`in document&&11>=document.documentMode,br=null,xr=null,Sr=null,Cr=!1;function wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cr||br==null||br!==At(r)||(r=br,`selectionStart`in r&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sr&&pr(Sr,r)||(Sr=r,r=Dd(xr,`onSelect`),0>=o,i-=o,gi=1<<32-He(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ti&&vi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ti&&vi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ti&&vi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ti&&vi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ea(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ri(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ni(o.type,o.key,o.props,null,e.mode,c),Ea(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=oi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ya(o),b(e,r,o,c)}if(re(o))return h(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ta(o),c);if(o.$$typeof===C)return b(e,r,qi(e,o),c);Da(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{wa=0;var i=b(e,t,n,r);return Ca=null,i}catch(t){if(t===pa||t===ha)throw t;var a=Qr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ka=Oa(!0),Aa=Oa(!1),ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Yr(e),Jr(e,null,n),t}return Gr(e,r,t,n),Yr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ra=!1;function za(){if(Ra){var e=ia;if(e!==null)throw e}}function Ba(e,t,n,r){Ra=!1;var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Ll&f)===f:(r&f)===f){f!==0&&f===ra&&(Ra=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,Ds(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,sa(c,r),pu(e)):Es(e,t,r,pu(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{ie.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function gs(){}function _s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=vs(e).queue;hs(e,a,t,ae,n===null?gs:function(){return ys(e),n(r)})}function vs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ys(e){var t=vs(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},pu())}function bs(){return Ki(ep)}function xs(){return To().memoizedState}function Ss(){return To().memoizedState}function Cs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Pa(n);var r=Fa(t,e,n);r!==null&&(hu(r,t,n),Ia(r,t,n)),t={cache:$i()},e.payload=t;return}t=t.return}}function ws(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=Kr(e,t,n,r),n!==null&&(hu(n,e,r),As(n,t,r)))}function Ts(e,t,n){Es(e,t,n,pu())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(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,n);if(i.hasEagerState=!0,i.eagerState=s,fr(s,o))return Gr(e,t,i,0),Fl===null&&Wr(),!1}catch{}if(n=Kr(e,t,i,r),n!==null)return hu(n,e,r),As(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(i(479))}else t=Kr(e,n,r,2),t!==null&&hu(t,e,2)}function Os(e){var t=e.alternate;return e===io||t!==null&&t===io}function ks(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var js={readContext:Ki,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};js.useEffectEvent=ho;var Ms={readContext:Ki,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Ki,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ws.bind(null,io,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ts.bind(null,io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:us,useDeferredValue:function(e,t){return ps(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=hs.bind(null,io,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=io,a=wo();if(Ti){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Ll&127||Fo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Lo.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Fl.identifierPrefix;if(Ti){var n=_i,r=gi;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=pe.current,Mi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ci,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||ki(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Mi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return ge(),e===null&&Cd(t.stateNode.containerInfo),jc(t),null;case 10:return Bi(t.type),jc(t),null;case 19:if(le(to),r=t.memoizedState,r===null)return jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ac(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ti(n,e),n=n.sibling;return ue(to,to.current&1|2),Ti&&vi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>tu&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}else{if(!a)if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ti)return jc(t),null}else 2*Ae()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=to.current,ue(to,a?n&1|2:n&1),Ti&&vi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&le(la),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bi(Qi),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(Qi),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(to),null;case 4:return ge(),null;case 10:return Bi(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&le(la),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bi(Qi),null;case 25:return null;default:return null}}function Pc(e,t){switch(xi(t),t.tag){case 3:Bi(Qi),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:le(to);break;case 10:Bi(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&le(la);break;case 24:Bi(Qi)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Gu(e,e.return,t)}}}function Rc(e,t,n){n.props=zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Gu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Gu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Bd=lp,e=_r(e),vr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,mt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=hr(s,h),v=hr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,id(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{ie.p=a,M.T=r,Vu(e,t)}}function Wu(e,t,n){t=ci(n,t),t=Gs(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(et(e,2),rd(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=ci(n,e),n=Ks(2),r=Fa(t,n,2),r!==null&&(qs(n,r,t,e),et(r,2),rd(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Ll&n)===n&&(Wl===4||Wl===3&&(Ll&62914560)===Ll&&300>Ae()-$l?!(Pl&2)&&Su(e,0):ql|=n,Yl===Ll&&(Yl=0)),rd(e)}function Ju(e,t){t===0&&(t=P()),e=qr(e,t),e!==null&&(et(e,t),rd(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return De(e,t)}var Qu=null,$u=null,ed=!1,Z=!1,td=!1,nd=0;function rd(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),Z=!0,ed||(ed=!0,ud())}function id(e,t){if(!td&&Z){td=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Ll,a=Xe(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){Z=ed=!1;var e=0;nd!==0&&qd()&&(e=nd);for(var t=Ae(),n=null,r=Qu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(Z=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),mt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),mt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=pt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);mt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=pt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),mt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=pt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),mt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=pe.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=pt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=pt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=pt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Mf(e){return`href="`+Mt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),mt(t),e.head.appendChild(t))}function If(e){return`[src="`+Mt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,mt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),mt(r),Id(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,mt(o),o;r=Pf(n),(a=gf.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,mt(a),a):(r=n,(a=gf.get(o))&&(r=m({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),mt(a),Id(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,mt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),y=o(((e,t)=>{t.exports=v()}));function b(...e){let t=``;for(let n of e)n&&(t+=t?` `+n:n);return t}var x=0;function S(e=`rcs`){return x+=1,`${e}-${x}`}var C=y(),w=l(d(),1);function T(e){let{items:t,value:n,defaultValue:r,variant:i=`line`,size:a=`md`,onChange:o,scrollable:s,className:c,style:l,id:u}=e,d=n!==void 0,[f,p]=w.useState(r??t[0]?.key),m=d?n:f,h=t.find(e=>e.key===m),g=(e,t)=>{t||(d||p(e),o?.(e))};return(0,C.jsxs)(`div`,{id:u,"data-scrollable":s||void 0,className:b(`rcs-tabs`,`rcs-tabs--${i}`,`rcs-tabs--${a}`,c),style:l,children:[(0,C.jsx)(`div`,{className:`rcs-tabs-nav`,"data-scrollable":s||void 0,role:`tablist`,children:t.map(e=>(0,C.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e.key===m,disabled:e.disabled,"data-active":e.key===m||void 0,className:`rcs-tabs-tab`,onClick:()=>g(e.key,e.disabled),children:[e.icon&&(0,C.jsx)(`span`,{"aria-hidden":!0,children:e.icon}),(0,C.jsx)(`span`,{children:e.label}),e.badge&&(0,C.jsx)(`span`,{style:{marginLeft:4},children:e.badge})]},e.key))}),h?.content&&(0,C.jsx)(`div`,{className:`rcs-tabs-content`,role:`tabpanel`,children:h.content})]})}var E={info:`ⓘ`,success:`✓`,warning:`⚠`,danger:`✕`};function D(e,t){w.useEffect(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t])}function O(e){let{open:t,title:n,description:r,size:i=`md`,closeOnEsc:a=!0,closeOnBackdrop:o=!0,footer:s,children:c,onClose:l,className:u,style:d,id:f}=e;return D(t&&a,l),t?(0,C.jsx)(`div`,{className:`rcs-modal-backdrop`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":n?`${f??`modal`}-title`:void 0,onClick:e=>{o&&e.target===e.currentTarget&&l()},children:(0,C.jsxs)(`div`,{id:f,className:b(`rcs-modal`,`rcs-modal--${i}`,u),style:d,children:[(n||r)&&(0,C.jsxs)(`div`,{className:`rcs-modal-header`,children:[n&&(0,C.jsx)(`h2`,{id:`${f??`modal`}-title`,className:`rcs-modal-title`,children:n}),r&&(0,C.jsx)(`div`,{className:`rcs-modal-desc`,children:r})]}),(0,C.jsx)(`div`,{className:`rcs-modal-body`,children:c}),s&&(0,C.jsx)(`div`,{className:`rcs-modal-footer`,children:s})]})}):null}var k=[],A=new Set;function j(){for(let e of A)e([...k])}var ee={show(e){let t=e.id??S(`toast`),n={...e,id:t};k.push(n),j();let r=e.duration??4e3;return r>0&&window.setTimeout(()=>ee.dismiss(t),r),t},dismiss(e){let t=k.findIndex(t=>t.id===e);t>=0&&(k.splice(t,1)[0].onDismiss?.(),j())},async promise(e,t){let n=ee.show({severity:`info`,title:t.loading,duration:0});try{let r=await e;return ee.dismiss(n),ee.show({severity:`success`,title:t.success}),r}catch(e){throw ee.dismiss(n),ee.show({severity:`danger`,title:t.error}),e}}};function te(){let[e,t]=w.useState([]);return w.useEffect(()=>(A.add(t),()=>{A.delete(t)}),[]),(0,C.jsx)(`div`,{className:`rcs-toast-region`,"aria-live":`polite`,"aria-atomic":`false`,children:e.map(e=>(0,C.jsxs)(`div`,{className:b(`rcs-toast`,`rcs-toast--${e.severity??`info`}`),role:`status`,children:[(0,C.jsx)(`span`,{className:`rcs-toast-icon`,"aria-hidden":!0,children:E[e.severity??`info`]}),(0,C.jsxs)(`div`,{style:{flex:1},children:[(0,C.jsx)(`div`,{className:`rcs-toast-title`,children:e.title}),e.description&&(0,C.jsx)(`div`,{className:`rcs-toast-desc`,children:e.description})]}),e.action&&(0,C.jsx)(`button`,{className:`rcs-toast-action`,onClick:()=>{e.action.onClick(),ee.dismiss(e.id)},children:e.action.label}),(0,C.jsx)(`button`,{className:`rcs-input-clear`,"aria-label":`Dismiss`,onClick:()=>ee.dismiss(e.id),children:`×`})]},e.id))})}var ne=w.createContext(null),re={"signal-red":`#E60000`,"signal-red-700":`#9E0000`,"signal-red-900":`#520000`,"cod-gray":`#1C1C1C`,"cod-gray-700":`#2B2B2B`,"cod-gray-500":`#5A5A5A`,"cod-gray-300":`#A6A6A6`,"cod-gray-100":`#F5F5F5`,"cod-gray-050":`#FAFAFA`,white:`#FFFFFF`};function M(e){let{mode:t,accent:n,fontFamily:r,children:i}=e,[a,o]=w.useState(t??`light`),s=t??a;w.useEffect(()=>{typeof document>`u`||document.documentElement.setAttribute(`data-theme`,s)},[s]),w.useEffect(()=>{typeof document>`u`||!n||document.documentElement.style.setProperty(`--accent`,re[n])},[n]),w.useEffect(()=>{typeof document>`u`||!r||(r.sans&&document.documentElement.style.setProperty(`--font-sans`,r.sans),r.mono&&document.documentElement.style.setProperty(`--font-mono`,r.mono))},[r]);let c=w.useMemo(()=>({mode:s,setMode:e=>o(e),toggle:()=>o(e=>e===`light`?`dark`:`light`)}),[s]);return(0,C.jsx)(ne.Provider,{value:c,children:i})}var ie=_(),ae=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),oe=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),se={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ce=(0,w.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,w.createElement)(`svg`,{ref:c,...se,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:oe(`lucide`,i),...s},[...o.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(a)?a:[a]])),le=(e,t)=>{let n=(0,w.forwardRef)(({className:n,...r},i)=>(0,w.createElement)(ce,{ref:i,iconNode:t,className:oe(`lucide-${ae(e)}`,n),...r}));return n.displayName=`${e}`,n},ue=le(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),de=le(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),fe=le(`Network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),pe=le(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),me=le(`Plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M9 8V2`,key:`14iosj`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`,key:`osxo6l`}]]),he=le(`Radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),ge=le(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),_e=le(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),ve=le(`SendHorizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),ye=le(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),be=le(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]);function xe(e){return Se(JSON.stringify(e,null,2)).replace(/"([^"]+)":/g,`"$1":`).replace(/: "([^"]*)"/g,`: "$1"`).replace(/: (true|false)/g,`: $1`).replace(/: (null)/g,`: $1`).replace(/: (-?\d+\.?\d*)/g,`: $1`)}function Se(e){return e.replace(/&/g,`&`).replace(//g,`>`)}function Ce(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e*10)/10)}var we=`oc-theme`;function Te(){let[e,t]=(0,w.useState)(()=>localStorage.getItem(we)??`dark`);return(0,w.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e),localStorage.setItem(we,e)},[e]),{theme:e,toggle:()=>t(e=>e===`dark`?`light`:`dark`)}}var Ee=[{key:`services`,label:`Service Map`,icon:fe},{key:`traces`,label:`Traces`,icon:_e},{key:`logs`,label:`Logs`,icon:he},{key:`mcp`,label:`MCP`,icon:be}];function De({view:e,onNavigate:t,dashboard:n,stats:r,wsConnected:i}){let{theme:a,toggle:o}=Te();return(0,C.jsxs)(`nav`,{className:`top-nav`,children:[(0,C.jsxs)(`a`,{className:`logo`,href:`/`,children:[(0,C.jsx)(`span`,{style:{color:`var(--color-accent)`,fontSize:`1rem`,flexShrink:0},children:`◆`}),(0,C.jsx)(`span`,{className:`logo-mark`,children:`OtelContext`})]}),Ee.map(({key:n,label:r,icon:i})=>(0,C.jsxs)(`button`,{className:`nav-link${e===n?` active`:``}`,onClick:()=>t(n),children:[(0,C.jsx)(i,{size:13}),` `,r]},n)),(0,C.jsxs)(`div`,{className:`stats-bar`,style:{marginLeft:`auto`},children:[(0,C.jsxs)(`span`,{children:[`Services`,` `,(0,C.jsx)(`b`,{className:`stat-healthy`,children:n?.active_services??`--`})]}),(0,C.jsxs)(`span`,{children:[`Traces`,` `,(0,C.jsx)(`b`,{children:Ce(n?.total_traces??0)})]}),(0,C.jsxs)(`span`,{children:[`Logs`,` `,(0,C.jsx)(`b`,{children:Ce(n?.total_logs??0)})]}),(0,C.jsxs)(`span`,{children:[`Error Rate`,` `,(0,C.jsx)(`b`,{className:(n?.error_rate??0)>5?`stat-error`:``,children:n?.error_rate==null?`--%`:`${n.error_rate.toFixed(1)}%`})]}),(0,C.jsxs)(`span`,{children:[`DB`,` `,(0,C.jsx)(`b`,{children:r?.db_size_mb==null?`--`:`${r.db_size_mb}MB`})]}),(0,C.jsx)(`span`,{className:`ws-dot ${i?`connected`:`disconnected`}`,title:i?`WebSocket connected`:`WebSocket disconnected`})]}),(0,C.jsx)(`button`,{className:`theme-btn`,onClick:o,title:`Toggle theme`,children:a===`dark`?(0,C.jsx)(ye,{size:15}):(0,C.jsx)(de,{size:15})})]})}var Oe=function(e,t){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oe(e,t)};function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Oe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ae=new(function(){function e(){this.browser=new ke,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}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Ae.wxa=!0,Ae.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Ae.worker=!0:!Ae.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Ae.node=!0,Ae.svgSupported=!0):je(navigator.userAgent,Ae);function je(e,t){var n=t.browser,r=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);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Me=`12px sans-serif`,Ne=20,Pe=100,Fe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Ie(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n=0)s=o*n.length;else for(var c=0;c>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function vn(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?dn(s,o):dn(o,s))}function yn(e){return e.nodeName.toUpperCase()===`CANVAS`}var bn=/([&<>"'])/g,xn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Sn(e){return e==null?``:(e+``).replace(bn,function(e,t){return xn[t]})}var Cn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wn=[],Tn=Ae.browser.firefox&&+Ae.browser.version.split(`.`)[0]<39;function En(e,t,n,r){return n||={},r?Dn(e,t,n):Tn&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Dn(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Dn(e,t,n){if(Ae.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(yn(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(gn(wn,e,r,i)){n.zrX=wn[0],n.zrY=wn[1];return}}n.zrX=n.zrY=0}function On(e){return e||window.event}function kn(e,t,n){if(t=On(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&En(e,i,t,n)}else{En(e,t,t,n);var a=An(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Cn.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function An(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function jn(e,t,n,r){e.addEventListener(t,n,r)}function Mn(e,t,n,r){e.removeEventListener(t,n,r)}var Nn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Pn(e){return e.which===2||e.which===3}var Fn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=In(r)/In(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ln(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function zn(){return[1,0,0,1,0,0]}function Bn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Vn(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 Hn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Un(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Wn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Gn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Kn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function qn(e){var t=zn();return Vn(t,e),t}var q=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Jn=Math.min,Yn=Math.max,Xn=Math.abs,Zn=[`x`,`y`],Qn=[`width`,`height`],$n=new q,er=new q,tr=new q,nr=new q,rr=ur(),ir=rr.minTv,ar=rr.maxTv,or=[0,0],J=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Jn(e.x,this.x),n=Jn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=zn();return Un(i,i,[-t.x,-t.y]),Gn(i,i,[n,r]),Un(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(sr,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(cr,n.x,n.y,n.width,n.height));var s=!!r;rr.reset(i,s);var c=rr.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},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(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.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}$n.x=tr.x=n.x,$n.y=nr.y=n.y,er.x=nr.x=n.x+n.width,er.y=tr.y=n.y+n.height,$n.transform(r),nr.transform(r),er.transform(r),tr.transform(r),t.x=Jn($n.x,er.x,tr.x,nr.x),t.y=Jn($n.y,er.y,tr.y,nr.y);var c=Yn($n.x,er.x,tr.x,nr.x),l=Yn($n.y,er.y,tr.y,nr.y);t.width=c-t.x,t.height=l-t.y},e}(),sr=new J(0,0,0,0),cr=new J(0,0,0,0);function lr(e,t,n,r,i,a,o,s){var c=Xn(t-n),l=Xn(r-e),u=Jn(c,l),d=Zn[i],f=Zn[1-i],p=Qn[i];t=l||!rr.bidirectional)&&(ir[d]=-l,ir[f]=0,rr.useDir&&rr.calcDirMTV())))}function ur(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Yn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(_r.copy(u.getBoundingRect()),u.transform&&_r.applyTransform(u.transform),_r.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function yr(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?dr:!0}return!1}function br(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=yr(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==dr)){t.target=o;break}}}function xr(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Sr=32,Cr=7;function wr(e){for(var t=0;e>=Sr;)t|=e&1,e>>=1;return e+t}function Tr(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Er(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){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(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Or(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function kr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Ar(e,t){var n=Cr,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=Cr||m>=Cr);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Or(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=Cr||g>=Cr);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),Dr(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Mr=!1;function Nr(){Mr||(Mr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Pr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pr}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,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}(),Ir=Ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Lr={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.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=1.70158*1.525;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-Lr.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?Lr.bounceIn(e*2)*.5:Lr.bounceOut(e*2-1)*.5+.5}},Rr=Math.pow,zr=Math.sqrt,Br=1e-8,Vr=1e-4,Hr=zr(3),Ur=1/3,Wr=Bt(),Gr=Bt(),Kr=Bt();function qr(e){return e>-Br&&eBr||e<-Br}function Yr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Xr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Zr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(qr(u)&&qr(d))if(qr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(qr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=zr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Rr(-y,Ur):Rr(y,Ur),b=b<0?-Rr(-b,Ur):Rr(b,Ur);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*zr(u*u*u)),S=Math.acos(x)/3,C=zr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Hr*Math.sin(S)))/(3*o),T=(-s+C*(w-Hr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Qr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(qr(o)){if(Jr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(qr(u))i[0]=-a/(2*o);else if(u>0){var d=zr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function $r(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function ei(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Wr[0]=c,Wr[1]=l;for(var v=0;v<1;v+=.05)Gr[0]=Yr(e,n,i,o,v),Gr[1]=Yr(t,r,a,s,v),g=en(Wr,Gr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(qr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=zr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ai(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function oi(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function si(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Wr[0]=o,Wr[1]=s;for(var f=0;f<1;f+=.05){Gr[0]=ni(e,n,i,f),Gr[1]=ni(t,r,a,f);var p=en(Wr,Gr);p=0&&p=1?1:Zr(0,r,a,1,e,s)&&Yr(0,i,o,1,s[0])}}}var di=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||It,this.ondestroy=e.ondestroy||It,this.onrestart=e.onrestart||It,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=V(e)?e:Lr[e]||ui(e)},e}(),fi=function(){function e(e){this.value=e}return e}(),pi=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new fi(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mi=function(){function e(e){this._list=new pi,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new fi(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),hi={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 gi(e){return e=Math.round(e),e<0?0:e>255?255:e}function _i(e){return e=Math.round(e),e<0?0:e>360?360:e}function vi(e){return e<0?0:e>1?1:e}function yi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?gi(parseFloat(t)/100*255):gi(parseInt(t,10))}function bi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?vi(parseFloat(t)/100):vi(parseFloat(t))}function xi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Si(e,t,n){return e+(t-e)*n}function Ci(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function wi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ti=new mi(20),Ei=null;function Di(e,t){Ei&&wi(Ei,t),Ei=Ti.put(e,Ei||t.slice())}function Oi(e,t){if(e){t||=[];var n=Ti.get(e);if(n)return wi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in hi)return wi(t,hi[r]),Di(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ci(t,0,0,0,1);return}return Ci(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Di(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ci(t,0,0,0,1);return}return Ci(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Di(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Ci(t,+l[0],+l[1],+l[2],1):Ci(t,0,0,0,1);u=bi(l.pop());case`rgb`:if(l.length>=3)return Ci(t,yi(l[0]),yi(l[1]),yi(l[2]),l.length===3?u:bi(l[3])),Di(e,t),t;Ci(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ci(t,0,0,0,1);return}return l[3]=bi(l[3]),ki(l,t),Di(e,t),t;case`hsl`:if(l.length!==3){Ci(t,0,0,0,1);return}return ki(l,t),Di(e,t),t;default:return}}Ci(t,0,0,0,1)}}function ki(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=bi(e[1]),i=bi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ci(t,gi(xi(o,a,n+1/3)*255),gi(xi(o,a,n)*255),gi(xi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ai(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function ji(e,t){var n=Oi(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ii(n,n.length===4?`rgba`:`rgb`)}}function Mi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=gi(Si(o[0],s[0],c)),n[1]=gi(Si(o[1],s[1],c)),n[2]=gi(Si(o[2],s[2],c)),n[3]=vi(Si(o[3],s[3],c)),n}}function Ni(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Oi(t[i]),s=Oi(t[a]),c=r-i,l=Ii([gi(Si(o[0],s[0],c)),gi(Si(o[1],s[1],c)),gi(Si(o[2],s[2],c)),vi(Si(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Pi(e,t,n,r){var i=Oi(e);if(e)return i=Ai(i),t!=null&&(i[0]=_i(V(t)?t(i[0]):t)),n!=null&&(i[1]=bi(V(n)?n(i[1]):n)),r!=null&&(i[2]=bi(V(r)?r(i[2]):r)),Ii(ki(i),`rgba`)}function Fi(e,t){var n=Oi(e);if(n&&t!=null)return n[3]=vi(t),Ii(n,`rgba`)}function Ii(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Li(e,t){var n=Oi(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ri=new mi(100);function zi(e){if(H(e)){var t=Ri.get(e);return t||(t=ji(e,-.1),Ri.put(e,t)),t}else if(gt(e)){var n=F({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:ji(e.color,-.1)}}),n}return e}var Bi=Math.round;function Vi(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Oi(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Hi=1e-4;function Ui(e){return e-Hi}function Wi(e){return Bi(e*1e3)/1e3}function Gi(e){return Bi(e*1e4)/1e4}function Ki(e){return`matrix(`+Wi(e[0])+`,`+Wi(e[1])+`,`+Wi(e[2])+`,`+Wi(e[3])+`,`+Gi(e[4])+`,`+Gi(e[5])+`)`}var qi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Ji(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Yi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Xi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Zi(e){return e&&!!e.image}function Qi(e){return e&&!!e.svgElement}function $i(e){return Zi(e)||Qi(e)}function ea(e){return e.type===`linear`}function ta(e){return e.type===`radial`}function na(e){return e&&(e.type===`linear`||e.type===`radial`)}function ra(e){return`url(#`+e+`)`}function ia(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function aa(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Lt,i=W(e.scaleX,1),a=W(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Bi(o*Lt)+`deg, `+Bi(s*Lt)+`deg)`),c.join(` `)}var oa=(function(){return Ae.hasGlobalWindow&&V(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}})(),sa=Array.prototype.slice;function ca(e,t,n){return(t-e)*n+e}function la(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=wa,s=t;if(it(t)){var c=_a(t);o=c,(c===1&&!ft(t[0])||c===2&&!ft(t[0][0]))&&(a=!0)}else if(ft(t)&&!yt(t))o=va;else if(H(t))if(!isNaN(+t))o=va;else{var l=Oi(t);l&&(s=l,o=xa)}else if(gt(t)){var u=F({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:Oi(e.color)}}),ea(t)?o=Sa:ta(t)&&(o=Ca),s=u}i===0?this.valType=o:(o!==this.valType||o===wa)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:Lr[n]||ui(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Ea(r),c=Ta(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Da:e[s];if((Ea(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ea(i))i===ya?la(g,f[r],p[r],h):ua(g,f[r],p[r],h);else if(Ta(i)){var _=f[r],v=p[r],y=i===Sa;e[s]={type:y?`linear`:`radial`,x:ca(_.x,v.x,h),y:ca(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ca(e.offset,n.offset,h),color:ga(la([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ca(_.x2,v.x2,h),e[s].y2=ca(_.y2,v.y2,h)):e[s].r=ca(_.r,v.r,h)}else if(c)la(g,f[r],p[r],h),n||(e[s]=ga(g));else{var b=ca(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===va?e[n]=e[n]+r:t===xa?(Oi(e[n],Da),da(Da,Da,r,1),e[n]=ga(Da)):t===ya?da(e[n],e[n],r,1):t===ba&&fa(e[n],e[n],r,1)},e}(),ka=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Qe(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ct(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ha(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ha(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Aa(){return new Date().getTime()}var ja=function(e){zt(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Aa()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Ir(t),!e._paused&&e.update())}Ir(t)},t.prototype.start=function(){this._running||(this._time=Aa(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Aa(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Aa()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new ka(e,t.loop);return this.addAnimator(n),n},t}(cn),Ma=300,Na=Ae.domSupported,Pa=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Fa={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ia=!1;function La(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ra(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 za(e){e&&(e.zrByTouch=!0)}function Ba(e,t){return kn(e.dom,new Ha(e,t),!0)}function Va(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ha=function(){function e(e,t){this.stopPropagation=It,this.stopImmediatePropagation=It,this.preventDefault=It,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ua={mousedown:function(e){e=kn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=kn(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=kn(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=kn(this.dom,e);var t=e.toElement||e.relatedTarget;Va(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ia=!0,e=kn(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ia||(e=kn(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=kn(this.dom,e),za(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ua.mousemove.call(this,e),Ua.mousedown.call(this,e)},touchmove:function(e){e=kn(this.dom,e),za(e),this.handler.processGesture(e,`change`),Ua.mousemove.call(this,e)},touchend:function(e){e=kn(this.dom,e),za(e),this.handler.processGesture(e,`end`),Ua.mouseup.call(this,e),new Date-+this.__lastTouchMomentio||e<-io}var oo=[],so=[],co=zn(),lo=Math.abs,uo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ao(this.rotation)||ao(this.x)||ao(this.y)||ao(this.scaleX-1)||ao(this.scaleY-1)||ao(this.skewX)||ao(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ro(n),this.invTransform=null);return}n||=zn(),t?this.getLocalTransform(n):ro(n),e&&(t?Hn(n,e,n):Vn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(oo);var n=oo[0]<0?-1:1,r=oo[1]<0?-1:1,i=((oo[0]-n)*t+n)/oo[0]||0,a=((oo[1]-r)*t+r)/oo[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||zn(),Kn(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||zn(),Hn(so,e.invTransform,t),t=so);var n=this.originX,r=this.originY;(n||r)&&(co[4]=n,co[5]=r,Hn(so,t,co),so[4]-=n,so[5]-=r,t=so),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&nn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&nn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&lo(e[0]-1)>1e-10&&lo(e[3]-1)>1e-10?Math.sqrt(lo(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){po(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Wn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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}(),fo=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function po(e,t){for(var n=0;n=vo)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Re.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?_o=vo:i>2&&_o++,t}}var _o=0,vo=5;function yo(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=go(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function bo(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Re.measureText(t,e.font).width,n.put(t,r)),r}function xo(e,t,n,r){var i=bo(mo(t),e),a=To(t);return new J(Co(0,i,n),wo(0,a,r),i,a)}function So(e,t,n,r){var i=((e||``)+``).split(` +`);if(i.length===1)return xo(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o=0?parseFloat(e)/100*t:parseFloat(e):e}function Do(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Eo(r[0],n.width),l+=Eo(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Oo=`__zr_normal__`,ko=fo.concat([`ignore`]),Ao=at(fo,function(e,t){return e[t]=!0,e},{ignore:!1}),jo={},Mo=new J(0,0,0,0),No=[],Po=function(){function e(e){this.id=Ze(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Mo,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(jo,n,d):Do(jo,n,d),i.x=jo.x,i.y=jo.y,a=jo.align,o=jo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Eo(f[0],d.width),m=Eo(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(No),Kn(No,No),J.copy(_,d),_.applyTransform(No)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?to:eo},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Oi(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Ii(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=ct(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Oo,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Oo;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(tt(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Qe(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=tt(r,e),a=tt(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=tt(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=tt(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var X=as;function as(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return os(e,t,n)}function os(e,t,n){return H(e)?es(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ss(e,t,n){return t??=10,t=Math.min(Math.max(0,t),$o),e=(+e).toFixed(t),n?e:+e}function cs(e){return e.sort(function(e,t){return e-t}),e}function ls(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return us(e)}function us(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function ds(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(rs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function fs(e,t){var n=at(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=R(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=R(i,function(e){return Math.floor(e)}),s=at(o,function(e,t){return e+t},0),c=R(i,function(e,t){return e-o[t]});sl&&(l=c[d],u=d);++o[u],c[u]=0,++s}return R(o,function(e){return e/r})}function ps(e,t){var n=Math.max(ls(e),ls(t)),r=e+t;return n>$o?r:ss(r,n)}function ms(e){var t=Math.PI*2;return(e%t+t)%t}function hs(e){return e>-Qo&&e=10&&t++,t}function bs(e,t){var n=ys(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function xs(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Ss(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}();function vc(e){e.option=e.parentModel=e.ecModel=null}var yc=`.`,bc=`___EC__COMPONENT__CONTAINER___`,xc=`___EC__EXTENDED_CLASS___`;function Sc(e){var t={main:``,sub:``};if(e){var n=e.split(yc);t.main=n[0]||``,t.sub=n[1]||``}return t}function Cc(e){wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function wc(e){return!!(e&&e[xc])}function Tc(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Ec(t)?n=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},nt(n,this)),F(n.prototype,e),n[xc]=!0,n.extend=this.extend,n.superCall=Ac,n.superApply=jc,n.superClass=t,n}}function Ec(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Dc(e,t){e.extend=t.extend}var Oc=Math.round(Math.random()*10);function kc(e){var t=[`__\0is_clz`,Oc++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Ac(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function jc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Mc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Cc(r),e.prototype.type=r;var i=Sc(r);if(!i.sub)t[i.main]=e;else if(i.sub!==bc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[bc]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Sc(e),r=[],i=t[n.main];return i&&i[bc]?L(i,function(e,t){t!==bc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Sc(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Sc(e).main];return n&&n[bc]};function n(e){var n=t[e.main];return(!n||!n[bc])&&(n=t[e.main]={},n[bc]=!0),n}}function Nc(e,t){for(var n=0;n=0||i&&tt(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Pc=Nc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Fc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Pc(this,e,t)},e}(),Ic=new mi(50);function Lc(e){if(typeof e==`string`){var t=Ic.get(e);return t&&t.image}else return e}function Rc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ic.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Bc(t)&&a.pending.push(o)):(t=Re.loadImage(e,zc,zc),t.__zrImageSrc=e,Ic.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function zc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;l++)c-=s;var u=bo(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Wc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=bo(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Gc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=bo(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Gc(e,t,n){for(var r=0,i=0,a=e.length;ig&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Uc(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Wc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=mo(l),S=0;S<_.length;S++)w=Math.max(bo(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var qc=function(){function e(){}return e}(),Jc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Yc=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Xc(e,t,n,r,i){var a=new Yc,o=al(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Vc.lastIndex=0,h;(h=Vc.exec(o))!=null;){var g=h.index;g>m&&Zc(a,o.substring(m,g),t,p),Zc(a,h[2],t,p,h[1]),m=Vc.lastIndex}md){var re=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` +`),l=!0),r.accumWidth=m}else{var h=tl(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` +`);for(var g=mo(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $c=at(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function el(e){return Qc(e)?!!$c[e]:!0}function tl(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=mo(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function nl(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(rl,Co(n,o,i),wo(r,s,a),o,s),J.intersect(t,rl,null,il);var c=il.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Co(c.x,c.width,i,!0),e.baseY=wo(c.y,c.height,a,!0)}}var rl=new J(0,0,0,0),il={outIntersectRect:{},clamp:!0};function al(e){return e==null?e=``:e+=``}function ol(e){var t=al(e.text),n=e.font;return sl(e,bo(mo(n),t),To(n),null)}function sl(e,t,n,r){var i=new J(Co(e.x||0,t,e.textAlign),wo(e.y||0,n,e.textBaseline),t,n),a=r??(cl(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function cl(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var ll=`__zr_style_`+Math.round(Math.random()*10),ul={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},dl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ul[ll]=!0;var fl=[`z`,`z2`,`invisible`],pl=[`invisible`],ml=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ct(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Cl[0]=xl(i)*n+e,Cl[1]=bl(i)*r+t,wl[0]=xl(a)*n+e,wl[1]=bl(a)*r+t,l(s,Cl,wl),u(c,Cl,wl),i%=Sl,i<0&&(i+=Sl),a%=Sl,a<0&&(a+=Sl),i>a&&!o?a+=Sl:ii&&(Tl[0]=xl(p)*n+e,Tl[1]=bl(p)*r+t,l(s,Tl,s),u(c,Tl,c))}var Nl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pl=[],Fl=[],Il=[],Ll=[],Rl=[],zl=[],Bl=Math.min,Vl=Math.max,Hl=Math.cos,Ul=Math.sin,Wl=Math.abs,Gl=Math.PI,Kl=Gl*2,ql=typeof Float32Array<`u`,Jl=[];function Yl(e){return Math.round(e/Gl*1e8)/1e8%2*Gl}function Xl(e,t){var n=Yl(e[0]);n<0&&(n+=Kl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Kl?i=n+Kl:t&&n-i>=Kl?i=n-Kl:!t&&n>i?i=n+(Kl-Yl(n-i)):t&&n0&&(this._ux=Wl(n/Qa/e)||0,this._uy=Wl(n/Qa/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Nl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Wl(e-this._xi),r=Wl(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Nl.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Nl.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Nl.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Jl[0]=r,Jl[1]=i,Xl(Jl,a),r=Jl[0],i=Jl[1];var o=i-r;return this.addData(Nl.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Hl(i)*n+e,this._yi=Ul(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Nl.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&ql&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Il[0]=Il[1]=Rl[0]=Rl[1]=Number.MAX_VALUE,Ll[0]=Ll[1]=zl[0]=zl[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Wl(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Nl.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ti(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Nl.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ci(i,a,y,b,h,g,10),i=h,a=g;break;case Nl.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Hl(D)*T+C,s=Ul(D)*E+w),m=Vl(T,E)*Bl(Kl,Math.abs(O)),i=Hl(k)*T+C,a=Ul(k)*E+w;break;case Nl.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Nl.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case Nl.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Nl.L:u=n[x++],d=n[x++];var w=Wl(u-c),T=Wl(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Nl.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;$r(c,k,j,te,D,Pl),$r(l,A,ee,ne,D,Fl),e.bezierCurveTo(Pl[1],Fl[1],Pl[2],Fl[2],Pl[3],Fl[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case Nl.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;oi(c,k,j,D,Pl),oi(l,A,ee,D,Fl),e.quadraticCurveTo(Pl[1],Fl[1],Pl[2],Fl[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Nl.A:var re=n[x++],M=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=Wl(ie-ae)>.001,fe=oe+se,pe=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,pe=!0),h+=E}if(de&&e.ellipse?e.ellipse(re,M,ie,ae,ce,oe,fe,le):e.arc(re,M,ue,oe,fe,le),pe)break lo;C&&(o=Hl(oe)*ie+re,s=Ul(oe)*ae+M),c=Hl(fe)*ie+re,l=Ul(fe)*ae+M;break;case Nl.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var me=n[x++],he=n[x++];if(f){var E=p[g++];if(h+E>_){var ge=_-h;e.moveTo(u,d),e.lineTo(u+Bl(ge,me),d),ge-=me,ge>0&&e.lineTo(u+me,d+Bl(ge,he)),ge-=he,ge>0&&e.lineTo(u+Vl(me-ge,0),d+he),ge-=me,ge>0&&e.lineTo(u,d+Vl(he-ge,0));break lo}h+=E}e.rect(u,d,me,he);break;case Nl.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Nl,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Ql(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=ru);var f=Math.atan2(c,s);return f<0&&(f+=ru),f>=r&&f<=i||f+ru>=r&&f+ru<=i}function au(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var ou=Zl.CMD,su=Math.PI*2,cu=1e-4;function lu(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&fu(),p=Yr(t,r,a,s,du[0]),f>1&&(m=Yr(t,r,a,s,du[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=ni(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);uu[0]=-c,uu[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=su-1e-4){r=0,i=su;var u=a?1:-1;return o>=uu[0]+e&&o<=uu[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=su,i+=su);for(var f=0,p=0;p<2;p++){var m=uu[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=su+h),(h>=r&&h<=i||h+su>=r&&h+su<=i)&&(h>Math.PI/2&&h1&&(n||(s+=au(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case ou.M:u=a[m++],d=a[m++],c=u,l=d;break;case ou.L:if(n){if(Ql(c,l,a[m],a[m+1],t,r,i))return!0}else s+=au(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.C:if(n){if($l(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=pu(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.Q:if(n){if(eu(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=mu(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=au(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(iu(_,v,b,x,x+S,C,t,w,i))return!0}else s+=hu(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case ou.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Ql(u,d,f,d,t,r,i)||Ql(f,d,f,p,t,r,i)||Ql(f,p,u,p,t,r,i)||Ql(u,p,u,d,t,r,i))return!0}else s+=au(f,d,f,p,r,i),s+=au(u,p,u,d,r,i);break;case ou.Z:if(n){if(Ql(c,l,u,d,t,r,i))return!0}else s+=au(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!lu(l,d)&&(s+=au(c,l,u,d,r,i)||0),s!==0}function _u(e,t,n){return gu(e,0,!1,t,n)}function vu(e,t,n,r){return gu(e,t,!0,n,r)}var yu=I({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ul),bu={style:I({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dl.style)},xu=fo.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Su=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?eo:t>.2?no:to}else if(e)return to}return eo},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Li(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Zl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),vu(a,o/s,e,t)))return!0}if(this.hasFill())return _u(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Pt(yu,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=F({},r.shape),F(c,n.shape)):(c=F({},i?this.shape:r.shape),F(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=F({},this.shape);for(var l={},u=ct(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Au=Math.round;function ju(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Au(r*2)===Au(i*2)&&(e.x1=e.x2=Nu(r,s,!0)),Au(a*2)===Au(o*2)&&(e.y1=e.y2=Nu(a,s,!0)),e):e}}function Mu(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Nu(r,s,!0),e.y=Nu(i,s,!0),e.width=Math.max(Nu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Nu(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Nu(e,t,n){if(!t)return e;var r=Au(e*2);return(r+Au(t))%2==0?r/2:(r+(n?1:-1))/2}var Pu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Fu={},Iu=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Pu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Mu(Fu,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?ku(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Su);Iu.prototype.type=`rect`;var Lu={fill:`#000`},Ru=2,zu={},Bu={style:I({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},dl.style)},Vu=function(e){zt(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Lu,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ed(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Qu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(wu),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Zu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Xu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Ru,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=xt(s.opacity,t.opacity,1),Ku(p,s),y&&(p.lineWidth=xt(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(sl(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Iu),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Ou),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=xt(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return qu(e)&&(t=[e.fontStyle,e.fontWeight,Gu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Tt(t)||e.textFont||e.font},t}(ml),Hu={left:!0,right:1,center:1},Uu={top:1,bottom:1,middle:1},Wu=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Gu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Ku(e,t){for(var n=0;n=0,a=!1;if(e instanceof Su){var o=id(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(md(s)||md(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=F({},r),l=F({},l),l.fill=s):!md(l.fill)&&md(s)?(a=!0,r=F({},r),l=F({},l),l.fill=zi(s)):!md(l.stroke)&&md(c)&&(a||(r=F({},r),l=F({},l)),l.stroke=zi(c)),r.style=l}}if(r&&r.z2==null){a||(r=F({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Dd(e,t,n){if(n&&n.z2==null){n=F({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Od(e,t,n){var r=tt(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Td(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=F({},n),o=F({opacity:r?i:a.opacity*.1},o),n.style=o),n}function kd(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ed(this,e,t,n);if(e===`blur`)return Od(this,e,n);if(e===`select`)return Dd(this,e,n)}return n}function Ad(e){e.stateProxy=kd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=kd),n&&(n.stateProxy=kd)}function jd(e,t){!zd(e,t)&&!e.__highByOuter&&Cd(e,gd)}function Md(e,t){!zd(e,t)&&!e.__highByOuter&&Cd(e,_d)}function Nd(e,t){e.__highByOuter|=1<<(t||0),Cd(e,gd)}function Pd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Cd(e,_d)}function Fd(e){Cd(e,vd)}function Id(e){Cd(e,yd)}function Ld(e){Cd(e,bd)}function Rd(e){Cd(e,xd)}function zd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Bd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=ad(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){yd(e)}),o&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Vd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Xd(e,t,n){rf(e,!0),Cd(e,Ad),$d(e,t,n)}function Zd(e){rf(e,!1)}function Qd(e,t,n,r){r?Zd(e):Xd(e,t,n)}function $d(e,t,n){var r=Z(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ef=[`emphasis`,`blur`,`select`],tf={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function nf(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=gf(m),s*=gf(m));var h=(i===a?-1:1)*gf((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+vf(d)*g-_f(d)*_,y=(t+r)/2+_f(d)*g+vf(d)*_,b=Sf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Sf(x,S);if(xf(x,S)<=-1&&(C=yf),xf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/yf*1e6)/1e6;C=yf*2+w%2*yf}u.addData(l,v,y,o,s,b,C,d,a)}var wf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Tf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ef(e){var t=new Zl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Zl.CMD,c=e.match(wf);if(!c)return t;for(var l=0;lA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Zf(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Qf(e,t){var n,r=Kf(t.r,0),i=Kf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Wf(c-s),p=f>zf&&f%zf;if(p>Jf&&(f=p),!(r>Jf))e.moveTo(l,u);else if(f>zf-Jf)e.moveTo(l+r*Vf(s),u+r*Bf(s)),e.arc(l,u,r,s,c,!d),i>Jf&&(e.moveTo(l+i*Vf(c),u+i*Bf(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Vf(s),j=r*Bf(s),ee=i*Vf(c),te=i*Bf(c),ne=f>Jf;if(ne){var re=t.cornerRadius;re&&(n=Zf(re),m=n[0],h=n[1],g=n[2],_=n[3]);var M=Wf(r-i)/2;if(v=qf(M,g),y=qf(M,_),b=qf(M,m),x=qf(M,h),w=S=Kf(v,y),T=C=Kf(b,x),(S>Jf||C>Jf)&&(E=r*Vf(c),D=r*Bf(c),O=i*Vf(s),k=i*Bf(s),fJf){var de=qf(g,w),fe=qf(_,w),pe=Xf(O,k,A,j,r,de,d),me=Xf(E,D,ee,te,r,fe,d);e.moveTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),w0&&e.arc(l+pe.cx,u+pe.cy,de,Uf(pe.y0,pe.x0),Uf(pe.y1,pe.x1),!d),e.arc(l,u,r,Uf(pe.cy+pe.y1,pe.cx+pe.x1),Uf(me.cy+me.y1,me.cx+me.x1),!d),fe>0&&e.arc(l+me.cx,u+me.cy,fe,Uf(me.y1,me.x1),Uf(me.y0,me.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Jf)||!ne)e.lineTo(l+ee,u+te);else if(T>Jf){var de=qf(m,T),fe=qf(h,T),pe=Xf(ee,te,E,D,i,-fe,d),me=Xf(A,j,O,k,i,-de,d);e.lineTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),T0&&e.arc(l+pe.cx,u+pe.cy,fe,Uf(pe.y0,pe.x0),Uf(pe.y1,pe.x1),!d),e.arc(l,u,i,Uf(pe.cy+pe.y1,pe.cx+pe.x1),Uf(me.cy+me.y1,me.cx+me.x1),d),de>0&&e.arc(l+me.cx,u+me.cy,de,Uf(me.y1,me.x1),Uf(me.y0,me.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var $f=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}(),ep=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new $f},t.prototype.buildPath=function(e,t){Qf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Su);ep.prototype.type=`sector`;var tp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),np=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Su);np.prototype.type=`ring`;function rp(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=rp(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sEp[1]){if(i=!1,Dp.negativeSize||n)return i;var s=wp(Ep[0]-Tp[1]),c=wp(Tp[0]-Ep[1]);Sp(s,c)>kp.len()&&(s=c||!Dp.bidirectional)&&(q.scale(Op,o,-c*r),Dp.useDir&&Dp.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Ip(e,t,n,r,i,a){Fp(`update`,e,t,n,r,i,a)}function Lp(e,t,n,r,i,a){Fp(`enter`,e,t,n,r,i,a)}function Rp(e){if(!e.__zr)return!0;for(var t=0;t_p,BezierCurve:()=>hp,BoundingRect:()=>J,Circle:()=>Ff,CompoundPath:()=>vp,Ellipse:()=>Lf,Group:()=>Y,Image:()=>Ou,IncrementalDisplayable:()=>Mp,Line:()=>dp,LinearGradient:()=>bp,OrientedBoundingRect:()=>Ap,Path:()=>Su,Point:()=>q,Polygon:()=>op,Polyline:()=>cp,RadialGradient:()=>xp,Rect:()=>Iu,Ring:()=>np,Sector:()=>ep,Text:()=>Vu,WH:()=>qp,XY:()=>Kp,applyTransform:()=>cm,calcZ2Range:()=>jm,clipPointsByRect:()=>pm,clipRectByRect:()=>mm,createIcon:()=>hm,ensureCopyRect:()=>Om,ensureCopyTransform:()=>km,expandOrShrinkRect:()=>bm,extendPath:()=>Xp,extendShape:()=>Jp,getShapeClass:()=>Qp,getTransform:()=>sm,groupTransition:()=>fm,initProps:()=>Lp,isBoundingRectAxisAligned:()=>Em,isElementRemoved:()=>Rp,lineLineIntersect:()=>_m,linePolygonIntersect:()=>gm,makeImage:()=>em,makePath:()=>$p,mergePath:()=>nm,registerShape:()=>Zp,removeElement:()=>zp,removeElementWithFadeOut:()=>Vp,resizePath:()=>rm,retrieveZInfo:()=>Am,setTooltipConfig:()=>Cm,subPixelOptimize:()=>om,subPixelOptimizeLine:()=>im,subPixelOptimizeRect:()=>am,transformDirection:()=>lm,traverseElements:()=>Tm,traverseUpdateZ:()=>Mm,updateProps:()=>Ip}),Gp={},Kp=[`x`,`y`],qp=[`width`,`height`];function Jp(e){return Su.extend(e)}var Yp=jf;function Xp(e,t){return Yp(e,t)}function Zp(e,t){Gp[e]=t}function Qp(e){if(Gp.hasOwnProperty(e))return Gp[e]}function $p(e,t,n,r){var i=Af(e,t);return n&&(r===`center`&&(n=tm(n,i.getBoundingRect())),rm(i,n)),i}function em(e,t,n){var r=new Ou({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(tm(t,i))}}});return r}function tm(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var nm=Mf;function rm(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function im(e,t){return ju(e,e,{lineWidth:t}),e}function am(e,t){return Mu(e,e,t),e}var om=Nu;function sm(e,t){for(var n=Bn([]);e&&e!==t;)Hn(n,e.getLocalTransform(),n),e=e.parent;return n}function cm(e,t,n){return t&&!it(t)&&(t=uo.getLocalTransform(t)),n&&(t=Kn([],t)),nn([],e,t)}function lm(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:rs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:rs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=cm(a,t,n),rs(a[0])>rs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function um(e){return!e.isGroup}function dm(e){return e.shape!=null}function fm(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){um(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return dm(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(um(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Ip(e,r,n,Z(e).dataIndex)}}})}function pm(e,t){return R(e,function(e){var n=e[0];n=ns(n,t.x),n=ts(n,t.x+t.width);var r=e[1];return r=ns(r,t.y),r=ts(r,t.y+t.height),[n,r]})}function mm(e,t){var n=ns(e.x,t.x),r=ts(e.x+e.width,t.x+t.width),i=ns(e.y,t.y),a=ts(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function hm(e,t,n){var r=F({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),I(i,n),new Ou(r)):$p(e.replace(`path://`,``),r,n,`center`)}function gm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=vm(p,m,u,d)/f;return!(g<0||g>1)}function vm(e,t,n,r){return e*r-n*t}function ym(e){return e<=1e-6&&e>=-1e-6}function bm(e,t,n,r,i){return t==null?e:(ft(t)?xm[0]=xm[1]=xm[2]=xm[3]=t:(xm[0]=t[0],xm[1]=t[1],xm[2]=t[2],xm[3]=t[3]),r&&(xm[0]=ns(0,xm[0]),xm[1]=ns(0,xm[1]),xm[2]=ns(0,xm[2]),xm[3]=ns(0,xm[3])),n&&(xm[0]=-xm[0],xm[1]=-xm[1],xm[2]=-xm[2],xm[3]=-xm[3]),Sm(e,xm,`x`,`width`,3,1,i&&i[0]||0),Sm(e,xm,`y`,`height`,0,2,i&&i[1]||0),e)}var xm=[0,0,0,0];function Sm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ns(0,ts(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:rs(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Cm(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&L(ct(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:I({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function wm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Tm(e,t){if(e)if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function Mm(e,t,n){Nm(e,t,n,-1/0)}function Nm(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s=0&&n.push(e)}),n}}function ph(e,t){return $e($e({},e,!0),t,!0)}var mh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},hh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},gh=`ZH`,_h=`EN`,vh=_h,yh={},bh={},xh=Ae.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||vh).toUpperCase().indexOf(gh)>-1?gh:vh}():vh;function Sh(e,t){e=e.toUpperCase(),bh[e]=new ch(t),yh[e]=t}function Ch(e){if(H(e)){var t=yh[e.toUpperCase()]||{};return e===gh||e===_h?P(t):$e(P(t),P(yh[vh]),!1)}else return $e(P(e),P(yh[vh]),!1)}function wh(e){return bh[e]}function Th(){return bh[vh]}Sh(_h,mh),Sh(gh,hh);var Eh=null;function Dh(e){Eh||=e}function Oh(){return Eh}var kh=1e3,Ah=kh*60,jh=Ah*60,Mh=jh*24,Nh=Mh*365,Ph={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Fh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Ih=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,Lh=`{yyyy}-{MM}-{dd}`,Rh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Lh,hour:Lh+` `+Fh.hour,minute:Lh+` `+Fh.minute,second:Lh+` `+Fh.second,millisecond:Ih},zh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Bh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Vh(e){return!H(e)&&!V(e)?Hh(e):e}function Hh(e){e||={};var t={},n=!0;return L(zh,function(t){n&&=e[t]==null}),L(zh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=zh[s],l=U(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):H(l)?(o=l,u=[o]):(o==null?o=Fh[r]:Ph[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Uh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Wh(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 Gh(e){return e===Wh(e)}function Kh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function qh(e,t,n,r){var i=_s(e),a=i[Zh(n)](),o=i[Qh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[$h(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[eg(n)](),d=(u-1)%12+1,f=i[tg(n)](),p=i[ng(n)](),m=i[rg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof ch?r:wh(r||xh)||Th()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Uh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Uh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Uh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Uh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Uh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Uh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Uh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Uh(m,3)).replace(/{S}/g,m+``)}function Jh(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n)){var o={time:e.time,level:e.time.level},s=Oh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Yh(e.value,i);a=n[u][u][0]}}return qh(new Date(e.value),a,i,r)}function Yh(e,t){var n=_s(e),r=n[Qh(t)]()+1,i=n[$h(t)](),a=n[eg(t)](),o=n[tg(t)](),s=n[ng(t)](),c=n[rg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Xh(e,t,n){switch(t){case`year`:e[ag(n)](0);case`month`:e[og(n)](1);case`day`:e[sg(n)](0);case`hour`:e[cg(n)](0);case`minute`:e[lg(n)](0);case`second`:e[ug(n)](0)}return e}function Zh(e){return e?`getUTCFullYear`:`getFullYear`}function Qh(e){return e?`getUTCMonth`:`getMonth`}function $h(e){return e?`getUTCDate`:`getDate`}function eg(e){return e?`getUTCHours`:`getHours`}function tg(e){return e?`getUTCMinutes`:`getMinutes`}function ng(e){return e?`getUTCSeconds`:`getSeconds`}function rg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function ig(e){return e?`setUTCFullYear`:`setFullYear`}function ag(e){return e?`setUTCMonth`:`setMonth`}function og(e){return e?`setUTCDate`:`setDate`}function sg(e){return e?`setUTCHours`:`setHours`}function cg(e){return e?`setUTCMinutes`:`setMinutes`}function lg(e){return e?`setUTCSeconds`:`setSeconds`}function ug(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function dg(e){if(!ws(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function fg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var pg=Ct;function mg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Tt(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?_s(e):e;if(!isNaN(+c))return qh(c,r,n);if(s)return`-`}if(t===`ordinal`)return dt(e)?i(e):ft(e)&&a(e)?e+``:`-`;var l=Cs(e);return a(l)?dg(l):dt(e)?i(e):typeof e==`boolean`?e+``:`-`}var hg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],gg=function(e,t){return`{`+e+(t??``)+`}`};function _g(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function bg(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function xg(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Sg={},Cg={},wg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Sg,!0),this._normalMasterList=n(Cg,!1);function n(n,r){var i=[];return L(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){L(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Sg[e]=t;return}Cg[e]=t},e.get=function(e){return Cg[e]||Sg[e]},e}();function Tg(e){return!!Sg[e]}var Eg={coord:1,coord2:2};function Dg(e){Og.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Og=G();function kg(e){var t=e.getShallow(`coord`,!0),n=Eg.coord;if(t==null){var r=Og.get(e.type);r&&r.getCoord2&&(n=Eg.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Ag={none:0,dataCoordSys:1,boxCoordSys:2};function jg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=Ag.none;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=Ag.dataCoordSys,a||(i=Ag.none)):r===`box`&&(i=Ag.boxCoordSys,!a&&!Tg(n)&&(i=Ag.none))}return{coordSysType:n,kind:i}}function Mg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=jg(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==Ag.dataCoordSys&&(o=Ag.dataCoordSys,s=n),o===Ag.none||s!==n)return!1;var c=r(n,t);return c?(o===Ag.dataCoordSys?t.coordinateSystem=c:t.boxCoordinateSystem=c,!0):!1}var Ng=function(e,t){var n=t.getReferringComponents(e,lc).models[0];return n&&n.coordinateSystem},Pg=L,Fg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Ig=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Lg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Rg=Lg;ut(Lg,`vertical`),ut(Lg,`horizontal`);function zg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Bg(e,t){var n=Gg(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===Wg.point)a=n.refPoint,i=Hg(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=B(o)?o:[o,o];i=Hg(r,n.refContainer),a=n.boxCoordFrom===Eg.coord2?n.refPoint:[X(s[0],i.width)+i.x,X(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Vg(e,t){var n=Bg(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);B(a)||(a=[0,a]);var o=X(r.width,t.getWidth()),s=X(r.height,t.getHeight()),c=Math.min(o,s),l=X(a[0],c/2),u=X(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Hg(e,t,n){n=pg(n||0);var r=t.width,i=t.height,a=X(e.left,r),o=X(e.top,i),s=X(e.right,r),c=X(e.bottom,i),l=X(e.width,r),u=X(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function Ug(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i=u)return a;for(var d=0;d=0;o--)a=$e(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return dc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return zg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(ch);Dc($g,ch),Mc($g),dh($g),fh($g,e_);function e_(e){var t=[];return L($g.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Sc(e).main}),e!==`dataset`&&tt(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},t_=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var n_ in F(t_,{primary:t_.neutral80,secondary:t_.neutral70,tertiary:t_.neutral60,quaternary:t_.neutral50,disabled:t_.neutral20,border:t_.neutral30,borderTint:t_.neutral20,borderShade:t_.neutral40,background:t_.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:t_.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:t_.neutral70,axisLineTint:t_.neutral40,axisTick:t_.neutral70,axisTickMinor:t_.neutral60,axisLabel:t_.neutral70,axisSplitLine:t_.neutral15,axisMinorSplitLine:t_.neutral05}),t_)if(t_.hasOwnProperty(n_)){var r_=t_[n_];n_===`theme`?Q.darkColor.theme=t_.theme.slice():n_===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:n_.indexOf(`accent`)===0?Q.darkColor[n_]=Pi(r_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[n_]=Pi(r_,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var i_=``;typeof navigator<`u`&&(i_=navigator.platform||``);var a_=`rgba(0, 0, 0, 0.2)`,o_=Q.color.theme[0],s_=Pi(o_,null,null,.9),c_={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[s_,o_],aria:{decal:{decals:[{color:a_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:a_,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:a_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:a_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:a_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:a_,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i_.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},l_=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),u_=`original`,d_=`arrayRows`,f_=`objectRows`,p_=`keyedColumns`,m_=`typedArray`,h_=`unknown`,g_=`column`,__={Must:1,Might:2,Not:3},v_=ac();function y_(e){v_(e).datasetMap=G()}function b_(e,t,n){var r={},i=S_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=v_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});L(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function P_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:N_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function F_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var I_,L_,R_,z_=`\0_ec_inner`,B_=1,V_=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new ch(r),this._locale=new ch(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=K_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,K_(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?R_(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&L(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=G(),s=t&&t.replaceMergeMainTypeMap;y_(this),L(e,function(e,t){e!=null&&($g.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?P(e):$e(n[t],e,!0))}),s&&s.each(function(e,t){$g.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),$g.topologicalTravel(a,$g.getAllClassMainTypes(),c,this);function c(t){var a=O_(this,t,Ls(e[t])),o=r.get(t),c=Hs(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);tc(c,t,$g),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;L(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=$g.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=F({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),F(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&I_(this)}this._seriesIndices||I_(this)},t.prototype.getOption=function(){var e=P(this.option);return L(e,function(t,n){if($g.hasClass(n)){for(var r=Ls(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!$s(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[z_],e},t.prototype.setTheme=function(e){this._theme=new ch(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function ev(e,t){return e.join(`,`)===t.join(`,`)}var tv=L,nv=U,rv=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function iv(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=rv.length;n0?e[n-1].seriesModel:null)}),Ev(e))})}function Ev(e){L(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=ps(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Dv=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nl&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hv=(e={},e[d_+`_`+g_]={pure:!0,appendData:i},e[d_+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[f_]={pure:!0,appendData:i},e[p_]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[u_]={appendData:i},e[m_]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return ny(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ay(e){var t,n;return U(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function oy(e){return new sy(e)}var sy=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:at},gte:function(e,t){return e>=t}},py=function(){function e(e,t){ft(t)||Ns(``),this._opFn=fy[e],this._rvalFloat=Cs(t)}return e.prototype.evaluate=function(e){return ft(e)?this._opFn(e,this._rvalFloat):this._opFn(Cs(e),this._rvalFloat)},e}(),my=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ft(e)?e:Cs(e),r=ft(t)?t:Cs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}(),hy=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Cs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Cs(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function gy(e,t){return e===`eq`||e===`ne`?new hy(e===`eq`,t):K(fy,e)?new py(e,t):null}var _y=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return ly(e,t)},e}();function vy(e,t){var n=new _y,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Ns(``);var o=[],s={},c=e.dimensionsDefine;if(c)L(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&Ns(``),s[n]=r)});else for(var l=0;l65535?ky:Ay}function Iy(){return[1/0,-1/0]}function Ly(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ry(e,t,n,r,i){var a=Ny[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=R(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Fy(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();is&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return ly(e[r],this._dimensions[r])}Py={arrayRows:e,objectRows:function(e,t,n,r){return ly(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return ly(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),By=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Hy(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=mt(o)?m_:u_,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kv(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kv(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Uy(``);var i,a=[],o=[];return L(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Uy(``),a.push(t),o.push(e._getVersionSign())}),n?i=Ty(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jv(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=Qy(e);n>=t&&(t=n+ +(r&&(!n||Xy(e)&&!e.noHeader)))}),t}return 0}function $y(e,t,n,r){var i=t.noHeader,a=nb(Qy(t)),o=[],s=t.blocks||[];wt(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new my(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=Zy(n)(s?F(F({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):rb(r,o.join(``),i?n:a.html);if(i)return d;var f=mg(t.header,`ordinal`,e.useUTC),p=Ky(r,e.renderMode).nameStyle,m=Gy(r);return e.renderMode===`richText`?ob(e,f,p)+a.richText+d:rb(r,`
`+Sn(f)+`
`+d,n)}function eb(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],R(e,function(e,t){return mg(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:mg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=Ky(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ob(e,f,v))+(o?``:sb(e,m,h,g,y)):rb(r,(s?``:d)+(a?``:ib(f,!s,v))+(o?``:ab(m,h,g,y)),n)}}function tb(e,t,n,r,i,a){if(e)return Zy(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function nb(e){return{html:qy[e],richText:Jy[e]}}function rb(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=Gy(e);return`
`+t+r+`
`}function ib(e,t,n){var r=t?`margin-left:2px`:``;return``+Sn(e)+``}function ab(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+R(e,function(e){return Sn(e)}).join(`  `)+``}function ob(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function sb(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function cb(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return bg(n)}function lb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ub=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ts()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=yg({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?L(t,function(e){return F(n,e)}):F(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function db(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=cb(t,n),u,d,f,p;if(o>1||c&&!o){var m=fb(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=ny(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Qs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Yy(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Yy(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Tt(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function fb(e,t,n,r,i){var a=t.getData(),o=at(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?L(r,function(e){u(ny(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Yy(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var pb=ac();function mb(e,t){return e.getName(t)||e.getId(t)}var hb=`__universalTransitionEnabled`,gb=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=oy({count:yb,reset:bb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(pb(this).sourceManager=new By(this)).prepareSource();var r=this.getInitialData(e,n);Sb(r,this),this.dataTask.context.data=r,pb(this).dataBeforeProcessed=r,_b(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{},i=this.subType;$g.hasClass(i)&&(i+=`Series`),$e(e,t.getTheme().get(this.subType)),$e(e,this.getDefaultOption()),Rs(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Yg(e,r,n)},t.prototype.mergeOption=function(e,t){e=$e(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jg(this);n&&Yg(this.option,e,n);var r=pb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Sb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,pb(this).dataBeforeProcessed=i,_b(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!mt(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return db({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ae.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=j_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[mb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return $g.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}($g);rt(gb,iy),rt(gb,j_),Dc(gb,$g);function _b(e){var t=e.name;Qs(e)||(e.name=vb(e)||t)}function vb(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function yb(e){return e.model.getRawData().count()}function bb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),xb}function xb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Sb(e,t){L(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ut(Cb,t))})}function Cb(e,t){var n=wb(e);return n&&n.setOutputEnd((t||this).count()),t}function wb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Tb=function(){function e(){this.group=new Y,this.uid=uh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Tc(Tb),Mc(Tb);function Eb(){var e=ac();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Db=ac(),Ob=Eb(),kb=function(){function e(){this.group=new Y,this.uid=uh(`viewChart`),this.renderTask=oy({plan:Mb,reset:Nb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&jb(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&jb(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Tm(this.group,e)},e.markUpdateMethod=function(e,t){Db(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Ab(e,t,n){e&&af(e)&&(t===`emphasis`?Nd:Pd)(e,n)}function jb(e,t,n){var r=ic(e,t),i=t&&t.highlightKey!=null?sf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Ab(e,n,i)}):L(Ls(r),function(t){Ab(e.getItemGraphicEl(t),n,i)})}Tc(kb,[`dispose`]),Mc(kb);function Mb(e){return Ob(e.model)}function Nb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Db(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Pb[c]}var Pb={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)}}},Fb=`\0__throttleOriginMethod`,Ib=`\0__throttleRate`,Lb=`\0__throttleType`;function Rb(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function zb(e,t,n,r){var i=e[t];if(i){var a=i[Fb]||i,o=i[Lb];if(i[Ib]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Rb(a,n,r===`debounce`),i[Fb]=a,i[Lb]=r,i[Ib]=n}return i}}function Bb(e,t){var n=e[t];n&&n[Fb]&&(n.clear&&n.clear(),e[t]=n[Fb])}var Vb=ac(),Hb={itemStyle:Nc(ah,!0),lineStyle:Nc(nh,!0)},Ub={lineStyle:`stroke`,itemStyle:`fill`};function Wb(e,t){return e.visualStyleMapper||Hb[t]||(console.warn(`Unknown style type '`+t+`'.`),Hb.itemStyle)}function Gb(e,t){return e.visualDrawType||Ub[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Wb(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Gb(e,r),c=a[s],l=V(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=F({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},qb=new ch,Jb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Wb(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){qb.option=n[r];var o=i(qb);F(e.ensureUniqueItemVisual(t,`style`),o),qb.option.decal&&(e.setItemVisual(t,`decal`,qb.option.decal),qb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Yb={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),Vb(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=Vb(t).scope,o=Gb(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},Xb=Math.PI;function Zb(e,t){t||={},I(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Y,r=new Iu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Vu({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 Iu({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new _p({shape:{startAngle:-Xb/2,endAngle:-Xb/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:Xb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Xb*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Qb=function(){function e(e,t,n,r){this._stageTaskMap=G(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=G();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;L(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});wt(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;L(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=G(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||oy({plan:rx,reset:ix,count:sx}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||oy({reset:$b});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;wt(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,L(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,oy({reset:ex,onDirty:nx})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return V(e)&&(e={overallReset:e,seriesType:cx(e)}),e.uid=uh(`stageHandler`),t&&(e.visualType=t),e},e}();function $b(e){e.overallReset(e.ecModel,e.api,e.payload)}function ex(e){return e.overallProgress&&tx}function tx(){this.agent.dirty(),this.getDownstream().dirty()}function nx(){this.agent&&this.agent.dirty()}function rx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ix(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ls(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return ox(t)}):ax}var ax=ox(0);function ox(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],yx=vx.concat([`symbolKeepAspect`]),bx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&Hx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Gx(e,t,n){for(var r=t.type===`radial`?Wx(e,t,n):Ux(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ft(e)?[e]:B(e)?e:null}function Xx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Yx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var Zx=new Zl(!0);function Qx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function $x(e){return typeof e==`string`&&e!==`none`}function eS(e){var t=e.fill;return t!=null&&t!==`none`}function tS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function nS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function rS(e,t,n){var r=Rc(t.image,t.__image,n);if(Bc(r)){var i=e.createPattern(r,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)*Lt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function iS(e,t,n,r){var i,a=Qx(n),o=eS(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||Zx,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?Gx(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?Gx(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?rS(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?rS(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=Xx(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&nS(e,n),o&&tS(e,n)):(o&&tS(e,n),a&&nS(e,n))),w&&e.setLineDash([])}function aS(e,t,n){var r=t.__image=Rc(n.image,t.__image,t,t.onload);if(!(!r||!Bc(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function oS(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=Xx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Qx(n)&&e.strokeText(i,n.x,n.y),eS(n)&&e.fillText(i,n.x,n.y)):(eS(n)&&e.fillText(i,n.x,n.y),Qx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var sS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],cS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function lS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){bS(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ul.opacity:o}(r||t.blend!==n.blend)&&(a||=(bS(e,i),!0),e.globalCompositeOperation=t.blend||ul.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[aC]){if(this._disposed){this.id;return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[aC]=!0,LC(this),!this._model||t){var o=new X_(this._api),s=this._theme,c=this._model=new V_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},GC);var l={seriesTransition:a,optionChanged:!0};if(n)this[sC]={silent:r,updateParams:l},this[aC]=!1,this.getZr().wakeUp();else{try{yC(this),SC.update.call(this,null,l)}catch(e){throw this[sC]=null,this[aC]=!1,e}this._ssr||this._zr.flush(),this[sC]=null,this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[aC]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[sC]&&(r??=this[sC].silent,i=this[sC].updateParams,this[sC]=null),this[aC]=!0,LC(this);try{this._updateTheme(e),n.setTheme(this._theme),yC(this),SC.update.call(this,{type:`setTheme`},i)}catch(e){throw this[aC]=!1,e}this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype._updateTheme=function(e){H(e)&&(e=qC[e]),e&&(e=P(e),e&&wv(e,!0),this._theme=e)},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||Ae.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(XC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(YC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=Re.createCanvas(),h=qo(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Iu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new Ou({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return CC(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return CC(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return CC(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return L(sc(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=sc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Cx(i,t):Sx(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;L(BC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&kx(i,function(e){var t=Z(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=F({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;L(UC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Ox(t,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,this.getDom()&&fc(this.getDom(),QC,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete YC[e.id]},t.prototype.resize=function(e){if(!this[aC]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[sC]&&(r??=this[sC].silent,n=!0,this[sC]=null),this[aC]=!0,LC(this);try{n&&yC(this),SC.update.call(this,{type:`resize`,animation:F({duration:0},e&&e.animation)})}catch(e){throw this[aC]=!1,e}this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),JC[e]){var n=JC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=F({},e);return t.type=HC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(U(t)||(t={silent:!!t}),VC[e.type]&&this._model){if(this[aC]){this._pendingActions.push(e);return}var n=t.silent;TC.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ae.browser.weChat&&this._throttledZrFlush(),EC.call(this,n),DC.call(this,n)}},t.prototype.updateLabelLayout=function(){FS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){yC=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),bC(e,!0),bC(e,!1),t.plan()},bC=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;ct.get(`hoverLayerThreshold`)&&!Ae.node&&!Ae.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Am(e);t.eachRendered(function(e){return Mm(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Rp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Rp(e))return;if(e instanceof Su&&uf(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}NC=function(e){return new(function(t){N(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Nd(t,n),FC(e)},n.prototype.leaveEmphasis=function(t,n){Pd(t,n),FC(e)},n.prototype.enterBlur=function(t){Fd(t),FC(e)},n.prototype.leaveBlur=function(t){Id(t),FC(e)},n.prototype.enterSelect=function(t){Ld(t),FC(e)},n.prototype.leaveSelect=function(t){Rd(t),FC(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getMainProcessVersion=function(){return e[oC]},n}(J_))(e)},PC=function(e){function t(e,t){for(var n=0;n=0)){dw.push(n);var a=Qb.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pw(e,t){JC[e]=t}function mw(e,t,n){var r=RS(`registerMap`);r&&r(e,t,n)}var hw=wy;uw(XS,Kb),uw($S,Jb),uw($S,Yb),uw(XS,bx),uw($S,xx),uw(rC,PS),nw(wv),rw(WS,Tv),pw(`default`,Zb),sw({type:cd,event:cd,update:cd},It),sw({type:ld,event:ld,update:ld},It),sw({type:ud,event:pd,update:ud,action:It,refineEvent:gw,publishNonRefinedEvent:!0}),sw({type:dd,event:pd,update:dd,action:It,refineEvent:gw,publishNonRefinedEvent:!0}),sw({type:fd,event:pd,update:fd,action:It,refineEvent:gw,publishNonRefinedEvent:!0});function gw(e,t,n,r){return{eventContent:{selected:Yd(n),isFromClick:t.isFromClick||!1}}}tw(`default`,{}),tw(`dark`,gx);var _w=[],vw={registerPreprocessor:nw,registerProcessor:rw,registerPostInit:iw,registerPostUpdate:aw,registerUpdateLifecycle:ow,registerAction:sw,registerCoordinateSystem:cw,registerLayout:lw,registerVisual:uw,registerTransform:hw,registerLoading:pw,registerMap:mw,registerImpl:LS,PRIORITY:iC,ComponentModel:$g,ComponentView:Tb,SeriesModel:gb,ChartView:kb,registerComponentModel:function(e){$g.registerClass(e)},registerComponentView:function(e){Tb.registerClass(e)},registerSeriesModel:function(e){gb.registerClass(e)},registerChartView:function(e){kb.registerClass(e)},registerCustomSeries:function(e,t){BS(e,t)},registerSubTypeDefaulter:function(e,t){$g.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Jo(e,t)}};function yw(e){if(B(e)){L(e,function(e){yw(e)});return}tt(_w,e)>=0||(_w.push(e),V(e)&&(e={install:e}),e.install(vw))}function bw(e){return e==null?0:e.length||1}function xw(e){return e}var Sw=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||xw,this._newKeyGetter=r||xw,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;o30}var Iw=U,Lw=R,Rw=typeof Int32Array>`u`?Array:Int32Array,zw=`e\0\0`,Bw=-1,Vw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Hw=[`_approximateExtent`],Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Mw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():Iw(i)&&(i=F({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Iw(t)?F(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Iw(e)?F(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){td(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Lw(this.dimensions,this._getDimInfo,this),this.hostModel),qw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(St(arguments)))})},e.internalField=function(){Uw=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Rw(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Zw(e,t){Ov(e)||(e=Av(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=$w(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Fw(o),c=r===e.dimensionsDefine,l=c?Pw(e):Nw(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new jy(o),p=0;p0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function $w(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function eT(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var tT=function(){function e(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return e}();function nT(e){var t=e.get(`coordinateSystem`),n=new tT(t),r=rT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,lc).models[0],a=e.getReferringComponents(`yAxis`,lc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),iT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),iT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,lc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),iT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,lc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),iT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),iT(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),iT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,lc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function iT(e){return e.get(`type`)===`category`}function aT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;oT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(L(a,function(e,t){H(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;L(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function oT(e){return!Mw(e.schema)}function sT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function cT(e,t){return sT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function lT(e,t){var n=e.get(`coordinateSystem`),r=wg.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Ew(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function uT(e,t,n){var r,i;return n&&L(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function dT(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Av(e)):(i=r.getSource(),a=i.sourceFormat===u_);var o=nT(t),s=lT(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?ut(b_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Zw(i,u),f=uT(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=aT(t,{schema:d,store:p}),h=new Xw(d,t);h.setCalculationInfo(m);var g=f!=null&&fT(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function fT(e){if(e.sourceFormat===`original`)return!B(Bs(pT(e.data||[])))}function pT(e){for(var t=0;ti&&(o=a.interval=i);var s=a.intervalPrecision=_T(o);return yT(a.niceTickExtent=[ss(Math.ceil(e[0]/o)*o,s),ss(Math.floor(e[1]/o)*o,s)],e),a}function gT(e){var t=10**ys(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,ss(n*t)}function _T(e){return ls(e)+2}function vT(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yT(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vT(e,0,t),vT(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bT(e,t){return e>=t[0]&&e<=t[1]}var xT=function(){function e(){this.normalize=ST,this.scale=CT}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=z(e.normalize,e),this.scale=z(e.scale,e)):(this.normalize=ST,this.scale=CT)},e}();function ST(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function CT(e,t){return e*(t[1]-t[0])+t[0]}function wT(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var TT=function(){function e(e){this._calculator=new xT,this._setting=e||{},this._extent=[1/0,-1/0];var t=Oh();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=Oh();t&&this._innerSetBreak(t.parseAxisBreakOption(e,z(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Mc(TT);var ET=0,DT=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ET,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,OT);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=G(this.categories)},e}();function OT(e){return U(e)&&e.value!=null?e.value:e+``}var kT=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new DT({}),B(r)&&(r=new DT({categories:R(r,function(e){return U(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return bT(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(TT);TT.registerClass(kT);var AT=ss,jT=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return bT(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=_T(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Oh(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]=0&&(l=AT(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:AT(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;ir[0]&&d0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function VT(e){var t=BT(e),n=[];return L(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=X(e.get(`barWidth`),a),f=X(e.get(`barMaxWidth`),a),p=X(e.get(`barMinWidth`)||(qT(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:LT(r),stackId:IT(e)})}),HT(n)}function HT(e){var t={};L(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return L(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=ct(r).length;a=Math.max(35-o*4,15)+`%`}var s=X(a,i),c=X(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),L(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&tr&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;L(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;L(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function UT(e,t,n){if(e&&t){var r=e[LT(t)];return r!=null&&n!=null?r[IT(n)]:r}}function WT(e,t){var n=zT(e,t),r=VT(n);L(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=IT(e),a=r[LT(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function GT(e){return{seriesType:e,plan:Eb(),reset:function(e){if(KT(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=sT(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=JT(r,i),p=qT(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&PT(r*3),c=p&&s&&PT(r*3),l=p&&PT(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var ee=n.dataToPoint([E,w]);T=ee[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)0?n:1:n))}var YT=function(e,t,n,r){for(;n>>1;e[i][1]n&&(this._approxInterval=n);var i=ZT.length,a=Math.min(YT(ZT,this._approxInterval,0,i),i-1);this._interval=ZT[a][1],this._intervalPrecision=_T(this._interval),this._minLevelUnit=ZT[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ft(e)?e:+_s(e)},t.prototype.contain=function(e){return bT(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(jT),ZT=[[`second`,kh],[`minute`,Ah],[`hour`,jh],[`quarter-day`,jh*6],[`half-day`,jh*12],[`day`,Mh*1.2],[`half-week`,Mh*3.5],[`week`,Mh*7],[`month`,Mh*31],[`quarter`,Mh*95],[`half-year`,Nh/2],[`year`,Nh]];function QT(e,t,n,r){return Xh(new Date(t),e,r).getTime()===Xh(new Date(n),e,r).getTime()}function $T(e,t){return e/=Mh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function eE(e){var t=30*Mh;return e/=t,e>6?6:e>3?3:e>2?2:1}function tE(e){return e/=jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function nE(e,t){return e/=t?Ah:kh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rE(e){return bs(e,!0)}function iE(e,t,n){var r=Math.max(0,tt(zh,t)-1);return Xh(new Date(e),zh[r],n).getTime()}function aE(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function oE(e,t,n,r,i,a){var o=1e4,s=Bh,c=0;function l(e,t,n,i,s,l,u){for(var d=aE(s,e),f=t,p=new Date(f);fo));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!QT(Wh(e),r[0],r[1],n)){s&&(i=[{value:iE(r[0],e,n)},{value:r[1]}]);for(var c=0;c=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=ot(R(d,function(e){return ot(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h0;)r*=10;var i=[sE(lE(t[0]/r)*r),sE(cE(t[1]/r)*r)];this._interval=r,this._intervalPrecision=_T(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=dE(t)/dE(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=dE(t)/dE(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),uE(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Oh();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,z(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(jT);function pE(e,t){return sE(e,ls(t))}TT.registerClass(fE);var mE=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[gE[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=hE[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),hE={min:`_determinedMin`,max:`_determinedMax`},gE={min:`_dataMin`,max:`_dataMax`};function _E(e,t,n){var r=e.rawExtentInfo;return r||(r=new mE(e,t,n),e.rawExtentInfo=r,r)}function vE(e,t){return t==null?null:yt(t)?NaN:e.parse(t)}function yE(e,t){var n=e.type,r=_E(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=zT(`bar`,o),c=!1;if(L(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=VT(s),u=bE(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function bE(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=UT(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;L(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;L(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function xE(e,t){var n=t,r=yE(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof fE&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(ME(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function SE(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new kT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new XT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((TT.getClass(t))||jT)}}function CE(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function wE(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Vh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(H(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(V(t)){if(e.type===`category`)return function(n,r){return t(TE(e,n),n.value-e.scale.getExtent()[0],null)};var r=Oh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(TE(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function TE(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function EE(e){return e.get(`interval`)??`auto`}function DE(e){return e.type===`category`&&EE(e.getLabelModel())===0}function OE(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[cT(e,t)]=!0}),ct(n)}function kE(e,t,n){t&&L(OE(t,n),function(n){var r=t.getApproximateExtent(n);r[0]e[1]&&(e[1]=r[1])})}function AE(e){return e===`middle`||e===`center`}function jE(e){return e.getShallow(`show`)}function ME(e){var t=e.get(`breaks`,!0);if(t!=null)return!Oh()||!NE(e.axis)?void 0:t}function NE(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var PE=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),FE=1e-8;function IE(e,t){return Math.abs(e-t)n&&(t=i,n=o)}if(t)return VE(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return L(i,function(t){t.type===`polygon`?BE(t.exterior,n,r,e):L(t.points,function(t){BE(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function XE(e,t){return e=qE(e),R(ot(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new UE(a[0],a.slice(1)));break;case`MultiPolygon`:L(r.coordinates,function(e){e[0]&&i.push(new UE(e[0],e.slice(1)))});break;case`LineString`:i.push(new WE([r.coordinates]));break;case`MultiLineString`:i.push(new WE(r.coordinates))}var o=new GE(n[t||`name`],i,n.cp);return o.properties=n,o})}var ZE=ac(),QE=ac(),$E={estimate:1,determine:2};function eD(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function tD(e,t){var n=R(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function nD(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=wE(e),i=e.scale.getExtent();return{labels:R(ot(tD(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?iD(e,t):sD(e)}function rD(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:ot(tD(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?oD(e,t):{ticks:R(e.scale.getTicks(n),function(e){return e.value})}}function iD(e,t){var n=e.getLabelModel(),r=aD(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function aD(e,t,n){var r=lD(e),i=EE(t),a=n.kind===$E.estimate;if(!a){var o=dD(r,i);if(o)return o}var s,c;V(i)?s=yD(e,i):(c=i===`auto`?pD(e,n):i,s=vD(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return fD(r,i,l),!0}):fD(r,i,l),l}function oD(e,t){var n=cD(e),r=EE(t),i=dD(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=yD(e,r,!0);else if(r===`auto`){var s=aD(e,e.getLabelModel(),eD($E.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tickValue})}else o=r,a=vD(e,o,!0);return fD(n,r,{ticks:a,tickCategoryInterval:o})}function sD(e){var t=e.scale.getTicks(),n=wE(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var cD=uD(`axisTick`),lD=uD(`axisLabel`);function uD(e){return function(t){return QE(t)[e]||(QE(t)[e]={list:[]})}}function dD(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=So(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===$E.estimate?(t.out.noPxChangeTryDetermine.push(z(hD,null,e,S,c)),S):gD(e,S,c)??S}function hD(e,t,n){return gD(e,t,n)==null}function gD(e,t,n){var r=ZE(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function _D(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 vD(e,t,n){var r=wE(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=DE(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function yD(e,t,n){var r=e.scale,i=wE(e),a=[];return L(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var bD=[0,1],xD=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return ds(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),SD(n,r.count())),is(e,bD,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),SD(n,r.count()));var i=is(e,n,bD,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=rD(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=R(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return CD(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=eD($E.determine),nD(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+ +!!this.onBand;n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=eD($E.determine),mD(this,e)},e}();function SD(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function CD(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;L(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=ss(e),t=ss(t),d?e>t:ei&&(i+=wD);var p=Math.atan2(s,o);if(p<0&&(p+=wD),p>=r&&p<=i||p+wD>=r&&p+wD<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v0){t=t/180*Math.PI,PD.fromArray(e[0]),FD.fromArray(e[1]),ID.fromArray(e[2]),q.sub(LD,PD,FD),q.sub(RD,ID,FD);var n=LD.len(),r=RD.len();if(!(n<.001||r<.001)){LD.scale(1/n),RD.scale(1/r);var i=LD.dot(RD);if(Math.cos(t)1&&q.copy(VD,ID),VD.toArray(e[1])}}}}function UD(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,PD.fromArray(e[0]),FD.fromArray(e[1]),ID.fromArray(e[2]),q.sub(LD,FD,PD),q.sub(RD,ID,FD);var r=LD.len(),i=RD.len();if(!(r<.001||i<.001)&&(LD.scale(1/r),RD.scale(1/i),LD.dot(t)=o)q.copy(VD,ID);else{VD.scaleAndAdd(RD,a/Math.tan(Math.PI/2-s));var c=ID.x===FD.x?(VD.y-FD.y)/(ID.y-FD.y):(VD.x-FD.x)/(ID.x-FD.x);if(isNaN(c))return;c<0?q.copy(VD,FD):c>1&&q.copy(VD,ID)}VD.toArray(e[1])}}}function WD(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function GD(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Qt(r[0],r[1]),a=Qt(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=tn([],r[1],r[0],o/i),c=tn([],r[1],r[2],o/a),l=tn([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i0)for(var c=0;c0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function cO(e){for(var t=0;t=0&&n.attr(i.oldLayoutSelect),tt(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Ip(n,c,t,s)}else if(n.attr(c),!Jm(n).valueAnimation){var d=W(n.style.opacity,1);n.style.opacity=0,Lp(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};_O(f,c,vO),_O(f,n.states.select,vO)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};_O(p,c,vO),_O(p,n.states.emphasis,vO)}Xm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=gO(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Ip(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Lp(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),bO=ac();function xO(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=bO(t).labelManager;r||=bO(t).labelManager=new yO,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=bO(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var SO=Math.sin,CO=Math.cos,wO=Math.PI,TO=Math.PI*2,EO=180/wO,DO=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Ui(u-TO)||(l?c>=TO:-c>=TO),f=c>0?c%TO:c%TO+TO,p=!1;p=d?!0:Ui(u)?!1:f>=wO==!!l;var m=e+n*CO(a),h=t+r*SO(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*EO);if(d){var _=1/this._p,v=(l?1:-1)*(TO-_);this._add(`A`,n,r,g,1,+l,e+n*CO(a+v),t+r*SO(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*CO(o),b=t+r*SO(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function UO(e){return``}function WO(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return HO(i,a)+(i===`style`?o||``:Sn(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+UO(i)}return r(e)}function GO(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=R(ct(e),function(t){return t+i+R(ct(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(ct(t),function(e){return`@keyframes `+e+i+R(ct(t[e]),function(n){return n+i+R(ct(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function KO(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qO(e,t,n,r){return VO(`svg`,`root`,{width:e,height:t,xmlns:FO,"xmlns:xlink":IO,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var JO=0;function YO(){return JO++}var XO={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`},ZO=`transform-origin`;function QO(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new DO;return i.reset(ia(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function $O(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[ZO]=n+`px `+r+`px`)}var ek={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function tk(e,t){var n=t.zrId+`-ani-`+ t.cssAnimIdx++;return t.cssAnims[n]=e,n}function nk(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=KO(n.zrId);t.animation=!0,ik(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ct(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=tk(i,n);return a.replace(o,s)}}function rk(e){return H(e)?XO[e]?`cubic-bezier(`+XO[e]+`)`:ui(e)?e:``:``}function ik(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof vp){var s=nk(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return tk(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+YO();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function ak(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};ok(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=zi(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),ok(r,t,n,!0)}}function ok(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+YO(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var sk=Math.round;function ck(e){return e&&H(e.src)}function lk(e){return e&&V(e.toDataURL)}function uk(e,t,n,r){PO(function(i,a){var o=i===`fill`||i===`stroke`;o&&na(a)?Tk(t,e,i,r):o&&$i(a)?Ek(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),wk(n,e,r)}function dk(e,t){var n=Xo(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[zO+`silent`]=`true`))}function fk(e){return Ui(e[0]-1)&&Ui(e[1])&&Ui(e[2])&&Ui(e[3]-1)}function pk(e){return Ui(e[4])&&Ui(e[5])}function mk(e,t,n){if(t&&!(pk(t)&&fk(t))){var r=n?10:1e4;e.transform=fk(t)?`translate(`+sk(t[4]*r)/r+` `+sk(t[5]*r)/r+`)`:Ki(t)}}function hk(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;wt(f,g),wt(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=Rc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=VO(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=aa(i);x&&(o.patternTransform=x);var S=VO(`pattern`,``,o,[d]),C=WO(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+ r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=VO(`pattern`,T,o,[d])),t[n]=ra(T)}}function Dk(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+ n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=VO(`clipPath`,a,o,[bk(e,n)])}t[`clip-path`]=ra(a)}function Ok(e){return document.createTextNode(e)}function kk(e,t,n){e.insertBefore(t,n)}function Ak(e,t){e.removeChild(t)}function jk(e,t){e.appendChild(t)}function Mk(e){return e.parentNode}function Nk(e){return e.nextSibling}function Pk(e,t){e.textContent=t}var Fk=58,Ik=120,Lk=VO(``,``);function Rk(e){return e===void 0}function zk(e){return e!==void 0}function Bk(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function Vk(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function Hk(e){var t,n=e.children,r=e.tag;if(zk(r)){var i=e.elm=BO(r);if(Gk(Lk,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,Uk(e,m,n,i,c)):Wk(e,t,r,a))}function qk(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Gk(e,t),Rk(t.text)?zk(r)&&zk(i)?r!==i&&Kk(n,r,i):zk(i)?(zk(e.text)&&Pk(n,``),Uk(n,null,i,0,i.length-1)):zk(r)?Wk(n,r,0,r.length-1):zk(e.text)&&Pk(n,``):e.text!==t.text&&(zk(r)&&Wk(n,r,0,r.length-1),Pk(n,t.text)))}function Jk(e,t){if(Vk(e,t))qk(e,t);else{var n=e.elm,r=Mk(n);Hk(t),r!==null&&(kk(r,t.elm,Nk(n)),Wk(r,[e],0,0))}return t}var Yk=0,Xk=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=Zk(`refreshHover`),this.configLayer=Zk(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+ Yk++,this._oldVNode=qO(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=BO(`svg`);Gk(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Jk(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Ck(e,KO(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=KO(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=Qk(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=VO(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(ct(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(VO(`defs`,`defs`,{},c)),e.animation){var l=GO(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=VO(`style`,`stl`,{},[],l);a.push(u)}}return qO(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},WO(this.renderToVNode({animation:W(e.cssAnimation,!0),emphasis:W(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:W(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}for(var l=this.__startIndex;l15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x0&&e>r[0]){for(s=0;se);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?iA:0),this._needsManuallyCompositing),l.__builtin__||Qe(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?$e(n[e],t,!0):n[e]=t;for(var r=0;r-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(gb);function dA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=ny(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var pA=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=zx(e,-1,-1,2,2,null,a);o.attr({z2:W(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=mA,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Nd(this.childAt(0))},t.prototype.downplay=function(){Pd(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Ip(f,p,o,n),Hp(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Lp(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Rm(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Vx(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Ou){var S=a.style;a.useStyle(F({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(F({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Lm(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):dA(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Qd(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Z(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&zp(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();zp(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Bx(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Y);function mA(e,t){this.parent.drift(e,t)}function hA(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function gA(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function _A(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Rm(t),cursorStyle:t.get(`cursor`)}}var vA=function(){function e(e){this.group=new Y,this._SymbolCtor=e||pA}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=gA(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=_A(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(hA(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!hA(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Ip(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_A(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=gA(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function xA(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function SA(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function CA(e,t,n,r,i,a,o,s){for(var c=SA(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=yA(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y=i||h<0)break;if(EA(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||EA(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){ne=Math.abs(A),re=Math.abs(j);var M=E>0?1:-1;p=_-M*ne*o,m=v,O=_+M*re*o,k=v}else if(s===`y`){ne=Math.abs(ee),re=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*ne*o,O=_,k=v+ie*re*o}else ne=Math.sqrt(A*A+ee*ee),re=Math.sqrt(j*j+te*te),T=re/(re+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=wA(O,TA(S,_)),k=wA(k,TA(C,v)),O=TA(O,wA(S,_)),k=TA(k,wA(C,v)),E=O-_,D=k-v,p=_-E*ne/re,m=v-D*ne/re,p=wA(p,TA(l,_)),m=wA(m,TA(u,v)),p=TA(p,wA(l,_)),m=TA(m,wA(u,v)),E=_-p,D=v-m,O=_+E*re/ne,k=v+D*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var OA=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),kA=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OA},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&EA(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Zr(i,u,f,m,e,s):Zr(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?Yr(a,d,p,h,b):Yr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Su),AA=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(OA),jA=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new AA},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&EA(n[a*2-2],n[a*2-1]);a--);for(;it){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function UA(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=R(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=HA(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;L(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new bp(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function WA(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&GA(a,t))){var o=t.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function GA(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function KA(e,t){return isNaN(e)||isNaN(t)}function qA(e){for(var t=e.length/2;t>0&&KA(e[t*2-2],e[t*2-1]);t--);return t-1}function JA(e,t){return[e[t*2],e[t*2+1]]}function YA(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function XA(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Z(f).seriesIndex=e.seriesIndex,Qd(f,k,A,j);var te=zA(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var re=a.getCalculationInfo(`stackedOnSeries`),M=0;p.useStyle(I(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),re&&(M=zA(re.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:M,smoothMonotone:ne,connectNulls:x}),nf(p,e,`areaStyle`),Z(p).seriesIndex=e.seriesIndex,Qd(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Z(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=ic(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new pA(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else kb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=ic(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else kb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;wd(this._polyline,e),t&&wd(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new jA({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);V(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=V(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=V(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(XA(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Vu({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=qA(o);c>=0&&(Lm(a,Rm(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?dA(i,e):fA(i,n)},enableTextSetter:!0},QA(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=YA(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=JA(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=gc(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=JA(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Jm(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=CA(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=VA(u.stackedOnCurrent,u.current,n,i,o),d=VA(u.current,null,n,i,o),m=VA(u.stackedOnNext,u.next,n,i,o),p=VA(u.next,null,n,i,o)),RA(d,p)>3e3||c&&RA(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Ip(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Ip(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;H(i)?p=tj[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,nj))}}}}}function ij(e){e.registerChartView($A),e.registerSeriesModel(uA),e.registerLayout(ej(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rj(`line`))}var aj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;fs){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}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`,defaultBarGap:`10%`},t}(gb);gb.registerClass(aj);var oj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return dT(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=ph(aj.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(aj),sj=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}(),cj=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new sj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Vp(t,e,Z(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(kb),vj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=mj(t.x,e.x),s=hj(t.x+t.width,i),c=mj(t.y,e.y),l=hj(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=hj(t.r,e.r),a=mj(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},yj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Iu({shape:F({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?cj:ep,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=lj(Oj(i),{isRoundCap:l===cj}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Ip:Lp)(u,{shape:p},a)}return u}};function bj(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function xj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Ip:Lp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Ip:Lp)(n,{shape:l},u,i)}function Sj(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Dj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Oj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function kj(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;F(u,pj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=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=Rm(r);Lm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:dA(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,uj(e,h===`outside`?f:h,Oj(o),r.get([`label`,`rotate`]))}Ym(m,p,a.getRawValue(n),function(e){return fA(t,e)});var g=r.getModel([`emphasis`]);Qd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),nf(e,r),Dj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Aj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=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(r,i,a)}var jj=function(){function e(){}return e}(),Mj=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new jj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function Fj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function Ij(e,t,n){if(FA(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.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 Lj(e,t,n){return new(e.type===`polar`?ep:Iu)({shape:Ij(t,n,e),silent:!0,z2:0})}function Rj(e){e.registerChartView(_j),e.registerSeriesModel(oj),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ut(WT,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,GT(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rj(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var zj=Math.PI*2,Bj=Math.PI/180;function Vj(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=Vg(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*Bj,d=e.get(`endAngle`),f=e.get(`padAngle`)*Bj;d=d===`auto`?u-zj:-d*Bj;var p=e.get(`minAngle`)*Bj+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Xl(S,!_),u=S[0],d=S[1];var w=Hj(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,rr?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?is(e,b,[c,s]):s}),O=i}),En?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}Jj(a,r)}}}function Jj(e,t){Xj.rect=e,tO(Xj,t,Yj)}var Yj={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Xj={};function Zj(e){return e.position===`center`}function Qj(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*Wj,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=X(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=X(T,l);var E=w.get(`length2`);if(E=X(E,l),Math.abs(d.endAngle-d.startAngle)0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(ft(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),ne){h.setStyle({align:te});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var pe=new J(0,0,0,0);Jj(pe,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new q(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:ne})}}),!a&&e.get(`avoidLabelOverlap`)&&Kj(n,r,i,c,l,f,u,d);for(var h=0;h0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l=n.r0}},t.type=`pie`,t}(kb);function tM(e,t,n){t=B(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Zw(r,t).dimensions,a=new Xw(i,e);return a.initData(r,n),a}var nM=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),rM=ac(),iM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return tM(this,{coordDimensions:[`value`],encodeDefaulter:ut(x_,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=rM(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=fs(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Rs(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(gb);Dg({fullType:iM.type,getCoord2:function(e){return e.getShallow(`center`)}});function aM(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ft(r)&&!isNaN(r)&&r<0)})}}}function oM(e){e.registerChartView(eM),e.registerSeriesModel(iM),Ex(`pie`,e.registerAction),e.registerLayout(ut(Vj,`pie`)),e.registerProcessor(Uj(`pie`)),e.registerProcessor(aM(`pie`))}var sM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Q.color.primary}},universalTransition:{divideShape:`clone`}},t}(gb),cM=4,lM=function(){function e(){}return e}(),uM=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new lM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),fM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=ej(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new dM:new vA,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(kb),pM={left:0,right:0,top:0,bottom:0},mM=[`25%`,`25%`],hM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Xg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Yg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Yg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:pM,outerBoundsContain:`all`,outerBoundsClampWidth:mM[0],outerBoundsClampHeight:mM[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}($g),gM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,lc).models[0]},t.type=`cartesian2dAxis`,t}($g);rt(gM,PE);var _M={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:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},vM=$e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},_M),yM=$e({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},_M),bM={category:vM,value:yM,time:$e({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},yM),log:I({logBase:10},yM)},xM={value:1,category:1,time:1,log:1},SM=null;function CM(e){SM||=e}function wM(){return SM}function TM(e,t,n,r){L(xM,function(i,a){var o=$e($e({},bM[a],!0),r,!0),s=function(e){N(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{};$e(e,t.getTheme().get(a+`Axis`)),$e(e,this.getDefaultOption()),e.type=EM(e),n&&Yg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=DT.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=wM();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,EM)}function EM(e){return e.type||(e.data?`category`:`value`)}var DM=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ot(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),OM=[`x`,`y`];function kM(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var AM=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=OM,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!kM(e)||!kM(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Kn([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return nn(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return nn(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(DM),jM=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(xD),MM=`expandAxisBreak`,NM=`collapseAxisBreak`,PM=`toggleAxisBreak`,FM=`axisbreakchanged`,IM={type:MM,event:FM,update:`update`,refineEvent:zM},LM={type:NM,event:FM,update:`update`,refineEvent:zM},RM={type:PM,event:FM,update:`update`,refineEvent:zM};function zM(e,t,n,r){var i=[];return L(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function BM(e){e.registerAction(IM,t),e.registerAction(LM,t),e.registerAction(RM,t);function t(e,t){var n=[],r=sc(t,e);function i(t,i){L(r[t],function(t){L(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(I((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var VM=Math.PI,HM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],WM=ac(),GM=ac(),KM=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function qM(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=_N(e.axisName)&&AE(e.nameLocation);L(r,function(e){var t=eO(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Kn(JM,n.transform):Bn(JM),t.transform&&Hn(JM,JM,t.transform),J.copy(YM,t.localRect),YM.applyTransform(JM),s?s.union(YM):J.copy(s=new J(0,0,0,0),YM))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var JM=zn(),YM=new J(0,0,0,0),XM=function(e,t,n,r,i,a){if(AE(e.nameLocation)){var o=a.stOccupiedRect;o&&ZM(rO({},o,a.transGroup.transform),r,i)}else QM(a.labelInfoList,a.dirVec,r,i)};function ZM(e,t,n){var r=new q;uO(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&iO(t,r)}function QM(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):hs(r-VM)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),eN=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],tN={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(nn(u,u,l),nn(d,d,l));var p=F({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())wM().buildAxisBreakLine(r,i,a,m);else{var h=new dp(F({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));im(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);H(g)&&(g=[g,g]),(H(_)||ft(_))&&(_=[_,_]);var v=Vx(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];L([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=zx(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){uN(t,i,s)&&nN(e,t,n,r,i,a,o,$E.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){uN(t,i,s)&&nN(e,t,n,r,i,a,o,$E.determine);var c=cN(e,i,a,r);aN(e,t.labelLayoutList,c),lN(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(_N(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new q(0,0),_=new q(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=zn();_.transform(Wn(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*VM/180);var b,x;AE(u)?b=$M.innerTextLayout(e.rotation,y??e.rotation,d):(b=rN(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=bt(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Vu({x:g.x,y:g.y,rotation:b.rotation,silent:$M.isLabelSilent(r),style:zm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Cm({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=$M.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=eO({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:AE(u)?HM[E]:UM[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function nN(e,t,n,r,i,a,o,s){fN(t)||dN(e,t,i,s,r,o);var c=t.labelLayoutList;mN(e,r,c,a),yN(r,e.rotation,c);var l=e.optionHideOverlap;iN(r,c,l),l&&lO(ot(c,function(e){return e&&!e.label.ignore})),qM(e,n,r,c)}function rN(e,t,n,r){var i=ms(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return hs(i-VM/2)?(o=c?`bottom`:`top`,a=`center`):hs(i-VM*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iVM/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function iN(e,t,n){if(DE(e.axis))return;function r(e,r,i){var a=eO(t[r]),o=eO(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){oN(a.label);return}if(o.suggestIgnore){oN(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=aO({marginForce:c},a),o=aO({marginForce:c},o)}uO(a,o,null,{touchThreshold:s})&&oN(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function aN(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;tl[0]&&isFinite(m)&&isFinite(l[0]);)p=gT(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=gT(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=ss(h-g),m<0&&l[0]>=0?(m=0,h=ss(g)):h>0&&l[1]<=0&&(h=0,m=-ss(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p)}var EN=[[3,1],[0,2]],DN=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=OM,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=ct(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;mT(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(xE(c,s),mT(c)&&(t=o))}i.length&&(t||(t=i.pop(),xE(t.scale,t.model)),L(i,function(e){TN(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};L(n.x,function(e){kN(n,`y`,e,i)}),L(n.y,function(e){kN(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Gg(e,t),i=this._rect=Hg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(MN(a,i),!n){var c=LN(i,o,a,s,t),l=void 0;if(s)PN?(PN(this._axesList,i),MN(a,i)):l=IN(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=zN(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=IN(d,f,p,i,a,c,r))}RN(i,a,$E.determine,null,l,r)}L(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r0})==null;return bm(r,s,!0,!0,n),MN(i,r),c;function l(e){L(i[Kp[e]],function(t){if(jE(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!yt(t)&&t>1e-4&&(e/=t),e}}function LN(e,t,n,r,i){var a=new KM(BN);return L(n,function(n){return L(n,function(n){if(jE(n.model)){var o=!r;n.axisBuilder=CN(e,t,n.model,i,a,o)}})}),a}function RN(e,t,n,r,i,a){var o=n===$E.determine;L(t,function(t){return L(t,function(t){jE(t.model)&&(wN(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Kp[1-t]]=e[qp[t]]<=a.refContainer[qp[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){jE(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function zN(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Hg(e.get(`outerBounds`,!0)||pM,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||tt([`all`,`axisLabel`],a)<0?`all`:a,s=[os(W(e.get(`outerBoundsClampWidth`,!0),mM[0]),t.width),os(W(e.get(`outerBoundsClampHeight`,!0),mM[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var BN=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;XM(e,t,n,r,i,a),AE(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&QM(e.labelInfoList,e.dirVec,r,i)})};function VN(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HN(n,e,t),n.seriesInvolved&&WN(n,e),n}function HN(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=ZN(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),ut(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&L(f.baseAxes,ut(p,d?`cross`:!0,u)),d&&L(f.otherAxes,ut(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!XN(d))){s??=d.get(`triggerTooltip`),d=r?UN(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=ZN(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:XN(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=GN(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function UN(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&I(l,u.textStyle)}return e.model.getModel(`axisPointer`,new ch(c,n,r))}function WN(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||L(e.coordSysAxesInfo[ZN(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function GN(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function qN(e){var t=JN(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=XN(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o0;return o&&s}var fP=ac();function pP(e,t,n,r){if(e instanceof jM){var i=e.scale.type;if(i!==`category`&&i!==`ordinal`)return n}var a=e.model,o=a.get(`jitter`),s=a.get(`jitterOverlap`),c=a.get(`jitterMargin`)||0,l=e.scale.type===`ordinal`?e.getBandWidth():null;return o>0?s?mP(n,o,l,r):hP(e,t,n,r,o,c):n}function mP(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function hP(e,t,n,r,i,a){var o=fP(e);o.items||=[];var s=o.items,c=gP(s,t,n,r,i,a,1),l=gP(s,t,n,r,i,a,-1),u=Math.abs(c-n)i/2||d&&f>d/2-r?mP(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function gP(e,t,n,r,i,a,o){for(var s=n,c=0;ci/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=I({color:d.color},o));var p=$e(P(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(H(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else V(c)&&(p.name=c(p.name,p));var h=new ch(p,null,this.ecModel);return rt(h,PE.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:$e({lineStyle:{color:Q.color.neutral20}},EP.axisLine),axisLabel:DP(EP.axisLabel,!1),axisTick:DP(EP.axisTick,!1),splitLine:DP(EP.splitLine,!0),splitArea:DP(EP.splitArea,!0),indicator:[]},t}($g),kP=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;L(R(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new $M(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=B(u)?u:[u],p=B(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new Ff({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new np({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=R(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),R(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(LP(this._zr,`globalPan`)||VP(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(Nn(r.event),r.__ecRoamConsumed=!0,JP(e,t,n,r,i))},t}(cn);function VP(e){return e.__ecRoamConsumed}var HP=ac();function UP(e){var t=HP(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function WP(e,t,n,r){for(var i=UP(e).roam,a=i[t]=i[t]||[],o=0;o=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=OF(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new Y,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Iu({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=iF[o];if(l&&K(iF,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=uF[o];if(f&&K(uF,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new wu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pF(t,n),hF(e,n,this._defsUsePending,!1,!1),gF(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){iF={g:function(e,t){var n=new Y;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Iu;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new Ff;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new dp;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new Lf;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=mF(n));var i=new op({shape:{points:r||[]},silent:!0});return pF(t,i),hF(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=mF(n));var i=new cp({shape:{points:r||[]},silent:!0});return pF(t,i),hF(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Ou;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new Y;return pF(t,o),hF(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new Y;return pF(t,o),hF(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Af(e.getAttribute(`d`)||``);return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),uF={lineargradient:function(e){var t=new bp(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return dF(e,t),fF(e,t),t},radialgradient:function(e){var t=new xp(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return dF(e,t),fF(e,t),t}};function dF(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function fF(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};EF(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Oi(o);c&&c[3]&&(c[3]*=bi(s),o=Ii(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function pF(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},I(t.__inheritedStyle,e.__inheritedStyle))}function mF(e){for(var t=xF(e),n=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],c=xF(o);switch(i||=zn(),s){case`translate`:Un(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Gn(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Wn(i,i,-parseFloat(c[0])*CF,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*CF);Hn(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*CF);Hn(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var TF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function EF(e,t,n){var r=e.getAttribute(`style`);if(r){TF.lastIndex=0;for(var i;(i=TF.exec(r))!=null;){var a=i[1],o=K(aF,a)?aF[a]:null;o&&(t[o]=i[2]);var s=K(sF,a)?sF[a]:null;s&&(n[s]=i[2])}}}function DF(e,t,n){for(var r=0;r0,_={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(_):s.resourceType===`geoSVG`&&this._buildSVG(_),this._updateController(e,h,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=G(),n=G(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;Lm(t,Rm(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(eI(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function oI(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Z(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function sI(e,t,n,r,i){e.data||Cm({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function cI(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return Qd(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&of(t,i,n),o}function lI(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),L(e,function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Q.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Q.color.border,areaColor:Q.color.background},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{areaColor:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},nameProperty:`name`},t}(gb);function fI(e,t){var n={};return L(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u1?(y.width=v,y.height=v/h):(y.height=v,y.width=v*h),y.y=_[1]-y.height/2,y.x=_[0]-y.width/2;else{var b=e.getBoxLayoutParams();b.aspect=h,y=Hg(b,m),y=Ug(e,y,h)}this.setViewRect(y.x,y.y,y.width,y.height),this.setCenter(e.get(`center`)),this.setZoom(e.get(`zoom`))}function CI(e,t){L(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var wI=new(function(){function e(){this.dimensions=yI}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new bI(o+a,o,F({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));s.zoomLimit=i.get(`scaleLimit`),n.push(s),i.coordinateSystem=s,s.model=i,s.resize=SI,s.resize(i,t)}),e.eachSeries(function(e){Mg({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,lc).models[0];return t&&t.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),L(i,function(i,a){var o=new bI(a,a,F({nameMap:et(R(i,function(e){return e.get(`nameMap`)})),api:t,ecModel:e},r(i[0])));o.zoomLimit=bt.apply(null,R(i,function(e){return e.get(`scaleLimit`)})),n.push(o),o.resize=SI,o.resize(i[0],t),L(i,function(e){e.coordinateSystem=o,CI(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=G(),o=0;o=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function jI(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){FI(e);var a=(n[0].hierNode.prelim+n[n.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=II(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function MI(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function NI(e){return arguments.length?e:VI}function PI(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function FI(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function II(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=LI(s),a=RI(a),s&&a;){i=LI(i),o=RI(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(BI(zI(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!LI(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!RI(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function LI(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function RI(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function zI(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function BI(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function VI(e,t){return e.parentNode===t.parentNode?1:2}var HI=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),UI=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new HI},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=X(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;fv.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Nt(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(Z(n).focus=k),qI(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||wd(n.__edge,t)}})}function qI(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new hp({shape:ZI(u,d,f,i,i)}),Ip(h,{shape:ZI(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;vt&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(H(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function fL(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function pL(e,t){return tt(fL(e),t)>=0}function mL(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var hL=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new ch(e.leaves||{},this,this.ecModel),r=lL.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return Yy(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=mL(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Q.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(gb);function gL(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)n.push(i[a])}}function vL(e,t){e.eachSeriesByType(`tree`,function(e){yL(e,t)})}function yL(e,t){var n=Gg(e,t).refContainer,r=Hg(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=NI(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=NI());var c=e.getData().tree.root,l=c.children[0];if(l){AI(c),gL(l,jI,s),c.hierNode.modifier=-l.hierNode.prelim,_L(l,MI);var u=l,d=l,f=l;_L(l,function(e){var t=e.getLayout().x;td.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),_L(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=PI(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),_L(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),_L(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function bL(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();F(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function xL(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=t.coordinateSystem,r=eF(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}function SL(e){e.registerChartView(WI),e.registerSeriesModel(hL),e.registerLayout(vL),e.registerVisual(bL),xL(e)}var CL=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function wL(e){for(var t=0;t1;)r=r.parentNode;var i=M_(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var EL=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};DL(n);var r=e.levels||[],i=new ch({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=OL(r,t);var a=R(r||[],function(e){return new ch(e,i,t)},this),o=lL.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Yy(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=mL(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=G(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){TL(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(gb);function DL(e){var t=0;L(e.children,function(e){DL(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}function OL(e,t){var n=Ls(t.get(`color`)),r=Ls(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;L(e,function(e){var t=new ch(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var kL=8,AL=8,jL=5,ML=function(){function e(e){this.group=new Y,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=Gg(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=Hg(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Kg(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Zs(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+kL*2,t.emptyItemWidth);t.totalWidth+=o+AL,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new op({shape:{points:NL(c,0,_,u,m===f.length-1,m===0)},style:I(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Vu({style:zm(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ut(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=zm(o,{text:v}),y.ensureState(`emphasis`).style=p,Qd(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),PL(y,e,g),c+=_+AL}},e.prototype.remove=function(){this.group.removeAll()},e}();function NL(e,t,n,r,i,a){var o=[[i?e:e-jL,t],[e+n,t],[e+n,t+r],[i?e:e-jL,t+r]];return!a&&o.splice(2,0,[e+n+jL,t+r/2]),!i&&o.push([e,t+r/2]),o}function PL(e,t,n){Z(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&mL(n,t)}}var FL=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;rzL||Math.abs(e.dy)>zL)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=zn();Un(m,m,[-t,-n]),Gn(m,m,[f,f]),Un(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&xg(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new ML(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(pL(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=YL(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(kb);function YL(){return{nodeGroup:[],background:[],content:[]}}function XL(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=ce(`nodeGroup`,LL);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),qL(D).nodeWidth=p,qL(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=ce(`background`,RL,l,UL);O&&M(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),ee=k.get(`disabled`),te=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)af(D)&&rf(D,!1),O&&(rf(O,!ee),d.setItemGraphicEl(o.dataIndex,O),$d(O,te,j));else{var ne=ce(`content`,RL,l,WL);ne&&ie(D,ne),O.disableMorphing=!0,O&&af(O)&&rf(O,!1),rf(D,!ee),d.setItemGraphicEl(o.dataIndex,D);var re=f.getShallow(`cursor`);re&&ne.attr(`cursor`,re),$d(D,te,j)}return D;function M(t,n,r){var i=Z(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)ae(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=KL(S);c.fill=s;var l=GL(C);l.fill=C.get(`borderColor`);var u=GL(w);u.fill=w.get(`borderColor`);var d=GL(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;oe(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Ad(n)}t.add(n)}function ie(t,n){var r=Z(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)ae(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=KL(S);l.fill=c,l.decal=s.decal;var u=GL(C),d=GL(w),f=GL(T);oe(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Ad(n)}t.add(n)}function ae(e){!e.invisible&&a.push(e)}function oe(t,n,r,i){var a=f.getModel(i?VL:BL),s=Zs(f.get(`name`),null),c=a.getShallow(`show`);Lm(t,Rm(f,i?VL:BL),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Ct(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,se(d,i,u);var m=l.getState(`emphasis`);se(m?m.style:null,i,u)}}function se(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function ce(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,le(c,s)):g||(s=new r,s instanceof ml&&(s.z2=ZL(a,o)),ue(c,s)),t[e][_]=s}function le(e,t){var n=e[_]={};t instanceof LL?(n.oldX=t.x,n.oldY=t.y):n.oldShape=F({},t.shape)}function ue(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Y;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function ZL(e,t){return e*HL+t}var QL=L,$L=U,eR=-1,tR=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=P(t);this.type=r,this.mappingMethod=n,this._normalizeData=pR[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(iR(i),nR(i)):n===`category`?i.categories?rR(i):iR(i,!0):(wt(n!==`linear`||i.dataExtent),iR(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return z(this._normalizeData,this)},e.listVisualTypes=function(){return ct(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){U(e)?L(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=B(t)?[]:U(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&QL(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if($L(e)){var t=[];QL(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function iR(e,t){var n=e.visual,r=[];U(n)?QL(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),fR(e,r)}function aR(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:uR([0,1])}}function oR(e){var t=this.option.visual;return t[Math.round(is(e,[0,1],[0,t.length-1],!0))]||{}}function sR(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function cR(e){var t=this.option.visual;return t[this.option.loop&&e!==eR?e%t.length:e]}function lR(){return this.option.visual[0]}function uR(e){return{linear:function(t){return is(t,e,this.option.visual,!0)},category:cR,piecewise:function(t,n){var r=dR.call(this,n);return r??=is(t,e,this.option.visual,!0),r},fixed:lR}}function dR(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[tR.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function fR(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=R(t,function(e){return Oi(e)||[0,0,0,1]})),t}var pR={linear:function(e){return is(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=tR.findPieceIndex(e,t,!0);if(n!=null)return is(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??eR},fixed:It};function mR(e,t,n){return e?t<=n:t=n.length||e===n[e.depth])&&vR(e,TR(i,c,e,t,m,r),n,r)})}}}function yR(e,t,n){var r=F({},t),i=n.designatedVisualItemStyle;return L([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function bR(e){var t=SR(e,`color`);if(t){var n=SR(e,`colorAlpha`),r=SR(e,`colorSaturation`);return r&&(t=Pi(t,null,null,r)),n&&(t=Fi(t,n)),t}}function xR(e,t){return t==null?null:Pi(t,null,null,e)}function SR(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function CR(e,t,n,r,i,a){if(!(!a||!a.length)){var o=wR(t,`color`)||i.color!=null&&i.color!==`none`&&(wR(t,`colorAlpha`)||wR(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&sl[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new tR(d);return gR(f).drColorMappingBy=u,f}}}function wR(e,t){var n=e.get(t);return B(n)&&n.length?{name:t,range:n}:null}function TR(e,t,n,r,i,a){var o=F({},t);if(i){var s=i.type,c=s===`color`&&gR(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var ER=Math.max,DR=Math.min,OR=bt,kR=L,AR=[`itemStyle`,`borderWidth`],jR=[`itemStyle`,`gapWidth`],MR=[`upperLabel`,`show`],NR=[`upperLabel`,`height`],PR={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=Gg(e,n).refContainer,o=Hg(e.getBoxLayoutParams(),a),s=i.size||[],c=X(OR(o.width,s[0]),a.width),l=X(OR(o.height,s[1]),a.height),u=r&&r.type,d=dL(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=fL(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?HR(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),FR(p,_,!1,0),v=p.getLayout(),kR(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(F({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(UR(o,f,d),!0),e.setLayoutInfo(o),WR(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function FR(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(AR),l=s.get(jR)/2,u=GR(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=ER(i-2*f,0),a=ER(a-f-p,0);var m=i*a,h=IR(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=DR(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*ts[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function BR(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;ar&&(r=o));var c=e.area*e.area,l=t*t*n;return c?ER(l*r/c,c/(l*i)):1/0}function VR(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d9007199254740991&&(l=9007199254740991),a=s}l`,QR=function(e){return e.get(`autoCurveness`)||null},$R=function(e,t){var n=QR(e),r=20,i=[];if(ft(n))r=n;else if(B(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(Y),Iz=function(){function e(e){this.group=new Y,this._LineCtor=e||Fz}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=Rz(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rz(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!Lz(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r0}function Rz(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:Rm(t)}}function zz(e){return isNaN(e[0])||isNaN(e[1])}function Bz(e){return e&&!zz(e[0])&&!zz(e[1])}var Vz=[],Hz=[],Uz=[],Wz=ni,Gz=en,Kz=Math.abs;function qz(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){Vz[0]=Wz(r[0],i[0],a[0],u),Vz[1]=Wz(r[1],i[1],a[1],u);var d=Kz(Gz(Vz,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function Jz(e,t){var n=[],r=oi,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Ht(c[0]),Ht(c[1])],c[2]&&c.__original.push(Ht(c[2])));var d=c.__original;if(c[2]!=null){if(Vt(i[0],d[0]),Vt(i[1],d[2]),Vt(i[2],d[1]),l&&l!==`none`){var f=fz(e.node1),p=qz(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=fz(e.node2),p=qz(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Vt(c[0],i[0]),Vt(c[1],i[2]),Vt(c[2],i[1])}else{if(Vt(a[0],d[0]),Vt(a[1],d[1]),Kt(o,a[1],a[0]),Xt(o,o),l&&l!==`none`){var f=fz(e.node1);Gt(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=fz(e.node2);Gt(a[1],a[1],o,-f*t)}Vt(c[0],a[0]),Vt(c[1],a[1])}})}var Yz=ac();function Xz(e){if(e)return Yz(e).bridge}function Zz(e,t){e&&(Yz(e).bridge=t)}function Qz(e){return e.type===`view`}var $z=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){var n=new vA,r=new Iz,i=this.group,a=new Y;this._controller=new BP(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=!1;this._model=e,this._api=n,this._active=!0;var o=this._getThumbnailInfo();o&&o.bridge.reset(n);var s=this._symbolDraw,c=this._lineDraw;if(Qz(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(l):Ip(this._mainGroup,l,e)}Jz(e.getGraph(),dz(e));var u=e.getData();s.updateData(u);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),hz(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),lz(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(Z(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(Z(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){_z(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,t,n){var r=this._controller,i=this._controllerHost,a=t.coordinateSystem;if(!Qz(a)){r.disable();return}r.enable(t.get(`roam`),{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get(`roamTrigger`),isInSelf:function(e,t,n){return a.containPoint([t,n])},isInClip:function(t,n,r){return!e||e.contain(n,r)}}}),i.zoomLimit=t.get(`scaleLimit`),i.zoom=a.getZoom(),r.off(`pan`).off(`zoom`).on(`pan`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,zoom:e.scale,originX:e.originX,originY:e.originY})})},t.prototype.updateViewOnPan=function(e,t,n){this._active&&(XP(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,t,n){this._active&&(ZP(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Jz(e.getGraph(),dz(e)),this._lineDraw.updateLayout(),t.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=dz(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Jz(e.getGraph(),dz(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=Xz(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new Y,o=n.group.children(),s=r.group.children(),c=new Y,l=new Y;a.add(l),a.add(c);for(var u=0;u=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof nB||(t=this._nodesMap[eB(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),rB=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=G(),t=G();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function iB(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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)}}}rt(nB,iB(`hostGraph`,`data`)),rt(rB,iB(`hostGraph`,`edgeData`));function aB(e,t,n,r,i){for(var a=new tB(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=dT(e,n);else{var h=wg.get(p),g=h&&h.dimensions||[];tt(g,`value`)<0&&g.concat([`value`]);var _=Zw(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new Xw(_,n),m.initData(e)}var v=new Xw([`value`],n);return v.initData(c,s),i&&i(m,v),$I({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var oB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new nM(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Rs(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){az(this);var a=aB(r,n,this,!0,o);return L(a.edges,function(e){oz(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=ch.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),Yy(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return db({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=R(this.option.categories||[],function(e){return e.value==null?F({value:0},e):e}),t=new Xw([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},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:Q.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function sB(e){e.registerChartView($z),e.registerSeriesModel(oB),e.registerProcessor(qR),e.registerVisual(JR),e.registerVisual(XR),e.registerLayout(uz),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vz),e.registerLayout(xz),e.registerCoordinateSystem(`graphView`,{dimensions:gI.dimensions,create:Cz}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},It),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},It),e.registerAction({type:`graphRoam`,event:`graphRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=n.getViewOfSeriesModel(t);r&&(e.dx!=null&&e.dy!=null&&r.updateViewOnPan(t,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&r.updateViewOnZoom(t,n,e));var i=t.coordinateSystem,a=eF(i,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}var cB=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;Z(i).dataType=`node`,i.z2=2;var a=new Vu;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=F(pj(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):Ip(d,{shape:u},o,t);var f=F(pj(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),nf(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),nf(d,s,`itemStyle`);var p=c.get(`focus`);Qd(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=Rm(t),u=n.getVisual(`style`);Lm(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,xt(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(ep);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var lB=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return Z(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=F(pj(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),uB(m,o,e,u)):(Hp(m),uB(m,o,e,u),Ip(m,{shape:p},a,n)),Qd(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),nf(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(Su);function uB(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(H(s)&&H(c)){var l=e.shape;o.fill=new bp((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var dB=Math.PI/180,fB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*dB;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new cB(r,e,o);Z(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&Vp(s,e,n);return}s?s.updateData(r,t,o):s=new cB(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Vp(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=X(s[0],n.getWidth()),this.group.originY=X(s[1],n.getHeight()),Lp(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new lB(n,r,e,t);Z(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Vp(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=`chord`,t}(kb),pB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return aB(r,n,this,!0,i).data;function i(e,t){var n=ch.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),Yy(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return Yy(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.chord`,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(gb),mB=Math.PI/180;function hB(e,t){e.eachSeriesByType(`chord`,function(e){gB(e,t)})}function gB(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=Vg(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*mB,0),d=Math.max((e.get(`minAngle`)||0)*mB,0),f=-e.get(`startAngle`)*mB,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];Xl(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*wd&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,ee=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),ee[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=ee[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=ee[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),ee[r]=a,ee[d]=p})}}}function _B(e){e.registerChartView(fB),e.registerSeriesModel(pB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hB),e.registerProcessor(Uj(`chord`))}var vB=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),yB=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new vB},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(Su);function bB(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:X(n[0],t.getWidth()),cy:X(n[1],t.getHeight()),r:X(e.get(`radius`),a/2)}}function xB(e,t){var n=e==null?``:e+``;return t&&(H(t)?n=t.replace(`{value}`,n):V(t)&&(n=t(e))),n}var SB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=bB(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?cj:ep,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];Xl(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v=e&&(t===0?0:r[t-1][0])Math.PI/2&&(ae+=Math.PI)):ie===`tangential`?ae=-S-Math.PI/2:ft(ie)&&(ae=ie*Math.PI/180),ae===0?l.add(new Vu({style:zm(_,{text:te,x:re,y:M,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:ne}),silent:!0})):l.add(new Vu({style:zm(_,{text:te,x:re,y:M,verticalAlign:`middle`,align:`center`},{inheritColor:ne}),silent:!0,originX:re,originY:M,rotation:ae}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var oe=0;oe<=y;oe++){O=Math.cos(S),k=Math.sin(S);var se=new dp({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&se.setStyle({stroke:r((A+oe/y)/v)}),l.add(se),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=X(r.get(`width`),i.r),o=X(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=X(c[0],i.r),u=X(c[1],i.r),d=r.get(`keepAspect`),f=s?zx(s,l-a/2,u-o,a,o,null,d):new yB({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?cj:ep,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=is(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);Lp(r,{rotation:-((isNaN(+n)?x[0]:is(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);Lp(i,{shape:{endAngle:is(n,b,x,m.get(`clip`))}},e),l.add(i),td(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,Ip(s,{rotation:-((isNaN(+r)?x[0]:is(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);Ip(v,{shape:{endAngle:is(r,b,x,m.get(`clip`))}},e),l.add(v),td(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof Ou){var u=s.style;s.useStyle(F({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(is(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,nf(s,t),Qd(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,nf(d,t),Qd(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=zx(i,t.cx-r/2+X(a[0],t.r),t.cy-r/2+X(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new Y,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new Vu({silent:!0}),f[e]=new Vu({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new Y,g=r(is(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+X(v[0],i.r),b=i.cy+X(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:zm(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+X(C[0],i.r),T=i.cy+X(C[1],i.r),E=X(S.get(`width`),i.r),D=X(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:zm(S,{x:w,y:T,text:xB(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),Ym(x,{normal:S},a,function(e){return xB(e,k)}),p&&Xm(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return xB(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(kb),CB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return tM(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,Q.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Q.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Q.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:Q.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Q.color.neutral00,borderWidth:0,borderColor:Q.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:Q.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Q.color.transparent,borderWidth:0,borderColor:Q.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:Q.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(gb);function wB(e){e.registerChartView(SB),e.registerSeriesModel(CB)}var TB=[`itemStyle`,`opacity`],EB=function(e){N(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new cp,o=new Vu;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(TB);c??=1,n||Hp(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,Lp(r,{style:{opacity:c}},i,t)):Ip(r,{style:{opacity:c},shape:{points:o.points}},i,t),nf(r,a),this._updateLabel(e,t),Qd(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;Lm(i,Rm(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new q(d[0][0],d[0][1]):null},Ip(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),KD(n,qD(o),{stroke:l})},t}(op),DB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new EB(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){Vp(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(kb),OB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return tM(this,{coordDimensions:[`value`],encodeDefaulter:ut(x_,this)})},t.prototype._defaultLabelLine=function(e){Rs(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Q.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function kB(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();oYB)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!QB(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function QB(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var $B=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&$e(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){L([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];L(ot(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.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}($g),eV=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(xD);function tV(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=rV(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=rV(s,[0,o]),i=a=rV(s,[i,a]),r=0}t[0]=rV(t[0],n),t[1]=rV(t[1],n);var c=nV(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=rV(t[r],u);var d=nV(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=t[r]+d.sign*a),t}function nV(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function rV(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var iV=L,aV=Math.min,oV=Math.max,sV=Math.floor,cV=Math.ceil,lV=ss,uV=Math.PI,dV=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=G(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;iV(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new eV(e,SE(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();iV(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),xE(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){var n=Gg(e,t).refContainer;this._rect=Hg(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=fV(e.get(`axisExpandWidth`),s),u=fV(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=fV(f[1]-f[0],s),f[1]=f[0]+p):(p=fV(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||sV(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[sV(lV(f[0]/l,1))+1,cV(lV(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),iV(n,function(t,n){var a=(r.axisExpandable?mV:pV)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:uV/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=zn();Wn(u,u,l),Un(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];L(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;li*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?tV(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[oV(0,a[1]*o/f-f/2)],r[1]=aV(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function fV(e,t){return aV(oV(e,t[0]),t[1])}function pV(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function mV(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e=0;n--)cs(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;rCV}function HV(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function UV(e,t,n,r){var i=new Y;return i.add(new Iu({name:`main`,style:qV(n),silent:!0,draggable:!0,cursor:`move`,drift:ut(QV,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ut(BV,t,{isEnd:!0})})),L(r,function(n){i.add(new Iu({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ut(QV,e,t,i,n),ondragend:ut(BV,t,{isEnd:!0})}))}),i}function WV(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=bV(i,wV),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;KV(e,t,`main`,o,s,m,h),r.transformable&&(KV(e,t,`w`,c,l,a,_),KV(e,t,`e`,f,l,a,_),KV(e,t,`n`,c,l,g,a),KV(e,t,`s`,c,p,g,a),KV(e,t,`nw`,c,l,a,a),KV(e,t,`ne`,f,l,a,a),KV(e,t,`sw`,c,p,a,a),KV(e,t,`se`,f,p,a,a))}function GV(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(qV(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),L([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?XV(e,n[0]):ZV(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?DV[a]+`-resize`:null})})}function KV(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(nH(tH(e,t,[[r,i],[r+a,i+o]])))}function qV(e){return I({strokeNoScale:!0},e.brushStyle)}function JV(e,t,n,r){var i=[yV(e,n),yV(t,r)],a=[bV(e,n),bV(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function YV(e){return sm(e.group)}function XV(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[lm({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],YV(e))]}function ZV(e,t){var n=[XV(e,t[0]),XV(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function QV(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=eH(t,i,a);L(r,function(e){var t=EV[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(JV(s[0][0],s[1][0],s[0][1],s[1][1])),FV(t,n),BV(t,{isEnd:!1})}function $V(e,t,n,r){var i=t.__brushOption.range,a=eH(e,n,r);L(i,function(e){e[0]+=a[0],e[1]+=a[1]}),FV(e,t),BV(e,{isEnd:!1})}function eH(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function tH(e,t,n){var r=RV(e,t);return r&&r!==vV?r.clipPath(n,e._transform):P(n)}function nH(e){var t=yV(e[0][0],e[1][0]),n=yV(e[0][1],e[1][1]),r=bV(e[0][0],e[1][0]),i=bV(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function rH(e,t,n){if(!(!e._brushType||uH(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=LV(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var dH={lineX:fH(0),lineY:fH(1),rect:{createCover:function(e,t){function n(e){return e}return UV({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=HV(e);return JV(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){WV(e,t,n,r)},updateCommon:GV,contain:aH},polygon:{createCover:function(e,t){var n=new Y;return n.add(new cp({name:`main`,style:qV(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new op({name:`main`,draggable:!0,drift:ut($V,e,t),ondragend:ut(BV,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:tH(e,t,n)})},updateCommon:GV,contain:aH}};function fH(e){return{createCover:function(t,n){return UV({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=HV(t);return[yV(n[0][e],n[1][e]),bV(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=RV(t,n);if(o!==vV&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),WV(t,n,c,i)},updateCommon:GV,contain:aH}}function pH(e){return e=gH(e),function(t){return pm(t,e)}}function mH(e,t){return e=gH(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function hH(e,t,n){var r=gH(e);return function(e,i){return r.contain(i[0],i[1])&&!zP(e,t,n)}}function gH(e){return J.create(e)}var _H=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new AV(n.getZr())).on(`brush`,z(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!vH(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Y,this.group.add(this._axisGroup),e.get(`show`)){var a=bH(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=F({strokeContainThreshold:c},u),f=new $M(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),fm(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=J.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:pH(l),isTargetByCursor:hH(l,a,r),getLinearBrushOtherExtent:mH(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(yH(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=R(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(Tb);function vH(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function yH(e){var t=e.axis;return R(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function bH(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var xH={type:`axisAreaSelect`,event:`axisAreaSelected`};function SH(e){e.registerAction(xH,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var CH={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function wH(e){e.registerComponentView(XB),e.registerComponentModel($B),e.registerCoordinateSystem(`parallel`,gV),e.registerPreprocessor(KB),e.registerComponentModel(_V),e.registerComponentView(_H),TM(e,`parallel`,_V,CH),SH(e)}function TH(e){yw(wH),e.registerChartView(PB),e.registerSeriesModel(VB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,GB)}var EH=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}(),DH=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new EH},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Nd(this)},t.prototype.downplay=function(){Pd(this)},t}(Su),OH=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Y,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(e,t){this._controller=new BP(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this._mainGroup,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,this._updateViewCoordSys(e,n),QP(e,n,a,this._controller,this._controllerHost,null),i.eachEdge(function(t){var n=new DH,r=Z(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),kH(n.style,d,t);var k=``+i.get(`value`),A=Rm(i,`edgeLabel`);Lm(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,xt(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);nf(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return kH(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var ee=j.get(`focus`);Qd(n,ee===`adjacency`?t.getAdjacentDataIndices():ee===`trajectory`?t.getTrajectoryDataIndices():ee,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Iu({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});Lm(f,Rm(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),nf(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),Z(f).dataType=`node`;var p=u.get(`focus`);Qd(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(AH(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=n.width,i=n.height,a=e.coordinateSystem=new gI(null,{api:t,ecModel:e.ecModel});a.zoomLimit=e.get(`scaleLimit`),a.setBoundingRect(0,0,r,i),a.setCenter(e.get(`center`)),a.setZoom(e.get(`zoom`)),this._controllerHost.target.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY})},t.type=`sankey`,t}(kb);function kH(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);H(r)&&H(i)&&(e.fill=new bp(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function AH(e,t,n){var r=new Iu({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Lp(r,{shape:{width:e.width+20}},t,n),r}var jH=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new ch(i[o],this,t));return aB(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return Yy(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return Yy(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(gb);function MH(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=Gg(e,t).refContainer,a=Hg(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;PH(l),NH(l,u,n,r,o,s,ot(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function NH(e,t,n,r,i,a,o,s,c){FH(e,t,n,i,a,s,c),BH(e,t,a,i,r,o,s),$H(e,s)}function PH(e){L(e,function(e){var t=ZH(e.outEdges,XH),n=ZH(e.inEdges,XH),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function FH(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&LH(e,o,a,C),zH(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function IH(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function LH(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,WH(s,c,o),UH(s,i,n,r,o),QH(s,c,o),UH(s,i,n,r,o)}function VH(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=hc(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),L(i.keys,function(e){n.push(i.buckets.get(e))}),n}function HH(e,t,n,r,i,a){var o=1/0;L(e,function(e){var t=e.length,s=0;L(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function WH(e,t,n){L(e.slice().reverse(),function(e){L(e,function(e){if(e.outEdges.length){var r=ZH(e.outEdges,GH,n)/ZH(e.outEdges,XH);if(isNaN(r)){var i=e.outEdges.length;r=i?ZH(e.outEdges,KH,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-YH(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-YH(e,n))*t;e.setLayout({y:o},!0)}}})})}function GH(e,t){return YH(e.node2,t)*e.getValue()}function KH(e,t){return YH(e.node2,t)}function qH(e,t){return YH(e.node1,t)*e.getValue()}function JH(e,t){return YH(e.node1,t)}function YH(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function XH(e){return e.getValue()}function ZH(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),L(n,function(t){var n=new tR({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&L(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function tU(e){e.registerChartView(OH),e.registerSeriesModel(jH),e.registerLayout(MH),e.registerVisual(eU),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e.registerAction({type:`sankeyRoam`,event:`sankeyRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){var n=t.coordinateSystem,r=eF(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}var nU=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];L(h,function(e,t){var n;B(e)?(n=e.slice(),e.unshift(t)):B(e.value)?(n=F({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:Ew(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:Ew(m),dimsDef:_.slice()}];return tM(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:ut(b_,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),rU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}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:Q.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}},animationDuration:800},t}(gb);rt(rU,nU,!0);var iU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.get(`layout`)===`horizontal`);r.diff(a).add(function(e){if(r.hasValue(e)){var t=sU(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(Hp(n),cU(s,n,r,e)):n=sU(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(kb),aU=function(){function e(){}return e}(),oU=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new aU},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();rh){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var gU={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&Ns(``);var n=hU(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function _U(e){e.registerSeriesModel(rU),e.registerChartView(iU),e.registerLayout(dU),e.registerTransform(gU)}var vU=[`itemStyle`,`borderColor`],yU=[`itemStyle`,`borderColor0`],bU=[`itemStyle`,`borderColorDoji`],xU=[`itemStyle`,`color`],SU=[`itemStyle`,`color0`];function CU(e,t){return t.get(e>0?xU:SU)}function wU(e,t){return t.get(e===0?bU:e>0?vU:yU)}var TU={seriesType:`candlestick`,plan:Eb(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=CU(i,r),a.stroke=wU(i,r)||a.fill,F(t.ensureUniqueItemVisual(n,`style`),a)}}}}},EU=[`color`,`borderColor`],DU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Tm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&jU(s,o))return;var c=AU(o,n,!0);Lp(c,{shape:{points:o.ends}},e,n),MU(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&jU(s,u)){r.remove(l);return}l?(Ip(l,{shape:{points:u.ends}},e,o),Hp(l)):l=AU(u,o),MU(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),IU(e,this.group);var t=e.get(`clip`,!0)?PA(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=AU(n.getItemLayout(i),i);MU(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){IU(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(kb),OU=function(){function e(){}return e}(),kU=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new OU},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Su);function AU(e,t,n){var r=e.ends;return new kU({shape:{points:n?NU(r,e):r},z2:100})}function jU(e,t){for(var n=!0,r=0;rh?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=om(a[i]+r/2,1,!1),o[i]=om(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=om(e[i],1),e}}function m(n,r){for(var o=PT(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=VU(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function VU(e,t,n,r,i,a){return n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1}function HU(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=X(W(e.get(`barMaxWidth`),i),i),o=X(W(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):X(s,i)}function UU(e){e.registerChartView(DU),e.registerSeriesModel(RU),e.registerPreprocessor(zU),e.registerVisual(TU),e.registerLayout(BU)}function WU(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var GU=function(e){N(t,e);function t(t,n){var r=e.call(this)||this,i=new pA(t,n),a=new Y;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=V(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return Qt(e.__p1,e.__cp1)+Qt(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=ni,c=ri;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;ot);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(YU),QU=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),$U=function(e){N(t,e);function t(t){var n=e.call(this,t)||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:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new QU},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i0){e.moveTo(n[i++],n[i++]);for(var o=1;o0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var l=r[s++],u=r[s++],d=1;d0){if(eu(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(Ql(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),tW={seriesType:`lines`,plan:Eb(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&PA(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=tW.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new eW:new Iz(i?r?ZU:XU:r?YU:Fz),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(kb),rW=typeof Uint32Array>`u`?Array:Uint32Array,iW=typeof Float64Array>`u`?Array:Float64Array;function aW(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=R(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),et([t,e[0],e[1]])}))}var oW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],aW(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(aW(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Nt(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Nt(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},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}(gb);function sW(e){return e instanceof Array||(e=[e,e]),e}var cW={seriesType:`lines`,reset:function(e){var t=sW(e.get(`symbol`)),n=sW(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=sW(n.getShallow(`symbol`,!0)),i=sW(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function lW(e){e.registerChartView(nW),e.registerSeriesModel(oW),e.registerLayout(tW),e.registerVisual(cW)}var uW=256,dW=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Re.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=Re.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function fW(e,t,n){var r=e[1]-e[0];t=R(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function mW(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var hW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):mW(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(mW(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Tm(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=FA(a,`cartesian2d`),s=FA(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=f.getBandWidth()+.5,l=p.getBandWidth()+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=Rm(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new Iu({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var ee=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(yt(ee.x))continue;D=new Iu({z2:1,shape:ee,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var te=a.dataToLayout([h.get(T[0],E)]),ee=te.contentRect||te.rect;if(yt(ee.x)||yt(ee.y))continue;D=new Iu({z2:1,shape:ee,style:O})}if(h.hasItemOption){var ne=h.getItemModel(E),re=ne.getModel(`emphasis`);g=re.getModel(`itemStyle`).getItemStyle(),_=ne.getModel([`blur`,`itemStyle`]).getItemStyle(),v=ne.getModel([`select`,`itemStyle`]).getItemStyle(),y=ne.get([`itemStyle`,`borderRadius`]),S=re.get(`focus`),C=re.get(`blurScope`),w=re.get(`disabled`),b=Rm(ne)}D.shape.r=y;var M=e.getRawValue(E),ie=`-`;M&&M[2]!=null&&(ie=M[2]+``),Lm(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ie}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,Qd(D,S,C,w),D.incremental=i,i&&(D.states.emphasis.hoverLayer=!0),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new dW;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?pW(v,n.option.range):fW(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Ou({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(kb),gW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=wg.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function _W(e){e.registerChartView(hW),e.registerSeriesModel(gW)}var vW=[`itemStyle`,`borderWidth`],yW=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],bW=new Ff,xW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:yW[+s],categoryDim:yW[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=SW(i,e,NW(i,e),l),n=IW(i,l,t);i.setItemGraphicEl(e,n),r.add(n),HW(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=SW(i,e,NW(i,e),l),s=zW(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?LW(n,l,o):n=IW(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),HW(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&RW(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?PA(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){RW(r,Z(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(kb);function SW(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};CW(n,a,i,r,d),TW(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),EW(n,d.symbolScale,c,r,d);var f=d.symbolSize;return DW(n,f,i,a,o,Vx(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function CW(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(B(o)){var d=[wW(s,o[0])-c,wW(s,o[1])-c];d[1]=0?1:-1:u>0?1:-1}function wW(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function TW(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=B(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=X(m[d.index],f),m[u.index]=X(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function EW(e,t,n,r,i){var a=e.get(vW)||0;a&&(bW.attr({scaleX:t[0],scaleY:t[1],rotation:n}),bW.updateTransform(),a/=bW.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function DW(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=bt(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=X(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=ws(r),w=C?r:UW((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?UW((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=F({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function OW(e){var t=e.symbolPatternSize,n=zx(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function kW(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(BW(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function AW(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?VW(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=OW(n),i.add(a),VW(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function jW(e,t,n){var r=F({},t.barRectShape),i=e.__pictorialBarRect;i?VW(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Iu({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function MW(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=F({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Ip(i,{shape:a},s,c);else{a[o.wh]=0,i=new Iu({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],Wp[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function NW(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=PW,n.isAnimationEnabled=FW,n}function PW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function FW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function IW(e,t,n,r){var i=new Y,a=new Y;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?kW(i,t,n):AW(i,t,n),jW(i,n,r),MW(i,t,n,r),i.__pictorialShapeStr=zW(e,n),i.__pictorialSymbolMeta=n,i}function LW(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Ip(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?kW(e,t,n,!0):AW(e,t,n,!0),jW(e,n,!0),MW(e,t,n,!0)}function RW(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];BW(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),L(a,function(e){zp(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function zW(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function BW(e,t,n){L(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function VW(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Wp[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function HW(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);BW(e,function(e){if(e instanceof Ou){var t=e.style;e.useStyle(F({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,Lm(m,Rm(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:dA(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Qd(e,u,d,a.get(`disabled`))}function UW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var WW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=ph(aj.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Q.color.primary}}}),t}(aj);function GW(e){e.registerChartView(xW),e.registerSeriesModel(WW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ut(WT,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,GT(`pictorialBar`))}var KW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new Sw(this._layersSeries||[],o,u,u),f=[];d.add(z(p,this,`add`)).update(z(p,this,`update`)).remove(z(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;ma&&(a=s),r.push(s)}for(var l=0;la&&(a=d)}return{y0:i,max:a}}function $W(e){e.registerChartView(KW),e.registerSeriesModel(YW),e.registerLayout(XW),e.registerProcessor(Uj(`themeRiver`))}var eG=2,tG=4,nG=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=eG,a.textConfig={inside:!0},Z(a).seriesIndex=n.seriesIndex;var o=new Vu({z2:tG,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;Z(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=F({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=OS(d,i)),F(l,pj(o.getModel(`itemStyle`),l,!0)),L(od,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=pj(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,Lp(a,{shape:{r:c.r}},n,t.dataIndex)):(Ip(a,{shape:l},n),Hp(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Nt(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;Qd(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)T&&!hs(D-T)&&D0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new nG(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&xg(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rG,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(kb),cG=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};lG(n);var r=this._levelModels=R(e.levels||[],function(e){return new ch(e,this,t)},this),i=lL.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=mL(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){TL(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}(gb);function lG(e){var t=0;L(e.children,function(e){lG(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}var uG=Math.PI/180;function dG(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);B(r)||(r=[0,r]),B(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=X(t[0],i),c=X(t[1],a),l=X(r[0],o/2),u=X(r[1],o/2),d=-e.get(`startAngle`)*uG,f=e.get(`minAngle`)*uG,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&fG(m,g);var _=0;L(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&H(a)&&(a=ji(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),F(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function hG(e){e.registerChartView(sG),e.registerSeriesModel(cG),e.registerLayout(ut(dG,`sunburst`)),e.registerProcessor(ut(Uj,`sunburst`)),e.registerVisual(mG),oG(e)}var gG={color:`fill`,borderColor:`stroke`},_G={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},vG=ac(),yG=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return dT(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=vG(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(gb);function bG(e,t){return t||=[0,0],R([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function xG(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(t){return e.dataToPoint(t)},size:z(bG,e)}}}function SG(e,t){return t||=[0,0],R([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function CG(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(t){return e.dataToPoint(t)},size:z(SG,e)}}}function wG(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function TG(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:z(wG,e)}}}function EG(e,t){return t||=[0,0],R([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function DG(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:z(EG,e)}}}function OG(e){var t=e.getRect(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function kG(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function AG(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function jG(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return MG(o,e),L(o.rich,function(e){MG(e,e)}),{textConfig:i,textContent:a}}function MG(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function NG(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||Q.color.neutral99;PG(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,L(t.rich,function(e){PG(e,e)}),r}function PG(e,t){t&&(K(t,`fill`)&&(e.textFill=t.fill),K(t,`stroke`)&&(e.textStroke=t.fill),K(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),K(t,`font`)&&(e.font=t.font),K(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),K(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),K(t,`fontSize`)&&(e.fontSize=t.fontSize),K(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),K(t,`align`)&&(e.textAlign=t.align),K(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),K(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),K(t,`width`)&&(e.textWidth=t.width),K(t,`height`)&&(e.textHeight=t.height),K(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),K(t,`padding`)&&(e.textPadding=t.padding),K(t,`borderColor`)&&(e.textBorderColor=t.borderColor),K(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),K(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),K(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),K(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),K(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),K(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),K(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),K(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),K(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),K(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var FG={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},IG=ct(FG);at(fo,function(e,t){return e[t]=1,e},{}),fo.join(`, `);var LG=[``,`style`,`shape`,`extra`],RG=ac();function zG(e,t,n,r,i){var a=e+`Animation`,o=Pp(e,r,i)||{},s=RG(t).userDuring;return o.duration>0&&(o.during=s?z(YG,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),F(o,n[a]),o}function BG(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=RG(e),l=t.style;c.userDuring=t.during;var u={},d={};if($G(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else GG(e,t,i||0,n,u);VG(e,t),l?e.dirty():e.markRedraw()}function VG(e,t){for(var n=RG(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function KG(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof ml&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Su&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var qG={},JG={setTransform:function(e,t){return qG.el[e]=t,this},getTransform:function(e){return qG.el[e]},setShape:function(e,t){var n=qG.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=qG.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=qG.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=qG.el.style;if(t)return t[e]},setExtra:function(e,t){var n=qG.el.extra||(qG.el.extra={});return n[e]=t,this},getExtra:function(e){var t=qG.el.extra;if(t)return t[e]}};function YG(){var e=this,t=e.el;if(t){var n=RG(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}qG.el=t,r(JG)}}function XG(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),UG(c))F(o,a);else for(var l=Ls(c),u=0;u=0){!o&&(o=r[e]={});for(var p=ct(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=ct(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,sK).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:H(a)?a:Q.color.neutral99},l=b(r,sK),d=zm(l,null,c,!1,!0);d.text=l.getShallow(`show`)?W(e.getFormattedLabel(r,sK),dA(t,r)):null;var f=Bm(l,c,!1);return E(n,s),s=NG(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,oK).getItemStyle(),a=b(r,oK),o=zm(a,null,null,!0,!0);o.text=a.getShallow(`show`)?xt(e.getFormattedLabel(r,oK),e.getFormattedLabel(r,sK),dA(t,r)):null;var s=Bm(a,null,!0);return E(n,i),i=NG(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)K(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,K(gG,e)){var r=t.getItemVisual(n,`style`);return r?r[gG[e]]:null}if(K(_G,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return RT(I({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return qm(e,n)}}function DK(e){var t={};return L(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function OK(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=kK(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Qd(s,r.focus,r.blurScope,r.emphasisDisabled),s}function kK(e,t,n,r,i,a){var o=-1,s=t;t&&AK(t,r,i)&&(o=tt(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=xK(r),s&&yK(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),hK.normal.cfg=hK.normal.conOpt=hK.emphasis.cfg=hK.emphasis.conOpt=hK.blur.cfg=hK.blur.conOpt=hK.select.cfg=hK.select.conOpt=null,hK.isLegacy=!1,MK(l,n,r,i,c,hK),jK(l,n,r,i,c),SK(e,l,n,r,hK,i,c),K(r,`info`)&&(vG(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function AK(e,t,n){var r=vG(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&UK(a)&&HK(a)!==r.customPathData||i===`image`&&K(o,`image`)&&o.image!==r.customImagePath}function jK(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&AK(o,a,r)&&(o=null),o||(o=xK(a),e.setClipPath(o)),SK(null,o,t,a,null,r,i)}}function MK(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){NK(n,null,a),NK(n,oK,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=xK(o),e.setTextContent(u)),SK(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)LK(t,t.childAt(p),i)}}function LK(e,t,n){t&&HG(t,vG(e).option,n)}function RK(e){new Sw(e.oldChildren,e.newChildren,zK,zK,e).add(BK).update(BK).remove(VK).execute()}function zK(e,t){return(e&&e.name)??mK+t}function BK(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];kK(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function VK(e){var t=this.context,n=t.oldChildren[e];n&&HG(n,vG(n).option,t.seriesModel)}function HK(e){return e&&(e.pathData||e.d)}function UK(e){return e&&(K(e,`pathData`)||K(e,`d`))}function WK(e){e.registerChartView(bK),e.registerSeriesModel(yG)}var GK=ac(),KK=P,qK=z,JK=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Y,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ut(YK,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}$K(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=JN(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=GK(e).pointerEl=new Wp[i.type](KK(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=GK(e).labelEl=new Vu(KK(t.label));e.add(i),ZK(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=GK(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=GK(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ZK(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=hm(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Nn(e.event)},onmousedown:qK(this._onHandleDragMove,this,0,0),drift:qK(this._onHandleDragMove,this),ondragend:qK(this._onHandleDragEnd,this)}),n.add(r)),$K(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,zb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){YK(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QK(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(QK(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(QK(r)),GK(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Bb(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function YK(e,t,n,r){XK(GK(n).lastProp,r)||(GK(n).lastProp=r,t?Ip(n,r,e):(n.stopAnimation(),n.attr(r)))}function XK(e,t){if(U(e)&&U(t)){var n=!0;return L(t,function(t,r){n&&=XK(e[r],t)}),!!n}else return e===t}function ZK(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function QK(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $K(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function eq(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function tq(e,t,n,r,i){var a=rq(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=pg(o.get(`padding`)||0),c=o.getFont(),l=So(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),nq(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:zm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function nq(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function rq(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:TE(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function iq(e,t,n){var r=zn();return Wn(r,r,n.rotation),Un(r,r,n.position),cm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function aq(e,t,n,r,i,a){var o=$M.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),tq(t,r,i,a,{position:iq(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oq(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sq(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function cq(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var lq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=uq(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=eq(r),d=dq[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}aq(t,e,bN(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=bN(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iq(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=uq(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(JK);function uq(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var dq={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:oq([t,n[0]],[t,n[1]],fq(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:sq([t-r/2,n[0]],[r,i],fq(e))}}};function fq(e){return e.dim===`x`?0:1}var pq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}($g),mq=ac(),hq=L;function gq(e,t,n){if(!Ae.node){var r=t.getZr();mq(r).records||(mq(r).records={}),_q(r,t);var i=mq(r).records[e]||(mq(r).records[e]={});i.handler=n}}function _q(e,t){if(mq(e).initialized)return;mq(e).initialized=!0,n(`click`,ut(bq,`click`)),n(`mousemove`,ut(bq,`mousemove`)),n(`globalout`,yq);function n(n,r){e.on(n,function(n){var i=xq(t);hq(mq(e).records,function(e){e&&r(e,n,i.dispatchAction)}),vq(i.pendings,t)})}}function vq(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function yq(e,t,n){e.handler(`leave`,null,n)}function bq(e,t,n,r){t.handler(e,n,r)}function xq(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Sq(e,t){if(!Ae.node){var n=t.getZr();(mq(n).records||{})[e]&&(mq(n).records[e]=null)}}var Cq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;gq(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){Sq(`axisPointer`,t)},t.prototype.dispose=function(e,t){Sq(`axisPointer`,t)},t.type=`axisPointer`,t}(Tb);function wq(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ic(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var Tq=ac();function Eq(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||z(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){Iq(i)&&(i=wq({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=Iq(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||Iq(i),f={},p={},m={list:[],map:{}},h={showPointer:ut(kq,p),showTooltip:ut(Aq,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=Pq(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&Dq(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,Fq(t),Fq(e)))),g[e.key]=a}})}),L(g,function(e,t){Dq(u[t],e,h,!0,f)}),jq(p,u,f),Mq(m,i,e,o),Nq(u,o,n),f}}function Dq(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=Oq(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function Oq(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function kq(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Aq(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=ZN(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function jq(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function Mq(e,t,n,r){if(Iq(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Nq(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=Tq(r)[i]||{},o=Tq(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];L(a,function(e,t){!o[t]&&c.push(e)}),L(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function Pq(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Fq(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function Iq(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Lq(e){$N.registerAxisPointerClass(`CartesianAxisPointer`,lq),e.registerComponentModel(pq),e.registerComponentView(Cq),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=VN(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Eq)}function Rq(e){yw(uP),yw(Lq)}var zq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=eq(r),d=Vq[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}tq(e,n,r,i,Bq(t,n,r,o,r.get([`label`,`margin`])))},t}(JK);function Bq(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=zn();Wn(f,f,s),Un(f,f,[r.cx,r.cy]),l=cm([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=$M.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var Vq={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:oq(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:cq(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:cq(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},Hq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}($g),Uq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,lc).models[0]},t.type=`polarAxis`,t}($g);rt(Uq,PE);var Wq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(Uq),Gq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(Uq),Kq=function(e){N(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(xD);Kq.prototype.dataToRadius=xD.prototype.dataToCoord,Kq.prototype.radiusToData=xD.prototype.coordToData;var qq=ac(),Jq=function(e){N(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=So(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=qq(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(xD);Jq.prototype.dataToAngle=xD.prototype.dataToCoord,Jq.prototype.angleToData=xD.prototype.coordToData;var Yq=[`radius`,`angle`],Xq=function(){function e(e){this.dimensions=Yq,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new Kq,this._angleAxis=new Jq,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=co;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return Zq(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Zq(t)===this?this.pointToData(n):null},e}();function Zq(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function Qq(e,t,n){var r=t.get(`center`),i=Gg(t,n).refContainer;e.cx=X(r[0],i.width)+i.x,e.cy=X(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:B(s)||(s=[0,s]);var c=[X(s[0],o),X(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function $q(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();L(OE(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),L(OE(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),xE(r.scale,r.model),xE(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function eJ(e){return e.mainType===`angleAxis`}function tJ(e,t){if(e.type=t.get(`type`),e.scale=SE(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),eJ(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var nJ={dimensions:Yq,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new Xq(r+``);i.update=$q;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);tJ(a,s),tJ(o,c),Qq(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`polar`&&(e.coordinateSystem=e.getReferringComponents(`polar`,lc).models[0].coordinateSystem)}),n}},rJ=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function iJ(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function aJ(e){return+!e.getRadiusAxis().inverse}function oJ(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var sJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=R(n.getViewLabels(),function(e){e=P(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});oJ(s),oJ(a),L(rJ,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&cJ[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}($N),cJ={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=aJ(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new Wp[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new np({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[aJ(n)],l=R(r,function(e){return new dp({shape:iJ(n,[c,c+s],e.coord)})});e.add(nm(l,{style:I(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[aJ(n)],u=[],d=0;dm?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];U(v)&&v.textStyle&&(o=new ch(v.textStyle,c,c.ecModel))}var y=new Vu({silent:$M.isLabelSilent(t),style:zm(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),Cm({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=$M.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,Z(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var ee=d.dataToCoord(w)-x,te=a.dataToCoord(T);Math.abs(ee)=j})}}})}function gJ(e){var t={};L(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=mJ(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=pJ(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=X(e.get(`barWidth`),c),p=X(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return L(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=X(e.categoryGap,i),o=X(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),L(r,function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return kJ(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return kJ(t)===this?this.pointToData(n):null},e}();function kJ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function AJ(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new OJ(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,lc).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var jJ={create:AJ,dimensions:DJ},MJ=[`x`,`y`],NJ=[`width`,`height`],PJ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=LJ(o,1-IJ(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=eq(r),d=FJ[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}aq(t,e,xJ(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=xJ(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iq(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=IJ(i),s=LJ(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=LJ(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(JK),FJ={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:oq([t,n[0]],[t,n[1]],IJ(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:sq([t-r/2,n[0]],[r,i],IJ(e))}}};function IJ(e){return+!e.isHorizontal()}function LJ(e,t){var n=e.getRect();return[n[MJ[t]],n[MJ[t]]+n[NJ[t]]]}var RJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(Tb);function zJ(e){yw(Lq),$N.registerAxisPointerClass(`SingleAxisPointer`,PJ),e.registerComponentView(RJ),e.registerComponentView(CJ),e.registerComponentModel(TJ),TM(e,`single`,TJ,TJ.defaultOption),e.registerCoordinateSystem(`single`,jJ)}var BJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=Xg(t);e.prototype.init.apply(this,arguments),VJ(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),VJ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`}},itemStyle:{color:Q.color.neutral00,borderWidth:1,borderColor:Q.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:Q.size.s,color:Q.color.secondary},monthLabel:{show:!0,position:`start`,margin:Q.size.s,align:`center`,formatter:null,color:Q.color.secondary},yearLabel:{show:!0,position:null,margin:Q.size.xl,formatter:null,color:Q.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}($g);function VJ(e,t){var n=e.cellSize,r=B(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),Yg(e,t,{type:`box`,ignoreSize:R([0,1],function(e){return qg(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var HJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new Iu({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new cp({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return H(e)&&e?vg(e,t):V(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new Vu({z2:30,style:zm(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||H(a))&&(a&&(t=wh(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m=i.start.time&&r.timeo.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/UJ)-Math.floor(t[0].time/UJ)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&tr.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){Mg({targetModel:t,coordSysType:`calendar`,coordSysProvider:Ng})}),r},e.dimensions=[`time`,`value`],e}();function GJ(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function KJ(e){e.registerComponentModel(BJ),e.registerComponentView(HJ),e.registerCoordinateSystem(`calendar`,WJ)}var qJ={level:1,leaf:2,nonLeaf:3},JJ={none:0,all:1,body:2,corner:3};function YJ(e,t,n){var r=t[Kp[n]].getCell(e);return!r&&ft(e)&&e<0&&(r=t[Kp[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function XJ(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function ZJ(e,t,n,r,i){QJ(e[0],t,i,n,r,0),QJ(e[1],t,i,n,r,1)}function QJ(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=B(o)?o:[o],c=s.length,l=!!n;if(c>=1?($J(e,t,s,l,i,a,0),c>1&&$J(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[Kp[1-a]].getLocatorCount(a),d=i[Kp[a]].getLocatorCount(a)-1;n===JJ.body?u=ns(0,u):n===JJ.corner&&(d=ts(-1,d)),d=t[0]&&e[0]<=t[1]}function aY(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function oY(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function sY(e,t,n,r){var i=YJ(t[r][0],n,r),a=YJ(t[r][1],n,r);e[Kp[r]]=e[qp[r]]=NaN,i&&a&&(e[Kp[r]]=i.xy,e[qp[r]]=a.xy+a.wh-i.xy)}function cY(e,t,n,r){return e[Kp[t]]=n,e[Kp[1-t]]=r,e}function lY(e){return e&&(e.type===qJ.leaf||e.type===qJ.nonLeaf)?e:null}function uY(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var dY=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=fY(e);var n=t.get(`data`,!0);n!=null&&!B(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&L(e,function(e,l){var u;H(e)?u={value:e}:U(e)?(u=e,e.value!=null&&!H(e.value)&&(u={value:null})):u={value:null};var d={type:qJ.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new q,span:cY(new q,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:uY()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:qJ.level,xy:NaN,wh:NaN,option:null,id:new q,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[Kp[t.dimIdx]]=p,c+=p,n+=p}),c}function s(){for(var e=[];n.length=1,y=n[Kp[r]],b=a.getLocatorCount(r)-1,x=new _c;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){yt(e.wh)&&(e.wh=_),e.xy=y,e.id[Kp[r]]===b&&!v&&(e.wh=n[Kp[r]]+n[qp[r]]-e.xy),y+=e.wh}}function HY(e,t){for(var n=t[Kp[e]].resetCellIterator();n.next();){var r=n.item;WY(r.rect,e,r.id,r.span,t),WY(r.rect,1-e,r.id,r.span,t),r.type===qJ.nonLeaf&&(r.xy=r.rect[Kp[e]],r.wh=r.rect[qp[e]])}}function UY(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;WY(r,0,i,n,t),WY(r,1,i,n,t)}})}function WY(e,t,n,r,i){e[qp[t]]=0;var a=n[Kp[t]]<0?i[Kp[1-t]]:i[Kp[t]],o=a.getUnitLayoutInfo(t,n[Kp[t]]);if(e[Kp[t]]=o.xy,e[qp[t]]=o.wh,r[Kp[t]]>1){var s=a.getUnitLayoutInfo(t,n[Kp[t]]+r[Kp[t]]-1);e[qp[t]]=s.xy+s.wh-o.xy}}function GY(e,t,n){return KY(os(e,n[qp[t]]),n[qp[t]])}function KY(e,t){return Math.max(Math.min(e,W(t,1/0)),0)}function qY(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var JY={inBody:1,inCorner:2,outside:3},YY={x:null,y:null,point:[]};function XY(e,t,n,r,i){var a=n[Kp[t]],o=n[Kp[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[Kp[t]]=JY.outside;return}if(i===JJ.body){c?(e[Kp[t]]=JY.inBody,d=ts(s.xy+s.wh,ns(c.xy,d)),e.point[t]=d):e[Kp[t]]=JY.outside;return}else if(i===JJ.corner){u?(e[Kp[t]]=JY.inCorner,d=ts(u.xy+u.wh,ns(l.xy,d)),e.point[t]=d):e[Kp[t]]=JY.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(dm){if(!i){e[Kp[t]]=JY.outside;return}d=m}e.point[t]=d,e[Kp[t]]=f<=d&&d<=m?JY.inBody:p<=d&&d<=f?JY.inCorner:JY.outside}function ZY(e,t,n,r){var i=1-n;if(e[Kp[n]]!==JY.outside)for(r[Kp[n]].resetCellIterator(BY);BY.next();){var a=BY.item;if(eX(e.point[n],a.rect,n)&&eX(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[Kp[i]];return}}}function QY(e,t,n,r){if(e[Kp[n]]!==JY.outside){for((e[Kp[n]]===JY.inCorner?r[Kp[1-n]]:r[Kp[n]]).resetLayoutIterator(zY,n);zY.next();)if($Y(e.point[n],zY.item)){t[n]=zY.item.id[Kp[n]];return}}}function $Y(e,t){return t.xy<=e&&e<=t.xy+t.wh}function eX(e,t,n){return t[Kp[n]]<=e&&e<=t[Kp[n]]+t[qp[n]]}function tX(e){e.registerComponentModel(bY),e.registerComponentView(DY),e.registerCoordinateSystem(`matrix`,LY)}function nX(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function rX(e,t){var n;return L(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function iX(e,t,n){var r=F({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?($e(i,r,!0),Yg(i,r,{ignoreSize:!0}),Zg(n,i),sX(n,i),sX(n,i,`shape`),sX(n,i,`style`),sX(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var aX=[`transition`,`enterFrom`,`leaveTo`],oX=aX.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function sX(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?aX:oX,i=0;i=0;c--){var l=n[c],u=Zs(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=dX(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=Kg(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!dX(d).isNew&&v){for(var y=l.transition,b={},x=0;x=0)?b[S]=C:d[S]=C}Ip(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){hX(n,dX(n).option,t,e._lastGraphicModel)}),this._elMap=G()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(Tb);function pX(e){var t=new(K(uX,e)?uX[e]:Qp(e))({});return dX(t).type=e,t}function mX(e,t,n,r){var i=pX(n);return t.add(i),r.set(e,i),dX(i).id=e,dX(i).isNew=!0,i}function hX(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){hX(e,t,n,r)}),HG(e,t,r),n.removeKey(dX(e).id))}function gX(e,t,n,r){e.isGroup||L([[`cursor`,ml.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=W(t[r],n[1]):e[r]??(e[r]=n[1])}),L(ct(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=V(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function _X(e){return e=F({},e),L([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Fg),function(t){delete e[t]}),e}function vX(e,t,n){var r=Z(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Z(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function yX(e){e.registerComponentModel(lX),e.registerComponentView(fX),e.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var bX=[`x`,`y`,`radius`,`angle`,`single`],xX=[`cartesian2d`,`polar`,`singleAxis`];function SX(e){return tt(xX,e.get(`coordinateSystem`))>=0}function CX(e){return e+`Axis`}function wX(e,t){var n=G(),r=[],i=G();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function TX(e){var t=e.ecModel,n={infoList:[],infoMap:G()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(CX(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var EX=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),DX=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=OX(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=OX(e);$e(this.option,e,!0),$e(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=G();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return L(bX,function(n){var r=this.getReferringComponents(CX(n),uc);if(r.specified){t=!0;var i=new EX;L(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new EX;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,lc).models[0];o&&L(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,lc).models[0]&&a.add(e.componentIndex)})}}}r&&L(bX,function(t){if(r){var i=n.findComponents({mainType:CX(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new EX;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);L([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(CX(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){L(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(CX(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;L([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else MX(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});MX(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;MX([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=is(i,[0,100],n,!0)-n[0]):i=is(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=ds(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function FX(e,t,n){var r=[1/0,-1/0];MX(n,function(e){kE(r,e.getData(),t)});var i=e.getAxisModel(),a=_E(i.axis.scale,i,r).calculate();return[a.min,a.max]}var IX={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(CX(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new PX(t,r,a,e),n.push(i.__dzAxisProxy))});var r=G();return L(n,function(e){L(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function LX(e){e.registerAction(`dataZoom`,function(e,t){L(wX(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var RX=!1;function zX(e){RX||(RX=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,IX),LX(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function BX(e){e.registerComponentModel(kX),e.registerComponentView(jX),zX(e)}var VX=function(){function e(){}return e}(),HX={};function UX(e,t){HX[e]=t}function WX(e){return HX[e]}var GX=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;L(this.option.feature,function(e,n){var r=WX(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),$e(e,r.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:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}($g);function KX(e,t){var n=pg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Iu({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var qX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];L(s,function(e,t){l.push(t)}),new Sw(this._featureNames||[],l).add(u).update(u).remove(ut(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new ch(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(JX(o))m={onclick:p.option.onclick,featureName:o};else{var h=WX(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=uh(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof VX;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Nd:Pd)(r[e])},m instanceof VX&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof VX&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;H(d)?(p={},p[c]=d):p=d,H(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};L(p,function(c,d){var f=hm(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Vu({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:qm({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Cm({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Nd:Pd)(f),i.add(f),f.on(`click`,z(s.onclick,s,t,n,d)),h[d]=f})}var f=Gg(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Hg(p,f,m);Rg(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),Kg(i,p,f,m),i.add(KX(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!V(c)&&t){var l=c.style||={},u=So(t,Vu.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){L(this._features,function(e){e instanceof VX&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){L(this._features,function(n){n instanceof VX&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){L(this._features,function(n){n instanceof VX&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(Tb);function JX(e){return e.indexOf(`my`)===0}var YX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Ae.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=``,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(VX),XX=`__ec_magicType_stack__`,ZX=[[`line`,`bar`],[`stack`]],QX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return L(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if($X[n]){var a={series:[]};L(ZX,function(e){tt(e,n)>=0&&L(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=$X[n](t,i,e,r);o&&(I(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,lc).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=$e({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(VX),$X={line:function(e,t,n,r){if(e===`bar`)return $e({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return $e({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===XX;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),$e({id:t,stack:i?``:XX},r.get([`option`,`stack`])||{},!0)}};sw({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var eZ=Array(60).join(`-`),tZ=` `;function nZ(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function rZ(e){var t=[];return L(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(R(e.series,function(e){return e.name})),o=[r.model.getCategories()];L(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(tZ)],c=0;c=0)return!0}var cZ=RegExp(`[`+tZ+`]+`,`g`);function lZ(e){for(var t=e.split(/\n+/g),n=oZ(t.shift()).split(cZ),r=[],i=R(n,function(e){return{name:e,data:[]}}),a=0;a=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function _Z(e){var t=bZ(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return mZ(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function vZ(e){hZ(e).snapshots=null}function yZ(e){return bZ(e).length}function bZ(e){var t=hZ(e);return t.snapshots||=[{}],t.snapshots}var xZ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){vZ(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(VX);sw({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var SZ=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],CZ=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=TZ(t,e);L(EZ,function(e,t){(!n||!n.include||tt(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=kZ[e.brushType](0,n,t);e.__rangeOffset={offset:jZ[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){L(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&L(r.coordSyses,function(r){n(e,kZ[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){L(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=kZ[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?jZ[e.brushType](r.values,i.offset,NZ(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return R(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:pH(r),isTargetByCursor:hH(r,e,n.coordSysModel),getLinearBrushOtherExtent:mH(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&tt(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=TZ(t,e),i=0;ie[1]&&e.reverse(),e}function TZ(e,t){return sc(e,t,{includeMainTypes:SZ})}var EZ={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=G(),o={},s={};!n&&!r&&!i||(L(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),L(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),L(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];L(i.getCartesians(),function(e,t){(tt(n,e.getAxis(`x`).model)>=0||tt(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:OZ.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){L(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OZ.geo})})}},DZ=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],OZ={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(sm(e)),t}},kZ={lineX:ut(AZ,0),lineY:ut(AZ,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[wZ([i[0],a[0]]),wZ([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:R(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function AZ(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=wZ(R([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var jZ={lineX:ut(MZ,0),lineY:ut(MZ,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return R(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function MZ(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function NZ(e,t){var n=PZ(e),r=PZ(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function PZ(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var FZ=L,IZ=ec(`toolbox-dataZoom_`),LZ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new AV(n.getZr()),this._brushController.on(`brush`,z(this._onBrush,this)).mount()),VZ(e,t,this,r,n),BZ(e,t)},t.prototype.onclick=function(e,t,n){RZ[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new CZ(zZ(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),gZ(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=tV(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];FZ(e,function(e,n){t.push(P(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(VX),RZ={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(_Z(this.ecModel))}};function zZ(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 BZ(e,t){e.setIconStatus(`back`,yZ(t)>1?`emphasis`:`normal`)}function VZ(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new CZ(zZ(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}D_(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=sc(e,zZ(r));FZ(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),FZ(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:IZ+t+a};o[n]=a,i.push(o)}return i});function HZ(e){e.registerComponentModel(GX),e.registerComponentView(qX),UX(`saveAsImage`,YX),UX(`magicType`,QX),UX(`dataView`,fZ),UX(`dataZoom`,LZ),UX(`restore`,xZ),yw(BX)}var UZ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}($g);function WZ(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function GZ(e){if(Ae.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function tQ(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ae.transformSupported?``+ZZ+i:`,left`+i+`,top`+i)),XZ+`:`+a}function nQ(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ae.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ae.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+ZZ+`:`+o+`;`:[[`top`,0],[`left`,0],[KZ,o]]}function rQ(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function iQ(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=lb(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(tQ(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=fg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(rQ(d)),f!=null&&i.push(`padding:`+pg(f).join(`px `)+`px`),i.join(`;`)+`;`}function aQ(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&mn(e,o,n,r,i)}else{e[0]=r,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 oQ=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ae.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(H(i)?document.querySelector(i):ht(i)?i:V(i)&&i(e.getDom()));aQ(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;kn(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=YZ(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QZ+iQ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+nQ(i[0],i[1],!0)+(`border-color:`+bg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!WZ(n)&&(o=eQ(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ae.node||!n.getDom())){var i=mQ(r,n);this._ticket=``;var a=r.dataByCoordSys,o=yQ(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=dQ;c.x=r.x,c.y=r.y,c.update(),Z(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=wq(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(mQ(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&pQ([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;kx(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=z(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=pQ([t.tooltipOption],r),o=this._renderMode,s=[],c=Yy(`section`,{blocks:[],noHeader:!0}),l=[],u=new ub;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=rq(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Yy(`section`,{header:a,noHeader:!Tt(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),L(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=TE(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,bg(m.color),o);var h=ay(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=pQ([f],r).get(`valueFormatter`);d.blocks.push(_?F({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=tb(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=pQ([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new ub;h.marker=g.makeTooltipMarker(`item`,bg(h.color),d);var _=ay(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?tb(y?F({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=Sn(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=pQ(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ub;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=qh(m.axisValue,d,p)),d=_g(d,n,!0)}else if(V(u)){var g=z(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=X(t[0],s),r=X(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=Hg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=_Q(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=hQ(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=vQ(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=vQ(d)?l[1]/2:d===`bottom`?l[1]:0),WZ(e)){var h=gQ(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ae.node||!t.getDom()||(Bb(this,`_updatePosition`),this._tooltipContent.dispose(),Sq(`itemTooltip`,t))},t.type=`tooltip`,t}(Tb);function pQ(e,t,n){var r=t.ecModel,i;n?(i=new ch(n,r,r),i=new ch(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ch&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new ch(o,i,r)))}return i}function mQ(e,t){return e.dispatchAction||z(t.dispatchAction,t)}function hQ(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function gQ(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _Q(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function vQ(e){return e===`center`||e===`middle`}function yQ(e,t,n){var r=cc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=dc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function bQ(e){yw(Lq),e.registerComponentModel(UZ),e.registerComponentView(fQ),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},It),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},It)}var xQ=[`rect`,`polygon`,`keep`,`clear`];function SQ(e,t){var n=Ls(e?e.brush:[]);if(n.length){var r=[];L(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),CQ(s),t&&!s.length&&s.push.apply(s,xQ)}}function CQ(e){var t={};L(e,function(e){t[e]=1}),e.length=0,L(t,function(t,n){e.push(n)})}var wQ=L;function TQ(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function EQ(e,t,n){var r={};return wQ(t,function(t){var a=r[t]=i();wQ(e[t],function(e,r){if(tR.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new tR(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new tR(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function DQ(e,t,n){var r;L(n,function(e){t.hasOwnProperty(e)&&TQ(t[e])&&(r=!0)}),r&&L(n,function(n){t.hasOwnProperty(n)&&TQ(t[n])?e[n]=P(t[n]):delete e[n]})}function OQ(e,t,n,r,i,a){var o={};L(e,function(e){o[e]=tR.prepareVisualTypes(t[e])});var s;function c(e){return Sx(n,s,e)}function l(e,t){Tx(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;ht[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&WQ(t)}};function WQ(e){return new J(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var GQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new AV(t.getZr())).on(`brush`,z(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){LQ(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:P(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:P(n),$from:t})},t.type=`brush`,t}(Tb),KQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&DQ(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=R(e,function(e){return qQ(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=qQ(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:Q.color.backgroundTint,borderColor:Q.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Q.color.disabled},t}($g);function qQ(e,t){return $e({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ch(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var JQ=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],YQ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,L(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return L(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:JQ.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(VX);function XQ(e){e.registerComponentView(GQ),e.registerComponentModel(KQ),e.registerPreprocessor(SQ),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,RQ),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},It),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},It),UX(`brush`,YQ)}var ZQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}($g),QQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Vu({style:zm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Vu({style:zm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){xg(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){xg(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Hg(g,Gg(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Iu({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(Tb);function $Q(e){e.registerComponentModel(ZQ),e.registerComponentView(QQ)}var e$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],L(t,function(e,t){var n=Zs(Bs(e),``),a;U(e)?(a=P(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new Xw([{name:`value`,type:a}],this)).initData(i,r)},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:Q.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Q.color.secondary},data:[]},t}($g),t$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=ph(e$.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:Q.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:Q.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:Q.color.tertiary},itemStyle:{color:Q.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Q.color.accent60},itemStyle:{color:Q.color.accent60,borderColor:Q.color.accent60},controlStyle:{color:Q.color.accent70,borderColor:Q.color.accent70}},progress:{lineStyle:{color:Q.color.accent30},itemStyle:{color:Q.color.accent40}},data:[]}),t}(e$);rt(t$,iy.prototype);var n$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(Tb),r$=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(xD),i$=Math.PI,a$=ac(),o$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return Yy(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},L([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=c$(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:i$/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*i$/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=zn(),o=i.x,s=i.y+i.height;Un(a,a,[-o,-s]),Wn(a,a,-i$/2),Un(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||H(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=s$(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new r$(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Y;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new dp({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:F({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new dp({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:I({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],L(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=u$(s,c,t,{x:o,y:0,onclick:z(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),Xd(d);var f=Z(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],L(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new Vu({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:z(i._changeTimeline,i,o),silent:!1,style:zm(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=zm(l),d.ensureState(`progress`).style=zm(u),t.add(d),Xd(d),a$(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,z(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,z(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,z(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=Eo(W(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=l$(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),Xd(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=z(s._handlePointerDrag,s),e.ondragend=z(s._handlePointerDragend,s),d$(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){d$(e,s._progressLine,a,n,r)}};this._currentPointer=u$(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=cs(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var E$={min:ut(T$,`min`),max:ut(T$,`max`),average:ut(T$,`average`),median:ut(T$,`median`)};function D$(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!w$(t)&&!B(t.coord)&&B(i)){var a=O$(t,n,r,e);if(t=P(t),t.type&&E$[t.type]&&a.baseAxis&&a.valueAxis){var o=tt(i,a.baseAxis.dim),s=tt(i,a.valueAxis.dim),c=E$[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!B(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&E$[t.type]){var u=r.getOtherAxis(l);u&&(t.value=N$(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)E$[d[f]]&&(d[f]=N$(n,n.mapDimension(i[f]),d[f]));return t}}function O$(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(k$(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function k$(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function A$(e,t){return e&&e.containData&&t.coord&&!C$(t)?e.containData(t.coord):!0}function j$(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!C$(t)&&!C$(n)?e.containZone(t.coord,n.coord):!0}function M$(e,t){return e?function(e,n,r,i){return ly(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return ly(e.value,t[i])}}function N$(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var P$=ac(),F$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=G()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){P$(e).keep=!1}),t.eachSeries(function(e){var i=x$.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!P$(e).keep&&r.group.remove(e.group)}),I$(t,i,this.type)},t.prototype.markKeep=function(e){P$(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;L(e,function(e){var r=x$.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Fd(e):Id(e))})})},t.type=`marker`,t}(Tb);function I$(e,t,n){e.eachSeries(function(e){var r=x$.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=Am(r),o=a.z,s=a.zlevel;Mm(i.group,o,s)}})}function L$(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=X(s.get(`x`),l)+d,h=X(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var R$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markPoint`);t&&(L$(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new vA),l=z$(i,e,t);t.setData(l),L$(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(V(r)||V(i)||V(a)||V(s)){var u=t.getRawValue(e),d=t.getDataParams(e);V(r)&&(r=r(u,d)),V(i)&&(i=i(u,d)),V(a)&&(a=a(u,d)),V(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=Cx(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:W(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){Z(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(F$);function z$(e,t,n){var r=e?R(e&&e.dimensions,function(e){return F(F({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new Xw(r,n),a=R(n.get(`data`),ut(D$,t));e&&(a=ot(a,ut(A$,e)));var o=M$(!!e,r);return i.initData(a,null,o),i}function B$(e){e.registerComponentModel(S$),e.registerComponentView(R$),e.registerPreprocessor(function(e){v$(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var V$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(x$),H$=ac(),U$=function(e,t,n,r){var i=e.getData(),a;if(B(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=bt(r.yAxis,r.xAxis);else{var l=O$(r,i,t,e);s=l.valueAxis,c=N$(i,cT(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=P(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&ft(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[D$(e,a[0]),D$(e,a[1]),F({},a[2])];return h[2].type=h[2].type||null,$e(h[2],h[0]),$e(h[2],h[1]),h};function W$(e){return!isNaN(e)&&!isFinite(e)}function G$(e,t,n,r){var i=1-e,a=r.dimensions[e];return W$(t[i])&&W$(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function K$(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(G$(1,n,r,e)||G$(0,n,r,e)))return!0}return A$(e,t[0])&&A$(e,t[1])}function q$(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=X(o.get(`x`),i.getWidth()),l=X(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(FA(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;W$(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):W$(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var J$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=H$(t).from,a=H$(t).to;i.each(function(t){q$(i,t,!0,e,n),q$(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Iz);this.group.add(c.group);var l=Y$(i,e,t),u=l.from,d=l.to,f=l.line;H$(t).from=u,H$(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);B(p)||(p=[p,p]),B(m)||(m=[m,m]),B(h)||(h=[h,h]),B(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:W(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){Z(e).dataModel=t,e.traverse(function(e){Z(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);q$(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=Cx(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:W(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:W(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:W(a.get(`symbolSize`),m[+!i]),symbol:W(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(F$);function Y$(e,t,n){var r=e?R(e&&e.dimensions,function(e){return F(F({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new Xw(r,n),a=new Xw(r,n),o=new Xw([],n),s=R(n.get(`data`),ut(U$,t,e,n));e&&(s=ot(s,ut(K$,e)));var c=M$(!!e,r);return i.initData(R(s,function(e){return e[0]}),null,c),a.initData(R(s,function(e){return e[1]}),null,c),o.initData(R(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function X$(e){e.registerComponentModel(V$),e.registerComponentView(J$),e.registerPreprocessor(function(e){v$(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var Z$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(x$),Q$=ac(),$$=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=D$(e,i),s=D$(e,a),c=o.coord,l=s.coord;c[0]=bt(c[0],-1/0),c[1]=bt(c[1],-1/0),l[0]=bt(l[0],1/0),l[1]=bt(l[1],1/0);var u=et([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function e1(e){return!isNaN(e)&&!isFinite(e)}function t1(e,t,n,r){var i=1-e;return e1(t[i])&&e1(n[i])}function n1(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return FA(e,`cartesian2d`)?n&&r&&(t1(1,n,r,e)||t1(0,n,r,e))?!0:j$(e,i,a):A$(e,i)||A$(e,a)}function r1(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=X(o.get(n[0]),i.getWidth()),l=X(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(FA(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);e1(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):e1(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var i1=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],a1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=R(i1,function(i){return r1(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new Y});this.group.add(c.group),this.markKeep(c);var l=o1(i,e,t);t.setData(l),l.each(function(t){var n=R(i1,function(n){return r1(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];cs(d),cs(f);var p=c[0]>d[1]||c[1]f[1]||u[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`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}($g),u1=ut,d1=L,f1=Y,p1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new f1),this.group.add(this._selectorGroup=new f1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Gg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Hg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Hg(I({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KX(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=G(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),d1(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new f1;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,u1(g1,f,null,r,d)).on(`mouseover`,u1(v1,m.name,null,r,d)).on(`mouseout`,u1(y1,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Z(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Oi(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:Ii(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,u1(g1,null,f,r,d)).on(`mouseover`,u1(v1,null,f,r,d)).on(`mouseout`,u1(y1,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Z(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Z(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();d1(e,function(e){var r=e.type,i=new Vu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Lm(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Xd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=m1(c,r,o,s,d,m,u),y=new f1,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(h1({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t??``):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Vu({style:zm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Iu({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Cm({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Xd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Rg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Rg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Tb);function m1(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),d1(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:OS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function h1(e){var t=e.icon||`roundRect`,n=zx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function g1(e,t,n,r){y1(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),v1(e,t,n,r)}function _1(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;rn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Iu({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Ip(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=O1[i],o=k1[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(p1);function j1(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function M1(e){yw(w1),e.registerComponentModel(T1),e.registerComponentView(A1),j1(e)}function N1(e){yw(w1),yw(M1)}var P1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=ph(DX.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DX),F1=ac();function I1(e,t,n){F1(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function L1(e,t){for(var n=F1(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function U1(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=F1(t),r=n.coordSysRecordMap||=G();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){L(TX(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,z1(t,n.model));(a.dataZoomInfoMap||=G()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){R1(r,e);return}var s=H1(a,e,t);n.enable(s.controlType,s.opt),zb(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var W1=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),I1(r,t,{pan:z(G1.pan,this),zoom:z(G1.zoom,this),scrollMove:z(G1.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){L1(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(AX),G1={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=q1[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(tV(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:K1(function(e,t,n,r,i,a){var o=q1[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:K1(function(e,t,n,r,i,a){return q1[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function K1(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(tV(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var q1={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return 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,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function J1(e){zX(e),e.registerComponentModel(P1),e.registerComponentView(W1),U1(e)}var Y1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=ph(DX.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(DX),X1=Iu,Z1=1,Q1=30,$1=7,e0=`horizontal`,t0=`vertical`,n0=5,r0=[`line`,`bar`,`candlestick`,`scatter`],i0={easing:`cubicOut`,duration:100,delay:0},a0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=z(this._onBrush,this),this._onBrushEnd=z(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),zb(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Bb(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Y;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?$1:0,r=Gg(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===e0?{right:r.width-i.x-i.width,top:r.height-Q1-a-n,width:i.width,height:Q1}:{right:a,top:i.y,width:Q1,height:i.height},s=Xg(e.option);L([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=Hg(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===t0&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===e0&&!i?{scaleY:o?1:-1,scaleX:1}:n===e0&&i?{scaleY:o?1:-1,scaleX:-1}:n===t0&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new X1({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new X1({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:z(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:is(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Y,r=new op({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new cp({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){L(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&tt(r0,e.get(`type`))<0)){var o=r.getComponent(CX(i),a).axis,s=o0(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new X1({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new X1({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Z1,fill:Q.color.transparent}})),L([0,1],function(t){var a=o.get(`handleIcon`);!Ix[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=zx(a,-1,0,2,2,null,!0);s.attr({cursor:s0(this._orient),draggable:!0,drift:z(this._onDragMove,this,t),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=X(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Xd(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Vu({silent:!0,invisible:!f,style:zm(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=X(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Iu({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=zx(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Iu({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:z(this._onDragMove,this,`all`),ondragstart:z(this._showDataInfo,this,!0),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[is(e[0],[0,100],t,!0),is(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];tV(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:is(a.minSpan,o,i,!0),a.maxSpan==null?null:is(a.maxSpan,o,i,!0));var s=this._range,c=this._range=cs([is(r[0],i,o,!0),is(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=cs(n.slice()),i=this._size;L([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new q(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();tV(0,a,r,0,o.minSpan==null?null:is(o.minSpan,i,r,!0),o.maxSpan==null?null:is(o.maxSpan,i,r,!0)),this._range=cs([is(a[0],r,i,!0),is(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Nn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new X1({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?i0:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=TX(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(AX);function o0(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function s0(e){return e===`vertical`?`ns-resize`:`ew-resize`}function c0(e){e.registerComponentModel(Y1),e.registerComponentView(a0),zX(e)}function l0(e){yw(J1),yw(c0)}var u0={get:function(e,t,n){var r=P((d0[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},d0={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},f0=tR.mapVisual,p0=tR.eachVisual,m0=B,h0=L,g0=cs,_0=is,v0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&DQ(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=z(e,this),this.controllerVisuals=EQ(this.option.controller,t,e),this.targetVisuals=EQ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=dc(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return R(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){L(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(H(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(V(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=g0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};$e(r,n),$e(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){m0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},h0(r,function(e,t){if(tR.isValidType(t)){var n=u0.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;h0(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&P(t)||(a?i:[i]),c.symbolSize??=n&&P(n)||(a?s[0]:[s[0],s[0]]),c.symbol=f0(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;p0(l,function(e){e>u&&(u=e)}),c.symbolSize=f0(l,function(e){return _0(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}($g),y0=[20,140],b0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=y0[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=y0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=cs((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=x0(this,`outOfRange`,this.getExtent()),n=x0(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Y(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);D0([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=E0(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=cm(n.handleLabelPoints[l],sm(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=E0(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=cm(c.indicatorLabelPoint,sm(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||F0(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=rc(u,d);this._dispatchHighDown(`downplay`,T0(f[0],n)),this._dispatchHighDown(`highlight`,T0(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(kx(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function B0(e,t,n,r){for(var i=t.targetVisuals[r],a=tR.prepareVisualTypes(i),o={color:Cx(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(L0,R0),L(z0,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(H0))}function K0(e){e.registerComponentModel(b0),e.registerComponentView(M0),G0(e)}var q0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],J0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=R(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=tR.listVisualTypes(),i=this.isCategory();L(t.pieces,function(e){L(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),L(n,function(e,n){var r=!1;L(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&L(this.stateList,function(e){(t[e]||(t[e]={}))[n]=u0.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,L(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;L(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=tR.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){tR.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return L(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=ph(v0.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}(v0),J0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function Y0(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var X0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=bt(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),L(o.viewPieceList,function(o){var s=o.piece,u=new Y;u.onclick=z(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Vu({style:zm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:W(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Rg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:T0(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return w0(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Y,o=this.visualMapModel.textStyleModel;a.add(new Vu({style:zm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=R(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=zx(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,L(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(S0);function Z0(e){e.registerComponentModel(q0),e.registerComponentView(X0),G0(e)}function Q0(e){yw(K0),yw(Z0)}var $0=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:jm(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),e2=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new $0(this);this._target=null,this.ecModel.eachSeries(function(e){Zz(e,null)}),this.shouldShow()&&Zz(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:Q.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Q.color.neutral30,borderColor:Q.color.neutral40,opacity:.3},z:10},t}($g),t2=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new gI,!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||Q.color.neutral00;var o=Gg(e,n).refContainer,s=Hg(zg(e,!0),o),c=a.lineWidth||0,l=this._contentRect=bm(s.clone(),c/2,!0,!0),u=new Y;r.add(u),u.setClipPath(new Iu({shape:l.plain()}));var d=this._targetGroup=new Y;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new Iu({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new Iu({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),r2(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),r2(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(a.x,a.y,a.width,a.height);var o=Hg({left:`center`,top:`center`,aspect:a.width/a.height},r);n.setViewRect(o.x,o.y,o.width,o.height),i.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=Kn([],e.targetTrans),n=Hn([],this._coordSys.transform,t);this._transThisToTarget=Kn([],n);var r=e.viewportRect;r=r?r.clone():new J(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(I({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new BP(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,z(this._onPan,this)).on(`zoom`,z(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=nn([],[e.oldX,e.oldY],t),r=nn([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(n2(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=nn([],[e.originX,e.originY],t);this._api.dispatchAction(n2(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(Tb);function n2(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,F(n,t),n}function r2(e,t){var n=Am(e);Mm(t.group,n.z,n.zlevel)}function i2(e){e.registerComponentModel(e2),e.registerComponentView(t2)}var a2={label:{enabled:!0},decal:{show:!1}},o2=ac(),s2={};function c2(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=P(a2);$e(r.label,e.getLocaleModel().get(`aria`),!1),$e(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=G();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),o2(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(V(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=M_(t.ecModel,t.name,s2,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=o2(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=M_(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=I(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},f2=function(){function e(e){(this._condVal=H(e)?new RegExp(e):vt(e)?e:null)??Ns(``)}return e.prototype.evaluate=function(e){var t=typeof e;return H(t)?this._condVal.test(e):ft(t)?this._condVal.test(e+``):!1},e}(),p2=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),m2=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(i),i=[e,t]}function u(e,t,n,r){M2(e,n)&&M2(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=tw:D2&&r.push(i),r}function P2(e,t,n,r,i,a,o,s,c,l){if(M2(e,n)&&M2(t,r)&&M2(i,o)&&M2(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y=0&&w=0){c.push(o,s);return}var T=[],E=[];$r(e,n,i,o,.5,T),$r(t,r,a,s,.5,E),P2(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),P2(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function F2(e,t){var n=N2(e),r=[];t||=1;for(var i=0;i0)for(var l=0;lMath.abs(l),d=I2([c,l],+!u,t),f=(u?s:l)/d.length,p=0;pi,o=I2([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f1?null:new q(p*c+e,p*l+t)}function V2(e,t,n){var r=new q;q.sub(r,n,t),r.normalize();var i=new q;return q.sub(i,e,t),i.dot(r)}function H2(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function U2(e,t,n){for(var r=e.length,i=[],a=0;ao?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),U2(t,l,u)}function G2(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);G2(e,a[0],i,r),G2(e,a[1],n-i,r)}return r}function K2(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function d4(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return R(R(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:u4(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function f4(e){return Y2(e.path,e.count)}function p4(){return{fromIndividuals:[],toIndividuals:[],count:0}}function m4(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var v4={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;g4(e)&&(l=e,u=t),g4(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(r4(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?I({delay:s(r,i)},c):c;l4(f,p,m),a(f,p,f,p,m)}}else for(var h=I({dividePath:v4[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?m4(l,u,h):h4(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;bt.length,p=l?_4(u,l):_4(f?t:e,[f?e:t]),m=0,h=0;hx4))for(var i=n.getIndices(),a=0;a0&&r.group.traverse(function(e){e instanceof Su&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function I4(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function L4(e){return B(e)?e.sort().join(`,`):e}function R4(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function z4(e,t){var n=G(),r=G(),i=G();return L(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=I4(t),c=L4(s);r.set(c,{dataGroupId:a,data:o}),B(s)&&L(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),L(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=I4(e),s=L4(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:R4(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:R4(a),data:a}]});else if(B(o)){var l=[];L(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:R4(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:R4(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:R4(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:R4(a)})}}}}),n}function B4(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:R4(t.oldData[n]),groupIdDim:e.dimension})}),L(Ls(e.to),function(e){var r=B4(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:R4(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&F4(i,a,r)}function H4(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){L(Ls(n.seriesTransition),function(e){L(Ls(e.to),function(e){for(var t=n.updatedSeries,r=0;ra.vmin?t+=a.vmin-n+(e-a.vmin)/(a.vmax-a.vmin)*a.gapReal:t+=e-n,n=a.vmax,r=!1;break}t+=a.vmin-n+a.gapReal,n=a.vmax}return r&&(t+=e-n),t},e.prototype.unelapse=function(e){for(var t=G4,n=K4,r=!0,i=0,a=0;as?o.vmin+(e-s)/(c-s)*(o.vmax-o.vmin):n+e-t,n=o.vmax,r=!1;break}t=c,n=o.vmax}return r&&(i=n+e-t),i},e}();function W4(){return new U4}var G4=0,K4=0;function q4(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};L(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=X4(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));L(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Math.max(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function J4(e,t,n,r,i,a){e!==`no`&&L(n,function(n){var o=X4(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&lt[0]&&n=0&&e<.99999}L(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:P(e),vmin:t(e.start),vmax:t(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(H(e.gap)){var s=Tt(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&L([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return L(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:r.filter(function(e){return!!e})}}function Q4(e,t){return $4(t)===$4(e)}function $4(e){return e.start+`_\0_`+e.end}function e3(e,t,n){var r=[];L(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),L(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=st(r,function(n){return Q4(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return L(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function t3(e,t,n,r){var i,a;if(e.break){var o=e.break.parsedBreak,s=st(n,function(t){return Q4(t.breakOption,e.break.parsedBreak.breakOption)}),c=r(t**+o.vmin,s.vmin),l=r(t**+o.vmax,s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type===`tpAbs`?ss(t**+(o.vmin+o.gapParsed.val))-c:o.gapParsed.val};i={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:c,vmax:l,gapParsed:u,gapReal:o.gapReal}},a=s[e.break.type]}return{brkRoundingCriterion:a,vBreak:i}}function n3(e,t,n){var r={noNegative:!0},i=Z4(e,n,r),a=Z4(e,n,r),o=Math.log(t);return a.breaks=R(a.breaks,function(e){var t=Math.log(e.vmin)/o;return{vmin:t,vmax:Math.log(e.vmax)/o,gapParsed:{type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?Math.log(e.vmin+e.gapParsed.val)/o-t:e.gapParsed.val},gapReal:e.gapReal,breakOption:e.breakOption}}),{parsedOriginal:i,parsedLogged:a}}var r3={vmin:`start`,vmax:`end`};function i3(e,t){return t&&(e||={},e.break={type:r3[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function a3(){Dh({createScaleBreakContext:W4,pruneTicksByBreak:J4,addBreaksToTicks:Y4,parseAxisBreakOption:Z4,identifyAxisBreak:Q4,serializeAxisBreakIdentifier:$4,retrieveAxisBreakPairs:e3,getTicksLogTransformBreak:t3,logarithmicParseBreaksFromOption:n3,makeAxisLabelFormatterParamBreak:i3})}var o3=ac();function s3(e,t){var n=st(e,function(e){return Oh().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function c3(e){L(e,function(e){return e.shouldRemove=!0})}function l3(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function u3(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!Oh())return;var o=Oh().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new Y({ignoreModelZ:!0}),y=a.isHorizontal(),b=o3(t).visualList||(o3(t).visualList=[]);c3(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(Tn[1]&&n.reverse(),{coordPair:n,brkId:Oh().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new q,h=new q;q.scale(m,r,-s),q.scale(h,r,1-s),iO(n[0],m),iO(n[1],h)}function p3(e,t){var n={breaks:[]};return L(t.breaks,function(r){if(r){var i=st(e.get(`breaks`,!0),function(e){return Oh().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function m3(){CM({adjustBreakLabelPair:f3,buildAxisBreakLine:d3,rectCoordBuildBreakAxis:u3,updateModelAxisBreak:p3})}function h3(e){BM(e),a3(),m3()}function g3(){FN(_3)}function _3(e,t){L(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=v3(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function v3(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof kT?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=wE(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u{let e=a.current;if(!e)return;let t=$C(e,null,{renderer:`canvas`});o.current=t,i&&(i.current=t),t.setOption(s.current),c.current&&Object.keys(c.current).forEach(e=>{t.on(e,t=>c.current?.[e]?.(t))});let n=new ResizeObserver(()=>o.current?.resize());return n.observe(e),()=>{n.disconnect(),t.dispose(),o.current=null,i&&(i.current=null)}},[]),(0,w.useEffect)(()=>{o.current?.setOption(e,{replaceMerge:[`series`]})},[e]),(0,C.jsx)(`div`,{ref:a,style:t,className:n})}var b3={healthy:`#22c55e`,degraded:`#fb923c`,critical:`#ef4444`};function x3(e){return e<.4?`#ef4444`:e<.7?`#fb923c`:`#22c55e`}var S3=w.memo(({node:e,edges:t,onClose:n,onSelectService:r,onViewTraces:i,onViewLogs:a})=>{let o=b3[e.status]||`#888`,s=t.filter(t=>t.target===e.id),c=t.filter(t=>t.source===e.id),l=(e.metrics.error_rate*100).toFixed(1),u=e.metrics.error_rate>.05;return(0,C.jsxs)(`div`,{style:{background:`#0a0a0c`,border:`1px solid #27272a`,borderRadius:8,padding:16,width:320,fontFamily:`system-ui, sans-serif`,color:`#fff`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,marginBottom:16,position:`relative`},children:[(0,C.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:o,marginRight:8,flexShrink:0}}),(0,C.jsx)(`span`,{style:{fontSize:13,fontWeight:`bold`,color:`#fff`,marginRight:8},children:e.id}),(0,C.jsx)(`span`,{style:{fontSize:9,textTransform:`uppercase`,background:o,color:`#fff`,padding:`2px 6px`,borderRadius:4,fontWeight:600},children:e.status}),(0,C.jsx)(`button`,{onClick:n,"aria-label":`Close`,style:{position:`absolute`,right:0,top:0,background:`none`,border:`none`,color:`#888`,cursor:`pointer`,fontSize:16,lineHeight:1,padding:0},children:`X`})]}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:8,marginBottom:16},children:[(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`RPS`}),(0,C.jsx)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:Math.round(e.metrics.request_rate_rps)})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`Error Rate`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`,color:u?`#ef4444`:`#fff`},children:[l,`%`]})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`Avg Latency`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:[e.metrics.avg_latency_ms,`ms`]})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`P99`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:[e.metrics.p99_latency_ms,`ms`]})]})]}),(0,C.jsxs)(`div`,{style:{marginBottom:16},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,fontSize:11,marginBottom:4},children:[(0,C.jsx)(`span`,{style:{color:`#888`},children:`Health Score`}),(0,C.jsx)(`span`,{style:{color:`#fff`},children:e.health_score.toFixed(2)})]}),(0,C.jsx)(`div`,{style:{background:`#27272a`,borderRadius:2,height:4},children:(0,C.jsx)(`div`,{style:{width:`${e.health_score*100}%`,height:4,borderRadius:2,background:x3(e.health_score)}})})]}),s.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:12},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Upstream`}),s.map(e=>(0,C.jsxs)(`div`,{onClick:()=>r(e.source),style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,cursor:`pointer`,display:`flex`,justifyContent:`space-between`,fontSize:12},children:[(0,C.jsx)(`span`,{children:e.source}),(0,C.jsxs)(`span`,{style:{color:`#888`},children:[e.call_count,` calls`]})]},e.source))]}),c.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:12},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Downstream`}),c.map(e=>(0,C.jsxs)(`div`,{onClick:()=>r(e.target),style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,cursor:`pointer`,display:`flex`,justifyContent:`space-between`,fontSize:12},children:[(0,C.jsx)(`span`,{children:e.target}),(0,C.jsxs)(`span`,{style:{color:`#888`},children:[e.call_count,` calls`]})]},e.target))]}),e.alerts.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:16},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Alerts`}),e.alerts.map((e,t)=>(0,C.jsx)(`div`,{style:{background:`#1c0707`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,fontSize:11,color:`#fca5a5`},children:e},t))]}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:8},children:[(0,C.jsx)(`button`,{onClick:()=>i(e.id),style:{flex:1,background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,color:`#fff`,padding:`8px 0`,cursor:`pointer`,fontSize:12},children:`View Traces →`}),(0,C.jsx)(`button`,{onClick:()=>a(e.id),style:{flex:1,background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,color:`#fff`,padding:`8px 0`,cursor:`pointer`,fontSize:12},children:`View Logs →`})]})]})});function C3(e,t){let n=new Map;if(e.length===0)return n;if(e.length===1)return n.set(e[0].id,0),n;let r=new Set(e.map(e=>e.id)),i=new Map,a=new Map;for(let e of r)i.set(e,[]),a.set(e,[]);for(let e of t)!r.has(e.source)||!r.has(e.target)||(a.get(e.source).push(e.target),i.get(e.target).push(e.source));let o=e.filter(e=>i.get(e.id).length===0);if(o.length===0){let t=[...e].sort((e,t)=>(t.span_count??0)-(e.span_count??0)),r=Math.max(1,Math.ceil(t.length/4));for(let e=0;ee.id);for(let e of o)s.set(e.id,0);let l=0;for(;ls.get(n)&&(s.set(n,e),c.push(n))}}let u=Math.max(...s.values());for(let t of e){let e=t.id,r=i.get(e),o=a.get(e),c=s.get(e);if(r.length===0)n.set(e,0);else if(o.length===0&&r.length>0)n.set(e,3);else if(u<=1)n.set(e,1);else{let t=c/u<=.5?1:2;n.set(e,t)}}return n}var w3=60;function T3(e,t,n){let r=new Map;if(e.length===0)return r;let i=C3(e,t),a=Math.max(...i.values()),o=new Map;for(let[e,t]of i)o.has(t)||o.set(t,[]),o.get(t).push(e);let s=a+1,c=n.height-2*w3,l=s>1?c/(s-1):0;for(let[e,t]of o){let i=s>1?w3+e*l:n.height/2,a=n.width-2*w3,o=t.length>1?a/(t.length-1):0;for(let a=0;a1?w3+a*o:n.width/2;r.set(t[a],{x:s,y:i,tier:e})}}return r}function E3(e){if(e.length===0)return 10;let t=[...e].map(e=>e.call_count).sort((e,t)=>e-t),n=Math.floor(t.length/2),r=t.length%2==0?(t[n-1]+t[n])/2:t[n];return Math.max(r,10)}var D3={healthy:{bg:`#0f2618`,border:`#166534`,dot:`#22c55e`},degraded:{bg:`#1a1207`,border:`#854d0e`,dot:`#fb923c`},critical:{bg:`#1c0707`,border:`#991b1b`,dot:`#ef4444`}};function O3(e){return D3[e]?.bg??`#18181b`}function k3(e){return D3[e]?.border??`#27272a`}function A3(e){return D3[e]?.dot??`#888`}function j3(e){return e===`critical`?`#ef4444`:e===`degraded`?`#fb923c`:`#3f3f46`}var M3=[`GATEWAY`,`API LAYER`,`SERVICES`,`DATA`],N3=w.memo(({graph:e,cache:t,loading:n,error:r,onNavigateToTraces:i,onNavigateToLogs:a})=>{let[o,s]=(0,w.useState)(null),[c,l]=(0,w.useState)(10),[u,d]=(0,w.useState)(``),f=(0,w.useRef)(null),[p,m]=(0,w.useState)(``),h=(0,w.useRef)(null),g=(0,w.useCallback)(e=>{let t=e.target.value;d(t),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>m(t),300)},[]);(0,w.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,w.useEffect)(()=>{e?.edges&&l(E3(e.edges))},[e]);let _=e?.nodes??[],v=e?.edges??[],y=_.length>=70,b=(0,w.useMemo)(()=>Math.max(1,...v.map(e=>e.call_count)),[v]),x=(0,w.useMemo)(()=>v.filter(e=>e.call_count>=c).slice(0,500),[v,c]),S=(0,w.useMemo)(()=>_.length===0?new Map:T3(_.map(e=>({id:e.id,span_count:e.metrics.span_count_1h})),v.map(e=>({source:e.source,target:e.target})),{width:900,height:600}),[_,v]),T=(0,w.useMemo)(()=>{let e=new Map;for(let t of S.values())(!e.has(t.tier)||t.y{let n=e.id.length>16?e.id.slice(0,15)+`…`:e.id,r=Math.round(e.metrics.request_rate_rps),i=(e.metrics.error_rate*100).toFixed(1);return t?`{dot|●} {name|${n}}`:`{dot|●} {name|${n}}\n{metric|${r} rps ${i}% err}`},[]),D=(0,w.useMemo)(()=>{let e=_.map(e=>{let t=S.get(e.id)??{x:0,y:0},n=!p||e.id.toLowerCase().includes(p.toLowerCase());return{name:e.id,x:t.x,y:t.y,symbol:`roundRect`,symbolSize:y?[90,36]:[120,46],itemStyle:{color:O3(e.status),borderColor:k3(e.status),borderWidth:1,shadowColor:e.status===`healthy`?`transparent`:k3(e.status),shadowBlur:e.status===`healthy`?0:8,opacity:n?1:.2},label:{show:!0,formatter:()=>E(e,y),rich:{dot:{fontSize:y?6:8,color:A3(e.status)},name:{fontSize:y?9:11,fontWeight:`bold`,color:`#e4e4e7`},metric:{fontSize:y?7:9,color:`#71717a`,padding:[2,0,0,0]}}}}}),t=x.map(e=>({source:e.source,target:e.target,lineStyle:{width:Math.max(1,Math.min(4,Math.log10(e.call_count+1))),color:j3(e.status),opacity:.3+.5*(e.call_count/b),curveness:.1},symbol:[`none`,`arrow`],symbolSize:6})),n=[];for(let[e,t]of T)e>=0&&e{let t=e;if(t.dataType===`node`){let e=_.find(e=>e.id===t.name);return e?[`${e.id}`,`Status: ${e.status}`,`RPS: ${Math.round(e.metrics.request_rate_rps)}`,`Error: ${(e.metrics.error_rate*100).toFixed(1)}%`,`Avg Latency: ${e.metrics.avg_latency_ms}ms`].join(`
`):``}if(t.dataType===`edge`&&t.data){let e=v.find(e=>e.source===t.data.source&&e.target===t.data.target);return e?[`${e.source} → ${e.target}`,`Calls: ${e.call_count}`,`Avg Latency: ${e.avg_latency_ms}ms`,`Error: ${(e.error_rate*100).toFixed(1)}%`].join(`
`):``}return``}},graphic:n,series:[{type:`graph`,layout:`force`,force:{repulsion:y?200:350,gravity:.08,edgeLength:y?[80,160]:[120,250],friction:.6,layoutAnimation:!0},roam:!0,data:e,links:t,emphasis:{focus:`adjacency`},lineStyle:{color:`source`}}]}},[_,v,x,S,T,y,p,b,E]),O=(0,w.useMemo)(()=>({click:e=>{let t=e;t.dataType===`node`&&t.name?s(_.find(e=>e.id===t.name)??null):s(null)}}),[_]),k=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`graphRoam`,zoom:1.3})},[]),A=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`graphRoam`,zoom:.7})},[]),j=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`restore`})},[]),ee=(0,w.useCallback)(e=>{let t=_.find(t=>t.id===e);t&&s(t)},[_]);return n?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#71717a`,fontSize:13},children:`Loading service map...`})}):r?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ef4444`,fontSize:13},children:r})}):!e||_.length===0?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#71717a`,fontSize:13},children:`No services discovered yet.`})}):(0,C.jsxs)(`div`,{className:`service-map-container`,children:[(0,C.jsxs)(`div`,{className:`service-map-toolbar`,children:[(0,C.jsxs)(`div`,{className:`search-wrap`,style:{maxWidth:220},children:[(0,C.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,children:[(0,C.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,C.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),(0,C.jsx)(`input`,{className:`search-input`,type:`text`,placeholder:`Filter services...`,value:u,onChange:g,style:{paddingLeft:28,fontSize:11}})]}),(0,C.jsxs)(`div`,{className:`edge-slider`,children:[(0,C.jsx)(`span`,{children:`Edges ≥`}),(0,C.jsx)(`input`,{type:`range`,min:1,max:b,value:c,onChange:e=>l(Number(e.target.value))}),(0,C.jsx)(`span`,{children:c})]}),(0,C.jsx)(`div`,{style:{flex:1}}),(0,C.jsxs)(`div`,{className:`zoom-controls`,children:[(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:k,title:`Zoom in`,children:`+`}),(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:A,title:`Zoom out`,children:`−`}),(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:j,title:`Fit to view`,children:`⊛`})]})]}),(0,C.jsxs)(`div`,{className:`service-map-body`,children:[(0,C.jsx)(`div`,{className:`service-map-canvas`,children:(0,C.jsx)(y3,{option:D,style:{width:`100%`,height:`100%`},onEvents:O,chartRef:h})}),o&&(0,C.jsx)(`div`,{className:`side-panel`,children:(0,C.jsx)(S3,{node:o,edges:v,onClose:()=>s(null),onSelectService:ee,onViewTraces:i,onViewLogs:a})})]})]})});function P3(){return P3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var G3=-1;function K3(e){if(e===void 0&&(e=!1),G3===-1||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,document.body.appendChild(t),G3=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return G3}var q3=null;function J3(e){if(e===void 0&&(e=!1),q3===null||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,n.direction=`rtl`;var r=document.createElement(`div`),i=r.style;return i.width=`100px`,i.height=`100px`,t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?q3=`positive-descending`:(t.scrollLeft=1,q3=t.scrollLeft===0?`negative`:`positive-ascending`),document.body.removeChild(t),q3}return q3}var Y3=150,X3=function(e,t){return e};function Z3(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){L3(t,e);function t(t){var r=e.call(this,t)||this;return r._instanceProps=c(r.props,F3(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:F3(r),isScrolling:!1,scrollDirection:`forward`,scrollOffset:typeof r.props.initialScrollOffset==`number`?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=V3(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=V3(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t=r.props,a=t.direction,o=t.itemSize,s=t.layout,c=r._getItemStyleCache(l&&o,l&&s,l&&a),u;if(c.hasOwnProperty(e))u=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p=a===`horizontal`||s===`horizontal`,m=a===`rtl`,h=p?d:0;c[e]=u={position:`absolute`,left:m?void 0:h,right:m?h:void 0,top:p?0:d,height:p?`100%`:f,width:p?f:`100%`}}return u},r._getItemStyleCache=void 0,r._getItemStyleCache=V3(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,a=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,o=i;if(t===`rtl`)switch(J3()){case`negative`:o=-i;break;case`positive-descending`:o=a-n-i;break}return o=Math.max(0,Math.min(o,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetc.clientWidth?K3():0:c.scrollHeight>c.clientHeight?K3():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if(typeof n==`number`&&this._outerRef!=null){var i=this._outerRef;t===`horizontal`||r===`horizontal`?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&this._outerRef!=null){var a=this._outerRef;if(t===`horizontal`||n===`horizontal`)if(t===`rtl`)switch(J3()){case`negative`:a.scrollLeft=-i;break;case`positive-ascending`:a.scrollLeft=i;break;default:var o=a.clientWidth;a.scrollLeft=a.scrollWidth-o-i;break}else a.scrollLeft=i;else a.scrollTop=i}this._callPropsCallbacks()},d.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&U3(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,o=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=d===void 0?X3:d,p=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,_=e.useIsScrolling,v=e.width,y=this.state.isScrolling,b=i===`horizontal`||p===`horizontal`,x=b?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],T=S[1],E=[];if(l>0)for(var D=C;D<=T;D++)E.push((0,w.createElement)(t,{data:u,key:f(D,u),index:D,isScrolling:_?y:void 0,style:this._getItemStyle(D)}));var O=r(this.props,this._instanceProps);return(0,w.createElement)(m||h||`div`,{className:n,onScroll:x,ref:this._outerRefSetter,style:P3({position:`relative`,height:a,width:v,overflow:`auto`,WebkitOverflowScrolling:`touch`,willChange:`transform`,direction:i},g)},(0,w.createElement)(s||c||`div`,{children:E,ref:o,style:{height:b?`100%`:O,pointerEvents:y?`none`:void 0,width:b?O:`100%`}}))},d._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered==`function`&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if(typeof this.props.onScroll==`function`){var a=this.state,o=a.scrollDirection,s=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(o,s,c)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,a=r.scrollDirection,c=r.scrollOffset;if(t===0)return[0,0,0,0];var l=o(this.props,c,this._instanceProps),u=s(this.props,l,c,this._instanceProps),d=!i||a===`backward`?Math.max(1,n):1,f=!i||a===`forward`?Math.max(1,n):1;return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(w.PureComponent),t.defaultProps={direction:`ltr`,itemData:void 0,layout:`vertical`,overscanCount:2,useIsScrolling:!1},t}var Q3=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},$3=50,e6=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,a=n.lastMeasuredIndex;if(t>a){var o=0;if(a>=0){var s=i[a];o=s.offset+s.size}for(var c=a+1;c<=t;c++){var l=r(c);i[c]={offset:o,size:l},o+=l}n.lastMeasuredIndex=t}return i[t]},t6=function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?n6(e,t,i,0,n):r6(e,t,Math.max(0,i),n)},n6=function(e,t,n,r,i){for(;r<=n;){var a=r+Math.floor((n-r)/2),o=e6(e,a,t).offset;if(o===i)return a;oi&&(n=a-1)}return r>0?r-1:0},r6=function(e,t,n,r){for(var i=e.itemCount,a=1;n=n&&(a=n-1),a>=0){var s=r[a];o=s.offset+s.size}var c=(n-a-1)*i;return o+c},a6=Z3({getItemOffset:function(e,t,n){return e6(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:i6,getOffsetForIndexAndAlignment:function(e,t,n,r,i,a){var o=e.direction,s=e.height,c=e.layout,l=e.width,u=o===`horizontal`||c===`horizontal`?l:s,d=e6(e,t,i),f=i6(e,i),p=Math.max(0,Math.min(f-u,d.offset)),m=Math.max(0,d.offset-u+d.size+a);switch(n===`smart`&&(n=r>=m-u&&r<=p+u?`auto`:`center`),n){case`start`:return p;case`end`:return m;case`center`:return Math.round(m+(p-m)/2);default:return r>=m&&r<=p?r:r=h-f&&r<=m+f?`auto`:`center`),n){case`start`:return m;case`end`:return h;case`center`:var g=Math.round(h+(m-h)/2);return gp+Math.floor(f/2)?p:g;default:return r>=h&&r<=m?r:rn.onSelect(r.trace_id),className:`card`,style:{textAlign:`left`,background:i?`var(--nav-active-bg)`:`var(--bg-card)`,borderColor:i?`var(--color-accent)`:`var(--border)`,padding:`0.9rem`,cursor:`pointer`,width:`100%`,height:`100%`,display:`block`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`},children:r.service_name}),(0,C.jsx)(`span`,{className:`badge ${r.status.includes(`ERROR`)?`badge-red`:`badge-green`}`,children:r.status||`OK`})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`,marginBottom:`0.3rem`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r.operation||r.trace_id}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`,flexWrap:`wrap`},children:[(0,C.jsxs)(`span`,{className:`badge`,children:[r.span_count,` spans`]}),(0,C.jsxs)(`span`,{className:`badge`,children:[r.duration_ms?.toFixed(1),` ms`]})]})]})})}function l6({traces:e,selected:t,loading:n,error:r,onSelect:i,serviceFilter:a,onClearFilter:o}){let s=a?e.filter(e=>e.service_name===a):e,c=(0,w.useRef)(null),[l,u]=(0,w.useState)({width:0,height:0});return(0,w.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;u({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,C.jsxs)(`div`,{className:`traces-layout`,children:[(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,gap:`0.8rem`,minHeight:0,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{flexShrink:0},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,marginBottom:`0.35rem`},children:`Traces`}),(0,C.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700},children:`Recent distributed requests`})]}),a&&(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,marginBottom:8,padding:`4px 8px`,background:`#1e3a5f`,borderRadius:4,fontSize:11,color:`#38bdf8`},children:[(0,C.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,C.jsx)(`button`,{onClick:o,style:{background:`none`,border:`none`,color:`#38bdf8`,cursor:`pointer`,fontSize:12},children:`×`})]}),n&&(0,C.jsx)(`div`,{style:{color:`var(--text-muted)`},children:`Loading traces…`}),r&&(0,C.jsx)(`div`,{style:{color:`#ef4444`},children:r}),(0,C.jsx)(`div`,{ref:c,style:{flex:1,minHeight:0,overflow:`hidden`},children:l.height>0&&s.length>0&&(0,C.jsx)(o6,{height:l.height,width:l.width,itemCount:s.length,itemSize:s6,itemData:{traces:s,selectedId:t?.trace_id,onSelect:i},overscanCount:6,children:c6})})]}),(0,C.jsxs)(`div`,{className:`traces-right-col`,children:[(0,C.jsx)(`div`,{className:`card`,children:(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`},children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700},children:t?.trace_id??`No trace selected`}),(0,C.jsx)(`div`,{style:{fontSize:`0.73rem`,color:`var(--text-muted)`,marginTop:`0.2rem`},children:t?.service_name})]}),t&&(0,C.jsx)(`span`,{className:`badge ${t.status.includes(`ERROR`)?`badge-red`:`badge-green`}`,children:t.status})]})}),(0,C.jsxs)(`div`,{className:`card`,style:{overflow:`auto`},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.8rem`,fontWeight:700,marginBottom:`0.8rem`},children:`Span Waterfall`}),(0,C.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.7rem`},children:(t?.spans??[]).map(e=>(0,C.jsxs)(`div`,{style:{border:`1px solid var(--border)`,borderRadius:10,padding:`0.8rem`,background:`var(--bg-card)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`},children:e.operation_name}),(0,C.jsxs)(`span`,{className:`badge`,children:[(e.duration/1e3).toFixed(1),` ms`]})]}),(0,C.jsx)(`div`,{style:{height:8,borderRadius:999,background:`var(--bg-base)`,overflow:`hidden`,marginBottom:`0.45rem`},children:(0,C.jsx)(`div`,{style:{width:`${Math.min(100,Math.max(6,e.duration/Math.max(t?.duration||1,1)*100))}%`,height:`100%`,background:`linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))`}})}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:e.service_name})]},e.id))})]})]})]})}var u6=62,d6=19,f6=80,p6=9;function m6(e){let t=e?e.length:0;return u6+Math.max(1,Math.ceil(t/f6))*d6+p6}function h6({index:e,style:t,data:n}){let r=n.logs[e];return(0,C.jsx)(`div`,{style:{...t,paddingBottom:`${p6}px`,boxSizing:`border-box`},children:(0,C.jsxs)(`div`,{style:{padding:`0.75rem 0.9rem`,borderRadius:10,border:`1px solid var(--border)`,background:`var(--bg-card)`,height:`100%`,boxSizing:`border-box`,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.45rem`,alignItems:`center`,flexWrap:`wrap`},children:[(0,C.jsx)(`span`,{className:`badge ${r.severity===`ERROR`?`badge-red`:r.severity===`WARN`?`badge-orange`:`badge-blue`}`,children:r.severity}),(0,C.jsx)(`span`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:r.service_name})]}),(0,C.jsx)(`span`,{style:{fontSize:`0.68rem`,color:`var(--text-dim)`},children:new Date(r.timestamp).toLocaleTimeString()})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,color:`var(--text-secondary)`,lineHeight:1.6,wordBreak:`break-word`},children:r.body})]})})}function g6({logs:e,similar:t,loading:n,error:r,onSimilar:i,serviceFilter:a,onClearFilter:o}){let[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(``),d=(0,w.useMemo)(()=>{let t=e;return a&&(t=t.filter(e=>e.service_name===a)),l&&(t=t.filter(e=>e.severity===l)),t},[e,l,a]),f=(0,w.useRef)(null),[p,m]=(0,w.useState)({width:0,height:0}),h=(0,w.useRef)(null);return(0,w.useEffect)(()=>{let e=f.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,w.useEffect)(()=>{h.current?.resetAfterIndex(0)},[d,p.width]),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`minmax(320px, 420px) minmax(0, 1fr)`,gap:`1rem`,minHeight:0,flex:1},children:[(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,gap:`0.9rem`,minHeight:0},children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,marginBottom:`0.35rem`},children:`Live Log Search`}),(0,C.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700},children:`Tail, filter, and query similar incidents`})]}),a&&(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,marginBottom:8,padding:`4px 8px`,background:`#1e3a5f`,borderRadius:4,fontSize:11,color:`#38bdf8`},children:[(0,C.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,C.jsx)(`button`,{onClick:o,style:{background:`none`,border:`none`,color:`#38bdf8`,cursor:`pointer`,fontSize:12},children:`×`})]}),(0,C.jsx)(`input`,{className:`search-input`,style:{paddingLeft:`10px`},value:s,onChange:e=>c(e.target.value),placeholder:`Find similar logs...`,spellCheck:!1}),(0,C.jsx)(`div`,{style:{display:`flex`,gap:`0.4rem`,flexWrap:`wrap`},children:[``,`INFO`,`WARN`,`ERROR`].map(e=>(0,C.jsx)(`button`,{className:`mode-pill${l===e?` active`:``}`,onClick:()=>u(e),children:e||`all`},e||`all`))}),(0,C.jsx)(`button`,{className:`mc-send-btn`,disabled:!s.trim(),onClick:()=>i(s),children:`Run Similarity Search`}),(0,C.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.6rem`,overflow:`auto`},children:t.map(e=>(0,C.jsxs)(`div`,{style:{border:`1px solid var(--border)`,borderRadius:10,padding:`0.8rem`,background:`var(--bg-card)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.76rem`},children:e.service_name}),(0,C.jsx)(`span`,{className:`badge ${e.severity===`ERROR`?`badge-red`:e.severity===`WARN`?`badge-orange`:`badge-blue`}`,children:e.severity})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-secondary)`,lineHeight:1.5},children:e.body})]},`similar-${e.id}`))})]}),(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,minHeight:0,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`0.8rem`,flexShrink:0},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700},children:`Stream`}),n&&(0,C.jsx)(`span`,{className:`badge`,children:`Loading…`})]}),r&&(0,C.jsx)(`div`,{style:{color:`#ef4444`,marginBottom:`0.8rem`,flexShrink:0},children:r}),(0,C.jsx)(`div`,{ref:f,style:{flex:1,minHeight:0,overflow:`hidden`},children:p.height>0&&d.length>0&&(0,C.jsx)(a6,{ref:h,height:p.height,width:p.width,itemCount:d.length,itemSize:e=>m6(d[e]?.body??``),estimatedItemSize:90,itemData:{logs:d},overscanCount:6,children:h6})})]})]})}function _6(e,t){if(t.includes(`application/json`))return JSON.parse(e);let n=e.split(` +`).find(e=>e.startsWith(`data: `))?.slice(6);return n?JSON.parse(n):{}}function v6(e=`/mcp`){let[t,n]=(0,w.useState)(`idle`),[r,i]=(0,w.useState)([]),[a,o]=(0,w.useState)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(0),l=()=>{let e={"Content-Type":`application/json`,Accept:`application/json, text/event-stream`};return s.current&&(e[`Mcp-Session-Id`]=s.current),e},u=async t=>{let n=performance.now(),r=await fetch(e,{method:`POST`,headers:l(),body:JSON.stringify(t)}),i=r.headers.get(`Mcp-Session-Id`);return i&&(s.current=i),{data:_6(await r.text(),r.headers.get(`content-type`)??``),status:r.status,ms:Math.round(performance.now()-n)}},d=async(e,t)=>{try{let n=await u({jsonrpc:`2.0`,id:++c.current,method:e,params:t});return{result:n.data.result,error:n.data.error,timing:n.ms}}catch(e){return{error:{code:-1,message:String(e)}}}},f=async()=>{n(`connecting`),o(null);let e=await d(`initialize`,{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}});if(e.error){n(`error`),o(e.error.message);return}n(`connected`);let t=await d(`tools/list`,{});t.error||i(t.result?.tools??[])};return(0,w.useEffect)(()=>{f()},[]),{status:t,tools:r,error:a,call:d,connect:f,send:u}}function y6({tool:e,index:t,onCall:n,onRPC:r}){let i=e.inputSchema?.properties||{},a=e.inputSchema?.required||[],o=Object.keys(i).length;return(0,C.jsxs)(`div`,{className:`mc-tool-card`,children:[(0,C.jsx)(`div`,{style:{position:`absolute`,inset:`0 0 auto 0`,height:2,background:`linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))`}}),(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.4rem`},children:[(0,C.jsx)(`span`,{style:{fontFamily:`ui-monospace, monospace`,fontSize:`0.8rem`,fontWeight:700,color:`var(--text-primary)`},children:e.name}),o>0&&(0,C.jsxs)(`span`,{className:`mc-badge`,style:{fontSize:`0.6rem`},children:[o,`p`]})]}),(0,C.jsx)(`p`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`,lineHeight:1.55,marginBottom:`0.75rem`,minHeight:`3.2em`},children:e.description||`No description provided.`}),o>0&&(0,C.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.3rem`,marginBottom:`0.8rem`},children:Object.entries(i).map(([e,t])=>(0,C.jsxs)(`span`,{className:`mc-param-tag ${a.includes(e)?`mc-param-req`:`mc-param-opt`}`,children:[e,(0,C.jsxs)(`span`,{style:{opacity:.45,marginLeft:2},children:[`:`,t.type??`any`]})]},e))}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`,marginTop:`auto`},children:[(0,C.jsxs)(`button`,{className:`mc-btn-call`,onClick:()=>n(t),style:{display:`flex`,alignItems:`center`,gap:`0.35rem`},children:[(0,C.jsx)(pe,{size:10}),` Call`]}),(0,C.jsxs)(`button`,{className:`mc-btn-rpc`,onClick:()=>r(t),style:{display:`flex`,alignItems:`center`,gap:`0.35rem`},children:[(0,C.jsx)(be,{size:10}),` JSON-RPC`]})]})]})}function b6(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}function x6({tool:e,onClose:t,onCall:n}){let[r,i]=(0,w.useState)(()=>JSON.stringify(b6(e),null,2)),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(!1),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(``);return(0,C.jsxs)(O,{open:!0,onClose:t,title:(0,C.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.45rem`},children:[(0,C.jsx)(pe,{size:12,style:{color:`var(--color-accent)`}}),(0,C.jsx)(`span`,{children:`Call`}),(0,C.jsx)(`code`,{style:{background:`transparent`,padding:0,color:`var(--color-accent)`},children:e.name})]}),description:e.description,size:`lg`,children:[d&&(0,C.jsx)(`div`,{style:{padding:`0.6rem 1.25rem`,background:`rgba(239,68,68,0.08)`,borderBottom:`1px solid rgba(239,68,68,0.2)`,color:`#ef4444`,fontSize:`0.72rem`,marginBottom:`0.75rem`},children:d}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,minHeight:0,flex:1},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,padding:`1rem`,borderRight:`1px solid var(--border)`},children:[(0,C.jsx)(`label`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Arguments`}),(0,C.jsx)(`textarea`,{className:`mc-textarea`,style:{flex:1,minHeight:`16rem`},value:r,onChange:e=>i(e.target.value),spellCheck:!1}),(0,C.jsx)(`button`,{className:`mc-send-btn`,disabled:s,onClick:async()=>{let t;try{t=JSON.parse(r||`{}`)}catch(e){f(`Invalid JSON: ${String(e)}`);return}c(!0),f(``);let i=performance.now();try{o(xe(await n(e.name,t))),u(`${Math.round(performance.now()-i)}ms`)}catch(e){o(``),f(String(e))}finally{c(!1)}},children:s?`Executing…`:`Execute Tool`})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,padding:`1rem`,minHeight:0},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,C.jsx)(`label`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Result`}),l&&(0,C.jsx)(`span`,{className:`mc-badge`,children:l})]}),(0,C.jsx)(`pre`,{className:`mc-code`,style:{flex:1,minHeight:`16rem`,overflow:`auto`,padding:`0.9rem`},dangerouslySetInnerHTML:{__html:a||``}})]})]})]})}function S6(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}var C6={"tools/call":(e,t)=>({jsonrpc:`2.0`,id:1,method:`tools/call`,params:{name:e,arguments:t}}),"tools/list":()=>({jsonrpc:`2.0`,id:1,method:`tools/list`}),initialize:()=>({jsonrpc:`2.0`,id:1,method:`initialize`,params:{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}}}),ping:()=>({jsonrpc:`2.0`,id:1,method:`ping`}),"resources/list":()=>({jsonrpc:`2.0`,id:1,method:`resources/list`})};function w6({tool:e,onClose:t,onSend:n}){let r=e?.name??`tool_name`,i=e?S6(e):{},[a,o]=(0,w.useState)(`tools/call`),[s,c]=(0,w.useState)(JSON.stringify(C6[`tools/call`](r,i),null,2)),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(``),[p,m]=(0,w.useState)(!1),[h,g]=(0,w.useState)(``),_=(0,w.useRef)(null),v=e=>{if(o(e),e===`custom`)return;let t=e===`tools/call`?C6[e](r,i):C6[e]();c(JSON.stringify(t,null,2))};return(0,C.jsxs)(O,{open:!0,onClose:t,title:(0,C.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,C.jsx)(be,{size:14,style:{color:`var(--color-accent)`}}),(0,C.jsx)(`span`,{style:{fontFamily:`ui-monospace, monospace`},children:r}),(0,C.jsx)(`span`,{className:`mc-badge`,children:a})]}),description:e?.description||`Manual JSON-RPC request builder`,size:`lg`,children:[(0,C.jsx)(T,{items:[{value:`tools/call`,label:`call`},{value:`tools/list`,label:`list`},{value:`initialize`,label:`init`},{value:`ping`,label:`ping`},{value:`resources/list`,label:`resources`},{value:`custom`,label:`custom`}].map(e=>({key:e.value,label:e.label})),value:a,variant:`line`,onChange:e=>v(e)}),h&&(0,C.jsx)(`div`,{style:{padding:`0.6rem 1.25rem`,background:`rgba(239,68,68,0.08)`,borderBottom:`1px solid rgba(239,68,68,0.2)`,color:`#ef4444`,fontSize:`0.72rem`,marginTop:`0.75rem`},children:h}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,flex:1,minHeight:0,marginTop:`0.75rem`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,minHeight:0,borderRight:`1px solid var(--border)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0.6rem 0.9rem`,borderBottom:`1px solid var(--border)`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Request`}),(0,C.jsxs)(`button`,{ref:_,className:`mc-copy-btn`,onClick:async()=>{if(await navigator.clipboard.writeText(s),!_.current)return;let e=_.current.innerHTML;_.current.textContent=`Copied`,window.setTimeout(()=>{_.current&&(_.current.innerHTML=e)},1200)},children:[(0,C.jsx)(ue,{size:11}),` Copy`]})]}),(0,C.jsx)(`div`,{style:{padding:`0.75rem`,flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:(0,C.jsx)(`textarea`,{className:`mc-textarea`,style:{flex:1,minHeight:0},value:s,onChange:e=>c(e.target.value),spellCheck:!1})}),(0,C.jsx)(`div`,{style:{padding:`0 0.75rem 0.75rem`},children:(0,C.jsxs)(`button`,{className:`mc-send-btn`,disabled:p,onClick:async()=>{let e;try{e=JSON.parse(s)}catch(e){g(`Invalid JSON: ${String(e)}`);return}m(!0),g(``);try{let{data:t,status:r,ms:i}=await n(e);u(xe(t)),f(`${i}ms · HTTP ${r}`)}catch(e){u(``),g(String(e))}finally{m(!1)}},style:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`0.45rem`},children:[(0,C.jsx)(ve,{size:12}),` `,p?`Sending…`:`Send`]})})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0.6rem 0.9rem`,borderBottom:`1px solid var(--border)`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Response`}),d&&(0,C.jsx)(`span`,{className:`mc-badge`,children:d})]}),(0,C.jsx)(`pre`,{className:`mc-code`,style:{margin:`0.75rem`,flex:1,minHeight:0,overflow:`auto`,padding:`0.9rem`},dangerouslySetInnerHTML:{__html:l||``}})]})]})]})}var T6={idle:`#555`,connecting:`#eab308`,connected:`#22c55e`,error:`#ef4444`};function E6(){let{status:e,tools:t,error:n,call:r,connect:i,send:a}=v6(),[o,s]=(0,w.useState)(null),[c,l]=(0,w.useState)(null),u=T6[e];return(0,C.jsxs)(`div`,{className:`mcp-view`,children:[(0,C.jsxs)(`div`,{className:`mc-status-bar`,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.55rem`},children:[(0,C.jsxs)(`span`,{style:{position:`relative`,display:`inline-flex`,width:8,height:8},children:[(0,C.jsx)(`span`,{style:{position:`absolute`,inset:0,borderRadius:`50%`,background:u,opacity:e===`connected`?.4:0,animation:e===`connected`?`mc-ping 2s cubic-bezier(0,0,0.2,1) infinite`:`none`}}),(0,C.jsx)(`span`,{style:{width:8,height:8,borderRadius:`50%`,background:u}})]}),(0,C.jsx)(`span`,{style:{fontSize:`0.78rem`,fontWeight:600,color:u,textTransform:`capitalize`},children:e})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.4rem`,fontSize:`0.72rem`,color:`var(--text-dim)`},children:[(0,C.jsx)(me,{size:11,style:{opacity:.5}}),(0,C.jsxs)(`code`,{style:{fontFamily:`ui-monospace, monospace`,padding:`0.15rem 0.4rem`,borderRadius:4,background:`var(--bg-card)`,border:`1px solid var(--border)`,color:`var(--text-secondary)`},children:[window.location.origin,`/mcp`]})]}),(0,C.jsx)(`span`,{className:`mc-badge`,children:`HTTP Streamable MCP · JSON-RPC 2.0`}),(0,C.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,C.jsxs)(`button`,{className:`mc-btn-icon`,onClick:()=>void i(),children:[(0,C.jsx)(ge,{size:12}),` Reconnect`]})})]}),(0,C.jsxs)(`div`,{style:{padding:`0.7rem 1.25rem`,borderBottom:`1px solid var(--border)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.66rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--text-dim)`},children:`Available Tools`}),(0,C.jsxs)(`span`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:[t.length,` discovered`]})]}),(0,C.jsxs)(`div`,{style:{flex:1,overflow:`auto`,padding:`1rem`,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(280px, 1fr))`,gap:`0.8rem`,alignContent:`start`},children:[e===`error`&&(0,C.jsxs)(`div`,{className:`card`,style:{gridColumn:`1 / -1`,textAlign:`center`,padding:`2.5rem 1rem`},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.9rem`,fontWeight:700,color:`#ef4444`,marginBottom:`0.45rem`},children:`Connection failed`}),(0,C.jsx)(`div`,{style:{color:`var(--text-muted)`,marginBottom:`0.85rem`},children:n||`Could not reach the MCP endpoint.`}),(0,C.jsx)(`code`,{children:`MCP_ENABLED=true`})]}),e===`connected`&&t.map((e,n)=>(0,C.jsx)(y6,{tool:e,index:n,onCall:e=>s(t[e]),onRPC:e=>l(t[e])},e.name))]}),o&&(0,C.jsx)(x6,{tool:o,onClose:()=>s(null),onCall:async(e,t)=>(await r(`tools/call`,{name:e,arguments:t})).result??null}),c&&(0,C.jsx)(w6,{tool:c,onClose:()=>l(null),onSend:a})]})}function D6(e=6e4){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(!0),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(void 0),u=(0,w.useCallback)(async()=>{try{let e=await fetch(`/api/system/graph`);if(!e.ok)throw Error(`HTTP ${e.status}`);i(e.headers.get(`X-Cache`)??``),n(await e.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,w.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{graph:t,cache:r,loading:a,error:s,reload:u}}function O6(e=3e4){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(null),[a,o]=(0,w.useState)(!0),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(void 0),u=(0,w.useCallback)(async()=>{try{let[e,t]=await Promise.all([fetch(`/api/metrics/dashboard`),fetch(`/api/stats`)]);if(!e.ok||!t.ok)throw Error(`fetch failed`);n(await e.json()),i(await t.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,w.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{dashboard:t,stats:r,loading:a,error:s,reload:u}}function k6(){let[e,t]=(0,w.useState)([]),[n,r]=(0,w.useState)(null),[i,a]=(0,w.useState)(!0),[o,s]=(0,w.useState)(null),c=(0,w.useCallback)(async()=>{a(!0),s(null);try{let e=await(await fetch(`/api/traces?limit=25&offset=0`)).json();t(e.traces??[]),e.traces?.[0]&&r(await(await fetch(`/api/traces/${e.traces[0].trace_id}`)).json())}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,w.useEffect)(()=>{c()},[c]),{traces:e,selected:n,loading:i,error:o,selectTrace:async e=>{r(await(await fetch(`/api/traces/${e}`)).json())},reload:c}}function A6(e){return Array.isArray(e)?e:Array.isArray(e.logs)?e.logs:Array.isArray(e.items)?e.items:[]}function j6(){let[e,t]=(0,w.useState)([]),[n,r]=(0,w.useState)([]),[i,a]=(0,w.useState)(!0),[o,s]=(0,w.useState)(null),c=(0,w.useCallback)(async()=>{a(!0),s(null);try{t(A6(await(await fetch(`/api/logs?limit=100&offset=0`)).json()))}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,w.useEffect)(()=>{c()},[c]),{logs:e,similar:n,loading:i,error:o,runSimilar:async e=>{e.trim()&&r(A6(await(await fetch(`/api/logs/similar?q=${encodeURIComponent(e)}&limit=8`)).json()))},setLogs:t,reload:c}}var M6=100,N6=1e4,P6=3e4,F6=35e3;function I6(e){let t=(0,w.useRef)(null),n=(0,w.useRef)(e),[r,i]=(0,w.useState)(`connecting`);t.status=r;let a=(0,w.useRef)(0),o=(0,w.useRef)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(null),l=(0,w.useRef)(!1),u=(0,w.useRef)(()=>{});(0,w.useEffect)(()=>{n.current=e},[e]);let d=(0,w.useCallback)(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),f=(0,w.useCallback)(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null),c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]),p=(0,w.useCallback)(()=>{if(l.current)return;d();let e=a.current,t=Math.min(M6*2**e,N6);a.current=e+1,i(`reconnecting`),o.current=window.setTimeout(()=>{o.current=null,u.current()},t)},[d]),m=(0,w.useCallback)(()=>{f(),s.current=window.setInterval(()=>{let e=t.current;if(!(!e||e.readyState!==WebSocket.OPEN)){try{e.send(JSON.stringify({type:`ping`}))}catch{return}c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{c.current=null;let e=t.current;if(e)try{e.close()}catch{}},F6)}},P6)},[f]),h=(0,w.useCallback)(()=>{if(l.current)return;d(),f();let e=t.current;if(e){e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}t.current=null}i(a.current===0?`connecting`:`reconnecting`);let r=window.location.protocol===`https:`?`wss:`:`ws:`,o;try{o=new WebSocket(`${r}//${window.location.host}/ws`)}catch{p();return}t.current=o,o.onopen=()=>{l.current||(a.current=0,i(`connected`),m())},o.onmessage=e=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null);try{let t=JSON.parse(e.data);t.type===`logs`&&Array.isArray(t.data)&&n.current(t.data)}catch{}},o.onerror=()=>{},o.onclose=()=>{l.current||(t.current===o&&(t.current=null),f(),i(`disconnected`),p())}},[f,d,p,m]);return(0,w.useEffect)(()=>{u.current=h},[h]),(0,w.useEffect)(()=>{l.current=!1,u.current=h,h();let e=()=>{if(document.visibilityState!==`visible`)return;let e=t.current;(!e||e.readyState===WebSocket.CLOSED||e.readyState===WebSocket.CLOSING)&&(a.current=0,d(),u.current())},n=()=>{a.current=0,d(),u.current()};return document.addEventListener(`visibilitychange`,e),window.addEventListener(`online`,n),()=>{l.current=!0,document.removeEventListener(`visibilitychange`,e),window.removeEventListener(`online`,n),d(),f();let r=t.current;if(r){r.onopen=null,r.onmessage=null,r.onerror=null,r.onclose=null;try{r.close()}catch{}t.current=null}}},[]),t}function L6(){let[e,t]=(0,w.useState)(`services`),[n,r]=(0,w.useState)(null),i=D6(),a=O6(),o=k6(),s=j6(),c=(0,w.useRef)(s.setLogs);c.current=s.setLogs;let l=!!I6((0,w.useCallback)(e=>{c.current(t=>[...e,...t].slice(0,200))},[])).current,u=(0,w.useCallback)(e=>{r(e),t(`traces`)},[]),d=(0,w.useCallback)(e=>{r(e),t(`logs`)},[]),f=(0,w.useCallback)(()=>{r(null)},[]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(De,{view:e,onNavigate:t,dashboard:a.dashboard,stats:a.stats,wsConnected:l}),(0,C.jsxs)(`main`,{className:`main-content`,children:[e===`services`&&(0,C.jsx)(N3,{graph:i.graph,cache:i.cache,loading:i.loading,error:i.error,onNavigateToTraces:u,onNavigateToLogs:d}),e===`traces`&&(0,C.jsx)(l6,{traces:o.traces,selected:o.selected,loading:o.loading,error:o.error,onSelect:e=>void o.selectTrace(e),serviceFilter:n,onClearFilter:f}),e===`logs`&&(0,C.jsx)(g6,{logs:s.logs,similar:s.similar,loading:s.loading,error:s.error,onSimilar:e=>void s.runSimilar(e),serviceFilter:n,onClearFilter:f}),e===`mcp`&&(0,C.jsx)(E6,{})]})]})}(0,ie.createRoot)(document.getElementById(`root`)).render((0,C.jsx)(w.StrictMode,{children:(0,C.jsxs)(M,{mode:`dark`,children:[(0,C.jsx)(L6,{}),(0,C.jsx)(te,{})]})})); \ No newline at end of file diff --git a/internal/ui/dist/assets/index-DFl6oDLP.css b/internal/ui/dist/assets/index-DFl6oDLP.css deleted file mode 100644 index f7be3ac..0000000 --- a/internal/ui/dist/assets/index-DFl6oDLP.css +++ /dev/null @@ -1 +0,0 @@ -:root,:host{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body,:host{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width:31.25em){body,:host{-webkit-text-size-adjust:100%}}@media(prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root,:host{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark],:host([data-mantine-color-scheme="dark"]){--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light],:host([data-mantine-color-scheme="light"]){--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{top:0;right:0;bottom:0;left:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;top:0;right:0;bottom:0;left:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media(hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media(hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media(hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media(hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media(hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media(hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}.m_89ab340[data-mode=static]{display:grid;grid-template-columns:var(--app-shell-navbar-width, 0) 1fr var(--app-shell-aside-width, 0);grid-template-rows:auto 1fr auto;position:relative;height:100%;overflow:auto}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-mode=static]) .m_45252eee,:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-navbar-position, fixed);grid-row:var(--app-shell-navbar-grid-row, auto);height:100%}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}:where([data-mode=static][data-layout=alt]) .m_45252eee,:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1 / -1;height:100%}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([data-mode=static]) .m_45252eee{grid-column:var(--app-shell-navbar-grid-column, auto);display:var(--app-shell-navbar-display, flex)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-aside-position, fixed);grid-column:var(--app-shell-aside-grid-column, auto);grid-row:var(--app-shell-aside-grid-row, auto);display:var(--app-shell-aside-display, flex)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1 / -1}:where([data-scroll-locked]) .m_9cdde9a{visibility:var(--app-shell-aside-scroll-locked-visibility)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}:where([data-mode=static]) .m_8983817{padding-inline-start:var(--app-shell-padding);padding-inline-end:var(--app-shell-padding);padding-top:var(--app-shell-padding);padding-bottom:var(--app-shell-padding);min-height:auto;grid-column:var(--app-shell-main-column-start, 1) / var(--app-shell-main-column-end, -1);grid-row:var(--app-shell-main-grid-row, 2)}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,margin-inline-start,margin-inline-end;background-color:var(--mantine-color-body)}:where([data-mode=static]) .m_3b16f56b,:where([data-mode=static]) .m_3840c879{position:var(--app-shell-header-position, fixed);grid-column:var(--app-shell-header-grid-column, auto)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{margin-inline-start:var(--app-shell-navbar-offset, 0rem);margin-inline-end:var(--app-shell-aside-offset, 0rem)}:where([data-mode=static][data-layout=alt]) .m_3b16f56b,:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start, 1) / var(--app-shell-main-column-end, -1);margin-inline-start:0rem;margin-inline-end:0rem}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}:where([data-mode=static]) .m_3b16f56b{grid-row:var(--app-shell-header-grid-row, auto)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}:where([data-mode=static]) .m_3840c879{position:var(--app-shell-footer-position, fixed);grid-column:var(--app-shell-footer-grid-column, auto);grid-row:var(--app-shell-footer-grid-row, auto)}:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start, 1) / var(--app-shell-main-column-end, -1)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_a530ee0a{width:.8em;min-width:.8em;height:.8em}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end);cursor:default}.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{position:absolute;top:0;right:0;bottom:0;left:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_5e5256ee{position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;-webkit-user-select:none;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media(hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media(hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.5625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.5125rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding-inline:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media(hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media(hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_66a028b5{--ci-button-size-xs: calc(1.375rem * var(--mantine-scale));--ci-button-size-sm: calc(1.625rem * var(--mantine-scale));--ci-button-size-md: calc(1.75rem * var(--mantine-scale));--ci-button-size-lg: calc(2rem * var(--mantine-scale));--ci-button-size-xl: calc(2.5rem * var(--mantine-scale));--ci-button-size: var(--ci-button-size-sm);width:var(--ci-button-size);height:var(--ci-button-size);min-width:var(--ci-button-size);min-height:var(--ci-button-size)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);--list-marker-gap: var(--mantine-spacing-lg);list-style-position:outside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap)}.m_abbac491[data-type=none]{--list-marker-gap: 0}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;-webkit-user-select:none;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media(hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media(hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media(hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media(hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media(hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;top:0;right:0;bottom:0;left:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";top:0;right:0;bottom:0;left:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media(hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media(hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:100%;width:100%;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);-webkit-user-select:none;user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media(hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media(hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;-webkit-user-select:none;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media(hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media(hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media(hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media(hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media(hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media(hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;-webkit-user-select:none;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media(hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media(hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--bg-base: #000;--bg-nav: #0a0a0a;--bg-panel: #0f0f0f;--bg-card: #0a0a0a;--bg-input: #050505;--border: #1f1f1f;--border-hover: #2a2a2a;--border-strong: #333;--text-primary: #fff;--text-secondary: #ccc;--text-muted: #666;--text-dim: #444;--text-faint: #333;--nav-active-bg: #1a1a1a;--nav-active-border: #2a2a2a;--nav-active-text: #fff;--nav-inactive-text: #666;--color-accent: #38bdf8;--color-accent-hover: #0ea5e9;--accent-error: #ff4444;--color-warn: #fb923c;--color-success: #4ade80;--code-bg: #050505;--code-text: #ccc;--syntax-key: #93c5fd;--syntax-str: #86efac;--syntax-bool: #fcd34d;--syntax-null: #94a3b8;--syntax-num: #67e8f9;--accent-glow: rgba(56, 189, 248, .2)}[data-theme=light]{--bg-base: #f5f5f5;--bg-nav: #fff;--bg-panel: #fff;--bg-card: #f0f0f0;--bg-input: #f8f8f8;--border: #e5e5e5;--border-hover: #d0d0d0;--border-strong: #bbb;--text-primary: #111;--text-secondary: #333;--text-muted: #777;--text-dim: #aaa;--text-faint: #bbb;--nav-active-bg: #ebebeb;--nav-active-border: #d0d0d0;--nav-active-text: #111;--nav-inactive-text: #777;--color-accent: #0ea5e9;--color-accent-hover: #0284c7;--accent-error: #cc2222;--color-warn: #ea580c;--color-success: #16a34a;--code-bg: #0a0a0a;--code-text: #ccc;--syntax-key: #93c5fd;--syntax-str: #86efac;--syntax-bool: #fcd34d;--syntax-null: #94a3b8;--syntax-num: #67e8f9;--accent-glow: rgba(14, 165, 233, .2)}[data-theme=dark] .icon-sun{display:flex}[data-theme=dark] .icon-moon,[data-theme=light] .icon-sun{display:none}[data-theme=light] .icon-moon{display:flex}[data-radix-popper-content-wrapper]{z-index:100!important}html,body{height:100%;overflow:hidden;background:var(--bg-base);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px}#root{height:100%;display:flex;flex-direction:column}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-base)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}code{background:var(--bg-card);padding:1px 5px;border-radius:3px;color:var(--text-secondary);font-family:SF Mono,ui-monospace,monospace}.top-nav{height:48px;flex-shrink:0;background:var(--bg-nav);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 1rem;gap:.25rem;position:relative;z-index:10;overflow-x:auto}.top-nav::-webkit-scrollbar{height:0}.logo{display:flex;align-items:center;gap:.5rem;padding-right:1rem;margin-right:.25rem;border-right:1px solid var(--border);text-decoration:none;color:inherit;flex-shrink:0}.logo-mark{font-size:.7rem;font-weight:700;letter-spacing:.12em;color:var(--text-primary)}.logo-ver{font-size:.6rem;color:var(--text-faint);letter-spacing:.02em;margin-left:2px;font-family:ui-monospace,monospace}.nav-link{display:flex;align-items:center;gap:.35rem;padding:.3rem .7rem;border-radius:6px;font-size:.78rem;font-weight:500;cursor:pointer;border:1px solid transparent;color:var(--nav-inactive-text);background:none;text-decoration:none;transition:all .15s;flex-shrink:0;font-family:inherit}.nav-link:hover{color:var(--text-secondary);background:var(--nav-active-bg)}.nav-link.active{color:var(--nav-active-text);background:var(--nav-active-bg);border-color:var(--nav-active-border)}.theme-btn{width:32px;height:32px;border-radius:6px;margin-left:.25rem;background:none;display:flex;align-items:center;justify-content:center;color:var(--text-dim);border:1px solid var(--border);cursor:pointer;transition:all .15s}.theme-btn:hover{border-color:var(--border-hover);color:var(--text-muted)}.status-bar{height:24px;display:flex;align-items:center;gap:14px;padding:0 18px;background:var(--bg-nav);border-top:1px solid var(--border);font-size:10px;color:var(--text-muted);flex-shrink:0}.status-item{display:flex;align-items:center;gap:4px}.status-key{padding:0 4px;background:var(--bg-card);border:1px solid var(--border);border-radius:3px;font-size:9px;font-weight:600;color:var(--text-secondary);font-family:SF Mono,ui-monospace,monospace}.main-content{flex:1;overflow:hidden;display:flex;flex-direction:column;background:var(--bg-base)}.card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:1rem;transition:border-color .15s}.card:hover{border-color:var(--border-hover)}.badge{display:inline-flex;align-items:center;padding:.15rem .5rem;border-radius:5px;font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;background:var(--bg-card);border:1px solid var(--border);color:var(--text-dim)}.badge-green{background:#064e3b;border-color:#10b981;color:#6ee7b7}.badge-blue{background:#0c4a6e;border-color:var(--syntax-num);color:#a5f3fc}.badge-purple{background:#1e1b4b;border-color:var(--syntax-key);color:#c7d7fe}.badge-orange{background:#451a03;border-color:var(--color-warn);color:#fed7aa}.badge-red{background:#3f1014;border-color:#ef4444;color:#fecaca}.search-wrap{position:relative;flex:1;max-width:600px}.search-wrap svg{position:absolute;left:9px;top:50%;transform:translateY(-50%);opacity:.4;pointer-events:none}.search-input{width:100%;background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border);border-radius:8px;padding:6px 10px 6px 30px;font-family:SF Mono,ui-monospace,monospace;font-size:12px;outline:none;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--accent-glow)}.search-input::placeholder{color:var(--text-muted)}.mode-pill{padding:.3rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;border:1px solid var(--border);background:none;color:var(--text-muted);transition:all .15s;font-family:inherit}.mode-pill.active{background:var(--nav-active-bg);border-color:var(--color-accent);color:var(--color-accent)}.mode-pill:hover:not(.active){background:var(--nav-active-bg);color:var(--text-secondary)}.mcp-view{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-base)}.mc-status-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.6rem 1.25rem;flex-shrink:0;background:var(--bg-panel);border-bottom:1px solid var(--border)}.mc-badge{font-size:.65rem;font-weight:600;padding:.2rem .55rem;border-radius:4px;font-family:ui-monospace,monospace;letter-spacing:.08em;background:var(--bg-card);color:var(--text-dim);border:1px solid var(--border)}.mc-btn-icon{display:flex;align-items:center;gap:.3rem;height:30px;border-radius:6px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-dim);cursor:pointer;transition:all .15s;padding:0 .6rem;font-size:.72rem;font-family:inherit}.mc-btn-icon:hover{border-color:var(--border-hover);color:var(--text-muted)}.mc-tool-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:.9rem;position:relative;overflow:hidden;transition:border-color .15s,box-shadow .15s;display:flex;flex-direction:column}.mc-tool-card:hover{border-color:var(--border-hover);box-shadow:0 0 12px #ffffff08}.mc-param-tag{font-family:ui-monospace,monospace;font-size:.62rem;padding:.12rem .35rem;border-radius:4px;background:var(--bg-card);border:1px solid var(--border)}.mc-param-req{border-color:var(--border-hover);color:var(--text-secondary)}.mc-param-opt{color:var(--text-dim)}.mc-btn-call{font-size:.7rem;padding:.3rem .7rem;border-radius:6px;background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-hover);cursor:pointer;font-weight:600;transition:background .12s;font-family:inherit}.mc-btn-call:hover{background:var(--bg-panel);color:var(--text-primary);border-color:var(--border-strong)}.mc-btn-rpc{font-family:ui-monospace,monospace;font-size:.7rem;padding:.3rem .7rem;border-radius:6px;background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;font-weight:600;transition:background .12s}.mc-btn-rpc:hover{background:var(--bg-panel);color:var(--text-secondary)}.mc-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.mc-modal{position:relative;border-radius:14px;border:1px solid var(--border-hover);background:var(--bg-panel);box-shadow:0 24px 64px #0009}.mc-code{background:#050505;color:var(--code-text);border:1px solid var(--border);border-radius:8px;font-family:ui-monospace,monospace;font-size:.75rem}.mc-textarea{width:100%;background:#050505;color:#86efac;border:1px solid var(--border);border-radius:8px;font-family:ui-monospace,monospace;font-size:.74rem;padding:.6rem .75rem;resize:none;outline:none;transition:border-color .15s}.mc-textarea:focus{border-color:var(--border-hover)}.mc-send-btn{width:100%;padding:.6rem;font-size:.82rem;font-weight:700;border-radius:8px;background:var(--text-primary);color:var(--bg-base);border:none;cursor:pointer;transition:opacity .15s;font-family:inherit}.mc-send-btn:hover{opacity:.85}.mc-send-btn:disabled{opacity:.4;cursor:not-allowed}.mc-copy-btn{display:flex;align-items:center;gap:.35rem;font-size:.72rem;padding:.25rem .6rem;border-radius:5px;background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;transition:all .12s;font-family:inherit}.mc-copy-btn:hover{color:var(--text-secondary);border-color:var(--border-hover)}[data-radix-tabs-trigger][data-state=active]{color:var(--text-primary)!important;border-bottom-color:var(--color-accent)!important}[data-radix-tabs-trigger]{outline:none}[data-radix-tabs-trigger]:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent)}.stats{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.stat{display:flex;flex-direction:column;justify-content:center;min-width:72px;padding:.35rem .55rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-card)}.stat-val{font-size:.85rem;font-weight:700;line-height:1;color:var(--text-primary)}.stat-lbl{margin-top:.18rem;font-size:.62rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim)}@keyframes mc-ping{75%,to{transform:scale(2);opacity:0}}.traces-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1rem;min-height:0;flex:1;overflow:hidden}@media(max-width:860px){.traces-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:auto}}.traces-right-col{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;min-height:0;overflow:hidden}.stats-bar{display:flex;align-items:center;gap:14px;font-size:10px;font-family:var(--font-mono, monospace);color:var(--text-muted)}.stats-bar b{color:var(--text-primary)}.stats-bar .stat-error{color:#ef4444}.stats-bar .stat-healthy{color:#22c55e}.ws-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.ws-dot.connected{background:#22c55e}.ws-dot.disconnected{background:#ef4444}.service-map-container{display:flex;flex-direction:column;flex:1;overflow:hidden}.service-map-toolbar{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid var(--border)}.service-map-body{display:flex;flex:1;overflow:hidden}.service-map-canvas{flex:1;position:relative;min-height:0}.edge-slider{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--text-muted)}.edge-slider input[type=range]{width:120px;accent-color:var(--color-accent)}.zoom-controls{display:flex;gap:4px}.zoom-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text-secondary);cursor:pointer;font-size:12px}.zoom-btn:hover{border-color:var(--border-hover);color:var(--text-primary)}.side-panel{width:280px;border-left:1px solid var(--border);background:var(--bg-card);overflow-y:auto;padding:12px;flex-shrink:0} diff --git a/internal/ui/dist/assets/index-Dl9cVCAV.css b/internal/ui/dist/assets/index-Dl9cVCAV.css new file mode 100644 index 0000000..f57fab8 --- /dev/null +++ b/internal/ui/dist/assets/index-Dl9cVCAV.css @@ -0,0 +1 @@ +@font-face{font-family:Bricolage Grotesque;font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap;src:url(/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2)format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/GeistMono-Variable-BNLlm6Cd.woff2)format("woff2")}:root{--font-display:"Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-sans:"Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs-display:64px;--lh-display:1.02;--ls-display:-.035em;--fs-h1:44px;--lh-h1:1.06;--ls-h1:-.028em;--fs-h2:32px;--lh-h2:1.12;--ls-h2:-.022em;--fs-h3:22px;--lh-h3:1.25;--ls-h3:-.014em;--fs-h4:17px;--lh-h4:1.35;--ls-h4:-.008em;--fs-body:15px;--lh-body:1.55;--ls-body:0;--fs-small:13px;--lh-small:1.5;--ls-small:0;--fs-micro:11px;--lh-micro:1.4;--ls-micro:.04em;--fs-code:13.5px;--lh-code:1.55;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--space-0:0;--space-1:4px;--space-1\.5:6px;--space-2:8px;--space-2\.5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--container-narrow:640px;--container:960px;--container-wide:1280px;--container-full:1536px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-2xl:16px;--radius-full:9999px;--border-thin:1px;--border-medium:1.5px;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--dur-instant:80ms;--dur-fast:.14s;--dur-base:.22s;--dur-slow:.38s;--elevation-card:var(--shadow-sm);--elevation-popover:var(--shadow-md);--elevation-modal:var(--shadow-lg);--elevation-toast:var(--shadow-lg);--inset-highlight:inset 0 1px 0 #ffffff0f;--inset-shade:inset 0 -1px 0 #0000001f;--brand-red-50:#fff0f0;--brand-red-100:#ffd6d6;--brand-red-200:#ffa8a8;--brand-red-300:#ff6b6b;--brand-red-400:#ff2e2e;--brand-red-500:#e60000;--brand-red-600:#c20000;--brand-red-700:#9e0000;--brand-red-800:#7a0000;--brand-red-900:#520000;--brand-gray-50:#f5f5f5;--brand-gray-100:#e5e5e5;--brand-gray-200:#ccc;--brand-gray-300:#a6a6a6;--brand-gray-400:gray;--brand-gray-500:#5a5a5a;--brand-gray-600:#3d3d3d;--brand-gray-700:#2b2b2b;--brand-gray-800:#1c1c1c;--brand-gray-900:#0f0f0f;--amber-500:#ffb948;--red-500:#ff5a5f;--blue-500:#3d8cff;--pink-500:#ff5ca8}:root,[data-theme=light]{--bg-0:#fff;--bg-1:#fff;--bg-2:#f5f5f5;--bg-3:#e5e5e5;--bg-inverse:#1c1c1c;--fg-1:#1c1c1c;--fg-2:#3d3d3d;--fg-3:#4f4f4f;--fg-4:#a6a6a6;--fg-inverse:#fff;--border-1:#1c1c1c14;--border-2:#1c1c1c24;--border-3:#1c1c1c3d;--accent:#e60000;--accent-hover:#c20000;--accent-press:#9e0000;--accent-soft:#e6000014;--accent-soft-2:#e6000029;--accent-fg:#fff;--success:#1c1c1c;--warning:#d98e2b;--danger:#e60000;--info:#2d73d9;--shadow-xs:0 1px 1px #1c1c1c0a;--shadow-sm:0 1px 2px #1c1c1c0f, 0 1px 1px #1c1c1c0a;--shadow-md:0 4px 12px #1c1c1c12, 0 1px 2px #1c1c1c0a;--shadow-lg:0 12px 32px #1c1c1c1a, 0 2px 6px #1c1c1c0d;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#1c1c1c0a}[data-theme=dark]{--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}}html{font-family:var(--font-sans);color:var(--fg-1);background:var(--bg-0)}body{font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt", "liga", "kern"}.rcs-display,h1.display{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1)}h1,.rcs-h1{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h2,.rcs-h2{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h3,.rcs-h3{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--ls-h3);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h4,.rcs-h4{font-weight:var(--fw-medium);font-size:var(--fs-h4);line-height:var(--lh-h4);letter-spacing:var(--ls-h4);color:var(--fg-1);margin:0}p,.rcs-body{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--fg-2);margin:0}.rcs-small,small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--fg-3)}.rcs-micro,.rcs-label{font-family:var(--font-mono);font-size:var(--fs-micro);line-height:var(--lh-micro);letter-spacing:var(--ls-micro);text-transform:uppercase;color:var(--fg-3);font-weight:var(--fw-medium)}code,kbd,samp,pre,.rcs-code{font-family:var(--font-mono);font-size:var(--fs-code);line-height:var(--lh-code);font-feature-settings:"zero", "tnum";font-variant-numeric:tabular-nums slashed-zero}.rcs-stat-value,.rcs-stat-delta,.rcs-micro,.rcs-label{font-variant-numeric:tabular-nums}code:not(pre code){background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-xs);color:var(--fg-1);padding:1px 5px;font-size:.92em}a{color:var(--accent);transition:opacity var(--dur-fast) var(--ease-out-quart);text-decoration:none}a:hover{opacity:.75}::selection{background:var(--accent-soft-2);color:var(--fg-1)}:focus-visible{box-shadow:var(--shadow-focus);border-radius:var(--radius-sm);outline:none}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.rcs-button,.rcs-input,.rcs-textarea,.rcs-select-trigger{font-family:var(--font-sans)}.rcs-button{justify-content:center;align-items:center;gap:var(--space-2);font-weight:var(--fw-medium);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);border:1px solid #0000;display:inline-flex}.rcs-button:disabled,.rcs-button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.rcs-button:active:not(:disabled){transform:translateY(.5px)}.rcs-button--primary:focus-visible,.rcs-button--danger:focus-visible{box-shadow:var(--inset-highlight), var(--inset-shade), var(--shadow-focus)}.rcs-button--xs{border-radius:var(--radius-sm);height:24px;padding:0 8px;font-size:12px}.rcs-button--sm{border-radius:var(--radius-sm);height:28px;padding:0 10px;font-size:13px}.rcs-button--md{border-radius:var(--radius-sm);height:32px;padding:0 12px;font-size:14px}.rcs-button--lg{border-radius:var(--radius-md);height:40px;padding:0 16px;font-size:15px}.rcs-button--pill{border-radius:var(--radius-full)}.rcs-button--square{aspect-ratio:1;padding:0}.rcs-button--circle{aspect-ratio:1;border-radius:var(--radius-full);padding:0}.rcs-button--block{width:100%}.rcs-button--primary{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--primary:hover:not(:disabled){background:var(--brand-gray-700);border-color:var(--brand-gray-700)}.rcs-button--secondary{background:var(--bg-1);color:var(--fg-1);border-color:var(--border-2)}.rcs-button--secondary:hover:not(:disabled){background:var(--bg-2);border-color:var(--border-3)}.rcs-button--ghost{color:var(--fg-1);background:0 0;border-color:#0000}.rcs-button--ghost:hover:not(:disabled){background:var(--bg-2)}.rcs-button--danger{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--danger:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.rcs-button--link{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0}.rcs-button--link:hover:not(:disabled){opacity:.75}.rcs-button-spinner{border:1.5px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite rcs-spin}@keyframes rcs-spin{to{transform:rotate(360deg)}}.rcs-button-group{display:inline-flex}.rcs-button-group--vertical{flex-direction:column}.rcs-button-group--attached .rcs-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.rcs-button-group--attached .rcs-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;margin-left:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.rcs-input-wrap{background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);align-items:center;width:100%;display:flex}.rcs-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-input-wrap[data-status=error]{border-color:var(--danger)}.rcs-input-wrap[data-status=warning]{border-color:var(--warning)}.rcs-input-wrap[data-status=success]{border-color:var(--brand-gray-800)}.rcs-input-wrap[data-disabled=true]{opacity:.6;cursor:not-allowed;background:var(--bg-2)}.rcs-input-wrap--xs{height:24px;padding:0 8px;font-size:12px}.rcs-input-wrap--sm{height:28px;padding:0 10px;font-size:13px}.rcs-input-wrap--md{height:32px;padding:0 12px;font-size:14px}.rcs-input-wrap--lg{height:40px;padding:0 14px;font-size:15px}.rcs-input{min-width:0;color:var(--fg-1);font-family:inherit;font-size:inherit;background:0 0;border:0;outline:0;flex:1}.rcs-input::placeholder{color:var(--fg-4)}.rcs-input-wrap>.rcs-input:focus,.rcs-input-wrap>.rcs-input:focus-visible{box-shadow:none;border-radius:inherit}@media (width<=768px),(pointer:coarse){.rcs-input-wrap--xs,.rcs-input-wrap--sm,.rcs-input-wrap--md,.rcs-input-wrap--lg,.rcs-textarea{font-size:16px}}.rcs-input-affix{color:var(--fg-3);align-items:center;display:inline-flex}.rcs-input-affix--left{margin-right:var(--space-2)}.rcs-input-affix--right{margin-left:var(--space-2)}.rcs-input-clear{cursor:pointer;color:var(--fg-3);border-radius:var(--radius-xs);background:0 0;border:0;padding:2px;line-height:1}.rcs-input-clear:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-textarea{background:var(--bg-1);width:100%;color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);resize:vertical;outline:0;font-family:inherit;font-size:14px;line-height:1.55;display:block}.rcs-textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-textarea-count{text-align:right;font-family:var(--font-mono);color:var(--fg-4);margin-top:4px;font-size:11px;display:block}.rcs-pin{gap:var(--space-2);display:inline-flex}.rcs-pin-cell{text-align:center;width:36px;height:40px;font-family:var(--font-mono);background:var(--bg-1);color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);outline:0;font-size:16px}.rcs-pin-cell:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-form-field{margin-bottom:var(--space-4);display:block}.rcs-form-label{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1);margin-bottom:var(--space-2);display:block}.rcs-form-required{color:var(--danger);margin-left:2px}.rcs-form-optional{color:var(--fg-4);margin-left:4px;font-weight:400}.rcs-form-hint{color:var(--fg-3);margin-top:6px;font-size:12px;display:block}.rcs-form-error{color:var(--danger);font-size:12px;font-family:var(--font-mono);margin-top:6px;display:block}.rcs-checkbox,.rcs-radio{align-items:flex-start;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-flex}.rcs-checkbox input,.rcs-radio input{appearance:none;border:1.5px solid var(--border-3);background:var(--bg-1);cursor:pointer;width:16px;height:16px;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0;place-items:center;margin:1px 0 0;display:inline-grid}.rcs-checkbox input{border-radius:3px}.rcs-radio input{border-radius:50%}.rcs-checkbox input:checked,.rcs-radio input:checked{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:checked:after{content:"";border-left:1.75px solid var(--fg-inverse);border-bottom:1.75px solid var(--fg-inverse);width:9px;height:5px;transform:rotate(-45deg)translate(1px,-1px)}.rcs-checkbox input:indeterminate{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:indeterminate:after{content:"";background:var(--fg-inverse);width:8px;height:1.75px}.rcs-radio input:checked:after{content:"";background:var(--fg-inverse);border-radius:50%;width:6px;height:6px}.rcs-checkbox-label,.rcs-radio-label{line-height:1.4}.rcs-checkbox-desc,.rcs-radio-desc{color:var(--fg-3);margin-top:2px;font-size:12px;display:block}.rcs-radio-group{gap:var(--space-4);display:inline-flex}.rcs-radio-group--vertical{flex-direction:column}.rcs-switch{align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex}.rcs-switch-track{background:var(--bg-3);border-radius:var(--radius-full);width:32px;height:18px;transition:background var(--dur-fast) var(--ease-out-quart);position:relative}.rcs-switch-thumb{width:14px;height:14px;transition:transform var(--dur-fast) var(--ease-out-quart);box-shadow:var(--shadow-xs);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.rcs-switch[data-checked=true] .rcs-switch-track{background:var(--accent)}.rcs-switch[data-checked=true] .rcs-switch-thumb{transform:translate(14px)}.rcs-switch--xs .rcs-switch-track{width:24px;height:14px}.rcs-switch--xs .rcs-switch-thumb{width:10px;height:10px}.rcs-switch--xs[data-checked=true] .rcs-switch-thumb{transform:translate(10px)}.rcs-switch--lg .rcs-switch-track{width:44px;height:24px}.rcs-switch--lg .rcs-switch-thumb{width:20px;height:20px}.rcs-switch--lg[data-checked=true] .rcs-switch-thumb{transform:translate(20px)}.rcs-switch input{opacity:0;pointer-events:none;position:absolute}.rcs-slider{-webkit-user-select:none;user-select:none;height:32px;padding:12px 0;position:relative}.rcs-slider-track{background:var(--bg-3);border-radius:var(--radius-full);height:4px;position:relative}.rcs-slider-fill{background:var(--accent);border-radius:inherit;height:100%;position:absolute}.rcs-slider-thumb{border:2px solid var(--accent);width:16px;height:16px;box-shadow:var(--shadow-sm);cursor:grab;background:#fff;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.rcs-slider-thumb:active{cursor:grabbing}.rcs-slider-marks{height:16px;color:var(--fg-3);margin-top:8px;font-size:11px;position:relative}.rcs-slider-mark{position:absolute;transform:translate(-50%)}.rcs-select{width:100%;display:inline-block;position:relative}.rcs-select-trigger{align-items:center;gap:var(--space-2);background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);width:100%;min-width:120px;color:var(--fg-1);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart);outline:0;display:inline-flex}.rcs-select-trigger:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-select-trigger[data-status=error]{border-color:var(--danger)}.rcs-select-trigger[disabled]{opacity:.6;cursor:not-allowed}.rcs-select-trigger--xs{height:24px;padding:0 8px;font-size:12px}.rcs-select-trigger--sm{height:28px;padding:0 10px;font-size:13px}.rcs-select-trigger--md{height:32px;padding:0 12px;font-size:14px}.rcs-select-trigger--lg{height:40px;padding:0 14px;font-size:15px}.rcs-select-value{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.rcs-select-placeholder{color:var(--fg-4)}.rcs-select-caret{color:var(--fg-3);transition:transform var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.rcs-select[data-open=true] .rcs-select-caret{transform:rotate(180deg)}.rcs-select-menu{z-index:20;background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-md);box-shadow:var(--elevation-popover);max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}.rcs-select-search{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);width:100%;color:var(--fg-1);outline:0;margin-bottom:4px;padding:6px 8px;font-size:13px}.rcs-select-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;padding:6px 8px;font-size:13px;display:flex}.rcs-select-option:hover,.rcs-select-option[data-active=true]{background:var(--bg-2)}.rcs-select-option[data-selected=true]{background:var(--accent-soft);color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-select-option[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-select-option-desc{color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-select-empty{text-align:center;color:var(--fg-4);padding:12px;font-size:13px}.rcs-combo-tag{background:var(--bg-2);border-radius:var(--radius-xs);align-items:center;gap:4px;margin-right:4px;padding:1px 4px 1px 6px;font-size:12px;display:inline-flex}.rcs-combo-tag-x{cursor:pointer;color:var(--fg-3);background:0 0;border:0;padding:0 2px}.rcs-upload-drop{padding:var(--space-8);border:1.5px dashed var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);text-align:center;cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);flex-direction:column;justify-content:center;align-items:center;display:flex}.rcs-upload-drop:hover,.rcs-upload-drop[data-drag=true]{border-color:var(--accent);background:var(--accent-soft)}.rcs-upload-hint{color:var(--fg-3);margin-top:4px;font-size:12px}.rcs-badge{font-family:var(--font-mono);font-size:11px;font-weight:var(--fw-medium);border-radius:var(--radius-xs);letter-spacing:.02em;text-transform:uppercase;border:1px solid #0000;align-items:center;gap:4px;padding:2px 6px;line-height:1.4;display:inline-flex}.rcs-badge--sm{padding:1px 4px;font-size:10px}.rcs-badge--lg{padding:3px 8px;font-size:12px}.rcs-badge--neutral{background:var(--bg-2);color:var(--fg-2);border-color:var(--border-1)}.rcs-badge--info{color:var(--info);background:#2d73d91a}.rcs-badge--warning{color:var(--warning);background:#d98e2b1f}.rcs-badge--danger{background:var(--accent-soft);color:var(--accent)}.rcs-badge--subtle{background:var(--bg-2);color:var(--fg-3);border-color:var(--border-1)}.rcs-badge--solid{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-badge-x{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:0;padding:0 0 0 2px}.rcs-badge-x:hover{opacity:1}.rcs-status-dot{align-items:center;gap:var(--space-2);color:var(--fg-2);font-size:13px;display:inline-flex}.rcs-status-dot-glyph{background:var(--fg-3);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.rcs-status-dot[data-status=running] .rcs-status-dot-glyph,.rcs-status-dot[data-status=live] .rcs-status-dot-glyph{background:#1f9e5c}.rcs-status-dot[data-status=degraded] .rcs-status-dot-glyph{background:var(--warning)}.rcs-status-dot[data-status=failed] .rcs-status-dot-glyph{background:var(--danger)}.rcs-status-dot[data-status=idle] .rcs-status-dot-glyph,.rcs-status-dot[data-status=stopped] .rcs-status-dot-glyph{background:var(--fg-4)}.rcs-status-dot[data-pulse=true] .rcs-status-dot-glyph{animation:rcs-pulse 1.6s var(--ease-out-quart) infinite;box-shadow:0 0}@keyframes rcs-pulse{0%{box-shadow:0 0 #1f9e5c80}70%{box-shadow:0 0 0 6px #1f9e5c00}to{box-shadow:0 0 #1f9e5c00}}.rcs-card{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-card);transition:border-color var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart)}.rcs-card[data-hoverable=true]:hover{border-color:var(--border-2);box-shadow:var(--elevation-popover);transform:translateY(-1px)}.rcs-card[data-hoverable=true]:active{box-shadow:var(--elevation-card);transform:translateY(0)}.rcs-card-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);justify-content:space-between;align-items:flex-start;display:flex}.rcs-card-title{font-size:15px;font-weight:var(--fw-semibold);color:var(--fg-1)}.rcs-card-subtitle{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-card-extra{flex-shrink:0}.rcs-card-body{padding:var(--space-5)}.rcs-card-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);background:var(--bg-2);border-radius:0 0 var(--radius-md) var(--radius-md)}.rcs-space{display:inline-flex}.rcs-space--vertical{flex-direction:column}.rcs-space--wrap{flex-wrap:wrap}.rcs-space-split{color:var(--border-2);align-self:stretch;align-items:stretch;display:inline-flex}.rcs-divider{background:var(--border-1);border:0}.rcs-divider--horizontal{width:100%;height:1px;margin:var(--space-4) 0}.rcs-divider--vertical{width:1px;height:1em;margin:0 var(--space-3);vertical-align:middle;display:inline-block}.rcs-divider--text{align-items:center;gap:var(--space-3);height:auto;margin:var(--space-4) 0;font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;background:0 0;font-size:11px;display:flex}.rcs-divider--text:before,.rcs-divider--text:after{content:"";background:var(--border-1);flex:1;height:1px}.rcs-divider--dashed{background-image:linear-gradient(to right, var(--border-2) 50%, transparent 50%);background-color:#0000;background-size:8px 1px}.rcs-grid{display:grid}.rcs-scroll{position:relative}.rcs-scroll[data-thin=true]{scrollbar-width:thin}.rcs-tabs{flex-direction:column;display:flex}.rcs-tabs-nav{flex-shrink:0;align-items:center;gap:0;display:flex}.rcs-tabs-tab{align-items:center;gap:var(--space-2);cursor:pointer;font-size:14px;font-weight:var(--fw-medium);color:var(--fg-3);transition:color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;padding:10px 14px;display:inline-flex}.rcs-tabs-tab:hover,.rcs-tabs-tab[data-active=true]{color:var(--fg-1)}.rcs-tabs-tab:active:not([disabled]):not([data-active=true]){transform:translateY(.5px)}.rcs-tabs-tab[disabled]{opacity:.4;cursor:not-allowed}.rcs-tabs--line .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--line .rcs-tabs-tab[data-active=true]{box-shadow:inset 0 -2px 0 0 var(--fg-1)}.rcs-tabs--card .rcs-tabs-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;border:1px solid #0000;margin-bottom:-1px}.rcs-tabs--card .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--card .rcs-tabs-tab[data-active=true]{background:var(--bg-1);border-color:var(--border-1) var(--border-1) var(--bg-1)}.rcs-tabs--segment{background:var(--bg-2);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.rcs-tabs--segment .rcs-tabs-nav{gap:0}.rcs-tabs--segment .rcs-tabs-tab{border-radius:var(--radius-xs);padding:6px 12px}.rcs-tabs--segment .rcs-tabs-tab[data-active=true]{background:var(--bg-1);box-shadow:var(--shadow-xs)}.rcs-tabs--pill .rcs-tabs-tab{border-radius:var(--radius-full);padding:6px 14px}.rcs-tabs--pill .rcs-tabs-tab[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-tabs[data-scrollable=true]{position:relative}.rcs-tabs-nav[data-scrollable=true]{scrollbar-width:none;-ms-overflow-style:none;overflow:auto hidden}.rcs-tabs-nav[data-scrollable=true]::-webkit-scrollbar{display:none}.rcs-tabs-nav[data-scrollable=true] .rcs-tabs-tab{flex-shrink:0}.rcs-tabs[data-scrollable=true]:after{content:"";width:32px;height:var(--rcs-tabs-nav-h,40px);background:linear-gradient(to right, transparent, var(--rcs-tabs-fade-color,var(--bg-0)));pointer-events:none;z-index:1;position:absolute;top:0;right:0}.rcs-tabs-content{flex-direction:column;flex:1;min-height:0;display:flex}.rcs-menu{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);flex-direction:column;min-width:200px;padding:4px;display:flex}.rcs-menu--horizontal{flex-direction:row}.rcs-menu-item{align-items:center;gap:var(--space-2);cursor:pointer;border-radius:var(--radius-sm);color:var(--fg-1);padding:6px 8px;font-size:13px;display:flex}.rcs-menu-item:hover{background:var(--bg-2)}.rcs-menu-item[data-selected=true]{background:var(--accent-soft)}.rcs-menu-item[data-destructive=true]{color:var(--danger)}.rcs-menu-item[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-menu-item-shortcut{font-family:var(--font-mono);color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-menu-separator{background:var(--border-1);height:1px;margin:4px 0}.rcs-menu-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;padding:4px 8px;font-size:10px}.rcs-breadcrumb{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-breadcrumb a{color:var(--fg-2)}.rcs-breadcrumb a:hover{color:var(--fg-1)}.rcs-breadcrumb-item--last{color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-breadcrumb-sep{color:var(--fg-4)}.rcs-pagination{align-items:center;gap:4px;font-size:13px;display:inline-flex}.rcs-pagination-btn{min-width:28px;height:28px;color:var(--fg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;padding:0 8px;font-size:13px}.rcs-pagination-btn:hover:not(:disabled){border-color:var(--border-3);color:var(--fg-1)}.rcs-pagination-btn[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-pagination-btn:disabled{opacity:.4;cursor:not-allowed}.rcs-pagination-ellipsis{color:var(--fg-4);padding:0 6px}.rcs-steps{gap:0;display:flex}.rcs-steps--vertical{flex-direction:column}.rcs-step{align-items:flex-start;gap:var(--space-2);padding:0 var(--space-3);flex:1;display:flex;position:relative}.rcs-step:not(:last-child):after{content:"";top:12px;left:calc(24px + var(--space-3));background:var(--border-2);height:1px;position:absolute;right:0}.rcs-step[data-status=finish]:after{background:var(--bg-inverse)}.rcs-step-marker{width:24px;height:24px;font-size:11px;font-family:var(--font-mono);font-weight:var(--fw-medium);border:1px solid var(--border-2);background:var(--bg-1);color:var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.rcs-step[data-status=process] .rcs-step-marker,.rcs-step[data-status=finish] .rcs-step-marker{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-step[data-status=error] .rcs-step-marker{background:var(--danger);color:#fff;border-color:var(--danger)}.rcs-step-title{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1)}.rcs-step[data-status=wait] .rcs-step-title{color:var(--fg-3)}.rcs-step-desc{color:var(--fg-3);margin-top:2px;font-size:12px}.rcs-alert{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);display:flex}.rcs-alert--info{background:#2d73d90f;border-color:#2d73d933}.rcs-alert--success{background:var(--bg-2);border-color:var(--border-1)}.rcs-alert--warning{background:#d98e2b14;border-color:#d98e2b40}.rcs-alert--danger{background:var(--accent-soft);border-color:var(--accent-soft-2)}.rcs-alert-body{flex:1}.rcs-alert-title{font-weight:var(--fw-semibold);color:var(--fg-1);margin-bottom:2px;font-size:14px}.rcs-alert-content{color:var(--fg-2);font-size:13px;line-height:1.5}.rcs-alert-action{margin-top:8px}.rcs-alert-icon{flex-shrink:0;padding-top:1px;font-size:16px;line-height:1}.rcs-alert-close{cursor:pointer;color:var(--fg-3);background:0 0;border:0;flex-shrink:0;padding:2px;line-height:1}.rcs-alert-close:hover{color:var(--fg-1)}.rcs-modal-backdrop{z-index:100;padding:var(--space-4);animation:rcs-fade-in var(--dur-base) var(--ease-out-quart);background:#0006;place-items:center;display:grid;position:fixed;inset:0}.rcs-modal{background:var(--bg-1);color:var(--fg-1);border-radius:var(--radius-lg);box-shadow:var(--elevation-modal);width:100%;max-width:520px;max-height:90vh;animation:rcs-pop-in var(--dur-base) var(--ease-out-quart);flex-direction:column;display:flex}.rcs-modal--xs{max-width:360px}.rcs-modal--sm{max-width:440px}.rcs-modal--md{max-width:520px}.rcs-modal--lg{max-width:720px}.rcs-modal--fullscreen{border-radius:0;max-width:100vw;height:100vh;max-height:100vh}.rcs-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);flex-shrink:0}.rcs-modal-title{font-size:17px;font-weight:var(--fw-semibold);margin:0}.rcs-modal-desc{color:var(--fg-3);margin-top:4px;font-size:13px}.rcs-modal-body{padding:var(--space-5);flex:1;min-height:0;overflow:auto}.rcs-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);justify-content:flex-end;gap:var(--space-2);flex-shrink:0;display:flex}@keyframes rcs-fade-in{0%{opacity:0}}@keyframes rcs-pop-in{0%{opacity:0;transform:scale(.96)translateY(8px)}}.rcs-drawer{background:var(--bg-1);color:var(--fg-1);z-index:101;box-shadow:var(--elevation-modal);flex-direction:column;display:flex;position:fixed}.rcs-drawer--right{height:100dvh;top:0;right:0}.rcs-drawer--left{height:100dvh;top:0;left:0}.rcs-drawer--top{width:100dvw;top:0;left:0}.rcs-drawer--bottom{width:100dvw;bottom:0;left:0}.rcs-progress{display:block}.rcs-progress-track{background:var(--bg-3);border-radius:var(--radius-full);width:100%;height:6px;overflow:hidden}.rcs-progress-fill{background:var(--bg-inverse);border-radius:inherit;height:100%;transition:width var(--dur-base) var(--ease-out-quart)}.rcs-progress[data-tone=danger] .rcs-progress-fill{background:var(--danger)}.rcs-progress[data-tone=warning] .rcs-progress-fill{background:var(--warning)}.rcs-progress--lg .rcs-progress-track{height:8px}.rcs-progress--sm .rcs-progress-track{height:4px}.rcs-progress--xs .rcs-progress-track{height:3px}.rcs-progress[data-indeterminate=true] .rcs-progress-fill{animation:rcs-indeterminate 1.4s var(--ease-in-out) infinite;width:30%!important}@keyframes rcs-indeterminate{0%{transform:translate(-100%)}to{transform:translate(380%)}}.rcs-progress-value{font-family:var(--font-mono);color:var(--fg-3);margin-top:4px;font-size:11px}.rcs-skeleton{background:var(--bg-2);border-radius:var(--radius-sm);display:inline-block;position:relative;overflow:hidden}.rcs-skeleton[data-animated=true]:after{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);animation:1.4s linear infinite rcs-shimmer;position:absolute;inset:0}[data-theme=dark] .rcs-skeleton[data-animated=true]:after,.rcs-skeleton[data-animated=true][data-theme=dark]:after{background:linear-gradient(90deg,#0000,#ffffff0f,#0000)}@keyframes rcs-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.rcs-skeleton--text{border-radius:var(--radius-xs);width:100%;height:1em}.rcs-skeleton--circle{border-radius:50%}.rcs-spin{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-spin-glyph{border:2px solid;border-top-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite rcs-spin}.rcs-spin--xs .rcs-spin-glyph{border-width:1.5px;width:12px;height:12px}.rcs-spin--lg .rcs-spin-glyph{border-width:2.5px;width:24px;height:24px}.rcs-spin[data-tone=danger] .rcs-spin-glyph{color:var(--danger)}.rcs-tooltip{display:inline-block;position:relative}.rcs-tooltip-bubble{z-index:50;background:var(--bg-inverse);color:var(--fg-inverse);border-radius:var(--radius-sm);white-space:nowrap;box-shadow:var(--elevation-popover);pointer-events:none;padding:4px 8px;font-size:12px;position:absolute}.rcs-tooltip-bubble[data-placement=top]{bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=bottom]{top:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=left]{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}.rcs-tooltip-bubble[data-placement=right]{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.rcs-toast-region{bottom:var(--space-5);right:var(--space-5);z-index:200;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:fixed}.rcs-toast{pointer-events:auto;background:var(--bg-1);min-width:260px;max-width:380px;color:var(--fg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-toast);padding:var(--space-3) var(--space-4);gap:var(--space-3);animation:rcs-toast-in var(--dur-base) var(--ease-out-quart);align-items:flex-start;display:flex}@keyframes rcs-toast-in{0%{opacity:0;transform:translateY(8px)}}.rcs-toast-title{font-weight:var(--fw-semibold);font-size:14px}.rcs-toast-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-toast-action{color:var(--accent);cursor:pointer;font-weight:var(--fw-medium);background:0 0;border:0;padding:4px 8px}.rcs-toast-icon{text-align:center;flex-shrink:0;width:20px;font-size:14px;line-height:20px}.rcs-toast--success .rcs-toast-icon{color:var(--brand-gray-800)}.rcs-toast--danger .rcs-toast-icon{color:var(--danger)}.rcs-toast--warning .rcs-toast-icon{color:var(--warning)}.rcs-toast--info .rcs-toast-icon{color:var(--info)}.rcs-table-wrap{border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);overflow:auto}.rcs-table{border-collapse:collapse;width:100%;font-size:13px}.rcs-table thead th{text-align:left;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--fg-3);font-size:11px;font-weight:var(--fw-medium);border-bottom:1px solid var(--border-1);background:var(--bg-2);white-space:nowrap;padding:10px 14px}.rcs-table[data-sticky-header=true] thead th{z-index:1;position:sticky;top:0}.rcs-table tbody td{border-bottom:1px solid var(--border-1);color:var(--fg-1);vertical-align:middle;padding:10px 14px}.rcs-table tbody tr:last-child td{border-bottom:0}.rcs-table[data-density=compact] tbody td{padding:6px 12px}.rcs-table[data-density=comfortable] tbody td{padding:14px 16px}.rcs-table[data-striped=true] tbody tr:nth-child(odd) td{background:var(--bg-2)}.rcs-table[data-bordered=true] th,.rcs-table[data-bordered=true] td{border-right:1px solid var(--border-1)}.rcs-table tbody tr:hover td{background:var(--bg-2);cursor:pointer}.rcs-table-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rcs-table-sortable:after{content:" ↕";color:var(--fg-4)}.rcs-table-sortable[data-sort=asc]:after{content:" ↑";color:var(--fg-1)}.rcs-table-sortable[data-sort=desc]:after{content:" ↓";color:var(--fg-1)}.rcs-table-empty{text-align:center;padding:var(--space-12);color:var(--fg-3);font-size:13px}.rcs-table-align-right{text-align:right}.rcs-table-align-center{text-align:center}.rcs-stat{flex-direction:column;gap:4px;display:flex}.rcs-stat-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;font-size:11px}.rcs-stat-value{font-size:28px;font-weight:var(--fw-semibold);color:var(--fg-1);align-items:baseline;gap:4px;display:flex}.rcs-stat-unit{color:var(--fg-3);font-size:14px;font-weight:var(--fw-regular)}.rcs-stat-delta{font-size:12px;font-family:var(--font-mono);color:var(--fg-3);align-items:center;gap:4px;display:inline-flex}.rcs-stat-delta[data-tone=good]{color:#1f9e5c}.rcs-stat-delta[data-tone=bad]{color:var(--danger)}.rcs-stat-spark{width:80px;height:24px}.rcs-avatar{background:var(--bg-2);color:var(--fg-2);font-weight:var(--fw-medium);border:1px solid var(--border-1);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.rcs-avatar img{object-fit:cover;width:100%;height:100%}.rcs-avatar--circle{border-radius:50%}.rcs-avatar--square{border-radius:var(--radius-sm)}.rcs-avatar-status{background:var(--brand-gray-800);border:2px solid var(--bg-1);border-radius:50%;width:25%;height:25%;position:absolute;bottom:0;right:0}.rcs-timeline{gap:var(--space-4);flex-direction:column;display:flex}.rcs-timeline-item{gap:var(--space-3);display:flex;position:relative}.rcs-timeline-item:not(:last-child):before{content:"";background:var(--border-1);width:1px;position:absolute;top:18px;bottom:-16px;left:7px}.rcs-timeline-marker{background:var(--bg-1);border:2px solid var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;width:14px;height:14px;margin-top:4px}.rcs-timeline-item[data-tone=success] .rcs-timeline-marker{border-color:var(--brand-gray-800);background:var(--brand-gray-800)}.rcs-timeline-item[data-tone=warning] .rcs-timeline-marker{border-color:var(--warning)}.rcs-timeline-item[data-tone=danger] .rcs-timeline-marker{border-color:var(--danger);background:var(--danger)}.rcs-timeline-content{flex:1;padding-bottom:4px}.rcs-timeline-title{font-size:14px;font-weight:var(--fw-medium)}.rcs-timeline-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-timeline-time{font-family:var(--font-mono);color:var(--fg-4);text-transform:uppercase;letter-spacing:.04em;margin-top:4px;font-size:11px;display:block}.rcs-chat{flex-direction:column;height:100%;min-height:0;display:flex}.rcs-chat-messages{padding:var(--space-4);gap:var(--space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.rcs-chat-msg{gap:var(--space-3);display:flex}.rcs-chat-msg--user{flex-direction:row-reverse}.rcs-chat-bubble{max-width:75%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--fg-1);font-size:14px;line-height:1.5}.rcs-chat-msg--user .rcs-chat-bubble{background:var(--bg-inverse);color:var(--fg-inverse);border-bottom-right-radius:4px}.rcs-chat-msg--assistant .rcs-chat-bubble{border-bottom-left-radius:4px}.rcs-chat-msg--system .rcs-chat-bubble{border:1px dashed var(--border-2);font-family:var(--font-mono);color:var(--fg-3);background:0 0;align-self:center;max-width:100%;font-size:12px}.rcs-chat-msg-status{font-family:var(--font-mono);color:var(--fg-4);margin-top:2px;font-size:10px}.rcs-chat-suggestions{padding:0 var(--space-4) var(--space-2);gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-chat-suggestion{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-full);color:var(--fg-2);cursor:pointer;padding:6px 12px;font-size:13px}.rcs-chat-suggestion:hover{background:var(--bg-2);border-color:var(--border-3)}.rcs-chat-composer{gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border-1);background:var(--bg-1);align-items:flex-end;display:flex}.rcs-chat-input{resize:none;border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);color:var(--fg-1);outline:0;flex:1;min-height:40px;max-height:200px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.5}.rcs-chat-input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-codeblock{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-md);overflow:hidden}.rcs-codeblock-header{border-bottom:1px solid var(--border-1);background:var(--bg-1);font-family:var(--font-mono);color:var(--fg-3);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.rcs-codeblock-pre{padding:var(--space-3) var(--space-4);font-family:var(--font-mono);color:var(--fg-1);margin:0;font-size:13px;line-height:1.5;overflow:auto}.rcs-codeblock-pre[data-wrap=true]{white-space:pre-wrap;word-break:break-word}.rcs-codeblock-line{display:flex}.rcs-codeblock-lineno{text-align:right;width:32px;padding-right:var(--space-3);color:var(--fg-4);-webkit-user-select:none;user-select:none;flex-shrink:0;display:inline-block}.rcs-codeblock-line[data-highlight=true]{background:var(--accent-soft);margin:0 calc(-1 * var(--space-4));padding:0 var(--space-4)}.rcs-codeblock-copy{cursor:pointer;color:var(--fg-3);font-family:var(--font-mono);border-radius:var(--radius-xs);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;padding:2px 6px;font-size:11px}.rcs-codeblock-copy:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-markdown{color:var(--fg-1);font-size:14px;line-height:1.65}.rcs-markdown h1{margin:1.2em 0 .5em;font-size:22px}.rcs-markdown h2{margin:1.2em 0 .5em;font-size:18px}.rcs-markdown h3{margin:1em 0 .4em;font-size:15px}.rcs-markdown p{color:var(--fg-2);margin:.6em 0}.rcs-markdown a{color:var(--accent)}.rcs-markdown ul,.rcs-markdown ol{color:var(--fg-2);margin:.6em 0;padding-left:1.4em}.rcs-markdown blockquote{border-left:2px solid var(--border-2);color:var(--fg-3);margin:1em 0;padding:.2em 1em;font-style:italic}.rcs-markdown pre{background:var(--bg-2);padding:var(--space-3);border-radius:var(--radius-sm);overflow:auto}.rcs-markdown code{background:var(--bg-2);border-radius:3px;padding:1px 5px;font-size:.9em}.rcs-markdown--compact{font-size:13px}.rcs-markdown--compact h1{font-size:18px}.rcs-terminal{color:#e5e5e5;border-radius:var(--radius-md);font-family:var(--font-mono);background:#0f0f0f;flex-direction:column;font-size:13px;display:flex;overflow:hidden}.rcs-terminal-tabs{background:#1c1c1c;border-bottom:1px solid #2b2b2b;gap:0;padding:0 8px;display:flex}.rcs-terminal-tab{color:#a6a6a6;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-bottom:1px solid #0000;padding:6px 10px;font-size:11px}.rcs-terminal-tab[data-active=true]{color:#fff;border-bottom-color:var(--accent)}.rcs-terminal-body{padding:var(--space-3);flex:1;overflow:auto}.rcs-terminal-line{padding:1px 0;line-height:1.5}.rcs-terminal-line[data-type=stderr]{color:#ff8585}.rcs-terminal-line[data-type=error]{color:#ff5a5f}.rcs-terminal-line[data-type=warn]{color:#ffb948}.rcs-terminal-line[data-type=info]{color:#62a3ff}.rcs-terminal-line[data-type=debug]{color:#a6a6a6}.rcs-terminal-line[data-type=prompt]{color:#1f9e5c}.rcs-terminal-cursor{vertical-align:text-bottom;background:#e5e5e5;width:7px;height:14px;animation:1s steps(2,end) infinite rcs-blink;display:inline-block}@keyframes rcs-blink{50%{opacity:0}}.rcs-rte{border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);overflow:hidden}.rcs-rte-toolbar{border-bottom:1px solid var(--border-1);background:var(--bg-2);gap:2px;padding:4px 6px;display:flex}.rcs-rte-toolbtn{cursor:pointer;border-radius:var(--radius-xs);color:var(--fg-2);background:0 0;border:0;padding:4px 8px;font-size:13px}.rcs-rte-toolbtn:hover{background:var(--bg-3);color:var(--fg-1)}.rcs-rte-content{padding:var(--space-3);color:var(--fg-1);outline:0;min-height:120px;font-size:14px;line-height:1.6}.rcs-rte-content[data-empty=true]:before{content:attr(data-placeholder);color:var(--fg-4)}.rcs-page-header{--rcs-page-header-py:var(--space-5);--rcs-page-header-px:var(--space-6);--rcs-page-header-title-fs:var(--fs-h3);--rcs-page-header-subtitle-fs:14px;border-bottom:1px solid var(--border-1);padding:var(--rcs-page-header-py) var(--rcs-page-header-px);background:var(--bg-1)}.rcs-page-header--xs{--rcs-page-header-py:var(--space-1\.5);--rcs-page-header-px:var(--space-3);--rcs-page-header-title-fs:15px;--rcs-page-header-subtitle-fs:12px}.rcs-page-header--sm{--rcs-page-header-py:var(--space-2);--rcs-page-header-px:var(--space-4);--rcs-page-header-title-fs:var(--fs-h4);--rcs-page-header-subtitle-fs:13px}.rcs-page-header--lg{--rcs-page-header-py:var(--space-6);--rcs-page-header-px:var(--space-8);--rcs-page-header-title-fs:var(--fs-h2);--rcs-page-header-subtitle-fs:15px}.rcs-page-header--xl{--rcs-page-header-py:var(--space-8);--rcs-page-header-px:var(--space-12);--rcs-page-header-title-fs:var(--fs-h1);--rcs-page-header-subtitle-fs:17px}.rcs-page-header-row{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.rcs-page-header-back{cursor:pointer;color:var(--fg-3);margin-bottom:var(--space-2);font-size:12px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;align-items:center;gap:4px;padding:2px 0;display:inline-flex}.rcs-page-header-back:hover{color:var(--fg-1)}.rcs-page-header-back-inline{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--fg-3);cursor:pointer;transition:background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;display:inline-flex}.rcs-page-header-back-inline:hover{background:var(--bg-2);color:var(--fg-1)}.rcs-page-header-back-inline:active{transform:translateY(.5px)}.rcs-page-header--sm .rcs-page-header-back-inline{width:24px;height:24px;font-size:14px}.rcs-page-header--xs .rcs-page-header-back-inline{width:22px;height:22px;font-size:13px}.rcs-page-header--xs .rcs-page-header-title{gap:var(--space-2)}.rcs-page-header-title{align-items:center;gap:var(--space-3);min-width:0;display:flex}.rcs-page-header-title h1{font-size:var(--rcs-page-header-title-fs);font-family:var(--font-display);font-weight:var(--fw-semibold);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";margin:0}.rcs-page-header-subtitle{font-size:var(--rcs-page-header-subtitle-fs);color:var(--fg-3);margin-top:4px}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-title-text{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle{margin-top:0}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle:before{content:"·";margin-right:var(--space-2);color:var(--fg-4)}.rcs-page-header-actions{gap:var(--space-2);flex-shrink:0;display:flex}.rcs-page-header-tabs{margin-top:var(--space-4);margin-bottom:calc(-1 * (var(--rcs-page-header-py) + var(--border-thin)))}.rcs-app-shell{background:var(--bg-0);grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.rcs-app-shell-body{min-height:0;display:grid}.rcs-app-shell-body[data-has-sidebar=true]{grid-template-columns:var(--rcs-sidebar-w,240px) 1fr}.rcs-app-shell-sidebar{border-right:1px solid var(--border-1);background:var(--bg-1);overflow:auto}.rcs-app-shell-main{min-width:0;overflow:auto}.rcs-app-shell-header{border-bottom:1px solid var(--border-1);background:var(--bg-1)}.rcs-app-shell-footer{border-top:1px solid var(--border-1);background:var(--bg-1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--bg-base:#000;--bg-nav:#0a0a0a;--bg-panel:#0f0f0f;--bg-card:#0a0a0a;--bg-input:#050505;--border:#1f1f1f;--border-hover:#2a2a2a;--border-strong:#333;--text-primary:#fff;--text-secondary:#ccc;--text-muted:#666;--text-dim:#444;--text-faint:#333;--nav-active-bg:#1a1a1a;--nav-active-border:#2a2a2a;--nav-active-text:#fff;--nav-inactive-text:#666;--color-accent:#38bdf8;--color-accent-hover:#0ea5e9;--accent-error:#f44;--color-warn:#fb923c;--color-success:#4ade80;--code-bg:#050505;--code-text:#ccc;--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:#38bdf833}[data-theme=light]{--bg-base:#f5f5f5;--bg-nav:#fff;--bg-panel:#fff;--bg-card:#f0f0f0;--bg-input:#f8f8f8;--border:#e5e5e5;--border-hover:#d0d0d0;--border-strong:#bbb;--text-primary:#111;--text-secondary:#333;--text-muted:#777;--text-dim:#aaa;--text-faint:#bbb;--nav-active-bg:#ebebeb;--nav-active-border:#d0d0d0;--nav-active-text:#111;--nav-inactive-text:#777;--color-accent:#0ea5e9;--color-accent-hover:#0284c7;--accent-error:#c22;--color-warn:#ea580c;--color-success:#16a34a;--code-bg:#0a0a0a;--code-text:#ccc;--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:#0ea5e933}[data-theme=dark] .icon-sun{display:flex}[data-theme=dark] .icon-moon,[data-theme=light] .icon-sun{display:none}[data-theme=light] .icon-moon{display:flex}[data-radix-popper-content-wrapper]{z-index:100!important}html,body{background:var(--bg-base);height:100%;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;overflow:hidden}#root{flex-direction:column;height:100%;display:flex}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-base)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}code{background:var(--bg-card);color:var(--text-secondary);border-radius:3px;padding:1px 5px;font-family:SF Mono,ui-monospace,monospace}.top-nav{background:var(--bg-nav);border-bottom:1px solid var(--border);z-index:10;flex-shrink:0;align-items:center;gap:.25rem;height:48px;padding:0 1rem;display:flex;position:relative;overflow-x:auto}.top-nav::-webkit-scrollbar{height:0}.logo{border-right:1px solid var(--border);color:inherit;flex-shrink:0;align-items:center;gap:.5rem;margin-right:.25rem;padding-right:1rem;text-decoration:none;display:flex}.logo-mark{letter-spacing:.12em;color:var(--text-primary);font-size:.7rem;font-weight:700}.logo-ver{color:var(--text-faint);letter-spacing:.02em;margin-left:2px;font-family:ui-monospace,monospace;font-size:.6rem}.nav-link{cursor:pointer;color:var(--nav-inactive-text);background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;align-items:center;gap:.35rem;padding:.3rem .7rem;font-family:inherit;font-size:.78rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.nav-link:hover{color:var(--text-secondary);background:var(--nav-active-bg)}.nav-link.active{color:var(--nav-active-text);background:var(--nav-active-bg);border-color:var(--nav-active-border)}.theme-btn{width:32px;height:32px;color:var(--text-dim);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;margin-left:.25rem;transition:all .15s;display:flex}.theme-btn:hover{border-color:var(--border-hover);color:var(--text-muted)}.status-bar{background:var(--bg-nav);border-top:1px solid var(--border);height:24px;color:var(--text-muted);flex-shrink:0;align-items:center;gap:14px;padding:0 18px;font-size:10px;display:flex}.status-item{align-items:center;gap:4px;display:flex}.status-key{background:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);border-radius:3px;padding:0 4px;font-family:SF Mono,ui-monospace,monospace;font-size:9px;font-weight:600}.main-content{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:1rem;transition:border-color .15s}.card:hover{border-color:var(--border-hover)}.badge{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-card);border:1px solid var(--border);color:var(--text-dim);border-radius:5px;align-items:center;padding:.15rem .5rem;font-size:.62rem;font-weight:600;display:inline-flex}.badge-green{color:#6ee7b7;background:#064e3b;border-color:#10b981}.badge-blue{border-color:var(--syntax-num);color:#a5f3fc;background:#0c4a6e}.badge-purple{border-color:var(--syntax-key);color:#c7d7fe;background:#1e1b4b}.badge-orange{border-color:var(--color-warn);color:#fed7aa;background:#451a03}.badge-red{color:#fecaca;background:#3f1014;border-color:#ef4444}.search-wrap{flex:1;max-width:600px;position:relative}.search-wrap svg{opacity:.4;pointer-events:none;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.search-input{background:var(--bg-input);width:100%;color:var(--text-primary);border:1px solid var(--border);border-radius:8px;outline:none;padding:6px 10px 6px 30px;font-family:SF Mono,ui-monospace,monospace;font-size:12px;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--accent-glow)}.search-input::placeholder{color:var(--text-muted)}.mode-pill{cursor:pointer;border:1px solid var(--border);color:var(--text-muted);background:0 0;border-radius:6px;padding:.3rem .75rem;font-family:inherit;font-size:.75rem;font-weight:600;transition:all .15s}.mode-pill.active{background:var(--nav-active-bg);border-color:var(--color-accent);color:var(--color-accent)}.mode-pill:hover:not(.active){background:var(--nav-active-bg);color:var(--text-secondary)}.mcp-view{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.mc-status-bar{background:var(--bg-panel);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.75rem;padding:.6rem 1.25rem;display:flex}.mc-badge{letter-spacing:.08em;background:var(--bg-card);color:var(--text-dim);border:1px solid var(--border);border-radius:4px;padding:.2rem .55rem;font-family:ui-monospace,monospace;font-size:.65rem;font-weight:600}.mc-btn-icon{border:1px solid var(--border);background:var(--bg-card);height:30px;color:var(--text-dim);cursor:pointer;border-radius:6px;align-items:center;gap:.3rem;padding:0 .6rem;font-family:inherit;font-size:.72rem;transition:all .15s;display:flex}.mc-btn-icon:hover{border-color:var(--border-hover);color:var(--text-muted)}.mc-tool-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;flex-direction:column;padding:.9rem;transition:border-color .15s,box-shadow .15s;display:flex;position:relative;overflow:hidden}.mc-tool-card:hover{border-color:var(--border-hover);box-shadow:0 0 12px #ffffff08}.mc-param-tag{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.12rem .35rem;font-family:ui-monospace,monospace;font-size:.62rem}.mc-param-req{border-color:var(--border-hover);color:var(--text-secondary)}.mc-param-opt{color:var(--text-dim)}.mc-btn-call{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-hover);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:inherit;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-call:hover{background:var(--bg-panel);color:var(--text-primary);border-color:var(--border-strong)}.mc-btn-rpc{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:ui-monospace,monospace;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-rpc:hover{background:var(--bg-panel);color:var(--text-secondary)}.mc-overlay{z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000bf;position:fixed;inset:0}.mc-modal{border:1px solid var(--border-hover);background:var(--bg-panel);border-radius:14px;position:relative;box-shadow:0 24px 64px #0009}.mc-code{color:var(--code-text);border:1px solid var(--border);background:#050505;border-radius:8px;font-family:ui-monospace,monospace;font-size:.75rem}.mc-textarea{color:#86efac;border:1px solid var(--border);resize:none;background:#050505;border-radius:8px;outline:none;width:100%;padding:.6rem .75rem;font-family:ui-monospace,monospace;font-size:.74rem;transition:border-color .15s}.mc-textarea:focus{border-color:var(--border-hover)}.mc-send-btn{background:var(--text-primary);width:100%;color:var(--bg-base);cursor:pointer;border:none;border-radius:8px;padding:.6rem;font-family:inherit;font-size:.82rem;font-weight:700;transition:opacity .15s}.mc-send-btn:hover{opacity:.85}.mc-send-btn:disabled{opacity:.4;cursor:not-allowed}.mc-copy-btn{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:5px;align-items:center;gap:.35rem;padding:.25rem .6rem;font-family:inherit;font-size:.72rem;transition:all .12s;display:flex}.mc-copy-btn:hover{color:var(--text-secondary);border-color:var(--border-hover)}[data-radix-tabs-trigger][data-state=active]{color:var(--text-primary)!important;border-bottom-color:var(--color-accent)!important}[data-radix-tabs-trigger]{outline:none}[data-radix-tabs-trigger]:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent)}.stats{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.stat{border:1px solid var(--border);background:var(--bg-card);border-radius:8px;flex-direction:column;justify-content:center;min-width:72px;padding:.35rem .55rem;display:flex}.stat-val{color:var(--text-primary);font-size:.85rem;font-weight:700;line-height:1}.stat-lbl{text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-top:.18rem;font-size:.62rem}@keyframes mc-ping{75%,to{opacity:0;transform:scale(2)}}.traces-layout{flex:1;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1rem;min-height:0;display:grid;overflow:hidden}@media (width<=860px){.traces-layout{grid-template-rows:auto 1fr;grid-template-columns:1fr;overflow:auto}}.traces-right-col{grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;min-height:0;display:grid;overflow:hidden}.stats-bar{font-size:10px;font-family:var(--font-mono,monospace);color:var(--text-muted);align-items:center;gap:14px;display:flex}.stats-bar b{color:var(--text-primary)}.stats-bar .stat-error{color:#ef4444}.stats-bar .stat-healthy{color:#22c55e}.ws-dot{border-radius:50%;width:6px;height:6px;display:inline-block}.ws-dot.connected{background:#22c55e}.ws-dot.disconnected{background:#ef4444}.service-map-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.service-map-toolbar{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 16px;display:flex}.service-map-body{flex:1;display:flex;overflow:hidden}.service-map-canvas{flex:1;min-height:0;position:relative}.edge-slider{color:var(--text-muted);align-items:center;gap:6px;font-size:10px;display:flex}.edge-slider input[type=range]{width:120px;accent-color:var(--color-accent)}.zoom-controls{gap:4px;display:flex}.zoom-btn{border:1px solid var(--border);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:flex}.zoom-btn:hover{border-color:var(--border-hover);color:var(--text-primary)}.side-panel{border-left:1px solid var(--border);background:var(--bg-card);flex-shrink:0;width:280px;padding:12px;overflow-y:auto} diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index 0f2f56b..9eae5d0 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -4,8 +4,8 @@ OtelContext - - + +
diff --git a/ui/package-lock.json b/ui/package-lock.json index dcc2dcb..48aec4b 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -8,14 +8,12 @@ "name": "otelcontext-ui", "version": "0.0.0", "dependencies": { - "@mantine/core": "^9.1.0", - "@mantine/hooks": "^9.1.0", + "@ossrandom/design-system": "^0.3.0", "clsx": "^2.1.1", "echarts": "^6.0.0", "lucide-react": "^0.469.0", "react": "^19.2.5", - "react-dom": "^19.2.5", - "react-window": "^2.2.7" + "react-dom": "^19.2.5" }, "devDependencies": { "@eslint/js": "^10.0.1", @@ -25,13 +23,14 @@ "@types/node": "^22.19.15", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", - "@types/react-window": "^2.0.0", + "@types/react-window": "^1.8.8", "@vitejs/plugin-react": "^6.0.1", "eslint": "^10.2.1", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.5.0", "jsdom": "^29.1.0", + "react-window": "^1.8.11", "typescript": "~5.7.2", "typescript-eslint": "^8.59.1", "vite": "^8.0.10", @@ -679,59 +678,6 @@ } } }, - "node_modules/@floating-ui/core": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz", - "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==", - "license": "MIT", - "dependencies": { - "@floating-ui/utils": "^0.2.11" - } - }, - "node_modules/@floating-ui/dom": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz", - "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==", - "license": "MIT", - "dependencies": { - "@floating-ui/core": "^1.7.5", - "@floating-ui/utils": "^0.2.11" - } - }, - "node_modules/@floating-ui/react": { - "version": "0.27.19", - "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.27.19.tgz", - "integrity": "sha512-31B8h5mm8YxotlE7/AU/PhNAl8eWxAmjL/v2QOxroDNkTFLk3Uu82u63N3b6TXa4EGJeeZLVcd/9AlNlVqzeog==", - "license": "MIT", - "dependencies": { - "@floating-ui/react-dom": "^2.1.8", - "@floating-ui/utils": "^0.2.11", - "tabbable": "^6.0.0" - }, - "peerDependencies": { - "react": ">=17.0.0", - "react-dom": ">=17.0.0" - } - }, - "node_modules/@floating-ui/react-dom": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.8.tgz", - "integrity": "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==", - "license": "MIT", - "dependencies": { - "@floating-ui/dom": "^1.7.6" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@floating-ui/utils": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz", - "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==", - "license": "MIT" - }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -834,33 +780,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@mantine/core": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@mantine/core/-/core-9.1.0.tgz", - "integrity": "sha512-gT14pELclqrxhWZsFoY6MxN3dtVKxwUQFM9Y5SNzNyHgm6Mjh374pFdMg7P6FOECXYy1nlTP8y5S1vIR9CiNTA==", - "license": "MIT", - "dependencies": { - "@floating-ui/react": "^0.27.19", - "clsx": "^2.1.1", - "react-number-format": "^5.4.5", - "react-remove-scroll": "^2.7.2", - "type-fest": "^5.6.0" - }, - "peerDependencies": { - "@mantine/hooks": "9.1.0", - "react": "^19.2.0", - "react-dom": "^19.2.0" - } - }, - "node_modules/@mantine/hooks": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-9.1.0.tgz", - "integrity": "sha512-qWES5aD0fYfhEP1Kg82IYUZSg1fT9VTwJJF2jmn9lpIAYR2Bht9GIeWMd3WgjRNaxU+7A1I9rC2HADs0khKUpQ==", - "license": "MIT", - "peerDependencies": { - "react": "^19.2.0" - } - }, "node_modules/@napi-rs/wasm-runtime": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", @@ -880,6 +799,49 @@ "@emnapi/runtime": "^1.7.1" } }, + "node_modules/@ossrandom/design-system": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@ossrandom/design-system/-/design-system-0.3.0.tgz", + "integrity": "sha512-flW4PBob1WCjyero4HA8/gYHbQe+ufy2XpQ5EpjO988LdNaM/oArj4gONQSdXdGGlQ4zoXzuRTgPjDDBB61o2A==", + "license": "MIT", + "engines": { + "node": ">=18.18" + }, + "peerDependencies": { + "@deck.gl/core": "^9.0.0", + "@deck.gl/layers": "^9.0.0", + "cytoscape": "^3.30.0", + "cytoscape-cose-bilkent": "^4.1.0", + "d3-force": "^3.0.0", + "d3-hierarchy": "^3.0.0", + "react": ">=18", + "react-dom": ">=18", + "uplot": "^1.6.0" + }, + "peerDependenciesMeta": { + "@deck.gl/core": { + "optional": true + }, + "@deck.gl/layers": { + "optional": true + }, + "cytoscape": { + "optional": true + }, + "cytoscape-cose-bilkent": { + "optional": true + }, + "d3-force": { + "optional": true + }, + "d3-hierarchy": { + "optional": true + }, + "uplot": { + "optional": true + } + } + }, "node_modules/@oxc-project/types": { "version": "0.127.0", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.127.0.tgz", @@ -1323,7 +1285,7 @@ "version": "19.2.14", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "csstype": "^3.2.2" @@ -1340,14 +1302,13 @@ } }, "node_modules/@types/react-window": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/react-window/-/react-window-2.0.0.tgz", - "integrity": "sha512-E8hMDtImEpMk1SjswSvqoSmYvk7GEtyVaTa/GJV++FdDNuMVVEzpAClyJ0nqeKYBrMkGiyH6M1+rPLM0Nu1exQ==", - "deprecated": "This is a stub types definition. react-window provides its own type definitions, so you do not need this installed.", + "version": "1.8.8", + "resolved": "https://registry.npmjs.org/@types/react-window/-/react-window-1.8.8.tgz", + "integrity": "sha512-8Ls660bHR1AUA2kuRvVG9D/4XpRC6wjAaPT9dil7Ckc76eP9TKWZwwmgfq8Q1LANX3QNDnoU4Zp48A3w+zK69Q==", "dev": true, "license": "MIT", "dependencies": { - "react-window": "*" + "@types/react": "*" } }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -1970,7 +1931,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/data-urls": { @@ -2039,12 +2000,6 @@ "node": ">=8" } }, - "node_modules/detect-node-es": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", - "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", - "license": "MIT" - }, "node_modules/dom-accessibility-api": { "version": "0.5.16", "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", @@ -2436,15 +2391,6 @@ "node": ">=6.9.0" } }, - "node_modules/get-nonce": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", - "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -3021,6 +2967,13 @@ "dev": true, "license": "CC0-1.0" }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==", + "dev": true, + "license": "MIT" + }, "node_modules/min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", @@ -3316,93 +3269,22 @@ "license": "MIT", "peer": true }, - "node_modules/react-number-format": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/react-number-format/-/react-number-format-5.4.5.tgz", - "integrity": "sha512-y8O2yHHj3w0aE9XO8d2BCcUOOdQTRSVq+WIuMlLVucAm5XNjJAy+BoOJiuQMldVYVOKTMyvVNfnbl2Oqp+YxGw==", - "license": "MIT", - "peerDependencies": { - "react": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/react-remove-scroll": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz", - "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==", - "license": "MIT", - "dependencies": { - "react-remove-scroll-bar": "^2.3.7", - "react-style-singleton": "^2.2.3", - "tslib": "^2.1.0", - "use-callback-ref": "^1.3.3", - "use-sidecar": "^1.1.3" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": "*", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/react-remove-scroll-bar": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz", - "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==", - "license": "MIT", - "dependencies": { - "react-style-singleton": "^2.2.2", - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": "*", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/react-style-singleton": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz", - "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==", + "node_modules/react-window": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/react-window/-/react-window-1.8.11.tgz", + "integrity": "sha512-+SRbUVT2scadgFSWx+R1P754xHPEqvcfSfVX10QYg6POOz+WNgkN48pS+BtZNIMGiL1HYrSEiCkwsMS15QogEQ==", + "dev": true, "license": "MIT", "dependencies": { - "get-nonce": "^1.0.0", - "tslib": "^2.0.0" + "@babel/runtime": "^7.0.0", + "memoize-one": ">=3.1.1 <6" }, "engines": { - "node": ">=10" + "node": ">8.0.0" }, "peerDependencies": { - "@types/react": "*", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/react-window": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/react-window/-/react-window-2.2.7.tgz", - "integrity": "sha512-SH5nvfUQwGHYyriDUAOt7wfPsfG9Qxd6OdzQxl5oQ4dsSsUicqQvjV7dR+NqZ4coY0fUn3w1jnC5PwzIUWEg5w==", - "license": "MIT", - "peerDependencies": { - "react": "^18.0.0 || ^19.0.0", - "react-dom": "^18.0.0 || ^19.0.0" + "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/redent": { @@ -3573,24 +3455,6 @@ "dev": true, "license": "MIT" }, - "node_modules/tabbable": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz", - "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==", - "license": "MIT" - }, - "node_modules/tagged-tag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tagged-tag/-/tagged-tag-1.0.0.tgz", - "integrity": "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==", - "license": "MIT", - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/tinybench": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", @@ -3698,7 +3562,9 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" + "dev": true, + "license": "0BSD", + "optional": true }, "node_modules/type-check": { "version": "0.4.0", @@ -3713,21 +3579,6 @@ "node": ">= 0.8.0" } }, - "node_modules/type-fest": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.6.0.tgz", - "integrity": "sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==", - "license": "(MIT OR CC0-1.0)", - "dependencies": { - "tagged-tag": "^1.0.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/typescript": { "version": "5.7.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", @@ -3824,49 +3675,6 @@ "punycode": "^2.1.0" } }, - "node_modules/use-callback-ref": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz", - "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==", - "license": "MIT", - "dependencies": { - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": "*", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/use-sidecar": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz", - "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==", - "license": "MIT", - "dependencies": { - "detect-node-es": "^1.1.0", - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": "*", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, "node_modules/vite": { "version": "8.0.10", "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.10.tgz", diff --git a/ui/package.json b/ui/package.json index 3338006..77f13da 100644 --- a/ui/package.json +++ b/ui/package.json @@ -12,14 +12,12 @@ "test:watch": "vitest" }, "dependencies": { - "@mantine/core": "^9.1.0", - "@mantine/hooks": "^9.1.0", + "@ossrandom/design-system": "^0.3.0", "clsx": "^2.1.1", "echarts": "^6.0.0", "lucide-react": "^0.469.0", "react": "^19.2.5", - "react-dom": "^19.2.5", - "react-window": "^2.2.7" + "react-dom": "^19.2.5" }, "devDependencies": { "@eslint/js": "^10.0.1", @@ -29,13 +27,14 @@ "@types/node": "^22.19.15", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", - "@types/react-window": "^2.0.0", + "@types/react-window": "^1.8.8", "@vitejs/plugin-react": "^6.0.1", "eslint": "^10.2.1", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.5.0", "jsdom": "^29.1.0", + "react-window": "^1.8.11", "typescript": "~5.7.2", "typescript-eslint": "^8.59.1", "vite": "^8.0.10", diff --git a/ui/src/components/mcp/RPCPopup.tsx b/ui/src/components/mcp/RPCPopup.tsx index 54bde76..3993b34 100644 --- a/ui/src/components/mcp/RPCPopup.tsx +++ b/ui/src/components/mcp/RPCPopup.tsx @@ -1,6 +1,6 @@ import { useRef, useState } from 'react' -import { Modal, Tabs } from '@mantine/core' -import { Copy, SendHorizontal, Terminal, X } from 'lucide-react' +import { Modal, Tabs } from '@ossrandom/design-system' +import { Copy, SendHorizontal, Terminal } from 'lucide-react' import type { MCPTool } from '@/types/api' import { colorJSON } from '@/lib/utils' @@ -89,48 +89,30 @@ export default function RPCPopup({ tool, onClose, onSend }: Props) { { value: 'custom', label: 'custom' }, ] + const title = ( + + + {name} + {method} + + ) + return ( -
-
- -
-
-
- {name} - {method} -
-
{tool?.description || 'Manual JSON-RPC request builder'}
-
- -
- value && selectMethod(value as RpcMethod)} variant="default" unstyled> - - {methods.map((item) => ( - - {item.label} - - ))} - - - {error &&
{error}
} -
+ + items={methods.map((item) => ({ key: item.value, label: item.label }))} + value={method} + variant="line" + onChange={(key) => selectMethod(key)} + /> + {error &&
{error}
} +
Request diff --git a/ui/src/components/mcp/ToolCallModal.tsx b/ui/src/components/mcp/ToolCallModal.tsx index dea0c9a..3fa3b86 100644 --- a/ui/src/components/mcp/ToolCallModal.tsx +++ b/ui/src/components/mcp/ToolCallModal.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' -import { Modal } from '@mantine/core' -import { Play, X } from 'lucide-react' +import { Modal } from '@ossrandom/design-system' +import { Play } from 'lucide-react' import type { MCPTool } from '@/types/api' import { colorJSON } from '@/lib/utils' @@ -50,32 +50,23 @@ export default function ToolCallModal({ tool, onClose, onCall }: Props) { } } + const title = ( + + + Call + {tool.name} + + ) + return ( -
-
-
- - Call - {tool.name} -
-
{tool.description}
-
- -
- {error &&
{error}
} + {error &&
{error}
}
diff --git a/ui/src/main.tsx b/ui/src/main.tsx index 3617da7..f5a50b4 100644 --- a/ui/src/main.tsx +++ b/ui/src/main.tsx @@ -1,23 +1,16 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' -import '@mantine/core/styles.css' -import { MantineProvider, createTheme } from '@mantine/core' +import { ThemeProvider, ToastRegion } from '@ossrandom/design-system' +import '@ossrandom/design-system/styles.css' import './styles/tokens.css' import './styles/global.css' import App from './App' -const theme = createTheme({ - primaryColor: 'blue', - defaultRadius: 'md', - fontFamily: - 'system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif', - fontFamilyMonospace: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace', -}) - createRoot(document.getElementById('root')!).render( - + - + + , ) From a33686c917681445f7c5b5e60e1e779db67963a9 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 29 Apr 2026 14:13:52 +0000 Subject: [PATCH 02/13] checkpoint: pre-yolo 2026-04-29T14:13:52 From e71ab16c3bb7bf0750666bc97a7c904b40b91d4e Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 29 Apr 2026 14:27:59 +0000 Subject: [PATCH 03/13] checkpoint: pre-yolo 2026-04-29T14:27:59 From a22eaaec564d619dd89f252b54a3e0eefb9a9535 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 29 Apr 2026 14:33:24 +0000 Subject: [PATCH 04/13] refactor(ui): bind legacy CSS tokens to DS variables for instant visual shift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rewrite ui/src/styles/tokens.css so the legacy --bg-base / --text-primary / --color-accent etc. names resolve to @ossrandom/design-system tokens (--bg-0..3, --fg-1..4, --accent-fg, --border-1..3). Existing inline `var(--*)` usage and the .card/.top-nav/.nav-link rules in global.css now pick up the DS palette and fonts (Bricolage Grotesque, Plus Jakarta Sans, Geist Mono, Cod Gray on Signal Red) without touching every component. This is the thin transition shim called out as "out of scope" in the parent commit's message — a follow-up PR will replace the class-based styles in global.css with DS components and delete this file entirely. Bundle delta: -21 CSS lines (light-theme block removed; DS owns theming via ThemeProvider mode now). Live verified at oteliq.randomcodespace.dev: the new CSS hash (index-BLTTK0qH.css) ships --bg-base:var(--bg-0) plus the DS variable woff2 references for all three font families. Co-Authored-By: Claude Opus 4.7 (1M context) --- ...{index-Dl9cVCAV.css => index-BLTTK0qH.css} | 2 +- .../{index-C9DjciJ7.js => index-COVOG8eS.js} | 0 internal/ui/dist/index.html | 4 +- ui/src/styles/tokens.css | 95 ++++++++----------- 4 files changed, 40 insertions(+), 61 deletions(-) rename internal/ui/dist/assets/{index-Dl9cVCAV.css => index-BLTTK0qH.css} (80%) rename internal/ui/dist/assets/{index-C9DjciJ7.js => index-COVOG8eS.js} (100%) diff --git a/internal/ui/dist/assets/index-Dl9cVCAV.css b/internal/ui/dist/assets/index-BLTTK0qH.css similarity index 80% rename from internal/ui/dist/assets/index-Dl9cVCAV.css rename to internal/ui/dist/assets/index-BLTTK0qH.css index f57fab8..7cc20f3 100644 --- a/internal/ui/dist/assets/index-Dl9cVCAV.css +++ b/internal/ui/dist/assets/index-BLTTK0qH.css @@ -1 +1 @@ -@font-face{font-family:Bricolage Grotesque;font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap;src:url(/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2)format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/GeistMono-Variable-BNLlm6Cd.woff2)format("woff2")}:root{--font-display:"Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-sans:"Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs-display:64px;--lh-display:1.02;--ls-display:-.035em;--fs-h1:44px;--lh-h1:1.06;--ls-h1:-.028em;--fs-h2:32px;--lh-h2:1.12;--ls-h2:-.022em;--fs-h3:22px;--lh-h3:1.25;--ls-h3:-.014em;--fs-h4:17px;--lh-h4:1.35;--ls-h4:-.008em;--fs-body:15px;--lh-body:1.55;--ls-body:0;--fs-small:13px;--lh-small:1.5;--ls-small:0;--fs-micro:11px;--lh-micro:1.4;--ls-micro:.04em;--fs-code:13.5px;--lh-code:1.55;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--space-0:0;--space-1:4px;--space-1\.5:6px;--space-2:8px;--space-2\.5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--container-narrow:640px;--container:960px;--container-wide:1280px;--container-full:1536px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-2xl:16px;--radius-full:9999px;--border-thin:1px;--border-medium:1.5px;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--dur-instant:80ms;--dur-fast:.14s;--dur-base:.22s;--dur-slow:.38s;--elevation-card:var(--shadow-sm);--elevation-popover:var(--shadow-md);--elevation-modal:var(--shadow-lg);--elevation-toast:var(--shadow-lg);--inset-highlight:inset 0 1px 0 #ffffff0f;--inset-shade:inset 0 -1px 0 #0000001f;--brand-red-50:#fff0f0;--brand-red-100:#ffd6d6;--brand-red-200:#ffa8a8;--brand-red-300:#ff6b6b;--brand-red-400:#ff2e2e;--brand-red-500:#e60000;--brand-red-600:#c20000;--brand-red-700:#9e0000;--brand-red-800:#7a0000;--brand-red-900:#520000;--brand-gray-50:#f5f5f5;--brand-gray-100:#e5e5e5;--brand-gray-200:#ccc;--brand-gray-300:#a6a6a6;--brand-gray-400:gray;--brand-gray-500:#5a5a5a;--brand-gray-600:#3d3d3d;--brand-gray-700:#2b2b2b;--brand-gray-800:#1c1c1c;--brand-gray-900:#0f0f0f;--amber-500:#ffb948;--red-500:#ff5a5f;--blue-500:#3d8cff;--pink-500:#ff5ca8}:root,[data-theme=light]{--bg-0:#fff;--bg-1:#fff;--bg-2:#f5f5f5;--bg-3:#e5e5e5;--bg-inverse:#1c1c1c;--fg-1:#1c1c1c;--fg-2:#3d3d3d;--fg-3:#4f4f4f;--fg-4:#a6a6a6;--fg-inverse:#fff;--border-1:#1c1c1c14;--border-2:#1c1c1c24;--border-3:#1c1c1c3d;--accent:#e60000;--accent-hover:#c20000;--accent-press:#9e0000;--accent-soft:#e6000014;--accent-soft-2:#e6000029;--accent-fg:#fff;--success:#1c1c1c;--warning:#d98e2b;--danger:#e60000;--info:#2d73d9;--shadow-xs:0 1px 1px #1c1c1c0a;--shadow-sm:0 1px 2px #1c1c1c0f, 0 1px 1px #1c1c1c0a;--shadow-md:0 4px 12px #1c1c1c12, 0 1px 2px #1c1c1c0a;--shadow-lg:0 12px 32px #1c1c1c1a, 0 2px 6px #1c1c1c0d;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#1c1c1c0a}[data-theme=dark]{--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}}html{font-family:var(--font-sans);color:var(--fg-1);background:var(--bg-0)}body{font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt", "liga", "kern"}.rcs-display,h1.display{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1)}h1,.rcs-h1{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h2,.rcs-h2{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h3,.rcs-h3{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--ls-h3);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h4,.rcs-h4{font-weight:var(--fw-medium);font-size:var(--fs-h4);line-height:var(--lh-h4);letter-spacing:var(--ls-h4);color:var(--fg-1);margin:0}p,.rcs-body{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--fg-2);margin:0}.rcs-small,small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--fg-3)}.rcs-micro,.rcs-label{font-family:var(--font-mono);font-size:var(--fs-micro);line-height:var(--lh-micro);letter-spacing:var(--ls-micro);text-transform:uppercase;color:var(--fg-3);font-weight:var(--fw-medium)}code,kbd,samp,pre,.rcs-code{font-family:var(--font-mono);font-size:var(--fs-code);line-height:var(--lh-code);font-feature-settings:"zero", "tnum";font-variant-numeric:tabular-nums slashed-zero}.rcs-stat-value,.rcs-stat-delta,.rcs-micro,.rcs-label{font-variant-numeric:tabular-nums}code:not(pre code){background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-xs);color:var(--fg-1);padding:1px 5px;font-size:.92em}a{color:var(--accent);transition:opacity var(--dur-fast) var(--ease-out-quart);text-decoration:none}a:hover{opacity:.75}::selection{background:var(--accent-soft-2);color:var(--fg-1)}:focus-visible{box-shadow:var(--shadow-focus);border-radius:var(--radius-sm);outline:none}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.rcs-button,.rcs-input,.rcs-textarea,.rcs-select-trigger{font-family:var(--font-sans)}.rcs-button{justify-content:center;align-items:center;gap:var(--space-2);font-weight:var(--fw-medium);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);border:1px solid #0000;display:inline-flex}.rcs-button:disabled,.rcs-button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.rcs-button:active:not(:disabled){transform:translateY(.5px)}.rcs-button--primary:focus-visible,.rcs-button--danger:focus-visible{box-shadow:var(--inset-highlight), var(--inset-shade), var(--shadow-focus)}.rcs-button--xs{border-radius:var(--radius-sm);height:24px;padding:0 8px;font-size:12px}.rcs-button--sm{border-radius:var(--radius-sm);height:28px;padding:0 10px;font-size:13px}.rcs-button--md{border-radius:var(--radius-sm);height:32px;padding:0 12px;font-size:14px}.rcs-button--lg{border-radius:var(--radius-md);height:40px;padding:0 16px;font-size:15px}.rcs-button--pill{border-radius:var(--radius-full)}.rcs-button--square{aspect-ratio:1;padding:0}.rcs-button--circle{aspect-ratio:1;border-radius:var(--radius-full);padding:0}.rcs-button--block{width:100%}.rcs-button--primary{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--primary:hover:not(:disabled){background:var(--brand-gray-700);border-color:var(--brand-gray-700)}.rcs-button--secondary{background:var(--bg-1);color:var(--fg-1);border-color:var(--border-2)}.rcs-button--secondary:hover:not(:disabled){background:var(--bg-2);border-color:var(--border-3)}.rcs-button--ghost{color:var(--fg-1);background:0 0;border-color:#0000}.rcs-button--ghost:hover:not(:disabled){background:var(--bg-2)}.rcs-button--danger{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--danger:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.rcs-button--link{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0}.rcs-button--link:hover:not(:disabled){opacity:.75}.rcs-button-spinner{border:1.5px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite rcs-spin}@keyframes rcs-spin{to{transform:rotate(360deg)}}.rcs-button-group{display:inline-flex}.rcs-button-group--vertical{flex-direction:column}.rcs-button-group--attached .rcs-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.rcs-button-group--attached .rcs-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;margin-left:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.rcs-input-wrap{background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);align-items:center;width:100%;display:flex}.rcs-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-input-wrap[data-status=error]{border-color:var(--danger)}.rcs-input-wrap[data-status=warning]{border-color:var(--warning)}.rcs-input-wrap[data-status=success]{border-color:var(--brand-gray-800)}.rcs-input-wrap[data-disabled=true]{opacity:.6;cursor:not-allowed;background:var(--bg-2)}.rcs-input-wrap--xs{height:24px;padding:0 8px;font-size:12px}.rcs-input-wrap--sm{height:28px;padding:0 10px;font-size:13px}.rcs-input-wrap--md{height:32px;padding:0 12px;font-size:14px}.rcs-input-wrap--lg{height:40px;padding:0 14px;font-size:15px}.rcs-input{min-width:0;color:var(--fg-1);font-family:inherit;font-size:inherit;background:0 0;border:0;outline:0;flex:1}.rcs-input::placeholder{color:var(--fg-4)}.rcs-input-wrap>.rcs-input:focus,.rcs-input-wrap>.rcs-input:focus-visible{box-shadow:none;border-radius:inherit}@media (width<=768px),(pointer:coarse){.rcs-input-wrap--xs,.rcs-input-wrap--sm,.rcs-input-wrap--md,.rcs-input-wrap--lg,.rcs-textarea{font-size:16px}}.rcs-input-affix{color:var(--fg-3);align-items:center;display:inline-flex}.rcs-input-affix--left{margin-right:var(--space-2)}.rcs-input-affix--right{margin-left:var(--space-2)}.rcs-input-clear{cursor:pointer;color:var(--fg-3);border-radius:var(--radius-xs);background:0 0;border:0;padding:2px;line-height:1}.rcs-input-clear:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-textarea{background:var(--bg-1);width:100%;color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);resize:vertical;outline:0;font-family:inherit;font-size:14px;line-height:1.55;display:block}.rcs-textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-textarea-count{text-align:right;font-family:var(--font-mono);color:var(--fg-4);margin-top:4px;font-size:11px;display:block}.rcs-pin{gap:var(--space-2);display:inline-flex}.rcs-pin-cell{text-align:center;width:36px;height:40px;font-family:var(--font-mono);background:var(--bg-1);color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);outline:0;font-size:16px}.rcs-pin-cell:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-form-field{margin-bottom:var(--space-4);display:block}.rcs-form-label{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1);margin-bottom:var(--space-2);display:block}.rcs-form-required{color:var(--danger);margin-left:2px}.rcs-form-optional{color:var(--fg-4);margin-left:4px;font-weight:400}.rcs-form-hint{color:var(--fg-3);margin-top:6px;font-size:12px;display:block}.rcs-form-error{color:var(--danger);font-size:12px;font-family:var(--font-mono);margin-top:6px;display:block}.rcs-checkbox,.rcs-radio{align-items:flex-start;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-flex}.rcs-checkbox input,.rcs-radio input{appearance:none;border:1.5px solid var(--border-3);background:var(--bg-1);cursor:pointer;width:16px;height:16px;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0;place-items:center;margin:1px 0 0;display:inline-grid}.rcs-checkbox input{border-radius:3px}.rcs-radio input{border-radius:50%}.rcs-checkbox input:checked,.rcs-radio input:checked{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:checked:after{content:"";border-left:1.75px solid var(--fg-inverse);border-bottom:1.75px solid var(--fg-inverse);width:9px;height:5px;transform:rotate(-45deg)translate(1px,-1px)}.rcs-checkbox input:indeterminate{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:indeterminate:after{content:"";background:var(--fg-inverse);width:8px;height:1.75px}.rcs-radio input:checked:after{content:"";background:var(--fg-inverse);border-radius:50%;width:6px;height:6px}.rcs-checkbox-label,.rcs-radio-label{line-height:1.4}.rcs-checkbox-desc,.rcs-radio-desc{color:var(--fg-3);margin-top:2px;font-size:12px;display:block}.rcs-radio-group{gap:var(--space-4);display:inline-flex}.rcs-radio-group--vertical{flex-direction:column}.rcs-switch{align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex}.rcs-switch-track{background:var(--bg-3);border-radius:var(--radius-full);width:32px;height:18px;transition:background var(--dur-fast) var(--ease-out-quart);position:relative}.rcs-switch-thumb{width:14px;height:14px;transition:transform var(--dur-fast) var(--ease-out-quart);box-shadow:var(--shadow-xs);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.rcs-switch[data-checked=true] .rcs-switch-track{background:var(--accent)}.rcs-switch[data-checked=true] .rcs-switch-thumb{transform:translate(14px)}.rcs-switch--xs .rcs-switch-track{width:24px;height:14px}.rcs-switch--xs .rcs-switch-thumb{width:10px;height:10px}.rcs-switch--xs[data-checked=true] .rcs-switch-thumb{transform:translate(10px)}.rcs-switch--lg .rcs-switch-track{width:44px;height:24px}.rcs-switch--lg .rcs-switch-thumb{width:20px;height:20px}.rcs-switch--lg[data-checked=true] .rcs-switch-thumb{transform:translate(20px)}.rcs-switch input{opacity:0;pointer-events:none;position:absolute}.rcs-slider{-webkit-user-select:none;user-select:none;height:32px;padding:12px 0;position:relative}.rcs-slider-track{background:var(--bg-3);border-radius:var(--radius-full);height:4px;position:relative}.rcs-slider-fill{background:var(--accent);border-radius:inherit;height:100%;position:absolute}.rcs-slider-thumb{border:2px solid var(--accent);width:16px;height:16px;box-shadow:var(--shadow-sm);cursor:grab;background:#fff;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.rcs-slider-thumb:active{cursor:grabbing}.rcs-slider-marks{height:16px;color:var(--fg-3);margin-top:8px;font-size:11px;position:relative}.rcs-slider-mark{position:absolute;transform:translate(-50%)}.rcs-select{width:100%;display:inline-block;position:relative}.rcs-select-trigger{align-items:center;gap:var(--space-2);background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);width:100%;min-width:120px;color:var(--fg-1);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart);outline:0;display:inline-flex}.rcs-select-trigger:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-select-trigger[data-status=error]{border-color:var(--danger)}.rcs-select-trigger[disabled]{opacity:.6;cursor:not-allowed}.rcs-select-trigger--xs{height:24px;padding:0 8px;font-size:12px}.rcs-select-trigger--sm{height:28px;padding:0 10px;font-size:13px}.rcs-select-trigger--md{height:32px;padding:0 12px;font-size:14px}.rcs-select-trigger--lg{height:40px;padding:0 14px;font-size:15px}.rcs-select-value{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.rcs-select-placeholder{color:var(--fg-4)}.rcs-select-caret{color:var(--fg-3);transition:transform var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.rcs-select[data-open=true] .rcs-select-caret{transform:rotate(180deg)}.rcs-select-menu{z-index:20;background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-md);box-shadow:var(--elevation-popover);max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}.rcs-select-search{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);width:100%;color:var(--fg-1);outline:0;margin-bottom:4px;padding:6px 8px;font-size:13px}.rcs-select-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;padding:6px 8px;font-size:13px;display:flex}.rcs-select-option:hover,.rcs-select-option[data-active=true]{background:var(--bg-2)}.rcs-select-option[data-selected=true]{background:var(--accent-soft);color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-select-option[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-select-option-desc{color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-select-empty{text-align:center;color:var(--fg-4);padding:12px;font-size:13px}.rcs-combo-tag{background:var(--bg-2);border-radius:var(--radius-xs);align-items:center;gap:4px;margin-right:4px;padding:1px 4px 1px 6px;font-size:12px;display:inline-flex}.rcs-combo-tag-x{cursor:pointer;color:var(--fg-3);background:0 0;border:0;padding:0 2px}.rcs-upload-drop{padding:var(--space-8);border:1.5px dashed var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);text-align:center;cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);flex-direction:column;justify-content:center;align-items:center;display:flex}.rcs-upload-drop:hover,.rcs-upload-drop[data-drag=true]{border-color:var(--accent);background:var(--accent-soft)}.rcs-upload-hint{color:var(--fg-3);margin-top:4px;font-size:12px}.rcs-badge{font-family:var(--font-mono);font-size:11px;font-weight:var(--fw-medium);border-radius:var(--radius-xs);letter-spacing:.02em;text-transform:uppercase;border:1px solid #0000;align-items:center;gap:4px;padding:2px 6px;line-height:1.4;display:inline-flex}.rcs-badge--sm{padding:1px 4px;font-size:10px}.rcs-badge--lg{padding:3px 8px;font-size:12px}.rcs-badge--neutral{background:var(--bg-2);color:var(--fg-2);border-color:var(--border-1)}.rcs-badge--info{color:var(--info);background:#2d73d91a}.rcs-badge--warning{color:var(--warning);background:#d98e2b1f}.rcs-badge--danger{background:var(--accent-soft);color:var(--accent)}.rcs-badge--subtle{background:var(--bg-2);color:var(--fg-3);border-color:var(--border-1)}.rcs-badge--solid{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-badge-x{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:0;padding:0 0 0 2px}.rcs-badge-x:hover{opacity:1}.rcs-status-dot{align-items:center;gap:var(--space-2);color:var(--fg-2);font-size:13px;display:inline-flex}.rcs-status-dot-glyph{background:var(--fg-3);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.rcs-status-dot[data-status=running] .rcs-status-dot-glyph,.rcs-status-dot[data-status=live] .rcs-status-dot-glyph{background:#1f9e5c}.rcs-status-dot[data-status=degraded] .rcs-status-dot-glyph{background:var(--warning)}.rcs-status-dot[data-status=failed] .rcs-status-dot-glyph{background:var(--danger)}.rcs-status-dot[data-status=idle] .rcs-status-dot-glyph,.rcs-status-dot[data-status=stopped] .rcs-status-dot-glyph{background:var(--fg-4)}.rcs-status-dot[data-pulse=true] .rcs-status-dot-glyph{animation:rcs-pulse 1.6s var(--ease-out-quart) infinite;box-shadow:0 0}@keyframes rcs-pulse{0%{box-shadow:0 0 #1f9e5c80}70%{box-shadow:0 0 0 6px #1f9e5c00}to{box-shadow:0 0 #1f9e5c00}}.rcs-card{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-card);transition:border-color var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart)}.rcs-card[data-hoverable=true]:hover{border-color:var(--border-2);box-shadow:var(--elevation-popover);transform:translateY(-1px)}.rcs-card[data-hoverable=true]:active{box-shadow:var(--elevation-card);transform:translateY(0)}.rcs-card-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);justify-content:space-between;align-items:flex-start;display:flex}.rcs-card-title{font-size:15px;font-weight:var(--fw-semibold);color:var(--fg-1)}.rcs-card-subtitle{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-card-extra{flex-shrink:0}.rcs-card-body{padding:var(--space-5)}.rcs-card-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);background:var(--bg-2);border-radius:0 0 var(--radius-md) var(--radius-md)}.rcs-space{display:inline-flex}.rcs-space--vertical{flex-direction:column}.rcs-space--wrap{flex-wrap:wrap}.rcs-space-split{color:var(--border-2);align-self:stretch;align-items:stretch;display:inline-flex}.rcs-divider{background:var(--border-1);border:0}.rcs-divider--horizontal{width:100%;height:1px;margin:var(--space-4) 0}.rcs-divider--vertical{width:1px;height:1em;margin:0 var(--space-3);vertical-align:middle;display:inline-block}.rcs-divider--text{align-items:center;gap:var(--space-3);height:auto;margin:var(--space-4) 0;font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;background:0 0;font-size:11px;display:flex}.rcs-divider--text:before,.rcs-divider--text:after{content:"";background:var(--border-1);flex:1;height:1px}.rcs-divider--dashed{background-image:linear-gradient(to right, var(--border-2) 50%, transparent 50%);background-color:#0000;background-size:8px 1px}.rcs-grid{display:grid}.rcs-scroll{position:relative}.rcs-scroll[data-thin=true]{scrollbar-width:thin}.rcs-tabs{flex-direction:column;display:flex}.rcs-tabs-nav{flex-shrink:0;align-items:center;gap:0;display:flex}.rcs-tabs-tab{align-items:center;gap:var(--space-2);cursor:pointer;font-size:14px;font-weight:var(--fw-medium);color:var(--fg-3);transition:color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;padding:10px 14px;display:inline-flex}.rcs-tabs-tab:hover,.rcs-tabs-tab[data-active=true]{color:var(--fg-1)}.rcs-tabs-tab:active:not([disabled]):not([data-active=true]){transform:translateY(.5px)}.rcs-tabs-tab[disabled]{opacity:.4;cursor:not-allowed}.rcs-tabs--line .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--line .rcs-tabs-tab[data-active=true]{box-shadow:inset 0 -2px 0 0 var(--fg-1)}.rcs-tabs--card .rcs-tabs-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;border:1px solid #0000;margin-bottom:-1px}.rcs-tabs--card .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--card .rcs-tabs-tab[data-active=true]{background:var(--bg-1);border-color:var(--border-1) var(--border-1) var(--bg-1)}.rcs-tabs--segment{background:var(--bg-2);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.rcs-tabs--segment .rcs-tabs-nav{gap:0}.rcs-tabs--segment .rcs-tabs-tab{border-radius:var(--radius-xs);padding:6px 12px}.rcs-tabs--segment .rcs-tabs-tab[data-active=true]{background:var(--bg-1);box-shadow:var(--shadow-xs)}.rcs-tabs--pill .rcs-tabs-tab{border-radius:var(--radius-full);padding:6px 14px}.rcs-tabs--pill .rcs-tabs-tab[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-tabs[data-scrollable=true]{position:relative}.rcs-tabs-nav[data-scrollable=true]{scrollbar-width:none;-ms-overflow-style:none;overflow:auto hidden}.rcs-tabs-nav[data-scrollable=true]::-webkit-scrollbar{display:none}.rcs-tabs-nav[data-scrollable=true] .rcs-tabs-tab{flex-shrink:0}.rcs-tabs[data-scrollable=true]:after{content:"";width:32px;height:var(--rcs-tabs-nav-h,40px);background:linear-gradient(to right, transparent, var(--rcs-tabs-fade-color,var(--bg-0)));pointer-events:none;z-index:1;position:absolute;top:0;right:0}.rcs-tabs-content{flex-direction:column;flex:1;min-height:0;display:flex}.rcs-menu{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);flex-direction:column;min-width:200px;padding:4px;display:flex}.rcs-menu--horizontal{flex-direction:row}.rcs-menu-item{align-items:center;gap:var(--space-2);cursor:pointer;border-radius:var(--radius-sm);color:var(--fg-1);padding:6px 8px;font-size:13px;display:flex}.rcs-menu-item:hover{background:var(--bg-2)}.rcs-menu-item[data-selected=true]{background:var(--accent-soft)}.rcs-menu-item[data-destructive=true]{color:var(--danger)}.rcs-menu-item[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-menu-item-shortcut{font-family:var(--font-mono);color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-menu-separator{background:var(--border-1);height:1px;margin:4px 0}.rcs-menu-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;padding:4px 8px;font-size:10px}.rcs-breadcrumb{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-breadcrumb a{color:var(--fg-2)}.rcs-breadcrumb a:hover{color:var(--fg-1)}.rcs-breadcrumb-item--last{color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-breadcrumb-sep{color:var(--fg-4)}.rcs-pagination{align-items:center;gap:4px;font-size:13px;display:inline-flex}.rcs-pagination-btn{min-width:28px;height:28px;color:var(--fg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;padding:0 8px;font-size:13px}.rcs-pagination-btn:hover:not(:disabled){border-color:var(--border-3);color:var(--fg-1)}.rcs-pagination-btn[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-pagination-btn:disabled{opacity:.4;cursor:not-allowed}.rcs-pagination-ellipsis{color:var(--fg-4);padding:0 6px}.rcs-steps{gap:0;display:flex}.rcs-steps--vertical{flex-direction:column}.rcs-step{align-items:flex-start;gap:var(--space-2);padding:0 var(--space-3);flex:1;display:flex;position:relative}.rcs-step:not(:last-child):after{content:"";top:12px;left:calc(24px + var(--space-3));background:var(--border-2);height:1px;position:absolute;right:0}.rcs-step[data-status=finish]:after{background:var(--bg-inverse)}.rcs-step-marker{width:24px;height:24px;font-size:11px;font-family:var(--font-mono);font-weight:var(--fw-medium);border:1px solid var(--border-2);background:var(--bg-1);color:var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.rcs-step[data-status=process] .rcs-step-marker,.rcs-step[data-status=finish] .rcs-step-marker{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-step[data-status=error] .rcs-step-marker{background:var(--danger);color:#fff;border-color:var(--danger)}.rcs-step-title{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1)}.rcs-step[data-status=wait] .rcs-step-title{color:var(--fg-3)}.rcs-step-desc{color:var(--fg-3);margin-top:2px;font-size:12px}.rcs-alert{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);display:flex}.rcs-alert--info{background:#2d73d90f;border-color:#2d73d933}.rcs-alert--success{background:var(--bg-2);border-color:var(--border-1)}.rcs-alert--warning{background:#d98e2b14;border-color:#d98e2b40}.rcs-alert--danger{background:var(--accent-soft);border-color:var(--accent-soft-2)}.rcs-alert-body{flex:1}.rcs-alert-title{font-weight:var(--fw-semibold);color:var(--fg-1);margin-bottom:2px;font-size:14px}.rcs-alert-content{color:var(--fg-2);font-size:13px;line-height:1.5}.rcs-alert-action{margin-top:8px}.rcs-alert-icon{flex-shrink:0;padding-top:1px;font-size:16px;line-height:1}.rcs-alert-close{cursor:pointer;color:var(--fg-3);background:0 0;border:0;flex-shrink:0;padding:2px;line-height:1}.rcs-alert-close:hover{color:var(--fg-1)}.rcs-modal-backdrop{z-index:100;padding:var(--space-4);animation:rcs-fade-in var(--dur-base) var(--ease-out-quart);background:#0006;place-items:center;display:grid;position:fixed;inset:0}.rcs-modal{background:var(--bg-1);color:var(--fg-1);border-radius:var(--radius-lg);box-shadow:var(--elevation-modal);width:100%;max-width:520px;max-height:90vh;animation:rcs-pop-in var(--dur-base) var(--ease-out-quart);flex-direction:column;display:flex}.rcs-modal--xs{max-width:360px}.rcs-modal--sm{max-width:440px}.rcs-modal--md{max-width:520px}.rcs-modal--lg{max-width:720px}.rcs-modal--fullscreen{border-radius:0;max-width:100vw;height:100vh;max-height:100vh}.rcs-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);flex-shrink:0}.rcs-modal-title{font-size:17px;font-weight:var(--fw-semibold);margin:0}.rcs-modal-desc{color:var(--fg-3);margin-top:4px;font-size:13px}.rcs-modal-body{padding:var(--space-5);flex:1;min-height:0;overflow:auto}.rcs-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);justify-content:flex-end;gap:var(--space-2);flex-shrink:0;display:flex}@keyframes rcs-fade-in{0%{opacity:0}}@keyframes rcs-pop-in{0%{opacity:0;transform:scale(.96)translateY(8px)}}.rcs-drawer{background:var(--bg-1);color:var(--fg-1);z-index:101;box-shadow:var(--elevation-modal);flex-direction:column;display:flex;position:fixed}.rcs-drawer--right{height:100dvh;top:0;right:0}.rcs-drawer--left{height:100dvh;top:0;left:0}.rcs-drawer--top{width:100dvw;top:0;left:0}.rcs-drawer--bottom{width:100dvw;bottom:0;left:0}.rcs-progress{display:block}.rcs-progress-track{background:var(--bg-3);border-radius:var(--radius-full);width:100%;height:6px;overflow:hidden}.rcs-progress-fill{background:var(--bg-inverse);border-radius:inherit;height:100%;transition:width var(--dur-base) var(--ease-out-quart)}.rcs-progress[data-tone=danger] .rcs-progress-fill{background:var(--danger)}.rcs-progress[data-tone=warning] .rcs-progress-fill{background:var(--warning)}.rcs-progress--lg .rcs-progress-track{height:8px}.rcs-progress--sm .rcs-progress-track{height:4px}.rcs-progress--xs .rcs-progress-track{height:3px}.rcs-progress[data-indeterminate=true] .rcs-progress-fill{animation:rcs-indeterminate 1.4s var(--ease-in-out) infinite;width:30%!important}@keyframes rcs-indeterminate{0%{transform:translate(-100%)}to{transform:translate(380%)}}.rcs-progress-value{font-family:var(--font-mono);color:var(--fg-3);margin-top:4px;font-size:11px}.rcs-skeleton{background:var(--bg-2);border-radius:var(--radius-sm);display:inline-block;position:relative;overflow:hidden}.rcs-skeleton[data-animated=true]:after{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);animation:1.4s linear infinite rcs-shimmer;position:absolute;inset:0}[data-theme=dark] .rcs-skeleton[data-animated=true]:after,.rcs-skeleton[data-animated=true][data-theme=dark]:after{background:linear-gradient(90deg,#0000,#ffffff0f,#0000)}@keyframes rcs-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.rcs-skeleton--text{border-radius:var(--radius-xs);width:100%;height:1em}.rcs-skeleton--circle{border-radius:50%}.rcs-spin{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-spin-glyph{border:2px solid;border-top-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite rcs-spin}.rcs-spin--xs .rcs-spin-glyph{border-width:1.5px;width:12px;height:12px}.rcs-spin--lg .rcs-spin-glyph{border-width:2.5px;width:24px;height:24px}.rcs-spin[data-tone=danger] .rcs-spin-glyph{color:var(--danger)}.rcs-tooltip{display:inline-block;position:relative}.rcs-tooltip-bubble{z-index:50;background:var(--bg-inverse);color:var(--fg-inverse);border-radius:var(--radius-sm);white-space:nowrap;box-shadow:var(--elevation-popover);pointer-events:none;padding:4px 8px;font-size:12px;position:absolute}.rcs-tooltip-bubble[data-placement=top]{bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=bottom]{top:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=left]{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}.rcs-tooltip-bubble[data-placement=right]{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.rcs-toast-region{bottom:var(--space-5);right:var(--space-5);z-index:200;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:fixed}.rcs-toast{pointer-events:auto;background:var(--bg-1);min-width:260px;max-width:380px;color:var(--fg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-toast);padding:var(--space-3) var(--space-4);gap:var(--space-3);animation:rcs-toast-in var(--dur-base) var(--ease-out-quart);align-items:flex-start;display:flex}@keyframes rcs-toast-in{0%{opacity:0;transform:translateY(8px)}}.rcs-toast-title{font-weight:var(--fw-semibold);font-size:14px}.rcs-toast-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-toast-action{color:var(--accent);cursor:pointer;font-weight:var(--fw-medium);background:0 0;border:0;padding:4px 8px}.rcs-toast-icon{text-align:center;flex-shrink:0;width:20px;font-size:14px;line-height:20px}.rcs-toast--success .rcs-toast-icon{color:var(--brand-gray-800)}.rcs-toast--danger .rcs-toast-icon{color:var(--danger)}.rcs-toast--warning .rcs-toast-icon{color:var(--warning)}.rcs-toast--info .rcs-toast-icon{color:var(--info)}.rcs-table-wrap{border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);overflow:auto}.rcs-table{border-collapse:collapse;width:100%;font-size:13px}.rcs-table thead th{text-align:left;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--fg-3);font-size:11px;font-weight:var(--fw-medium);border-bottom:1px solid var(--border-1);background:var(--bg-2);white-space:nowrap;padding:10px 14px}.rcs-table[data-sticky-header=true] thead th{z-index:1;position:sticky;top:0}.rcs-table tbody td{border-bottom:1px solid var(--border-1);color:var(--fg-1);vertical-align:middle;padding:10px 14px}.rcs-table tbody tr:last-child td{border-bottom:0}.rcs-table[data-density=compact] tbody td{padding:6px 12px}.rcs-table[data-density=comfortable] tbody td{padding:14px 16px}.rcs-table[data-striped=true] tbody tr:nth-child(odd) td{background:var(--bg-2)}.rcs-table[data-bordered=true] th,.rcs-table[data-bordered=true] td{border-right:1px solid var(--border-1)}.rcs-table tbody tr:hover td{background:var(--bg-2);cursor:pointer}.rcs-table-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rcs-table-sortable:after{content:" ↕";color:var(--fg-4)}.rcs-table-sortable[data-sort=asc]:after{content:" ↑";color:var(--fg-1)}.rcs-table-sortable[data-sort=desc]:after{content:" ↓";color:var(--fg-1)}.rcs-table-empty{text-align:center;padding:var(--space-12);color:var(--fg-3);font-size:13px}.rcs-table-align-right{text-align:right}.rcs-table-align-center{text-align:center}.rcs-stat{flex-direction:column;gap:4px;display:flex}.rcs-stat-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;font-size:11px}.rcs-stat-value{font-size:28px;font-weight:var(--fw-semibold);color:var(--fg-1);align-items:baseline;gap:4px;display:flex}.rcs-stat-unit{color:var(--fg-3);font-size:14px;font-weight:var(--fw-regular)}.rcs-stat-delta{font-size:12px;font-family:var(--font-mono);color:var(--fg-3);align-items:center;gap:4px;display:inline-flex}.rcs-stat-delta[data-tone=good]{color:#1f9e5c}.rcs-stat-delta[data-tone=bad]{color:var(--danger)}.rcs-stat-spark{width:80px;height:24px}.rcs-avatar{background:var(--bg-2);color:var(--fg-2);font-weight:var(--fw-medium);border:1px solid var(--border-1);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.rcs-avatar img{object-fit:cover;width:100%;height:100%}.rcs-avatar--circle{border-radius:50%}.rcs-avatar--square{border-radius:var(--radius-sm)}.rcs-avatar-status{background:var(--brand-gray-800);border:2px solid var(--bg-1);border-radius:50%;width:25%;height:25%;position:absolute;bottom:0;right:0}.rcs-timeline{gap:var(--space-4);flex-direction:column;display:flex}.rcs-timeline-item{gap:var(--space-3);display:flex;position:relative}.rcs-timeline-item:not(:last-child):before{content:"";background:var(--border-1);width:1px;position:absolute;top:18px;bottom:-16px;left:7px}.rcs-timeline-marker{background:var(--bg-1);border:2px solid var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;width:14px;height:14px;margin-top:4px}.rcs-timeline-item[data-tone=success] .rcs-timeline-marker{border-color:var(--brand-gray-800);background:var(--brand-gray-800)}.rcs-timeline-item[data-tone=warning] .rcs-timeline-marker{border-color:var(--warning)}.rcs-timeline-item[data-tone=danger] .rcs-timeline-marker{border-color:var(--danger);background:var(--danger)}.rcs-timeline-content{flex:1;padding-bottom:4px}.rcs-timeline-title{font-size:14px;font-weight:var(--fw-medium)}.rcs-timeline-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-timeline-time{font-family:var(--font-mono);color:var(--fg-4);text-transform:uppercase;letter-spacing:.04em;margin-top:4px;font-size:11px;display:block}.rcs-chat{flex-direction:column;height:100%;min-height:0;display:flex}.rcs-chat-messages{padding:var(--space-4);gap:var(--space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.rcs-chat-msg{gap:var(--space-3);display:flex}.rcs-chat-msg--user{flex-direction:row-reverse}.rcs-chat-bubble{max-width:75%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--fg-1);font-size:14px;line-height:1.5}.rcs-chat-msg--user .rcs-chat-bubble{background:var(--bg-inverse);color:var(--fg-inverse);border-bottom-right-radius:4px}.rcs-chat-msg--assistant .rcs-chat-bubble{border-bottom-left-radius:4px}.rcs-chat-msg--system .rcs-chat-bubble{border:1px dashed var(--border-2);font-family:var(--font-mono);color:var(--fg-3);background:0 0;align-self:center;max-width:100%;font-size:12px}.rcs-chat-msg-status{font-family:var(--font-mono);color:var(--fg-4);margin-top:2px;font-size:10px}.rcs-chat-suggestions{padding:0 var(--space-4) var(--space-2);gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-chat-suggestion{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-full);color:var(--fg-2);cursor:pointer;padding:6px 12px;font-size:13px}.rcs-chat-suggestion:hover{background:var(--bg-2);border-color:var(--border-3)}.rcs-chat-composer{gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border-1);background:var(--bg-1);align-items:flex-end;display:flex}.rcs-chat-input{resize:none;border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);color:var(--fg-1);outline:0;flex:1;min-height:40px;max-height:200px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.5}.rcs-chat-input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-codeblock{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-md);overflow:hidden}.rcs-codeblock-header{border-bottom:1px solid var(--border-1);background:var(--bg-1);font-family:var(--font-mono);color:var(--fg-3);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.rcs-codeblock-pre{padding:var(--space-3) var(--space-4);font-family:var(--font-mono);color:var(--fg-1);margin:0;font-size:13px;line-height:1.5;overflow:auto}.rcs-codeblock-pre[data-wrap=true]{white-space:pre-wrap;word-break:break-word}.rcs-codeblock-line{display:flex}.rcs-codeblock-lineno{text-align:right;width:32px;padding-right:var(--space-3);color:var(--fg-4);-webkit-user-select:none;user-select:none;flex-shrink:0;display:inline-block}.rcs-codeblock-line[data-highlight=true]{background:var(--accent-soft);margin:0 calc(-1 * var(--space-4));padding:0 var(--space-4)}.rcs-codeblock-copy{cursor:pointer;color:var(--fg-3);font-family:var(--font-mono);border-radius:var(--radius-xs);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;padding:2px 6px;font-size:11px}.rcs-codeblock-copy:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-markdown{color:var(--fg-1);font-size:14px;line-height:1.65}.rcs-markdown h1{margin:1.2em 0 .5em;font-size:22px}.rcs-markdown h2{margin:1.2em 0 .5em;font-size:18px}.rcs-markdown h3{margin:1em 0 .4em;font-size:15px}.rcs-markdown p{color:var(--fg-2);margin:.6em 0}.rcs-markdown a{color:var(--accent)}.rcs-markdown ul,.rcs-markdown ol{color:var(--fg-2);margin:.6em 0;padding-left:1.4em}.rcs-markdown blockquote{border-left:2px solid var(--border-2);color:var(--fg-3);margin:1em 0;padding:.2em 1em;font-style:italic}.rcs-markdown pre{background:var(--bg-2);padding:var(--space-3);border-radius:var(--radius-sm);overflow:auto}.rcs-markdown code{background:var(--bg-2);border-radius:3px;padding:1px 5px;font-size:.9em}.rcs-markdown--compact{font-size:13px}.rcs-markdown--compact h1{font-size:18px}.rcs-terminal{color:#e5e5e5;border-radius:var(--radius-md);font-family:var(--font-mono);background:#0f0f0f;flex-direction:column;font-size:13px;display:flex;overflow:hidden}.rcs-terminal-tabs{background:#1c1c1c;border-bottom:1px solid #2b2b2b;gap:0;padding:0 8px;display:flex}.rcs-terminal-tab{color:#a6a6a6;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-bottom:1px solid #0000;padding:6px 10px;font-size:11px}.rcs-terminal-tab[data-active=true]{color:#fff;border-bottom-color:var(--accent)}.rcs-terminal-body{padding:var(--space-3);flex:1;overflow:auto}.rcs-terminal-line{padding:1px 0;line-height:1.5}.rcs-terminal-line[data-type=stderr]{color:#ff8585}.rcs-terminal-line[data-type=error]{color:#ff5a5f}.rcs-terminal-line[data-type=warn]{color:#ffb948}.rcs-terminal-line[data-type=info]{color:#62a3ff}.rcs-terminal-line[data-type=debug]{color:#a6a6a6}.rcs-terminal-line[data-type=prompt]{color:#1f9e5c}.rcs-terminal-cursor{vertical-align:text-bottom;background:#e5e5e5;width:7px;height:14px;animation:1s steps(2,end) infinite rcs-blink;display:inline-block}@keyframes rcs-blink{50%{opacity:0}}.rcs-rte{border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);overflow:hidden}.rcs-rte-toolbar{border-bottom:1px solid var(--border-1);background:var(--bg-2);gap:2px;padding:4px 6px;display:flex}.rcs-rte-toolbtn{cursor:pointer;border-radius:var(--radius-xs);color:var(--fg-2);background:0 0;border:0;padding:4px 8px;font-size:13px}.rcs-rte-toolbtn:hover{background:var(--bg-3);color:var(--fg-1)}.rcs-rte-content{padding:var(--space-3);color:var(--fg-1);outline:0;min-height:120px;font-size:14px;line-height:1.6}.rcs-rte-content[data-empty=true]:before{content:attr(data-placeholder);color:var(--fg-4)}.rcs-page-header{--rcs-page-header-py:var(--space-5);--rcs-page-header-px:var(--space-6);--rcs-page-header-title-fs:var(--fs-h3);--rcs-page-header-subtitle-fs:14px;border-bottom:1px solid var(--border-1);padding:var(--rcs-page-header-py) var(--rcs-page-header-px);background:var(--bg-1)}.rcs-page-header--xs{--rcs-page-header-py:var(--space-1\.5);--rcs-page-header-px:var(--space-3);--rcs-page-header-title-fs:15px;--rcs-page-header-subtitle-fs:12px}.rcs-page-header--sm{--rcs-page-header-py:var(--space-2);--rcs-page-header-px:var(--space-4);--rcs-page-header-title-fs:var(--fs-h4);--rcs-page-header-subtitle-fs:13px}.rcs-page-header--lg{--rcs-page-header-py:var(--space-6);--rcs-page-header-px:var(--space-8);--rcs-page-header-title-fs:var(--fs-h2);--rcs-page-header-subtitle-fs:15px}.rcs-page-header--xl{--rcs-page-header-py:var(--space-8);--rcs-page-header-px:var(--space-12);--rcs-page-header-title-fs:var(--fs-h1);--rcs-page-header-subtitle-fs:17px}.rcs-page-header-row{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.rcs-page-header-back{cursor:pointer;color:var(--fg-3);margin-bottom:var(--space-2);font-size:12px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;align-items:center;gap:4px;padding:2px 0;display:inline-flex}.rcs-page-header-back:hover{color:var(--fg-1)}.rcs-page-header-back-inline{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--fg-3);cursor:pointer;transition:background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;display:inline-flex}.rcs-page-header-back-inline:hover{background:var(--bg-2);color:var(--fg-1)}.rcs-page-header-back-inline:active{transform:translateY(.5px)}.rcs-page-header--sm .rcs-page-header-back-inline{width:24px;height:24px;font-size:14px}.rcs-page-header--xs .rcs-page-header-back-inline{width:22px;height:22px;font-size:13px}.rcs-page-header--xs .rcs-page-header-title{gap:var(--space-2)}.rcs-page-header-title{align-items:center;gap:var(--space-3);min-width:0;display:flex}.rcs-page-header-title h1{font-size:var(--rcs-page-header-title-fs);font-family:var(--font-display);font-weight:var(--fw-semibold);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";margin:0}.rcs-page-header-subtitle{font-size:var(--rcs-page-header-subtitle-fs);color:var(--fg-3);margin-top:4px}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-title-text{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle{margin-top:0}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle:before{content:"·";margin-right:var(--space-2);color:var(--fg-4)}.rcs-page-header-actions{gap:var(--space-2);flex-shrink:0;display:flex}.rcs-page-header-tabs{margin-top:var(--space-4);margin-bottom:calc(-1 * (var(--rcs-page-header-py) + var(--border-thin)))}.rcs-app-shell{background:var(--bg-0);grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.rcs-app-shell-body{min-height:0;display:grid}.rcs-app-shell-body[data-has-sidebar=true]{grid-template-columns:var(--rcs-sidebar-w,240px) 1fr}.rcs-app-shell-sidebar{border-right:1px solid var(--border-1);background:var(--bg-1);overflow:auto}.rcs-app-shell-main{min-width:0;overflow:auto}.rcs-app-shell-header{border-bottom:1px solid var(--border-1);background:var(--bg-1)}.rcs-app-shell-footer{border-top:1px solid var(--border-1);background:var(--bg-1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--bg-base:#000;--bg-nav:#0a0a0a;--bg-panel:#0f0f0f;--bg-card:#0a0a0a;--bg-input:#050505;--border:#1f1f1f;--border-hover:#2a2a2a;--border-strong:#333;--text-primary:#fff;--text-secondary:#ccc;--text-muted:#666;--text-dim:#444;--text-faint:#333;--nav-active-bg:#1a1a1a;--nav-active-border:#2a2a2a;--nav-active-text:#fff;--nav-inactive-text:#666;--color-accent:#38bdf8;--color-accent-hover:#0ea5e9;--accent-error:#f44;--color-warn:#fb923c;--color-success:#4ade80;--code-bg:#050505;--code-text:#ccc;--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:#38bdf833}[data-theme=light]{--bg-base:#f5f5f5;--bg-nav:#fff;--bg-panel:#fff;--bg-card:#f0f0f0;--bg-input:#f8f8f8;--border:#e5e5e5;--border-hover:#d0d0d0;--border-strong:#bbb;--text-primary:#111;--text-secondary:#333;--text-muted:#777;--text-dim:#aaa;--text-faint:#bbb;--nav-active-bg:#ebebeb;--nav-active-border:#d0d0d0;--nav-active-text:#111;--nav-inactive-text:#777;--color-accent:#0ea5e9;--color-accent-hover:#0284c7;--accent-error:#c22;--color-warn:#ea580c;--color-success:#16a34a;--code-bg:#0a0a0a;--code-text:#ccc;--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:#0ea5e933}[data-theme=dark] .icon-sun{display:flex}[data-theme=dark] .icon-moon,[data-theme=light] .icon-sun{display:none}[data-theme=light] .icon-moon{display:flex}[data-radix-popper-content-wrapper]{z-index:100!important}html,body{background:var(--bg-base);height:100%;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;overflow:hidden}#root{flex-direction:column;height:100%;display:flex}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-base)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}code{background:var(--bg-card);color:var(--text-secondary);border-radius:3px;padding:1px 5px;font-family:SF Mono,ui-monospace,monospace}.top-nav{background:var(--bg-nav);border-bottom:1px solid var(--border);z-index:10;flex-shrink:0;align-items:center;gap:.25rem;height:48px;padding:0 1rem;display:flex;position:relative;overflow-x:auto}.top-nav::-webkit-scrollbar{height:0}.logo{border-right:1px solid var(--border);color:inherit;flex-shrink:0;align-items:center;gap:.5rem;margin-right:.25rem;padding-right:1rem;text-decoration:none;display:flex}.logo-mark{letter-spacing:.12em;color:var(--text-primary);font-size:.7rem;font-weight:700}.logo-ver{color:var(--text-faint);letter-spacing:.02em;margin-left:2px;font-family:ui-monospace,monospace;font-size:.6rem}.nav-link{cursor:pointer;color:var(--nav-inactive-text);background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;align-items:center;gap:.35rem;padding:.3rem .7rem;font-family:inherit;font-size:.78rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.nav-link:hover{color:var(--text-secondary);background:var(--nav-active-bg)}.nav-link.active{color:var(--nav-active-text);background:var(--nav-active-bg);border-color:var(--nav-active-border)}.theme-btn{width:32px;height:32px;color:var(--text-dim);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;margin-left:.25rem;transition:all .15s;display:flex}.theme-btn:hover{border-color:var(--border-hover);color:var(--text-muted)}.status-bar{background:var(--bg-nav);border-top:1px solid var(--border);height:24px;color:var(--text-muted);flex-shrink:0;align-items:center;gap:14px;padding:0 18px;font-size:10px;display:flex}.status-item{align-items:center;gap:4px;display:flex}.status-key{background:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);border-radius:3px;padding:0 4px;font-family:SF Mono,ui-monospace,monospace;font-size:9px;font-weight:600}.main-content{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:1rem;transition:border-color .15s}.card:hover{border-color:var(--border-hover)}.badge{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-card);border:1px solid var(--border);color:var(--text-dim);border-radius:5px;align-items:center;padding:.15rem .5rem;font-size:.62rem;font-weight:600;display:inline-flex}.badge-green{color:#6ee7b7;background:#064e3b;border-color:#10b981}.badge-blue{border-color:var(--syntax-num);color:#a5f3fc;background:#0c4a6e}.badge-purple{border-color:var(--syntax-key);color:#c7d7fe;background:#1e1b4b}.badge-orange{border-color:var(--color-warn);color:#fed7aa;background:#451a03}.badge-red{color:#fecaca;background:#3f1014;border-color:#ef4444}.search-wrap{flex:1;max-width:600px;position:relative}.search-wrap svg{opacity:.4;pointer-events:none;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.search-input{background:var(--bg-input);width:100%;color:var(--text-primary);border:1px solid var(--border);border-radius:8px;outline:none;padding:6px 10px 6px 30px;font-family:SF Mono,ui-monospace,monospace;font-size:12px;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--accent-glow)}.search-input::placeholder{color:var(--text-muted)}.mode-pill{cursor:pointer;border:1px solid var(--border);color:var(--text-muted);background:0 0;border-radius:6px;padding:.3rem .75rem;font-family:inherit;font-size:.75rem;font-weight:600;transition:all .15s}.mode-pill.active{background:var(--nav-active-bg);border-color:var(--color-accent);color:var(--color-accent)}.mode-pill:hover:not(.active){background:var(--nav-active-bg);color:var(--text-secondary)}.mcp-view{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.mc-status-bar{background:var(--bg-panel);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.75rem;padding:.6rem 1.25rem;display:flex}.mc-badge{letter-spacing:.08em;background:var(--bg-card);color:var(--text-dim);border:1px solid var(--border);border-radius:4px;padding:.2rem .55rem;font-family:ui-monospace,monospace;font-size:.65rem;font-weight:600}.mc-btn-icon{border:1px solid var(--border);background:var(--bg-card);height:30px;color:var(--text-dim);cursor:pointer;border-radius:6px;align-items:center;gap:.3rem;padding:0 .6rem;font-family:inherit;font-size:.72rem;transition:all .15s;display:flex}.mc-btn-icon:hover{border-color:var(--border-hover);color:var(--text-muted)}.mc-tool-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;flex-direction:column;padding:.9rem;transition:border-color .15s,box-shadow .15s;display:flex;position:relative;overflow:hidden}.mc-tool-card:hover{border-color:var(--border-hover);box-shadow:0 0 12px #ffffff08}.mc-param-tag{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.12rem .35rem;font-family:ui-monospace,monospace;font-size:.62rem}.mc-param-req{border-color:var(--border-hover);color:var(--text-secondary)}.mc-param-opt{color:var(--text-dim)}.mc-btn-call{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-hover);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:inherit;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-call:hover{background:var(--bg-panel);color:var(--text-primary);border-color:var(--border-strong)}.mc-btn-rpc{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:ui-monospace,monospace;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-rpc:hover{background:var(--bg-panel);color:var(--text-secondary)}.mc-overlay{z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000bf;position:fixed;inset:0}.mc-modal{border:1px solid var(--border-hover);background:var(--bg-panel);border-radius:14px;position:relative;box-shadow:0 24px 64px #0009}.mc-code{color:var(--code-text);border:1px solid var(--border);background:#050505;border-radius:8px;font-family:ui-monospace,monospace;font-size:.75rem}.mc-textarea{color:#86efac;border:1px solid var(--border);resize:none;background:#050505;border-radius:8px;outline:none;width:100%;padding:.6rem .75rem;font-family:ui-monospace,monospace;font-size:.74rem;transition:border-color .15s}.mc-textarea:focus{border-color:var(--border-hover)}.mc-send-btn{background:var(--text-primary);width:100%;color:var(--bg-base);cursor:pointer;border:none;border-radius:8px;padding:.6rem;font-family:inherit;font-size:.82rem;font-weight:700;transition:opacity .15s}.mc-send-btn:hover{opacity:.85}.mc-send-btn:disabled{opacity:.4;cursor:not-allowed}.mc-copy-btn{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:5px;align-items:center;gap:.35rem;padding:.25rem .6rem;font-family:inherit;font-size:.72rem;transition:all .12s;display:flex}.mc-copy-btn:hover{color:var(--text-secondary);border-color:var(--border-hover)}[data-radix-tabs-trigger][data-state=active]{color:var(--text-primary)!important;border-bottom-color:var(--color-accent)!important}[data-radix-tabs-trigger]{outline:none}[data-radix-tabs-trigger]:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent)}.stats{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.stat{border:1px solid var(--border);background:var(--bg-card);border-radius:8px;flex-direction:column;justify-content:center;min-width:72px;padding:.35rem .55rem;display:flex}.stat-val{color:var(--text-primary);font-size:.85rem;font-weight:700;line-height:1}.stat-lbl{text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-top:.18rem;font-size:.62rem}@keyframes mc-ping{75%,to{opacity:0;transform:scale(2)}}.traces-layout{flex:1;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1rem;min-height:0;display:grid;overflow:hidden}@media (width<=860px){.traces-layout{grid-template-rows:auto 1fr;grid-template-columns:1fr;overflow:auto}}.traces-right-col{grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;min-height:0;display:grid;overflow:hidden}.stats-bar{font-size:10px;font-family:var(--font-mono,monospace);color:var(--text-muted);align-items:center;gap:14px;display:flex}.stats-bar b{color:var(--text-primary)}.stats-bar .stat-error{color:#ef4444}.stats-bar .stat-healthy{color:#22c55e}.ws-dot{border-radius:50%;width:6px;height:6px;display:inline-block}.ws-dot.connected{background:#22c55e}.ws-dot.disconnected{background:#ef4444}.service-map-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.service-map-toolbar{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 16px;display:flex}.service-map-body{flex:1;display:flex;overflow:hidden}.service-map-canvas{flex:1;min-height:0;position:relative}.edge-slider{color:var(--text-muted);align-items:center;gap:6px;font-size:10px;display:flex}.edge-slider input[type=range]{width:120px;accent-color:var(--color-accent)}.zoom-controls{gap:4px;display:flex}.zoom-btn{border:1px solid var(--border);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:flex}.zoom-btn:hover{border-color:var(--border-hover);color:var(--text-primary)}.side-panel{border-left:1px solid var(--border);background:var(--bg-card);flex-shrink:0;width:280px;padding:12px;overflow-y:auto} +@font-face{font-family:Bricolage Grotesque;font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap;src:url(/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2)format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/GeistMono-Variable-BNLlm6Cd.woff2)format("woff2")}:root{--font-display:"Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-sans:"Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs-display:64px;--lh-display:1.02;--ls-display:-.035em;--fs-h1:44px;--lh-h1:1.06;--ls-h1:-.028em;--fs-h2:32px;--lh-h2:1.12;--ls-h2:-.022em;--fs-h3:22px;--lh-h3:1.25;--ls-h3:-.014em;--fs-h4:17px;--lh-h4:1.35;--ls-h4:-.008em;--fs-body:15px;--lh-body:1.55;--ls-body:0;--fs-small:13px;--lh-small:1.5;--ls-small:0;--fs-micro:11px;--lh-micro:1.4;--ls-micro:.04em;--fs-code:13.5px;--lh-code:1.55;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--space-0:0;--space-1:4px;--space-1\.5:6px;--space-2:8px;--space-2\.5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--container-narrow:640px;--container:960px;--container-wide:1280px;--container-full:1536px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-2xl:16px;--radius-full:9999px;--border-thin:1px;--border-medium:1.5px;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--dur-instant:80ms;--dur-fast:.14s;--dur-base:.22s;--dur-slow:.38s;--elevation-card:var(--shadow-sm);--elevation-popover:var(--shadow-md);--elevation-modal:var(--shadow-lg);--elevation-toast:var(--shadow-lg);--inset-highlight:inset 0 1px 0 #ffffff0f;--inset-shade:inset 0 -1px 0 #0000001f;--brand-red-50:#fff0f0;--brand-red-100:#ffd6d6;--brand-red-200:#ffa8a8;--brand-red-300:#ff6b6b;--brand-red-400:#ff2e2e;--brand-red-500:#e60000;--brand-red-600:#c20000;--brand-red-700:#9e0000;--brand-red-800:#7a0000;--brand-red-900:#520000;--brand-gray-50:#f5f5f5;--brand-gray-100:#e5e5e5;--brand-gray-200:#ccc;--brand-gray-300:#a6a6a6;--brand-gray-400:gray;--brand-gray-500:#5a5a5a;--brand-gray-600:#3d3d3d;--brand-gray-700:#2b2b2b;--brand-gray-800:#1c1c1c;--brand-gray-900:#0f0f0f;--amber-500:#ffb948;--red-500:#ff5a5f;--blue-500:#3d8cff;--pink-500:#ff5ca8}:root,[data-theme=light]{--bg-0:#fff;--bg-1:#fff;--bg-2:#f5f5f5;--bg-3:#e5e5e5;--bg-inverse:#1c1c1c;--fg-1:#1c1c1c;--fg-2:#3d3d3d;--fg-3:#4f4f4f;--fg-4:#a6a6a6;--fg-inverse:#fff;--border-1:#1c1c1c14;--border-2:#1c1c1c24;--border-3:#1c1c1c3d;--accent:#e60000;--accent-hover:#c20000;--accent-press:#9e0000;--accent-soft:#e6000014;--accent-soft-2:#e6000029;--accent-fg:#fff;--success:#1c1c1c;--warning:#d98e2b;--danger:#e60000;--info:#2d73d9;--shadow-xs:0 1px 1px #1c1c1c0a;--shadow-sm:0 1px 2px #1c1c1c0f, 0 1px 1px #1c1c1c0a;--shadow-md:0 4px 12px #1c1c1c12, 0 1px 2px #1c1c1c0a;--shadow-lg:0 12px 32px #1c1c1c1a, 0 2px 6px #1c1c1c0d;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#1c1c1c0a}[data-theme=dark]{--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}}html{font-family:var(--font-sans);color:var(--fg-1);background:var(--bg-0)}body{font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt", "liga", "kern"}.rcs-display,h1.display{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1)}h1,.rcs-h1{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h2,.rcs-h2{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h3,.rcs-h3{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--ls-h3);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h4,.rcs-h4{font-weight:var(--fw-medium);font-size:var(--fs-h4);line-height:var(--lh-h4);letter-spacing:var(--ls-h4);color:var(--fg-1);margin:0}p,.rcs-body{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--fg-2);margin:0}.rcs-small,small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--fg-3)}.rcs-micro,.rcs-label{font-family:var(--font-mono);font-size:var(--fs-micro);line-height:var(--lh-micro);letter-spacing:var(--ls-micro);text-transform:uppercase;color:var(--fg-3);font-weight:var(--fw-medium)}code,kbd,samp,pre,.rcs-code{font-family:var(--font-mono);font-size:var(--fs-code);line-height:var(--lh-code);font-feature-settings:"zero", "tnum";font-variant-numeric:tabular-nums slashed-zero}.rcs-stat-value,.rcs-stat-delta,.rcs-micro,.rcs-label{font-variant-numeric:tabular-nums}code:not(pre code){background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-xs);color:var(--fg-1);padding:1px 5px;font-size:.92em}a{color:var(--accent);transition:opacity var(--dur-fast) var(--ease-out-quart);text-decoration:none}a:hover{opacity:.75}::selection{background:var(--accent-soft-2);color:var(--fg-1)}:focus-visible{box-shadow:var(--shadow-focus);border-radius:var(--radius-sm);outline:none}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.rcs-button,.rcs-input,.rcs-textarea,.rcs-select-trigger{font-family:var(--font-sans)}.rcs-button{justify-content:center;align-items:center;gap:var(--space-2);font-weight:var(--fw-medium);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);border:1px solid #0000;display:inline-flex}.rcs-button:disabled,.rcs-button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.rcs-button:active:not(:disabled){transform:translateY(.5px)}.rcs-button--primary:focus-visible,.rcs-button--danger:focus-visible{box-shadow:var(--inset-highlight), var(--inset-shade), var(--shadow-focus)}.rcs-button--xs{border-radius:var(--radius-sm);height:24px;padding:0 8px;font-size:12px}.rcs-button--sm{border-radius:var(--radius-sm);height:28px;padding:0 10px;font-size:13px}.rcs-button--md{border-radius:var(--radius-sm);height:32px;padding:0 12px;font-size:14px}.rcs-button--lg{border-radius:var(--radius-md);height:40px;padding:0 16px;font-size:15px}.rcs-button--pill{border-radius:var(--radius-full)}.rcs-button--square{aspect-ratio:1;padding:0}.rcs-button--circle{aspect-ratio:1;border-radius:var(--radius-full);padding:0}.rcs-button--block{width:100%}.rcs-button--primary{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--primary:hover:not(:disabled){background:var(--brand-gray-700);border-color:var(--brand-gray-700)}.rcs-button--secondary{background:var(--bg-1);color:var(--fg-1);border-color:var(--border-2)}.rcs-button--secondary:hover:not(:disabled){background:var(--bg-2);border-color:var(--border-3)}.rcs-button--ghost{color:var(--fg-1);background:0 0;border-color:#0000}.rcs-button--ghost:hover:not(:disabled){background:var(--bg-2)}.rcs-button--danger{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--danger:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.rcs-button--link{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0}.rcs-button--link:hover:not(:disabled){opacity:.75}.rcs-button-spinner{border:1.5px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite rcs-spin}@keyframes rcs-spin{to{transform:rotate(360deg)}}.rcs-button-group{display:inline-flex}.rcs-button-group--vertical{flex-direction:column}.rcs-button-group--attached .rcs-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.rcs-button-group--attached .rcs-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;margin-left:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.rcs-input-wrap{background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);align-items:center;width:100%;display:flex}.rcs-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-input-wrap[data-status=error]{border-color:var(--danger)}.rcs-input-wrap[data-status=warning]{border-color:var(--warning)}.rcs-input-wrap[data-status=success]{border-color:var(--brand-gray-800)}.rcs-input-wrap[data-disabled=true]{opacity:.6;cursor:not-allowed;background:var(--bg-2)}.rcs-input-wrap--xs{height:24px;padding:0 8px;font-size:12px}.rcs-input-wrap--sm{height:28px;padding:0 10px;font-size:13px}.rcs-input-wrap--md{height:32px;padding:0 12px;font-size:14px}.rcs-input-wrap--lg{height:40px;padding:0 14px;font-size:15px}.rcs-input{min-width:0;color:var(--fg-1);font-family:inherit;font-size:inherit;background:0 0;border:0;outline:0;flex:1}.rcs-input::placeholder{color:var(--fg-4)}.rcs-input-wrap>.rcs-input:focus,.rcs-input-wrap>.rcs-input:focus-visible{box-shadow:none;border-radius:inherit}@media (width<=768px),(pointer:coarse){.rcs-input-wrap--xs,.rcs-input-wrap--sm,.rcs-input-wrap--md,.rcs-input-wrap--lg,.rcs-textarea{font-size:16px}}.rcs-input-affix{color:var(--fg-3);align-items:center;display:inline-flex}.rcs-input-affix--left{margin-right:var(--space-2)}.rcs-input-affix--right{margin-left:var(--space-2)}.rcs-input-clear{cursor:pointer;color:var(--fg-3);border-radius:var(--radius-xs);background:0 0;border:0;padding:2px;line-height:1}.rcs-input-clear:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-textarea{background:var(--bg-1);width:100%;color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);resize:vertical;outline:0;font-family:inherit;font-size:14px;line-height:1.55;display:block}.rcs-textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-textarea-count{text-align:right;font-family:var(--font-mono);color:var(--fg-4);margin-top:4px;font-size:11px;display:block}.rcs-pin{gap:var(--space-2);display:inline-flex}.rcs-pin-cell{text-align:center;width:36px;height:40px;font-family:var(--font-mono);background:var(--bg-1);color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);outline:0;font-size:16px}.rcs-pin-cell:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-form-field{margin-bottom:var(--space-4);display:block}.rcs-form-label{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1);margin-bottom:var(--space-2);display:block}.rcs-form-required{color:var(--danger);margin-left:2px}.rcs-form-optional{color:var(--fg-4);margin-left:4px;font-weight:400}.rcs-form-hint{color:var(--fg-3);margin-top:6px;font-size:12px;display:block}.rcs-form-error{color:var(--danger);font-size:12px;font-family:var(--font-mono);margin-top:6px;display:block}.rcs-checkbox,.rcs-radio{align-items:flex-start;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-flex}.rcs-checkbox input,.rcs-radio input{appearance:none;border:1.5px solid var(--border-3);background:var(--bg-1);cursor:pointer;width:16px;height:16px;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0;place-items:center;margin:1px 0 0;display:inline-grid}.rcs-checkbox input{border-radius:3px}.rcs-radio input{border-radius:50%}.rcs-checkbox input:checked,.rcs-radio input:checked{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:checked:after{content:"";border-left:1.75px solid var(--fg-inverse);border-bottom:1.75px solid var(--fg-inverse);width:9px;height:5px;transform:rotate(-45deg)translate(1px,-1px)}.rcs-checkbox input:indeterminate{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:indeterminate:after{content:"";background:var(--fg-inverse);width:8px;height:1.75px}.rcs-radio input:checked:after{content:"";background:var(--fg-inverse);border-radius:50%;width:6px;height:6px}.rcs-checkbox-label,.rcs-radio-label{line-height:1.4}.rcs-checkbox-desc,.rcs-radio-desc{color:var(--fg-3);margin-top:2px;font-size:12px;display:block}.rcs-radio-group{gap:var(--space-4);display:inline-flex}.rcs-radio-group--vertical{flex-direction:column}.rcs-switch{align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex}.rcs-switch-track{background:var(--bg-3);border-radius:var(--radius-full);width:32px;height:18px;transition:background var(--dur-fast) var(--ease-out-quart);position:relative}.rcs-switch-thumb{width:14px;height:14px;transition:transform var(--dur-fast) var(--ease-out-quart);box-shadow:var(--shadow-xs);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.rcs-switch[data-checked=true] .rcs-switch-track{background:var(--accent)}.rcs-switch[data-checked=true] .rcs-switch-thumb{transform:translate(14px)}.rcs-switch--xs .rcs-switch-track{width:24px;height:14px}.rcs-switch--xs .rcs-switch-thumb{width:10px;height:10px}.rcs-switch--xs[data-checked=true] .rcs-switch-thumb{transform:translate(10px)}.rcs-switch--lg .rcs-switch-track{width:44px;height:24px}.rcs-switch--lg .rcs-switch-thumb{width:20px;height:20px}.rcs-switch--lg[data-checked=true] .rcs-switch-thumb{transform:translate(20px)}.rcs-switch input{opacity:0;pointer-events:none;position:absolute}.rcs-slider{-webkit-user-select:none;user-select:none;height:32px;padding:12px 0;position:relative}.rcs-slider-track{background:var(--bg-3);border-radius:var(--radius-full);height:4px;position:relative}.rcs-slider-fill{background:var(--accent);border-radius:inherit;height:100%;position:absolute}.rcs-slider-thumb{border:2px solid var(--accent);width:16px;height:16px;box-shadow:var(--shadow-sm);cursor:grab;background:#fff;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.rcs-slider-thumb:active{cursor:grabbing}.rcs-slider-marks{height:16px;color:var(--fg-3);margin-top:8px;font-size:11px;position:relative}.rcs-slider-mark{position:absolute;transform:translate(-50%)}.rcs-select{width:100%;display:inline-block;position:relative}.rcs-select-trigger{align-items:center;gap:var(--space-2);background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);width:100%;min-width:120px;color:var(--fg-1);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart);outline:0;display:inline-flex}.rcs-select-trigger:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-select-trigger[data-status=error]{border-color:var(--danger)}.rcs-select-trigger[disabled]{opacity:.6;cursor:not-allowed}.rcs-select-trigger--xs{height:24px;padding:0 8px;font-size:12px}.rcs-select-trigger--sm{height:28px;padding:0 10px;font-size:13px}.rcs-select-trigger--md{height:32px;padding:0 12px;font-size:14px}.rcs-select-trigger--lg{height:40px;padding:0 14px;font-size:15px}.rcs-select-value{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.rcs-select-placeholder{color:var(--fg-4)}.rcs-select-caret{color:var(--fg-3);transition:transform var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.rcs-select[data-open=true] .rcs-select-caret{transform:rotate(180deg)}.rcs-select-menu{z-index:20;background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-md);box-shadow:var(--elevation-popover);max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}.rcs-select-search{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);width:100%;color:var(--fg-1);outline:0;margin-bottom:4px;padding:6px 8px;font-size:13px}.rcs-select-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;padding:6px 8px;font-size:13px;display:flex}.rcs-select-option:hover,.rcs-select-option[data-active=true]{background:var(--bg-2)}.rcs-select-option[data-selected=true]{background:var(--accent-soft);color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-select-option[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-select-option-desc{color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-select-empty{text-align:center;color:var(--fg-4);padding:12px;font-size:13px}.rcs-combo-tag{background:var(--bg-2);border-radius:var(--radius-xs);align-items:center;gap:4px;margin-right:4px;padding:1px 4px 1px 6px;font-size:12px;display:inline-flex}.rcs-combo-tag-x{cursor:pointer;color:var(--fg-3);background:0 0;border:0;padding:0 2px}.rcs-upload-drop{padding:var(--space-8);border:1.5px dashed var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);text-align:center;cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);flex-direction:column;justify-content:center;align-items:center;display:flex}.rcs-upload-drop:hover,.rcs-upload-drop[data-drag=true]{border-color:var(--accent);background:var(--accent-soft)}.rcs-upload-hint{color:var(--fg-3);margin-top:4px;font-size:12px}.rcs-badge{font-family:var(--font-mono);font-size:11px;font-weight:var(--fw-medium);border-radius:var(--radius-xs);letter-spacing:.02em;text-transform:uppercase;border:1px solid #0000;align-items:center;gap:4px;padding:2px 6px;line-height:1.4;display:inline-flex}.rcs-badge--sm{padding:1px 4px;font-size:10px}.rcs-badge--lg{padding:3px 8px;font-size:12px}.rcs-badge--neutral{background:var(--bg-2);color:var(--fg-2);border-color:var(--border-1)}.rcs-badge--info{color:var(--info);background:#2d73d91a}.rcs-badge--warning{color:var(--warning);background:#d98e2b1f}.rcs-badge--danger{background:var(--accent-soft);color:var(--accent)}.rcs-badge--subtle{background:var(--bg-2);color:var(--fg-3);border-color:var(--border-1)}.rcs-badge--solid{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-badge-x{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:0;padding:0 0 0 2px}.rcs-badge-x:hover{opacity:1}.rcs-status-dot{align-items:center;gap:var(--space-2);color:var(--fg-2);font-size:13px;display:inline-flex}.rcs-status-dot-glyph{background:var(--fg-3);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.rcs-status-dot[data-status=running] .rcs-status-dot-glyph,.rcs-status-dot[data-status=live] .rcs-status-dot-glyph{background:#1f9e5c}.rcs-status-dot[data-status=degraded] .rcs-status-dot-glyph{background:var(--warning)}.rcs-status-dot[data-status=failed] .rcs-status-dot-glyph{background:var(--danger)}.rcs-status-dot[data-status=idle] .rcs-status-dot-glyph,.rcs-status-dot[data-status=stopped] .rcs-status-dot-glyph{background:var(--fg-4)}.rcs-status-dot[data-pulse=true] .rcs-status-dot-glyph{animation:rcs-pulse 1.6s var(--ease-out-quart) infinite;box-shadow:0 0}@keyframes rcs-pulse{0%{box-shadow:0 0 #1f9e5c80}70%{box-shadow:0 0 0 6px #1f9e5c00}to{box-shadow:0 0 #1f9e5c00}}.rcs-card{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-card);transition:border-color var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart)}.rcs-card[data-hoverable=true]:hover{border-color:var(--border-2);box-shadow:var(--elevation-popover);transform:translateY(-1px)}.rcs-card[data-hoverable=true]:active{box-shadow:var(--elevation-card);transform:translateY(0)}.rcs-card-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);justify-content:space-between;align-items:flex-start;display:flex}.rcs-card-title{font-size:15px;font-weight:var(--fw-semibold);color:var(--fg-1)}.rcs-card-subtitle{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-card-extra{flex-shrink:0}.rcs-card-body{padding:var(--space-5)}.rcs-card-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);background:var(--bg-2);border-radius:0 0 var(--radius-md) var(--radius-md)}.rcs-space{display:inline-flex}.rcs-space--vertical{flex-direction:column}.rcs-space--wrap{flex-wrap:wrap}.rcs-space-split{color:var(--border-2);align-self:stretch;align-items:stretch;display:inline-flex}.rcs-divider{background:var(--border-1);border:0}.rcs-divider--horizontal{width:100%;height:1px;margin:var(--space-4) 0}.rcs-divider--vertical{width:1px;height:1em;margin:0 var(--space-3);vertical-align:middle;display:inline-block}.rcs-divider--text{align-items:center;gap:var(--space-3);height:auto;margin:var(--space-4) 0;font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;background:0 0;font-size:11px;display:flex}.rcs-divider--text:before,.rcs-divider--text:after{content:"";background:var(--border-1);flex:1;height:1px}.rcs-divider--dashed{background-image:linear-gradient(to right, var(--border-2) 50%, transparent 50%);background-color:#0000;background-size:8px 1px}.rcs-grid{display:grid}.rcs-scroll{position:relative}.rcs-scroll[data-thin=true]{scrollbar-width:thin}.rcs-tabs{flex-direction:column;display:flex}.rcs-tabs-nav{flex-shrink:0;align-items:center;gap:0;display:flex}.rcs-tabs-tab{align-items:center;gap:var(--space-2);cursor:pointer;font-size:14px;font-weight:var(--fw-medium);color:var(--fg-3);transition:color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;padding:10px 14px;display:inline-flex}.rcs-tabs-tab:hover,.rcs-tabs-tab[data-active=true]{color:var(--fg-1)}.rcs-tabs-tab:active:not([disabled]):not([data-active=true]){transform:translateY(.5px)}.rcs-tabs-tab[disabled]{opacity:.4;cursor:not-allowed}.rcs-tabs--line .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--line .rcs-tabs-tab[data-active=true]{box-shadow:inset 0 -2px 0 0 var(--fg-1)}.rcs-tabs--card .rcs-tabs-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;border:1px solid #0000;margin-bottom:-1px}.rcs-tabs--card .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--card .rcs-tabs-tab[data-active=true]{background:var(--bg-1);border-color:var(--border-1) var(--border-1) var(--bg-1)}.rcs-tabs--segment{background:var(--bg-2);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.rcs-tabs--segment .rcs-tabs-nav{gap:0}.rcs-tabs--segment .rcs-tabs-tab{border-radius:var(--radius-xs);padding:6px 12px}.rcs-tabs--segment .rcs-tabs-tab[data-active=true]{background:var(--bg-1);box-shadow:var(--shadow-xs)}.rcs-tabs--pill .rcs-tabs-tab{border-radius:var(--radius-full);padding:6px 14px}.rcs-tabs--pill .rcs-tabs-tab[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-tabs[data-scrollable=true]{position:relative}.rcs-tabs-nav[data-scrollable=true]{scrollbar-width:none;-ms-overflow-style:none;overflow:auto hidden}.rcs-tabs-nav[data-scrollable=true]::-webkit-scrollbar{display:none}.rcs-tabs-nav[data-scrollable=true] .rcs-tabs-tab{flex-shrink:0}.rcs-tabs[data-scrollable=true]:after{content:"";width:32px;height:var(--rcs-tabs-nav-h,40px);background:linear-gradient(to right, transparent, var(--rcs-tabs-fade-color,var(--bg-0)));pointer-events:none;z-index:1;position:absolute;top:0;right:0}.rcs-tabs-content{flex-direction:column;flex:1;min-height:0;display:flex}.rcs-menu{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);flex-direction:column;min-width:200px;padding:4px;display:flex}.rcs-menu--horizontal{flex-direction:row}.rcs-menu-item{align-items:center;gap:var(--space-2);cursor:pointer;border-radius:var(--radius-sm);color:var(--fg-1);padding:6px 8px;font-size:13px;display:flex}.rcs-menu-item:hover{background:var(--bg-2)}.rcs-menu-item[data-selected=true]{background:var(--accent-soft)}.rcs-menu-item[data-destructive=true]{color:var(--danger)}.rcs-menu-item[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-menu-item-shortcut{font-family:var(--font-mono);color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-menu-separator{background:var(--border-1);height:1px;margin:4px 0}.rcs-menu-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;padding:4px 8px;font-size:10px}.rcs-breadcrumb{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-breadcrumb a{color:var(--fg-2)}.rcs-breadcrumb a:hover{color:var(--fg-1)}.rcs-breadcrumb-item--last{color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-breadcrumb-sep{color:var(--fg-4)}.rcs-pagination{align-items:center;gap:4px;font-size:13px;display:inline-flex}.rcs-pagination-btn{min-width:28px;height:28px;color:var(--fg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;padding:0 8px;font-size:13px}.rcs-pagination-btn:hover:not(:disabled){border-color:var(--border-3);color:var(--fg-1)}.rcs-pagination-btn[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-pagination-btn:disabled{opacity:.4;cursor:not-allowed}.rcs-pagination-ellipsis{color:var(--fg-4);padding:0 6px}.rcs-steps{gap:0;display:flex}.rcs-steps--vertical{flex-direction:column}.rcs-step{align-items:flex-start;gap:var(--space-2);padding:0 var(--space-3);flex:1;display:flex;position:relative}.rcs-step:not(:last-child):after{content:"";top:12px;left:calc(24px + var(--space-3));background:var(--border-2);height:1px;position:absolute;right:0}.rcs-step[data-status=finish]:after{background:var(--bg-inverse)}.rcs-step-marker{width:24px;height:24px;font-size:11px;font-family:var(--font-mono);font-weight:var(--fw-medium);border:1px solid var(--border-2);background:var(--bg-1);color:var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.rcs-step[data-status=process] .rcs-step-marker,.rcs-step[data-status=finish] .rcs-step-marker{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-step[data-status=error] .rcs-step-marker{background:var(--danger);color:#fff;border-color:var(--danger)}.rcs-step-title{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1)}.rcs-step[data-status=wait] .rcs-step-title{color:var(--fg-3)}.rcs-step-desc{color:var(--fg-3);margin-top:2px;font-size:12px}.rcs-alert{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);display:flex}.rcs-alert--info{background:#2d73d90f;border-color:#2d73d933}.rcs-alert--success{background:var(--bg-2);border-color:var(--border-1)}.rcs-alert--warning{background:#d98e2b14;border-color:#d98e2b40}.rcs-alert--danger{background:var(--accent-soft);border-color:var(--accent-soft-2)}.rcs-alert-body{flex:1}.rcs-alert-title{font-weight:var(--fw-semibold);color:var(--fg-1);margin-bottom:2px;font-size:14px}.rcs-alert-content{color:var(--fg-2);font-size:13px;line-height:1.5}.rcs-alert-action{margin-top:8px}.rcs-alert-icon{flex-shrink:0;padding-top:1px;font-size:16px;line-height:1}.rcs-alert-close{cursor:pointer;color:var(--fg-3);background:0 0;border:0;flex-shrink:0;padding:2px;line-height:1}.rcs-alert-close:hover{color:var(--fg-1)}.rcs-modal-backdrop{z-index:100;padding:var(--space-4);animation:rcs-fade-in var(--dur-base) var(--ease-out-quart);background:#0006;place-items:center;display:grid;position:fixed;inset:0}.rcs-modal{background:var(--bg-1);color:var(--fg-1);border-radius:var(--radius-lg);box-shadow:var(--elevation-modal);width:100%;max-width:520px;max-height:90vh;animation:rcs-pop-in var(--dur-base) var(--ease-out-quart);flex-direction:column;display:flex}.rcs-modal--xs{max-width:360px}.rcs-modal--sm{max-width:440px}.rcs-modal--md{max-width:520px}.rcs-modal--lg{max-width:720px}.rcs-modal--fullscreen{border-radius:0;max-width:100vw;height:100vh;max-height:100vh}.rcs-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);flex-shrink:0}.rcs-modal-title{font-size:17px;font-weight:var(--fw-semibold);margin:0}.rcs-modal-desc{color:var(--fg-3);margin-top:4px;font-size:13px}.rcs-modal-body{padding:var(--space-5);flex:1;min-height:0;overflow:auto}.rcs-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);justify-content:flex-end;gap:var(--space-2);flex-shrink:0;display:flex}@keyframes rcs-fade-in{0%{opacity:0}}@keyframes rcs-pop-in{0%{opacity:0;transform:scale(.96)translateY(8px)}}.rcs-drawer{background:var(--bg-1);color:var(--fg-1);z-index:101;box-shadow:var(--elevation-modal);flex-direction:column;display:flex;position:fixed}.rcs-drawer--right{height:100dvh;top:0;right:0}.rcs-drawer--left{height:100dvh;top:0;left:0}.rcs-drawer--top{width:100dvw;top:0;left:0}.rcs-drawer--bottom{width:100dvw;bottom:0;left:0}.rcs-progress{display:block}.rcs-progress-track{background:var(--bg-3);border-radius:var(--radius-full);width:100%;height:6px;overflow:hidden}.rcs-progress-fill{background:var(--bg-inverse);border-radius:inherit;height:100%;transition:width var(--dur-base) var(--ease-out-quart)}.rcs-progress[data-tone=danger] .rcs-progress-fill{background:var(--danger)}.rcs-progress[data-tone=warning] .rcs-progress-fill{background:var(--warning)}.rcs-progress--lg .rcs-progress-track{height:8px}.rcs-progress--sm .rcs-progress-track{height:4px}.rcs-progress--xs .rcs-progress-track{height:3px}.rcs-progress[data-indeterminate=true] .rcs-progress-fill{animation:rcs-indeterminate 1.4s var(--ease-in-out) infinite;width:30%!important}@keyframes rcs-indeterminate{0%{transform:translate(-100%)}to{transform:translate(380%)}}.rcs-progress-value{font-family:var(--font-mono);color:var(--fg-3);margin-top:4px;font-size:11px}.rcs-skeleton{background:var(--bg-2);border-radius:var(--radius-sm);display:inline-block;position:relative;overflow:hidden}.rcs-skeleton[data-animated=true]:after{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);animation:1.4s linear infinite rcs-shimmer;position:absolute;inset:0}[data-theme=dark] .rcs-skeleton[data-animated=true]:after,.rcs-skeleton[data-animated=true][data-theme=dark]:after{background:linear-gradient(90deg,#0000,#ffffff0f,#0000)}@keyframes rcs-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.rcs-skeleton--text{border-radius:var(--radius-xs);width:100%;height:1em}.rcs-skeleton--circle{border-radius:50%}.rcs-spin{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-spin-glyph{border:2px solid;border-top-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite rcs-spin}.rcs-spin--xs .rcs-spin-glyph{border-width:1.5px;width:12px;height:12px}.rcs-spin--lg .rcs-spin-glyph{border-width:2.5px;width:24px;height:24px}.rcs-spin[data-tone=danger] .rcs-spin-glyph{color:var(--danger)}.rcs-tooltip{display:inline-block;position:relative}.rcs-tooltip-bubble{z-index:50;background:var(--bg-inverse);color:var(--fg-inverse);border-radius:var(--radius-sm);white-space:nowrap;box-shadow:var(--elevation-popover);pointer-events:none;padding:4px 8px;font-size:12px;position:absolute}.rcs-tooltip-bubble[data-placement=top]{bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=bottom]{top:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=left]{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}.rcs-tooltip-bubble[data-placement=right]{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.rcs-toast-region{bottom:var(--space-5);right:var(--space-5);z-index:200;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:fixed}.rcs-toast{pointer-events:auto;background:var(--bg-1);min-width:260px;max-width:380px;color:var(--fg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-toast);padding:var(--space-3) var(--space-4);gap:var(--space-3);animation:rcs-toast-in var(--dur-base) var(--ease-out-quart);align-items:flex-start;display:flex}@keyframes rcs-toast-in{0%{opacity:0;transform:translateY(8px)}}.rcs-toast-title{font-weight:var(--fw-semibold);font-size:14px}.rcs-toast-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-toast-action{color:var(--accent);cursor:pointer;font-weight:var(--fw-medium);background:0 0;border:0;padding:4px 8px}.rcs-toast-icon{text-align:center;flex-shrink:0;width:20px;font-size:14px;line-height:20px}.rcs-toast--success .rcs-toast-icon{color:var(--brand-gray-800)}.rcs-toast--danger .rcs-toast-icon{color:var(--danger)}.rcs-toast--warning .rcs-toast-icon{color:var(--warning)}.rcs-toast--info .rcs-toast-icon{color:var(--info)}.rcs-table-wrap{border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);overflow:auto}.rcs-table{border-collapse:collapse;width:100%;font-size:13px}.rcs-table thead th{text-align:left;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--fg-3);font-size:11px;font-weight:var(--fw-medium);border-bottom:1px solid var(--border-1);background:var(--bg-2);white-space:nowrap;padding:10px 14px}.rcs-table[data-sticky-header=true] thead th{z-index:1;position:sticky;top:0}.rcs-table tbody td{border-bottom:1px solid var(--border-1);color:var(--fg-1);vertical-align:middle;padding:10px 14px}.rcs-table tbody tr:last-child td{border-bottom:0}.rcs-table[data-density=compact] tbody td{padding:6px 12px}.rcs-table[data-density=comfortable] tbody td{padding:14px 16px}.rcs-table[data-striped=true] tbody tr:nth-child(odd) td{background:var(--bg-2)}.rcs-table[data-bordered=true] th,.rcs-table[data-bordered=true] td{border-right:1px solid var(--border-1)}.rcs-table tbody tr:hover td{background:var(--bg-2);cursor:pointer}.rcs-table-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rcs-table-sortable:after{content:" ↕";color:var(--fg-4)}.rcs-table-sortable[data-sort=asc]:after{content:" ↑";color:var(--fg-1)}.rcs-table-sortable[data-sort=desc]:after{content:" ↓";color:var(--fg-1)}.rcs-table-empty{text-align:center;padding:var(--space-12);color:var(--fg-3);font-size:13px}.rcs-table-align-right{text-align:right}.rcs-table-align-center{text-align:center}.rcs-stat{flex-direction:column;gap:4px;display:flex}.rcs-stat-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;font-size:11px}.rcs-stat-value{font-size:28px;font-weight:var(--fw-semibold);color:var(--fg-1);align-items:baseline;gap:4px;display:flex}.rcs-stat-unit{color:var(--fg-3);font-size:14px;font-weight:var(--fw-regular)}.rcs-stat-delta{font-size:12px;font-family:var(--font-mono);color:var(--fg-3);align-items:center;gap:4px;display:inline-flex}.rcs-stat-delta[data-tone=good]{color:#1f9e5c}.rcs-stat-delta[data-tone=bad]{color:var(--danger)}.rcs-stat-spark{width:80px;height:24px}.rcs-avatar{background:var(--bg-2);color:var(--fg-2);font-weight:var(--fw-medium);border:1px solid var(--border-1);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.rcs-avatar img{object-fit:cover;width:100%;height:100%}.rcs-avatar--circle{border-radius:50%}.rcs-avatar--square{border-radius:var(--radius-sm)}.rcs-avatar-status{background:var(--brand-gray-800);border:2px solid var(--bg-1);border-radius:50%;width:25%;height:25%;position:absolute;bottom:0;right:0}.rcs-timeline{gap:var(--space-4);flex-direction:column;display:flex}.rcs-timeline-item{gap:var(--space-3);display:flex;position:relative}.rcs-timeline-item:not(:last-child):before{content:"";background:var(--border-1);width:1px;position:absolute;top:18px;bottom:-16px;left:7px}.rcs-timeline-marker{background:var(--bg-1);border:2px solid var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;width:14px;height:14px;margin-top:4px}.rcs-timeline-item[data-tone=success] .rcs-timeline-marker{border-color:var(--brand-gray-800);background:var(--brand-gray-800)}.rcs-timeline-item[data-tone=warning] .rcs-timeline-marker{border-color:var(--warning)}.rcs-timeline-item[data-tone=danger] .rcs-timeline-marker{border-color:var(--danger);background:var(--danger)}.rcs-timeline-content{flex:1;padding-bottom:4px}.rcs-timeline-title{font-size:14px;font-weight:var(--fw-medium)}.rcs-timeline-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-timeline-time{font-family:var(--font-mono);color:var(--fg-4);text-transform:uppercase;letter-spacing:.04em;margin-top:4px;font-size:11px;display:block}.rcs-chat{flex-direction:column;height:100%;min-height:0;display:flex}.rcs-chat-messages{padding:var(--space-4);gap:var(--space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.rcs-chat-msg{gap:var(--space-3);display:flex}.rcs-chat-msg--user{flex-direction:row-reverse}.rcs-chat-bubble{max-width:75%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--fg-1);font-size:14px;line-height:1.5}.rcs-chat-msg--user .rcs-chat-bubble{background:var(--bg-inverse);color:var(--fg-inverse);border-bottom-right-radius:4px}.rcs-chat-msg--assistant .rcs-chat-bubble{border-bottom-left-radius:4px}.rcs-chat-msg--system .rcs-chat-bubble{border:1px dashed var(--border-2);font-family:var(--font-mono);color:var(--fg-3);background:0 0;align-self:center;max-width:100%;font-size:12px}.rcs-chat-msg-status{font-family:var(--font-mono);color:var(--fg-4);margin-top:2px;font-size:10px}.rcs-chat-suggestions{padding:0 var(--space-4) var(--space-2);gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-chat-suggestion{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-full);color:var(--fg-2);cursor:pointer;padding:6px 12px;font-size:13px}.rcs-chat-suggestion:hover{background:var(--bg-2);border-color:var(--border-3)}.rcs-chat-composer{gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border-1);background:var(--bg-1);align-items:flex-end;display:flex}.rcs-chat-input{resize:none;border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);color:var(--fg-1);outline:0;flex:1;min-height:40px;max-height:200px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.5}.rcs-chat-input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-codeblock{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-md);overflow:hidden}.rcs-codeblock-header{border-bottom:1px solid var(--border-1);background:var(--bg-1);font-family:var(--font-mono);color:var(--fg-3);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.rcs-codeblock-pre{padding:var(--space-3) var(--space-4);font-family:var(--font-mono);color:var(--fg-1);margin:0;font-size:13px;line-height:1.5;overflow:auto}.rcs-codeblock-pre[data-wrap=true]{white-space:pre-wrap;word-break:break-word}.rcs-codeblock-line{display:flex}.rcs-codeblock-lineno{text-align:right;width:32px;padding-right:var(--space-3);color:var(--fg-4);-webkit-user-select:none;user-select:none;flex-shrink:0;display:inline-block}.rcs-codeblock-line[data-highlight=true]{background:var(--accent-soft);margin:0 calc(-1 * var(--space-4));padding:0 var(--space-4)}.rcs-codeblock-copy{cursor:pointer;color:var(--fg-3);font-family:var(--font-mono);border-radius:var(--radius-xs);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;padding:2px 6px;font-size:11px}.rcs-codeblock-copy:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-markdown{color:var(--fg-1);font-size:14px;line-height:1.65}.rcs-markdown h1{margin:1.2em 0 .5em;font-size:22px}.rcs-markdown h2{margin:1.2em 0 .5em;font-size:18px}.rcs-markdown h3{margin:1em 0 .4em;font-size:15px}.rcs-markdown p{color:var(--fg-2);margin:.6em 0}.rcs-markdown a{color:var(--accent)}.rcs-markdown ul,.rcs-markdown ol{color:var(--fg-2);margin:.6em 0;padding-left:1.4em}.rcs-markdown blockquote{border-left:2px solid var(--border-2);color:var(--fg-3);margin:1em 0;padding:.2em 1em;font-style:italic}.rcs-markdown pre{background:var(--bg-2);padding:var(--space-3);border-radius:var(--radius-sm);overflow:auto}.rcs-markdown code{background:var(--bg-2);border-radius:3px;padding:1px 5px;font-size:.9em}.rcs-markdown--compact{font-size:13px}.rcs-markdown--compact h1{font-size:18px}.rcs-terminal{color:#e5e5e5;border-radius:var(--radius-md);font-family:var(--font-mono);background:#0f0f0f;flex-direction:column;font-size:13px;display:flex;overflow:hidden}.rcs-terminal-tabs{background:#1c1c1c;border-bottom:1px solid #2b2b2b;gap:0;padding:0 8px;display:flex}.rcs-terminal-tab{color:#a6a6a6;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-bottom:1px solid #0000;padding:6px 10px;font-size:11px}.rcs-terminal-tab[data-active=true]{color:#fff;border-bottom-color:var(--accent)}.rcs-terminal-body{padding:var(--space-3);flex:1;overflow:auto}.rcs-terminal-line{padding:1px 0;line-height:1.5}.rcs-terminal-line[data-type=stderr]{color:#ff8585}.rcs-terminal-line[data-type=error]{color:#ff5a5f}.rcs-terminal-line[data-type=warn]{color:#ffb948}.rcs-terminal-line[data-type=info]{color:#62a3ff}.rcs-terminal-line[data-type=debug]{color:#a6a6a6}.rcs-terminal-line[data-type=prompt]{color:#1f9e5c}.rcs-terminal-cursor{vertical-align:text-bottom;background:#e5e5e5;width:7px;height:14px;animation:1s steps(2,end) infinite rcs-blink;display:inline-block}@keyframes rcs-blink{50%{opacity:0}}.rcs-rte{border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);overflow:hidden}.rcs-rte-toolbar{border-bottom:1px solid var(--border-1);background:var(--bg-2);gap:2px;padding:4px 6px;display:flex}.rcs-rte-toolbtn{cursor:pointer;border-radius:var(--radius-xs);color:var(--fg-2);background:0 0;border:0;padding:4px 8px;font-size:13px}.rcs-rte-toolbtn:hover{background:var(--bg-3);color:var(--fg-1)}.rcs-rte-content{padding:var(--space-3);color:var(--fg-1);outline:0;min-height:120px;font-size:14px;line-height:1.6}.rcs-rte-content[data-empty=true]:before{content:attr(data-placeholder);color:var(--fg-4)}.rcs-page-header{--rcs-page-header-py:var(--space-5);--rcs-page-header-px:var(--space-6);--rcs-page-header-title-fs:var(--fs-h3);--rcs-page-header-subtitle-fs:14px;border-bottom:1px solid var(--border-1);padding:var(--rcs-page-header-py) var(--rcs-page-header-px);background:var(--bg-1)}.rcs-page-header--xs{--rcs-page-header-py:var(--space-1\.5);--rcs-page-header-px:var(--space-3);--rcs-page-header-title-fs:15px;--rcs-page-header-subtitle-fs:12px}.rcs-page-header--sm{--rcs-page-header-py:var(--space-2);--rcs-page-header-px:var(--space-4);--rcs-page-header-title-fs:var(--fs-h4);--rcs-page-header-subtitle-fs:13px}.rcs-page-header--lg{--rcs-page-header-py:var(--space-6);--rcs-page-header-px:var(--space-8);--rcs-page-header-title-fs:var(--fs-h2);--rcs-page-header-subtitle-fs:15px}.rcs-page-header--xl{--rcs-page-header-py:var(--space-8);--rcs-page-header-px:var(--space-12);--rcs-page-header-title-fs:var(--fs-h1);--rcs-page-header-subtitle-fs:17px}.rcs-page-header-row{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.rcs-page-header-back{cursor:pointer;color:var(--fg-3);margin-bottom:var(--space-2);font-size:12px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;align-items:center;gap:4px;padding:2px 0;display:inline-flex}.rcs-page-header-back:hover{color:var(--fg-1)}.rcs-page-header-back-inline{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--fg-3);cursor:pointer;transition:background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;display:inline-flex}.rcs-page-header-back-inline:hover{background:var(--bg-2);color:var(--fg-1)}.rcs-page-header-back-inline:active{transform:translateY(.5px)}.rcs-page-header--sm .rcs-page-header-back-inline{width:24px;height:24px;font-size:14px}.rcs-page-header--xs .rcs-page-header-back-inline{width:22px;height:22px;font-size:13px}.rcs-page-header--xs .rcs-page-header-title{gap:var(--space-2)}.rcs-page-header-title{align-items:center;gap:var(--space-3);min-width:0;display:flex}.rcs-page-header-title h1{font-size:var(--rcs-page-header-title-fs);font-family:var(--font-display);font-weight:var(--fw-semibold);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";margin:0}.rcs-page-header-subtitle{font-size:var(--rcs-page-header-subtitle-fs);color:var(--fg-3);margin-top:4px}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-title-text{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle{margin-top:0}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle:before{content:"·";margin-right:var(--space-2);color:var(--fg-4)}.rcs-page-header-actions{gap:var(--space-2);flex-shrink:0;display:flex}.rcs-page-header-tabs{margin-top:var(--space-4);margin-bottom:calc(-1 * (var(--rcs-page-header-py) + var(--border-thin)))}.rcs-app-shell{background:var(--bg-0);grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.rcs-app-shell-body{min-height:0;display:grid}.rcs-app-shell-body[data-has-sidebar=true]{grid-template-columns:var(--rcs-sidebar-w,240px) 1fr}.rcs-app-shell-sidebar{border-right:1px solid var(--border-1);background:var(--bg-1);overflow:auto}.rcs-app-shell-main{min-width:0;overflow:auto}.rcs-app-shell-header{border-bottom:1px solid var(--border-1);background:var(--bg-1)}.rcs-app-shell-footer{border-top:1px solid var(--border-1);background:var(--bg-1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--bg-base:var(--bg-0);--bg-nav:var(--bg-1);--bg-panel:var(--bg-1);--bg-card:var(--bg-2);--bg-input:var(--bg-3);--border:var(--border-1);--border-hover:var(--border-2);--border-strong:var(--border-3);--text-primary:var(--fg-1);--text-secondary:var(--fg-2);--text-muted:var(--fg-3);--text-dim:var(--fg-4);--text-faint:var(--fg-4);--nav-active-bg:var(--bg-2);--nav-active-border:var(--border-2);--nav-active-text:var(--fg-1);--nav-inactive-text:var(--fg-3);--color-accent:var(--accent-fg);--color-accent-hover:var(--accent-hover);--accent-error:var(--brand-red-500);--color-warn:var(--amber-500);--color-success:var(--brand-red-300);--code-bg:var(--bg-3);--code-text:var(--fg-2);--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:var(--accent-soft)}[data-theme=dark] .icon-sun{display:flex}[data-theme=dark] .icon-moon,[data-theme=light] .icon-sun{display:none}[data-theme=light] .icon-moon{display:flex}[data-radix-popper-content-wrapper]{z-index:100!important}html,body{background:var(--bg-base);height:100%;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;overflow:hidden}#root{flex-direction:column;height:100%;display:flex}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-base)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}code{background:var(--bg-card);color:var(--text-secondary);border-radius:3px;padding:1px 5px;font-family:SF Mono,ui-monospace,monospace}.top-nav{background:var(--bg-nav);border-bottom:1px solid var(--border);z-index:10;flex-shrink:0;align-items:center;gap:.25rem;height:48px;padding:0 1rem;display:flex;position:relative;overflow-x:auto}.top-nav::-webkit-scrollbar{height:0}.logo{border-right:1px solid var(--border);color:inherit;flex-shrink:0;align-items:center;gap:.5rem;margin-right:.25rem;padding-right:1rem;text-decoration:none;display:flex}.logo-mark{letter-spacing:.12em;color:var(--text-primary);font-size:.7rem;font-weight:700}.logo-ver{color:var(--text-faint);letter-spacing:.02em;margin-left:2px;font-family:ui-monospace,monospace;font-size:.6rem}.nav-link{cursor:pointer;color:var(--nav-inactive-text);background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;align-items:center;gap:.35rem;padding:.3rem .7rem;font-family:inherit;font-size:.78rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.nav-link:hover{color:var(--text-secondary);background:var(--nav-active-bg)}.nav-link.active{color:var(--nav-active-text);background:var(--nav-active-bg);border-color:var(--nav-active-border)}.theme-btn{width:32px;height:32px;color:var(--text-dim);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;margin-left:.25rem;transition:all .15s;display:flex}.theme-btn:hover{border-color:var(--border-hover);color:var(--text-muted)}.status-bar{background:var(--bg-nav);border-top:1px solid var(--border);height:24px;color:var(--text-muted);flex-shrink:0;align-items:center;gap:14px;padding:0 18px;font-size:10px;display:flex}.status-item{align-items:center;gap:4px;display:flex}.status-key{background:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);border-radius:3px;padding:0 4px;font-family:SF Mono,ui-monospace,monospace;font-size:9px;font-weight:600}.main-content{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:1rem;transition:border-color .15s}.card:hover{border-color:var(--border-hover)}.badge{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-card);border:1px solid var(--border);color:var(--text-dim);border-radius:5px;align-items:center;padding:.15rem .5rem;font-size:.62rem;font-weight:600;display:inline-flex}.badge-green{color:#6ee7b7;background:#064e3b;border-color:#10b981}.badge-blue{border-color:var(--syntax-num);color:#a5f3fc;background:#0c4a6e}.badge-purple{border-color:var(--syntax-key);color:#c7d7fe;background:#1e1b4b}.badge-orange{border-color:var(--color-warn);color:#fed7aa;background:#451a03}.badge-red{color:#fecaca;background:#3f1014;border-color:#ef4444}.search-wrap{flex:1;max-width:600px;position:relative}.search-wrap svg{opacity:.4;pointer-events:none;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.search-input{background:var(--bg-input);width:100%;color:var(--text-primary);border:1px solid var(--border);border-radius:8px;outline:none;padding:6px 10px 6px 30px;font-family:SF Mono,ui-monospace,monospace;font-size:12px;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--accent-glow)}.search-input::placeholder{color:var(--text-muted)}.mode-pill{cursor:pointer;border:1px solid var(--border);color:var(--text-muted);background:0 0;border-radius:6px;padding:.3rem .75rem;font-family:inherit;font-size:.75rem;font-weight:600;transition:all .15s}.mode-pill.active{background:var(--nav-active-bg);border-color:var(--color-accent);color:var(--color-accent)}.mode-pill:hover:not(.active){background:var(--nav-active-bg);color:var(--text-secondary)}.mcp-view{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.mc-status-bar{background:var(--bg-panel);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.75rem;padding:.6rem 1.25rem;display:flex}.mc-badge{letter-spacing:.08em;background:var(--bg-card);color:var(--text-dim);border:1px solid var(--border);border-radius:4px;padding:.2rem .55rem;font-family:ui-monospace,monospace;font-size:.65rem;font-weight:600}.mc-btn-icon{border:1px solid var(--border);background:var(--bg-card);height:30px;color:var(--text-dim);cursor:pointer;border-radius:6px;align-items:center;gap:.3rem;padding:0 .6rem;font-family:inherit;font-size:.72rem;transition:all .15s;display:flex}.mc-btn-icon:hover{border-color:var(--border-hover);color:var(--text-muted)}.mc-tool-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;flex-direction:column;padding:.9rem;transition:border-color .15s,box-shadow .15s;display:flex;position:relative;overflow:hidden}.mc-tool-card:hover{border-color:var(--border-hover);box-shadow:0 0 12px #ffffff08}.mc-param-tag{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.12rem .35rem;font-family:ui-monospace,monospace;font-size:.62rem}.mc-param-req{border-color:var(--border-hover);color:var(--text-secondary)}.mc-param-opt{color:var(--text-dim)}.mc-btn-call{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-hover);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:inherit;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-call:hover{background:var(--bg-panel);color:var(--text-primary);border-color:var(--border-strong)}.mc-btn-rpc{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:ui-monospace,monospace;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-rpc:hover{background:var(--bg-panel);color:var(--text-secondary)}.mc-overlay{z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000bf;position:fixed;inset:0}.mc-modal{border:1px solid var(--border-hover);background:var(--bg-panel);border-radius:14px;position:relative;box-shadow:0 24px 64px #0009}.mc-code{color:var(--code-text);border:1px solid var(--border);background:#050505;border-radius:8px;font-family:ui-monospace,monospace;font-size:.75rem}.mc-textarea{color:#86efac;border:1px solid var(--border);resize:none;background:#050505;border-radius:8px;outline:none;width:100%;padding:.6rem .75rem;font-family:ui-monospace,monospace;font-size:.74rem;transition:border-color .15s}.mc-textarea:focus{border-color:var(--border-hover)}.mc-send-btn{background:var(--text-primary);width:100%;color:var(--bg-base);cursor:pointer;border:none;border-radius:8px;padding:.6rem;font-family:inherit;font-size:.82rem;font-weight:700;transition:opacity .15s}.mc-send-btn:hover{opacity:.85}.mc-send-btn:disabled{opacity:.4;cursor:not-allowed}.mc-copy-btn{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:5px;align-items:center;gap:.35rem;padding:.25rem .6rem;font-family:inherit;font-size:.72rem;transition:all .12s;display:flex}.mc-copy-btn:hover{color:var(--text-secondary);border-color:var(--border-hover)}[data-radix-tabs-trigger][data-state=active]{color:var(--text-primary)!important;border-bottom-color:var(--color-accent)!important}[data-radix-tabs-trigger]{outline:none}[data-radix-tabs-trigger]:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent)}.stats{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.stat{border:1px solid var(--border);background:var(--bg-card);border-radius:8px;flex-direction:column;justify-content:center;min-width:72px;padding:.35rem .55rem;display:flex}.stat-val{color:var(--text-primary);font-size:.85rem;font-weight:700;line-height:1}.stat-lbl{text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-top:.18rem;font-size:.62rem}@keyframes mc-ping{75%,to{opacity:0;transform:scale(2)}}.traces-layout{flex:1;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1rem;min-height:0;display:grid;overflow:hidden}@media (width<=860px){.traces-layout{grid-template-rows:auto 1fr;grid-template-columns:1fr;overflow:auto}}.traces-right-col{grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;min-height:0;display:grid;overflow:hidden}.stats-bar{font-size:10px;font-family:var(--font-mono,monospace);color:var(--text-muted);align-items:center;gap:14px;display:flex}.stats-bar b{color:var(--text-primary)}.stats-bar .stat-error{color:#ef4444}.stats-bar .stat-healthy{color:#22c55e}.ws-dot{border-radius:50%;width:6px;height:6px;display:inline-block}.ws-dot.connected{background:#22c55e}.ws-dot.disconnected{background:#ef4444}.service-map-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.service-map-toolbar{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 16px;display:flex}.service-map-body{flex:1;display:flex;overflow:hidden}.service-map-canvas{flex:1;min-height:0;position:relative}.edge-slider{color:var(--text-muted);align-items:center;gap:6px;font-size:10px;display:flex}.edge-slider input[type=range]{width:120px;accent-color:var(--color-accent)}.zoom-controls{gap:4px;display:flex}.zoom-btn{border:1px solid var(--border);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:flex}.zoom-btn:hover{border-color:var(--border-hover);color:var(--text-primary)}.side-panel{border-left:1px solid var(--border);background:var(--bg-card);flex-shrink:0;width:280px;padding:12px;overflow-y:auto} diff --git a/internal/ui/dist/assets/index-C9DjciJ7.js b/internal/ui/dist/assets/index-COVOG8eS.js similarity index 100% rename from internal/ui/dist/assets/index-C9DjciJ7.js rename to internal/ui/dist/assets/index-COVOG8eS.js diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index 9eae5d0..ffeee1f 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -4,8 +4,8 @@ OtelContext - - + +
diff --git a/ui/src/styles/tokens.css b/ui/src/styles/tokens.css index 9c7122c..f05ca60 100644 --- a/ui/src/styles/tokens.css +++ b/ui/src/styles/tokens.css @@ -1,69 +1,48 @@ +/* + * Transition shim: bind legacy --bg-base / --text-primary / --color-accent + * etc. to @ossrandom/design-system tokens so existing inline `var(--*)` and + * .card/.top-nav/.nav-link CSS rules pick up the DS palette and fonts + * (Bricolage Grotesque, Plus Jakarta Sans, Geist Mono, Cod Gray on Signal Red) + * without touching every component file. + * + * This file is the thin compatibility layer flagged in PR #71's "out of + * scope" — class-based styles in global.css will be replaced with DS + * components in follow-up PRs, after which this whole file goes away. + */ + *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root, [data-theme="dark"] { - --bg-base: #000; - --bg-nav: #0a0a0a; - --bg-panel: #0f0f0f; - --bg-card: #0a0a0a; - --bg-input: #050505; - --border: #1f1f1f; - --border-hover: #2a2a2a; - --border-strong: #333; - --text-primary: #fff; - --text-secondary: #ccc; - --text-muted: #666; - --text-dim: #444; - --text-faint: #333; - --nav-active-bg: #1a1a1a; - --nav-active-border: #2a2a2a; - --nav-active-text: #fff; - --nav-inactive-text: #666; - --color-accent: #38bdf8; - --color-accent-hover: #0ea5e9; - --accent-error: #ff4444; - --color-warn: #fb923c; - --color-success: #4ade80; - --code-bg: #050505; - --code-text: #ccc; - --syntax-key: #93c5fd; - --syntax-str: #86efac; - --syntax-bool: #fcd34d; - --syntax-null: #94a3b8; - --syntax-num: #67e8f9; - --accent-glow: rgba(56, 189, 248, 0.2); -} - -[data-theme="light"] { - --bg-base: #f5f5f5; - --bg-nav: #fff; - --bg-panel: #fff; - --bg-card: #f0f0f0; - --bg-input: #f8f8f8; - --border: #e5e5e5; - --border-hover: #d0d0d0; - --border-strong: #bbb; - --text-primary: #111; - --text-secondary: #333; - --text-muted: #777; - --text-dim: #aaa; - --text-faint: #bbb; - --nav-active-bg: #ebebeb; - --nav-active-border: #d0d0d0; - --nav-active-text: #111; - --nav-inactive-text: #777; - --color-accent: #0ea5e9; - --color-accent-hover: #0284c7; - --accent-error: #cc2222; - --color-warn: #ea580c; - --color-success: #16a34a; - --code-bg: #0a0a0a; - --code-text: #ccc; + --bg-base: var(--bg-0); + --bg-nav: var(--bg-1); + --bg-panel: var(--bg-1); + --bg-card: var(--bg-2); + --bg-input: var(--bg-3); + --border: var(--border-1); + --border-hover: var(--border-2); + --border-strong: var(--border-3); + --text-primary: var(--fg-1); + --text-secondary: var(--fg-2); + --text-muted: var(--fg-3); + --text-dim: var(--fg-4); + --text-faint: var(--fg-4); + --nav-active-bg: var(--bg-2); + --nav-active-border: var(--border-2); + --nav-active-text: var(--fg-1); + --nav-inactive-text: var(--fg-3); + --color-accent: var(--accent-fg); + --color-accent-hover: var(--accent-hover); + --accent-error: var(--brand-red-500); + --color-warn: var(--amber-500); + --color-success: var(--brand-red-300); + --code-bg: var(--bg-3); + --code-text: var(--fg-2); --syntax-key: #93c5fd; --syntax-str: #86efac; --syntax-bool: #fcd34d; --syntax-null: #94a3b8; --syntax-num: #67e8f9; - --accent-glow: rgba(14, 165, 233, 0.2); + --accent-glow: var(--accent-soft); } [data-theme="dark"] .icon-sun { display: flex; } From f791eb65f5bba57c014da56a280544f53266b8cb Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 29 Apr 2026 14:55:53 +0000 Subject: [PATCH 05/13] refactor(ui): full migration to @ossrandom/design-system; drop echarts + custom CSS - ServiceMap: replace echarts force-directed graph with DS ServiceMap (cose-bilkent) - TracesPage / LogsPage / ServiceSidePanel: replace .card / .badge / .side-panel classes with DS Card / Badge / Button / Alert / Input / Spin / Space - TopNav / MCP console + modals: already on DS, polished tones (mono palette) - ErrorBoundary: keep inline styles (must render if DS fails to load) but bind to DS CSS vars with hex fallbacks for theme harmony - Strip global.css to layout-only escape hatches (#root, scrollbar, code, html height); strip tokens.css to box-sizing reset + colorJSON syntax palette - Remove echarts dependency (-4 packages); delete unused EChart wrapper + tierLayout (orphaned after migration) - Net 1376 insertions / 1722 deletions; CSS bundle 49 KB (gzip 9.4 KB) --- .../assets/cytoscape-cose-bilkent-D9vZHFQ-.js | 1 + .../ui/dist/assets/cytoscape.esm-Dm6iss-N.js | 321 +++++++++++ .../ui/dist/assets/design-system-BNhP-Tae.js | 1 + .../ui/dist/assets/design-system-DFjB0sSn.js | 1 + .../ui/dist/assets/design-system-IOKLDoaG.js | 1 + internal/ui/dist/assets/index-BtOiOgcN.js | 10 + internal/ui/dist/assets/index-COVOG8eS.js | 48 -- ...{index-BLTTK0qH.css => index-DGckg6RL.css} | 2 +- internal/ui/dist/index.html | 4 +- ui/package-lock.json | 70 +-- ui/package.json | 3 +- ui/src/App.tsx | 11 +- ui/src/components/ErrorBoundary.tsx | 75 +-- ui/src/components/mcp/MCPConsole.tsx | 140 ++++- ui/src/components/mcp/RPCPopup.tsx | 95 ++-- ui/src/components/mcp/ToolCallModal.tsx | 72 ++- ui/src/components/mcp/ToolCard.tsx | 60 ++- ui/src/components/nav/TopNav.tsx | 122 +++-- ui/src/components/observability/LogsPage.tsx | 174 ++++-- .../components/observability/ServiceMap.tsx | 507 +++++------------- .../observability/ServiceSidePanel.tsx | 343 ++++++------ .../components/observability/TracesPage.tsx | 175 ++++-- ui/src/components/shared/EChart.tsx | 67 --- ui/src/lib/__tests__/tierLayout.test.ts | 203 ------- ui/src/lib/tierLayout.ts | 185 ------- ui/src/styles/global.css | 357 +----------- ui/src/styles/tokens.css | 50 +- 27 files changed, 1376 insertions(+), 1722 deletions(-) create mode 100644 internal/ui/dist/assets/cytoscape-cose-bilkent-D9vZHFQ-.js create mode 100644 internal/ui/dist/assets/cytoscape.esm-Dm6iss-N.js create mode 100644 internal/ui/dist/assets/design-system-BNhP-Tae.js create mode 100644 internal/ui/dist/assets/design-system-DFjB0sSn.js create mode 100644 internal/ui/dist/assets/design-system-IOKLDoaG.js create mode 100644 internal/ui/dist/assets/index-BtOiOgcN.js delete mode 100644 internal/ui/dist/assets/index-COVOG8eS.js rename internal/ui/dist/assets/{index-BLTTK0qH.css => index-DGckg6RL.css} (81%) delete mode 100644 ui/src/components/shared/EChart.tsx delete mode 100644 ui/src/lib/__tests__/tierLayout.test.ts delete mode 100644 ui/src/lib/tierLayout.ts diff --git a/internal/ui/dist/assets/cytoscape-cose-bilkent-D9vZHFQ-.js b/internal/ui/dist/assets/cytoscape-cose-bilkent-D9vZHFQ-.js new file mode 100644 index 0000000..5fc5c4c --- /dev/null +++ b/internal/ui/dist/assets/cytoscape-cose-bilkent-D9vZHFQ-.js @@ -0,0 +1 @@ +import{t as e}from"./index-BtOiOgcN.js";var t=e(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new a(t.x,t.y,n.width,n.height):this.rect=new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;cn&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;mo&&(t=o),nc&&(r=c),ao&&(t=o),nc&&(r=c),a=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(ia)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(ra?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;nc||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=c.length||u>=c[0].length)){for(var d=0;de}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(r,i){typeof e==`object`&&typeof n==`object`?n.exports=i(t()):typeof define==`function`&&define.amd?define([`layout-base`],i):typeof e==`object`?e.coseBase=i(t()):r.coseBase=i(r.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1){var s;for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},v.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(t,null,0,359,0,r);var i=g.calculateBounds(e),a=new _;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=u.indexOf(_);y>=0&&u.splice(y,1),p--,d--}m=t==null?0:(u.indexOf(g[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;v.branchRadialLayout(S,e,C,w,i+a,a),f++}}},v.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;nt&&(t=r)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},v.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rc&&(c=u.rect.height)}n+=c+e.verticalPadding}},v.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},v.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},v.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d=m.MAX_VALUE,f,p,h=0;h{(function(r,i){typeof e==`object`&&typeof t==`object`?t.exports=i(n()):typeof define==`function`&&define.amd?define([`cose-base`],i):typeof e==`object`?e.cytoscapeCoseBilkent=i(n()):r.cytoscapeCoseBilkent=i(r.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function f(e){this.options=d(u,e),p(this.options)}var p=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.quality==`draft`?r.QUALITY=0:e.quality==`proof`?r.QUALITY=2:r.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};f.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l0){var h=n.getGraphManager().add(n.newGraph(),u);this.processChildrenList(h,o,n)}}},f.prototype.stop=function(){return this.stopped=!0,this};var m=function(e){e(`layout`,`cose-bilkent`,f)};typeof cytoscape<`u`&&m(cytoscape),e.exports=m})])})}));export default r(); \ No newline at end of file diff --git a/internal/ui/dist/assets/cytoscape.esm-Dm6iss-N.js b/internal/ui/dist/assets/cytoscape.esm-Dm6iss-N.js new file mode 100644 index 0000000..8847b67 --- /dev/null +++ b/internal/ui/dist/assets/cytoscape.esm-Dm6iss-N.js @@ -0,0 +1,321 @@ +function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function s(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function u(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(e,n){return t(e)||l(e,n)||_(e,n)||u()}function p(e){return n(e)||c(e)||_(e)||d()}function m(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}function h(e){var t=m(e,`string`);return typeof t==`symbol`?t:t+``}function g(e){"@babel/helpers - typeof";return g=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},g(e)}function _(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var v=typeof window>`u`?null:window,y=v?v.navigator:null;v&&v.document;var b=g(``),x=g({}),S=g(function(){}),C=typeof HTMLElement>`u`?`undefined`:g(HTMLElement),w=function(e){return e&&e.instanceString&&E(e.instanceString)?e.instanceString():null},T=function(e){return e!=null&&g(e)==b},E=function(e){return e!=null&&g(e)===S},D=function(e){return!N(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},O=function(e){return e!=null&&g(e)===x&&!D(e)&&e.constructor===Object},k=function(e){return e!=null&&g(e)===x},A=function(e){return e!=null&&g(e)===g(1)&&!isNaN(e)},j=function(e){return A(e)&&Math.floor(e)===e},M=function(e){if(C!==`undefined`)return e!=null&&e instanceof HTMLElement},N=function(e){return P(e)||F(e)},P=function(e){return w(e)===`collection`&&e._private.single},F=function(e){return w(e)===`collection`&&!e._private.single},I=function(e){return w(e)===`core`},L=function(e){return w(e)===`stylesheet`},R=function(e){return w(e)===`event`},z=function(e){return e==null?!0:!!(e===``||e.match(/^\s+$/))},B=function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},V=function(e){return O(e)&&A(e.x1)&&A(e.x2)&&A(e.y1)&&A(e.y2)},H=function(e){return k(e)&&E(e.then)},U=function(){return y&&y.userAgent.match(/msie|trident|edge/i)},W=function(e,t){t||=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},ce=function(e,t){return-1*se(e,t)},X=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var u=RegExp(`^`+re+`$`).exec(e);if(u){if(n=parseInt(u[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,r=parseFloat(u[2]),r<0||r>100||(r/=100,i=parseFloat(u[3]),i<0||i>100)||(i/=100,a=u[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(r===0)o=s=c=Math.round(i*255);else{var d=i<.5?i*(1+r):i+r-i*r,f=2*i-d;o=Math.round(255*l(f,d,n+1/3)),s=Math.round(255*l(f,d,n)),c=Math.round(255*l(f,d,n-1/3))}t=[o,s,c,a]}return t},de=function(e){var t,n=RegExp(`^`+te+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var c=n[4];if(c!==void 0){if(c=parseFloat(c),c<0||c>1)return;t.push(c)}}return t},fe=function(e){return me[e.toLowerCase()]},pe=function(e){return(D(e)?e:null)||fe(e)||le(e)||de(e)||ue(e)},me={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},he=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i=s||t<0||_&&n>=d}function C(){var e=t();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(t())}function D(){var e=t(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,s),y(m)}return p===void 0&&(p=setTimeout(C,s)),f}return D.cancel=T,D.flush=E,D}return it=o,it}var st=ve(ot()),ct=v?v.performance:null,lt=ct&&ct.now?function(){return ct.now()}:function(){return Date.now()},ut=function(){if(v){if(v.requestAnimationFrame)return function(e){v.requestAnimationFrame(e)};if(v.mozRequestAnimationFrame)return function(e){v.mozRequestAnimationFrame(e)};if(v.webkitRequestAnimationFrame)return function(e){v.webkitRequestAnimationFrame(e)};if(v.msRequestAnimationFrame)return function(e){v.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(lt())},1e3/60)}}(),dt=function(e){return ut(e)},ft=lt,pt=9261,mt=65599,ht=5381,gt=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt,n;n=e.next(),!n.done;)t=t*mt+n.value|0;return t},_t=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt)*mt+e|0},vt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ht;return(t<<5)+t+e|0},yt=function(e,t){return e*2097152+t},bt=function(e){return e[0]*2097152+e[1]},xt=function(e,t){return[_t(e[0],t[0]),vt(e[1],t[1])]},St=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return gt({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},Jt=function(e){e.splice(0,e.length)},Yt=function(e,t){for(var n=0;n`u`?`undefined`:g(Set))===$t?en:Set,nn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!I(e)){Lt(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){Lt("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new tn,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var c=[];D(t.classes)?c=t.classes:T(t.classes)&&(c=t.classes.split(/\s+/));for(var l=0,u=c.length;lt)},l=function(e,t,i,a,o){var s;if(i??=0,o??=n,i<0)throw Error(`lo must be non-negative`);for(a??=e.length;in;0<=n?t++:t--)l.push(t);return l}).apply(this).reverse(),c=[],a=0,o=s.length;ah;0<=h?++f:--f)g.push(a(e,r));return g},m=function(e,t,r,i){var a,o,s;for(i??=n,a=e[r];r>t;){if(s=r-1>>1,o=e[s],i(a,o)<0){e[r]=o,r=s;continue}break}return e[r]=a},h=function(e,t,r){var i,a,o,s,c;for(r??=n,a=e.length,c=t,o=e[t],i=2*t+1;i0;){var x=_.pop(),S=h(x),C=x.id();if(d[C]=S,S!==1/0)for(var w=x.neighborhood().intersect(p),E=0;E0)for(n.unshift(t);u[i];){var a=u[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return o.spawn(n)}}}},gn={kruskal:function(e){e||=function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=n,s=function(e){for(var t=0;t0;){if(b(),S++,y===l){for(var C=[],w=i,T=l,E=g[T];C.unshift(w),E!=null&&C.unshift(E),w=h[T],w!=null;)T=w.id(),E=g[T];return{found:!0,distance:u[y],path:this.spawn(C),steps:S}}f[y]=!0;for(var D=v._private.edges,O=0;OE&&(p[w]=E,g[w]=C,_[w]=y),!i){var D=C*l+S;!i&&p[D]>E&&(p[D]=E,g[D]=S,_[D]=y)}}}for(var O=0;O1&&arguments[1]!==void 0?arguments[1]:a,r=v(e),i=[],o=r;;){if(o==null)return t.spawn();var c=_(o),l=c.edge,u=c.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;l!=null&&i.unshift(l),o=u}return s.spawn(i)},x=0;x=0;l--){var u=c[l],d=u[1],f=u[2];(t[d]===o&&t[f]===s||t[d]===s&&t[f]===o)&&c.splice(l,1)}for(var p=0;pr;)t=wn(Math.floor(Math.random()*t.length),e,t),n--;return t},En={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil((Math.log(i)/Math.LN2)**2),s=Math.floor(i/Cn);if(i<2){Lt(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var c=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var c=e[s];a?isFinite(c)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var l=e.length,u=Math.floor(l/2);return l%2==0?(e[u-1+o]+e[u+o])/2:e[u+1+o]},Fn=function(e){return Math.PI*e/180},In=function(e,t){return Math.atan2(t,e)-Math.PI/2},Ln=Math.log2||function(e){return Math.log(e)/Math.log(2)},Rn=function(e){return e>0?1:e<0?-1:0},zn=function(e,t){return Math.sqrt(Bn(e,t))},Bn=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},Vn=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},qn=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Jn=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Yn=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Xn=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},Zn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Qn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=f(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},$n=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},er=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},tr=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},nr=function(e,t){return tr(e,t.x,t.y)},rr=function(e,t){return tr(e,t.x1,t.y1)&&tr(e,t.x2,t.y2)},ir=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)};function ar(e,t){if(e.length<3)throw Error(`Need at least 3 vertices`);var n=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},r=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},i=function(e,t){return{x:e.x*t,y:e.y*t}},a=function(e,t){return e.x*t.y-e.y*t.x},o=function(e){var t=ir(e.x,e.y);return t===0?{x:0,y:0}:{x:e.x/t,y:e.y/t}},s=function(e){for(var t=0,n=0;n7&&arguments[7]!==void 0?arguments[7]:`auto`,c=s===`auto`?jr(i,a):s,l=i/2,u=a/2;c=Math.min(c,l,u);var d=c!==l,f=c!==u,p;if(d){var m=n-l+c-o,h=r-u-o;if(p=Cr(e,t,n,r,m,h,n+l-c+o,h,!1),p.length>0)return p}if(f){var g=n+l+o;if(p=Cr(e,t,n,r,g,r-u+c-o,g,r+u-c+o,!1),p.length>0)return p}if(d){var _=n-l+c-o,v=r+u+o;if(p=Cr(e,t,n,r,_,v,n+l-c+o,v,!1),p.length>0)return p}if(f){var y=n-l-o;if(p=Cr(e,t,n,r,y,r-u+c-o,y,r+u-c+o,!1),p.length>0)return p}var b,x=n-l+c,S=r-u+c;if(b=xr(e,t,n,r,x,S,c+o),b.length>0&&b[0]<=x&&b[1]<=S)return[b[0],b[1]];var C=n+l-c,w=r-u+c;if(b=xr(e,t,n,r,C,w,c+o),b.length>0&&b[0]>=C&&b[1]<=w)return[b[0],b[1]];var T=n+l-c,E=r+u-c;if(b=xr(e,t,n,r,T,E,c+o),b.length>0&&b[0]>=T&&b[1]>=E)return[b[0],b[1]];var D=n-l+c,O=r+u-c;return b=xr(e,t,n,r,D,O,c+o),b.length>0&&b[0]<=D&&b[1]>=O?[b[0],b[1]]:[]},cr=function(e,t,n,r,i,a,o){var s=o,c=Math.min(n,i),l=Math.max(n,i),u=Math.min(r,a),d=Math.max(r,a);return c-s<=e&&e<=l+s&&u-s<=t&&t<=d+s},lr=function(e,t,n,r,i,a,o,s,c){var l={x1:Math.min(n,o,i)-c,x2:Math.max(n,o,i)+c,y1:Math.min(r,s,a)-c,y2:Math.max(r,s,a)+c};return!(el.x2||tl.y2)},ur=function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},dr=function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),c,l,u,d,f;if(s/=54,a=o*o*o+s*s,i[1]=0,d=t/3,a>0){l=s+Math.sqrt(a),l=l<0?-((-l)**(1/3)):l**(1/3),u=s-Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),i[0]=-d+l+u,d+=(l+u)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-u+l)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,a===0){f=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-d+2*f,i[4]=i[2]=-(f+d);return}o=-o,c=o*o*o,c=Math.acos(s/Math.sqrt(c)),f=2*Math.sqrt(o),i[0]=-d+f*Math.cos(c/3),i[2]=-d+f*Math.cos((c+2*Math.PI)/3),i[4]=-d+f*Math.cos((c+4*Math.PI)/3)},fr=function(e,t,n,r,i,a,o,s){var c=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,l=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,u=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,d=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,f=[];dr(c,l,u,d,f);for(var p=1e-7,m=[],h=0;h<6;h+=2)Math.abs(f[h+1])=0&&f[h]<=1&&m.push(f[h]);m.push(1),m.push(0);for(var g=-1,_,v,y,b=0;b=0?yc?(e-i)*(e-i)+(t-a)*(t-a):l-d},mr=function(e,t,n){for(var r,i,a,o,s,c=0,l=0;l=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&c++;else continue;return c%2!=0},hr=function(e,t,n,r,i,a,o,s,c){var l=Array(n.length),u;s[0]==null?u=s:(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2);for(var d=Math.cos(-u),f=Math.sin(-u),p=0;p0?_r(vr(l,-c)):l)},gr=function(e,t,n,r,i,a,o,s){for(var c=Array(n.length*2),l=0;l=0&&h<=1&&_.push(h),g>=0&&g<=1&&_.push(g),_.length===0)return[];var v=_[0]*s[0]+e,y=_[0]*s[1]+t;return _.length>1?_[0]==_[1]?[v,y]:[v,y,_[1]*s[0]+e,_[1]*s[1]+t]:[v,y]},Sr=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},Cr=function(e,t,n,r,i,a,o,s,c){var l=e-i,u=n-e,d=o-i,f=t-a,p=r-t,m=s-a,h=d*f-m*l,g=u*f-p*l,_=m*u-d*p;if(_!==0){var v=h/_,y=g/_,b=.001,x=0-b,S=1+b;return x<=v&&v<=S&&x<=y&&y<=S||c?[e+v*u,t+v*p]:[]}else if(h===0||g===0)return Sr(e,n,o)===o?[o,s]:Sr(e,n,i)===i?[i,a]:Sr(i,o,n)===n?[n,r]:[];else return[]},wr=function(e,t,n,r,i){var a=[],o=r/2,s=i/2,c=t,l=n;a.push({x:c+o*e[0],y:l+s*e[1]});for(var u=1;u0?_r(vr(u,-s)):u}else f=n;for(var m,h,g,_,v=0;v2){for(var p=[l[0],l[1]],m=(p[0]-e)**2+(p[1]-t)**2,h=1;hl&&(l=t)},get:function(e){return c[e]}},d=0;d0?v.edgesTo(_)[0]:_.edgesTo(v)[0];var b=r(y);_=_.id(),l[_]>l[m]+b&&(l[_]=l[m]+b,d.nodes.indexOf(_)<0?d.push(_):d.updateItem(_),c[_]=0,n[_]=[]),l[_]==l[m]+b&&(c[_]=c[_]+c[m],n[_].push(m))}else for(var x=0;x0;){for(var T=t.pop(),E=0;E0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},ti=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:ai,o=r,s,c,l=0;l=2?di(e,t,n,0,ci,li):di(e,t,n,0,si)},squaredEuclidean:function(e,t,n){return di(e,t,n,0,ci)},manhattan:function(e,t,n){return di(e,t,n,0,si)},max:function(e,t,n){return di(e,t,n,-1/0,ui)}};fi[`squared-euclidean`]=fi.squaredEuclidean,fi.squaredeuclidean=fi.squaredEuclidean;function pi(e,t,n,r,i,a){var o=E(e)?e:fi[e]||fi.euclidean;return t===0&&E(e)?o(i,a):o(t,n,r,i,a)}var mi=Kt({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),hi=function(e){return mi(e)},gi=function(e,t,n,r,i){var a=i===`kMedoids`?function(e){return r[e](n)}:function(e){return n[e]},o=function(e){return r[e](t)},s=n,c=t;return pi(e,r.length,a,o,s,c)},_i=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,c=0;cn)return!1;return!0},Si=function(e,t,n){for(var r=0;ro&&(o=t[c][l],s=l);i[s].push(e[c])}for(var u=0;u=i.threshold||i.mode===`dendrogram`&&e.length===1)return!1;var p=t[a],m=t[r[a]],h=i.mode===`dendrogram`?{left:p,right:m,key:p.key}:{value:p.value.concat(m.value),key:p.key};e[p.index]=h,e.splice(m.index,1),t[p.key]=h;for(var g=0;gn[m.key][_.key]&&(s=n[m.key][_.key])):i.linkage===`max`?(s=n[p.key][_.key],n[p.key][_.key]0&&r.push(i);return r},Ki=function(e,t,n){for(var r=[],i=0;io&&(a=c,o=t[i*e+c])}a>0&&r.push(a)}for(var l=0;lc&&(s=l,c=u)}n[i]=a[s]}return r=Ki(e,t,n),r},Ji=function(e){for(var t=this.cy(),n=this.nodes(),r=Hi(e),i={},a=0;a=E?(D=E,E=k,O=A):k>D&&(D=k);for(var j=0;j0);S[w%r.minIterations*o+L]=R,I+=R}if(I>0&&(w>=r.minIterations-1||w==r.maxIterations-1)){for(var z=0,B=0;B1||i>1)&&(o=!0),u[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&u[t].push(e.id())})}else d[t]=[void 0,e.target().id()]}):a.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?c?o=!0:c=t:s=t),u[t]=[],e.connectedEdges().forEach(function(e){return u[t].push(e.id())})):d[t]=[e.source().id(),e.target().id()]});var f={found:!1,trail:void 0};if(o)return f;if(c&&s)if(i){if(l&&c!=l)return f;l=c}else if(l&&c!=l&&s!=l)return f;else l||=c;else l||=a[0].id();var p=function(e){for(var t=e,n=[e],r,a,o;u[t].length;)r=u[t].shift(),a=d[r][0],o=d[r][1],t==o?!i&&t!=a&&(u[a]=u[a].filter(function(e){return e!=r}),t=a):(u[o]=u[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},m=[],h=[];for(h=p(l);h.length!=1;)u[h[0]].length==0?(m.unshift(a.getElementById(h.shift())),m.unshift(a.getElementById(h.shift()))):h=p(h.shift()).concat(h);for(var g in m.unshift(a.getElementById(h.shift())),u)if(u[g].length)return f;return f.found=!0,f.trail=this.spawn(m,!0),f}},Qi=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],c=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);c.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);c.merge(n),t[r].cutVertex?c.merge(i.filter(function(e){return e.isLoop()})):c.merge(i)})}),i.push(c)},c=function(l,u,d){l===d&&(r+=1),t[u]={id:n,low:n++,cutVertex:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.size()===0)i.push(e.spawn(e.getElementById(u)));else{var p,m,h,g;f.forEach(function(e){p=e.source().id(),m=e.target().id(),h=p===u?m:p,h!==d&&(g=e.id(),o[g]||(o[g]=!0,a.push({x:u,y:h,edge:e})),h in t?t[u].low=Math.min(t[u].low,t[h].id):(c(l,h,u),t[u].low=Math.min(t[u].low,t[h].low),t[u].id<=t[h].low&&(t[u].cutVertex=!0,s(u,h))))})}};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,c(n,n),t[n].cutVertex=r>1)}});var l=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(l),components:i}},$i={hopcroftTarjanBiconnected:Qi,htbc:Qi,htb:Qi,hopcroftTarjanBiconnectedComponents:Qi},ea=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var c=e.spawn();;){var l=i.pop();if(c.merge(e.getElementById(l)),t[l].low=t[s].index,t[l].explored=!0,l===s)break}var u=c.edgesWith(c),d=c.merge(u);r.push(d),a=a.difference(d)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},ta={tarjanStronglyConnected:ea,tsc:ea,tscc:ea,tarjanStronglyConnectedComponents:ea},na={};[an,hn,gn,vn,bn,Sn,En,Rr,Br,Hr,Wr,ii,ji,Bi,Yi,Zi,$i,ta].forEach(function(e){X(na,e)});var ra=0,ia=1,aa=2,oa=function(e){if(!(this instanceof oa))return new oa(e);this.id=`Thenable/1.0.7`,this.state=ra,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e==`function`&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};oa.prototype={fulfill:function(e){return sa(this,ia,`fulfillValue`,e)},reject:function(e){return sa(this,aa,`rejectReason`,e)},then:function(e,t){var n=this,r=new oa;return n.onFulfilled.push(ua(e,r,`fulfill`)),n.onRejected.push(ua(t,r,`reject`)),ca(n),r.proxy}};var sa=function(e,t,n,r){return e.state===ra&&(e.state=t,e[n]=r,ca(e)),e},ca=function(e){e.state===ia?la(e,`onFulfilled`,e.fulfillValue):e.state===aa&&la(e,`onRejected`,e.rejectReason)},la=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n-1}return Eo=t,Eo}var ko,Ao;function jo(){if(Ao)return ko;Ao=1;var e=yo();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return ko=t,ko}var Mo,No;function Po(){if(No)return Mo;No=1;var e=po(),t=So(),n=To(),r=Oo(),i=jo();function a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&n%1==0&&n0&&this.spawn(r).updateStyle().emit(`class`),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){D(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};hc.className=hc.classNames=hc.classes;var Z={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Y,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`};Z.variable=`(?:[\\w-.]|(?:\\\\`+Z.metaChar+`))+`,Z.className=`(?:[\\w-]|(?:\\\\`+Z.metaChar+`))+`,Z.value=Z.string+`|`+Z.number,Z.id=Z.variable,(function(){var e=Z.comparatorOp.split(`|`),t,n;for(n=0;n=0)&&t!==`=`&&(Z.comparatorOp+=`|\\!`+t)})();var gc=function(){return{checks:[]}},Q={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},_c=[{selector:`:selected`,matches:function(e){return e.selected()}},{selector:`:unselected`,matches:function(e){return!e.selected()}},{selector:`:selectable`,matches:function(e){return e.selectable()}},{selector:`:unselectable`,matches:function(e){return!e.selectable()}},{selector:`:locked`,matches:function(e){return e.locked()}},{selector:`:unlocked`,matches:function(e){return!e.locked()}},{selector:`:visible`,matches:function(e){return e.visible()}},{selector:`:hidden`,matches:function(e){return!e.visible()}},{selector:`:transparent`,matches:function(e){return e.transparent()}},{selector:`:grabbed`,matches:function(e){return e.grabbed()}},{selector:`:free`,matches:function(e){return!e.grabbed()}},{selector:`:removed`,matches:function(e){return e.removed()}},{selector:`:inside`,matches:function(e){return!e.removed()}},{selector:`:grabbable`,matches:function(e){return e.grabbable()}},{selector:`:ungrabbable`,matches:function(e){return!e.grabbable()}},{selector:`:animated`,matches:function(e){return e.animated()}},{selector:`:unanimated`,matches:function(e){return!e.animated()}},{selector:`:parent`,matches:function(e){return e.isParent()}},{selector:`:childless`,matches:function(e){return e.isChildless()}},{selector:`:child`,matches:function(e){return e.isChild()}},{selector:`:orphan`,matches:function(e){return e.isOrphan()}},{selector:`:nonorphan`,matches:function(e){return e.isChild()}},{selector:`:compound`,matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:`:loop`,matches:function(e){return e.isLoop()}},{selector:`:simple`,matches:function(e){return e.isSimple()}},{selector:`:active`,matches:function(e){return e.active()}},{selector:`:inactive`,matches:function(e){return!e.active()}},{selector:`:backgrounding`,matches:function(e){return e.backgrounding()}},{selector:`:nonbackgrounding`,matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return ce(e.selector,t.selector)}),vc=function(){for(var e={},t,n=0;n<_c.length;n++)t=_c[n],e[t.selector]=t.matches;return e}(),yc=function(e,t){return vc[e](t)},bc=`(`+_c.map(function(e){return e.selector}).join(`|`)+`)`,xc=function(e){return e.replace(RegExp(`\\\\(`+Z.metaChar+`)`,`g`),function(e,t){return t})},Sc=function(e,t,n){e[e.length-1]=n},Cc=[{name:`group`,query:!0,regex:`(`+Z.group+`)`,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:Q.GROUP,value:r===`*`?r:r+`s`})}},{name:`state`,query:!0,regex:bc,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:Q.STATE,value:r})}},{name:`id`,query:!0,regex:`\\#(`+Z.id+`)`,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:Q.ID,value:xc(r)})}},{name:`className`,query:!0,regex:`\\.(`+Z.className+`)`,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:Q.CLASS,value:xc(r)})}},{name:`dataExists`,query:!0,regex:`\\[\\s*(`+Z.variable+`)\\s*\\]`,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:Q.DATA_EXIST,field:xc(r)})}},{name:`dataCompare`,query:!0,regex:`\\[\\s*(`+Z.variable+`)\\s*(`+Z.comparatorOp+`)\\s*(`+Z.value+`)\\s*\\]`,populate:function(e,t,n){var r=f(n,3),i=r[0],a=r[1],o=r[2];o=RegExp(`^`+Z.string+`$`).exec(o)==null?parseFloat(o):o.substring(1,o.length-1),t.checks.push({type:Q.DATA_COMPARE,field:xc(i),operator:a,value:o})}},{name:`dataBool`,query:!0,regex:`\\[\\s*(`+Z.boolOp+`)\\s*(`+Z.variable+`)\\s*\\]`,populate:function(e,t,n){var r=f(n,2),i=r[0],a=r[1];t.checks.push({type:Q.DATA_BOOL,field:xc(a),operator:i})}},{name:`metaCompare`,query:!0,regex:`\\[\\[\\s*(`+Z.meta+`)\\s*(`+Z.comparatorOp+`)\\s*(`+Z.number+`)\\s*\\]\\]`,populate:function(e,t,n){var r=f(n,3),i=r[0],a=r[1],o=r[2];t.checks.push({type:Q.META_COMPARE,field:xc(i),operator:a,value:parseFloat(o)})}},{name:`nextQuery`,separator:!0,regex:Z.separator,populate:function(e,t){var n=e.currentSubject,r=e.edgeCount,i=e.compoundCount,a=e[e.length-1];return n!=null&&(a.subject=n,e.currentSubject=null),a.edgeCount=r,a.compoundCount=i,e.edgeCount=0,e.compoundCount=0,e[e.length++]=gc()}},{name:`directedEdge`,separator:!0,regex:Z.directedEdge,populate:function(e,t){if(e.currentSubject==null){var n=gc(),r=t,i=gc();return n.checks.push({type:Q.DIRECTED_EDGE,source:r,target:i}),Sc(e,t,n),e.edgeCount++,i}else{var a=gc(),o=t,s=gc();return a.checks.push({type:Q.NODE_SOURCE,source:o,target:s}),Sc(e,t,a),e.edgeCount++,s}}},{name:`undirectedEdge`,separator:!0,regex:Z.undirectedEdge,populate:function(e,t){if(e.currentSubject==null){var n=gc(),r=t,i=gc();return n.checks.push({type:Q.UNDIRECTED_EDGE,nodes:[r,i]}),Sc(e,t,n),e.edgeCount++,i}else{var a=gc(),o=t,s=gc();return a.checks.push({type:Q.NODE_NEIGHBOR,node:o,neighbor:s}),Sc(e,t,a),s}}},{name:`child`,separator:!0,regex:Z.child,populate:function(e,t){if(e.currentSubject==null){var n=gc(),r=gc(),i=e[e.length-1];return n.checks.push({type:Q.CHILD,parent:i,child:r}),Sc(e,t,n),e.compoundCount++,r}else if(e.currentSubject===t){var a=gc(),o=e[e.length-1],s=gc(),c=gc(),l=gc(),u=gc();return a.checks.push({type:Q.COMPOUND_SPLIT,left:o,right:s,subject:c}),c.checks=t.checks,t.checks=[{type:Q.TRUE}],u.checks.push({type:Q.TRUE}),s.checks.push({type:Q.PARENT,parent:u,child:l}),Sc(e,o,a),e.currentSubject=c,e.compoundCount++,l}else{var d=gc(),f=gc(),p=[{type:Q.PARENT,parent:d,child:f}];return d.checks=t.checks,t.checks=p,e.compoundCount++,f}}},{name:`descendant`,separator:!0,regex:Z.descendant,populate:function(e,t){if(e.currentSubject==null){var n=gc(),r=gc(),i=e[e.length-1];return n.checks.push({type:Q.DESCENDANT,ancestor:i,descendant:r}),Sc(e,t,n),e.compoundCount++,r}else if(e.currentSubject===t){var a=gc(),o=e[e.length-1],s=gc(),c=gc(),l=gc(),u=gc();return a.checks.push({type:Q.COMPOUND_SPLIT,left:o,right:s,subject:c}),c.checks=t.checks,t.checks=[{type:Q.TRUE}],u.checks.push({type:Q.TRUE}),s.checks.push({type:Q.ANCESTOR,ancestor:u,descendant:l}),Sc(e,o,a),e.currentSubject=c,e.compoundCount++,l}else{var d=gc(),f=gc(),p=[{type:Q.ANCESTOR,ancestor:d,descendant:f}];return d.checks=t.checks,t.checks=p,e.compoundCount++,f}}},{name:`subject`,modifier:!0,regex:Z.subject,populate:function(e,t){if(e.currentSubject!=null&&e.currentSubject!==t)return zt("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=t;var n=e[e.length-1].checks[0],r=n==null?null:n.type;r===Q.DIRECTED_EDGE?n.type=Q.NODE_TARGET:r===Q.UNDIRECTED_EDGE&&(n.type=Q.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Cc.forEach(function(e){return e.regexObj=RegExp(`^`+e.regex)});var wc=function(e){for(var t,n,r,i=0;i0&&l.edgeCount>0)return zt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return zt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;l.edgeCount===1&&zt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(e){return e??``},t=function(t){return T(t)?`"`+t+`"`:e(t)},n=function(e){return` `+e+` `},r=function(r,a){var o=r.type,s=r.value;switch(o){case Q.GROUP:var c=e(s);return c.substring(0,c.length-1);case Q.DATA_COMPARE:var l=r.field,u=r.operator;return`[`+l+n(e(u))+t(s)+`]`;case Q.DATA_BOOL:var d=r.operator,f=r.field;return`[`+e(d)+f+`]`;case Q.DATA_EXIST:return`[`+r.field+`]`;case Q.META_COMPARE:var p=r.operator;return`[[`+r.field+n(e(p))+t(s)+`]]`;case Q.STATE:return s;case Q.ID:return`#`+s;case Q.CLASS:return`.`+s;case Q.PARENT:case Q.CHILD:return i(r.parent,a)+n(`>`)+i(r.child,a);case Q.ANCESTOR:case Q.DESCENDANT:return i(r.ancestor,a)+` `+i(r.descendant,a);case Q.COMPOUND_SPLIT:var m=i(r.left,a),h=i(r.subject,a),g=i(r.right,a);return m+(m.length>0?` `:``)+h+g;case Q.TRUE:return``}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&a===0?`$`:``)+r(i,t)},``)},a=``,o=0;o1&&o=0&&(t=t.replace(`!`,``),u=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),l=!0),(i||o||l)&&(s=!i&&!a?``:``+e,c=``+n),l&&(e=s=s.toLowerCase(),n=c=c.toLowerCase()),t){case`*=`:r=s.indexOf(c)>=0;break;case`$=`:r=s.indexOf(c,s.length-c.length)>=0;break;case`^=`:r=s.indexOf(c)===0;break;case`=`:r=e===n;break;case`>`:d=!0,r=e>n;break;case`>=`:d=!0,r=e>=n;break;case`<`:d=!0,r=e0;){var l=i.shift();t(l),a.add(l.id()),o&&r(i,a,l)}return e}function Vc(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return Bc(this,e,t,Vc)};function Hc(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}zc.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Bc(this,e,t,Hc)};function Uc(e,t,n){Hc(e,t,n),Vc(e,t,n)}zc.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Bc(this,e,t,Uc)},zc.ancestors=zc.parents;var Wc=Gc={data:pc.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:pc.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:pc.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:pc.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:pc.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:pc.removeData({field:`rscratch`,triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},Gc;Wc.attr=Wc.data,Wc.removeAttr=Wc.removeData;var Kc=Gc,qc={};function Jc(e){return function(t){var n=this;if(t===void 0&&(t=!0),n.length!==0)if(n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;ot}),minIndegree:Yc(`indegree`,function(e,t){return et}),minOutdegree:Yc(`outdegree`,function(e,t){return et})}),X(qc,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,d=u;u&&(l=l[0]);var f=d?l.position():{x:0,y:0};t===void 0?i!==void 0&&c.position({x:i.x+f.x,y:i.y+f.y}):c.position(e,t+f[e])}else{var p=n.position(),m=o?n.parent():null,h=m&&m.length>0,g=h;h&&(m=m[0]);var _=g?m.position():{x:0,y:0};return i={x:p.x-_.x,y:p.y-_.y},e===void 0?i:i[e]}else if(!a)return;return this}},Xc.modelPosition=Xc.point=Xc.position,Xc.modelPositions=Xc.points=Xc.positions,Xc.renderedPoint=Xc.renderedPosition,Xc.relativePoint=Xc.relativePosition;var el=Zc,tl=nl={},nl;nl.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,c=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:c,w:o-a,h:c-s}},nl.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},nl.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function n(e){if(!e.isParent())return;var t=e._private,n=e.children(),r=e.pstyle(`compound-sizing-wrt-labels`).value===`include`,i={width:{val:e.pstyle(`min-width`).pfValue,left:e.pstyle(`min-width-bias-left`),right:e.pstyle(`min-width-bias-right`)},height:{val:e.pstyle(`min-height`).pfValue,top:e.pstyle(`min-height-bias-top`),bottom:e.pstyle(`min-height-bias-bottom`)}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;(a.w===0||a.h===0)&&(a={w:e.pstyle(`width`).pfValue,h:e.pstyle(`height`).pfValue},a.x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);function s(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}function c(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}var l=i.width.left.value;i.width.left.units===`px`&&i.width.val>0&&(l=l*100/i.width.val);var u=i.width.right.value;i.width.right.units===`px`&&i.width.val>0&&(u=u*100/i.width.val);var d=i.height.top.value;i.height.top.units===`px`&&i.height.val>0&&(d=d*100/i.height.val);var f=i.height.bottom.value;i.height.bottom.units===`px`&&i.height.val>0&&(f=f*100/i.height.val);var p=s(i.width.val-a.w,l,u),m=p.biasDiff,h=p.biasComplementDiff,g=s(i.height.val-a.h,d,f),_=g.biasDiff,v=g.biasComplementDiff;t.autoPadding=c(a.w,a.h,e.pstyle(`padding`),e.pstyle(`padding-relative-to`).value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-m+a.x1+a.x2+h)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-_+a.y1+a.y2+v)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},al=function(e,t){return t==null?e:il(e,t.x1,t.y1,t.x2,t.y2)},ol=function(e,t,n){return Xt(e,t,n)},sl=function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,c;if(o!==`none`){n===`source`?(s=i.srcX,c=i.srcY):n===`target`?(s=i.tgtX,c=i.tgtY):(s=i.midX,c=i.midY);var l=r.arrowBounds=r.arrowBounds||{},u=l[n]=l[n]||{};u.x1=s-a,u.y1=c-a,u.x2=s+a,u.y2=c+a,u.w=u.x2-u.x1,u.h=u.y2-u.y1,Zn(u,1),il(e,u.x1,u.y1,u.x2,u.y2)}}},cl=function(e,t,n){if(!t.cy().headless()){var r=n?n+`-`:``,i=t._private,a=i.rstyle;if(t.pstyle(r+`label`).strValue){var o=t.pstyle(`text-halign`),s=t.pstyle(`text-valign`),c=ol(a,`labelWidth`,n),l=ol(a,`labelHeight`,n),u=ol(a,`labelX`,n),d=ol(a,`labelY`,n),f=t.pstyle(r+`text-margin-x`).pfValue,p=t.pstyle(r+`text-margin-y`).pfValue,m=t.isEdge(),h=t.pstyle(r+`text-rotation`),g=t.pstyle(`text-outline-width`).pfValue,_=t.pstyle(`text-border-width`).pfValue/2,v=t.pstyle(`text-background-padding`).pfValue,y=2,b=l,x=c,S=x/2,C=b/2,w,T,E,D;if(m)w=u-S,T=u+S,E=d-C,D=d+C;else{switch(o.value){case`left`:w=u-x,T=u;break;case`center`:w=u-S,T=u+S;break;case`right`:w=u,T=u+x;break}switch(s.value){case`top`:E=d-b,D=d;break;case`center`:E=d-C,D=d+C;break;case`bottom`:E=d,D=d+b;break}}var O=f-Math.max(g,_)-v-y,k=f+Math.max(g,_)+v+y,A=p-Math.max(g,_)-v-y,j=p+Math.max(g,_)+v+y;w+=O,T+=k,E+=A,D+=j;var M=n||`main`,N=i.labelBounds,P=N[M]=N[M]||{};P.x1=w,P.y1=E,P.x2=T,P.y2=D,P.w=T-w,P.h=D-E,P.leftPad=O,P.rightPad=k,P.topPad=A,P.botPad=j;var F=m&&h.strValue===`autorotate`,I=h.pfValue!=null&&h.pfValue!==0;if(F||I){var L=F?ol(i.rstyle,`labelAngle`,n):h.pfValue,R=Math.cos(L),z=Math.sin(L),B=(w+T)/2,V=(E+D)/2;if(!m){switch(o.value){case`left`:B=T;break;case`right`:B=w;break}switch(s.value){case`top`:V=D;break;case`bottom`:V=E;break}}var H=function(e,t){return e-=B,t-=V,{x:e*R-t*z+B,y:e*z+t*R+V}},U=H(w,E),W=H(w,D),G=H(T,E),K=H(T,D);w=Math.min(U.x,W.x,G.x,K.x),T=Math.max(U.x,W.x,G.x,K.x),E=Math.min(U.y,W.y,G.y,K.y),D=Math.max(U.y,W.y,G.y,K.y)}var q=M+`Rot`,J=N[q]=N[q]||{};J.x1=w,J.y1=E,J.x2=T,J.y2=D,J.w=T-w,J.h=D-E,il(e,w,E,T,D),il(i.labelBounds.all,w,E,T,D)}return e}},ll=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;ul(e,t,n,r,`outside`,r/2)}},ul=function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var c=t.position(),l=c.x,u=c.y,d=t.width(),f=t.height();s.hasMiterBounds?(i===`center`&&(r/=2),al(e,s.miterBounds(l,u,d,f,r))):a!=null&&a>0&&Qn(e,[a,a,a,a])}}},dl=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;ul(e,t,n,r,i)}},fl=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=Kn(),o=e._private,s=e.isNode(),c=e.isEdge(),l,u,d,f,p,m,h=o.rstyle,g=s&&r?e.pstyle(`bounds-expansion`).pfValue:[0],_=function(e){return e.pstyle(`display`).value!==`none`},v=!r||_(e)&&(!c||_(e.source())&&_(e.target()));if(v){var y=0,b=0;r&&t.includeOverlays&&(y=e.pstyle(`overlay-opacity`).value,y!==0&&(b=e.pstyle(`overlay-padding`).value));var x=0,S=0;r&&t.includeUnderlays&&(x=e.pstyle(`underlay-opacity`).value,x!==0&&(S=e.pstyle(`underlay-padding`).value));var C=Math.max(b,S),w=0,T=0;if(r&&(w=e.pstyle(`width`).pfValue,T=w/2),s&&t.includeNodes){var E=e.position();p=E.x,m=E.y;var D=e.outerWidth()/2,O=e.outerHeight()/2;l=p-D,u=p+D,d=m-O,f=m+O,il(a,l,d,u,f),r&&ll(a,e),r&&t.includeOutlines&&!i&&ll(a,e),r&&dl(a,e)}else if(c&&t.includeEdges)if(r&&!i){var k=e.pstyle(`curve-style`).strValue;if(l=Math.min(h.srcX,h.midX,h.tgtX),u=Math.max(h.srcX,h.midX,h.tgtX),d=Math.min(h.srcY,h.midY,h.tgtY),f=Math.max(h.srcY,h.midY,h.tgtY),l-=T,u+=T,d-=T,f+=T,il(a,l,d,u,f),k===`haystack`){var A=h.haystackPts;if(A&&A.length===2){if(l=A[0].x,d=A[0].y,u=A[1].x,f=A[1].y,l>u){var j=l;l=u,u=j}if(d>f){var M=d;d=f,f=M}il(a,l-T,d-T,u+T,f+T)}}else if(k===`bezier`||k===`unbundled-bezier`||ee(k,`segments`)||ee(k,`taxi`)){var N;switch(k){case`bezier`:case`unbundled-bezier`:N=h.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:N=h.linePts;break}if(N!=null)for(var P=0;Pu){var R=l;l=u,u=R}if(d>f){var z=d;d=f,f=z}l-=T,u+=T,d-=T,f+=T,il(a,l,d,u,f)}if(r&&t.includeEdges&&c&&(sl(a,e,`mid-source`),sl(a,e,`mid-target`),sl(a,e,`source`),sl(a,e,`target`)),r&&e.pstyle(`ghost`).value===`yes`){var B=e.pstyle(`ghost-offset-x`).pfValue,V=e.pstyle(`ghost-offset-y`).pfValue;il(a,a.x1+B,a.y1+V,a.x2+B,a.y2+V)}var H=o.bodyBounds=o.bodyBounds||{};$n(H,a),Qn(H,g),Zn(H,1),r&&(l=a.x1,u=a.x2,d=a.y1,f=a.y2,il(a,l-C,d-C,u+C,f+C));var U=o.overlayBounds=o.overlayBounds||{};$n(U,a),Qn(U,g),Zn(U,1);var W=o.labelBounds=o.labelBounds||{};W.all==null?W.all=Kn():Jn(W.all),r&&t.includeLabels&&(t.includeMainLabels&&cl(a,e,null),c&&(t.includeSourceLabels&&cl(a,e,`source`),t.includeTargetLabels&&cl(a,e,`target`)))}return a.x1=rl(a.x1),a.y1=rl(a.y1),a.x2=rl(a.x2),a.y2=rl(a.y2),a.w=rl(a.x2-a.x1),a.h=rl(a.y2-a.y1),a.w>0&&a.h>0&&v&&(Qn(a,g),Zn(a,1)),a},pl=function(e){var t=0,n=function(e){return+!!e<0&&arguments[0]!==void 0?arguments[0]:Ll,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},zl.removeAllListeners=function(){return this.removeListener(`*`)},zl.emit=zl.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,D(t)||(t=[t]),Hl(this,function(e,a){n!=null&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(){var n=r[s];if(n.type===a.type&&(!n.namespace||n.namespace===a.namespace||n.namespace===Pl)&&e.eventMatches(e.context,n,a)){var i=[a];t!=null&&Yt(i,t),e.beforeEmit(e.context,n,a),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var o=e.callbackContext(e.context,n,a),c=n.callback.apply(o,i);e.afterEmit(e.context,n,a),c===!1&&(a.stopPropagation(),a.preventDefault())}},s=0;s1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&T(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:g(Symbol))!=e&&g(Symbol.iterator)!=e&&(Xl[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return s({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(O(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(T(e))if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,t,r),this.emitAndNotify(`style`);else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(u[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),lu.neighbourhood=lu.neighborhood,lu.closedNeighbourhood=lu.closedNeighborhood,lu.openNeighbourhood=lu.openNeighborhood,X(lu,{source:Rc(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`source`),target:Rc(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`target`),sources:pu({attr:`source`}),targets:pu({attr:`target`})});function pu(e){return function(t){for(var n=[],r=0;r0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),lu.componentsOf=lu.components;var gu=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Lt(`A collection must have a reference to the core`);return}var i=new Qt,a=!1;if(!t)t=[];else if(t.length>0&&O(t[0])&&!P(t[0])){a=!0;for(var o=[],s=new tn,c=0,l=t.length;c0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),i=r._private,a=[],o=[],s,c=0,l=n.length;c0){for(var I=s.length===n.length?n:new gu(r,s),L=0;L0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?E.emitAndNotify(`remove`):t&&E.emit(`remove`));for(var D=0;D0?i=c:r=c;while(Math.abs(a)>o&&++l=a?v(t,u):d===0?u:b(t,r,r+l)}var S=!1;function C(){S=!0,(e!==t||n!==r)&&y()}var w=function(i){return S||C(),e===t&&n===r?i:i===0?0:i===1?1:g(x(i),t,r)};w.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var T=`generateBezier(`+[e,t,n,r]+`)`;return w.toString=function(){return T},w}var bu=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var i={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function n(n,r){var i={dx:n.v,dv:e(n)},a=t(n,r*.5,i),o=t(n,r*.5,a),s=t(n,r,o),c=1/6*(i.dx+2*(a.dx+o.dx)+s.dx),l=1/6*(i.dv+2*(a.dv+o.dv)+s.dv);return n.x+=c*r,n.v+=l*r,n}return function e(t,r,i){var a={x:-1,v:0,tension:null,friction:null},o=[0],s=0,c=1/1e4,l=16/1e3,u,d,f;for(t=parseFloat(t)||500,r=parseFloat(r)||20,i||=null,a.tension=t,a.friction=r,u=i!==null,u?(s=e(t,r),d=s/i*l):d=l;f=n(f||a,d),o.push(1+f.x),s+=16,Math.abs(f.x)>c&&Math.abs(f.v)>c;);return u?function(e){return o[e*(o.length-1)|0]}:s}}(),xu=function(e,t,n,r){var i=yu(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},Su={linear:function(e,t,n){return e+(t-e)*n},ease:xu(.25,.1,.25,1),"ease-in":xu(.42,0,1,1),"ease-out":xu(0,0,.58,1),"ease-in-out":xu(.42,0,.58,1),"ease-in-sine":xu(.47,0,.745,.715),"ease-out-sine":xu(.39,.575,.565,1),"ease-in-out-sine":xu(.445,.05,.55,.95),"ease-in-quad":xu(.55,.085,.68,.53),"ease-out-quad":xu(.25,.46,.45,.94),"ease-in-out-quad":xu(.455,.03,.515,.955),"ease-in-cubic":xu(.55,.055,.675,.19),"ease-out-cubic":xu(.215,.61,.355,1),"ease-in-out-cubic":xu(.645,.045,.355,1),"ease-in-quart":xu(.895,.03,.685,.22),"ease-out-quart":xu(.165,.84,.44,1),"ease-in-out-quart":xu(.77,0,.175,1),"ease-in-quint":xu(.755,.05,.855,.06),"ease-out-quint":xu(.23,1,.32,1),"ease-in-out-quint":xu(.86,0,.07,1),"ease-in-expo":xu(.95,.05,.795,.035),"ease-out-expo":xu(.19,1,.22,1),"ease-in-out-expo":xu(1,0,0,1),"ease-in-circ":xu(.6,.04,.98,.335),"ease-out-circ":xu(.075,.82,.165,1),"ease-in-out-circ":xu(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return Su.linear;var r=bu(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":xu};function Cu(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}function wu(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}function Tu(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=wu(e,i),s=wu(t,i);if(A(o)&&A(s))return Cu(a,o,s,n,r);if(D(o)&&D(s)){for(var c=[],l=0;l0?(d===`spring`&&f.push(o.duration),o.easingImpl=Su[d].apply(null,f)):o.easingImpl=Su[d]}var p=o.easingImpl,m=o.duration===0?1:(n-c)/o.duration;if(o.applying&&(m=o.progress),m<0?m=0:m>1&&(m=1),o.delay==null){var h=o.startPosition,g=o.position;if(g&&i&&!e.locked()){var _={};Du(h.x,g.x)&&(_.x=Tu(h.x,g.x,m,p)),Du(h.y,g.y)&&(_.y=Tu(h.y,g.y,m,p)),e.position(_)}var v=o.startPan,y=o.pan,b=a.pan,x=y!=null&&r;x&&(Du(v.x,y.x)&&(b.x=Tu(v.x,y.x,m,p)),Du(v.y,y.y)&&(b.y=Tu(v.y,y.y,m,p)),e.emit(`pan`));var S=o.startZoom,C=o.zoom,w=C!=null&&r;w&&(Du(S,C)&&(a.zoom=Gn(a.minZoom,Tu(S,C,m,p),a.maxZoom)),e.emit(`zoom`)),(x||w)&&e.emit(`viewport`);var E=o.style;if(E&&E.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},u=a.length-1;u>=0;u--){var d=a[u],f=d._private;if(f.stopped){a.splice(u,1),f.hooked=!1,f.playing=!1,f.started=!1,l(f.frames);continue}!f.playing&&!f.applying||(f.playing&&f.applying&&(f.applying=!1),f.started||Ou(t,d,e),Eu(t,d,e,n),f.applying&&=!1,l(f.frames),f.step!=null&&f.step(e),d.completed()&&(a.splice(u,1),f.hooked=!1,f.playing=!1,f.started=!1,l(f.completes)),s=!0)}return!n&&a.length===0&&o.length===0&&r.push(t),s}for(var a=!1,o=0;o0?t.notify(`draw`,n):t.notify(`draw`)),n.unmerge(r),t.emit(`step`)}var Au={animate:pc.animate(),animation:pc.animation(),animated:pc.animated(),clearQueue:pc.clearQueue(),delay:pc.delay(),delayAnimation:pc.delayAnimation(),stop:pc.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&dt(function(n){ku(n,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(t,n){ku(n,e)},n.beforeRenderPriorities.animations):t()}},ju={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r==null?!0:e!==n.target&&P(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier==null?e:n.target}},Mu=function(e){return T(e)?new Fc(e):e},Nu={createEmitter:function(){var e=this._private;return e.emitter||=new Rl(ju,this),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,Mu(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,Mu(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,Mu(t),n),this},once:function(e,t,n){return this.emitter().one(e,Mu(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};pc.eventAliasesOn(Nu);var Pu={png:function(e){var t=this._private.renderer;return e||={},t.png(e)},jpg:function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)}};Pu.jpeg=Pu.jpg;var Fu={layout:function(e){var t=this;if(e==null){Lt(`Layout options must be specified to make a layout`);return}if(e.name==null){Lt("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){Lt("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}return new r(X({},e,{cy:t,eles:T(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles}))}};Fu.createLayout=Fu.makeLayout=Fu.layout;var Iu={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount??=0,e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on(`render`,e)},offRender:function(e){return this.off(`render`,e)}};Ru.invalidateDimensions=Ru.resize;var zu={collection:function(e,t){return T(e)?this.$(e):N(e)?e.collection():D(e)?(t||={},new gu(this,e,t.unique,t.removed)):new gu(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};zu.elements=zu.filter=zu.$;var Bu={},Vu=`t`,Hu=`f`;Bu.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(f||d&&p){var m=void 0;f&&p||f?m=l.properties:p&&(m=l.mappedProperties);for(var h=0;h1&&(b=1),s.color){var S=r.valueMin[0],C=r.valueMax[0],w=r.valueMin[1],T=r.valueMax[1],E=r.valueMin[2],D=r.valueMax[2],O=r.valueMin[3]==null?1:r.valueMin[3],k=r.valueMax[3]==null?1:r.valueMax[3],j=[Math.round(S+(C-S)*b),Math.round(w+(T-w)*b),Math.round(E+(D-E)*b),Math.round(O+(k-O)*b)];a={bypass:r.bypass,name:r.name,value:j,strValue:`rgb(`+j[0]+`, `+j[1]+`, `+j[2]+`)`}}else if(s.number){var M=r.valueMin+(r.valueMax-r.valueMin)*b;a=this.parse(r.name,M,r.bypass,f)}else return!1;if(!a)return h(),!1;a.mapping=r,r=a;break;case o.data:for(var N=r.field.split(`.`),P=d.data,F=0;F0&&a>0){for(var s={},c=!1,l=0;l0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},Bu.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},Bu.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},Bu.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},Bu.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Bu.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Bu.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)};var Uu={};Uu.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;si.length?r.substr(i.length):``}function c(){a=a.length>o.length?a.substr(o.length):``}for(;!r.match(/^\s*$/);){var l=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){zt(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+r);break}i=l[0];var u=l[1];if(u!==`core`&&new Fc(u).invalid){zt(`Skipping parsing of block: Invalid selector found in string stylesheet: `+u),s();continue}var d=l[2],f=!1;a=d;for(var p=[];!a.match(/^\s*$/);){var m=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!m){zt(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+d),f=!0;break}o=m[0];var h=m[1],g=m[2];if(!t.properties[h]){zt(`Skipping property: Invalid property name in: `+o),c();continue}if(!n.parse(h,g)){zt(`Skipping property: Invalid property definition in: `+o),c();continue}p.push({name:h,val:g}),c()}if(f){s();break}n.selector(u);for(var _=0;_=7&&t[0]===`d`&&(u=new RegExp(s.data.regex).exec(t))){if(n)return!1;var f=s.data;return{name:e,value:u,strValue:``+t,mapped:f,field:u[1],bypass:n}}else if(t.length>=10&&t[0]===`m`&&(d=new RegExp(s.mapData.regex).exec(t))){if(n||l.multiple)return!1;var p=s.mapData;if(!(l.color||l.number))return!1;var m=this.parse(e,d[4]);if(!m||m.mapped)return!1;var h=this.parse(e,d[5]);if(!h||h.mapped)return!1;if(m.pfValue===h.pfValue||m.strValue===h.strValue)return zt("`"+e+`: `+t+"` is not a valid mapper because the output range is zero; converting to `"+e+`: `+m.strValue+"`"),this.parse(e,m.strValue);if(l.color){var g=m.value,_=h.value;if(g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&(g[3]===_[3]||(g[3]==null||g[3]===1)&&(_[3]==null||_[3]===1)))return!1}return{name:e,value:d,strValue:``+t,mapped:p,field:d[1],fieldMin:parseFloat(d[2]),fieldMax:parseFloat(d[3]),valueMin:m.value,valueMax:h.value,bypass:n}}}if(l.multiple&&r!==`multiple`){var v=c?t.split(/\s+/):D(t)?t:[t];if(l.evenMultiple&&v.length%2!=0)return null;for(var y=[],b=[],x=[],S=``,C=!1,w=0;w0?` `:``)+O.strValue}return l.validate&&!l.validate(y,b)?null:l.singleEnum&&C?y.length===1&&T(y[0])?{name:e,value:y[0],strValue:y[0],bypass:n}:null:{name:e,value:y,pfValue:x,strValue:S,bypass:n,units:b}}var k=function(){for(var r=0;rl.max||l.strictMax&&t===l.max))return null;var F={name:e,value:t,strValue:``+t+(A||``),units:A,bypass:n};return l.unitless||A!==`px`&&A!==`em`?F.pfValue=t:F.pfValue=A===`px`||!A?t:this.getEmSizeInPixels()*t,(A===`ms`||A===`s`)&&(F.pfValue=A===`ms`?t:1e3*t),(A===`deg`||A===`rad`)&&(F.pfValue=A===`rad`?t:Fn(t)),A===`%`&&(F.pfValue=t/100),F}else if(l.propList){var I=[],L=``+t;if(L!==`none`){for(var R=L.split(/\s*,\s*|\s+/),z=0;z0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),A(e)?a=e:O(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=On(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var c=e.pan;A(c.x)&&(t.pan.x=c.x,o=!1),A(c.y)&&(t.pan.y=c.y,o=!1),o||i.push(`pan`)}return i.length>0&&(i.push(`viewport`),this.emit(i.join(` `)),this.notify(`viewport`)),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(T(e)){var n=e;e=this.mutableElements().filter(n)}else N(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var e=n.window().getComputedStyle(t),r=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-r(`padding-left`)-r(`padding-right`),height:t.clientHeight-r(`padding-top`)-r(`padding-bottom`)}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};ed.centre=ed.center,ed.autolockNodes=ed.autolock,ed.autoungrabifyNodes=ed.autoungrabify;var td={data:pc.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:pc.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:pc.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:pc.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})};td.attr=td.data,td.removeAttr=td.removeData;var nd=function(e){var t=this;e=X({},e);var n=e.container;n&&!M(n)&&M(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r||={},r&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=v!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=X({name:a?`grid`:`null`},o.layout),o.renderer=X({name:a?`canvas`:`null`},o.renderer);var s=function(e,t,n){return t===void 0?n===void 0?e:n:t},c=this._private={container:n,ready:!1,options:o,elements:new gu(this),listeners:[],aniEles:new gu(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:A(o.zoom)?o.zoom:1,pan:{x:O(o.pan)&&A(o.pan.x)?o.pan.x:0,y:O(o.pan)&&A(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var l=function(e,t){if(e.some(H))return fa.all(e).then(t);t(e)};c.styleEnabled&&t.setStyle([]);var u=X({},o,o.renderer);t.initRenderer(u);var d=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),e!=null&&(O(e)||D(e))&&t.add(e),t.one(`layoutready`,function(e){t.notifications(!0),t.emit(e),t.one(`load`,n),t.emitAndNotify(`load`)}).one(`layoutstop`,function(){t.one(`done`,r),t.emit(`done`)});var a=X({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};l([o.style,o.elements],function(e){var n=e[0],a=e[1];c.styleEnabled&&t.style().append(n),d(a,function(){t.startAnimationLoop(),c.ready=!0,E(o.ready)&&t.on(`ready`,o.ready);for(var e=0;e0,s=!!e.boundingBox,c=Kn(s?e.boundingBox:structuredClone(t.extent())),l;if(N(e.roots))l=e.roots;else if(D(e.roots)){for(var u=[],d=0;d0;){var M=j(),P=E(M,k);if(P)M.outgoers().filter(function(e){return e.isNode()&&n.has(e)}).forEach(A);else if(P===null){zt("Detected double maximal shift for node `"+M.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var F=0;if(e.avoidOverlap)for(var I=0;I0&&_[0].length<=3?a/2:0),l=2*Math.PI/_[r].length*i;return r===0&&_[0].length===1&&(o=1),{x:ee.x+o*Math.cos(l),y:ee.y+o*Math.sin(l)}}else{var u=_[r].length,d=Math.max(u===1?0:s?(c.w-e.padding*2-Y.w)/((e.grid?ne:u)-1):(c.w-e.padding*2-Y.w)/((e.grid?ne:u)+1),F);return{x:ee.x+(i+1-(u+1)/2)*d,y:ee.y+(r+1-(U+1)/2)*te}}},ie={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(ie).indexOf(e.direction)===-1&&Lt(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(ie).join(`, `)}`),n.nodes().layoutPositions(this,e,function(t){return Ot(re(t),c,ie[e.direction])}),this};var ld={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function ud(e){this.options=X({},ld,e)}ud.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,a=r.nodes().not(`:parent`);t.sort&&(a=a.sort(t.sort));for(var o=Kn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=(t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),l,u=0,d=0;d1&&t.avoidOverlap){u*=1.75;var h=Math.cos(c)-Math.cos(0),g=Math.sin(c)-Math.sin(0),_=Math.sqrt(u*u/(h*h+g*g));l=Math.max(_,l)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*c*(i?1:-1),a=l*Math.cos(r),o=l*Math.sin(r);return{x:s.x+a,y:s.y+o}}),this};var dd={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function fd(e){this.options=X({},dd,e)}fd.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=Kn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=[],l=0,u=0;u0&&Math.abs(_[0].value-y.value)>=h&&(_=[],g.push(_)),_.push(y)}var b=l+t.minNodeSpacing;if(!t.avoidOverlap){var x=g.length>0&&g[0].length>1,S=(Math.min(o.w,o.h)/2-b)/(g.length+x?1:0);b=Math.min(b,S)}for(var C=0,w=0;w1&&t.avoidOverlap){var D=Math.cos(E)-Math.cos(0),O=Math.sin(E)-Math.sin(0),k=Math.sqrt(b*b/(D*D+O*O));C=Math.max(k,C)}T.r=C,C+=b}if(t.equidistant){for(var A=0,j=0,M=0;M=e.numIter||(Cd(r,e),r.temperature*=e.coolingFactor,r.temperature=e.animationThreshold&&a(),dt(u)):(Fd(r,e),s())};u()}else{for(;l;)l=o(c),c++;Fd(r,e),s()}return this},hd.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},hd.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var gd=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=Kn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),c={},l=0;l0){o.graphSet.push(C);for(var l=0;lr.count?0:r.graph},vd=function(e,t,n,r){var i=r.graphSet[n];if(-10)var c=r.nodeOverlap*s,l=Math.sqrt(i*i+a*a),u=c*i/l,d=c*a/l;else var f=Od(e,i,a),p=Od(t,-1*i,-1*a),m=p.x-f.x,h=p.y-f.y,g=m*m+h*h,l=Math.sqrt(g),c=(e.nodeRepulsion+t.nodeRepulsion)/g,u=c*m/l,d=c*h/l;e.isLocked||(e.offsetX-=u,e.offsetY-=d),t.isLocked||(t.offsetX+=u,t.offsetY+=d)}},Dd=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},Od=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,c=a/o,l={};return t===0&&0n?(l.x=r,l.y=i+a/2,l):0t&&-1*c<=s&&s<=c?(l.x=r-o/2,l.y=i-o*n/2/t,l):0=c)?(l.x=r+a*t/2/n,l.y=i+a/2,l):0>n&&(s<=-1*c||s>=c)?(l.x=r-a*t/2/n,l.y=i-a/2,l):l},kd=function(e,t){for(var n=0;nn){var h=t.gravity*f/m,g=t.gravity*p/m;d.offsetX+=h,d.offsetY+=g}}}}},jd=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],c=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},Pd=function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padToph&&(f+=m+t.componentSpacing,d=0,p=0,m=0)}}},Id={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Ld(e){this.options=X({},Id,e)}Ld.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(`:parent`);t.sort&&(i=i.sort(t.sort));var a=Kn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(a.h===0||a.w===0)r.nodes().layoutPositions(this,t,function(e){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),c=Math.round(s),l=Math.round(a.w/a.h*s),u=function(e){if(e==null)return Math.min(c,l);Math.min(c,l)==c?c=e:l=e},d=function(e){if(e==null)return Math.max(c,l);Math.max(c,l)==c?c=e:l=e},f=t.rows,p=t.cols==null?t.columns:t.cols;if(f!=null&&p!=null)c=f,l=p;else if(f!=null&&p==null)c=f,l=Math.ceil(o/c);else if(f==null&&p!=null)l=p,c=Math.ceil(o/l);else if(l*c>o){var m=u(),h=d();(m-1)*h>=o?u(m-1):(h-1)*m>=o&&d(h-1)}else for(;l*c=o?d(_+1):u(g+1)}var v=a.w/l,y=a.h/c;if(t.condense&&(v=0,y=0),t.avoidOverlap)for(var b=0;b=l&&(j=0,A++)},N={},P=0;P(y=pr(e,t,b[x],b[x+1],b[x+2],b[x+3])))return g(n,y),!0}else if(o.edgeType===`bezier`||o.edgeType===`multibezier`||o.edgeType===`self`||o.edgeType===`compound`){for(var b=o.allpts,x=0;x+5(y=fr(e,t,b[x],b[x+1],b[x+2],b[x+3],b[x+4],b[x+5])))return g(n,y),!0}for(var h=h||r.source,v=v||r.target,S=i.getArrowWidth(c,d),C=[{name:`source`,x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:`target`,x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:`mid-source`,x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:`mid-target`,x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}],x=0;x0&&(_(h),_(v))}function y(e,t,n){return Xt(e,t,n)}function b(n,r){var i=n._private,a=f,o=r?r+`-`:``;n.boundingBox();var s=i.labelBounds[r||`main`],c=n.pstyle(o+`label`).value;if(!(n.pstyle(`text-events`).strValue!==`yes`||!c)){var l=y(i.rscratch,`labelX`,r),u=y(i.rscratch,`labelY`,r),d=y(i.rscratch,`labelAngle`,r),p=n.pstyle(o+`text-margin-x`).pfValue,m=n.pstyle(o+`text-margin-y`).pfValue,h=s.x1-a-p,_=s.x2+a-p,v=s.y1-a-m,b=s.y2+a-m;if(d){var x=Math.cos(d),S=Math.sin(d),C=function(e,t){return e-=l,t-=u,{x:e*x-t*S+l,y:e*S+t*x+u}},w=C(h,v),T=C(h,b),E=C(_,v),D=C(_,b);if(mr(e,t,[w.x+p,w.y+m,E.x+p,E.y+m,D.x+p,D.y+m,T.x+p,T.y+m]))return g(n),!0}else if(tr(s,e,t))return g(n),!0}}for(var x=o.length-1;x>=0;x--){var S=o[x];S.isNode()?_(S)||b(S):v(S)||b(S)||b(S,`source`)||b(S,`target`)}return s},Yd.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),c=Math.max(e,n),l=Math.min(t,r),u=Math.max(t,r);e=s,n=c,t=l,r=u;var d=Kn({x1:e,y1:t,x2:n,y2:r}),p=[{x:d.x1,y:d.y1},{x:d.x2,y:d.y1},{x:d.x2,y:d.y2},{x:d.x1,y:d.y2}],m=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function h(e,t,n){return Xt(e,t,n)}function g(e,t){var n=e._private,r=a,i=``;e.boundingBox();var o=n.labelBounds.main;if(!o)return null;var s=h(n.rscratch,`labelX`,t),c=h(n.rscratch,`labelY`,t),l=h(n.rscratch,`labelAngle`,t),u=e.pstyle(i+`text-margin-x`).pfValue,d=e.pstyle(i+`text-margin-y`).pfValue,f=o.x1-r-u,p=o.x2+r-u,m=o.y1-r-d,g=o.y2+r-d;if(l){var _=Math.cos(l),v=Math.sin(l),y=function(e,t){return e-=s,t-=c,{x:e*_-t*v+s,y:e*v+t*_+c}};return[y(f,m),y(p,m),y(p,g),y(f,g)]}else return[{x:f,y:m},{x:p,y:m},{x:p,y:g},{x:f,y:g}]}function _(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},yf=function(e,t,n,r,i){if(e===gf?vf(ef,$d):_f(t,e,$d),_f(t,n,ef),tf=$d.nx*ef.ny-$d.ny*ef.nx,nf=$d.nx*ef.nx-$d.ny*-ef.ny,of=Math.asin(Math.max(-1,Math.min(1,tf))),Math.abs(of)<1e-6){Zd=t.x,Qd=t.y,cf=uf=0;return}rf=1,af=!1,nf<0?of<0?of=Math.PI+of:(of=Math.PI-of,rf=-1,af=!0):of>0&&(rf=-1,af=!0),uf=t.radius===void 0?r:t.radius,sf=of/2,df=Math.min($d.len/2,ef.len/2),i?(lf=Math.abs(Math.cos(sf)*uf/Math.sin(sf)),lf>df?(lf=df,cf=Math.abs(lf*Math.sin(sf)/Math.cos(sf))):cf=uf):(lf=Math.min(df,uf),cf=Math.abs(lf*Math.sin(sf)/Math.cos(sf))),mf=t.x+ef.nx*lf,hf=t.y+ef.ny*lf,Zd=mf-ef.ny*cf*rf,Qd=hf+ef.nx*cf*rf,ff=t.x+$d.nx*lf,pf=t.y+$d.ny*lf,gf=t};function bf(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function xf(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(yf(e,t,n,r,i),{cx:Zd,cy:Qd,radius:cf,startX:ff,startY:pf,stopX:mf,stopY:hf,startAngle:$d.ang+Math.PI/2*rf,endAngle:ef.ang-Math.PI/2*rf,counterClockwise:af})}var Sf=.01,Cf=Math.sqrt(2*Sf),wf={};wf.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,i=t.vectorNormInverse,a,o=e.pstyle(`source-endpoint`),s=e.pstyle(`target-endpoint`),c=o.units!=null&&s.units!=null,l=function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(e.pstyle(`edge-distances`).value){case`node-position`:a=n;break;case`intersection`:a=r;break;case`endpoints`:if(c){var u=f(this.manualEndptToPx(e.source()[0],o),2),d=u[0],p=u[1],m=f(this.manualEndptToPx(e.target()[0],s),2),h=m[0],g=m[1],_={x1:d,y1:p,x2:h,y2:g};i=l(d,p,h,g),a=_}else zt(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),a=r;break}return{midptPts:a,vectorNormInverse:i}},wf.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},O=D(T,C),k=D(E,w),A=!1;_===l?g=Math.abs(O)>Math.abs(k)?i:r:_===c||_===s?(g=r,A=!0):(_===a||_===o)&&(g=i,A=!0);var j=g===r,M=j?k:O,N=j?E:T,P=Rn(N),F=!1;!(A&&(y||x))&&(_===s&&N<0||_===c&&N>0||_===a&&N>0||_===o&&N<0)&&(P*=-1,M=P*Math.abs(M),F=!0);var I=y?(b<0?1+b:b)*M:(b<0?M:0)+b*P,L=function(e){return Math.abs(e)=Math.abs(M)},R=L(I),z=L(Math.abs(M)-Math.abs(I));if((R||z)&&!F)if(j){var B=Math.abs(N)<=f/2,V=Math.abs(T)<=p/2;if(B){var H=(u.x1+u.x2)/2;n.segpts=[H,u.y1,H,u.y2]}else if(V){var U=(u.y1+u.y2)/2;n.segpts=[u.x1,U,u.x2,U]}else n.segpts=[u.x1,u.y2]}else{var W=Math.abs(N)<=d/2,G=Math.abs(E)<=m/2;if(W){var K=(u.y1+u.y2)/2;n.segpts=[u.x1,K,u.x2,K]}else if(G){var q=(u.x1+u.x2)/2;n.segpts=[q,u.y1,q,u.y2]}else n.segpts=[u.x2,u.y1]}else if(j){var J=u.y1+I+(h?f/2*P:0);n.segpts=[u.x1,J,u.x2,J]}else{var ee=u.x1+I+(h?d/2*P:0);n.segpts=[ee,u.y1,ee,u.y2]}if(n.isRound){var Y=e.pstyle(`taxi-radius`).value,te=e.pstyle(`radius-type`).value[0]===`arc-radius`;n.radii=Array(n.segpts.length/2).fill(Y),n.isArcRadius=Array(n.segpts.length/2).fill(te)}},wf.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,c=t.tgtH,l=t.srcShape,u=t.tgtShape,d=t.srcCornerRadius,f=t.tgtCornerRadius,p=t.srcRs,m=t.tgtRs,h=!A(n.startX)||!A(n.startY),g=!A(n.arrowStartX)||!A(n.arrowStartY),_=!A(n.endX)||!A(n.endY),v=!A(n.arrowEndX)||!A(n.arrowEndY),y=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),b=zn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),x=bh.poolIndex()){var g=m;m=h,h=g}var _=u.srcPos=m.position(),v=u.tgtPos=h.position(),y=u.srcW=m.outerWidth(),b=u.srcH=m.outerHeight(),S=u.tgtW=h.outerWidth(),C=u.tgtH=h.outerHeight(),w=u.srcShape=n.nodeShapes[t.getNodeShape(m)],T=u.tgtShape=n.nodeShapes[t.getNodeShape(h)],E=u.srcCornerRadius=m.pstyle(`corner-radius`).value===`auto`?`auto`:m.pstyle(`corner-radius`).pfValue,D=u.tgtCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=u.tgtRs=h._private.rscratch,k=u.srcRs=m._private.rscratch;u.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j=Cf||(G=Math.sqrt(Math.max(W*W,Sf)+Math.max(U*U,Sf)));var K=u.vector={x:W,y:U},q=u.vectorNorm={x:K.x/G,y:K.y/G},J={x:-q.y,y:q.x};u.nodesOverlap=!A(G)||T.checkPoint(L[0],L[1],0,S,C,v.x,v.y,D,O)||w.checkPoint(z[0],z[1],0,y,b,_.x,_.y,E,k),u.vectorNormInverse=J,d={nodesOverlap:u.nodesOverlap,dirCounts:u.dirCounts,calculatedIntersection:!0,hasBezier:u.hasBezier,hasUnbundled:u.hasUnbundled,eles:u.eles,srcPos:v,srcRs:O,tgtPos:_,tgtRs:k,srcW:S,srcH:C,tgtW:y,tgtH:b,srcIntn:B,tgtIntn:R,srcShape:T,tgtShape:w,posPts:{x1:H.x2,y1:H.y2,x2:H.x1,y2:H.y1},intersectionPts:{x1:V.x2,y1:V.y2,x2:V.x1,y2:V.y1},vector:{x:-K.x,y:-K.y},vectorNorm:{x:-q.x,y:-q.y},vectorNormInverse:{x:-J.x,y:-J.y}}}var Y=I?d:u;N.nodesOverlap=Y.nodesOverlap,N.srcIntn=Y.srcIntn,N.tgtIntn=Y.tgtIntn,N.isRound=P.startsWith(`round`),r&&(m.isParent()||m.isChild()||h.isParent()||h.isChild())&&(m.parents().anySame(h)||h.parents().anySame(m)||m.same(h)&&m.isParent())?t.findCompoundLoopPoints(M,Y,j,F):m===h?t.findLoopPoints(M,Y,j,F):P.endsWith(`segments`)?t.findSegmentsPoints(M,Y):P.endsWith(`taxi`)?t.findTaxiPoints(M,Y):P===`straight`||!F&&u.eles.length%2==1&&j===Math.floor(u.eles.length/2)?t.findStraightEdgePoints(M):t.findBezierPoints(M,Y,j,F,I),t.findEndpoints(M),t.tryToCorrectInvalidPoints(M,Y),t.checkForInvalidEdgeWarning(M),t.storeAllpts(M),t.storeEdgeProjections(M),t.calculateArrowAngles(M),t.recalculateEdgeLabelProjections(M),t.calculateLabelAngles(M)}},x=0;x0){var ne=s,re=Bn(ne,An(i)),ie=Bn(ne,An(te)),ae=re;ie2&&Bn(ne,{x:te[2],y:te[3]})0){var _e=c,ve=Bn(_e,An(i)),ye=Bn(_e,An(ge)),be=ve;ye2&&Bn(_e,{x:ge[2],y:ge[3]})=l||v){d={cp:h,segment:_};break}}if(d)break}var y=d.cp,b=d.segment,x=(l-f)/b.length,S=b.t1-b.t0,C=c?b.t0+S*x:b.t1-S*x;C=Gn(0,C,1),t=Un(y.p0,y.p1,y.p2,C),i=Mf(y.p0,y.p1,y.p2,C);break;case`straight`:case`segments`:case`haystack`:for(var w=0,T,E,D,O,k=r.allpts.length,A=0;A+3=l));A+=2);var j=(l-E)/T;j=Gn(0,j,1),t=Wn(D,O,j),i=jf(D,O);break}o(`labelX`,n,t.x),o(`labelY`,n,t.y),o(`labelAutoAngle`,n,i)}};c(`source`),c(`target`),this.applyLabelDimensions(e)}},kf.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},kf.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=Ct(r,e._private.labelDimsKey);if(Xt(n.rscratch,`prefixedLabelDimsKey`,t)!==i){Zt(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`text-wrap`).strValue,c=Xt(n.rscratch,`labelWrapCachedLines`,t)||[],l=s===`wrap`?Math.max(c.length,1):1,u=a.height/l,d=u*o,f=a.width,p=a.height+(l-1)*(o-1)*u;Zt(n.rstyle,`labelWidth`,t,f),Zt(n.rscratch,`labelWidth`,t,f),Zt(n.rstyle,`labelHeight`,t,p),Zt(n.rscratch,`labelHeight`,t,p),Zt(n.rscratch,`labelLineHeight`,t,d)}},kf.getLabelText=function(e,t){var n=e._private,r=t?t+`-`:``,i=e.pstyle(r+`label`).strValue,a=e.pstyle(`text-transform`).value,s=function(e,r){return r?(Zt(n.rscratch,e,t,r),r):Xt(n.rscratch,e,t)};if(!i)return``;a==`none`||(a==`uppercase`?i=i.toUpperCase():a==`lowercase`&&(i=i.toLowerCase()));var c=e.pstyle(`text-wrap`).value;if(c===`wrap`){var l=s(`labelKey`);if(l!=null&&s(`labelWrapKey`)===l)return s(`labelWrapCachedText`);for(var u=`​`,d=i.split(` +`),f=e.pstyle(`text-max-width`).pfValue,p=e.pstyle(`text-overflow-wrap`).value===`anywhere`,m=[],h=/[\s\u200b]+|$/g,g=0;gf){var y=_.matchAll(h),b=``,x=0,S=o(y),C;try{for(S.s();!(C=S.n()).done;){var w=C.value,T=w[0],E=_.substring(x,w.index);x=w.index+T.length;var D=b.length===0?E:b+E+T;this.calculateLabelDimensions(e,D).width<=f?b+=E+T:(b&&m.push(b),b=E+T)}}catch(e){S.e(e)}finally{S.f()}b.match(/^[\s\u200b]+$/)||m.push(b)}else m.push(_)}s(`labelWrapCachedLines`,m),i=s(`labelWrapCachedText`,m.join(` +`)),s(`labelWrapKey`,l)}else if(c===`ellipsis`){var O=e.pstyle(`text-max-width`).pfValue,k=``,A=`…`,j=!1;if(this.calculateLabelDimensions(e,i).widthO);M++)k+=i[M],M===i.length-1&&(j=!0);return j||(k+=A),k}return i},kf.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;if(t===`auto`)if(e.isNode())switch(n){case`left`:return`right`;case`right`:return`left`;default:return`center`}else return`center`;else return t},kf.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,c=this.labelCalcCanvas,l=this.labelCalcCanvasContext;if(!c){c=this.labelCalcCanvas=n.createElement(`canvas`),l=this.labelCalcCanvasContext=c.getContext(`2d`);var u=c.style;u.position=`absolute`,u.left=`-9999px`,u.top=`-9999px`,u.zIndex=`-1`,u.visibility=`hidden`,u.pointerEvents=`none`}l.font=`${i} ${s} ${a}px ${o}`;for(var d=0,f=0,p=t.split(` +`),m=0;m1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var T=a(t);b&&(e.hoverData.tapholdCancelled=!0);var D=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];t.length===0?(t.push(v[0]),t.push(v[1])):(t[0]+=v[0],t[1]+=v[1])};n=!0,i(p,[`mousemove`,`vmousemove`,`tapdrag`],t,{x:l[0],y:l[1]});var O=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}},k=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(O(`boxstart`)),f[4]=1,e.hoverData.selecting=!0,e.redrawHint(`select`,!0),e.redraw()};if(e.hoverData.which===3){if(b){var j=O(`cxtdrag`);g?g.emit(j):r.emit(j),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||p!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(O(`cxtdragout`)),e.hoverData.cxtOver=p,p&&p.emit(O(`cxtdragover`)))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var N=e.hoverData.mdownPos;M={x:(l[0]-N[0])*s,y:(l[1]-N[1])*s},e.hoverData.justStartedPan=!1}else M={x:v[0]*s,y:v[1]*s};r.panBy(M),r.emit(O(`dragpan`)),e.hoverData.dragged=!0}l=e.projectIntoViewport(t.clientX,t.clientY)}else if(f[4]==1&&(g==null||g.pannable()))b&&(!e.hoverData.dragging&&r.boxSelectionEnabled()&&(T||!r.panningEnabled()||!r.userPanningEnabled())?k():!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&o(g,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,f[4]=0,e.data.bgActivePosistion=An(u),e.redrawHint(`select`,!0),e.redraw()),g&&g.pannable()&&g.active()&&g.unactivate());else{if(g&&g.pannable()&&g.active()&&g.unactivate(),(!g||!g.grabbed())&&p!=m&&(m&&i(m,[`mouseout`,`tapdragout`],t,{x:l[0],y:l[1]}),p&&i(p,[`mouseover`,`tapdragover`],t,{x:l[0],y:l[1]}),e.hoverData.last=p),g)if(b){if(r.boxSelectionEnabled()&&T)g&&g.grabbed()&&(_(y),g.emit(O(`freeon`)),y.emit(O(`free`)),e.dragData.didDrag&&(g.emit(O(`dragfreeon`)),y.emit(O(`dragfree`)))),k();else if(g&&g.grabbed()&&e.nodeIsDraggable(g)){var P=!e.dragData.didDrag;P&&e.redrawHint(`eles`,!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||h(y,{inDragLayer:!0});var F={x:0,y:0};if(A(v[0])&&A(v[1])&&(F.x+=v[0],F.y+=v[1],P)){var I=e.hoverData.dragDelta;I&&A(I[0])&&A(I[1])&&(F.x+=I[0],F.y+=I[1])}e.hoverData.draggingEles=!0,y.silentShift(F).emit(O(`position`)).emit(O(`drag`)),e.redrawHint(`drag`,!0),e.redraw()}}else D();n=!0}if(f[2]=l[0],f[3]=l[1],n)return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}},!1);var O,k,j;e.registerBinding(t,`mouseup`,function(t){if(!(e.hoverData.which===1&&t.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,c=e.findNearestElement(o[0],o[1],!0,!1),l=e.dragData.possibleDragElements,u=e.hoverData.down,d=a(t);e.data.bgActivePosistion&&(e.redrawHint(`select`,!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,u&&u.unactivate();var f=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(e.hoverData.which===3){var p=f(`cxttapend`);if(u?u.emit(p):r.emit(p),!e.hoverData.cxtDragged){var m=f(`cxttap`);u?u.emit(m):r.emit(m)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(i(c,[`mouseup`,`tapend`,`vmouseup`],t,{x:o[0],y:o[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(i(u,[`click`,`tap`,`vclick`],t,{x:o[0],y:o[1]}),k=!1,t.timeStamp-j<=r.multiClickDebounceTime()?(O&&clearTimeout(O),k=!0,j=null,i(u,[`dblclick`,`dbltap`,`vdblclick`],t,{x:o[0],y:o[1]})):(O=setTimeout(function(){k||i(u,[`oneclick`,`onetap`,`voneclick`],t,{x:o[0],y:o[1]})},r.multiClickDebounceTime()),j=t.timeStamp)),u==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(t)&&(r.$(n).unselect([`tapunselect`]),l.length>0&&e.redrawHint(`eles`,!0),e.dragData.possibleDragElements=l=r.collection()),c==u&&!e.dragData.didDrag&&!e.hoverData.selecting&&c!=null&&c._private.selectable&&(e.hoverData.dragging||(r.selectionType()===`additive`||d?c.selected()?c.unselect([`tapunselect`]):c.select([`tapselect`]):d||(r.$(n).unmerge(c).unselect([`tapunselect`]),c.select([`tapselect`]))),e.redrawHint(`eles`,!0)),e.hoverData.selecting){var h=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint(`select`,!0),h.length>0&&e.redrawHint(`eles`,!0),r.emit(f(`boxend`)),r.selectionType()===`additive`||d||r.$(n).unmerge(h).unselect(),h.emit(f(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(f(`boxselect`)),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint(`select`,!0),e.redrawHint(`eles`,!0),e.redraw()),!s[4]){e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0);var g=u&&u.grabbed();_(l),g&&(u.emit(f(`freeon`)),l.emit(f(`free`)),e.dragData.didDrag&&(u.emit(f(`dragfreeon`)),l.emit(f(`dragfree`))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var M=[],N=4,P,F=1e5,I=function(e,t){for(var n=0;n=N){var i=M;if(P=I(i,5),!P){var a=Math.abs(i[0]);P=L(i)&&a>5}if(P)for(var o=0;o5&&(r=Rn(r)*5),f=r/-250,P&&(f/=F,f*=3),f*=e.wheelSensitivity,t.deltaMode===1&&(f*=33);var p=s.zoom()*10**f;t.type===`gesturechange`&&(p=e.gestureStartZoom*t.scale),s.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),s.emit({type:t.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:t,position:{x:u[0],y:u[1]}})}}}};e.registerBinding(e.container,`wheel`,R,!0),e.registerBinding(t,`scroll`,function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,`gesturestart`,function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,`gesturechange`,function(t){e.hasTouchStarted||R(t)},!0),e.registerBinding(e.container,`mouseout`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseout`,position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,`mouseover`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseover`,position:{x:n[0],y:n[1]}})},!1);var z,B,V,H,U,W,G,K,q,J,ee,Y,te,ne=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},re=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},ie;e.registerBinding(e.container,`touchstart`,ie=function(t){if(e.hasTouchStarted=!0,E(t)){y(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(t.touches[1]){var o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);r[2]=o[0],r[3]=o[1]}if(t.touches[2]){var o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);r[4]=o[0],r[5]=o[1]}var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,_(e.dragData.touchDragEles);var c=e.findContainerClientCoords();q=c[0],J=c[1],ee=c[2],Y=c[3],z=t.touches[0].clientX-q,B=t.touches[0].clientY-J,V=t.touches[1].clientX-q,H=t.touches[1].clientY-J,te=0<=z&&z<=ee&&0<=V&&V<=ee&&0<=B&&B<=Y&&0<=H&&H<=Y;var l=n.pan(),u=n.zoom();U=ne(z,B,V,H),W=re(z,B,V,H),G=[(z+V)/2,(B+H)/2],K=[(G[0]-l.x)/u,(G[1]-l.y)/u];var f=200,p=f*f;if(W=1){for(var w=e.touchData.startPosition=[null,null,null,null,null,null],T=0;T=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var x=t.touches[0].clientX-q,S=t.touches[0].clientY-J,C=t.touches[1].clientX-q,w=t.touches[1].clientY-J,T=re(x,S,C,w),D=T/W,O=150,k=O*O,j=1.5;if(D>=j*j||T>=k){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var M=d(`cxttapend`);e.touchData.start?(e.touchData.start.unactivate().emit(M),e.touchData.start=null):a.emit(M)}}if(n&&e.touchData.cxt){var M=d(`cxtdrag`);e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.touchData.start?e.touchData.start.emit(M):a.emit(M),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var N=e.findNearestElement(s[0],s[1],!0,!0);(!e.touchData.cxtOver||N!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(d(`cxtdragout`)),e.touchData.cxtOver=N,N&&N.emit(d(`cxtdragover`)))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(d(`boxstart`)),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,!r||r.length===0||r[0]===void 0?(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1):(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3),e.redrawHint(`select`,!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var P=e.dragData.touchDragEles;if(P){e.redrawHint(`drag`,!0);for(var F=0;F0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.redraw())}},!1);var oe;e.registerBinding(t,`touchcancel`,oe=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()});var se,ce,X,le;if(e.registerBinding(t,`touchend`,se=function(t){var r=e.touchData.start;if(e.touchData.capture)t.touches.length===0&&(e.touchData.capture=!1),t.preventDefault();else return;var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o=e.cy,s=o.zoom(),c=e.touchData.now,l=e.touchData.earlier;if(t.touches[0]){var u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);c[0]=u[0],c[1]=u[1]}if(t.touches[1]){var u=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);c[2]=u[0],c[3]=u[1]}if(t.touches[2]){var u=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);c[4]=u[0],c[5]=u[1]}var d=function(e){return{originalEvent:t,type:e,position:{x:c[0],y:c[1]}}};r&&r.unactivate();var f;if(e.touchData.cxt){if(f=d(`cxttapend`),r?r.emit(f):o.emit(f),!e.touchData.cxtDragged){var p=d(`cxttap`);r?r.emit(p):o.emit(p)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!t.touches[2]&&o.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var m=o.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint(`select`,!0),o.emit(d(`boxend`)),m.emit(d(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(d(`boxselect`)),m.nonempty()&&e.redrawHint(`eles`,!0),e.redraw()}if(r?.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);else if(!t.touches[1]&&!t.touches[0]&&!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var h=e.dragData.touchDragEles;if(r!=null){var g=r._private.grabbed;_(h),e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0),g&&(r.emit(d(`freeon`)),h.emit(d(`free`)),e.dragData.didDrag&&(r.emit(d(`dragfreeon`)),h.emit(d(`dragfree`)))),i(r,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:c[0],y:c[1]}),r.unactivate(),e.touchData.start=null}else i(e.findNearestElement(c[0],c[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:c[0],y:c[1]});var v=e.touchData.startPosition[0]-c[0],y=v*v,b=e.touchData.startPosition[1]-c[1],x=(y+b*b)*s*s;e.touchData.singleTouchMoved||(r||o.$(`:selected`).unselect([`tapunselect`]),i(r,[`tap`,`vclick`],t,{x:c[0],y:c[1]}),ce=!1,t.timeStamp-le<=o.multiClickDebounceTime()?(X&&clearTimeout(X),ce=!0,le=null,i(r,[`dbltap`,`vdblclick`],t,{x:c[0],y:c[1]})):(X=setTimeout(function(){ce||i(r,[`onetap`,`voneclick`],t,{x:c[0],y:c[1]})},o.multiClickDebounceTime()),le=t.timeStamp)),r!=null&&!e.dragData.didDrag&&r._private.selectable&&x`u`){var ue=[],de=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},fe=function(e){return{event:e,touch:de(e)}},pe=function(e){ue.push(fe(e))},me=function(e){for(var t=0;t0)return l[0]}return null},p=Object.keys(d),m=0;m0?d:sr(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){s=s===`auto`?jr(r,i):s;var c=2*s;if(hr(e,t,this.points,a,o,r,i-c,[0,-1],n)||hr(e,t,this.points,a,o,r-c,i,[0,-1],n))return!0;var l=r/2+2*n,u=i/2+2*n;return!!(mr(e,t,[a-l,o-u,a-l,o,a+l,o,a+l,o-u])||br(e,t,c,c,a+r/2-s,o+i/2-s,n)||br(e,t,c,c,a-r/2+s,o+i/2-s,n))}}},Vf.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,Or(3,0)),this.generateRoundPolygon(`round-triangle`,Or(3,0)),this.generatePolygon(`rectangle`,Or(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,Or(5,0)),this.generateRoundPolygon(`round-pentagon`,Or(5,0)),this.generatePolygon(`hexagon`,Or(6,0)),this.generateRoundPolygon(`round-hexagon`,Or(6,0)),this.generatePolygon(`heptagon`,Or(7,0)),this.generateRoundPolygon(`round-heptagon`,Or(7,0)),this.generatePolygon(`octagon`,Or(8,0)),this.generateRoundPolygon(`round-octagon`,Or(8,0));var r=Array(20),i=Ar(5,0),a=Ar(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*h)break}else if(i){if(p>=e.deqCost*c||p>=e.deqAvgCost*s)break}else if(m>=e.deqNoDrawCost*Kf)break;var g=e.deq(t,d,u);if(g.length>0)for(var _=0;_0&&(e.onDeqd(t,l),!i&&e.shouldRedraw(t,l,d,u)&&r())},a=e.priority||It;n.beforeRender(i,a(t))}}}},Jf=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;r(this,e),this.idsByKey=new Qt,this.keyForId=new Qt,this.cachesByLvl=new Qt,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return a(e,[{key:`getIdsFor`,value:function(e){e??Lt(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new tn,t.set(e,n)),n}},{key:`addIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).add(t)}},{key:`deleteIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).delete(t)}},{key:`getNumberOfIdsForKey`,value:function(e){return e==null?0:this.getIdsFor(e).size}},{key:`updateKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:`deleteKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:`keyHasChangedFor`,value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:`isInvalid`,value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:`getCachesAt`,value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new Qt,t.set(e,r),n.push(e)),r}},{key:`getCache`,value:function(e,t){return this.getCachesAt(t).get(e)}},{key:`get`,value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r}},{key:`getForCachedKey`,value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:`hasCache`,value:function(e,t){return this.getCachesAt(t).has(e)}},{key:`has`,value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:`setCache`,value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:`set`,value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:`deleteCache`,value:function(e,t){this.getCachesAt(t).delete(e)}},{key:`delete`,value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:`invalidateKey`,value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:`invalidate`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0}}])}(),Yf=25,Xf=50,Zf=-4,Qf=3,$f=7.99,ep=8,tp=1024,np=1024,rp=1024,ip=.2,ap=.8,op=10,sp=.15,cp=.1,lp=.9,up=.9,dp=100,fp=1,pp={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},mp=Kt({getKey:null,doesEleInvalidateKey:Pt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Nt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),hp=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=mp(t);X(n,r),n.lookup=new Jf(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},gp=hp.prototype;gp.reasons=pp,gp.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},gp.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},gp.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new pn(function(e,t){return t.reqs-e.reqs})},gp.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},gp.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),c=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(r??=Math.ceil(Ln(s*n)),r=$f||r>Qf)return null;var l=2**r,u=t.h*l,d=t.w*l,f=o.eleTextBiggerThanMin(e,l);if(!this.isVisible(e,f))return null;var p=c.get(e,r);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;var m=u<=Yf?Yf:u<=Xf?Xf:Math.ceil(u/Xf)*Xf;if(u>rp||d>np)return null;var h=a.getTextureQueue(m),g=h[h.length-2],_=function(){return a.recycleTexture(m,d)||a.addTexture(m,d)};g||=h[h.length-1],g||=_(),g.width-g.usedWidthr;D--)T=a.getElement(e,t,n,D,pp.downscale);E()}else return a.queueElement(e,S.level-1),S;else{var O;if(!y&&!b&&!x)for(var k=r-1;k>=Zf;k--){var A=c.get(e,k);if(A){O=A;break}}if(v(O))return a.queueElement(e,r),O;g.context.translate(g.usedWidth,0),g.context.scale(l,l),this.drawElement(g.context,e,t,f,!1),g.context.scale(1/l,1/l),g.context.translate(-g.usedWidth,0)}return p={x:g.usedWidth,texture:g,level:r,scale:l,width:d,height:u,scaledLabelShown:f},g.usedWidth+=Math.ceil(d+ep),g.eleCaches.push(p),c.set(e,r,p),a.checkTextureFullness(g),p},gp.invalidateElements=function(e){for(var t=0;t=ip*e.width&&this.retireTexture(e)},gp.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>ap&&e.fullnessChecks>=op?qt(t,e):e.fullnessChecks++},gp.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;qt(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,Jt(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),qt(i,o),r.push(o),o}},gp.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},gp.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),c=s.key,l=s.eles[0],u=a.hasCache(l,s.level);if(r[c]=null,!u){i.push(s);var d=t.getBoundingBox(l);t.getElement(l,d,e,s.level,pp.dequeue)}}return i},gp.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=Mt,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},gp.onDequeue=function(e){this.onDequeues.push(e)},gp.offDequeue=function(e){qt(this.onDequeues,e)},gp.setupDequeueing=qf.setupDequeueing({deqRedrawThreshold:dp,deqCost:sp,deqAvgCost:cp,deqNoDrawCost:lp,deqFastCost:up,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=bp||n>yp)return null}r.validateLayersElesOrdering(n,e);var o=r.layersByLevel,s=2**n,c=o[n]=o[n]||[],l,u=r.levelIsComplete(n,e),d,f=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return d=o[t],!0},i=function(e){if(!d)for(var r=n+e;vp<=r&&r<=yp&&!t(r);r+=e);};i(1),i(-1);for(var a=c.length-1;a>=0;a--){var s=c[a];s.invalid&&qt(c,s)}};if(!u)f();else return c;var p=function(){if(!l){l=Kn();for(var t=0;tAp||a>Ap||i*a>kp)return null;var o=r.makeLayer(l,n);if(t!=null){var u=c.indexOf(t)+1;c.splice(u,0,o)}else (e.insert===void 0||e.insert)&&c.unshift(o);return o};if(r.skipping&&!a)return null;for(var h=null,g=e.length/_p,_=!a,v=0;v=g||!rr(h.bb,y.boundingBox()))&&(h=m({insert:!0,after:h}),!h))return null;d||_?r.queueLayer(h,y):r.drawEleInLayer(h,y,n,t),h.eles.push(y),x[n]=h}return d||(_?null:c)},Np.getEleLevelForLayerLevel=function(e,t){return e},Np.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w===0||s.h===0||!t.visible()||(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,jp),a.setImgSmoothing(o,!0))},Np.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},Np.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},Np.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=ft(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},Np.invalidateLayer=function(e){if(this.lastInvalidationTime=ft(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];qt(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=t._private.rscratch;if(!(a&&!t.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var c;n&&(c=n,e.translate(-c.x1,-c.y1));var l=a?t.pstyle(`opacity`).value:1,u=a?t.pstyle(`line-opacity`).value:1,d=t.pstyle(`curve-style`).value,f=t.pstyle(`line-style`).value,p=t.pstyle(`width`).pfValue,m=t.pstyle(`line-cap`).value,h=t.pstyle(`line-outline-width`).value,g=t.pstyle(`line-outline-color`).value,_=l*u,v=l*u,y=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;d===`straight-triangle`?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=p,e.lineCap=m,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,f),e.lineCap=`butt`)},b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;if(e.lineWidth=p+h,e.lineCap=m,h>0)o.colorStrokeStyle(e,g[0],g[1],g[2],n);else{e.lineCap=`butt`;return}d===`straight-triangle`?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,f),e.lineCap=`butt`)},x=function(){i&&o.drawEdgeOverlay(e,t)},S=function(){i&&o.drawEdgeUnderlay(e,t)},C=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;o.drawArrowheads(e,t,n)},w=function(){o.drawElementText(e,t,null,r)};if(e.lineJoin=`round`,t.pstyle(`ghost`).value===`yes`){var T=t.pstyle(`ghost-offset-x`).pfValue,E=t.pstyle(`ghost-offset-y`).pfValue,D=_*t.pstyle(`ghost-opacity`).value;e.translate(T,E),y(D),C(D),e.translate(-T,-E)}else b();S(),y(),C(),x(),w(),n&&e.translate(c.x1,c.y1)}};var Zp=function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,c=n.pstyle(`${e}-color`).value;t.lineWidth=s,o.edgeType===`self`&&!a?t.lineCap=`butt`:t.lineCap=`round`,i.colorStrokeStyle(t,c[0],c[1],c[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}};Xp.drawEdgeOverlay=Zp(`overlay`),Xp.drawEdgeUnderlay=Zp(`underlay`),Xp.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,s,c=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(s=t=i.pathCache,c=!0):(s=t=new Path2D,i.pathCacheKey=f,i.pathCache=s)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([]);break}if(!c&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;e.textAlign=o.getLabelJustification(t),e.textBaseline=`bottom`}else{var c=t.element()._private.rscratch.badLine,l=t.pstyle(`label`),u=t.pstyle(`source-label`),d=t.pstyle(`target-label`);if(c||(!l||!l.value)&&(!u||!u.value)&&(!d||!d.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var f=!n,p;n&&(p=n,e.translate(-p.x1,-p.y1)),i==null?(o.drawText(e,t,null,f,a),t.isEdge()&&(o.drawText(e,t,`source`,f,a),o.drawText(e,t,`target`,f,a))):o.drawText(e,t,i,f,a),n&&e.translate(p.x1,p.y1)},$p.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,c=t.pstyle(`text-outline-opacity`).value*s,l=t.pstyle(`color`).value,u=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,l[0],l[1],l[2],s),this.colorStrokeStyle(e,u[0],u[1],u[2],c)};function em(e,t,n,r,i){var a=Math.min(r,i)/2,o=t+r/2,s=n+i/2;e.beginPath(),e.arc(o,s,a,0,Math.PI*2),e.closePath()}function tm(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}$p.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=Xt(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},$p.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!(i&&(o===0||t.pstyle(`text-opacity`).value===0))){n===`main`&&(n=null);var s=Xt(a,`labelX`,n),c=Xt(a,`labelY`,n),l,u,d=this.getLabelText(t,n);if(d!=null&&d!==``&&!isNaN(s)&&!isNaN(c)){this.setupTextStyle(e,t,i);var f=n?n+`-`:``,p=Xt(a,`labelWidth`,n),m=Xt(a,`labelHeight`,n),h=t.pstyle(f+`text-margin-x`).pfValue,g=t.pstyle(f+`text-margin-y`).pfValue,_=t.isEdge(),v=t.pstyle(`text-halign`).value,y=t.pstyle(`text-valign`).value;_&&(v=`center`,y=`center`),s+=h,c+=g;var b=r?this.getTextAngle(t,n):0;switch(b!==0&&(l=s,u=c,e.translate(l,u),e.rotate(b),s=0,c=0),y){case`top`:break;case`center`:c+=m/2;break;case`bottom`:c+=m;break}var x=t.pstyle(`text-background-opacity`).value,S=t.pstyle(`text-border-opacity`).value,C=t.pstyle(`text-border-width`).pfValue,w=t.pstyle(`text-background-padding`).pfValue,T=t.pstyle(`text-background-shape`).strValue,E=T===`round-rectangle`||T===`roundrectangle`,D=T===`circle`,O=2;if(x>0||C>0&&S>0){var k=e.fillStyle,A=e.strokeStyle,j=e.lineWidth,M=t.pstyle(`text-background-color`).value,N=t.pstyle(`text-border-color`).value,P=t.pstyle(`text-border-style`).value,F=x>0,I=C>0&&S>0,L=s-w;switch(v){case`left`:L-=p;break;case`center`:L-=p/2;break}var R=c-m-w,z=p+2*w,B=m+2*w;if(F&&(e.fillStyle=`rgba(${M[0]},${M[1]},${M[2]},${x*o})`),I&&(e.strokeStyle=`rgba(${N[0]},${N[1]},${N[2]},${S*o})`,e.lineWidth=C,e.setLineDash))switch(P){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=C/4,e.setLineDash([]);break;default:e.setLineDash([]);break}if(E?(e.beginPath(),tm(e,L,R,z,B,O)):D?(e.beginPath(),em(e,L,R,z,B)):(e.beginPath(),e.rect(L,R,z,B)),F&&e.fill(),I&&e.stroke(),I&&P===`double`){var V=C/2;e.beginPath(),E?tm(e,L+V,R+V,z-2*V,B-2*V,O):e.rect(L+V,R+V,z-2*V,B-2*V),e.stroke()}e.fillStyle=k,e.strokeStyle=A,e.lineWidth=j,e.setLineDash&&e.setLineDash([])}var H=2*t.pstyle(`text-outline-width`).pfValue;if(H>0&&(e.lineWidth=H),t.pstyle(`text-wrap`).value===`wrap`){var U=Xt(a,`labelWrapCachedLines`,n),W=Xt(a,`labelLineHeight`,n),G=p/2,K=this.getLabelJustification(t);switch(K===`auto`||(v===`left`?K===`left`?s+=-p:K===`center`&&(s+=-G):v===`center`?K===`left`?s+=-G:K===`right`&&(s+=G):v===`right`&&(K===`center`?s+=G:K===`right`&&(s+=p))),y){case`top`:c-=(U.length-1)*W;break;case`center`:case`bottom`:c-=(U.length-1)*W;break}for(var q=0;q0&&e.strokeText(U[q],s,c),e.fillText(U[q],s,c),c+=W}else H>0&&e.strokeText(d,s,c),e.fillText(d,s,c);b!==0&&(e.rotate(-b),e.translate(-l,-u))}}};var nm={};nm.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,c,l=t._private,u=l.rscratch,d=t.position();if(!(!A(d.x)||!A(d.y))&&!(a&&!t.visible())){var f=a?t.effectiveOpacity():1,p=o.usePaths(),m,h=!1,g=t.padding();s=t.width()+2*g,c=t.height()+2*g;var _;n&&(_=n,e.translate(-_.x1,-_.y1));for(var v=t.pstyle(`background-image`).value,y=Array(v.length),b=Array(v.length),x=0,S=0;S0&&arguments[0]!==void 0?arguments[0]:D;o.eleFillStyle(e,t,n)},W=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;o.colorStrokeStyle(e,O[0],O[1],O[2],t)},G=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;o.colorStrokeStyle(e,R[0],R[1],R[2],t)},K=function(e,t,n,r){var i=o.nodePathCache=o.nodePathCache||[],a=wt(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+H),s=i[a],c,l=!1;return s==null?(c=new Path2D,i[a]=u.pathCache=c):(c=s,l=!0,u.pathCache=c),{path:c,cacheHit:l}},q=t.pstyle(`shape`).strValue,J=t.pstyle(`shape-polygon-points`).pfValue;if(p){e.translate(d.x,d.y);var ee=K(s,c,q,J);m=ee.path,h=ee.cacheHit}var Y=function(){if(!h){var n=d;p&&(n={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(m||e,n.x,n.y,s,c,H,u)}p?e.fill(m):e.fill()},te=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=l.backgrounding,a=0,s=0;s0&&arguments[0]!==void 0?arguments[0]:!1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;o.hasPie(t)&&(o.drawPie(e,t,r),n&&(p||o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,s,c,H,u)))},re=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;o.hasStripe(t)&&(e.save(),p?e.clip(u.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,s,c,H,u),e.clip()),o.drawStripe(e,t,r),e.restore(),n&&(p||o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,s,c,H,u)))},ie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,n=(T>0?T:-T)*t,r=T>0?0:255;T!==0&&(o.colorFillStyle(e,r,r,r,n),p?e.fill(m):e.fill())},ae=function(){if(E>0){if(e.lineWidth=E,e.lineCap=M,e.lineJoin=j,e.setLineDash)switch(k){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash(P),e.lineDashOffset=F;break;case`solid`:case`double`:e.setLineDash([]);break}if(N!==`center`){if(e.save(),e.lineWidth*=2,N===`inside`)p?e.clip(m):e.clip();else{var t=new Path2D;t.rect(-s/2-E,-c/2-E,s+2*E,c+2*E),t.addPath(m),e.clip(t,`evenodd`)}p?e.stroke(m):e.stroke(),e.restore()}else p?e.stroke(m):e.stroke();if(k===`double`){e.lineWidth=E/3;var n=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,p?e.stroke(m):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},oe=function(){if(L>0){if(e.lineWidth=L,e.lineCap=`butt`,e.setLineDash)switch(z){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`solid`:case`double`:e.setLineDash([]);break}var n=d;p&&(n={x:0,y:0});var r=o.getNodeShape(t),i=E;N===`inside`&&(i=0),N===`outside`&&(i*=2);var a=(s+i+(L+V))/s,l=(c+i+(L+V))/c,u=s*a,f=c*l,m=o.nodeShapes[r].points,h;if(p&&(h=K(u,f,r,m).path),r===`ellipse`)o.drawEllipsePath(h||e,n.x,n.y,u,f);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var g=0,_=0,v=0;r===`round-diamond`?g=(i+V+L)*1.4:r===`round-heptagon`?(g=(i+V+L)*1.075,v=-(i/2+V+L)/35):r===`round-hexagon`?g=(i+V+L)*1.12:r===`round-pentagon`?(g=(i+V+L)*1.13,v=-(i/2+V+L)/15):r===`round-tag`?(g=(i+V+L)*1.12,_=(i/2+L+V)*.07):r===`round-triangle`&&(g=(i+V+L)*(Math.PI/2),v=-(i+V/2+L)/Math.PI),g!==0&&(a=(s+g)/s,u=s*a,[`round-hexagon`,`round-tag`].includes(r)||(l=(c+g)/c,f=c*l)),H=H===`auto`?Mr(u,f):H;for(var y=u/2,b=f/2,x=H+(i+L+V)/2,S=Array(m.length/2),C=Array(m.length/2),w=0;w0){if(r||=n.position(),i==null||a==null){var f=n.padding();i=n.width()+2*f,a=n.height()+2*f}o.colorFillStyle(t,l[0],l[1],l[2],c),o.nodeShapes[u].draw(t,r.x,r.y,i+s*2,a+s*2,d),t.fill()}}}};nm.drawNodeOverlay=rm(`overlay`),nm.drawNodeUnderlay=rm(`underlay`),nm.hasPie=function(e){return e=e[0],e._private.hasPie},nm.hasStripe=function(e){return e=e[0],e._private.hasStripe},nm.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,c=r.x,l=r.y,u=t.width(),d=t.height(),f=Math.min(u,d)/2,p,m=0;if(this.usePaths()&&(c=0,l=0),a.units===`%`?f*=a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2),o.units===`%`?p=f*o.pfValue:o.pfValue!==void 0&&(p=o.pfValue/2),!(p>=f))for(var h=1;h<=i.pieBackgroundN;h++){var g=t.pstyle(`pie-`+h+`-background-size`).value,_=t.pstyle(`pie-`+h+`-background-color`).value,v=t.pstyle(`pie-`+h+`-background-opacity`).value*n,y=g/100;y+m>1&&(y=1-m);var b=1.5*Math.PI+2*Math.PI*m;b+=s;var x=2*Math.PI*y,S=b+x;g===0||m>=1||m+y>1||(p===0?(e.beginPath(),e.moveTo(c,l),e.arc(c,l,f,b,S),e.closePath()):(e.beginPath(),e.arc(c,l,f,b,S),e.arc(c,l,p,S,b,!0),e.closePath()),this.colorFillStyle(e,_[0],_[1],_[2],v),e.fill(),m+=y)}},nm.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),c=t.height(),l=0,u=this.usePaths();e.save();var d=t.pstyle(`stripe-direction`).value,f=t.pstyle(`stripe-size`);switch(d){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2);break}var p=s,m=c;f.units===`%`?(p*=f.pfValue,m*=f.pfValue):f.pfValue!==void 0&&(p=f.pfValue,m=f.pfValue),u&&(a=0,o=0),o-=p/2,a-=m/2;for(var h=1;h<=i.stripeBackgroundN;h++){var g=t.pstyle(`stripe-`+h+`-background-size`).value,_=t.pstyle(`stripe-`+h+`-background-color`).value,v=t.pstyle(`stripe-`+h+`-background-opacity`).value*n,y=g/100;y+l>1&&(y=1-l),!(g===0||l>=1||l+y>1)&&(e.beginPath(),e.rect(a,o+m*l,p,m*y),e.closePath(),this.colorFillStyle(e,_[0],_[1],_[2],v),e.fill(),l+=y)}e.restore()};var im={},am=100;im.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},im.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;it.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!d&&(u[t.NODE]=!0,u[t.SELECT_BOX]=!0);var v=n.style(),y=n.zoom(),b=o===void 0?y:o,x=n.pan(),S={x:x.x,y:x.y},C={zoom:y,pan:{x:x.x,y:x.y}},w=t.prevViewport;!(w===void 0||C.zoom!==w.zoom||C.pan.x!==w.pan.x||C.pan.y!==w.pan.y)&&!(h&&!m)&&(t.motionBlurPxRatio=1),s&&(S=s),b*=c,S.x*=c,S.y*=c;var T=t.getCachedZSortedEles();function E(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function D(e,n){var a,c,u,d;!t.clearingMotionBlur&&(e===l.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===l.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(a={x:x.x*p,y:x.y*p},c=y*p,u=t.canvasWidth*p,d=t.canvasHeight*p):(a=S,c=b,u=t.canvasWidth,d=t.canvasHeight),e.setTransform(1,0,0,1,0,0),n===`motionBlur`?E(e,0,0,u,d):!r&&(n===void 0||n)&&e.clearRect(0,0,u,d),i||(e.translate(a.x,a.y),e.scale(c,c)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(d||(t.textureDrawLastFrame=!1),d){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var O=t.data.bufferContexts[t.TEXTURE_BUFFER];O.setTransform(1,0,0,1,0,0),O.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:O,drawOnlyNodeLayer:!0,forcedPxRatio:c*t.textureMult});var C=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};C.mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}u[t.DRAG]=!1,u[t.NODE]=!1;var k=l.contexts[t.NODE],A=t.textureCache.texture,C=t.textureCache.viewport;k.setTransform(1,0,0,1,0,0),f?E(k,0,0,C.width,C.height):k.clearRect(0,0,C.width,C.height);var j=v.core(`outside-texture-bg-color`).value,M=v.core(`outside-texture-bg-opacity`).value;t.colorFillStyle(k,j[0],j[1],j[2],M),k.fillRect(0,0,C.width,C.height);var y=n.zoom();D(k,!1),k.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/c,C.height/C.zoom/c),k.drawImage(A,C.mpan.x,C.mpan.y,C.width/C.zoom/c,C.height/C.zoom/c)}else t.textureOnViewport&&!r&&(t.textureCache=null);var N=n.extent(),P=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),F=t.hideEdgesOnViewport&&P,I=[];if(I[t.NODE]=!u[t.NODE]&&f&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,I[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),I[t.DRAG]=!u[t.DRAG]&&f&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,I[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),u[t.NODE]||i||a||I[t.NODE]){var L=f&&!I[t.NODE]&&p!==1,k=r||(L?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:l.contexts[t.NODE]);D(k,f&&!L?`motionBlur`:void 0),F?t.drawCachedNodes(k,T.nondrag,c,N):t.drawLayeredElements(k,T.nondrag,c,N),t.debug&&t.drawDebugPoints(k,T.nondrag),!i&&!f&&(u[t.NODE]=!1)}if(!a&&(u[t.DRAG]||i||I[t.DRAG])){var L=f&&!I[t.DRAG]&&p!==1,k=r||(L?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:l.contexts[t.DRAG]);D(k,f&&!L?`motionBlur`:void 0),F?t.drawCachedNodes(k,T.drag,c,N):t.drawCachedElements(k,T.drag,c,N),t.debug&&t.drawDebugPoints(k,T.drag),!i&&!f&&(u[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,D),f&&p!==1){var R=l.contexts[t.NODE],z=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],B=l.contexts[t.DRAG],V=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],H=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!_?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):E(e,0,0,t.canvasWidth,t.canvasHeight);var i=p;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(u[t.NODE]||I[t.NODE])&&(H(R,z,I[t.NODE]),u[t.NODE]=!1),(u[t.DRAG]||I[t.DRAG])&&(H(B,V,I[t.DRAG]),u[t.DRAG]=!1)}t.prevViewport=C,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),f&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!d,t.mbFrames=0,u[t.NODE]=!0,u[t.DRAG]=!0,t.redraw()},am)),r||n.emit(`render`)};var om;im.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,c=i.canvasNeedsRedraw,l=e.forcedContext;if(n.showFps||!o&&c[n.SELECT_BOX]&&!s){var u=l||i.contexts[n.SELECT_BOX];if(t(u),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var d=n.cy.zoom(),f=a.core(`selection-box-border-width`).value/d;u.lineWidth=f,u.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,u.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),f>0&&(u.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,u.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var d=n.cy.zoom(),p=i.bgActivePosistion;u.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,u.beginPath(),u.arc(p.x,p.y,a.core(`active-bg-size`).pfValue/d,0,2*Math.PI),u.fill()}var m=n.lastRedrawTime;if(n.showFps&&m){m=Math.round(m);var h=Math.round(1e3/m),g=`1 frame = `+m+` ms = `+h+` fps`;u.setTransform(1,0,0,1,0,0),u.fillStyle=`rgba(255, 0, 0, 0.75)`,u.strokeStyle=`rgba(255, 0, 0, 0.75)`,u.font=`30px Arial`,om||=u.measureText(g).actualBoundingBoxAscent,u.fillText(g,0,om),u.strokeRect(0,om+10,250,20),u.fillRect(0,om+10,250*Math.min(h/60,1),20)}s||(c[n.SELECT_BOX]=!1)}};function sm(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function cm(e,t,n){var r=sm(e,e.VERTEX_SHADER,t),i=sm(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}function lm(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function um(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function dm(e){var t=e.pixelRatio;return e.cy.zoom()*t}function fm(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}function pm(e,t){return t.picking?!0:e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0?!0:e.pstyle(`border-style`).value===`solid`}function mm(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function _m(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function vm(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function ym(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}function bm(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function xm(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}function Sm(e,t,n,r){var i=f(ym(e,t),2),a=i[0],o=i[1],s=bm(e,o,r),c=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),c}function Cm(e,t,n,r){var i=f(ym(e,n),3),a=i[0],o=i[1],s=i[2],c=bm(e,o,t*a),l=a*s,u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,t*l,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,l,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,l,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var d=Array(t),p=0;pi&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:`draw`,value:function(e,t,n){var r=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var i=this.texSize,a=this.texRows,o=this.texHeight,s=this.getScale(t),c=s.scale,l=s.texW,u=s.texH,d=function(e,r){if(n&&r){var i=r.context,a=e.x,s=e.row,l=a,u=o*s;i.save(),i.translate(l,u),i.scale(c,c),n(i,t),i.restore()}},f=[null,null],p=function(){d(r.freePointer,r.canvas),f[0]={x:r.freePointer.x,y:r.freePointer.row*o,w:l,h:u},f[1]={x:r.freePointer.x+l,y:r.freePointer.row*o,w:0,h:u},r.freePointer.x+=l,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},m=function(){var e=r.scratch,t=r.canvas;e.clear(),d({x:0,row:0},e);var n=i-r.freePointer.x,a=l-n,s=o,c=r.freePointer.x,p=r.freePointer.row*o,m=n;t.context.drawImage(e,0,0,m,s,c,p,m,s),f[0]={x:c,y:p,w:m,h:u};var h=n,g=(r.freePointer.row+1)*o,_=a;t&&t.context.drawImage(e,h,0,_,s,0,g,_,s),f[1]={x:0,y:g,w:_,h:u},r.freePointer.x=a,r.freePointer.row++},h=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+l<=i)p();else if(this.freePointer.row>=a-1)return!1;else this.freePointer.x===i?(h(),p()):this.enableWrapping?m():(h(),p());return this.keyToLocation.set(e,f),this.needsBuffer=!0,f}},{key:`getOffsets`,value:function(e){return this.keyToLocation.get(e)}},{key:`isEmpty`,value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:`canFit`,value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},r=n.forceRedraw,i=r===void 0?!1:r,a=n.filterEle,s=a===void 0?function(){return!0}:a,c=n.filterType,l=c===void 0?function(){return!0}:c,u=!1,d=!1,f=o(e),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(s(m)){var h=o(this.renderTypes.values()),g;try{var _=function(){var e=g.value,n=e.type;if(l(n)){var r=t.collections.get(e.collection),a=e.getKey(m),o=Array.isArray(a)?a:[a];if(i)o.forEach(function(e){return r.markKeyForGC(e)}),d=!0;else{var s=e.getID?e.getID(m):m.id(),c=t._key(n,s),f=t.typeAndIdToKey.get(c);f!==void 0&&!mm(o,f)&&(u=!0,t.typeAndIdToKey.delete(c),f.forEach(function(e){return r.markKeyForGC(e)}))}}};for(h.s();!(g=h.n()).done;)_()}catch(e){h.e(e)}finally{h.f()}}}}catch(e){f.e(e)}finally{f.f()}return d&&(this.gc(),u=!1),u}},{key:`gc`,value:function(){var e=o(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}}},{key:`getOrCreateAtlas`,value:function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var c=i.getID?i.getID(e):e.id(),l=this._key(t,c);this.typeAndIdToKey.has(l)?this.typeAndIdToKey.get(l).push(r):this.typeAndIdToKey.set(l,[r])}return s}},{key:`getAtlasInfo`,value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=f(o.getOffsets(i),2),c=s[0];return{atlas:o,tex:c,tex1:c,tex2:s[1],bb:a}})}},{key:`getDebugInfo`,value:function(){var e=[],t=o(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=f(n.value,2),i=r[0],a=r[1].getCounts(),s=a.keyCount,c=a.atlasCount;e.push({type:i,keyCount:s,atlasCount:c})}}catch(e){t.e(e)}finally{t.f()}return e}}])}(),Rm=function(){function e(t){r(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return a(e,[{key:`getMaxAtlasesPerBatch`,value:function(){return this.maxAtlasesPerBatch}},{key:`getAtlasSize`,value:function(){return this.atlasSize}},{key:`getIndexArray`,value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})}},{key:`startBatch`,value:function(){this.batchAtlases=[]}},{key:`getAtlasCount`,value:function(){return this.batchAtlases.length}},{key:`getAtlases`,value:function(){return this.batchAtlases}},{key:`canAddToCurrentBatch`,value:function(e){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(e):!0}},{key:`getAtlasIndexForBatch`,value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),zm=` + float circleSD(vec2 p, float r) { + return distance(vec2(0), p) - r; // signed distance + } +`,Bm=` + float rectangleSD(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); + } +`,Vm=` + float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { + cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; + cr.x = (p.y > 0.0) ? cr.x : cr.y; + vec2 q = abs(p) - b + cr.x; + return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + } +`,Hm=` + float ellipseSD(vec2 p, vec2 ab) { + p = abs( p ); // symmetry + + // find root with Newton solver + vec2 q = ab*(p-ab); + float w = (q.x1.0) ? d : -d; + } +`,Um={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},Wm={IGNORE:1,USE_BB:2},Gm=0,Km=1,qm=2,Jm=3,Ym=4,Xm=5,Zm=6,Qm=7,$m=function(){function e(t,n,i){r(this,e),this.r=t,this.gl=n,this.maxInstances=i.webglBatchSize,this.atlasSize=i.webglTexSize,this.bgColor=i.bgColor,this.debug=i.webglDebug,this.batchDebugInfo=[],i.enableWrapping=!0,i.createTextureCanvas=lm,this.atlasManager=new Lm(t,i),this.batchManager=new Rm(i),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Um.SCREEN),this.pickingProgram=this._createShaderProgram(Um.PICKING),this.vao=this._createVAO()}return a(e,[{key:`addAtlasCollection`,value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:`addTextureAtlasRenderType`,value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:`addSimpleShapeRenderType`,value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:`invalidate`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:`gc`,value:function(){this.atlasManager.gc()}},{key:`_createShaderProgram`,value:function(e){var t=this.gl,n=`#version 300 es + precision highp float; + + uniform mat3 uPanZoomMatrix; + uniform int uAtlasSize; + + // instanced + in vec2 aPosition; // a vertex from the unit square + + in mat3 aTransform; // used to transform verticies, eg into a bounding box + in int aVertType; // the type of thing we are rendering + + // the z-index that is output when using picking mode + in vec4 aIndex; + + // For textures + in int aAtlasId; // which shader unit/atlas to use + in vec4 aTex; // x/y/w/h of texture in atlas + + // for edges + in vec4 aPointAPointB; + in vec4 aPointCPointD; + in vec2 aLineWidth; // also used for node border width + + // simple shapes + in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] + in vec4 aColor; // also used for edges + in vec4 aBorderColor; // aLineWidth is used for border width + + // output values passed to the fragment shader + out vec2 vTexCoord; + out vec4 vColor; + out vec2 vPosition; + // flat values are not interpolated + flat out int vAtlasId; + flat out int vVertType; + flat out vec2 vTopRight; + flat out vec2 vBotLeft; + flat out vec4 vCornerRadius; + flat out vec4 vBorderColor; + flat out vec2 vBorderWidth; + flat out vec4 vIndex; + + void main(void) { + int vid = gl_VertexID; + vec2 position = aPosition; // TODO make this a vec3, simplifies some code below + + if(aVertType == ${Gm}) { + float texX = aTex.x; // texture coordinates + float texY = aTex.y; + float texW = aTex.z; + float texH = aTex.w; + + if(vid == 1 || vid == 2 || vid == 4) { + texX += texW; + } + if(vid == 2 || vid == 4 || vid == 5) { + texY += texH; + } + + float d = float(uAtlasSize); + vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${Ym} || aVertType == ${Qm} + || aVertType == ${Xm} || aVertType == ${Zm}) { // simple shapes + + // the bounding box is needed by the fragment shader + vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat + vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat + vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + + // calculations are done in the fragment shader, just pass these along + vColor = aColor; + vCornerRadius = aCornerRadius; + vBorderColor = aBorderColor; + vBorderWidth = aLineWidth; + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${Km}) { + vec2 source = aPointAPointB.xy; + vec2 target = aPointAPointB.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + // stretch the unit square into a long skinny rectangle + vec2 xBasis = target - source; + vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); + vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + + gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); + vColor = aColor; + } + else if(aVertType == ${qm}) { + vec2 pointA = aPointAPointB.xy; + vec2 pointB = aPointAPointB.zw; + vec2 pointC = aPointCPointD.xy; + vec2 pointD = aPointCPointD.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + vec2 p0, p1, p2, pos; + if(position.x == 0.0) { // The left side of the unit square + p0 = pointA; + p1 = pointB; + p2 = pointC; + pos = position; + } else { // The right side of the unit square, use same approach but flip the geometry upside down + p0 = pointD; + p1 = pointC; + p2 = pointB; + pos = vec2(0.0, -position.y); + } + + vec2 p01 = p1 - p0; + vec2 p12 = p2 - p1; + vec2 p21 = p1 - p2; + + // Find the normal vector. + vec2 tangent = normalize(normalize(p12) + normalize(p01)); + vec2 normal = vec2(-tangent.y, tangent.x); + + // Find the vector perpendicular to p0 -> p1. + vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + + // Determine the bend direction. + float sigma = sign(dot(p01 + p21, normal)); + float width = aLineWidth[0]; + + if(sign(pos.y) == -sigma) { + // This is an intersecting vertex. Adjust the position so that there's no overlap. + vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } else { + // This is a non-intersecting vertex. Treat it like a mitre join. + vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } + + vColor = aColor; + } + else if(aVertType == ${Jm} && vid < 3) { + // massage the first triangle into an edge arrow + if(vid == 0) + position = vec2(-0.15, -0.3); + if(vid == 1) + position = vec2( 0.0, 0.0); + if(vid == 2) + position = vec2( 0.15, -0.3); + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + vColor = aColor; + } + else { + gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space + } + + vAtlasId = aAtlasId; + vVertType = aVertType; + vIndex = aIndex; + } + `,r=this.batchManager.getIndexArray(),i=cm(t,n,`#version 300 es + precision highp float; + + // declare texture unit for each texture atlas in the batch + ${r.map(function(e){return`uniform sampler2D uTexture${e};`}).join(` + `)} + + uniform vec4 uBGColor; + uniform float uZoom; + + in vec2 vTexCoord; + in vec4 vColor; + in vec2 vPosition; // model coordinates + + flat in int vAtlasId; + flat in vec4 vIndex; + flat in int vVertType; + flat in vec2 vTopRight; + flat in vec2 vBotLeft; + flat in vec4 vCornerRadius; + flat in vec4 vBorderColor; + flat in vec2 vBorderWidth; + + out vec4 outColor; + + ${zm} + ${Bm} + ${Vm} + ${Hm} + + vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha + return vec4( + top.rgb + (bot.rgb * (1.0 - top.a)), + top.a + (bot.a * (1.0 - top.a)) + ); + } + + vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance + // scale to the zoom level so that borders don't look blurry when zoomed in + // note 1.5 is an aribitrary value chosen because it looks good + return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); + } + + void main(void) { + if(vVertType == ${Gm}) { + // look up the texel from the texture unit + ${r.map(function(e){return`if(vAtlasId == ${e}) outColor = texture(uTexture${e}, vTexCoord);`}).join(` + else `)} + } + else if(vVertType == ${Jm}) { + // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; + outColor = blend(vColor, uBGColor); + outColor.a = 1.0; // make opaque, masks out line under arrow + } + else if(vVertType == ${Ym} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done + } + else if(vVertType == ${Ym} || vVertType == ${Qm} + || vVertType == ${Xm} || vVertType == ${Zm}) { // use SDF + + float outerBorder = vBorderWidth[0]; + float innerBorder = vBorderWidth[1]; + float borderPadding = outerBorder * 2.0; + float w = vTopRight.x - vBotLeft.x - borderPadding; + float h = vTopRight.y - vBotLeft.y - borderPadding; + vec2 b = vec2(w/2.0, h/2.0); // half width, half height + vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center + + float d; // signed distance + if(vVertType == ${Ym}) { + d = rectangleSD(p, b); + } else if(vVertType == ${Qm} && w == h) { + d = circleSD(p, b.x); // faster than ellipse + } else if(vVertType == ${Qm}) { + d = ellipseSD(p, b); + } else { + d = roundRectangleSD(p, b, vCornerRadius.wzyx); + } + + // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling + // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box + if(d > 0.0) { + if(d > outerBorder) { + discard; + } else { + outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); + } + } else { + if(d > innerBorder) { + vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; + vec4 innerBorderColor = blend(vBorderColor, vColor); + outColor = distInterp(innerBorderColor, outerColor, d); + } + else { + vec4 outerColor; + if(innerBorder == 0.0 && outerBorder == 0.0) { + outerColor = vec4(0); + } else if(innerBorder == 0.0) { + outerColor = vBorderColor; + } else { + outerColor = blend(vBorderColor, vColor); + } + outColor = distInterp(vColor, outerColor, d - innerBorder); + } + } + } + else { + outColor = vColor; + } + + ${e.picking?`if(outColor.a == 0.0) discard; + else outColor = vIndex;`:``} + } + `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:Um.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:`startBatch`,value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:`endFrame`,value:function(){this.endBatch()}},{key:`_isVisible`,value:function(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1}},{key:`drawTexture`,value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&!(e.isEdge()&&!this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var s=a.getTexPickingMode(e);if(s===Wm.IGNORE)return;if(s==Wm.USE_BB){this.drawPickingRectangle(e,t,n);return}}var c=o(r.getAtlasInfo(e,n)),l;try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.atlas,p=u.tex1,m=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var h=i.getAtlasIndexForBatch(d),g=0,_=[[p,!0],[m,!1]];g<_.length;g++){var v=f(_[g],2),y=v[0],b=v[1];if(y.w!=0){var x=this.instanceCount;this.vertTypeBuffer.getView(x)[0]=Gm,gm(t,this.indexBuffer.getView(x));var S=this.atlasIdBuffer.getView(x);S[0]=h;var C=this.texBuffer.getView(x);C[0]=y.x,C[1]=y.y,C[2]=y.w,C[3]=y.h;var w=this.transformBuffer.getMatrixView(x);this.setTransformMatrix(e,w,a,u,b),this.instanceCount++,b||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(e){c.e(e)}finally{c.f()}}}},{key:`setTransformMatrix`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,c=r.tex2,l=s.w/(s.w+c.w);i||(l=1-l);var u=this._getAdjustedBB(o,a,i,l);this._applyTransformMatrix(t,u,n,e)}else{var d=n.getBoundingBox(e),f=this._getAdjustedBB(d,a,!0,1);this._applyTransformMatrix(t,f,n,e)}}},{key:`_applyTransformMatrix`,value:function(e,t,n,r){var i,a;Om(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),c=s.x,l=s.y;Am(e,e,[c,l]),jm(e,e,o);var u=n.getRotationOffset(r);i=u.x+(t.xOffset||0),a=u.y+(t.yOffset||0)}else i=t.x1,a=t.y1;Am(e,e,[i,a]),Mm(e,e,[t.w,t.h])}},{key:`_getAdjustedBB`,value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,c=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var l=0,u=o*r;return n&&r<1?o=u:!n&&r<1&&(l=o-u,i+=l,o=u),{x1:i,y1:a,w:o,h:s,xOffset:l,yOffset:c}}},{key:`drawPickingRectangle`,value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=Ym,gm(t,this.indexBuffer.getView(i)),hm([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:`drawNode`,value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e,this.renderTarget)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===Xm||a===Zm){var s=r.getBoundingBox(e),c=this._getCornerRadius(e,i.radius,s),l=this.cornerRadiusBuffer.getView(o);l[0]=c,l[1]=c,l[2]=c,l[3]=c,a===Zm&&(l[0]=0,l[2]=0)}gm(t,this.indexBuffer.getView(o));var u=this.renderTarget.picking?1:e.pstyle(i.opacity).value,d=e.pstyle(i.color).value;hm(d,u,this.colorBuffer.getView(o));var f=this.lineWidthBuffer.getView(o);if(f[0]=0,f[1]=0,i.border){var p=e.pstyle(`border-width`).value;if(p>0){var m=e.pstyle(`border-color`).value,h=e.pstyle(`border-opacity`).value;hm(m,h,this.borderColorBuffer.getView(o));var g=e.pstyle(`border-position`).value;if(g===`inside`)f[0]=0,f[1]=-p;else if(g===`outside`)f[0]=p,f[1]=0;else{var _=p/2;f[0]=_,f[1]=-_}}}var v=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,v,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:`_getVertTypeForShape`,value:function(e,t){switch(e.pstyle(t).value){case`rectangle`:return Ym;case`ellipse`:return Qm;case`roundrectangle`:case`round-rectangle`:return Xm;case`bottom-round-rectangle`:return Zm;default:return}}},{key:`_getCornerRadius`,value:function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return jr(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)}},{key:`drawEdgeArrow`,value:function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,c=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,l=e.pstyle(`width`).pfValue,u=e.pstyle(`arrow-scale`).value,d=this.r.getArrowWidth(l,u),f=this.instanceCount,p=this.transformBuffer.getMatrixView(f);Om(p),Am(p,p,[i,a]),Mm(p,p,[d,d]),jm(p,p,o),this.vertTypeBuffer.getView(f)[0]=Jm,gm(t,this.indexBuffer.getView(f)),hm(s,c,this.colorBuffer.getView(f)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:`drawEdgeLine`,value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var c=this.instanceCount;this.vertTypeBuffer.getView(c)[0]=Km,gm(t,this.indexBuffer.getView(c)),hm(o,s,this.colorBuffer.getView(c));var l=this.lineWidthBuffer.getView(c);l[0]=a;var u=this.pointAPointBBuffer.getView(c);u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var d=0;d=this.maxInstances&&this.endBatch()}}}}},{key:`_isValidEdge`,value:function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))}},{key:`_getEdgePoints`,value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:`_getNumSegments`,value:function(e){return Math.min(15,this.maxInstances)}},{key:`_getCurveSegmentPoints`,value:function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n}},{key:`_setCurvePoint`,value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},s=function(e){return e.pstyle(`text-events`).strValue===`yes`?Wm.USE_BB:Wm.IGNORE},c=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};n.drawing.addAtlasCollection(`node`,{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection(`label`,{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:c,isSimple:pm,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),n.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:c,isVisible:o(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),n.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:c,isVisible:o(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),n.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:s,getKey:rh(t.getLabelKey,null),getBoundingBox:ih(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a(`label`)}),n.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:s,getKey:rh(t.getSourceLabelKey,`source`),getBoundingBox:ih(t.getSourceLabelBox,`source`),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i(`source`),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a(`source-label`)}),n.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:s,getKey:rh(t.getTargetLabelKey,`target`),getBoundingBox:ih(t.getTargetLabelBox,`target`),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i(`target`),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a(`target-label`)});var l=st(function(){console.log(`garbage collect flag set`),n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&l()}),ah(n)};function th(e){var t=e.cy.container();return pe(t&&t.style&&t.style.backgroundColor||`white`)}function nh(e,t){var n=e._private.rscratch;return Xt(n,`labelWrapCachedLines`,t)||[]}var rh=function(e,t){return function(n){var r=e(n),i=nh(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},ih=function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=nh(n,t),c=i.h/s.length,l=c*o,u=i.y1+l;return{x1:i.x1,w:i.w,y1:u,h:c,yOffset:l}}}return i}};function ah(e){var t=e.render;e.render=function(n){n||={};var r=e.cy;e.webgl&&(r.zoom()>$f?(oh(e),t.call(e,n)):(sh(e),gh(e,n,Um.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return mh(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}function oh(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function sh(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function ch(e){var t=e.canvasWidth,n=e.canvasHeight,r=um(e),i=r.pan,a=r.zoom,o=Dm();Am(o,o,[i.x,i.y]),Mm(o,o,[a,a]);var s=Dm();Nm(s,t,n);var c=Dm();return km(c,s,o),c}function lh(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=um(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function uh(e,t){e.drawSelectionRectangle(t,function(t){return lh(e,t)})}function dh(e){var t=e.data.contexts[e.NODE];t.save(),lh(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function fh(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),a=e.data.contexts[e.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}function mh(e,t,n){var r=ph(e,t,n),i=e.getCachedZSortedEles(),a,s,c=o(r),l;try{for(c.s();!(l=c.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!s&&u.isEdge()&&(s=u),a&&s)break}}catch(e){c.e(e)}finally{c.f()}return[a,s].filter(Boolean)}function hh(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}function gh(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&uh(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var s=e.data.contexts[e.WEBGL];n.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var c=ch(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(c,n),n.screen){for(var u=0;u0&&a>0){f.clearRect(0,0,i,a),f.globalCompositeOperation=`source-over`;var p=this.getCachedZSortedEles();if(e.full)f.translate(-n.x1*c,-n.y1*c),f.scale(c,c),this.drawElements(f,p),f.scale(1/c,1/c),f.translate(n.x1*c,n.y1*c);else{var m=t.pan(),h={x:m.x*c,y:m.y*c};c*=t.zoom(),f.translate(h.x,h.y),f.scale(c,c),this.drawElements(f,p),f.scale(1/c,1/c),f.translate(-h.x,-h.y)}e.bg&&(f.globalCompositeOperation=`destination-over`,f.fillStyle=e.bg,f.rect(0,0,i,a),f.fill())}return d};function Th(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),i=new Uint8Array(r),a=0;a`u`?`undefined`:g(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[Ip,Up,Xp,Qp,$p,nm,im,eh,_h,wh,Oh].forEach(function(e){X($,e)});var Mh=[{type:`layout`,extensions:Wd},{type:`renderer`,extensions:[{name:`null`,impl:Gd},{name:`base`,impl:Wf},{name:`canvas`,impl:kh}]}],Nh={},Ph={};function Fh(e,t,n){var r=n,i=function(n){zt("Can not register `"+t+"` for `"+e+"` since `"+n+"` already exists in the prototype and can not be overridden")};if(e===`core`){if(nd.prototype[t])return i(t);nd.prototype[t]=n}else if(e===`collection`){if(gu.prototype[t])return i(t);gu.prototype[t]=n}else if(e===`layout`){for(var a=function(e){this.options=e,n.call(this,e),O(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(n.prototype),s=[],c=0;c()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function te(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ne(e,t){return te(e.type,t,e.props)}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(T(o)&&(o=ne(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,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 c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,T());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-eet&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?T():S=!1}}}var T;if(typeof y==`function`)T=function(){y(ne)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=ne,T=function(){ie.postMessage(null)}}else T=function(){_(ne,0)};function ae(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,T()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1fe||(e.current=de[fe],de[fe]=null,fe--)}function k(e,t){fe++,de[fe]=e.current,e.current=t}var me=pe(null),he=pe(null),ge=pe(null),_e=pe(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function ye(){O(me),O(he),O(ge)}function be(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Hd(t,e.type);t!==n&&(k(he,e),k(me,n))}function xe(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=ue)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var A=256,j=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,`passive`,{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=xn(),bn=yn=vn=null,or=!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:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ar(n)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Fr=hn&&`documentMode`in document&&11>=document.documentMode,Ir=null,Lr=null,Rr=null,zr=!1;function Br(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||Ir==null||Ir!==Ht(r)||(r=Ir,`selectionStart`in r&&Pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&kr(Rr,r)||(Rr=r,r=Ed(Lr,`onSelect`),0>=o,i-=o,Mi=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),P&&Pi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),P&&Pi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return P&&Pi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),P&&Pi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Na(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ba(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=yi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=vi(o.type,o.key,o.props,null,e.mode,c),Ba(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Si(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Na(o),b(e,r,o,c)}if(le(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,za(o),c);if(o.$$typeof===C)return b(e,r,sa(e,o),c);Va(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=bi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ra=0;var i=b(e,t,n,r);return La=null,i}catch(t){if(t===Da||t===ka)throw t;var a=mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ua=Ha(!0),Wa=Ha(!1),Ga=!1;function Ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=di(e),ui(e,null,n),t}return si(e,r,t,n),di(e)}function Xa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}function Za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Qa=!1;function $a(){if(Qa){var e=va;if(e!==null)throw e}}function eo(e,t,n,r){Qa=!1;var i=e.updateQueue;Ga=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===_a&&(Qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ga=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function to(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function no(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};E.T=s,Ls(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,xa(c,r),pu(e)):Is(e,t,r,pu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,ue,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},pu())}function As(){return oa(Qf)}function js(){return B().memoizedState}function Ms(){return B().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ja(n);var r=Ya(t,e,n);r!==null&&(hu(r,t,n),Xa(r,t,n)),t={cache:pa()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ci(e,t,n,r),n!==null&&(hu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,pu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(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,n);if(i.hasEagerState=!0,i.eagerState=s,Or(s,o))return si(e,t,i,0),K===null&&oi(),!1}catch{}if(n=ci(e,t,i,r),n!==null)return hu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ci(e,n,r,2),t!==null&&hu(t,e,2)}function Rs(e){var t=e.alternate;return e===I||t!==null&&t===I}function zs(e,t){yo=vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}var Vs={readContext:oa,use:Io,useCallback:z,useContext:z,useEffect:z,useImperativeHandle:z,useLayoutEffect:z,useInsertionEffect:z,useMemo:z,useReducer:z,useRef:z,useState:z,useDebugValue:z,useDeferredValue:z,useTransition:z,useSyncExternalStore:z,useId:z,useHostTransitionStatus:z,useFormState:z,useActionState:z,useOptimistic:z,useMemoCache:z,useCacheRefresh:z};Vs.useEffectEvent=z;var Hs={readContext:oa,use:Io,useCallback:function(e,t){return No().memoizedState=[e,t===void 0?null:t],e},useContext:oa,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=No();t=t===void 0?null:t;var r=e();if(bo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=No();if(n!==void 0){var i=n(t);if(bo){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=No();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(No(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,I,e.queue,!0,!1),No().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,a=No();if(P){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=No(),t=K.identifierPrefix;if(P){var n=Ni,r=Mi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=xo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[pt]=t,o[mt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return H(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,Ki(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ui(t,!0)}else e=Bd(e).createTextNode(r),e[pt]=t,t.stateNode=e}return H(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ki(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[pt]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),e=!1}else n=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ho(t),t):(ho(t),null);if(t.flags&128)throw Error(i(558))}return H(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[pt]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),a=!1}else a=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ho(t),t):(ho(t),null)}return ho(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rc(t,t.updateQueue),H(t),null);case 4:return ye(),e===null&&Sd(t.stateNode.containerInfo),H(t),null;case 10:return ea(t.type),H(t),null;case 19:if(O(F),r=t.memoizedState,r===null)return H(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)zc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,zc(r,!1),e=o.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_i(n,e),n=n.sibling;return k(F,F.current&1|2),P&&Pi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>tu&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304)}else{if(!a)if(e=go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!P)return H(t),null}else 2*Pe()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(H(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=F.current,k(F,a?n&1|2:n&1),P&&Pi(t,r.treeForkCount),e);case 22:case 23:return ho(t),so(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(H(t),t.subtreeFlags&6&&(t.flags|=8192)):H(t),n=t.updateQueue,n!==null&&Rc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(Ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(fa),H(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Li(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(fa),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(ho(t),t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ho(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(F),null;case 4:return ye(),null;case 10:return ea(t.type),null;case 22:case 23:return ho(t),so(),e!==null&&O(Ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(fa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Li(t),t.tag){case 3:ea(fa),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&ho(t);break;case 13:ho(t);break;case 19:O(F);break;case 10:ea(t.type);break;case 22:case 23:ho(t),so(),e!==null&&O(Ca);break;case 24:ea(fa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{no(t,n)}catch(t){Z(e,e.return,t)}}}function Kc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[mt]=t}catch(t){Z(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[pt]=e,t[mt]=n}catch(t){Z(e,e.return,t)}}var nl=!1,U=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Nr(e),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[pt]=e,M(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=jr(s,h),v=jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Dl(o,o.current,s,n),G=c,id(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{D.p=a,E.T=r,Vu(e,t)}}function Wu(e,t,n){t=wi(n,t),t=tc(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(rt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=wi(n,e),n=nc(2),r=Ya(t,n,2),r!==null&&(rc(n,r,t,e),rt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(X===4||X===3&&(J&62914560)===J&&300>Pe()-$l?!(G&2)&&Su(e,0):ql|=n,Yl===J&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=tt()),e=li(e,t),e!==null&&(rt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ae(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=J,a=Qe(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Pe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),M(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Tt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);M(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=ge.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Tt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Tt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Tt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Wt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),M(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Wt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,M(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),M(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,M(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),M(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,M(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),M(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,M(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),M(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),v=o(((e,t)=>{t.exports=_()}));function y(...e){let t=``;for(let n of e)n&&(t+=t?` `+n:n);return t}var b=0;function x(e=`rcs`){return b+=1,`${e}-${b}`}var S=v(),C=c(u(),1),w=C.forwardRef(function(e,t){let{variant:n=`secondary`,size:r=`md`,shape:i=`rect`,loading:a=!1,disabled:o=!1,block:s=!1,iconLeft:c,iconRight:l,type:u=`button`,children:d,onClick:f,className:p,style:m,id:h,"data-testid":g,"aria-label":_,"aria-labelledby":v,"aria-describedby":b}=e;return(0,S.jsxs)(`button`,{ref:t,id:h,"data-testid":g,type:u,className:y(`rcs-button`,`rcs-button--${n}`,`rcs-button--${r}`,i!==`rect`&&`rcs-button--${i}`,s&&`rcs-button--block`,p),style:m,disabled:o||a,"aria-disabled":o||a||void 0,"aria-busy":a||void 0,"aria-label":_,"aria-labelledby":v,"aria-describedby":b,onClick:f,children:[a?(0,S.jsx)(`span`,{className:`rcs-button-spinner`,"aria-hidden":!0}):c,d,l]})}),ee=C.forwardRef(function(e,t){let{icon:n,round:r=!1,"aria-label":i,...a}=e;return(0,S.jsx)(w,{ref:t,...a,shape:r?`circle`:`square`,"aria-label":i,children:n})}),te=C.forwardRef(function(e,t){let{value:n,defaultValue:r,placeholder:i,size:a=`md`,status:o=`default`,disabled:s=!1,readOnly:c=!1,invalid:l=!1,prefix:u,suffix:d,clearable:f=!1,type:p=`text`,autoFocus:m=!1,onChange:h,onFocus:g,onBlur:_,onKeyDown:v,className:b,style:x,id:w,"data-testid":ee,"aria-label":te,"aria-labelledby":ne,"aria-describedby":T}=e,re=n!==void 0,[ie,ae]=C.useState(r??``),oe=re?n:ie,se=C.useRef(null);C.useImperativeHandle(t,()=>se.current);let ce=l?`error`:o;return(0,S.jsxs)(`span`,{className:y(`rcs-input-wrap`,`rcs-input-wrap--${a}`,b),style:x,"data-status":ce,"data-disabled":s||void 0,children:[u&&(0,S.jsx)(`span`,{className:`rcs-input-affix rcs-input-affix--left`,children:u}),(0,S.jsx)(`input`,{ref:se,id:w,"data-testid":ee,className:`rcs-input`,type:p,value:oe,placeholder:i,disabled:s,readOnly:c,autoFocus:m,"aria-invalid":ce===`error`||void 0,"aria-label":te,"aria-labelledby":ne,"aria-describedby":T,onChange:e=>{re||ae(e.target.value),h?.(e.target.value,e)},onFocus:g,onBlur:_,onKeyDown:v}),f&&oe&&!s&&!c&&(0,S.jsx)(`button`,{type:`button`,className:`rcs-input-clear`,"aria-label":`Clear`,onClick:e=>{let t=se.current;re||ae(``),t&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(t,``),t.dispatchEvent(new Event(`input`,{bubbles:!0}))),h?.(``,e)},children:`×`}),d&&(0,S.jsx)(`span`,{className:`rcs-input-affix rcs-input-affix--right`,children:d})]})}),ne=C.forwardRef(function(e,t){let{value:n,defaultValue:r,placeholder:i,rows:a=4,autoResize:o=!1,maxLength:s,showCount:c=!1,size:l=`md`,status:u=`default`,disabled:d=!1,readOnly:f=!1,invalid:p=!1,onChange:m,onFocus:h,onBlur:g,onKeyDown:_,autoFocus:v,className:b,style:x,id:w,"data-testid":ee,"aria-label":te,"aria-labelledby":ne,"aria-describedby":T}=e,re=n!==void 0,[ie,ae]=C.useState(r??``),oe=re?n:ie,se=C.useRef(null);C.useImperativeHandle(t,()=>se.current),C.useLayoutEffect(()=>{if(!o)return;let e=se.current;e&&(e.style.height=`auto`,e.style.height=e.scrollHeight+`px`)},[oe,o]);let ce=p?`error`:u;return(0,S.jsxs)(`span`,{style:{display:`block`,width:`100%`,...x},children:[(0,S.jsx)(`textarea`,{ref:se,id:w,"data-testid":ee,className:y(`rcs-textarea`,`rcs-textarea--${l}`,b),rows:a,value:oe,placeholder:i,maxLength:s,disabled:d,readOnly:f,autoFocus:v,"aria-invalid":ce===`error`||void 0,"aria-label":te,"aria-labelledby":ne,"aria-describedby":T,"data-status":ce,onChange:e=>{re||ae(e.target.value),m?.(e.target.value,e)},onFocus:h,onBlur:g,onKeyDown:_}),c&&(0,S.jsxs)(`span`,{className:`rcs-textarea-count`,children:[oe.length,s?` / ${s}`:``]})]})});function T(e){let{tone:t=`neutral`,size:n=`md`,icon:r,closable:i=!1,onClose:a,children:o,className:s,style:c,id:l}=e;return(0,S.jsxs)(`span`,{id:l,className:y(`rcs-badge`,`rcs-badge--${t}`,n!==`md`&&`rcs-badge--${n}`,s),style:c,children:[r&&(0,S.jsx)(`span`,{"aria-hidden":!0,children:r}),o,i&&(0,S.jsx)(`button`,{type:`button`,className:`rcs-badge-x`,"aria-label":`Remove`,onClick:a,children:`×`})]})}var re={xs:4,sm:8,md:12,lg:16,xl:24};function ie(e){return e===void 0?12:typeof e==`number`?e:re[e]}var ae={none:`0`,sm:`4px`,md:`6px`,lg:`8px`,pill:`9999px`,circle:`50%`};function oe(e){return e===void 0?`var(--radius-md)`:typeof e==`number`?`${e}px`:ae[e]}var se={none:`none`,sm:`var(--shadow-sm)`,md:`var(--shadow-md)`,lg:`var(--shadow-lg)`,overlay:`var(--shadow-lg)`};function ce(e){let{title:t,subtitle:n,extra:r,footer:i,bordered:a=!0,hoverable:o=!1,padding:s,radius:c,shadow:l=`none`,children:u,className:d,style:f,id:p}=e,m={borderRadius:oe(c),boxShadow:se[l],border:a?void 0:`0`,...f};return(0,S.jsxs)(`div`,{id:p,className:y(`rcs-card`,d),style:m,"data-hoverable":o||void 0,children:[(t||r)&&(0,S.jsxs)(`div`,{className:`rcs-card-header`,children:[(0,S.jsxs)(`div`,{children:[t&&(0,S.jsx)(`div`,{className:`rcs-card-title`,children:t}),n&&(0,S.jsx)(`div`,{className:`rcs-card-subtitle`,children:n})]}),r&&(0,S.jsx)(`div`,{className:`rcs-card-extra`,children:r})]}),(0,S.jsx)(`div`,{className:`rcs-card-body`,style:s===void 0?void 0:{padding:ie(s)},children:u}),i&&(0,S.jsx)(`div`,{className:`rcs-card-footer`,children:i})]})}function le(e){let{direction:t=`horizontal`,size:n=`sm`,align:r,justify:i,wrap:a=!1,split:o,children:s,className:c,style:l,id:u}=e,d=ie(n),f=C.Children.toArray(s);return(0,S.jsx)(`div`,{id:u,className:y(`rcs-space`,t===`vertical`&&`rcs-space--vertical`,a&&`rcs-space--wrap`,c),style:{gap:d,alignItems:r,justifyContent:i,flexDirection:t===`vertical`?`column`:`row`,...l},children:f.map((e,t)=>(0,S.jsxs)(C.Fragment,{children:[e,o&&te.key===m),g=(e,t)=>{t||(d||p(e),o?.(e))};return(0,S.jsxs)(`div`,{id:u,"data-scrollable":s||void 0,className:y(`rcs-tabs`,`rcs-tabs--${i}`,`rcs-tabs--${a}`,c),style:l,children:[(0,S.jsx)(`div`,{className:`rcs-tabs-nav`,"data-scrollable":s||void 0,role:`tablist`,children:t.map(e=>(0,S.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e.key===m,disabled:e.disabled,"data-active":e.key===m||void 0,className:`rcs-tabs-tab`,onClick:()=>g(e.key,e.disabled),children:[e.icon&&(0,S.jsx)(`span`,{"aria-hidden":!0,children:e.icon}),(0,S.jsx)(`span`,{children:e.label}),e.badge&&(0,S.jsx)(`span`,{style:{marginLeft:4},children:e.badge})]},e.key))}),h?.content&&(0,S.jsx)(`div`,{className:`rcs-tabs-content`,role:`tabpanel`,children:h.content})]})}var de={info:`ⓘ`,success:`✓`,warning:`⚠`,danger:`✕`};function fe(e){let{severity:t,title:n,children:r,closable:i=!1,icon:a,action:o,onClose:s,className:c,style:l,id:u}=e;return(0,S.jsxs)(`div`,{id:u,role:`alert`,className:y(`rcs-alert`,`rcs-alert--${t}`,c),style:l,children:[a!==!1&&(0,S.jsx)(`span`,{className:`rcs-alert-icon`,"aria-hidden":!0,children:a??de[t]}),(0,S.jsxs)(`div`,{className:`rcs-alert-body`,children:[n&&(0,S.jsx)(`div`,{className:`rcs-alert-title`,children:n}),r&&(0,S.jsx)(`div`,{className:`rcs-alert-content`,children:r}),o&&(0,S.jsx)(`div`,{className:`rcs-alert-action`,children:o})]}),i&&(0,S.jsx)(`button`,{type:`button`,className:`rcs-alert-close`,"aria-label":`Dismiss`,onClick:s,children:`×`})]})}function pe(e,t){C.useEffect(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t])}function O(e){let{open:t,title:n,description:r,size:i=`md`,closeOnEsc:a=!0,closeOnBackdrop:o=!0,footer:s,children:c,onClose:l,className:u,style:d,id:f}=e;return pe(t&&a,l),t?(0,S.jsx)(`div`,{className:`rcs-modal-backdrop`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":n?`${f??`modal`}-title`:void 0,onClick:e=>{o&&e.target===e.currentTarget&&l()},children:(0,S.jsxs)(`div`,{id:f,className:y(`rcs-modal`,`rcs-modal--${i}`,u),style:d,children:[(n||r)&&(0,S.jsxs)(`div`,{className:`rcs-modal-header`,children:[n&&(0,S.jsx)(`h2`,{id:`${f??`modal`}-title`,className:`rcs-modal-title`,children:n}),r&&(0,S.jsx)(`div`,{className:`rcs-modal-desc`,children:r})]}),(0,S.jsx)(`div`,{className:`rcs-modal-body`,children:c}),s&&(0,S.jsx)(`div`,{className:`rcs-modal-footer`,children:s})]})}):null}function k(e){let{size:t=`md`,tone:n=`neutral`,label:r,className:i,style:a,id:o}=e;return(0,S.jsxs)(`span`,{id:o,className:y(`rcs-spin`,`rcs-spin--${t}`,i),style:a,"data-tone":n,role:`status`,children:[(0,S.jsx)(`span`,{className:`rcs-spin-glyph`,"aria-hidden":!0}),r&&(0,S.jsx)(`span`,{children:r})]})}var me=[],he=new Set;function ge(){for(let e of he)e([...me])}var _e={show(e){let t=e.id??x(`toast`),n={...e,id:t};me.push(n),ge();let r=e.duration??4e3;return r>0&&window.setTimeout(()=>_e.dismiss(t),r),t},dismiss(e){let t=me.findIndex(t=>t.id===e);t>=0&&(me.splice(t,1)[0].onDismiss?.(),ge())},async promise(e,t){let n=_e.show({severity:`info`,title:t.loading,duration:0});try{let r=await e;return _e.dismiss(n),_e.show({severity:`success`,title:t.success}),r}catch(e){throw _e.dismiss(n),_e.show({severity:`danger`,title:t.error}),e}}};function ve(){let[e,t]=C.useState([]);return C.useEffect(()=>(he.add(t),()=>{he.delete(t)}),[]),(0,S.jsx)(`div`,{className:`rcs-toast-region`,"aria-live":`polite`,"aria-atomic":`false`,children:e.map(e=>(0,S.jsxs)(`div`,{className:y(`rcs-toast`,`rcs-toast--${e.severity??`info`}`),role:`status`,children:[(0,S.jsx)(`span`,{className:`rcs-toast-icon`,"aria-hidden":!0,children:de[e.severity??`info`]}),(0,S.jsxs)(`div`,{style:{flex:1},children:[(0,S.jsx)(`div`,{className:`rcs-toast-title`,children:e.title}),e.description&&(0,S.jsx)(`div`,{className:`rcs-toast-desc`,children:e.description})]}),e.action&&(0,S.jsx)(`button`,{className:`rcs-toast-action`,onClick:()=>{e.action.onClick(),_e.dismiss(e.id)},children:e.action.label}),(0,S.jsx)(`button`,{className:`rcs-input-clear`,"aria-label":`Dismiss`,onClick:()=>_e.dismiss(e.id),children:`×`})]},e.id))})}var ye=C.createContext(null),be={"signal-red":`#E60000`,"signal-red-700":`#9E0000`,"signal-red-900":`#520000`,"cod-gray":`#1C1C1C`,"cod-gray-700":`#2B2B2B`,"cod-gray-500":`#5A5A5A`,"cod-gray-300":`#A6A6A6`,"cod-gray-100":`#F5F5F5`,"cod-gray-050":`#FAFAFA`,white:`#FFFFFF`};function xe(e){let{mode:t,accent:n,fontFamily:r,children:i}=e,[a,o]=C.useState(t??`light`),s=t??a;C.useEffect(()=>{typeof document>`u`||document.documentElement.setAttribute(`data-theme`,s)},[s]),C.useEffect(()=>{typeof document>`u`||!n||document.documentElement.style.setProperty(`--accent`,be[n])},[n]),C.useEffect(()=>{typeof document>`u`||!r||(r.sans&&document.documentElement.style.setProperty(`--font-sans`,r.sans),r.mono&&document.documentElement.style.setProperty(`--font-mono`,r.mono))},[r]);let c=C.useMemo(()=>({mode:s,setMode:e=>o(e),toggle:()=>o(e=>e===`light`?`dark`:`light`)}),[s]);return(0,S.jsx)(ye.Provider,{value:c,children:i})}var Se=g(),Ce=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),we=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Te={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ee=(0,C.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,C.createElement)(`svg`,{ref:c,...Te,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:we(`lucide`,i),...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])),De=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(Ee,{ref:i,iconNode:t,className:we(`lucide-${Ce(e)}`,n),...r}));return n.displayName=`${e}`,n},Oe=De(`ArrowRight`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ke=De(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ae=De(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),je=De(`Network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Me=De(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),Ne=De(`Plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M9 8V2`,key:`14iosj`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`,key:`osxo6l`}]]),Pe=De(`Radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),Fe=De(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Ie=De(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Le=De(`SendHorizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),Re=De(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ze=De(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),Be=De(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Ve(e){return He(JSON.stringify(e,null,2)).replace(/"([^"]+)":/g,`"$1":`).replace(/: "([^"]*)"/g,`: "$1"`).replace(/: (true|false)/g,`: $1`).replace(/: (null)/g,`: $1`).replace(/: (-?\d+\.?\d*)/g,`: $1`)}function He(e){return e.replace(/&/g,`&`).replace(//g,`>`)}function Ue(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e*10)/10)}var We=`oc-theme`;function Ge(){let[e,t]=(0,C.useState)(()=>localStorage.getItem(We)??`dark`);return(0,C.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e),localStorage.setItem(We,e)},[e]),{theme:e,toggle:()=>t(e=>e===`dark`?`light`:`dark`)}}var Ke=[{key:`services`,label:`Service Map`,icon:je},{key:`traces`,label:`Traces`,icon:Ie},{key:`logs`,label:`Logs`,icon:Pe},{key:`mcp`,label:`MCP`,icon:ze}],qe=48;function Je({view:e,onNavigate:t,dashboard:n,stats:r,wsConnected:i}){let{theme:a,toggle:o}=Ge(),s=n?.error_rate??0;return(0,S.jsxs)(`nav`,{style:{height:qe,flexShrink:0,background:`var(--bg-1)`,borderBottom:`1px solid var(--border-1)`,display:`flex`,alignItems:`center`,padding:`0 1rem`,gap:`0.25rem`,position:`relative`,zIndex:10,overflowX:`auto`},children:[(0,S.jsxs)(`a`,{href:`/`,style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,paddingRight:`1rem`,marginRight:`0.25rem`,borderRight:`1px solid var(--border-1)`,textDecoration:`none`,color:`inherit`,flexShrink:0},children:[(0,S.jsx)(`span`,{style:{color:`var(--accent-fg)`,fontSize:`1rem`},children:`◆`}),(0,S.jsx)(`span`,{style:{fontSize:`0.7rem`,fontWeight:700,letterSpacing:`0.12em`},children:`OtelContext`})]}),Ke.map(({key:n,label:r,icon:i})=>(0,S.jsx)(w,{variant:e===n?`secondary`:`ghost`,size:`sm`,iconLeft:(0,S.jsx)(i,{size:13}),onClick:()=>t(n),children:r},n)),(0,S.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,S.jsxs)(le,{size:`md`,align:`center`,children:[(0,S.jsx)(Ye,{label:`Services`,value:n?.active_services?.toString()??`--`,tone:`info`}),(0,S.jsx)(Ye,{label:`Traces`,value:Ue(n?.total_traces??0)}),(0,S.jsx)(Ye,{label:`Logs`,value:Ue(n?.total_logs??0)}),(0,S.jsx)(Ye,{label:`Error Rate`,value:n?.error_rate==null?`--%`:`${n.error_rate.toFixed(1)}%`,tone:s>5?`danger`:`neutral`}),(0,S.jsx)(Ye,{label:`DB`,value:r?.db_size_mb==null?`--`:`${r.db_size_mb}MB`}),(0,S.jsx)(T,{tone:i?`info`:`danger`,size:`sm`,children:i?`WS`:`WS · off`})]})}),(0,S.jsx)(ee,{icon:a===`dark`?(0,S.jsx)(Re,{size:15}):(0,S.jsx)(Ae,{size:15}),"aria-label":`Toggle theme`,variant:`ghost`,size:`sm`,round:!0,onClick:o})]})}function Ye({label:e,value:t,tone:n}){return(0,S.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`baseline`,gap:`0.3rem`,fontSize:`0.7rem`,color:`var(--fg-3)`,whiteSpace:`nowrap`},children:[e,(0,S.jsx)(`b`,{style:{color:n===`danger`?`var(--brand-red-500)`:`var(--fg-1)`,fontWeight:600,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:t})]})}var A={fg1:`#1C1C1C`,fg2:`#3D3D3D`,fg3:`#5A5A5A`,fg4:`#A6A6A6`,bg1:`#FFFFFF`,bg2:`#FAFAFA`,bg3:`#F5F5F5`,border1:`#E5E5E5`,border2:`#D4D4D4`,accent:`#E60000`,accentSoft:`rgba(230,0,0,0.08)`,success:`#1F9E5C`,warning:`#D98E2B`,danger:`#E60000`,info:`#2D73D9`,series:[`#E60000`,`#1C1C1C`,`#5A5A5A`,`#2D73D9`,`#1F9E5C`,`#D98E2B`,`#9E0000`,`#A6A6A6`],fontSans:`Inter, system-ui, sans-serif`,fontMono:`'JetBrains Mono', monospace`,mode:`light`};function j(e,t){return typeof window>`u`?t:getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t}function Xe(){if(typeof window>`u`)return A;let e=document.documentElement.getAttribute(`data-theme`)??`light`,t=j(`--fg-1`,A.fg1),n=j(`--fg-2`,A.fg2),r=j(`--fg-3`,A.fg3),i=j(`--fg-4`,A.fg4),a=j(`--bg-1`,A.bg1),o=j(`--bg-2`,A.bg2),s=j(`--bg-3`,A.bg3),c=j(`--border-1`,A.border1),l=j(`--border-2`,A.border2),u=j(`--accent`,A.accent);return{fg1:t,fg2:n,fg3:r,fg4:i,bg1:a,bg2:o,bg3:s,border1:c,border2:l,accent:u,accentSoft:j(`--accent-soft`,A.accentSoft),success:j(`--success`,A.success),warning:j(`--warning`,A.warning),danger:j(`--danger`,A.danger),info:j(`--info`,A.info),series:e===`dark`?[u,`#F5F5F5`,`#A6A6A6`,`#5BA0F2`,`#3FBE83`,`#E5A65A`,`#FF6464`,`#7A7A7A`]:[u,`#1C1C1C`,`#5A5A5A`,`#2D73D9`,`#1F9E5C`,`#D98E2B`,`#9E0000`,`#A6A6A6`],fontSans:j(`--font-sans`,A.fontSans),fontMono:j(`--font-mono`,A.fontMono),mode:e}}function Ze(e){if(typeof window>`u`)return()=>{};let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]}),()=>t.disconnect()}var Qe=`modulepreload`,$e=function(e){return`/`+e},et={},tt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=$e(t,n),t in et)return;et[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Qe,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},nt=null;function rt(){if(typeof window>`u`)return{webgl2:!1,webgpu:!1,devicePixelRatio:1,maxTextureSize:0};if(nt)return{...nt,devicePixelRatio:window.devicePixelRatio||1,maxTextureSize:0};let e=!1,t=0;try{let n=document.createElement(`canvas`).getContext(`webgl2`);n&&(e=!0,t=n.getParameter(n.MAX_TEXTURE_SIZE))}catch{}let n=`gpu`in navigator&&typeof navigator.gpu==`object`;return nt={webgl2:e,webgpu:n},{webgl2:e,webgpu:n,devicePixelRatio:window.devicePixelRatio||1,maxTextureSize:t}}function it(e,t,n=5e4){let r=rt();return e===`canvas`?`canvas`:e===`webgl`?r.webgl2?`webgl`:`canvas`:e===`webgpu`?r.webgpu?`webgpu`:r.webgl2?`webgl`:`canvas`:r.webgpu&&t>n?`webgpu`:r.webgl2&&t>n?`webgl`:`canvas`}var at=null;async function ot(){if(at)return at;try{let e=await tt(()=>import(`./design-system-IOKLDoaG.js`),[]),t=await tt(()=>import(`./design-system-DFjB0sSn.js`),[]);return at={Deck:e.Deck,SolidPolygonLayer:t.SolidPolygonLayer,ScatterplotLayer:t.ScatterplotLayer,LineLayer:t.LineLayer,ArcLayer:t.ArcLayer,PolygonLayer:t.PolygonLayer},at}catch(e){return console.warn(`[@ossrandom/design-system] WebGL renderer requested but @deck.gl/core not installed. Falling back to canvas. Run: pnpm add @deck.gl/core @deck.gl/layers`,e),null}}function st(e,t=255){if(!e)return[0,0,0,t];if(e.startsWith(`rgb`)){let n=/rgba?\(([^)]+)\)/.exec(e);if(!n)return[0,0,0,t];let[r=0,i=0,a=0,o=1]=n[1].split(`,`).map(e=>parseFloat(e.trim()));return[r,i,a,Math.round(o*255)]}let n=e.replace(`#`,``);return n.length===3?[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),t]:n.length>=6?[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),n.length===8?parseInt(n.slice(6,8),16):t]:[0,0,0,t]}var ct=null;async function lt(){if(ct)return ct.ctor;try{let e=await tt(()=>import(`./cytoscape.esm-Dm6iss-N.js`),[]),t=e.default??e;try{let e=await tt(()=>import(`./cytoscape-cose-bilkent-D9vZHFQ-.js`).then(e=>c(e.default,1)),[]);t.use(e.default??e)}catch{}return ct={ctor:t},t}catch(e){return console.warn(`[@ossrandom/design-system] cytoscape not installed:`,e),null}}function ut(e,t){return t<=0?3:3+Math.sqrt(e)/Math.sqrt(t)*11}function dt(e,t){let n=new Map;for(let t of e)n.set(t.id,0);for(let e of t)n.set(e.source,(n.get(e.source)??0)+1),n.set(e.target,(n.get(e.target)??0)+1);let r=0;for(let e of n.values())e>r&&(r=e);return{degrees:n,max:r}}async function ft(e,t,n,r){let{degrees:i}=dt(e,t);if(e.every(e=>e.x!==void 0&&e.y!==void 0))return e.map(e=>({...e,x:e.x,y:e.y,degree:i.get(e.id)??0}));try{let a=await tt(()=>import(`./design-system-BNhP-Tae.js`),[]),o=e.map(e=>({...e,x:n/2+(Math.random()-.5)*100,y:r/2+(Math.random()-.5)*100,degree:i.get(e.id)??0})),s=a.forceSimulation(o).force(`link`,a.forceLink(t.map(e=>({source:e.source,target:e.target}))).id(e=>e.id).distance(60)).force(`charge`,a.forceManyBody().strength(-300)).force(`center`,a.forceCenter(n/2,r/2)).force(`collide`,a.forceCollide(14)).stop();for(let e=0;e<200;e++)s.tick();return o}catch{let t=Math.ceil(Math.sqrt(e.length)),a=n/t,o=r/Math.ceil(e.length/t);return e.map((e,n)=>({...e,x:n%t*a+a/2,y:Math.floor(n/t)*o+o/2,degree:i.get(e.id)??0}))}}function pt(e){let{nodes:t,edges:n,height:r=480,layout:i=`cose-bilkent`,engine:a=`auto`,onNodeClick:o,onEdgeClick:s,className:c,style:l,id:u}=e,d=C.useRef(null),f=C.useRef(null),p=C.useRef(null),[m,h]=C.useState(0),[g,_]=C.useState(`canvas`);return C.useEffect(()=>{_(it(a,t.length+n.length,500))},[a,t.length,n.length]),C.useEffect(()=>{if(!d.current)return;let e=new ResizeObserver(e=>{let t=Math.floor(e[0].contentRect.width);t>0&&t!==m&&h(t)});return e.observe(d.current),()=>e.disconnect()},[m]),C.useEffect(()=>{if(g!==`canvas`||!d.current)return;let e=!1,r=d.current;return lt().then(a=>{if(!a||e){a||(r.innerHTML=`
Service map (canvas) requires cytoscape. Run: pnpm add cytoscape cytoscape-cose-bilkent
`);return}let c=Xe(),{degrees:l,max:u}=dt(t,n),d=a({container:r,elements:[...t.map(e=>{let t=l.get(e.id)??0,n=ut(t,u);return{data:{id:e.id,label:e.label,status:e.status,kind:e.kind,degree:t,diameter:Math.round(n*2)}}}),...n.map(e=>({data:{id:`${e.source}->${e.target}`,source:e.source,target:e.target,label:e.label,status:e.status}}))],style:mt(c),layout:{name:i,animate:!1,fit:!0,padding:24,nodeRepulsion:6e3,idealEdgeLength:80},wheelSensitivity:.2,minZoom:.2,maxZoom:3});o&&d.on(`tap`,`node`,e=>o(e.target.data())),s&&d.on(`tap`,`edge`,e=>s(e.target.data()));let p=e=>{let t=e.isNode?.()??!0;if(d.elements().addClass(`rcs-dim`),t){let t=e.connectedEdges?.(),n=e.connectedNodes?.();n?.removeClass(`rcs-dim`),t?.removeClass(`rcs-dim`),d.$(`#${ht(e.id())}`).removeClass(`rcs-dim`),d.$(`#${ht(e.id())}`).addClass(`rcs-focus`),t?.addClass(`rcs-focus-edge`),n?.addClass(`rcs-neighbor`)}else{let t=e.connectedNodes?.();t?.removeClass(`rcs-dim`),t?.addClass(`rcs-neighbor`)}},m=()=>{d.elements().removeClass(`rcs-dim rcs-focus rcs-focus-edge rcs-neighbor`)};d.on(`mouseover`,`node`,e=>p(e.target)),d.on(`mouseover`,`edge`,e=>p(e.target)),d.on(`mouseout`,`node`,()=>m()),d.on(`mouseout`,`edge`,()=>m()),d.on(`tap`,`node`,e=>p(e.target)),d.on(`tap`,`edge`,e=>p(e.target));let h=d.container();h&&h.addEventListener(`pointerleave`,m),f.current=d}),()=>{e=!0,f.current?.destroy(),f.current=null,r.innerHTML=``}},[g,t,n,i,o,s]),C.useEffect(()=>{if(g===`canvas`||m===0||!d.current)return;let e=!1,i=d.current;return(async()=>{let a=await ot();if(!a||e){_(`canvas`);return}let c=await ft(t,n,m,r);if(e)return;let l=new Map(c.map((e,t)=>[e.id,t])),u=Xe(),d=c.reduce((e,t)=>Math.max(e,t.degree),0),f=g===`webgpu`?`webgpu`:`webgl`,h=a.ScatterplotLayer,v=a.ArcLayer,y=new Map,b=new Map;for(let e of c)y.set(e.id,new Set),b.set(e.id,new Set);for(let e of n){let t=`${e.source}->${e.target}`;y.get(e.source)?.add(e.target),y.get(e.target)?.add(e.source),b.get(e.source)?.add(t),b.get(e.target)?.add(t)}let x=null,S=e=>!x||e===x?!0:y.get(x)?.has(e)??!1,C=e=>x?e.source===x||e.target===x:!0,w=(e,t)=>[e[0],e[1],e[2],t],ee=()=>[new v({id:`service-edges`,data:n.map(e=>({...e,sourcePos:c[l.get(e.source)??0],targetPos:c[l.get(e.target)??0]})),getSourcePosition:e=>[e.sourcePos.x,e.sourcePos.y,0],getTargetPosition:e=>[e.targetPos.x,e.targetPos.y,0],getSourceColor:e=>{let t=C(e);return w(st(t&&x?u.accent:e.status===`failing`?u.danger:u.border2),t?255:60)},getTargetColor:e=>{let t=C(e);return w(st(t&&x?u.accent:e.status===`failing`?u.danger:u.fg4),t?255:60)},getWidth:e=>C(e)&&x||e.status===`failing`?2:1,getHeight:.3,pickable:!!s,updateTriggers:{getSourceColor:[x],getTargetColor:[x],getWidth:[x]}}),new h({id:`service-nodes`,data:c,getPosition:e=>[e.x,e.y,0],getFillColor:e=>{let t=S(e.id);return w(st(e.status===`failing`?u.danger:e.status===`degraded`?u.warning:e.status===`healthy`?u.success:u.fg3),t?230:60)},getLineColor:e=>x===e.id?st(u.accent):st(u.bg1),getRadius:e=>ut(e.degree,d),radiusUnits:`pixels`,stroked:!0,getLineWidth:e=>x===e.id?2:1,lineWidthUnits:`pixels`,pickable:!0,updateTriggers:{getFillColor:[x],getLineColor:[x],getLineWidth:[x]}})],te=new a.Deck({parent:i,width:m,height:r,controller:!0,deviceProps:{type:f},views:[{"@@type":`OrthographicView`,id:`v`,flipY:!0}],viewState:{target:[m/2,r/2,0],zoom:0},layers:ee(),onHover:({object:e,layer:t})=>{let n=null;e&&t?.id===`service-nodes`?n=e.id:e&&t?.id===`service-edges`&&(n=e.source),n!==x&&(x=n,te.setProps({layers:ee()}))},onClick:({object:e,layer:t})=>{!e||!t||(t.id===`service-nodes`&&o?o(e):t.id===`service-edges`&&s&&s(e))}});p.current=te})().catch(e=>{console.warn(`[@ossrandom/design-system] ServiceMap WebGL init failed; falling back to canvas:`,e),_(`canvas`)}),()=>{e=!0,p.current?.destroy(),p.current=null,i.innerHTML=``}},[g,m,r,t,n,o,s]),C.useEffect(()=>Ze(()=>{_(e=>e)}),[]),(0,S.jsx)(`div`,{ref:d,id:u,className:y(`rcs-service-map`,`rcs-service-map--${g}`,c),style:{position:`relative`,width:`100%`,height:r,...l},"data-engine":g,role:`img`,"aria-label":e[`aria-label`]??`Service map with ${t.length} services`,children:(0,S.jsx)(`div`,{className:`rcs-service-map-engine-badge`,"aria-hidden":`true`,children:g})})}function mt(e){return[{selector:`node`,style:{shape:`ellipse`,width:`data(diameter)`,height:`data(diameter)`,"background-color":e.fg3,"border-color":e.bg1,"border-width":1,label:`data(label)`,color:e.fg3,"font-family":e.fontSans,"font-size":11,"font-weight":400,"text-valign":`bottom`,"text-halign":`center`,"text-margin-y":4,"text-events":`no`,"min-zoomed-font-size":9,"z-index":10,"transition-property":`background-color, border-color, border-width, color, opacity`,"transition-duration":`120ms`}},{selector:`node[status = 'healthy']`,style:{"background-color":e.success}},{selector:`node[status = 'degraded']`,style:{"background-color":e.warning}},{selector:`node[status = 'failing']`,style:{"background-color":e.danger}},{selector:`edge`,style:{width:1,"line-color":e.border2,"target-arrow-color":e.border2,"target-arrow-shape":`triangle`,"arrow-scale":.9,"curve-style":`bezier`,label:`data(label)`,color:e.fg4,"font-family":e.fontMono,"font-size":9,"text-rotation":`autorotate`,"text-margin-y":-4,"text-opacity":0,"text-events":`no`,"z-index":1,"transition-property":`line-color, width, target-arrow-color, opacity, text-opacity`,"transition-duration":`120ms`}},{selector:`edge[status = 'failing']`,style:{"line-color":e.danger,"target-arrow-color":e.danger,width:1.5}},{selector:`.rcs-dim`,style:{opacity:.18}},{selector:`node.rcs-focus`,style:{opacity:1,"border-color":e.accent,"border-width":2,color:e.fg1,"font-weight":500,"z-index":30}},{selector:`node.rcs-neighbor`,style:{opacity:1,color:e.fg1,"z-index":20}},{selector:`edge.rcs-focus-edge`,style:{opacity:1,"line-color":e.accent,"target-arrow-color":e.accent,width:2,"text-opacity":1,color:e.fg1,"z-index":25}},{selector:`node:selected`,style:{"border-color":e.accent,"border-width":2}}]}function ht(e){return typeof CSS<`u`&&typeof CSS.escape==`function`?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,e=>`\\${e}`)}function gt(e){return e===`healthy`?`info`:e===`degraded`?`warning`:e===`critical`||e===`failing`?`danger`:`neutral`}function _t(e){return e<.4?`var(--brand-red-500)`:e<.7?`var(--amber-500)`:`var(--accent-fg)`}var vt={fontSize:`0.6rem`,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--fg-4)`,fontWeight:700},yt={background:`var(--bg-2)`,border:`1px solid var(--border-1)`,borderRadius:`var(--radius-md)`,padding:`0.6rem 0.7rem`},bt={background:`var(--bg-2)`,border:`1px solid var(--border-1)`,borderRadius:`var(--radius-md)`,padding:`0.4rem 0.6rem`,marginBottom:`0.3rem`,cursor:`pointer`,display:`flex`,justifyContent:`space-between`,alignItems:`center`,fontSize:`0.72rem`,color:`var(--fg-2)`,transition:`border-color 120ms ease`},xt=C.memo(({node:e,edges:t,onClose:n,onSelectService:r,onViewTraces:i,onViewLogs:a})=>{let o=t.filter(t=>t.target===e.id),s=t.filter(t=>t.source===e.id),c=(e.metrics.error_rate*100).toFixed(1),l=e.metrics.error_rate>.05;return(0,S.jsxs)(`div`,{style:{padding:`1rem`,display:`flex`,flexDirection:`column`,gap:`0.85rem`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,S.jsx)(`span`,{style:{fontSize:`0.85rem`,fontWeight:700,color:`var(--fg-1)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`,flex:1,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.id}),(0,S.jsx)(T,{tone:gt(e.status),size:`sm`,children:e.status}),(0,S.jsx)(ee,{icon:(0,S.jsx)(Be,{size:13}),"aria-label":`Close`,variant:`ghost`,size:`sm`,onClick:n})]}),(0,S.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`0.5rem`},children:[(0,S.jsxs)(`div`,{style:yt,children:[(0,S.jsx)(`div`,{style:vt,children:`RPS`}),(0,S.jsx)(`div`,{style:{fontSize:`1rem`,fontWeight:700,color:`var(--fg-1)`,marginTop:`0.2rem`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:Math.round(e.metrics.request_rate_rps)})]}),(0,S.jsxs)(`div`,{style:yt,children:[(0,S.jsx)(`div`,{style:vt,children:`Error Rate`}),(0,S.jsxs)(`div`,{style:{fontSize:`1rem`,fontWeight:700,color:l?`var(--brand-red-500)`:`var(--fg-1)`,marginTop:`0.2rem`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:[c,`%`]})]}),(0,S.jsxs)(`div`,{style:yt,children:[(0,S.jsx)(`div`,{style:vt,children:`Avg Latency`}),(0,S.jsxs)(`div`,{style:{fontSize:`1rem`,fontWeight:700,color:`var(--fg-1)`,marginTop:`0.2rem`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:[e.metrics.avg_latency_ms,`ms`]})]}),(0,S.jsxs)(`div`,{style:yt,children:[(0,S.jsx)(`div`,{style:vt,children:`P99`}),(0,S.jsxs)(`div`,{style:{fontSize:`1rem`,fontWeight:700,color:`var(--fg-1)`,marginTop:`0.2rem`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:[e.metrics.p99_latency_ms,`ms`]})]})]}),(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:`0.3rem`,alignItems:`baseline`},children:[(0,S.jsx)(`span`,{style:vt,children:`Health Score`}),(0,S.jsx)(`span`,{style:{fontSize:`0.72rem`,color:`var(--fg-1)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.health_score.toFixed(2)})]}),(0,S.jsx)(`div`,{style:{background:`var(--bg-3)`,borderRadius:999,height:4,overflow:`hidden`},children:(0,S.jsx)(`div`,{style:{width:`${e.health_score*100}%`,height:`100%`,background:_t(e.health_score),transition:`width 200ms ease`}})})]}),o.length>0&&(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`div`,{style:{...vt,marginBottom:`0.4rem`},children:`Upstream`}),o.map(e=>(0,S.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:()=>r(e.source),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r(e.source))},style:bt,children:[(0,S.jsx)(`span`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.source}),(0,S.jsxs)(`span`,{style:{color:`var(--fg-3)`,fontSize:`0.68rem`},children:[e.call_count,` calls`]})]},e.source))]}),s.length>0&&(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`div`,{style:{...vt,marginBottom:`0.4rem`},children:`Downstream`}),s.map(e=>(0,S.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:()=>r(e.target),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r(e.target))},style:bt,children:[(0,S.jsx)(`span`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.target}),(0,S.jsxs)(`span`,{style:{color:`var(--fg-3)`,fontSize:`0.68rem`},children:[e.call_count,` calls`]})]},e.target))]}),e.alerts.length>0&&(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`div`,{style:{...vt,marginBottom:`0.4rem`},children:`Alerts`}),(0,S.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:e.alerts.map((e,t)=>(0,S.jsx)(fe,{severity:`danger`,children:e},t))})]}),(0,S.jsxs)(le,{size:`xs`,children:[(0,S.jsx)(w,{variant:`secondary`,size:`sm`,block:!0,iconRight:(0,S.jsx)(Oe,{size:11}),onClick:()=>i(e.id),children:`Traces`}),(0,S.jsx)(w,{variant:`secondary`,size:`sm`,block:!0,iconRight:(0,S.jsx)(Oe,{size:11}),onClick:()=>a(e.id),children:`Logs`})]})]})});function St(e){return e===`healthy`||e===`degraded`?e:e===`critical`||e===`failing`?`failing`:`unknown`}function Ct(e){return e===`critical`||e===`failing`?`failing`:`healthy`}var wt=(e,t=`muted`)=>(0,S.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:t===`danger`?`var(--brand-red-500)`:`var(--fg-3)`,fontSize:`0.78rem`,padding:`2rem`},children:e}),Tt=({graph:e,cache:t,loading:n,error:r,onNavigateToTraces:i,onNavigateToLogs:a})=>{let[o,s]=(0,C.useState)(null),[c,l]=(0,C.useState)(``),u=e?.nodes??[],d=e?.edges??[],f=(0,C.useMemo)(()=>{let e=c.trim().toLowerCase();return u.filter(t=>!e||t.id.toLowerCase().includes(e)).map(e=>({id:e.id,label:e.id,status:St(e.status)}))},[u,c]),p=(0,C.useMemo)(()=>{if(f.length===0)return[];let e=new Set(f.map(e=>e.id));return d.filter(t=>e.has(t.source)&&e.has(t.target)).slice(0,500).map(e=>({source:e.source,target:e.target,status:Ct(e.status)}))},[d,f]);return n?(0,S.jsx)(`div`,{style:M,children:(0,S.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,S.jsx)(k,{label:`Loading service map`})})}):r?(0,S.jsx)(`div`,{style:M,children:(0,S.jsx)(`div`,{style:{padding:`1rem`},children:(0,S.jsx)(fe,{severity:`danger`,title:`Service map failed to load`,children:r})})}):!e||u.length===0?(0,S.jsx)(`div`,{style:M,children:wt(`No services discovered yet.`)}):(0,S.jsxs)(`div`,{style:M,children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.6rem`,padding:`0.6rem 1rem`,borderBottom:`1px solid var(--border-1)`,background:`var(--bg-1)`},children:[(0,S.jsx)(`div`,{style:{width:240},children:(0,S.jsx)(te,{value:c,onChange:e=>l(e),placeholder:`Filter services`,size:`sm`,prefix:(0,S.jsx)(Ie,{size:12})})}),(0,S.jsxs)(`span`,{style:{marginLeft:`auto`,fontSize:`0.7rem`,color:`var(--fg-3)`},children:[f.length,` of `,u.length,` services · `,p.length,` calls`]})]}),(0,S.jsxs)(`div`,{style:{flex:1,display:`flex`,minHeight:0},children:[(0,S.jsx)(`div`,{style:{flex:1,position:`relative`,minWidth:0},children:f.length===0?wt(`No services match the filter.`):(0,S.jsx)(pt,{nodes:f,edges:p,layout:`cose-bilkent`,height:void 0,onNodeClick:e=>{s(u.find(t=>t.id===e.id)??null)},style:{width:`100%`,height:`100%`}})}),o&&(0,S.jsx)(`div`,{style:{width:360,flexShrink:0,borderLeft:`1px solid var(--border-1)`,background:`var(--bg-1)`,overflow:`auto`},children:(0,S.jsx)(xt,{node:o,edges:d,onClose:()=>s(null),onSelectService:e=>{let t=u.find(t=>t.id===e);t&&s(t)},onViewTraces:i,onViewLogs:a})})]})]})},M={display:`flex`,flexDirection:`column`,height:`100%`,minHeight:0,background:`var(--bg-0)`},Et=C.memo(Tt);function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Rt=-1;function zt(e){if(e===void 0&&(e=!1),Rt===-1||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,document.body.appendChild(t),Rt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Rt}var Bt=null;function Vt(e){if(e===void 0&&(e=!1),Bt===null||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,n.direction=`rtl`;var r=document.createElement(`div`),i=r.style;return i.width=`100px`,i.height=`100px`,t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Bt=`positive-descending`:(t.scrollLeft=1,Bt=t.scrollLeft===0?`negative`:`positive-ascending`),document.body.removeChild(t),Bt}return Bt}var Ht=150,Ut=function(e,t){return e};function Wt(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){At(t,e);function t(t){var r=e.call(this,t)||this;return r._instanceProps=c(r.props,Ot(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ot(r),isScrolling:!1,scrollDirection:`forward`,scrollOffset:typeof r.props.initialScrollOffset==`number`?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Pt(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=Pt(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t=r.props,a=t.direction,o=t.itemSize,s=t.layout,c=r._getItemStyleCache(l&&o,l&&s,l&&a),u;if(c.hasOwnProperty(e))u=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p=a===`horizontal`||s===`horizontal`,m=a===`rtl`,h=p?d:0;c[e]=u={position:`absolute`,left:m?void 0:h,right:m?h:void 0,top:p?0:d,height:p?`100%`:f,width:p?f:`100%`}}return u},r._getItemStyleCache=void 0,r._getItemStyleCache=Pt(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,a=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,o=i;if(t===`rtl`)switch(Vt()){case`negative`:o=-i;break;case`positive-descending`:o=a-n-i;break}return o=Math.max(0,Math.min(o,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetc.clientWidth?zt():0:c.scrollHeight>c.clientHeight?zt():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if(typeof n==`number`&&this._outerRef!=null){var i=this._outerRef;t===`horizontal`||r===`horizontal`?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&this._outerRef!=null){var a=this._outerRef;if(t===`horizontal`||n===`horizontal`)if(t===`rtl`)switch(Vt()){case`negative`:a.scrollLeft=-i;break;case`positive-ascending`:a.scrollLeft=i;break;default:var o=a.clientWidth;a.scrollLeft=a.scrollWidth-o-i;break}else a.scrollLeft=i;else a.scrollTop=i}this._callPropsCallbacks()},d.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&It(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,o=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=d===void 0?Ut:d,p=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,_=e.useIsScrolling,v=e.width,y=this.state.isScrolling,b=i===`horizontal`||p===`horizontal`,x=b?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),w=S[0],ee=S[1],te=[];if(l>0)for(var ne=w;ne<=ee;ne++)te.push((0,C.createElement)(t,{data:u,key:f(ne,u),index:ne,isScrolling:_?y:void 0,style:this._getItemStyle(ne)}));var T=r(this.props,this._instanceProps);return(0,C.createElement)(m||h||`div`,{className:n,onScroll:x,ref:this._outerRefSetter,style:Dt({position:`relative`,height:a,width:v,overflow:`auto`,WebkitOverflowScrolling:`touch`,willChange:`transform`,direction:i},g)},(0,C.createElement)(s||c||`div`,{children:te,ref:o,style:{height:b?`100%`:T,pointerEvents:y?`none`:void 0,width:b?T:`100%`}}))},d._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered==`function`&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if(typeof this.props.onScroll==`function`){var a=this.state,o=a.scrollDirection,s=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(o,s,c)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,a=r.scrollDirection,c=r.scrollOffset;if(t===0)return[0,0,0,0];var l=o(this.props,c,this._instanceProps),u=s(this.props,l,c,this._instanceProps),d=!i||a===`backward`?Math.max(1,n):1,f=!i||a===`forward`?Math.max(1,n):1;return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(C.PureComponent),t.defaultProps={direction:`ltr`,itemData:void 0,layout:`vertical`,overscanCount:2,useIsScrolling:!1},t}var Gt=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Kt=50,qt=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,a=n.lastMeasuredIndex;if(t>a){var o=0;if(a>=0){var s=i[a];o=s.offset+s.size}for(var c=a+1;c<=t;c++){var l=r(c);i[c]={offset:o,size:l},o+=l}n.lastMeasuredIndex=t}return i[t]},Jt=function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?Yt(e,t,i,0,n):Xt(e,t,Math.max(0,i),n)},Yt=function(e,t,n,r,i){for(;r<=n;){var a=r+Math.floor((n-r)/2),o=qt(e,a,t).offset;if(o===i)return a;oi&&(n=a-1)}return r>0?r-1:0},Xt=function(e,t,n,r){for(var i=e.itemCount,a=1;n=n&&(a=n-1),a>=0){var s=r[a];o=s.offset+s.size}var c=(n-a-1)*i;return o+c},Qt=Wt({getItemOffset:function(e,t,n){return qt(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:Zt,getOffsetForIndexAndAlignment:function(e,t,n,r,i,a){var o=e.direction,s=e.height,c=e.layout,l=e.width,u=o===`horizontal`||c===`horizontal`?l:s,d=qt(e,t,i),f=Zt(e,i),p=Math.max(0,Math.min(f-u,d.offset)),m=Math.max(0,d.offset-u+d.size+a);switch(n===`smart`&&(n=r>=m-u&&r<=p+u?`auto`:`center`),n){case`start`:return p;case`end`:return m;case`center`:return Math.round(m+(p-m)/2);default:return r>=m&&r<=p?r:r=h-f&&r<=m+f?`auto`:`center`),n){case`start`:return m;case`end`:return h;case`center`:var g=Math.round(h+(m-h)/2);return gp+Math.floor(f/2)?p:g;default:return r>=h&&r<=m?r:rn.onSelect(r.trace_id),style:{textAlign:`left`,background:i?`var(--accent-soft)`:`var(--bg-2)`,border:`1px solid ${i?`var(--accent-fg)`:`var(--border-1)`}`,borderRadius:`var(--radius-md)`,padding:`0.75rem 0.85rem`,cursor:`pointer`,width:`100%`,height:`100%`,display:`block`,transition:`background 120ms ease, border-color 120ms ease`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,S.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`,color:`var(--fg-1)`},children:r.service_name}),(0,S.jsx)(T,{tone:tn(r.status),size:`sm`,children:r.status||`OK`})]}),(0,S.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--fg-3)`,marginBottom:`0.4rem`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:r.operation||r.trace_id}),(0,S.jsxs)(le,{size:`xs`,children:[(0,S.jsxs)(T,{tone:`neutral`,size:`sm`,children:[r.span_count,` spans`]}),(0,S.jsxs)(T,{tone:`subtle`,size:`sm`,children:[r.duration_ms?.toFixed(1),` ms`]})]})]})})}var rn={fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--fg-4)`,fontWeight:700};function an({traces:e,selected:t,loading:n,error:r,onSelect:i,serviceFilter:a,onClearFilter:o}){let s=a?e.filter(e=>e.service_name===a):e,c=(0,C.useRef)(null),[l,u]=(0,C.useState)({width:0,height:0});return(0,C.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;u({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,S.jsxs)(`div`,{style:{flex:1,minHeight:0,display:`grid`,gridTemplateColumns:`minmax(320px, 380px) 1fr`,gap:`1rem`,padding:`1rem`,overflow:`hidden`},children:[(0,S.jsxs)(ce,{bordered:!0,padding:`md`,radius:`md`,style:{display:`flex`,flexDirection:`column`,gap:`0.8rem`,minHeight:0,overflow:`hidden`},children:[(0,S.jsxs)(`div`,{style:{flexShrink:0},children:[(0,S.jsx)(`div`,{style:rn,children:`Traces`}),(0,S.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`var(--fg-1)`,marginTop:`0.2rem`},children:`Recent distributed requests`})]}),a&&(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.4rem`,padding:`0.3rem 0.5rem`,background:`var(--accent-soft)`,border:`1px solid var(--accent-fg)`,borderRadius:`var(--radius-sm)`,fontSize:`0.7rem`,color:`var(--accent-fg)`},children:[(0,S.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,S.jsx)(ee,{icon:(0,S.jsx)(Be,{size:11}),"aria-label":`Clear filter`,variant:`ghost`,size:`xs`,onClick:o})]}),n&&(0,S.jsx)(k,{label:`Loading traces`}),r&&(0,S.jsx)(fe,{severity:`danger`,children:r}),(0,S.jsxs)(`div`,{ref:c,style:{flex:1,minHeight:0,overflow:`hidden`},children:[l.height>0&&s.length>0&&(0,S.jsx)($t,{height:l.height,width:l.width,itemCount:s.length,itemSize:en,itemData:{traces:s,selectedId:t?.trace_id,onSelect:i},overscanCount:6,children:nn}),!n&&s.length===0&&(0,S.jsx)(`div`,{style:{fontSize:`0.75rem`,color:`var(--fg-3)`,padding:`1rem 0.25rem`},children:`No traces yet.`})]})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`,minHeight:0},children:[(0,S.jsx)(ce,{bordered:!0,padding:`md`,radius:`md`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`},children:[(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700,color:`var(--fg-1)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:t?.trace_id??`No trace selected`}),(0,S.jsx)(`div`,{style:{fontSize:`0.73rem`,color:`var(--fg-3)`,marginTop:`0.2rem`},children:t?.service_name})]}),t&&(0,S.jsx)(T,{tone:tn(t.status),size:`sm`,children:t.status})]})}),(0,S.jsxs)(ce,{bordered:!0,padding:`md`,radius:`md`,style:{flex:1,minHeight:0,overflow:`auto`},children:[(0,S.jsx)(`div`,{style:{...rn,marginBottom:`0.6rem`},children:`Span Waterfall`}),(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.6rem`},children:[(t?.spans??[]).map(e=>{let n=Math.max(t?.duration||1,1),r=Math.min(100,Math.max(6,e.duration/n*100));return(0,S.jsxs)(`div`,{style:{border:`1px solid var(--border-1)`,borderRadius:`var(--radius-md)`,padding:`0.7rem 0.8rem`,background:`var(--bg-2)`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,S.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`,color:`var(--fg-1)`},children:e.operation_name}),(0,S.jsxs)(T,{tone:`subtle`,size:`sm`,children:[(e.duration/1e3).toFixed(1),` ms`]})]}),(0,S.jsx)(`div`,{style:{height:8,borderRadius:999,background:`var(--bg-3)`,overflow:`hidden`,marginBottom:`0.4rem`},children:(0,S.jsx)(`div`,{style:{width:`${r}%`,height:`100%`,background:`linear-gradient(90deg, var(--accent-fg), var(--accent-hover))`}})}),(0,S.jsx)(`div`,{style:{fontSize:`0.7rem`,color:`var(--fg-3)`},children:e.service_name})]},e.id)}),t&&(t.spans??[]).length===0&&(0,S.jsx)(`div`,{style:{fontSize:`0.75rem`,color:`var(--fg-3)`},children:`No spans recorded for this trace.`})]})]})]})]})}var on=62,sn=19,cn=80,ln=9;function un(e){let t=e?e.length:0;return on+Math.max(1,Math.ceil(t/cn))*sn+ln}function dn(e){return e===`ERROR`?`danger`:e===`WARN`?`warning`:`info`}function fn({index:e,style:t,data:n}){let r=n.logs[e];return(0,S.jsx)(`div`,{style:{...t,paddingBottom:`${ln}px`,boxSizing:`border-box`},children:(0,S.jsxs)(`div`,{style:{padding:`0.7rem 0.85rem`,borderRadius:`var(--radius-md)`,border:`1px solid var(--border-1)`,background:`var(--bg-2)`,height:`100%`,boxSizing:`border-box`,overflow:`hidden`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,S.jsxs)(le,{size:`xs`,align:`center`,children:[(0,S.jsx)(T,{tone:dn(r.severity),size:`sm`,children:r.severity}),(0,S.jsx)(`span`,{style:{fontSize:`0.72rem`,color:`var(--fg-3)`},children:r.service_name})]}),(0,S.jsx)(`span`,{style:{fontSize:`0.66rem`,color:`var(--fg-4)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:new Date(r.timestamp).toLocaleTimeString()})]}),(0,S.jsx)(`div`,{style:{fontSize:`0.74rem`,color:`var(--fg-2)`,lineHeight:1.6,wordBreak:`break-word`,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:r.body})]})})}var pn={fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--fg-4)`,fontWeight:700},mn=[{value:``,label:`all`},{value:`INFO`,label:`info`},{value:`WARN`,label:`warn`},{value:`ERROR`,label:`error`}];function hn({logs:e,similar:t,loading:n,error:r,onSimilar:i,serviceFilter:a,onClearFilter:o}){let[s,c]=(0,C.useState)(``),[l,u]=(0,C.useState)(``),d=(0,C.useMemo)(()=>{let t=e;return a&&(t=t.filter(e=>e.service_name===a)),l&&(t=t.filter(e=>e.severity===l)),t},[e,l,a]),f=(0,C.useRef)(null),[p,m]=(0,C.useState)({width:0,height:0}),h=(0,C.useRef)(null);return(0,C.useEffect)(()=>{let e=f.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,C.useEffect)(()=>{h.current?.resetAfterIndex(0)},[d,p.width]),(0,S.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`minmax(320px, 420px) minmax(0, 1fr)`,gap:`1rem`,minHeight:0,flex:1,padding:`1rem`,overflow:`hidden`},children:[(0,S.jsxs)(ce,{bordered:!0,padding:`md`,radius:`md`,style:{display:`flex`,flexDirection:`column`,gap:`0.85rem`,minHeight:0},children:[(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`div`,{style:pn,children:`Live Log Search`}),(0,S.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`var(--fg-1)`,marginTop:`0.2rem`},children:`Tail, filter, and query similar incidents`})]}),a&&(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.4rem`,padding:`0.3rem 0.5rem`,background:`var(--accent-soft)`,border:`1px solid var(--accent-fg)`,borderRadius:`var(--radius-sm)`,fontSize:`0.7rem`,color:`var(--accent-fg)`},children:[(0,S.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,S.jsx)(ee,{icon:(0,S.jsx)(Be,{size:11}),"aria-label":`Clear filter`,variant:`ghost`,size:`xs`,onClick:o})]}),(0,S.jsx)(te,{value:s,onChange:e=>c(e),placeholder:`Find similar logs`,size:`sm`,prefix:(0,S.jsx)(Ie,{size:12})}),(0,S.jsx)(le,{size:`xs`,wrap:!0,children:mn.map(e=>(0,S.jsx)(w,{variant:l===e.value?`secondary`:`ghost`,size:`sm`,onClick:()=>u(e.value),children:e.label},e.value||`all`))}),(0,S.jsx)(w,{variant:`primary`,block:!0,disabled:!s.trim(),onClick:()=>i(s),children:`Run Similarity Search`}),(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,overflow:`auto`,minHeight:0},children:[t.map(e=>(0,S.jsxs)(`div`,{style:{border:`1px solid var(--border-1)`,borderRadius:`var(--radius-md)`,padding:`0.7rem 0.8rem`,background:`var(--bg-2)`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,S.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.76rem`,color:`var(--fg-1)`},children:e.service_name}),(0,S.jsx)(T,{tone:dn(e.severity),size:`sm`,children:e.severity})]}),(0,S.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--fg-2)`,lineHeight:1.5,fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.body})]},`similar-${e.id}`)),t.length===0&&s.trim()&&(0,S.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--fg-3)`},children:`No similar logs yet — run search.`})]})]}),(0,S.jsxs)(ce,{bordered:!0,padding:`md`,radius:`md`,style:{display:`flex`,flexDirection:`column`,minHeight:0,overflow:`hidden`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`0.8rem`,flexShrink:0},children:[(0,S.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700,color:`var(--fg-1)`},children:`Stream`}),n&&(0,S.jsx)(T,{tone:`subtle`,size:`sm`,children:`Loading`})]}),r&&(0,S.jsx)(`div`,{style:{marginBottom:`0.7rem`,flexShrink:0},children:(0,S.jsx)(fe,{severity:`danger`,children:r})}),(0,S.jsxs)(`div`,{ref:f,style:{flex:1,minHeight:0,overflow:`hidden`},children:[p.height>0&&d.length>0&&(0,S.jsx)(Qt,{ref:h,height:p.height,width:p.width,itemCount:d.length,itemSize:e=>un(d[e]?.body??``),estimatedItemSize:90,itemData:{logs:d},overscanCount:6,children:fn}),!n&&d.length===0&&(0,S.jsx)(`div`,{style:{fontSize:`0.75rem`,color:`var(--fg-3)`},children:`No logs yet.`})]})]})]})}function gn(e,t){if(t.includes(`application/json`))return JSON.parse(e);let n=e.split(` +`).find(e=>e.startsWith(`data: `))?.slice(6);return n?JSON.parse(n):{}}function _n(e=`/mcp`){let[t,n]=(0,C.useState)(`idle`),[r,i]=(0,C.useState)([]),[a,o]=(0,C.useState)(null),s=(0,C.useRef)(null),c=(0,C.useRef)(0),l=()=>{let e={"Content-Type":`application/json`,Accept:`application/json, text/event-stream`};return s.current&&(e[`Mcp-Session-Id`]=s.current),e},u=async t=>{let n=performance.now(),r=await fetch(e,{method:`POST`,headers:l(),body:JSON.stringify(t)}),i=r.headers.get(`Mcp-Session-Id`);return i&&(s.current=i),{data:gn(await r.text(),r.headers.get(`content-type`)??``),status:r.status,ms:Math.round(performance.now()-n)}},d=async(e,t)=>{try{let n=await u({jsonrpc:`2.0`,id:++c.current,method:e,params:t});return{result:n.data.result,error:n.data.error,timing:n.ms}}catch(e){return{error:{code:-1,message:String(e)}}}},f=async()=>{n(`connecting`),o(null);let e=await d(`initialize`,{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}});if(e.error){n(`error`),o(e.error.message);return}n(`connected`);let t=await d(`tools/list`,{});t.error||i(t.result?.tools??[])};return(0,C.useEffect)(()=>{f()},[]),{status:t,tools:r,error:a,call:d,connect:f,send:u}}function vn({tool:e,index:t,onCall:n,onRPC:r}){let i=e.inputSchema?.properties||{},a=e.inputSchema?.required||[],o=Object.keys(i).length;return(0,S.jsx)(ce,{bordered:!0,hoverable:!0,padding:`md`,radius:`md`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.6rem`,height:`100%`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,gap:`0.5rem`},children:[(0,S.jsx)(`span`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontSize:`0.8rem`,fontWeight:700,color:`var(--fg-1)`},children:e.name}),o>0&&(0,S.jsxs)(T,{tone:`neutral`,size:`sm`,children:[o,`p`]})]}),(0,S.jsx)(`p`,{style:{fontSize:`0.72rem`,color:`var(--fg-3)`,lineHeight:1.55,margin:0,minHeight:`3.2em`},children:e.description||`No description provided.`}),o>0&&(0,S.jsx)(le,{size:`xs`,wrap:!0,children:Object.entries(i).map(([e,t])=>(0,S.jsx)(T,{tone:a.includes(e)?`danger`:`neutral`,size:`sm`,children:(0,S.jsxs)(`span`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:[e,(0,S.jsxs)(`span`,{style:{opacity:.55,marginLeft:2},children:[`:`,t.type??`any`]})]})},e))}),(0,S.jsx)(`div`,{style:{marginTop:`auto`},children:(0,S.jsxs)(le,{size:`xs`,children:[(0,S.jsx)(w,{variant:`primary`,size:`sm`,iconLeft:(0,S.jsx)(Me,{size:10}),onClick:()=>n(t),children:`Call`}),(0,S.jsx)(w,{variant:`ghost`,size:`sm`,iconLeft:(0,S.jsx)(ze,{size:10}),onClick:()=>r(t),children:`JSON-RPC`})]})})]})})}function yn(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}var bn={fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--fg-4)`,fontWeight:700};function xn({tool:e,onClose:t,onCall:n}){let[r,i]=(0,C.useState)(()=>JSON.stringify(yn(e),null,2)),[a,o]=(0,C.useState)(``),[s,c]=(0,C.useState)(!1),[l,u]=(0,C.useState)(``),[d,f]=(0,C.useState)(``);return(0,S.jsxs)(O,{open:!0,onClose:t,title:(0,S.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.45rem`},children:[(0,S.jsx)(Me,{size:12,style:{color:`var(--accent-fg)`}}),(0,S.jsx)(`span`,{children:`Call`}),(0,S.jsx)(`code`,{style:{background:`transparent`,padding:0,color:`var(--accent-fg)`},children:e.name})]}),description:e.description,size:`lg`,children:[d&&(0,S.jsx)(fe,{severity:`danger`,children:d}),(0,S.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`1rem`,minHeight:0,marginTop:d?`0.75rem`:0},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`},children:[(0,S.jsx)(`label`,{style:bn,children:`Arguments`}),(0,S.jsx)(ne,{value:r,onChange:e=>i(e),rows:14}),(0,S.jsx)(w,{variant:`primary`,block:!0,loading:s,disabled:s,onClick:async()=>{let t;try{t=JSON.parse(r||`{}`)}catch(e){f(`Invalid JSON: ${String(e)}`);return}c(!0),f(``);let i=performance.now();try{o(Ve(await n(e.name,t))),u(`${Math.round(performance.now()-i)}ms`)}catch(e){o(``),f(String(e))}finally{c(!1)}},children:s?`Executing`:`Execute Tool`})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,minHeight:0},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`label`,{style:bn,children:`Result`}),l&&(0,S.jsx)(T,{tone:`subtle`,size:`sm`,children:l})]}),(0,S.jsx)(`pre`,{style:{flex:1,minHeight:`16rem`,overflow:`auto`,padding:`0.9rem`,margin:0,borderRadius:`var(--radius-md)`,background:`var(--bg-3)`,border:`1px solid var(--border-1)`,color:`var(--fg-2)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontSize:`0.72rem`,lineHeight:1.55},dangerouslySetInnerHTML:{__html:a||``}})]})]})]})}function Sn(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}var Cn={"tools/call":(e,t)=>({jsonrpc:`2.0`,id:1,method:`tools/call`,params:{name:e,arguments:t}}),"tools/list":()=>({jsonrpc:`2.0`,id:1,method:`tools/list`}),initialize:()=>({jsonrpc:`2.0`,id:1,method:`initialize`,params:{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}}}),ping:()=>({jsonrpc:`2.0`,id:1,method:`ping`}),"resources/list":()=>({jsonrpc:`2.0`,id:1,method:`resources/list`})},wn={fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--fg-4)`,fontWeight:700};function Tn({tool:e,onClose:t,onSend:n}){let r=e?.name??`tool_name`,i=e?Sn(e):{},[a,o]=(0,C.useState)(`tools/call`),[s,c]=(0,C.useState)(JSON.stringify(Cn[`tools/call`](r,i),null,2)),[l,u]=(0,C.useState)(``),[d,f]=(0,C.useState)(``),[p,m]=(0,C.useState)(!1),[h,g]=(0,C.useState)(``),[_,v]=(0,C.useState)(!1),y=e=>{if(o(e),e===`custom`)return;let t=e===`tools/call`?Cn[e](r,i):Cn[e]();c(JSON.stringify(t,null,2))};return(0,S.jsxs)(O,{open:!0,onClose:t,title:(0,S.jsxs)(le,{size:`xs`,align:`center`,children:[(0,S.jsx)(ze,{size:14,style:{color:`var(--accent-fg)`}}),(0,S.jsx)(`span`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:r}),(0,S.jsx)(T,{tone:`subtle`,size:`sm`,children:a})]}),description:e?.description||`Manual JSON-RPC request builder`,size:`lg`,children:[(0,S.jsx)(ue,{items:[{value:`tools/call`,label:`call`},{value:`tools/list`,label:`list`},{value:`initialize`,label:`init`},{value:`ping`,label:`ping`},{value:`resources/list`,label:`resources`},{value:`custom`,label:`custom`}].map(e=>({key:e.value,label:e.label})),value:a,variant:`line`,onChange:e=>y(e)}),h&&(0,S.jsx)(`div`,{style:{marginTop:`0.75rem`},children:(0,S.jsx)(fe,{severity:`danger`,children:h})}),(0,S.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`1rem`,minHeight:0,marginTop:`0.75rem`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`label`,{style:wn,children:`Request`}),(0,S.jsx)(w,{variant:`ghost`,size:`sm`,iconLeft:(0,S.jsx)(ke,{size:11}),onClick:async()=>{await navigator.clipboard.writeText(s),v(!0),window.setTimeout(()=>v(!1),1200)},children:_?`Copied`:`Copy`})]}),(0,S.jsx)(ne,{value:s,onChange:e=>c(e),rows:14}),(0,S.jsx)(w,{variant:`primary`,block:!0,loading:p,disabled:p,iconLeft:(0,S.jsx)(Le,{size:12}),onClick:async()=>{let e;try{e=JSON.parse(s)}catch(e){g(`Invalid JSON: ${String(e)}`);return}m(!0),g(``);try{let{data:t,status:r,ms:i}=await n(e);u(Ve(t)),f(`${i}ms · HTTP ${r}`)}catch(e){u(``),g(String(e))}finally{m(!1)}},children:p?`Sending`:`Send`})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,minHeight:0},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`label`,{style:wn,children:`Response`}),d&&(0,S.jsx)(T,{tone:`subtle`,size:`sm`,children:d})]}),(0,S.jsx)(`pre`,{style:{flex:1,minHeight:`16rem`,overflow:`auto`,padding:`0.9rem`,margin:0,borderRadius:`var(--radius-md)`,background:`var(--bg-3)`,border:`1px solid var(--border-1)`,color:`var(--fg-2)`,fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontSize:`0.72rem`,lineHeight:1.55},dangerouslySetInnerHTML:{__html:l||``}})]})]})]})}var En={idle:`neutral`,connecting:`warning`,connected:`info`,error:`danger`};function Dn(){let{status:e,tools:t,error:n,call:r,connect:i,send:a}=_n(),[o,s]=(0,C.useState)(null),[c,l]=(0,C.useState)(null);return(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,minHeight:0},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,padding:`0.7rem 1rem`,borderBottom:`1px solid var(--border-1)`,background:`var(--bg-1)`},children:[(0,S.jsx)(T,{tone:En[e],size:`sm`,children:(0,S.jsx)(`span`,{style:{textTransform:`capitalize`},children:e})}),(0,S.jsxs)(le,{size:`xs`,align:`center`,children:[(0,S.jsx)(Ne,{size:11,style:{opacity:.5}}),(0,S.jsxs)(`code`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,padding:`0.15rem 0.4rem`,borderRadius:`var(--radius-sm)`,background:`var(--bg-2)`,border:`1px solid var(--border-1)`,color:`var(--fg-2)`,fontSize:`0.7rem`},children:[window.location.origin,`/mcp`]})]}),(0,S.jsx)(T,{tone:`subtle`,size:`sm`,children:`HTTP Streamable MCP · JSON-RPC 2.0`}),(0,S.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,S.jsx)(w,{variant:`ghost`,size:`sm`,iconLeft:(0,S.jsx)(Fe,{size:12}),onClick:()=>void i(),children:`Reconnect`})})]}),(0,S.jsxs)(`div`,{style:{padding:`0.7rem 1rem`,borderBottom:`1px solid var(--border-1)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`span`,{style:{fontSize:`0.66rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--fg-4)`},children:`Available Tools`}),(0,S.jsxs)(`span`,{style:{fontSize:`0.72rem`,color:`var(--fg-3)`},children:[t.length,` discovered`]})]}),(0,S.jsxs)(`div`,{style:{flex:1,overflow:`auto`,padding:`1rem`,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(280px, 1fr))`,gap:`0.8rem`,alignContent:`start`},children:[e===`error`&&(0,S.jsx)(`div`,{style:{gridColumn:`1 / -1`},children:(0,S.jsxs)(fe,{severity:`danger`,title:`Connection failed`,children:[n||`Could not reach the MCP endpoint.`,` `,(0,S.jsx)(`code`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:`MCP_ENABLED=true`})]})}),e===`connected`&&t.map((e,n)=>(0,S.jsx)(vn,{tool:e,index:n,onCall:e=>s(t[e]),onRPC:e=>l(t[e])},e.name))]}),o&&(0,S.jsx)(xn,{tool:o,onClose:()=>s(null),onCall:async(e,t)=>(await r(`tools/call`,{name:e,arguments:t})).result??null}),c&&(0,S.jsx)(Tn,{tool:c,onClose:()=>l(null),onSend:a})]})}function On(e=6e4){let[t,n]=(0,C.useState)(null),[r,i]=(0,C.useState)(``),[a,o]=(0,C.useState)(!0),[s,c]=(0,C.useState)(null),l=(0,C.useRef)(void 0),u=(0,C.useCallback)(async()=>{try{let e=await fetch(`/api/system/graph`);if(!e.ok)throw Error(`HTTP ${e.status}`);i(e.headers.get(`X-Cache`)??``),n(await e.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,C.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{graph:t,cache:r,loading:a,error:s,reload:u}}function kn(e=3e4){let[t,n]=(0,C.useState)(null),[r,i]=(0,C.useState)(null),[a,o]=(0,C.useState)(!0),[s,c]=(0,C.useState)(null),l=(0,C.useRef)(void 0),u=(0,C.useCallback)(async()=>{try{let[e,t]=await Promise.all([fetch(`/api/metrics/dashboard`),fetch(`/api/stats`)]);if(!e.ok||!t.ok)throw Error(`fetch failed`);n(await e.json()),i(await t.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,C.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{dashboard:t,stats:r,loading:a,error:s,reload:u}}function An(){let[e,t]=(0,C.useState)([]),[n,r]=(0,C.useState)(null),[i,a]=(0,C.useState)(!0),[o,s]=(0,C.useState)(null),c=(0,C.useCallback)(async()=>{a(!0),s(null);try{let e=await(await fetch(`/api/traces?limit=25&offset=0`)).json();t(e.traces??[]),e.traces?.[0]&&r(await(await fetch(`/api/traces/${e.traces[0].trace_id}`)).json())}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,C.useEffect)(()=>{c()},[c]),{traces:e,selected:n,loading:i,error:o,selectTrace:async e=>{r(await(await fetch(`/api/traces/${e}`)).json())},reload:c}}function jn(e){return Array.isArray(e)?e:Array.isArray(e.logs)?e.logs:Array.isArray(e.items)?e.items:[]}function Mn(){let[e,t]=(0,C.useState)([]),[n,r]=(0,C.useState)([]),[i,a]=(0,C.useState)(!0),[o,s]=(0,C.useState)(null),c=(0,C.useCallback)(async()=>{a(!0),s(null);try{t(jn(await(await fetch(`/api/logs?limit=100&offset=0`)).json()))}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,C.useEffect)(()=>{c()},[c]),{logs:e,similar:n,loading:i,error:o,runSimilar:async e=>{e.trim()&&r(jn(await(await fetch(`/api/logs/similar?q=${encodeURIComponent(e)}&limit=8`)).json()))},setLogs:t,reload:c}}var Nn=100,Pn=1e4,Fn=3e4,In=35e3;function Ln(e){let t=(0,C.useRef)(null),n=(0,C.useRef)(e),[r,i]=(0,C.useState)(`connecting`);t.status=r;let a=(0,C.useRef)(0),o=(0,C.useRef)(null),s=(0,C.useRef)(null),c=(0,C.useRef)(null),l=(0,C.useRef)(!1),u=(0,C.useRef)(()=>{});(0,C.useEffect)(()=>{n.current=e},[e]);let d=(0,C.useCallback)(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),f=(0,C.useCallback)(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null),c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]),p=(0,C.useCallback)(()=>{if(l.current)return;d();let e=a.current,t=Math.min(Nn*2**e,Pn);a.current=e+1,i(`reconnecting`),o.current=window.setTimeout(()=>{o.current=null,u.current()},t)},[d]),m=(0,C.useCallback)(()=>{f(),s.current=window.setInterval(()=>{let e=t.current;if(!(!e||e.readyState!==WebSocket.OPEN)){try{e.send(JSON.stringify({type:`ping`}))}catch{return}c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{c.current=null;let e=t.current;if(e)try{e.close()}catch{}},In)}},Fn)},[f]),h=(0,C.useCallback)(()=>{if(l.current)return;d(),f();let e=t.current;if(e){e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}t.current=null}i(a.current===0?`connecting`:`reconnecting`);let r=window.location.protocol===`https:`?`wss:`:`ws:`,o;try{o=new WebSocket(`${r}//${window.location.host}/ws`)}catch{p();return}t.current=o,o.onopen=()=>{l.current||(a.current=0,i(`connected`),m())},o.onmessage=e=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null);try{let t=JSON.parse(e.data);t.type===`logs`&&Array.isArray(t.data)&&n.current(t.data)}catch{}},o.onerror=()=>{},o.onclose=()=>{l.current||(t.current===o&&(t.current=null),f(),i(`disconnected`),p())}},[f,d,p,m]);return(0,C.useEffect)(()=>{u.current=h},[h]),(0,C.useEffect)(()=>{l.current=!1,u.current=h,h();let e=()=>{if(document.visibilityState!==`visible`)return;let e=t.current;(!e||e.readyState===WebSocket.CLOSED||e.readyState===WebSocket.CLOSING)&&(a.current=0,d(),u.current())},n=()=>{a.current=0,d(),u.current()};return document.addEventListener(`visibilitychange`,e),window.addEventListener(`online`,n),()=>{l.current=!0,document.removeEventListener(`visibilitychange`,e),window.removeEventListener(`online`,n),d(),f();let r=t.current;if(r){r.onopen=null,r.onmessage=null,r.onerror=null,r.onclose=null;try{r.close()}catch{}t.current=null}}},[]),t}function Rn(){let[e,t]=(0,C.useState)(`services`),[n,r]=(0,C.useState)(null),i=On(),a=kn(),o=An(),s=Mn(),c=(0,C.useRef)(s.setLogs);c.current=s.setLogs;let l=!!Ln((0,C.useCallback)(e=>{c.current(t=>[...e,...t].slice(0,200))},[])).current,u=(0,C.useCallback)(e=>{r(e),t(`traces`)},[]),d=(0,C.useCallback)(e=>{r(e),t(`logs`)},[]),f=(0,C.useCallback)(()=>{r(null)},[]);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Je,{view:e,onNavigate:t,dashboard:a.dashboard,stats:a.stats,wsConnected:l}),(0,S.jsxs)(`main`,{style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`,background:`var(--bg-0)`,overflow:`hidden`},children:[e===`services`&&(0,S.jsx)(Et,{graph:i.graph,cache:i.cache,loading:i.loading,error:i.error,onNavigateToTraces:u,onNavigateToLogs:d}),e===`traces`&&(0,S.jsx)(an,{traces:o.traces,selected:o.selected,loading:o.loading,error:o.error,onSelect:e=>void o.selectTrace(e),serviceFilter:n,onClearFilter:f}),e===`logs`&&(0,S.jsx)(hn,{logs:s.logs,similar:s.similar,loading:s.loading,error:s.error,onSimilar:e=>void s.runSimilar(e),serviceFilter:n,onClearFilter:f}),e===`mcp`&&(0,S.jsx)(Dn,{})]})]})}(0,Se.createRoot)(document.getElementById(`root`)).render((0,S.jsx)(C.StrictMode,{children:(0,S.jsxs)(xe,{mode:`dark`,children:[(0,S.jsx)(Rn,{}),(0,S.jsx)(ve,{})]})}));export{o as t}; \ No newline at end of file diff --git a/internal/ui/dist/assets/index-COVOG8eS.js b/internal/ui/dist/assets/index-COVOG8eS.js deleted file mode 100644 index d5182a1..0000000 --- a/internal/ui/dist/assets/index-COVOG8eS.js +++ /dev/null @@ -1,48 +0,0 @@ -var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function te(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,te(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),te(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,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 c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function ue(e,t){se++,oe[se]=e.current,e.current=t}var de=ce(null),fe=ce(null),pe=ce(null),me=ce(null);function he(e,t){switch(ue(pe,t),ue(fe,e),ue(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(de),ue(de,e)}function ge(){le(de),le(fe),le(pe)}function _e(e){e.memoizedState!==null&&ue(me,e);var t=de.current,n=Wd(t,e.type);t!==n&&(ue(fe,e),ue(de,n))}function ve(e){fe.current===e&&(le(de),le(fe)),me.current===e&&(le(me),ep._currentValue=ae)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return` -Error generating stack: `+e.message+` -`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,N=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function q(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!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:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=mr(n)}}function gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var yr=en&&`documentMode`in document&&11>=document.documentMode,br=null,xr=null,Sr=null,Cr=!1;function wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cr||br==null||br!==At(r)||(r=br,`selectionStart`in r&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sr&&pr(Sr,r)||(Sr=r,r=Dd(xr,`onSelect`),0>=o,i-=o,gi=1<<32-He(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ti&&vi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ti&&vi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ti&&vi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ti&&vi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ea(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ri(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ni(o.type,o.key,o.props,null,e.mode,c),Ea(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=oi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ya(o),b(e,r,o,c)}if(re(o))return h(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ta(o),c);if(o.$$typeof===C)return b(e,r,qi(e,o),c);Da(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{wa=0;var i=b(e,t,n,r);return Ca=null,i}catch(t){if(t===pa||t===ha)throw t;var a=Qr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ka=Oa(!0),Aa=Oa(!1),ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Yr(e),Jr(e,null,n),t}return Gr(e,r,t,n),Yr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ra=!1;function za(){if(Ra){var e=ia;if(e!==null)throw e}}function Ba(e,t,n,r){Ra=!1;var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Ll&f)===f:(r&f)===f){f!==0&&f===ra&&(Ra=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,Ds(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,sa(c,r),pu(e)):Es(e,t,r,pu(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{ie.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function gs(){}function _s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=vs(e).queue;hs(e,a,t,ae,n===null?gs:function(){return ys(e),n(r)})}function vs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ys(e){var t=vs(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},pu())}function bs(){return Ki(ep)}function xs(){return To().memoizedState}function Ss(){return To().memoizedState}function Cs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Pa(n);var r=Fa(t,e,n);r!==null&&(hu(r,t,n),Ia(r,t,n)),t={cache:$i()},e.payload=t;return}t=t.return}}function ws(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=Kr(e,t,n,r),n!==null&&(hu(n,e,r),As(n,t,r)))}function Ts(e,t,n){Es(e,t,n,pu())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(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,n);if(i.hasEagerState=!0,i.eagerState=s,fr(s,o))return Gr(e,t,i,0),Fl===null&&Wr(),!1}catch{}if(n=Kr(e,t,i,r),n!==null)return hu(n,e,r),As(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(i(479))}else t=Kr(e,n,r,2),t!==null&&hu(t,e,2)}function Os(e){var t=e.alternate;return e===io||t!==null&&t===io}function ks(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var js={readContext:Ki,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};js.useEffectEvent=ho;var Ms={readContext:Ki,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Ki,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ws.bind(null,io,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ts.bind(null,io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:us,useDeferredValue:function(e,t){return ps(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=hs.bind(null,io,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=io,a=wo();if(Ti){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Ll&127||Fo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Lo.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Fl.identifierPrefix;if(Ti){var n=_i,r=gi;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=pe.current,Mi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ci,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||ki(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Mi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return ge(),e===null&&Cd(t.stateNode.containerInfo),jc(t),null;case 10:return Bi(t.type),jc(t),null;case 19:if(le(to),r=t.memoizedState,r===null)return jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ac(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ti(n,e),n=n.sibling;return ue(to,to.current&1|2),Ti&&vi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>tu&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}else{if(!a)if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ti)return jc(t),null}else 2*Ae()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=to.current,ue(to,a?n&1|2:n&1),Ti&&vi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&le(la),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bi(Qi),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(Qi),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(to),null;case 4:return ge(),null;case 10:return Bi(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&le(la),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bi(Qi),null;case 25:return null;default:return null}}function Pc(e,t){switch(xi(t),t.tag){case 3:Bi(Qi),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:le(to);break;case 10:Bi(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&le(la);break;case 24:Bi(Qi)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Gu(e,e.return,t)}}}function Rc(e,t,n){n.props=zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Gu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Gu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Bd=lp,e=_r(e),vr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,mt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=hr(s,h),v=hr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,id(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{ie.p=a,M.T=r,Vu(e,t)}}function Wu(e,t,n){t=ci(n,t),t=Gs(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(et(e,2),rd(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=ci(n,e),n=Ks(2),r=Fa(t,n,2),r!==null&&(qs(n,r,t,e),et(r,2),rd(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Ll&n)===n&&(Wl===4||Wl===3&&(Ll&62914560)===Ll&&300>Ae()-$l?!(Pl&2)&&Su(e,0):ql|=n,Yl===Ll&&(Yl=0)),rd(e)}function Ju(e,t){t===0&&(t=P()),e=qr(e,t),e!==null&&(et(e,t),rd(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return De(e,t)}var Qu=null,$u=null,ed=!1,Z=!1,td=!1,nd=0;function rd(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),Z=!0,ed||(ed=!0,ud())}function id(e,t){if(!td&&Z){td=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Ll,a=Xe(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){Z=ed=!1;var e=0;nd!==0&&qd()&&(e=nd);for(var t=Ae(),n=null,r=Qu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(Z=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),mt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),mt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=pt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);mt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=pt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),mt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=pt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),mt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=pe.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=pt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=pt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=pt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Mf(e){return`href="`+Mt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),mt(t),e.head.appendChild(t))}function If(e){return`[src="`+Mt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,mt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),mt(r),Id(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,mt(o),o;r=Pf(n),(a=gf.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,mt(a),a):(r=n,(a=gf.get(o))&&(r=m({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),mt(a),Id(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,mt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),y=o(((e,t)=>{t.exports=v()}));function b(...e){let t=``;for(let n of e)n&&(t+=t?` `+n:n);return t}var x=0;function S(e=`rcs`){return x+=1,`${e}-${x}`}var C=y(),w=l(d(),1);function T(e){let{items:t,value:n,defaultValue:r,variant:i=`line`,size:a=`md`,onChange:o,scrollable:s,className:c,style:l,id:u}=e,d=n!==void 0,[f,p]=w.useState(r??t[0]?.key),m=d?n:f,h=t.find(e=>e.key===m),g=(e,t)=>{t||(d||p(e),o?.(e))};return(0,C.jsxs)(`div`,{id:u,"data-scrollable":s||void 0,className:b(`rcs-tabs`,`rcs-tabs--${i}`,`rcs-tabs--${a}`,c),style:l,children:[(0,C.jsx)(`div`,{className:`rcs-tabs-nav`,"data-scrollable":s||void 0,role:`tablist`,children:t.map(e=>(0,C.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e.key===m,disabled:e.disabled,"data-active":e.key===m||void 0,className:`rcs-tabs-tab`,onClick:()=>g(e.key,e.disabled),children:[e.icon&&(0,C.jsx)(`span`,{"aria-hidden":!0,children:e.icon}),(0,C.jsx)(`span`,{children:e.label}),e.badge&&(0,C.jsx)(`span`,{style:{marginLeft:4},children:e.badge})]},e.key))}),h?.content&&(0,C.jsx)(`div`,{className:`rcs-tabs-content`,role:`tabpanel`,children:h.content})]})}var E={info:`ⓘ`,success:`✓`,warning:`⚠`,danger:`✕`};function D(e,t){w.useEffect(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t])}function O(e){let{open:t,title:n,description:r,size:i=`md`,closeOnEsc:a=!0,closeOnBackdrop:o=!0,footer:s,children:c,onClose:l,className:u,style:d,id:f}=e;return D(t&&a,l),t?(0,C.jsx)(`div`,{className:`rcs-modal-backdrop`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":n?`${f??`modal`}-title`:void 0,onClick:e=>{o&&e.target===e.currentTarget&&l()},children:(0,C.jsxs)(`div`,{id:f,className:b(`rcs-modal`,`rcs-modal--${i}`,u),style:d,children:[(n||r)&&(0,C.jsxs)(`div`,{className:`rcs-modal-header`,children:[n&&(0,C.jsx)(`h2`,{id:`${f??`modal`}-title`,className:`rcs-modal-title`,children:n}),r&&(0,C.jsx)(`div`,{className:`rcs-modal-desc`,children:r})]}),(0,C.jsx)(`div`,{className:`rcs-modal-body`,children:c}),s&&(0,C.jsx)(`div`,{className:`rcs-modal-footer`,children:s})]})}):null}var k=[],A=new Set;function j(){for(let e of A)e([...k])}var ee={show(e){let t=e.id??S(`toast`),n={...e,id:t};k.push(n),j();let r=e.duration??4e3;return r>0&&window.setTimeout(()=>ee.dismiss(t),r),t},dismiss(e){let t=k.findIndex(t=>t.id===e);t>=0&&(k.splice(t,1)[0].onDismiss?.(),j())},async promise(e,t){let n=ee.show({severity:`info`,title:t.loading,duration:0});try{let r=await e;return ee.dismiss(n),ee.show({severity:`success`,title:t.success}),r}catch(e){throw ee.dismiss(n),ee.show({severity:`danger`,title:t.error}),e}}};function te(){let[e,t]=w.useState([]);return w.useEffect(()=>(A.add(t),()=>{A.delete(t)}),[]),(0,C.jsx)(`div`,{className:`rcs-toast-region`,"aria-live":`polite`,"aria-atomic":`false`,children:e.map(e=>(0,C.jsxs)(`div`,{className:b(`rcs-toast`,`rcs-toast--${e.severity??`info`}`),role:`status`,children:[(0,C.jsx)(`span`,{className:`rcs-toast-icon`,"aria-hidden":!0,children:E[e.severity??`info`]}),(0,C.jsxs)(`div`,{style:{flex:1},children:[(0,C.jsx)(`div`,{className:`rcs-toast-title`,children:e.title}),e.description&&(0,C.jsx)(`div`,{className:`rcs-toast-desc`,children:e.description})]}),e.action&&(0,C.jsx)(`button`,{className:`rcs-toast-action`,onClick:()=>{e.action.onClick(),ee.dismiss(e.id)},children:e.action.label}),(0,C.jsx)(`button`,{className:`rcs-input-clear`,"aria-label":`Dismiss`,onClick:()=>ee.dismiss(e.id),children:`×`})]},e.id))})}var ne=w.createContext(null),re={"signal-red":`#E60000`,"signal-red-700":`#9E0000`,"signal-red-900":`#520000`,"cod-gray":`#1C1C1C`,"cod-gray-700":`#2B2B2B`,"cod-gray-500":`#5A5A5A`,"cod-gray-300":`#A6A6A6`,"cod-gray-100":`#F5F5F5`,"cod-gray-050":`#FAFAFA`,white:`#FFFFFF`};function M(e){let{mode:t,accent:n,fontFamily:r,children:i}=e,[a,o]=w.useState(t??`light`),s=t??a;w.useEffect(()=>{typeof document>`u`||document.documentElement.setAttribute(`data-theme`,s)},[s]),w.useEffect(()=>{typeof document>`u`||!n||document.documentElement.style.setProperty(`--accent`,re[n])},[n]),w.useEffect(()=>{typeof document>`u`||!r||(r.sans&&document.documentElement.style.setProperty(`--font-sans`,r.sans),r.mono&&document.documentElement.style.setProperty(`--font-mono`,r.mono))},[r]);let c=w.useMemo(()=>({mode:s,setMode:e=>o(e),toggle:()=>o(e=>e===`light`?`dark`:`light`)}),[s]);return(0,C.jsx)(ne.Provider,{value:c,children:i})}var ie=_(),ae=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),oe=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),se={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ce=(0,w.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,w.createElement)(`svg`,{ref:c,...se,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:oe(`lucide`,i),...s},[...o.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(a)?a:[a]])),le=(e,t)=>{let n=(0,w.forwardRef)(({className:n,...r},i)=>(0,w.createElement)(ce,{ref:i,iconNode:t,className:oe(`lucide-${ae(e)}`,n),...r}));return n.displayName=`${e}`,n},ue=le(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),de=le(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),fe=le(`Network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),pe=le(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),me=le(`Plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M9 8V2`,key:`14iosj`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`,key:`osxo6l`}]]),he=le(`Radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),ge=le(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),_e=le(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),ve=le(`SendHorizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),ye=le(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),be=le(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]);function xe(e){return Se(JSON.stringify(e,null,2)).replace(/"([^"]+)":/g,`"$1":`).replace(/: "([^"]*)"/g,`: "$1"`).replace(/: (true|false)/g,`: $1`).replace(/: (null)/g,`: $1`).replace(/: (-?\d+\.?\d*)/g,`: $1`)}function Se(e){return e.replace(/&/g,`&`).replace(//g,`>`)}function Ce(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e*10)/10)}var we=`oc-theme`;function Te(){let[e,t]=(0,w.useState)(()=>localStorage.getItem(we)??`dark`);return(0,w.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e),localStorage.setItem(we,e)},[e]),{theme:e,toggle:()=>t(e=>e===`dark`?`light`:`dark`)}}var Ee=[{key:`services`,label:`Service Map`,icon:fe},{key:`traces`,label:`Traces`,icon:_e},{key:`logs`,label:`Logs`,icon:he},{key:`mcp`,label:`MCP`,icon:be}];function De({view:e,onNavigate:t,dashboard:n,stats:r,wsConnected:i}){let{theme:a,toggle:o}=Te();return(0,C.jsxs)(`nav`,{className:`top-nav`,children:[(0,C.jsxs)(`a`,{className:`logo`,href:`/`,children:[(0,C.jsx)(`span`,{style:{color:`var(--color-accent)`,fontSize:`1rem`,flexShrink:0},children:`◆`}),(0,C.jsx)(`span`,{className:`logo-mark`,children:`OtelContext`})]}),Ee.map(({key:n,label:r,icon:i})=>(0,C.jsxs)(`button`,{className:`nav-link${e===n?` active`:``}`,onClick:()=>t(n),children:[(0,C.jsx)(i,{size:13}),` `,r]},n)),(0,C.jsxs)(`div`,{className:`stats-bar`,style:{marginLeft:`auto`},children:[(0,C.jsxs)(`span`,{children:[`Services`,` `,(0,C.jsx)(`b`,{className:`stat-healthy`,children:n?.active_services??`--`})]}),(0,C.jsxs)(`span`,{children:[`Traces`,` `,(0,C.jsx)(`b`,{children:Ce(n?.total_traces??0)})]}),(0,C.jsxs)(`span`,{children:[`Logs`,` `,(0,C.jsx)(`b`,{children:Ce(n?.total_logs??0)})]}),(0,C.jsxs)(`span`,{children:[`Error Rate`,` `,(0,C.jsx)(`b`,{className:(n?.error_rate??0)>5?`stat-error`:``,children:n?.error_rate==null?`--%`:`${n.error_rate.toFixed(1)}%`})]}),(0,C.jsxs)(`span`,{children:[`DB`,` `,(0,C.jsx)(`b`,{children:r?.db_size_mb==null?`--`:`${r.db_size_mb}MB`})]}),(0,C.jsx)(`span`,{className:`ws-dot ${i?`connected`:`disconnected`}`,title:i?`WebSocket connected`:`WebSocket disconnected`})]}),(0,C.jsx)(`button`,{className:`theme-btn`,onClick:o,title:`Toggle theme`,children:a===`dark`?(0,C.jsx)(ye,{size:15}):(0,C.jsx)(de,{size:15})})]})}var Oe=function(e,t){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oe(e,t)};function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Oe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ae=new(function(){function e(){this.browser=new ke,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}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Ae.wxa=!0,Ae.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Ae.worker=!0:!Ae.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Ae.node=!0,Ae.svgSupported=!0):je(navigator.userAgent,Ae);function je(e,t){var n=t.browser,r=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);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Me=`12px sans-serif`,Ne=20,Pe=100,Fe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Ie(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n=0)s=o*n.length;else for(var c=0;c>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function vn(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?dn(s,o):dn(o,s))}function yn(e){return e.nodeName.toUpperCase()===`CANVAS`}var bn=/([&<>"'])/g,xn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Sn(e){return e==null?``:(e+``).replace(bn,function(e,t){return xn[t]})}var Cn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wn=[],Tn=Ae.browser.firefox&&+Ae.browser.version.split(`.`)[0]<39;function En(e,t,n,r){return n||={},r?Dn(e,t,n):Tn&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Dn(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Dn(e,t,n){if(Ae.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(yn(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(gn(wn,e,r,i)){n.zrX=wn[0],n.zrY=wn[1];return}}n.zrX=n.zrY=0}function On(e){return e||window.event}function kn(e,t,n){if(t=On(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&En(e,i,t,n)}else{En(e,t,t,n);var a=An(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Cn.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function An(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function jn(e,t,n,r){e.addEventListener(t,n,r)}function Mn(e,t,n,r){e.removeEventListener(t,n,r)}var Nn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Pn(e){return e.which===2||e.which===3}var Fn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=In(r)/In(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ln(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function zn(){return[1,0,0,1,0,0]}function Bn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Vn(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 Hn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Un(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Wn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Gn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Kn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function qn(e){var t=zn();return Vn(t,e),t}var q=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Jn=Math.min,Yn=Math.max,Xn=Math.abs,Zn=[`x`,`y`],Qn=[`width`,`height`],$n=new q,er=new q,tr=new q,nr=new q,rr=ur(),ir=rr.minTv,ar=rr.maxTv,or=[0,0],J=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Jn(e.x,this.x),n=Jn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=zn();return Un(i,i,[-t.x,-t.y]),Gn(i,i,[n,r]),Un(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(sr,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(cr,n.x,n.y,n.width,n.height));var s=!!r;rr.reset(i,s);var c=rr.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},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(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.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}$n.x=tr.x=n.x,$n.y=nr.y=n.y,er.x=nr.x=n.x+n.width,er.y=tr.y=n.y+n.height,$n.transform(r),nr.transform(r),er.transform(r),tr.transform(r),t.x=Jn($n.x,er.x,tr.x,nr.x),t.y=Jn($n.y,er.y,tr.y,nr.y);var c=Yn($n.x,er.x,tr.x,nr.x),l=Yn($n.y,er.y,tr.y,nr.y);t.width=c-t.x,t.height=l-t.y},e}(),sr=new J(0,0,0,0),cr=new J(0,0,0,0);function lr(e,t,n,r,i,a,o,s){var c=Xn(t-n),l=Xn(r-e),u=Jn(c,l),d=Zn[i],f=Zn[1-i],p=Qn[i];t=l||!rr.bidirectional)&&(ir[d]=-l,ir[f]=0,rr.useDir&&rr.calcDirMTV())))}function ur(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Yn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(_r.copy(u.getBoundingRect()),u.transform&&_r.applyTransform(u.transform),_r.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function yr(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?dr:!0}return!1}function br(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=yr(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==dr)){t.target=o;break}}}function xr(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Sr=32,Cr=7;function wr(e){for(var t=0;e>=Sr;)t|=e&1,e>>=1;return e+t}function Tr(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Er(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){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(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Or(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function kr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Ar(e,t){var n=Cr,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=Cr||m>=Cr);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Or(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=Cr||g>=Cr);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),Dr(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Mr=!1;function Nr(){Mr||(Mr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Pr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pr}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,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}(),Ir=Ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Lr={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.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=1.70158*1.525;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-Lr.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?Lr.bounceIn(e*2)*.5:Lr.bounceOut(e*2-1)*.5+.5}},Rr=Math.pow,zr=Math.sqrt,Br=1e-8,Vr=1e-4,Hr=zr(3),Ur=1/3,Wr=Bt(),Gr=Bt(),Kr=Bt();function qr(e){return e>-Br&&eBr||e<-Br}function Yr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Xr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Zr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(qr(u)&&qr(d))if(qr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(qr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=zr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Rr(-y,Ur):Rr(y,Ur),b=b<0?-Rr(-b,Ur):Rr(b,Ur);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*zr(u*u*u)),S=Math.acos(x)/3,C=zr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Hr*Math.sin(S)))/(3*o),T=(-s+C*(w-Hr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Qr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(qr(o)){if(Jr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(qr(u))i[0]=-a/(2*o);else if(u>0){var d=zr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function $r(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function ei(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Wr[0]=c,Wr[1]=l;for(var v=0;v<1;v+=.05)Gr[0]=Yr(e,n,i,o,v),Gr[1]=Yr(t,r,a,s,v),g=en(Wr,Gr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(qr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=zr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ai(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function oi(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function si(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Wr[0]=o,Wr[1]=s;for(var f=0;f<1;f+=.05){Gr[0]=ni(e,n,i,f),Gr[1]=ni(t,r,a,f);var p=en(Wr,Gr);p=0&&p=1?1:Zr(0,r,a,1,e,s)&&Yr(0,i,o,1,s[0])}}}var di=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||It,this.ondestroy=e.ondestroy||It,this.onrestart=e.onrestart||It,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=V(e)?e:Lr[e]||ui(e)},e}(),fi=function(){function e(e){this.value=e}return e}(),pi=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new fi(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mi=function(){function e(e){this._list=new pi,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new fi(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),hi={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 gi(e){return e=Math.round(e),e<0?0:e>255?255:e}function _i(e){return e=Math.round(e),e<0?0:e>360?360:e}function vi(e){return e<0?0:e>1?1:e}function yi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?gi(parseFloat(t)/100*255):gi(parseInt(t,10))}function bi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?vi(parseFloat(t)/100):vi(parseFloat(t))}function xi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Si(e,t,n){return e+(t-e)*n}function Ci(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function wi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ti=new mi(20),Ei=null;function Di(e,t){Ei&&wi(Ei,t),Ei=Ti.put(e,Ei||t.slice())}function Oi(e,t){if(e){t||=[];var n=Ti.get(e);if(n)return wi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in hi)return wi(t,hi[r]),Di(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ci(t,0,0,0,1);return}return Ci(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Di(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ci(t,0,0,0,1);return}return Ci(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Di(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Ci(t,+l[0],+l[1],+l[2],1):Ci(t,0,0,0,1);u=bi(l.pop());case`rgb`:if(l.length>=3)return Ci(t,yi(l[0]),yi(l[1]),yi(l[2]),l.length===3?u:bi(l[3])),Di(e,t),t;Ci(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ci(t,0,0,0,1);return}return l[3]=bi(l[3]),ki(l,t),Di(e,t),t;case`hsl`:if(l.length!==3){Ci(t,0,0,0,1);return}return ki(l,t),Di(e,t),t;default:return}}Ci(t,0,0,0,1)}}function ki(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=bi(e[1]),i=bi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ci(t,gi(xi(o,a,n+1/3)*255),gi(xi(o,a,n)*255),gi(xi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ai(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function ji(e,t){var n=Oi(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ii(n,n.length===4?`rgba`:`rgb`)}}function Mi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=gi(Si(o[0],s[0],c)),n[1]=gi(Si(o[1],s[1],c)),n[2]=gi(Si(o[2],s[2],c)),n[3]=vi(Si(o[3],s[3],c)),n}}function Ni(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Oi(t[i]),s=Oi(t[a]),c=r-i,l=Ii([gi(Si(o[0],s[0],c)),gi(Si(o[1],s[1],c)),gi(Si(o[2],s[2],c)),vi(Si(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Pi(e,t,n,r){var i=Oi(e);if(e)return i=Ai(i),t!=null&&(i[0]=_i(V(t)?t(i[0]):t)),n!=null&&(i[1]=bi(V(n)?n(i[1]):n)),r!=null&&(i[2]=bi(V(r)?r(i[2]):r)),Ii(ki(i),`rgba`)}function Fi(e,t){var n=Oi(e);if(n&&t!=null)return n[3]=vi(t),Ii(n,`rgba`)}function Ii(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Li(e,t){var n=Oi(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ri=new mi(100);function zi(e){if(H(e)){var t=Ri.get(e);return t||(t=ji(e,-.1),Ri.put(e,t)),t}else if(gt(e)){var n=F({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:ji(e.color,-.1)}}),n}return e}var Bi=Math.round;function Vi(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Oi(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Hi=1e-4;function Ui(e){return e-Hi}function Wi(e){return Bi(e*1e3)/1e3}function Gi(e){return Bi(e*1e4)/1e4}function Ki(e){return`matrix(`+Wi(e[0])+`,`+Wi(e[1])+`,`+Wi(e[2])+`,`+Wi(e[3])+`,`+Gi(e[4])+`,`+Gi(e[5])+`)`}var qi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Ji(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Yi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Xi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Zi(e){return e&&!!e.image}function Qi(e){return e&&!!e.svgElement}function $i(e){return Zi(e)||Qi(e)}function ea(e){return e.type===`linear`}function ta(e){return e.type===`radial`}function na(e){return e&&(e.type===`linear`||e.type===`radial`)}function ra(e){return`url(#`+e+`)`}function ia(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function aa(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Lt,i=W(e.scaleX,1),a=W(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Bi(o*Lt)+`deg, `+Bi(s*Lt)+`deg)`),c.join(` `)}var oa=(function(){return Ae.hasGlobalWindow&&V(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}})(),sa=Array.prototype.slice;function ca(e,t,n){return(t-e)*n+e}function la(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=wa,s=t;if(it(t)){var c=_a(t);o=c,(c===1&&!ft(t[0])||c===2&&!ft(t[0][0]))&&(a=!0)}else if(ft(t)&&!yt(t))o=va;else if(H(t))if(!isNaN(+t))o=va;else{var l=Oi(t);l&&(s=l,o=xa)}else if(gt(t)){var u=F({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:Oi(e.color)}}),ea(t)?o=Sa:ta(t)&&(o=Ca),s=u}i===0?this.valType=o:(o!==this.valType||o===wa)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:Lr[n]||ui(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Ea(r),c=Ta(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Da:e[s];if((Ea(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ea(i))i===ya?la(g,f[r],p[r],h):ua(g,f[r],p[r],h);else if(Ta(i)){var _=f[r],v=p[r],y=i===Sa;e[s]={type:y?`linear`:`radial`,x:ca(_.x,v.x,h),y:ca(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ca(e.offset,n.offset,h),color:ga(la([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ca(_.x2,v.x2,h),e[s].y2=ca(_.y2,v.y2,h)):e[s].r=ca(_.r,v.r,h)}else if(c)la(g,f[r],p[r],h),n||(e[s]=ga(g));else{var b=ca(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===va?e[n]=e[n]+r:t===xa?(Oi(e[n],Da),da(Da,Da,r,1),e[n]=ga(Da)):t===ya?da(e[n],e[n],r,1):t===ba&&fa(e[n],e[n],r,1)},e}(),ka=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Qe(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ct(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ha(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ha(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Aa(){return new Date().getTime()}var ja=function(e){zt(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Aa()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Ir(t),!e._paused&&e.update())}Ir(t)},t.prototype.start=function(){this._running||(this._time=Aa(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Aa(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Aa()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new ka(e,t.loop);return this.addAnimator(n),n},t}(cn),Ma=300,Na=Ae.domSupported,Pa=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Fa={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ia=!1;function La(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ra(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 za(e){e&&(e.zrByTouch=!0)}function Ba(e,t){return kn(e.dom,new Ha(e,t),!0)}function Va(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ha=function(){function e(e,t){this.stopPropagation=It,this.stopImmediatePropagation=It,this.preventDefault=It,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ua={mousedown:function(e){e=kn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=kn(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=kn(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=kn(this.dom,e);var t=e.toElement||e.relatedTarget;Va(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ia=!0,e=kn(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ia||(e=kn(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=kn(this.dom,e),za(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ua.mousemove.call(this,e),Ua.mousedown.call(this,e)},touchmove:function(e){e=kn(this.dom,e),za(e),this.handler.processGesture(e,`change`),Ua.mousemove.call(this,e)},touchend:function(e){e=kn(this.dom,e),za(e),this.handler.processGesture(e,`end`),Ua.mouseup.call(this,e),new Date-+this.__lastTouchMomentio||e<-io}var oo=[],so=[],co=zn(),lo=Math.abs,uo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ao(this.rotation)||ao(this.x)||ao(this.y)||ao(this.scaleX-1)||ao(this.scaleY-1)||ao(this.skewX)||ao(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ro(n),this.invTransform=null);return}n||=zn(),t?this.getLocalTransform(n):ro(n),e&&(t?Hn(n,e,n):Vn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(oo);var n=oo[0]<0?-1:1,r=oo[1]<0?-1:1,i=((oo[0]-n)*t+n)/oo[0]||0,a=((oo[1]-r)*t+r)/oo[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||zn(),Kn(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||zn(),Hn(so,e.invTransform,t),t=so);var n=this.originX,r=this.originY;(n||r)&&(co[4]=n,co[5]=r,Hn(so,t,co),so[4]-=n,so[5]-=r,t=so),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&nn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&nn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&lo(e[0]-1)>1e-10&&lo(e[3]-1)>1e-10?Math.sqrt(lo(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){po(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Wn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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}(),fo=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function po(e,t){for(var n=0;n=vo)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Re.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?_o=vo:i>2&&_o++,t}}var _o=0,vo=5;function yo(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=go(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function bo(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Re.measureText(t,e.font).width,n.put(t,r)),r}function xo(e,t,n,r){var i=bo(mo(t),e),a=To(t);return new J(Co(0,i,n),wo(0,a,r),i,a)}function So(e,t,n,r){var i=((e||``)+``).split(` -`);if(i.length===1)return xo(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o=0?parseFloat(e)/100*t:parseFloat(e):e}function Do(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Eo(r[0],n.width),l+=Eo(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Oo=`__zr_normal__`,ko=fo.concat([`ignore`]),Ao=at(fo,function(e,t){return e[t]=!0,e},{ignore:!1}),jo={},Mo=new J(0,0,0,0),No=[],Po=function(){function e(e){this.id=Ze(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Mo,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(jo,n,d):Do(jo,n,d),i.x=jo.x,i.y=jo.y,a=jo.align,o=jo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Eo(f[0],d.width),m=Eo(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(No),Kn(No,No),J.copy(_,d),_.applyTransform(No)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?to:eo},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Oi(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Ii(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=ct(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Oo,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Oo;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(tt(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Qe(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=tt(r,e),a=tt(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=tt(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=tt(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var X=as;function as(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return os(e,t,n)}function os(e,t,n){return H(e)?es(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ss(e,t,n){return t??=10,t=Math.min(Math.max(0,t),$o),e=(+e).toFixed(t),n?e:+e}function cs(e){return e.sort(function(e,t){return e-t}),e}function ls(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return us(e)}function us(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function ds(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(rs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function fs(e,t){var n=at(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=R(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=R(i,function(e){return Math.floor(e)}),s=at(o,function(e,t){return e+t},0),c=R(i,function(e,t){return e-o[t]});sl&&(l=c[d],u=d);++o[u],c[u]=0,++s}return R(o,function(e){return e/r})}function ps(e,t){var n=Math.max(ls(e),ls(t)),r=e+t;return n>$o?r:ss(r,n)}function ms(e){var t=Math.PI*2;return(e%t+t)%t}function hs(e){return e>-Qo&&e=10&&t++,t}function bs(e,t){var n=ys(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function xs(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Ss(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}();function vc(e){e.option=e.parentModel=e.ecModel=null}var yc=`.`,bc=`___EC__COMPONENT__CONTAINER___`,xc=`___EC__EXTENDED_CLASS___`;function Sc(e){var t={main:``,sub:``};if(e){var n=e.split(yc);t.main=n[0]||``,t.sub=n[1]||``}return t}function Cc(e){wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function wc(e){return!!(e&&e[xc])}function Tc(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Ec(t)?n=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},nt(n,this)),F(n.prototype,e),n[xc]=!0,n.extend=this.extend,n.superCall=Ac,n.superApply=jc,n.superClass=t,n}}function Ec(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Dc(e,t){e.extend=t.extend}var Oc=Math.round(Math.random()*10);function kc(e){var t=[`__\0is_clz`,Oc++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Ac(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function jc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Mc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Cc(r),e.prototype.type=r;var i=Sc(r);if(!i.sub)t[i.main]=e;else if(i.sub!==bc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[bc]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Sc(e),r=[],i=t[n.main];return i&&i[bc]?L(i,function(e,t){t!==bc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Sc(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Sc(e).main];return n&&n[bc]};function n(e){var n=t[e.main];return(!n||!n[bc])&&(n=t[e.main]={},n[bc]=!0),n}}function Nc(e,t){for(var n=0;n=0||i&&tt(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Pc=Nc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Fc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Pc(this,e,t)},e}(),Ic=new mi(50);function Lc(e){if(typeof e==`string`){var t=Ic.get(e);return t&&t.image}else return e}function Rc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ic.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Bc(t)&&a.pending.push(o)):(t=Re.loadImage(e,zc,zc),t.__zrImageSrc=e,Ic.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function zc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;l++)c-=s;var u=bo(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Wc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=bo(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Gc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=bo(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Gc(e,t,n){for(var r=0,i=0,a=e.length;ig&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Uc(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Wc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=mo(l),S=0;S<_.length;S++)w=Math.max(bo(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var qc=function(){function e(){}return e}(),Jc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Yc=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Xc(e,t,n,r,i){var a=new Yc,o=al(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Vc.lastIndex=0,h;(h=Vc.exec(o))!=null;){var g=h.index;g>m&&Zc(a,o.substring(m,g),t,p),Zc(a,h[2],t,p,h[1]),m=Vc.lastIndex}md){var re=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` -`),l=!0),r.accumWidth=m}else{var h=tl(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` -`);for(var g=mo(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $c=at(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function el(e){return Qc(e)?!!$c[e]:!0}function tl(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=mo(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function nl(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(rl,Co(n,o,i),wo(r,s,a),o,s),J.intersect(t,rl,null,il);var c=il.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Co(c.x,c.width,i,!0),e.baseY=wo(c.y,c.height,a,!0)}}var rl=new J(0,0,0,0),il={outIntersectRect:{},clamp:!0};function al(e){return e==null?e=``:e+=``}function ol(e){var t=al(e.text),n=e.font;return sl(e,bo(mo(n),t),To(n),null)}function sl(e,t,n,r){var i=new J(Co(e.x||0,t,e.textAlign),wo(e.y||0,n,e.textBaseline),t,n),a=r??(cl(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function cl(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var ll=`__zr_style_`+Math.round(Math.random()*10),ul={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},dl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ul[ll]=!0;var fl=[`z`,`z2`,`invisible`],pl=[`invisible`],ml=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ct(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Cl[0]=xl(i)*n+e,Cl[1]=bl(i)*r+t,wl[0]=xl(a)*n+e,wl[1]=bl(a)*r+t,l(s,Cl,wl),u(c,Cl,wl),i%=Sl,i<0&&(i+=Sl),a%=Sl,a<0&&(a+=Sl),i>a&&!o?a+=Sl:ii&&(Tl[0]=xl(p)*n+e,Tl[1]=bl(p)*r+t,l(s,Tl,s),u(c,Tl,c))}var Nl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pl=[],Fl=[],Il=[],Ll=[],Rl=[],zl=[],Bl=Math.min,Vl=Math.max,Hl=Math.cos,Ul=Math.sin,Wl=Math.abs,Gl=Math.PI,Kl=Gl*2,ql=typeof Float32Array<`u`,Jl=[];function Yl(e){return Math.round(e/Gl*1e8)/1e8%2*Gl}function Xl(e,t){var n=Yl(e[0]);n<0&&(n+=Kl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Kl?i=n+Kl:t&&n-i>=Kl?i=n-Kl:!t&&n>i?i=n+(Kl-Yl(n-i)):t&&n0&&(this._ux=Wl(n/Qa/e)||0,this._uy=Wl(n/Qa/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Nl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Wl(e-this._xi),r=Wl(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Nl.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Nl.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Nl.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Jl[0]=r,Jl[1]=i,Xl(Jl,a),r=Jl[0],i=Jl[1];var o=i-r;return this.addData(Nl.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Hl(i)*n+e,this._yi=Ul(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Nl.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&ql&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Il[0]=Il[1]=Rl[0]=Rl[1]=Number.MAX_VALUE,Ll[0]=Ll[1]=zl[0]=zl[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Wl(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Nl.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ti(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Nl.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ci(i,a,y,b,h,g,10),i=h,a=g;break;case Nl.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Hl(D)*T+C,s=Ul(D)*E+w),m=Vl(T,E)*Bl(Kl,Math.abs(O)),i=Hl(k)*T+C,a=Ul(k)*E+w;break;case Nl.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Nl.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case Nl.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Nl.L:u=n[x++],d=n[x++];var w=Wl(u-c),T=Wl(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Nl.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;$r(c,k,j,te,D,Pl),$r(l,A,ee,ne,D,Fl),e.bezierCurveTo(Pl[1],Fl[1],Pl[2],Fl[2],Pl[3],Fl[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case Nl.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;oi(c,k,j,D,Pl),oi(l,A,ee,D,Fl),e.quadraticCurveTo(Pl[1],Fl[1],Pl[2],Fl[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Nl.A:var re=n[x++],M=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=Wl(ie-ae)>.001,fe=oe+se,pe=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,pe=!0),h+=E}if(de&&e.ellipse?e.ellipse(re,M,ie,ae,ce,oe,fe,le):e.arc(re,M,ue,oe,fe,le),pe)break lo;C&&(o=Hl(oe)*ie+re,s=Ul(oe)*ae+M),c=Hl(fe)*ie+re,l=Ul(fe)*ae+M;break;case Nl.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var me=n[x++],he=n[x++];if(f){var E=p[g++];if(h+E>_){var ge=_-h;e.moveTo(u,d),e.lineTo(u+Bl(ge,me),d),ge-=me,ge>0&&e.lineTo(u+me,d+Bl(ge,he)),ge-=he,ge>0&&e.lineTo(u+Vl(me-ge,0),d+he),ge-=me,ge>0&&e.lineTo(u,d+Vl(he-ge,0));break lo}h+=E}e.rect(u,d,me,he);break;case Nl.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Nl,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Ql(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=ru);var f=Math.atan2(c,s);return f<0&&(f+=ru),f>=r&&f<=i||f+ru>=r&&f+ru<=i}function au(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var ou=Zl.CMD,su=Math.PI*2,cu=1e-4;function lu(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&fu(),p=Yr(t,r,a,s,du[0]),f>1&&(m=Yr(t,r,a,s,du[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=ni(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);uu[0]=-c,uu[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=su-1e-4){r=0,i=su;var u=a?1:-1;return o>=uu[0]+e&&o<=uu[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=su,i+=su);for(var f=0,p=0;p<2;p++){var m=uu[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=su+h),(h>=r&&h<=i||h+su>=r&&h+su<=i)&&(h>Math.PI/2&&h1&&(n||(s+=au(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case ou.M:u=a[m++],d=a[m++],c=u,l=d;break;case ou.L:if(n){if(Ql(c,l,a[m],a[m+1],t,r,i))return!0}else s+=au(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.C:if(n){if($l(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=pu(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.Q:if(n){if(eu(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=mu(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ou.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=au(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(iu(_,v,b,x,x+S,C,t,w,i))return!0}else s+=hu(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case ou.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Ql(u,d,f,d,t,r,i)||Ql(f,d,f,p,t,r,i)||Ql(f,p,u,p,t,r,i)||Ql(u,p,u,d,t,r,i))return!0}else s+=au(f,d,f,p,r,i),s+=au(u,p,u,d,r,i);break;case ou.Z:if(n){if(Ql(c,l,u,d,t,r,i))return!0}else s+=au(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!lu(l,d)&&(s+=au(c,l,u,d,r,i)||0),s!==0}function _u(e,t,n){return gu(e,0,!1,t,n)}function vu(e,t,n,r){return gu(e,t,!0,n,r)}var yu=I({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ul),bu={style:I({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dl.style)},xu=fo.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Su=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?eo:t>.2?no:to}else if(e)return to}return eo},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Li(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Zl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),vu(a,o/s,e,t)))return!0}if(this.hasFill())return _u(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Pt(yu,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=F({},r.shape),F(c,n.shape)):(c=F({},i?this.shape:r.shape),F(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=F({},this.shape);for(var l={},u=ct(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Au=Math.round;function ju(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Au(r*2)===Au(i*2)&&(e.x1=e.x2=Nu(r,s,!0)),Au(a*2)===Au(o*2)&&(e.y1=e.y2=Nu(a,s,!0)),e):e}}function Mu(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Nu(r,s,!0),e.y=Nu(i,s,!0),e.width=Math.max(Nu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Nu(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Nu(e,t,n){if(!t)return e;var r=Au(e*2);return(r+Au(t))%2==0?r/2:(r+(n?1:-1))/2}var Pu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Fu={},Iu=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Pu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Mu(Fu,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?ku(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Su);Iu.prototype.type=`rect`;var Lu={fill:`#000`},Ru=2,zu={},Bu={style:I({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},dl.style)},Vu=function(e){zt(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Lu,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ed(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Qu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(wu),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Zu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Xu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Ru,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=xt(s.opacity,t.opacity,1),Ku(p,s),y&&(p.lineWidth=xt(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(sl(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Iu),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Ou),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=xt(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return qu(e)&&(t=[e.fontStyle,e.fontWeight,Gu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Tt(t)||e.textFont||e.font},t}(ml),Hu={left:!0,right:1,center:1},Uu={top:1,bottom:1,middle:1},Wu=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Gu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Ku(e,t){for(var n=0;n=0,a=!1;if(e instanceof Su){var o=id(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(md(s)||md(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=F({},r),l=F({},l),l.fill=s):!md(l.fill)&&md(s)?(a=!0,r=F({},r),l=F({},l),l.fill=zi(s)):!md(l.stroke)&&md(c)&&(a||(r=F({},r),l=F({},l)),l.stroke=zi(c)),r.style=l}}if(r&&r.z2==null){a||(r=F({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Dd(e,t,n){if(n&&n.z2==null){n=F({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Od(e,t,n){var r=tt(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Td(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=F({},n),o=F({opacity:r?i:a.opacity*.1},o),n.style=o),n}function kd(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ed(this,e,t,n);if(e===`blur`)return Od(this,e,n);if(e===`select`)return Dd(this,e,n)}return n}function Ad(e){e.stateProxy=kd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=kd),n&&(n.stateProxy=kd)}function jd(e,t){!zd(e,t)&&!e.__highByOuter&&Cd(e,gd)}function Md(e,t){!zd(e,t)&&!e.__highByOuter&&Cd(e,_d)}function Nd(e,t){e.__highByOuter|=1<<(t||0),Cd(e,gd)}function Pd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Cd(e,_d)}function Fd(e){Cd(e,vd)}function Id(e){Cd(e,yd)}function Ld(e){Cd(e,bd)}function Rd(e){Cd(e,xd)}function zd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Bd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=ad(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){yd(e)}),o&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Vd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Xd(e,t,n){rf(e,!0),Cd(e,Ad),$d(e,t,n)}function Zd(e){rf(e,!1)}function Qd(e,t,n,r){r?Zd(e):Xd(e,t,n)}function $d(e,t,n){var r=Z(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ef=[`emphasis`,`blur`,`select`],tf={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function nf(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=gf(m),s*=gf(m));var h=(i===a?-1:1)*gf((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+vf(d)*g-_f(d)*_,y=(t+r)/2+_f(d)*g+vf(d)*_,b=Sf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Sf(x,S);if(xf(x,S)<=-1&&(C=yf),xf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/yf*1e6)/1e6;C=yf*2+w%2*yf}u.addData(l,v,y,o,s,b,C,d,a)}var wf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Tf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ef(e){var t=new Zl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Zl.CMD,c=e.match(wf);if(!c)return t;for(var l=0;lA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Zf(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Qf(e,t){var n,r=Kf(t.r,0),i=Kf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Wf(c-s),p=f>zf&&f%zf;if(p>Jf&&(f=p),!(r>Jf))e.moveTo(l,u);else if(f>zf-Jf)e.moveTo(l+r*Vf(s),u+r*Bf(s)),e.arc(l,u,r,s,c,!d),i>Jf&&(e.moveTo(l+i*Vf(c),u+i*Bf(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Vf(s),j=r*Bf(s),ee=i*Vf(c),te=i*Bf(c),ne=f>Jf;if(ne){var re=t.cornerRadius;re&&(n=Zf(re),m=n[0],h=n[1],g=n[2],_=n[3]);var M=Wf(r-i)/2;if(v=qf(M,g),y=qf(M,_),b=qf(M,m),x=qf(M,h),w=S=Kf(v,y),T=C=Kf(b,x),(S>Jf||C>Jf)&&(E=r*Vf(c),D=r*Bf(c),O=i*Vf(s),k=i*Bf(s),fJf){var de=qf(g,w),fe=qf(_,w),pe=Xf(O,k,A,j,r,de,d),me=Xf(E,D,ee,te,r,fe,d);e.moveTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),w0&&e.arc(l+pe.cx,u+pe.cy,de,Uf(pe.y0,pe.x0),Uf(pe.y1,pe.x1),!d),e.arc(l,u,r,Uf(pe.cy+pe.y1,pe.cx+pe.x1),Uf(me.cy+me.y1,me.cx+me.x1),!d),fe>0&&e.arc(l+me.cx,u+me.cy,fe,Uf(me.y1,me.x1),Uf(me.y0,me.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Jf)||!ne)e.lineTo(l+ee,u+te);else if(T>Jf){var de=qf(m,T),fe=qf(h,T),pe=Xf(ee,te,E,D,i,-fe,d),me=Xf(A,j,O,k,i,-de,d);e.lineTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),T0&&e.arc(l+pe.cx,u+pe.cy,fe,Uf(pe.y0,pe.x0),Uf(pe.y1,pe.x1),!d),e.arc(l,u,i,Uf(pe.cy+pe.y1,pe.cx+pe.x1),Uf(me.cy+me.y1,me.cx+me.x1),d),de>0&&e.arc(l+me.cx,u+me.cy,de,Uf(me.y1,me.x1),Uf(me.y0,me.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var $f=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}(),ep=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new $f},t.prototype.buildPath=function(e,t){Qf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Su);ep.prototype.type=`sector`;var tp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),np=function(e){zt(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Su);np.prototype.type=`ring`;function rp(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=rp(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sEp[1]){if(i=!1,Dp.negativeSize||n)return i;var s=wp(Ep[0]-Tp[1]),c=wp(Tp[0]-Ep[1]);Sp(s,c)>kp.len()&&(s=c||!Dp.bidirectional)&&(q.scale(Op,o,-c*r),Dp.useDir&&Dp.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Ip(e,t,n,r,i,a){Fp(`update`,e,t,n,r,i,a)}function Lp(e,t,n,r,i,a){Fp(`enter`,e,t,n,r,i,a)}function Rp(e){if(!e.__zr)return!0;for(var t=0;t_p,BezierCurve:()=>hp,BoundingRect:()=>J,Circle:()=>Ff,CompoundPath:()=>vp,Ellipse:()=>Lf,Group:()=>Y,Image:()=>Ou,IncrementalDisplayable:()=>Mp,Line:()=>dp,LinearGradient:()=>bp,OrientedBoundingRect:()=>Ap,Path:()=>Su,Point:()=>q,Polygon:()=>op,Polyline:()=>cp,RadialGradient:()=>xp,Rect:()=>Iu,Ring:()=>np,Sector:()=>ep,Text:()=>Vu,WH:()=>qp,XY:()=>Kp,applyTransform:()=>cm,calcZ2Range:()=>jm,clipPointsByRect:()=>pm,clipRectByRect:()=>mm,createIcon:()=>hm,ensureCopyRect:()=>Om,ensureCopyTransform:()=>km,expandOrShrinkRect:()=>bm,extendPath:()=>Xp,extendShape:()=>Jp,getShapeClass:()=>Qp,getTransform:()=>sm,groupTransition:()=>fm,initProps:()=>Lp,isBoundingRectAxisAligned:()=>Em,isElementRemoved:()=>Rp,lineLineIntersect:()=>_m,linePolygonIntersect:()=>gm,makeImage:()=>em,makePath:()=>$p,mergePath:()=>nm,registerShape:()=>Zp,removeElement:()=>zp,removeElementWithFadeOut:()=>Vp,resizePath:()=>rm,retrieveZInfo:()=>Am,setTooltipConfig:()=>Cm,subPixelOptimize:()=>om,subPixelOptimizeLine:()=>im,subPixelOptimizeRect:()=>am,transformDirection:()=>lm,traverseElements:()=>Tm,traverseUpdateZ:()=>Mm,updateProps:()=>Ip}),Gp={},Kp=[`x`,`y`],qp=[`width`,`height`];function Jp(e){return Su.extend(e)}var Yp=jf;function Xp(e,t){return Yp(e,t)}function Zp(e,t){Gp[e]=t}function Qp(e){if(Gp.hasOwnProperty(e))return Gp[e]}function $p(e,t,n,r){var i=Af(e,t);return n&&(r===`center`&&(n=tm(n,i.getBoundingRect())),rm(i,n)),i}function em(e,t,n){var r=new Ou({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(tm(t,i))}}});return r}function tm(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var nm=Mf;function rm(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function im(e,t){return ju(e,e,{lineWidth:t}),e}function am(e,t){return Mu(e,e,t),e}var om=Nu;function sm(e,t){for(var n=Bn([]);e&&e!==t;)Hn(n,e.getLocalTransform(),n),e=e.parent;return n}function cm(e,t,n){return t&&!it(t)&&(t=uo.getLocalTransform(t)),n&&(t=Kn([],t)),nn([],e,t)}function lm(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:rs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:rs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=cm(a,t,n),rs(a[0])>rs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function um(e){return!e.isGroup}function dm(e){return e.shape!=null}function fm(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){um(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return dm(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(um(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Ip(e,r,n,Z(e).dataIndex)}}})}function pm(e,t){return R(e,function(e){var n=e[0];n=ns(n,t.x),n=ts(n,t.x+t.width);var r=e[1];return r=ns(r,t.y),r=ts(r,t.y+t.height),[n,r]})}function mm(e,t){var n=ns(e.x,t.x),r=ts(e.x+e.width,t.x+t.width),i=ns(e.y,t.y),a=ts(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function hm(e,t,n){var r=F({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),I(i,n),new Ou(r)):$p(e.replace(`path://`,``),r,n,`center`)}function gm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=vm(p,m,u,d)/f;return!(g<0||g>1)}function vm(e,t,n,r){return e*r-n*t}function ym(e){return e<=1e-6&&e>=-1e-6}function bm(e,t,n,r,i){return t==null?e:(ft(t)?xm[0]=xm[1]=xm[2]=xm[3]=t:(xm[0]=t[0],xm[1]=t[1],xm[2]=t[2],xm[3]=t[3]),r&&(xm[0]=ns(0,xm[0]),xm[1]=ns(0,xm[1]),xm[2]=ns(0,xm[2]),xm[3]=ns(0,xm[3])),n&&(xm[0]=-xm[0],xm[1]=-xm[1],xm[2]=-xm[2],xm[3]=-xm[3]),Sm(e,xm,`x`,`width`,3,1,i&&i[0]||0),Sm(e,xm,`y`,`height`,0,2,i&&i[1]||0),e)}var xm=[0,0,0,0];function Sm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ns(0,ts(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:rs(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Cm(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&L(ct(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:I({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function wm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Tm(e,t){if(e)if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function Mm(e,t,n){Nm(e,t,n,-1/0)}function Nm(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s=0&&n.push(e)}),n}}function ph(e,t){return $e($e({},e,!0),t,!0)}var mh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},hh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},gh=`ZH`,_h=`EN`,vh=_h,yh={},bh={},xh=Ae.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||vh).toUpperCase().indexOf(gh)>-1?gh:vh}():vh;function Sh(e,t){e=e.toUpperCase(),bh[e]=new ch(t),yh[e]=t}function Ch(e){if(H(e)){var t=yh[e.toUpperCase()]||{};return e===gh||e===_h?P(t):$e(P(t),P(yh[vh]),!1)}else return $e(P(e),P(yh[vh]),!1)}function wh(e){return bh[e]}function Th(){return bh[vh]}Sh(_h,mh),Sh(gh,hh);var Eh=null;function Dh(e){Eh||=e}function Oh(){return Eh}var kh=1e3,Ah=kh*60,jh=Ah*60,Mh=jh*24,Nh=Mh*365,Ph={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Fh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Ih=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,Lh=`{yyyy}-{MM}-{dd}`,Rh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Lh,hour:Lh+` `+Fh.hour,minute:Lh+` `+Fh.minute,second:Lh+` `+Fh.second,millisecond:Ih},zh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Bh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Vh(e){return!H(e)&&!V(e)?Hh(e):e}function Hh(e){e||={};var t={},n=!0;return L(zh,function(t){n&&=e[t]==null}),L(zh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=zh[s],l=U(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):H(l)?(o=l,u=[o]):(o==null?o=Fh[r]:Ph[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Uh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Wh(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 Gh(e){return e===Wh(e)}function Kh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function qh(e,t,n,r){var i=_s(e),a=i[Zh(n)](),o=i[Qh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[$h(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[eg(n)](),d=(u-1)%12+1,f=i[tg(n)](),p=i[ng(n)](),m=i[rg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof ch?r:wh(r||xh)||Th()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Uh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Uh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Uh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Uh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Uh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Uh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Uh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Uh(m,3)).replace(/{S}/g,m+``)}function Jh(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n)){var o={time:e.time,level:e.time.level},s=Oh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Yh(e.value,i);a=n[u][u][0]}}return qh(new Date(e.value),a,i,r)}function Yh(e,t){var n=_s(e),r=n[Qh(t)]()+1,i=n[$h(t)](),a=n[eg(t)](),o=n[tg(t)](),s=n[ng(t)](),c=n[rg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Xh(e,t,n){switch(t){case`year`:e[ag(n)](0);case`month`:e[og(n)](1);case`day`:e[sg(n)](0);case`hour`:e[cg(n)](0);case`minute`:e[lg(n)](0);case`second`:e[ug(n)](0)}return e}function Zh(e){return e?`getUTCFullYear`:`getFullYear`}function Qh(e){return e?`getUTCMonth`:`getMonth`}function $h(e){return e?`getUTCDate`:`getDate`}function eg(e){return e?`getUTCHours`:`getHours`}function tg(e){return e?`getUTCMinutes`:`getMinutes`}function ng(e){return e?`getUTCSeconds`:`getSeconds`}function rg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function ig(e){return e?`setUTCFullYear`:`setFullYear`}function ag(e){return e?`setUTCMonth`:`setMonth`}function og(e){return e?`setUTCDate`:`setDate`}function sg(e){return e?`setUTCHours`:`setHours`}function cg(e){return e?`setUTCMinutes`:`setMinutes`}function lg(e){return e?`setUTCSeconds`:`setSeconds`}function ug(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function dg(e){if(!ws(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function fg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var pg=Ct;function mg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Tt(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?_s(e):e;if(!isNaN(+c))return qh(c,r,n);if(s)return`-`}if(t===`ordinal`)return dt(e)?i(e):ft(e)&&a(e)?e+``:`-`;var l=Cs(e);return a(l)?dg(l):dt(e)?i(e):typeof e==`boolean`?e+``:`-`}var hg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],gg=function(e,t){return`{`+e+(t??``)+`}`};function _g(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function bg(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function xg(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Sg={},Cg={},wg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Sg,!0),this._normalMasterList=n(Cg,!1);function n(n,r){var i=[];return L(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){L(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Sg[e]=t;return}Cg[e]=t},e.get=function(e){return Cg[e]||Sg[e]},e}();function Tg(e){return!!Sg[e]}var Eg={coord:1,coord2:2};function Dg(e){Og.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Og=G();function kg(e){var t=e.getShallow(`coord`,!0),n=Eg.coord;if(t==null){var r=Og.get(e.type);r&&r.getCoord2&&(n=Eg.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Ag={none:0,dataCoordSys:1,boxCoordSys:2};function jg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=Ag.none;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=Ag.dataCoordSys,a||(i=Ag.none)):r===`box`&&(i=Ag.boxCoordSys,!a&&!Tg(n)&&(i=Ag.none))}return{coordSysType:n,kind:i}}function Mg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=jg(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==Ag.dataCoordSys&&(o=Ag.dataCoordSys,s=n),o===Ag.none||s!==n)return!1;var c=r(n,t);return c?(o===Ag.dataCoordSys?t.coordinateSystem=c:t.boxCoordinateSystem=c,!0):!1}var Ng=function(e,t){var n=t.getReferringComponents(e,lc).models[0];return n&&n.coordinateSystem},Pg=L,Fg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Ig=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Lg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Rg=Lg;ut(Lg,`vertical`),ut(Lg,`horizontal`);function zg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Bg(e,t){var n=Gg(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===Wg.point)a=n.refPoint,i=Hg(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=B(o)?o:[o,o];i=Hg(r,n.refContainer),a=n.boxCoordFrom===Eg.coord2?n.refPoint:[X(s[0],i.width)+i.x,X(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Vg(e,t){var n=Bg(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);B(a)||(a=[0,a]);var o=X(r.width,t.getWidth()),s=X(r.height,t.getHeight()),c=Math.min(o,s),l=X(a[0],c/2),u=X(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Hg(e,t,n){n=pg(n||0);var r=t.width,i=t.height,a=X(e.left,r),o=X(e.top,i),s=X(e.right,r),c=X(e.bottom,i),l=X(e.width,r),u=X(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function Ug(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i=u)return a;for(var d=0;d=0;o--)a=$e(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return dc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return zg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(ch);Dc($g,ch),Mc($g),dh($g),fh($g,e_);function e_(e){var t=[];return L($g.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Sc(e).main}),e!==`dataset`&&tt(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},t_=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var n_ in F(t_,{primary:t_.neutral80,secondary:t_.neutral70,tertiary:t_.neutral60,quaternary:t_.neutral50,disabled:t_.neutral20,border:t_.neutral30,borderTint:t_.neutral20,borderShade:t_.neutral40,background:t_.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:t_.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:t_.neutral70,axisLineTint:t_.neutral40,axisTick:t_.neutral70,axisTickMinor:t_.neutral60,axisLabel:t_.neutral70,axisSplitLine:t_.neutral15,axisMinorSplitLine:t_.neutral05}),t_)if(t_.hasOwnProperty(n_)){var r_=t_[n_];n_===`theme`?Q.darkColor.theme=t_.theme.slice():n_===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:n_.indexOf(`accent`)===0?Q.darkColor[n_]=Pi(r_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[n_]=Pi(r_,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var i_=``;typeof navigator<`u`&&(i_=navigator.platform||``);var a_=`rgba(0, 0, 0, 0.2)`,o_=Q.color.theme[0],s_=Pi(o_,null,null,.9),c_={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[s_,o_],aria:{decal:{decals:[{color:a_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:a_,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:a_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:a_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:a_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:a_,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i_.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},l_=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),u_=`original`,d_=`arrayRows`,f_=`objectRows`,p_=`keyedColumns`,m_=`typedArray`,h_=`unknown`,g_=`column`,__={Must:1,Might:2,Not:3},v_=ac();function y_(e){v_(e).datasetMap=G()}function b_(e,t,n){var r={},i=S_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=v_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});L(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function P_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:N_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function F_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var I_,L_,R_,z_=`\0_ec_inner`,B_=1,V_=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new ch(r),this._locale=new ch(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=K_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,K_(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?R_(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&L(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=G(),s=t&&t.replaceMergeMainTypeMap;y_(this),L(e,function(e,t){e!=null&&($g.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?P(e):$e(n[t],e,!0))}),s&&s.each(function(e,t){$g.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),$g.topologicalTravel(a,$g.getAllClassMainTypes(),c,this);function c(t){var a=O_(this,t,Ls(e[t])),o=r.get(t),c=Hs(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);tc(c,t,$g),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;L(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=$g.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=F({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),F(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&I_(this)}this._seriesIndices||I_(this)},t.prototype.getOption=function(){var e=P(this.option);return L(e,function(t,n){if($g.hasClass(n)){for(var r=Ls(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!$s(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[z_],e},t.prototype.setTheme=function(e){this._theme=new ch(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function ev(e,t){return e.join(`,`)===t.join(`,`)}var tv=L,nv=U,rv=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function iv(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=rv.length;n0?e[n-1].seriesModel:null)}),Ev(e))})}function Ev(e){L(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=ps(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Dv=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nl&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hv=(e={},e[d_+`_`+g_]={pure:!0,appendData:i},e[d_+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[f_]={pure:!0,appendData:i},e[p_]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[u_]={appendData:i},e[m_]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return ny(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ay(e){var t,n;return U(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function oy(e){return new sy(e)}var sy=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:at},gte:function(e,t){return e>=t}},py=function(){function e(e,t){ft(t)||Ns(``),this._opFn=fy[e],this._rvalFloat=Cs(t)}return e.prototype.evaluate=function(e){return ft(e)?this._opFn(e,this._rvalFloat):this._opFn(Cs(e),this._rvalFloat)},e}(),my=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ft(e)?e:Cs(e),r=ft(t)?t:Cs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}(),hy=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Cs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Cs(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function gy(e,t){return e===`eq`||e===`ne`?new hy(e===`eq`,t):K(fy,e)?new py(e,t):null}var _y=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return ly(e,t)},e}();function vy(e,t){var n=new _y,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Ns(``);var o=[],s={},c=e.dimensionsDefine;if(c)L(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&Ns(``),s[n]=r)});else for(var l=0;l65535?ky:Ay}function Iy(){return[1/0,-1/0]}function Ly(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ry(e,t,n,r,i){var a=Ny[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=R(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Fy(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();is&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return ly(e[r],this._dimensions[r])}Py={arrayRows:e,objectRows:function(e,t,n,r){return ly(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return ly(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),By=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Hy(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=mt(o)?m_:u_,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kv(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kv(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Uy(``);var i,a=[],o=[];return L(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Uy(``),a.push(t),o.push(e._getVersionSign())}),n?i=Ty(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jv(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=Qy(e);n>=t&&(t=n+ +(r&&(!n||Xy(e)&&!e.noHeader)))}),t}return 0}function $y(e,t,n,r){var i=t.noHeader,a=nb(Qy(t)),o=[],s=t.blocks||[];wt(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new my(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=Zy(n)(s?F(F({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):rb(r,o.join(``),i?n:a.html);if(i)return d;var f=mg(t.header,`ordinal`,e.useUTC),p=Ky(r,e.renderMode).nameStyle,m=Gy(r);return e.renderMode===`richText`?ob(e,f,p)+a.richText+d:rb(r,`
`+Sn(f)+`
`+d,n)}function eb(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],R(e,function(e,t){return mg(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:mg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=Ky(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ob(e,f,v))+(o?``:sb(e,m,h,g,y)):rb(r,(s?``:d)+(a?``:ib(f,!s,v))+(o?``:ab(m,h,g,y)),n)}}function tb(e,t,n,r,i,a){if(e)return Zy(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function nb(e){return{html:qy[e],richText:Jy[e]}}function rb(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=Gy(e);return`
`+t+r+`
`}function ib(e,t,n){var r=t?`margin-left:2px`:``;return``+Sn(e)+``}function ab(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+R(e,function(e){return Sn(e)}).join(`  `)+``}function ob(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function sb(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function cb(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return bg(n)}function lb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ub=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ts()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=yg({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?L(t,function(e){return F(n,e)}):F(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function db(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=cb(t,n),u,d,f,p;if(o>1||c&&!o){var m=fb(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=ny(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Qs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Yy(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Yy(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Tt(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function fb(e,t,n,r,i){var a=t.getData(),o=at(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?L(r,function(e){u(ny(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Yy(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var pb=ac();function mb(e,t){return e.getName(t)||e.getId(t)}var hb=`__universalTransitionEnabled`,gb=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=oy({count:yb,reset:bb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(pb(this).sourceManager=new By(this)).prepareSource();var r=this.getInitialData(e,n);Sb(r,this),this.dataTask.context.data=r,pb(this).dataBeforeProcessed=r,_b(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{},i=this.subType;$g.hasClass(i)&&(i+=`Series`),$e(e,t.getTheme().get(this.subType)),$e(e,this.getDefaultOption()),Rs(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Yg(e,r,n)},t.prototype.mergeOption=function(e,t){e=$e(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jg(this);n&&Yg(this.option,e,n);var r=pb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Sb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,pb(this).dataBeforeProcessed=i,_b(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!mt(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return db({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ae.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=j_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[mb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return $g.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}($g);rt(gb,iy),rt(gb,j_),Dc(gb,$g);function _b(e){var t=e.name;Qs(e)||(e.name=vb(e)||t)}function vb(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function yb(e){return e.model.getRawData().count()}function bb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),xb}function xb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Sb(e,t){L(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ut(Cb,t))})}function Cb(e,t){var n=wb(e);return n&&n.setOutputEnd((t||this).count()),t}function wb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Tb=function(){function e(){this.group=new Y,this.uid=uh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Tc(Tb),Mc(Tb);function Eb(){var e=ac();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Db=ac(),Ob=Eb(),kb=function(){function e(){this.group=new Y,this.uid=uh(`viewChart`),this.renderTask=oy({plan:Mb,reset:Nb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&jb(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&jb(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Tm(this.group,e)},e.markUpdateMethod=function(e,t){Db(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Ab(e,t,n){e&&af(e)&&(t===`emphasis`?Nd:Pd)(e,n)}function jb(e,t,n){var r=ic(e,t),i=t&&t.highlightKey!=null?sf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Ab(e,n,i)}):L(Ls(r),function(t){Ab(e.getItemGraphicEl(t),n,i)})}Tc(kb,[`dispose`]),Mc(kb);function Mb(e){return Ob(e.model)}function Nb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Db(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Pb[c]}var Pb={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)}}},Fb=`\0__throttleOriginMethod`,Ib=`\0__throttleRate`,Lb=`\0__throttleType`;function Rb(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function zb(e,t,n,r){var i=e[t];if(i){var a=i[Fb]||i,o=i[Lb];if(i[Ib]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Rb(a,n,r===`debounce`),i[Fb]=a,i[Lb]=r,i[Ib]=n}return i}}function Bb(e,t){var n=e[t];n&&n[Fb]&&(n.clear&&n.clear(),e[t]=n[Fb])}var Vb=ac(),Hb={itemStyle:Nc(ah,!0),lineStyle:Nc(nh,!0)},Ub={lineStyle:`stroke`,itemStyle:`fill`};function Wb(e,t){return e.visualStyleMapper||Hb[t]||(console.warn(`Unknown style type '`+t+`'.`),Hb.itemStyle)}function Gb(e,t){return e.visualDrawType||Ub[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Wb(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Gb(e,r),c=a[s],l=V(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=F({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},qb=new ch,Jb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Wb(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){qb.option=n[r];var o=i(qb);F(e.ensureUniqueItemVisual(t,`style`),o),qb.option.decal&&(e.setItemVisual(t,`decal`,qb.option.decal),qb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Yb={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),Vb(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=Vb(t).scope,o=Gb(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},Xb=Math.PI;function Zb(e,t){t||={},I(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Y,r=new Iu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Vu({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 Iu({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new _p({shape:{startAngle:-Xb/2,endAngle:-Xb/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:Xb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Xb*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Qb=function(){function e(e,t,n,r){this._stageTaskMap=G(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=G();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;L(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});wt(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;L(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=G(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||oy({plan:rx,reset:ix,count:sx}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||oy({reset:$b});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;wt(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,L(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,oy({reset:ex,onDirty:nx})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return V(e)&&(e={overallReset:e,seriesType:cx(e)}),e.uid=uh(`stageHandler`),t&&(e.visualType=t),e},e}();function $b(e){e.overallReset(e.ecModel,e.api,e.payload)}function ex(e){return e.overallProgress&&tx}function tx(){this.agent.dirty(),this.getDownstream().dirty()}function nx(){this.agent&&this.agent.dirty()}function rx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ix(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ls(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return ox(t)}):ax}var ax=ox(0);function ox(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],yx=vx.concat([`symbolKeepAspect`]),bx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&Hx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Gx(e,t,n){for(var r=t.type===`radial`?Wx(e,t,n):Ux(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ft(e)?[e]:B(e)?e:null}function Xx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Yx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var Zx=new Zl(!0);function Qx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function $x(e){return typeof e==`string`&&e!==`none`}function eS(e){var t=e.fill;return t!=null&&t!==`none`}function tS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function nS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function rS(e,t,n){var r=Rc(t.image,t.__image,n);if(Bc(r)){var i=e.createPattern(r,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)*Lt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function iS(e,t,n,r){var i,a=Qx(n),o=eS(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||Zx,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?Gx(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?Gx(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?rS(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?rS(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=Xx(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&nS(e,n),o&&tS(e,n)):(o&&tS(e,n),a&&nS(e,n))),w&&e.setLineDash([])}function aS(e,t,n){var r=t.__image=Rc(n.image,t.__image,t,t.onload);if(!(!r||!Bc(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function oS(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=Xx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Qx(n)&&e.strokeText(i,n.x,n.y),eS(n)&&e.fillText(i,n.x,n.y)):(eS(n)&&e.fillText(i,n.x,n.y),Qx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var sS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],cS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function lS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){bS(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ul.opacity:o}(r||t.blend!==n.blend)&&(a||=(bS(e,i),!0),e.globalCompositeOperation=t.blend||ul.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[aC]){if(this._disposed){this.id;return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[aC]=!0,LC(this),!this._model||t){var o=new X_(this._api),s=this._theme,c=this._model=new V_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},GC);var l={seriesTransition:a,optionChanged:!0};if(n)this[sC]={silent:r,updateParams:l},this[aC]=!1,this.getZr().wakeUp();else{try{yC(this),SC.update.call(this,null,l)}catch(e){throw this[sC]=null,this[aC]=!1,e}this._ssr||this._zr.flush(),this[sC]=null,this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[aC]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[sC]&&(r??=this[sC].silent,i=this[sC].updateParams,this[sC]=null),this[aC]=!0,LC(this);try{this._updateTheme(e),n.setTheme(this._theme),yC(this),SC.update.call(this,{type:`setTheme`},i)}catch(e){throw this[aC]=!1,e}this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype._updateTheme=function(e){H(e)&&(e=qC[e]),e&&(e=P(e),e&&wv(e,!0),this._theme=e)},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||Ae.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(XC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(YC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=Re.createCanvas(),h=qo(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Iu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new Ou({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return CC(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return CC(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return CC(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return L(sc(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=sc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Cx(i,t):Sx(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;L(BC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&kx(i,function(e){var t=Z(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=F({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;L(UC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Ox(t,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,this.getDom()&&fc(this.getDom(),QC,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete YC[e.id]},t.prototype.resize=function(e){if(!this[aC]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[sC]&&(r??=this[sC].silent,n=!0,this[sC]=null),this[aC]=!0,LC(this);try{n&&yC(this),SC.update.call(this,{type:`resize`,animation:F({duration:0},e&&e.animation)})}catch(e){throw this[aC]=!1,e}this[aC]=!1,EC.call(this,r),DC.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),JC[e]){var n=JC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=F({},e);return t.type=HC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(U(t)||(t={silent:!!t}),VC[e.type]&&this._model){if(this[aC]){this._pendingActions.push(e);return}var n=t.silent;TC.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ae.browser.weChat&&this._throttledZrFlush(),EC.call(this,n),DC.call(this,n)}},t.prototype.updateLabelLayout=function(){FS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){yC=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),bC(e,!0),bC(e,!1),t.plan()},bC=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;ct.get(`hoverLayerThreshold`)&&!Ae.node&&!Ae.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Am(e);t.eachRendered(function(e){return Mm(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Rp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Rp(e))return;if(e instanceof Su&&uf(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}NC=function(e){return new(function(t){N(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Nd(t,n),FC(e)},n.prototype.leaveEmphasis=function(t,n){Pd(t,n),FC(e)},n.prototype.enterBlur=function(t){Fd(t),FC(e)},n.prototype.leaveBlur=function(t){Id(t),FC(e)},n.prototype.enterSelect=function(t){Ld(t),FC(e)},n.prototype.leaveSelect=function(t){Rd(t),FC(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getMainProcessVersion=function(){return e[oC]},n}(J_))(e)},PC=function(e){function t(e,t){for(var n=0;n=0)){dw.push(n);var a=Qb.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pw(e,t){JC[e]=t}function mw(e,t,n){var r=RS(`registerMap`);r&&r(e,t,n)}var hw=wy;uw(XS,Kb),uw($S,Jb),uw($S,Yb),uw(XS,bx),uw($S,xx),uw(rC,PS),nw(wv),rw(WS,Tv),pw(`default`,Zb),sw({type:cd,event:cd,update:cd},It),sw({type:ld,event:ld,update:ld},It),sw({type:ud,event:pd,update:ud,action:It,refineEvent:gw,publishNonRefinedEvent:!0}),sw({type:dd,event:pd,update:dd,action:It,refineEvent:gw,publishNonRefinedEvent:!0}),sw({type:fd,event:pd,update:fd,action:It,refineEvent:gw,publishNonRefinedEvent:!0});function gw(e,t,n,r){return{eventContent:{selected:Yd(n),isFromClick:t.isFromClick||!1}}}tw(`default`,{}),tw(`dark`,gx);var _w=[],vw={registerPreprocessor:nw,registerProcessor:rw,registerPostInit:iw,registerPostUpdate:aw,registerUpdateLifecycle:ow,registerAction:sw,registerCoordinateSystem:cw,registerLayout:lw,registerVisual:uw,registerTransform:hw,registerLoading:pw,registerMap:mw,registerImpl:LS,PRIORITY:iC,ComponentModel:$g,ComponentView:Tb,SeriesModel:gb,ChartView:kb,registerComponentModel:function(e){$g.registerClass(e)},registerComponentView:function(e){Tb.registerClass(e)},registerSeriesModel:function(e){gb.registerClass(e)},registerChartView:function(e){kb.registerClass(e)},registerCustomSeries:function(e,t){BS(e,t)},registerSubTypeDefaulter:function(e,t){$g.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Jo(e,t)}};function yw(e){if(B(e)){L(e,function(e){yw(e)});return}tt(_w,e)>=0||(_w.push(e),V(e)&&(e={install:e}),e.install(vw))}function bw(e){return e==null?0:e.length||1}function xw(e){return e}var Sw=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||xw,this._newKeyGetter=r||xw,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;o30}var Iw=U,Lw=R,Rw=typeof Int32Array>`u`?Array:Int32Array,zw=`e\0\0`,Bw=-1,Vw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Hw=[`_approximateExtent`],Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Mw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():Iw(i)&&(i=F({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Iw(t)?F(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Iw(e)?F(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){td(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Lw(this.dimensions,this._getDimInfo,this),this.hostModel),qw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(St(arguments)))})},e.internalField=function(){Uw=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Rw(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Zw(e,t){Ov(e)||(e=Av(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=$w(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Fw(o),c=r===e.dimensionsDefine,l=c?Pw(e):Nw(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new jy(o),p=0;p0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function $w(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function eT(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var tT=function(){function e(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return e}();function nT(e){var t=e.get(`coordinateSystem`),n=new tT(t),r=rT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,lc).models[0],a=e.getReferringComponents(`yAxis`,lc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),iT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),iT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,lc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),iT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,lc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),iT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),iT(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),iT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,lc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function iT(e){return e.get(`type`)===`category`}function aT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;oT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(L(a,function(e,t){H(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;L(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function oT(e){return!Mw(e.schema)}function sT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function cT(e,t){return sT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function lT(e,t){var n=e.get(`coordinateSystem`),r=wg.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Ew(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function uT(e,t,n){var r,i;return n&&L(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function dT(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Av(e)):(i=r.getSource(),a=i.sourceFormat===u_);var o=nT(t),s=lT(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?ut(b_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Zw(i,u),f=uT(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=aT(t,{schema:d,store:p}),h=new Xw(d,t);h.setCalculationInfo(m);var g=f!=null&&fT(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function fT(e){if(e.sourceFormat===`original`)return!B(Bs(pT(e.data||[])))}function pT(e){for(var t=0;ti&&(o=a.interval=i);var s=a.intervalPrecision=_T(o);return yT(a.niceTickExtent=[ss(Math.ceil(e[0]/o)*o,s),ss(Math.floor(e[1]/o)*o,s)],e),a}function gT(e){var t=10**ys(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,ss(n*t)}function _T(e){return ls(e)+2}function vT(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yT(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vT(e,0,t),vT(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bT(e,t){return e>=t[0]&&e<=t[1]}var xT=function(){function e(){this.normalize=ST,this.scale=CT}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=z(e.normalize,e),this.scale=z(e.scale,e)):(this.normalize=ST,this.scale=CT)},e}();function ST(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function CT(e,t){return e*(t[1]-t[0])+t[0]}function wT(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var TT=function(){function e(e){this._calculator=new xT,this._setting=e||{},this._extent=[1/0,-1/0];var t=Oh();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=Oh();t&&this._innerSetBreak(t.parseAxisBreakOption(e,z(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Mc(TT);var ET=0,DT=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ET,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,OT);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=G(this.categories)},e}();function OT(e){return U(e)&&e.value!=null?e.value:e+``}var kT=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new DT({}),B(r)&&(r=new DT({categories:R(r,function(e){return U(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return bT(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(TT);TT.registerClass(kT);var AT=ss,jT=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return bT(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=_T(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Oh(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]=0&&(l=AT(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:AT(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;ir[0]&&d0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function VT(e){var t=BT(e),n=[];return L(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=X(e.get(`barWidth`),a),f=X(e.get(`barMaxWidth`),a),p=X(e.get(`barMinWidth`)||(qT(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:LT(r),stackId:IT(e)})}),HT(n)}function HT(e){var t={};L(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return L(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=ct(r).length;a=Math.max(35-o*4,15)+`%`}var s=X(a,i),c=X(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),L(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&tr&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;L(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;L(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function UT(e,t,n){if(e&&t){var r=e[LT(t)];return r!=null&&n!=null?r[IT(n)]:r}}function WT(e,t){var n=zT(e,t),r=VT(n);L(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=IT(e),a=r[LT(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function GT(e){return{seriesType:e,plan:Eb(),reset:function(e){if(KT(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=sT(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=JT(r,i),p=qT(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&PT(r*3),c=p&&s&&PT(r*3),l=p&&PT(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var ee=n.dataToPoint([E,w]);T=ee[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)0?n:1:n))}var YT=function(e,t,n,r){for(;n>>1;e[i][1]n&&(this._approxInterval=n);var i=ZT.length,a=Math.min(YT(ZT,this._approxInterval,0,i),i-1);this._interval=ZT[a][1],this._intervalPrecision=_T(this._interval),this._minLevelUnit=ZT[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ft(e)?e:+_s(e)},t.prototype.contain=function(e){return bT(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(jT),ZT=[[`second`,kh],[`minute`,Ah],[`hour`,jh],[`quarter-day`,jh*6],[`half-day`,jh*12],[`day`,Mh*1.2],[`half-week`,Mh*3.5],[`week`,Mh*7],[`month`,Mh*31],[`quarter`,Mh*95],[`half-year`,Nh/2],[`year`,Nh]];function QT(e,t,n,r){return Xh(new Date(t),e,r).getTime()===Xh(new Date(n),e,r).getTime()}function $T(e,t){return e/=Mh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function eE(e){var t=30*Mh;return e/=t,e>6?6:e>3?3:e>2?2:1}function tE(e){return e/=jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function nE(e,t){return e/=t?Ah:kh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rE(e){return bs(e,!0)}function iE(e,t,n){var r=Math.max(0,tt(zh,t)-1);return Xh(new Date(e),zh[r],n).getTime()}function aE(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function oE(e,t,n,r,i,a){var o=1e4,s=Bh,c=0;function l(e,t,n,i,s,l,u){for(var d=aE(s,e),f=t,p=new Date(f);fo));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!QT(Wh(e),r[0],r[1],n)){s&&(i=[{value:iE(r[0],e,n)},{value:r[1]}]);for(var c=0;c=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=ot(R(d,function(e){return ot(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h0;)r*=10;var i=[sE(lE(t[0]/r)*r),sE(cE(t[1]/r)*r)];this._interval=r,this._intervalPrecision=_T(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=dE(t)/dE(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=dE(t)/dE(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),uE(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Oh();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,z(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(jT);function pE(e,t){return sE(e,ls(t))}TT.registerClass(fE);var mE=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[gE[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=hE[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),hE={min:`_determinedMin`,max:`_determinedMax`},gE={min:`_dataMin`,max:`_dataMax`};function _E(e,t,n){var r=e.rawExtentInfo;return r||(r=new mE(e,t,n),e.rawExtentInfo=r,r)}function vE(e,t){return t==null?null:yt(t)?NaN:e.parse(t)}function yE(e,t){var n=e.type,r=_E(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=zT(`bar`,o),c=!1;if(L(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=VT(s),u=bE(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function bE(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=UT(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;L(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;L(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function xE(e,t){var n=t,r=yE(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof fE&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(ME(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function SE(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new kT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new XT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((TT.getClass(t))||jT)}}function CE(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function wE(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Vh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(H(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(V(t)){if(e.type===`category`)return function(n,r){return t(TE(e,n),n.value-e.scale.getExtent()[0],null)};var r=Oh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(TE(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function TE(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function EE(e){return e.get(`interval`)??`auto`}function DE(e){return e.type===`category`&&EE(e.getLabelModel())===0}function OE(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[cT(e,t)]=!0}),ct(n)}function kE(e,t,n){t&&L(OE(t,n),function(n){var r=t.getApproximateExtent(n);r[0]e[1]&&(e[1]=r[1])})}function AE(e){return e===`middle`||e===`center`}function jE(e){return e.getShallow(`show`)}function ME(e){var t=e.get(`breaks`,!0);if(t!=null)return!Oh()||!NE(e.axis)?void 0:t}function NE(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var PE=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),FE=1e-8;function IE(e,t){return Math.abs(e-t)n&&(t=i,n=o)}if(t)return VE(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return L(i,function(t){t.type===`polygon`?BE(t.exterior,n,r,e):L(t.points,function(t){BE(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function XE(e,t){return e=qE(e),R(ot(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new UE(a[0],a.slice(1)));break;case`MultiPolygon`:L(r.coordinates,function(e){e[0]&&i.push(new UE(e[0],e.slice(1)))});break;case`LineString`:i.push(new WE([r.coordinates]));break;case`MultiLineString`:i.push(new WE(r.coordinates))}var o=new GE(n[t||`name`],i,n.cp);return o.properties=n,o})}var ZE=ac(),QE=ac(),$E={estimate:1,determine:2};function eD(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function tD(e,t){var n=R(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function nD(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=wE(e),i=e.scale.getExtent();return{labels:R(ot(tD(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?iD(e,t):sD(e)}function rD(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:ot(tD(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?oD(e,t):{ticks:R(e.scale.getTicks(n),function(e){return e.value})}}function iD(e,t){var n=e.getLabelModel(),r=aD(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function aD(e,t,n){var r=lD(e),i=EE(t),a=n.kind===$E.estimate;if(!a){var o=dD(r,i);if(o)return o}var s,c;V(i)?s=yD(e,i):(c=i===`auto`?pD(e,n):i,s=vD(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return fD(r,i,l),!0}):fD(r,i,l),l}function oD(e,t){var n=cD(e),r=EE(t),i=dD(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=yD(e,r,!0);else if(r===`auto`){var s=aD(e,e.getLabelModel(),eD($E.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tickValue})}else o=r,a=vD(e,o,!0);return fD(n,r,{ticks:a,tickCategoryInterval:o})}function sD(e){var t=e.scale.getTicks(),n=wE(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var cD=uD(`axisTick`),lD=uD(`axisLabel`);function uD(e){return function(t){return QE(t)[e]||(QE(t)[e]={list:[]})}}function dD(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=So(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===$E.estimate?(t.out.noPxChangeTryDetermine.push(z(hD,null,e,S,c)),S):gD(e,S,c)??S}function hD(e,t,n){return gD(e,t,n)==null}function gD(e,t,n){var r=ZE(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function _D(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 vD(e,t,n){var r=wE(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=DE(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function yD(e,t,n){var r=e.scale,i=wE(e),a=[];return L(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var bD=[0,1],xD=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return ds(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),SD(n,r.count())),is(e,bD,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),SD(n,r.count()));var i=is(e,n,bD,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=rD(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=R(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return CD(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=eD($E.determine),nD(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+ +!!this.onBand;n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=eD($E.determine),mD(this,e)},e}();function SD(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function CD(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;L(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=ss(e),t=ss(t),d?e>t:ei&&(i+=wD);var p=Math.atan2(s,o);if(p<0&&(p+=wD),p>=r&&p<=i||p+wD>=r&&p+wD<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v0){t=t/180*Math.PI,PD.fromArray(e[0]),FD.fromArray(e[1]),ID.fromArray(e[2]),q.sub(LD,PD,FD),q.sub(RD,ID,FD);var n=LD.len(),r=RD.len();if(!(n<.001||r<.001)){LD.scale(1/n),RD.scale(1/r);var i=LD.dot(RD);if(Math.cos(t)1&&q.copy(VD,ID),VD.toArray(e[1])}}}}function UD(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,PD.fromArray(e[0]),FD.fromArray(e[1]),ID.fromArray(e[2]),q.sub(LD,FD,PD),q.sub(RD,ID,FD);var r=LD.len(),i=RD.len();if(!(r<.001||i<.001)&&(LD.scale(1/r),RD.scale(1/i),LD.dot(t)=o)q.copy(VD,ID);else{VD.scaleAndAdd(RD,a/Math.tan(Math.PI/2-s));var c=ID.x===FD.x?(VD.y-FD.y)/(ID.y-FD.y):(VD.x-FD.x)/(ID.x-FD.x);if(isNaN(c))return;c<0?q.copy(VD,FD):c>1&&q.copy(VD,ID)}VD.toArray(e[1])}}}function WD(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function GD(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Qt(r[0],r[1]),a=Qt(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=tn([],r[1],r[0],o/i),c=tn([],r[1],r[2],o/a),l=tn([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i0)for(var c=0;c0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function cO(e){for(var t=0;t=0&&n.attr(i.oldLayoutSelect),tt(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Ip(n,c,t,s)}else if(n.attr(c),!Jm(n).valueAnimation){var d=W(n.style.opacity,1);n.style.opacity=0,Lp(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};_O(f,c,vO),_O(f,n.states.select,vO)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};_O(p,c,vO),_O(p,n.states.emphasis,vO)}Xm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=gO(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Ip(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Lp(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),bO=ac();function xO(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=bO(t).labelManager;r||=bO(t).labelManager=new yO,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=bO(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var SO=Math.sin,CO=Math.cos,wO=Math.PI,TO=Math.PI*2,EO=180/wO,DO=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Ui(u-TO)||(l?c>=TO:-c>=TO),f=c>0?c%TO:c%TO+TO,p=!1;p=d?!0:Ui(u)?!1:f>=wO==!!l;var m=e+n*CO(a),h=t+r*SO(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*EO);if(d){var _=1/this._p,v=(l?1:-1)*(TO-_);this._add(`A`,n,r,g,1,+l,e+n*CO(a+v),t+r*SO(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*CO(o),b=t+r*SO(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function UO(e){return``}function WO(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return HO(i,a)+(i===`style`?o||``:Sn(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+UO(i)}return r(e)}function GO(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=R(ct(e),function(t){return t+i+R(ct(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(ct(t),function(e){return`@keyframes `+e+i+R(ct(t[e]),function(n){return n+i+R(ct(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function KO(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qO(e,t,n,r){return VO(`svg`,`root`,{width:e,height:t,xmlns:FO,"xmlns:xlink":IO,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var JO=0;function YO(){return JO++}var XO={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`},ZO=`transform-origin`;function QO(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new DO;return i.reset(ia(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function $O(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[ZO]=n+`px `+r+`px`)}var ek={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function tk(e,t){var n=t.zrId+`-ani-`+ t.cssAnimIdx++;return t.cssAnims[n]=e,n}function nk(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=KO(n.zrId);t.animation=!0,ik(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ct(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=tk(i,n);return a.replace(o,s)}}function rk(e){return H(e)?XO[e]?`cubic-bezier(`+XO[e]+`)`:ui(e)?e:``:``}function ik(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof vp){var s=nk(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return tk(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+YO();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function ak(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};ok(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=zi(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),ok(r,t,n,!0)}}function ok(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+YO(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var sk=Math.round;function ck(e){return e&&H(e.src)}function lk(e){return e&&V(e.toDataURL)}function uk(e,t,n,r){PO(function(i,a){var o=i===`fill`||i===`stroke`;o&&na(a)?Tk(t,e,i,r):o&&$i(a)?Ek(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),wk(n,e,r)}function dk(e,t){var n=Xo(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[zO+`silent`]=`true`))}function fk(e){return Ui(e[0]-1)&&Ui(e[1])&&Ui(e[2])&&Ui(e[3]-1)}function pk(e){return Ui(e[4])&&Ui(e[5])}function mk(e,t,n){if(t&&!(pk(t)&&fk(t))){var r=n?10:1e4;e.transform=fk(t)?`translate(`+sk(t[4]*r)/r+` `+sk(t[5]*r)/r+`)`:Ki(t)}}function hk(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;wt(f,g),wt(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=Rc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=VO(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=aa(i);x&&(o.patternTransform=x);var S=VO(`pattern`,``,o,[d]),C=WO(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+ r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=VO(`pattern`,T,o,[d])),t[n]=ra(T)}}function Dk(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+ n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=VO(`clipPath`,a,o,[bk(e,n)])}t[`clip-path`]=ra(a)}function Ok(e){return document.createTextNode(e)}function kk(e,t,n){e.insertBefore(t,n)}function Ak(e,t){e.removeChild(t)}function jk(e,t){e.appendChild(t)}function Mk(e){return e.parentNode}function Nk(e){return e.nextSibling}function Pk(e,t){e.textContent=t}var Fk=58,Ik=120,Lk=VO(``,``);function Rk(e){return e===void 0}function zk(e){return e!==void 0}function Bk(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function Vk(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function Hk(e){var t,n=e.children,r=e.tag;if(zk(r)){var i=e.elm=BO(r);if(Gk(Lk,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,Uk(e,m,n,i,c)):Wk(e,t,r,a))}function qk(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Gk(e,t),Rk(t.text)?zk(r)&&zk(i)?r!==i&&Kk(n,r,i):zk(i)?(zk(e.text)&&Pk(n,``),Uk(n,null,i,0,i.length-1)):zk(r)?Wk(n,r,0,r.length-1):zk(e.text)&&Pk(n,``):e.text!==t.text&&(zk(r)&&Wk(n,r,0,r.length-1),Pk(n,t.text)))}function Jk(e,t){if(Vk(e,t))qk(e,t);else{var n=e.elm,r=Mk(n);Hk(t),r!==null&&(kk(r,t.elm,Nk(n)),Wk(r,[e],0,0))}return t}var Yk=0,Xk=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=Zk(`refreshHover`),this.configLayer=Zk(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+ Yk++,this._oldVNode=qO(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=BO(`svg`);Gk(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Jk(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Ck(e,KO(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=KO(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=Qk(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=VO(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(ct(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(VO(`defs`,`defs`,{},c)),e.animation){var l=GO(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=VO(`style`,`stl`,{},[],l);a.push(u)}}return qO(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},WO(this.renderToVNode({animation:W(e.cssAnimation,!0),emphasis:W(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:W(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}for(var l=this.__startIndex;l15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x0&&e>r[0]){for(s=0;se);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?iA:0),this._needsManuallyCompositing),l.__builtin__||Qe(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?$e(n[e],t,!0):n[e]=t;for(var r=0;r-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(gb);function dA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=ny(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var pA=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=zx(e,-1,-1,2,2,null,a);o.attr({z2:W(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=mA,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Nd(this.childAt(0))},t.prototype.downplay=function(){Pd(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Ip(f,p,o,n),Hp(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Lp(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Rm(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Vx(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Ou){var S=a.style;a.useStyle(F({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(F({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Lm(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):dA(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Qd(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Z(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&zp(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();zp(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Bx(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Y);function mA(e,t){this.parent.drift(e,t)}function hA(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function gA(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function _A(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Rm(t),cursorStyle:t.get(`cursor`)}}var vA=function(){function e(e){this.group=new Y,this._SymbolCtor=e||pA}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=gA(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=_A(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(hA(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!hA(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Ip(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_A(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=gA(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function xA(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function SA(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function CA(e,t,n,r,i,a,o,s){for(var c=SA(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=yA(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y=i||h<0)break;if(EA(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||EA(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){ne=Math.abs(A),re=Math.abs(j);var M=E>0?1:-1;p=_-M*ne*o,m=v,O=_+M*re*o,k=v}else if(s===`y`){ne=Math.abs(ee),re=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*ne*o,O=_,k=v+ie*re*o}else ne=Math.sqrt(A*A+ee*ee),re=Math.sqrt(j*j+te*te),T=re/(re+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=wA(O,TA(S,_)),k=wA(k,TA(C,v)),O=TA(O,wA(S,_)),k=TA(k,wA(C,v)),E=O-_,D=k-v,p=_-E*ne/re,m=v-D*ne/re,p=wA(p,TA(l,_)),m=wA(m,TA(u,v)),p=TA(p,wA(l,_)),m=TA(m,wA(u,v)),E=_-p,D=v-m,O=_+E*re/ne,k=v+D*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var OA=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),kA=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OA},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&EA(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Zr(i,u,f,m,e,s):Zr(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?Yr(a,d,p,h,b):Yr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Su),AA=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(OA),jA=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new AA},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&EA(n[a*2-2],n[a*2-1]);a--);for(;it){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function UA(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=R(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=HA(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;L(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new bp(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function WA(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&GA(a,t))){var o=t.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function GA(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function KA(e,t){return isNaN(e)||isNaN(t)}function qA(e){for(var t=e.length/2;t>0&&KA(e[t*2-2],e[t*2-1]);t--);return t-1}function JA(e,t){return[e[t*2],e[t*2+1]]}function YA(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function XA(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Z(f).seriesIndex=e.seriesIndex,Qd(f,k,A,j);var te=zA(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var re=a.getCalculationInfo(`stackedOnSeries`),M=0;p.useStyle(I(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),re&&(M=zA(re.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:M,smoothMonotone:ne,connectNulls:x}),nf(p,e,`areaStyle`),Z(p).seriesIndex=e.seriesIndex,Qd(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Z(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=ic(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new pA(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else kb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=ic(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else kb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;wd(this._polyline,e),t&&wd(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new jA({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);V(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=V(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=V(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(XA(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Vu({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=qA(o);c>=0&&(Lm(a,Rm(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?dA(i,e):fA(i,n)},enableTextSetter:!0},QA(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=YA(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=JA(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=gc(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=JA(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Jm(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=CA(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=VA(u.stackedOnCurrent,u.current,n,i,o),d=VA(u.current,null,n,i,o),m=VA(u.stackedOnNext,u.next,n,i,o),p=VA(u.next,null,n,i,o)),RA(d,p)>3e3||c&&RA(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Ip(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Ip(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;H(i)?p=tj[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,nj))}}}}}function ij(e){e.registerChartView($A),e.registerSeriesModel(uA),e.registerLayout(ej(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rj(`line`))}var aj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;fs){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}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`,defaultBarGap:`10%`},t}(gb);gb.registerClass(aj);var oj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return dT(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=ph(aj.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(aj),sj=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}(),cj=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new sj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Vp(t,e,Z(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(kb),vj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=mj(t.x,e.x),s=hj(t.x+t.width,i),c=mj(t.y,e.y),l=hj(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=hj(t.r,e.r),a=mj(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},yj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Iu({shape:F({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?cj:ep,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=lj(Oj(i),{isRoundCap:l===cj}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Ip:Lp)(u,{shape:p},a)}return u}};function bj(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function xj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Ip:Lp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Ip:Lp)(n,{shape:l},u,i)}function Sj(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Dj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Oj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function kj(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;F(u,pj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=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=Rm(r);Lm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:dA(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,uj(e,h===`outside`?f:h,Oj(o),r.get([`label`,`rotate`]))}Ym(m,p,a.getRawValue(n),function(e){return fA(t,e)});var g=r.getModel([`emphasis`]);Qd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),nf(e,r),Dj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Aj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=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(r,i,a)}var jj=function(){function e(){}return e}(),Mj=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new jj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function Fj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function Ij(e,t,n){if(FA(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.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 Lj(e,t,n){return new(e.type===`polar`?ep:Iu)({shape:Ij(t,n,e),silent:!0,z2:0})}function Rj(e){e.registerChartView(_j),e.registerSeriesModel(oj),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ut(WT,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,GT(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rj(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var zj=Math.PI*2,Bj=Math.PI/180;function Vj(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=Vg(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*Bj,d=e.get(`endAngle`),f=e.get(`padAngle`)*Bj;d=d===`auto`?u-zj:-d*Bj;var p=e.get(`minAngle`)*Bj+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Xl(S,!_),u=S[0],d=S[1];var w=Hj(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,rr?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?is(e,b,[c,s]):s}),O=i}),En?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}Jj(a,r)}}}function Jj(e,t){Xj.rect=e,tO(Xj,t,Yj)}var Yj={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Xj={};function Zj(e){return e.position===`center`}function Qj(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*Wj,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=X(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=X(T,l);var E=w.get(`length2`);if(E=X(E,l),Math.abs(d.endAngle-d.startAngle)0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(ft(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),ne){h.setStyle({align:te});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var pe=new J(0,0,0,0);Jj(pe,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new q(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:ne})}}),!a&&e.get(`avoidLabelOverlap`)&&Kj(n,r,i,c,l,f,u,d);for(var h=0;h0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l=n.r0}},t.type=`pie`,t}(kb);function tM(e,t,n){t=B(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Zw(r,t).dimensions,a=new Xw(i,e);return a.initData(r,n),a}var nM=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),rM=ac(),iM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return tM(this,{coordDimensions:[`value`],encodeDefaulter:ut(x_,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=rM(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=fs(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Rs(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(gb);Dg({fullType:iM.type,getCoord2:function(e){return e.getShallow(`center`)}});function aM(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ft(r)&&!isNaN(r)&&r<0)})}}}function oM(e){e.registerChartView(eM),e.registerSeriesModel(iM),Ex(`pie`,e.registerAction),e.registerLayout(ut(Vj,`pie`)),e.registerProcessor(Uj(`pie`)),e.registerProcessor(aM(`pie`))}var sM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Q.color.primary}},universalTransition:{divideShape:`clone`}},t}(gb),cM=4,lM=function(){function e(){}return e}(),uM=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new lM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),fM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=ej(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new dM:new vA,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(kb),pM={left:0,right:0,top:0,bottom:0},mM=[`25%`,`25%`],hM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Xg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Yg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Yg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:pM,outerBoundsContain:`all`,outerBoundsClampWidth:mM[0],outerBoundsClampHeight:mM[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}($g),gM=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,lc).models[0]},t.type=`cartesian2dAxis`,t}($g);rt(gM,PE);var _M={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:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},vM=$e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},_M),yM=$e({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},_M),bM={category:vM,value:yM,time:$e({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},yM),log:I({logBase:10},yM)},xM={value:1,category:1,time:1,log:1},SM=null;function CM(e){SM||=e}function wM(){return SM}function TM(e,t,n,r){L(xM,function(i,a){var o=$e($e({},bM[a],!0),r,!0),s=function(e){N(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{};$e(e,t.getTheme().get(a+`Axis`)),$e(e,this.getDefaultOption()),e.type=EM(e),n&&Yg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=DT.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=wM();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,EM)}function EM(e){return e.type||(e.data?`category`:`value`)}var DM=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ot(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),OM=[`x`,`y`];function kM(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var AM=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=OM,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!kM(e)||!kM(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Kn([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return nn(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return nn(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(DM),jM=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(xD),MM=`expandAxisBreak`,NM=`collapseAxisBreak`,PM=`toggleAxisBreak`,FM=`axisbreakchanged`,IM={type:MM,event:FM,update:`update`,refineEvent:zM},LM={type:NM,event:FM,update:`update`,refineEvent:zM},RM={type:PM,event:FM,update:`update`,refineEvent:zM};function zM(e,t,n,r){var i=[];return L(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function BM(e){e.registerAction(IM,t),e.registerAction(LM,t),e.registerAction(RM,t);function t(e,t){var n=[],r=sc(t,e);function i(t,i){L(r[t],function(t){L(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(I((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var VM=Math.PI,HM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],WM=ac(),GM=ac(),KM=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function qM(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=_N(e.axisName)&&AE(e.nameLocation);L(r,function(e){var t=eO(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Kn(JM,n.transform):Bn(JM),t.transform&&Hn(JM,JM,t.transform),J.copy(YM,t.localRect),YM.applyTransform(JM),s?s.union(YM):J.copy(s=new J(0,0,0,0),YM))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var JM=zn(),YM=new J(0,0,0,0),XM=function(e,t,n,r,i,a){if(AE(e.nameLocation)){var o=a.stOccupiedRect;o&&ZM(rO({},o,a.transGroup.transform),r,i)}else QM(a.labelInfoList,a.dirVec,r,i)};function ZM(e,t,n){var r=new q;uO(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&iO(t,r)}function QM(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):hs(r-VM)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),eN=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],tN={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(nn(u,u,l),nn(d,d,l));var p=F({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())wM().buildAxisBreakLine(r,i,a,m);else{var h=new dp(F({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));im(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);H(g)&&(g=[g,g]),(H(_)||ft(_))&&(_=[_,_]);var v=Vx(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];L([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=zx(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){uN(t,i,s)&&nN(e,t,n,r,i,a,o,$E.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){uN(t,i,s)&&nN(e,t,n,r,i,a,o,$E.determine);var c=cN(e,i,a,r);aN(e,t.labelLayoutList,c),lN(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(_N(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new q(0,0),_=new q(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=zn();_.transform(Wn(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*VM/180);var b,x;AE(u)?b=$M.innerTextLayout(e.rotation,y??e.rotation,d):(b=rN(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=bt(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Vu({x:g.x,y:g.y,rotation:b.rotation,silent:$M.isLabelSilent(r),style:zm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Cm({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=$M.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=eO({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:AE(u)?HM[E]:UM[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function nN(e,t,n,r,i,a,o,s){fN(t)||dN(e,t,i,s,r,o);var c=t.labelLayoutList;mN(e,r,c,a),yN(r,e.rotation,c);var l=e.optionHideOverlap;iN(r,c,l),l&&lO(ot(c,function(e){return e&&!e.label.ignore})),qM(e,n,r,c)}function rN(e,t,n,r){var i=ms(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return hs(i-VM/2)?(o=c?`bottom`:`top`,a=`center`):hs(i-VM*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iVM/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function iN(e,t,n){if(DE(e.axis))return;function r(e,r,i){var a=eO(t[r]),o=eO(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){oN(a.label);return}if(o.suggestIgnore){oN(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=aO({marginForce:c},a),o=aO({marginForce:c},o)}uO(a,o,null,{touchThreshold:s})&&oN(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function aN(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;tl[0]&&isFinite(m)&&isFinite(l[0]);)p=gT(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=gT(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=ss(h-g),m<0&&l[0]>=0?(m=0,h=ss(g)):h>0&&l[1]<=0&&(h=0,m=-ss(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p)}var EN=[[3,1],[0,2]],DN=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=OM,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=ct(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;mT(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(xE(c,s),mT(c)&&(t=o))}i.length&&(t||(t=i.pop(),xE(t.scale,t.model)),L(i,function(e){TN(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};L(n.x,function(e){kN(n,`y`,e,i)}),L(n.y,function(e){kN(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Gg(e,t),i=this._rect=Hg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(MN(a,i),!n){var c=LN(i,o,a,s,t),l=void 0;if(s)PN?(PN(this._axesList,i),MN(a,i)):l=IN(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=zN(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=IN(d,f,p,i,a,c,r))}RN(i,a,$E.determine,null,l,r)}L(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r0})==null;return bm(r,s,!0,!0,n),MN(i,r),c;function l(e){L(i[Kp[e]],function(t){if(jE(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!yt(t)&&t>1e-4&&(e/=t),e}}function LN(e,t,n,r,i){var a=new KM(BN);return L(n,function(n){return L(n,function(n){if(jE(n.model)){var o=!r;n.axisBuilder=CN(e,t,n.model,i,a,o)}})}),a}function RN(e,t,n,r,i,a){var o=n===$E.determine;L(t,function(t){return L(t,function(t){jE(t.model)&&(wN(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Kp[1-t]]=e[qp[t]]<=a.refContainer[qp[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){jE(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function zN(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Hg(e.get(`outerBounds`,!0)||pM,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||tt([`all`,`axisLabel`],a)<0?`all`:a,s=[os(W(e.get(`outerBoundsClampWidth`,!0),mM[0]),t.width),os(W(e.get(`outerBoundsClampHeight`,!0),mM[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var BN=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;XM(e,t,n,r,i,a),AE(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&QM(e.labelInfoList,e.dirVec,r,i)})};function VN(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HN(n,e,t),n.seriesInvolved&&WN(n,e),n}function HN(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=ZN(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),ut(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&L(f.baseAxes,ut(p,d?`cross`:!0,u)),d&&L(f.otherAxes,ut(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!XN(d))){s??=d.get(`triggerTooltip`),d=r?UN(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=ZN(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:XN(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=GN(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function UN(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&I(l,u.textStyle)}return e.model.getModel(`axisPointer`,new ch(c,n,r))}function WN(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||L(e.coordSysAxesInfo[ZN(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function GN(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function qN(e){var t=JN(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=XN(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o0;return o&&s}var fP=ac();function pP(e,t,n,r){if(e instanceof jM){var i=e.scale.type;if(i!==`category`&&i!==`ordinal`)return n}var a=e.model,o=a.get(`jitter`),s=a.get(`jitterOverlap`),c=a.get(`jitterMargin`)||0,l=e.scale.type===`ordinal`?e.getBandWidth():null;return o>0?s?mP(n,o,l,r):hP(e,t,n,r,o,c):n}function mP(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function hP(e,t,n,r,i,a){var o=fP(e);o.items||=[];var s=o.items,c=gP(s,t,n,r,i,a,1),l=gP(s,t,n,r,i,a,-1),u=Math.abs(c-n)i/2||d&&f>d/2-r?mP(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function gP(e,t,n,r,i,a,o){for(var s=n,c=0;ci/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=I({color:d.color},o));var p=$e(P(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(H(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else V(c)&&(p.name=c(p.name,p));var h=new ch(p,null,this.ecModel);return rt(h,PE.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:$e({lineStyle:{color:Q.color.neutral20}},EP.axisLine),axisLabel:DP(EP.axisLabel,!1),axisTick:DP(EP.axisTick,!1),splitLine:DP(EP.splitLine,!0),splitArea:DP(EP.splitArea,!0),indicator:[]},t}($g),kP=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;L(R(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new $M(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=B(u)?u:[u],p=B(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new Ff({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new np({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=R(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),R(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(LP(this._zr,`globalPan`)||VP(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(Nn(r.event),r.__ecRoamConsumed=!0,JP(e,t,n,r,i))},t}(cn);function VP(e){return e.__ecRoamConsumed}var HP=ac();function UP(e){var t=HP(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function WP(e,t,n,r){for(var i=UP(e).roam,a=i[t]=i[t]||[],o=0;o=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=OF(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new Y,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Iu({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=iF[o];if(l&&K(iF,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=uF[o];if(f&&K(uF,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new wu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pF(t,n),hF(e,n,this._defsUsePending,!1,!1),gF(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){iF={g:function(e,t){var n=new Y;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Iu;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new Ff;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new dp;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new Lf;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=mF(n));var i=new op({shape:{points:r||[]},silent:!0});return pF(t,i),hF(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=mF(n));var i=new cp({shape:{points:r||[]},silent:!0});return pF(t,i),hF(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Ou;return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new Y;return pF(t,o),hF(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new Y;return pF(t,o),hF(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Af(e.getAttribute(`d`)||``);return pF(t,n),hF(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),uF={lineargradient:function(e){var t=new bp(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return dF(e,t),fF(e,t),t},radialgradient:function(e){var t=new xp(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return dF(e,t),fF(e,t),t}};function dF(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function fF(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};EF(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Oi(o);c&&c[3]&&(c[3]*=bi(s),o=Ii(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function pF(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},I(t.__inheritedStyle,e.__inheritedStyle))}function mF(e){for(var t=xF(e),n=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],c=xF(o);switch(i||=zn(),s){case`translate`:Un(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Gn(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Wn(i,i,-parseFloat(c[0])*CF,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*CF);Hn(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*CF);Hn(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var TF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function EF(e,t,n){var r=e.getAttribute(`style`);if(r){TF.lastIndex=0;for(var i;(i=TF.exec(r))!=null;){var a=i[1],o=K(aF,a)?aF[a]:null;o&&(t[o]=i[2]);var s=K(sF,a)?sF[a]:null;s&&(n[s]=i[2])}}}function DF(e,t,n){for(var r=0;r0,_={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(_):s.resourceType===`geoSVG`&&this._buildSVG(_),this._updateController(e,h,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=G(),n=G(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;Lm(t,Rm(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(eI(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function oI(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Z(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function sI(e,t,n,r,i){e.data||Cm({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function cI(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return Qd(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&of(t,i,n),o}function lI(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),L(e,function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Q.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Q.color.border,areaColor:Q.color.background},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{areaColor:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},nameProperty:`name`},t}(gb);function fI(e,t){var n={};return L(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u1?(y.width=v,y.height=v/h):(y.height=v,y.width=v*h),y.y=_[1]-y.height/2,y.x=_[0]-y.width/2;else{var b=e.getBoxLayoutParams();b.aspect=h,y=Hg(b,m),y=Ug(e,y,h)}this.setViewRect(y.x,y.y,y.width,y.height),this.setCenter(e.get(`center`)),this.setZoom(e.get(`zoom`))}function CI(e,t){L(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var wI=new(function(){function e(){this.dimensions=yI}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new bI(o+a,o,F({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));s.zoomLimit=i.get(`scaleLimit`),n.push(s),i.coordinateSystem=s,s.model=i,s.resize=SI,s.resize(i,t)}),e.eachSeries(function(e){Mg({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,lc).models[0];return t&&t.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),L(i,function(i,a){var o=new bI(a,a,F({nameMap:et(R(i,function(e){return e.get(`nameMap`)})),api:t,ecModel:e},r(i[0])));o.zoomLimit=bt.apply(null,R(i,function(e){return e.get(`scaleLimit`)})),n.push(o),o.resize=SI,o.resize(i[0],t),L(i,function(e){e.coordinateSystem=o,CI(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=G(),o=0;o=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function jI(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){FI(e);var a=(n[0].hierNode.prelim+n[n.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=II(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function MI(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function NI(e){return arguments.length?e:VI}function PI(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function FI(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function II(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=LI(s),a=RI(a),s&&a;){i=LI(i),o=RI(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(BI(zI(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!LI(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!RI(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function LI(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function RI(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function zI(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function BI(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function VI(e,t){return e.parentNode===t.parentNode?1:2}var HI=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),UI=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new HI},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=X(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;fv.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Nt(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(Z(n).focus=k),qI(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||wd(n.__edge,t)}})}function qI(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new hp({shape:ZI(u,d,f,i,i)}),Ip(h,{shape:ZI(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;vt&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(H(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function fL(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function pL(e,t){return tt(fL(e),t)>=0}function mL(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var hL=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new ch(e.leaves||{},this,this.ecModel),r=lL.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return Yy(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=mL(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Q.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(gb);function gL(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)n.push(i[a])}}function vL(e,t){e.eachSeriesByType(`tree`,function(e){yL(e,t)})}function yL(e,t){var n=Gg(e,t).refContainer,r=Hg(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=NI(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=NI());var c=e.getData().tree.root,l=c.children[0];if(l){AI(c),gL(l,jI,s),c.hierNode.modifier=-l.hierNode.prelim,_L(l,MI);var u=l,d=l,f=l;_L(l,function(e){var t=e.getLayout().x;td.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),_L(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=PI(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),_L(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),_L(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function bL(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();F(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function xL(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=t.coordinateSystem,r=eF(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}function SL(e){e.registerChartView(WI),e.registerSeriesModel(hL),e.registerLayout(vL),e.registerVisual(bL),xL(e)}var CL=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function wL(e){for(var t=0;t1;)r=r.parentNode;var i=M_(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var EL=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};DL(n);var r=e.levels||[],i=new ch({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=OL(r,t);var a=R(r||[],function(e){return new ch(e,i,t)},this),o=lL.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Yy(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=mL(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=G(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){TL(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(gb);function DL(e){var t=0;L(e.children,function(e){DL(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}function OL(e,t){var n=Ls(t.get(`color`)),r=Ls(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;L(e,function(e){var t=new ch(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var kL=8,AL=8,jL=5,ML=function(){function e(e){this.group=new Y,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=Gg(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=Hg(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Kg(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Zs(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+kL*2,t.emptyItemWidth);t.totalWidth+=o+AL,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new op({shape:{points:NL(c,0,_,u,m===f.length-1,m===0)},style:I(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Vu({style:zm(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ut(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=zm(o,{text:v}),y.ensureState(`emphasis`).style=p,Qd(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),PL(y,e,g),c+=_+AL}},e.prototype.remove=function(){this.group.removeAll()},e}();function NL(e,t,n,r,i,a){var o=[[i?e:e-jL,t],[e+n,t],[e+n,t+r],[i?e:e-jL,t+r]];return!a&&o.splice(2,0,[e+n+jL,t+r/2]),!i&&o.push([e,t+r/2]),o}function PL(e,t,n){Z(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&mL(n,t)}}var FL=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;rzL||Math.abs(e.dy)>zL)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=zn();Un(m,m,[-t,-n]),Gn(m,m,[f,f]),Un(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&xg(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new ML(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(pL(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=YL(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(kb);function YL(){return{nodeGroup:[],background:[],content:[]}}function XL(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=ce(`nodeGroup`,LL);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),qL(D).nodeWidth=p,qL(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=ce(`background`,RL,l,UL);O&&M(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),ee=k.get(`disabled`),te=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)af(D)&&rf(D,!1),O&&(rf(O,!ee),d.setItemGraphicEl(o.dataIndex,O),$d(O,te,j));else{var ne=ce(`content`,RL,l,WL);ne&&ie(D,ne),O.disableMorphing=!0,O&&af(O)&&rf(O,!1),rf(D,!ee),d.setItemGraphicEl(o.dataIndex,D);var re=f.getShallow(`cursor`);re&&ne.attr(`cursor`,re),$d(D,te,j)}return D;function M(t,n,r){var i=Z(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)ae(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=KL(S);c.fill=s;var l=GL(C);l.fill=C.get(`borderColor`);var u=GL(w);u.fill=w.get(`borderColor`);var d=GL(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;oe(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Ad(n)}t.add(n)}function ie(t,n){var r=Z(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)ae(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=KL(S);l.fill=c,l.decal=s.decal;var u=GL(C),d=GL(w),f=GL(T);oe(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Ad(n)}t.add(n)}function ae(e){!e.invisible&&a.push(e)}function oe(t,n,r,i){var a=f.getModel(i?VL:BL),s=Zs(f.get(`name`),null),c=a.getShallow(`show`);Lm(t,Rm(f,i?VL:BL),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Ct(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,se(d,i,u);var m=l.getState(`emphasis`);se(m?m.style:null,i,u)}}function se(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function ce(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,le(c,s)):g||(s=new r,s instanceof ml&&(s.z2=ZL(a,o)),ue(c,s)),t[e][_]=s}function le(e,t){var n=e[_]={};t instanceof LL?(n.oldX=t.x,n.oldY=t.y):n.oldShape=F({},t.shape)}function ue(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Y;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function ZL(e,t){return e*HL+t}var QL=L,$L=U,eR=-1,tR=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=P(t);this.type=r,this.mappingMethod=n,this._normalizeData=pR[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(iR(i),nR(i)):n===`category`?i.categories?rR(i):iR(i,!0):(wt(n!==`linear`||i.dataExtent),iR(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return z(this._normalizeData,this)},e.listVisualTypes=function(){return ct(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){U(e)?L(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=B(t)?[]:U(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&QL(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if($L(e)){var t=[];QL(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function iR(e,t){var n=e.visual,r=[];U(n)?QL(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),fR(e,r)}function aR(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:uR([0,1])}}function oR(e){var t=this.option.visual;return t[Math.round(is(e,[0,1],[0,t.length-1],!0))]||{}}function sR(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function cR(e){var t=this.option.visual;return t[this.option.loop&&e!==eR?e%t.length:e]}function lR(){return this.option.visual[0]}function uR(e){return{linear:function(t){return is(t,e,this.option.visual,!0)},category:cR,piecewise:function(t,n){var r=dR.call(this,n);return r??=is(t,e,this.option.visual,!0),r},fixed:lR}}function dR(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[tR.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function fR(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=R(t,function(e){return Oi(e)||[0,0,0,1]})),t}var pR={linear:function(e){return is(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=tR.findPieceIndex(e,t,!0);if(n!=null)return is(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??eR},fixed:It};function mR(e,t,n){return e?t<=n:t=n.length||e===n[e.depth])&&vR(e,TR(i,c,e,t,m,r),n,r)})}}}function yR(e,t,n){var r=F({},t),i=n.designatedVisualItemStyle;return L([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function bR(e){var t=SR(e,`color`);if(t){var n=SR(e,`colorAlpha`),r=SR(e,`colorSaturation`);return r&&(t=Pi(t,null,null,r)),n&&(t=Fi(t,n)),t}}function xR(e,t){return t==null?null:Pi(t,null,null,e)}function SR(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function CR(e,t,n,r,i,a){if(!(!a||!a.length)){var o=wR(t,`color`)||i.color!=null&&i.color!==`none`&&(wR(t,`colorAlpha`)||wR(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&sl[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new tR(d);return gR(f).drColorMappingBy=u,f}}}function wR(e,t){var n=e.get(t);return B(n)&&n.length?{name:t,range:n}:null}function TR(e,t,n,r,i,a){var o=F({},t);if(i){var s=i.type,c=s===`color`&&gR(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var ER=Math.max,DR=Math.min,OR=bt,kR=L,AR=[`itemStyle`,`borderWidth`],jR=[`itemStyle`,`gapWidth`],MR=[`upperLabel`,`show`],NR=[`upperLabel`,`height`],PR={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=Gg(e,n).refContainer,o=Hg(e.getBoxLayoutParams(),a),s=i.size||[],c=X(OR(o.width,s[0]),a.width),l=X(OR(o.height,s[1]),a.height),u=r&&r.type,d=dL(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=fL(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?HR(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),FR(p,_,!1,0),v=p.getLayout(),kR(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(F({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(UR(o,f,d),!0),e.setLayoutInfo(o),WR(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function FR(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(AR),l=s.get(jR)/2,u=GR(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=ER(i-2*f,0),a=ER(a-f-p,0);var m=i*a,h=IR(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=DR(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*ts[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function BR(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;ar&&(r=o));var c=e.area*e.area,l=t*t*n;return c?ER(l*r/c,c/(l*i)):1/0}function VR(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d9007199254740991&&(l=9007199254740991),a=s}l`,QR=function(e){return e.get(`autoCurveness`)||null},$R=function(e,t){var n=QR(e),r=20,i=[];if(ft(n))r=n;else if(B(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(Y),Iz=function(){function e(e){this.group=new Y,this._LineCtor=e||Fz}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=Rz(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rz(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!Lz(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r0}function Rz(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:Rm(t)}}function zz(e){return isNaN(e[0])||isNaN(e[1])}function Bz(e){return e&&!zz(e[0])&&!zz(e[1])}var Vz=[],Hz=[],Uz=[],Wz=ni,Gz=en,Kz=Math.abs;function qz(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){Vz[0]=Wz(r[0],i[0],a[0],u),Vz[1]=Wz(r[1],i[1],a[1],u);var d=Kz(Gz(Vz,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function Jz(e,t){var n=[],r=oi,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Ht(c[0]),Ht(c[1])],c[2]&&c.__original.push(Ht(c[2])));var d=c.__original;if(c[2]!=null){if(Vt(i[0],d[0]),Vt(i[1],d[2]),Vt(i[2],d[1]),l&&l!==`none`){var f=fz(e.node1),p=qz(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=fz(e.node2),p=qz(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Vt(c[0],i[0]),Vt(c[1],i[2]),Vt(c[2],i[1])}else{if(Vt(a[0],d[0]),Vt(a[1],d[1]),Kt(o,a[1],a[0]),Xt(o,o),l&&l!==`none`){var f=fz(e.node1);Gt(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=fz(e.node2);Gt(a[1],a[1],o,-f*t)}Vt(c[0],a[0]),Vt(c[1],a[1])}})}var Yz=ac();function Xz(e){if(e)return Yz(e).bridge}function Zz(e,t){e&&(Yz(e).bridge=t)}function Qz(e){return e.type===`view`}var $z=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){var n=new vA,r=new Iz,i=this.group,a=new Y;this._controller=new BP(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=!1;this._model=e,this._api=n,this._active=!0;var o=this._getThumbnailInfo();o&&o.bridge.reset(n);var s=this._symbolDraw,c=this._lineDraw;if(Qz(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(l):Ip(this._mainGroup,l,e)}Jz(e.getGraph(),dz(e));var u=e.getData();s.updateData(u);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),hz(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),lz(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(Z(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(Z(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){_z(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,t,n){var r=this._controller,i=this._controllerHost,a=t.coordinateSystem;if(!Qz(a)){r.disable();return}r.enable(t.get(`roam`),{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get(`roamTrigger`),isInSelf:function(e,t,n){return a.containPoint([t,n])},isInClip:function(t,n,r){return!e||e.contain(n,r)}}}),i.zoomLimit=t.get(`scaleLimit`),i.zoom=a.getZoom(),r.off(`pan`).off(`zoom`).on(`pan`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,zoom:e.scale,originX:e.originX,originY:e.originY})})},t.prototype.updateViewOnPan=function(e,t,n){this._active&&(XP(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,t,n){this._active&&(ZP(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Jz(e.getGraph(),dz(e)),this._lineDraw.updateLayout(),t.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=dz(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Jz(e.getGraph(),dz(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=Xz(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new Y,o=n.group.children(),s=r.group.children(),c=new Y,l=new Y;a.add(l),a.add(c);for(var u=0;u=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof nB||(t=this._nodesMap[eB(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),rB=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=G(),t=G();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function iB(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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)}}}rt(nB,iB(`hostGraph`,`data`)),rt(rB,iB(`hostGraph`,`edgeData`));function aB(e,t,n,r,i){for(var a=new tB(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=dT(e,n);else{var h=wg.get(p),g=h&&h.dimensions||[];tt(g,`value`)<0&&g.concat([`value`]);var _=Zw(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new Xw(_,n),m.initData(e)}var v=new Xw([`value`],n);return v.initData(c,s),i&&i(m,v),$I({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var oB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new nM(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Rs(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){az(this);var a=aB(r,n,this,!0,o);return L(a.edges,function(e){oz(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=ch.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),Yy(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return db({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=R(this.option.categories||[],function(e){return e.value==null?F({value:0},e):e}),t=new Xw([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},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:Q.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function sB(e){e.registerChartView($z),e.registerSeriesModel(oB),e.registerProcessor(qR),e.registerVisual(JR),e.registerVisual(XR),e.registerLayout(uz),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vz),e.registerLayout(xz),e.registerCoordinateSystem(`graphView`,{dimensions:gI.dimensions,create:Cz}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},It),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},It),e.registerAction({type:`graphRoam`,event:`graphRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=n.getViewOfSeriesModel(t);r&&(e.dx!=null&&e.dy!=null&&r.updateViewOnPan(t,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&r.updateViewOnZoom(t,n,e));var i=t.coordinateSystem,a=eF(i,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}var cB=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;Z(i).dataType=`node`,i.z2=2;var a=new Vu;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=F(pj(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):Ip(d,{shape:u},o,t);var f=F(pj(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),nf(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),nf(d,s,`itemStyle`);var p=c.get(`focus`);Qd(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=Rm(t),u=n.getVisual(`style`);Lm(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,xt(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(ep);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var lB=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return Z(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=F(pj(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),uB(m,o,e,u)):(Hp(m),uB(m,o,e,u),Ip(m,{shape:p},a,n)),Qd(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),nf(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(Su);function uB(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(H(s)&&H(c)){var l=e.shape;o.fill=new bp((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var dB=Math.PI/180,fB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*dB;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new cB(r,e,o);Z(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&Vp(s,e,n);return}s?s.updateData(r,t,o):s=new cB(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Vp(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=X(s[0],n.getWidth()),this.group.originY=X(s[1],n.getHeight()),Lp(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new lB(n,r,e,t);Z(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Vp(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=`chord`,t}(kb),pB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return aB(r,n,this,!0,i).data;function i(e,t){var n=ch.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),Yy(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return Yy(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.chord`,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(gb),mB=Math.PI/180;function hB(e,t){e.eachSeriesByType(`chord`,function(e){gB(e,t)})}function gB(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=Vg(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*mB,0),d=Math.max((e.get(`minAngle`)||0)*mB,0),f=-e.get(`startAngle`)*mB,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];Xl(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*wd&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,ee=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),ee[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=ee[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=ee[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),ee[r]=a,ee[d]=p})}}}function _B(e){e.registerChartView(fB),e.registerSeriesModel(pB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hB),e.registerProcessor(Uj(`chord`))}var vB=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),yB=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new vB},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(Su);function bB(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:X(n[0],t.getWidth()),cy:X(n[1],t.getHeight()),r:X(e.get(`radius`),a/2)}}function xB(e,t){var n=e==null?``:e+``;return t&&(H(t)?n=t.replace(`{value}`,n):V(t)&&(n=t(e))),n}var SB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=bB(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?cj:ep,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];Xl(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v=e&&(t===0?0:r[t-1][0])Math.PI/2&&(ae+=Math.PI)):ie===`tangential`?ae=-S-Math.PI/2:ft(ie)&&(ae=ie*Math.PI/180),ae===0?l.add(new Vu({style:zm(_,{text:te,x:re,y:M,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:ne}),silent:!0})):l.add(new Vu({style:zm(_,{text:te,x:re,y:M,verticalAlign:`middle`,align:`center`},{inheritColor:ne}),silent:!0,originX:re,originY:M,rotation:ae}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var oe=0;oe<=y;oe++){O=Math.cos(S),k=Math.sin(S);var se=new dp({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&se.setStyle({stroke:r((A+oe/y)/v)}),l.add(se),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=X(r.get(`width`),i.r),o=X(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=X(c[0],i.r),u=X(c[1],i.r),d=r.get(`keepAspect`),f=s?zx(s,l-a/2,u-o,a,o,null,d):new yB({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?cj:ep,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=is(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);Lp(r,{rotation:-((isNaN(+n)?x[0]:is(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);Lp(i,{shape:{endAngle:is(n,b,x,m.get(`clip`))}},e),l.add(i),td(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,Ip(s,{rotation:-((isNaN(+r)?x[0]:is(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);Ip(v,{shape:{endAngle:is(r,b,x,m.get(`clip`))}},e),l.add(v),td(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof Ou){var u=s.style;s.useStyle(F({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(is(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,nf(s,t),Qd(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,nf(d,t),Qd(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=zx(i,t.cx-r/2+X(a[0],t.r),t.cy-r/2+X(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new Y,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new Vu({silent:!0}),f[e]=new Vu({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new Y,g=r(is(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+X(v[0],i.r),b=i.cy+X(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:zm(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+X(C[0],i.r),T=i.cy+X(C[1],i.r),E=X(S.get(`width`),i.r),D=X(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:zm(S,{x:w,y:T,text:xB(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),Ym(x,{normal:S},a,function(e){return xB(e,k)}),p&&Xm(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return xB(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(kb),CB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return tM(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,Q.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Q.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Q.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:Q.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Q.color.neutral00,borderWidth:0,borderColor:Q.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:Q.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Q.color.transparent,borderWidth:0,borderColor:Q.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:Q.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(gb);function wB(e){e.registerChartView(SB),e.registerSeriesModel(CB)}var TB=[`itemStyle`,`opacity`],EB=function(e){N(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new cp,o=new Vu;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(TB);c??=1,n||Hp(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,Lp(r,{style:{opacity:c}},i,t)):Ip(r,{style:{opacity:c},shape:{points:o.points}},i,t),nf(r,a),this._updateLabel(e,t),Qd(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;Lm(i,Rm(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new q(d[0][0],d[0][1]):null},Ip(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),KD(n,qD(o),{stroke:l})},t}(op),DB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new EB(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){Vp(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(kb),OB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nM(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return tM(this,{coordDimensions:[`value`],encodeDefaulter:ut(x_,this)})},t.prototype._defaultLabelLine=function(e){Rs(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Q.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function kB(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();oYB)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!QB(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function QB(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var $B=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&$e(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){L([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];L(ot(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.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}($g),eV=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(xD);function tV(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=rV(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=rV(s,[0,o]),i=a=rV(s,[i,a]),r=0}t[0]=rV(t[0],n),t[1]=rV(t[1],n);var c=nV(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=rV(t[r],u);var d=nV(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=t[r]+d.sign*a),t}function nV(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function rV(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var iV=L,aV=Math.min,oV=Math.max,sV=Math.floor,cV=Math.ceil,lV=ss,uV=Math.PI,dV=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=G(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;iV(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new eV(e,SE(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();iV(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),xE(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){var n=Gg(e,t).refContainer;this._rect=Hg(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=fV(e.get(`axisExpandWidth`),s),u=fV(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=fV(f[1]-f[0],s),f[1]=f[0]+p):(p=fV(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||sV(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[sV(lV(f[0]/l,1))+1,cV(lV(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),iV(n,function(t,n){var a=(r.axisExpandable?mV:pV)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:uV/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=zn();Wn(u,u,l),Un(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];L(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;li*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?tV(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[oV(0,a[1]*o/f-f/2)],r[1]=aV(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function fV(e,t){return aV(oV(e,t[0]),t[1])}function pV(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function mV(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e=0;n--)cs(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;rCV}function HV(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function UV(e,t,n,r){var i=new Y;return i.add(new Iu({name:`main`,style:qV(n),silent:!0,draggable:!0,cursor:`move`,drift:ut(QV,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ut(BV,t,{isEnd:!0})})),L(r,function(n){i.add(new Iu({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ut(QV,e,t,i,n),ondragend:ut(BV,t,{isEnd:!0})}))}),i}function WV(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=bV(i,wV),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;KV(e,t,`main`,o,s,m,h),r.transformable&&(KV(e,t,`w`,c,l,a,_),KV(e,t,`e`,f,l,a,_),KV(e,t,`n`,c,l,g,a),KV(e,t,`s`,c,p,g,a),KV(e,t,`nw`,c,l,a,a),KV(e,t,`ne`,f,l,a,a),KV(e,t,`sw`,c,p,a,a),KV(e,t,`se`,f,p,a,a))}function GV(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(qV(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),L([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?XV(e,n[0]):ZV(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?DV[a]+`-resize`:null})})}function KV(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(nH(tH(e,t,[[r,i],[r+a,i+o]])))}function qV(e){return I({strokeNoScale:!0},e.brushStyle)}function JV(e,t,n,r){var i=[yV(e,n),yV(t,r)],a=[bV(e,n),bV(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function YV(e){return sm(e.group)}function XV(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[lm({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],YV(e))]}function ZV(e,t){var n=[XV(e,t[0]),XV(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function QV(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=eH(t,i,a);L(r,function(e){var t=EV[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(JV(s[0][0],s[1][0],s[0][1],s[1][1])),FV(t,n),BV(t,{isEnd:!1})}function $V(e,t,n,r){var i=t.__brushOption.range,a=eH(e,n,r);L(i,function(e){e[0]+=a[0],e[1]+=a[1]}),FV(e,t),BV(e,{isEnd:!1})}function eH(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function tH(e,t,n){var r=RV(e,t);return r&&r!==vV?r.clipPath(n,e._transform):P(n)}function nH(e){var t=yV(e[0][0],e[1][0]),n=yV(e[0][1],e[1][1]),r=bV(e[0][0],e[1][0]),i=bV(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function rH(e,t,n){if(!(!e._brushType||uH(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=LV(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var dH={lineX:fH(0),lineY:fH(1),rect:{createCover:function(e,t){function n(e){return e}return UV({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=HV(e);return JV(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){WV(e,t,n,r)},updateCommon:GV,contain:aH},polygon:{createCover:function(e,t){var n=new Y;return n.add(new cp({name:`main`,style:qV(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new op({name:`main`,draggable:!0,drift:ut($V,e,t),ondragend:ut(BV,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:tH(e,t,n)})},updateCommon:GV,contain:aH}};function fH(e){return{createCover:function(t,n){return UV({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=HV(t);return[yV(n[0][e],n[1][e]),bV(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=RV(t,n);if(o!==vV&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),WV(t,n,c,i)},updateCommon:GV,contain:aH}}function pH(e){return e=gH(e),function(t){return pm(t,e)}}function mH(e,t){return e=gH(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function hH(e,t,n){var r=gH(e);return function(e,i){return r.contain(i[0],i[1])&&!zP(e,t,n)}}function gH(e){return J.create(e)}var _H=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new AV(n.getZr())).on(`brush`,z(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!vH(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Y,this.group.add(this._axisGroup),e.get(`show`)){var a=bH(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=F({strokeContainThreshold:c},u),f=new $M(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),fm(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=J.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:pH(l),isTargetByCursor:hH(l,a,r),getLinearBrushOtherExtent:mH(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(yH(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=R(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(Tb);function vH(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function yH(e){var t=e.axis;return R(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function bH(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var xH={type:`axisAreaSelect`,event:`axisAreaSelected`};function SH(e){e.registerAction(xH,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var CH={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function wH(e){e.registerComponentView(XB),e.registerComponentModel($B),e.registerCoordinateSystem(`parallel`,gV),e.registerPreprocessor(KB),e.registerComponentModel(_V),e.registerComponentView(_H),TM(e,`parallel`,_V,CH),SH(e)}function TH(e){yw(wH),e.registerChartView(PB),e.registerSeriesModel(VB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,GB)}var EH=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}(),DH=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new EH},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Nd(this)},t.prototype.downplay=function(){Pd(this)},t}(Su),OH=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Y,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(e,t){this._controller=new BP(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this._mainGroup,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,this._updateViewCoordSys(e,n),QP(e,n,a,this._controller,this._controllerHost,null),i.eachEdge(function(t){var n=new DH,r=Z(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),kH(n.style,d,t);var k=``+i.get(`value`),A=Rm(i,`edgeLabel`);Lm(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,xt(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);nf(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return kH(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var ee=j.get(`focus`);Qd(n,ee===`adjacency`?t.getAdjacentDataIndices():ee===`trajectory`?t.getTrajectoryDataIndices():ee,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Iu({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});Lm(f,Rm(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),nf(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),Z(f).dataType=`node`;var p=u.get(`focus`);Qd(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(AH(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=n.width,i=n.height,a=e.coordinateSystem=new gI(null,{api:t,ecModel:e.ecModel});a.zoomLimit=e.get(`scaleLimit`),a.setBoundingRect(0,0,r,i),a.setCenter(e.get(`center`)),a.setZoom(e.get(`zoom`)),this._controllerHost.target.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY})},t.type=`sankey`,t}(kb);function kH(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);H(r)&&H(i)&&(e.fill=new bp(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function AH(e,t,n){var r=new Iu({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Lp(r,{shape:{width:e.width+20}},t,n),r}var jH=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new ch(i[o],this,t));return aB(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return Yy(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return Yy(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(gb);function MH(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=Gg(e,t).refContainer,a=Hg(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;PH(l),NH(l,u,n,r,o,s,ot(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function NH(e,t,n,r,i,a,o,s,c){FH(e,t,n,i,a,s,c),BH(e,t,a,i,r,o,s),$H(e,s)}function PH(e){L(e,function(e){var t=ZH(e.outEdges,XH),n=ZH(e.inEdges,XH),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function FH(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&LH(e,o,a,C),zH(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function IH(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function LH(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,WH(s,c,o),UH(s,i,n,r,o),QH(s,c,o),UH(s,i,n,r,o)}function VH(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=hc(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),L(i.keys,function(e){n.push(i.buckets.get(e))}),n}function HH(e,t,n,r,i,a){var o=1/0;L(e,function(e){var t=e.length,s=0;L(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function WH(e,t,n){L(e.slice().reverse(),function(e){L(e,function(e){if(e.outEdges.length){var r=ZH(e.outEdges,GH,n)/ZH(e.outEdges,XH);if(isNaN(r)){var i=e.outEdges.length;r=i?ZH(e.outEdges,KH,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-YH(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-YH(e,n))*t;e.setLayout({y:o},!0)}}})})}function GH(e,t){return YH(e.node2,t)*e.getValue()}function KH(e,t){return YH(e.node2,t)}function qH(e,t){return YH(e.node1,t)*e.getValue()}function JH(e,t){return YH(e.node1,t)}function YH(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function XH(e){return e.getValue()}function ZH(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),L(n,function(t){var n=new tR({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&L(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function tU(e){e.registerChartView(OH),e.registerSeriesModel(jH),e.registerLayout(MH),e.registerVisual(eU),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e.registerAction({type:`sankeyRoam`,event:`sankeyRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){var n=t.coordinateSystem,r=eF(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}var nU=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];L(h,function(e,t){var n;B(e)?(n=e.slice(),e.unshift(t)):B(e.value)?(n=F({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:Ew(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:Ew(m),dimsDef:_.slice()}];return tM(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:ut(b_,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),rU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}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:Q.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}},animationDuration:800},t}(gb);rt(rU,nU,!0);var iU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.get(`layout`)===`horizontal`);r.diff(a).add(function(e){if(r.hasValue(e)){var t=sU(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(Hp(n),cU(s,n,r,e)):n=sU(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(kb),aU=function(){function e(){}return e}(),oU=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new aU},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();rh){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var gU={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&Ns(``);var n=hU(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function _U(e){e.registerSeriesModel(rU),e.registerChartView(iU),e.registerLayout(dU),e.registerTransform(gU)}var vU=[`itemStyle`,`borderColor`],yU=[`itemStyle`,`borderColor0`],bU=[`itemStyle`,`borderColorDoji`],xU=[`itemStyle`,`color`],SU=[`itemStyle`,`color0`];function CU(e,t){return t.get(e>0?xU:SU)}function wU(e,t){return t.get(e===0?bU:e>0?vU:yU)}var TU={seriesType:`candlestick`,plan:Eb(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=CU(i,r),a.stroke=wU(i,r)||a.fill,F(t.ensureUniqueItemVisual(n,`style`),a)}}}}},EU=[`color`,`borderColor`],DU=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Tm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&jU(s,o))return;var c=AU(o,n,!0);Lp(c,{shape:{points:o.ends}},e,n),MU(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&jU(s,u)){r.remove(l);return}l?(Ip(l,{shape:{points:u.ends}},e,o),Hp(l)):l=AU(u,o),MU(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),IU(e,this.group);var t=e.get(`clip`,!0)?PA(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=AU(n.getItemLayout(i),i);MU(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){IU(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(kb),OU=function(){function e(){}return e}(),kU=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new OU},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Su);function AU(e,t,n){var r=e.ends;return new kU({shape:{points:n?NU(r,e):r},z2:100})}function jU(e,t){for(var n=!0,r=0;rh?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=om(a[i]+r/2,1,!1),o[i]=om(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=om(e[i],1),e}}function m(n,r){for(var o=PT(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=VU(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function VU(e,t,n,r,i,a){return n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1}function HU(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=X(W(e.get(`barMaxWidth`),i),i),o=X(W(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):X(s,i)}function UU(e){e.registerChartView(DU),e.registerSeriesModel(RU),e.registerPreprocessor(zU),e.registerVisual(TU),e.registerLayout(BU)}function WU(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var GU=function(e){N(t,e);function t(t,n){var r=e.call(this)||this,i=new pA(t,n),a=new Y;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=V(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return Qt(e.__p1,e.__cp1)+Qt(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=ni,c=ri;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;ot);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(YU),QU=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),$U=function(e){N(t,e);function t(t){var n=e.call(this,t)||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:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new QU},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i0){e.moveTo(n[i++],n[i++]);for(var o=1;o0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var l=r[s++],u=r[s++],d=1;d0){if(eu(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(Ql(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),tW={seriesType:`lines`,plan:Eb(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&PA(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=tW.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new eW:new Iz(i?r?ZU:XU:r?YU:Fz),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(kb),rW=typeof Uint32Array>`u`?Array:Uint32Array,iW=typeof Float64Array>`u`?Array:Float64Array;function aW(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=R(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),et([t,e[0],e[1]])}))}var oW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],aW(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(aW(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Nt(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Nt(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},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}(gb);function sW(e){return e instanceof Array||(e=[e,e]),e}var cW={seriesType:`lines`,reset:function(e){var t=sW(e.get(`symbol`)),n=sW(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=sW(n.getShallow(`symbol`,!0)),i=sW(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function lW(e){e.registerChartView(nW),e.registerSeriesModel(oW),e.registerLayout(tW),e.registerVisual(cW)}var uW=256,dW=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Re.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=Re.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function fW(e,t,n){var r=e[1]-e[0];t=R(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function mW(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var hW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):mW(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(mW(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Tm(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=FA(a,`cartesian2d`),s=FA(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=f.getBandWidth()+.5,l=p.getBandWidth()+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=Rm(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new Iu({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var ee=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(yt(ee.x))continue;D=new Iu({z2:1,shape:ee,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var te=a.dataToLayout([h.get(T[0],E)]),ee=te.contentRect||te.rect;if(yt(ee.x)||yt(ee.y))continue;D=new Iu({z2:1,shape:ee,style:O})}if(h.hasItemOption){var ne=h.getItemModel(E),re=ne.getModel(`emphasis`);g=re.getModel(`itemStyle`).getItemStyle(),_=ne.getModel([`blur`,`itemStyle`]).getItemStyle(),v=ne.getModel([`select`,`itemStyle`]).getItemStyle(),y=ne.get([`itemStyle`,`borderRadius`]),S=re.get(`focus`),C=re.get(`blurScope`),w=re.get(`disabled`),b=Rm(ne)}D.shape.r=y;var M=e.getRawValue(E),ie=`-`;M&&M[2]!=null&&(ie=M[2]+``),Lm(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ie}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,Qd(D,S,C,w),D.incremental=i,i&&(D.states.emphasis.hoverLayer=!0),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new dW;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?pW(v,n.option.range):fW(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Ou({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(kb),gW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return dT(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=wg.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(gb);function _W(e){e.registerChartView(hW),e.registerSeriesModel(gW)}var vW=[`itemStyle`,`borderWidth`],yW=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],bW=new Ff,xW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:yW[+s],categoryDim:yW[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=SW(i,e,NW(i,e),l),n=IW(i,l,t);i.setItemGraphicEl(e,n),r.add(n),HW(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=SW(i,e,NW(i,e),l),s=zW(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?LW(n,l,o):n=IW(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),HW(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&RW(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?PA(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){RW(r,Z(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(kb);function SW(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};CW(n,a,i,r,d),TW(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),EW(n,d.symbolScale,c,r,d);var f=d.symbolSize;return DW(n,f,i,a,o,Vx(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function CW(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(B(o)){var d=[wW(s,o[0])-c,wW(s,o[1])-c];d[1]=0?1:-1:u>0?1:-1}function wW(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function TW(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=B(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=X(m[d.index],f),m[u.index]=X(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function EW(e,t,n,r,i){var a=e.get(vW)||0;a&&(bW.attr({scaleX:t[0],scaleY:t[1],rotation:n}),bW.updateTransform(),a/=bW.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function DW(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=bt(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=X(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=ws(r),w=C?r:UW((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?UW((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=F({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function OW(e){var t=e.symbolPatternSize,n=zx(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function kW(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(BW(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function AW(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?VW(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=OW(n),i.add(a),VW(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function jW(e,t,n){var r=F({},t.barRectShape),i=e.__pictorialBarRect;i?VW(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Iu({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function MW(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=F({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Ip(i,{shape:a},s,c);else{a[o.wh]=0,i=new Iu({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],Wp[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function NW(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=PW,n.isAnimationEnabled=FW,n}function PW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function FW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function IW(e,t,n,r){var i=new Y,a=new Y;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?kW(i,t,n):AW(i,t,n),jW(i,n,r),MW(i,t,n,r),i.__pictorialShapeStr=zW(e,n),i.__pictorialSymbolMeta=n,i}function LW(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Ip(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?kW(e,t,n,!0):AW(e,t,n,!0),jW(e,n,!0),MW(e,t,n,!0)}function RW(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];BW(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),L(a,function(e){zp(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function zW(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function BW(e,t,n){L(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function VW(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Wp[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function HW(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);BW(e,function(e){if(e instanceof Ou){var t=e.style;e.useStyle(F({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,Lm(m,Rm(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:dA(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Qd(e,u,d,a.get(`disabled`))}function UW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var WW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=ph(aj.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Q.color.primary}}}),t}(aj);function GW(e){e.registerChartView(xW),e.registerSeriesModel(WW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ut(WT,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,GT(`pictorialBar`))}var KW=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new Sw(this._layersSeries||[],o,u,u),f=[];d.add(z(p,this,`add`)).update(z(p,this,`update`)).remove(z(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;ma&&(a=s),r.push(s)}for(var l=0;la&&(a=d)}return{y0:i,max:a}}function $W(e){e.registerChartView(KW),e.registerSeriesModel(YW),e.registerLayout(XW),e.registerProcessor(Uj(`themeRiver`))}var eG=2,tG=4,nG=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=eG,a.textConfig={inside:!0},Z(a).seriesIndex=n.seriesIndex;var o=new Vu({z2:tG,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;Z(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=F({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=OS(d,i)),F(l,pj(o.getModel(`itemStyle`),l,!0)),L(od,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=pj(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,Lp(a,{shape:{r:c.r}},n,t.dataIndex)):(Ip(a,{shape:l},n),Hp(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Nt(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;Qd(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)T&&!hs(D-T)&&D0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new nG(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&xg(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rG,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(kb),cG=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};lG(n);var r=this._levelModels=R(e.levels||[],function(e){return new ch(e,this,t)},this),i=lL.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=mL(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){TL(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}(gb);function lG(e){var t=0;L(e.children,function(e){lG(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}var uG=Math.PI/180;function dG(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);B(r)||(r=[0,r]),B(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=X(t[0],i),c=X(t[1],a),l=X(r[0],o/2),u=X(r[1],o/2),d=-e.get(`startAngle`)*uG,f=e.get(`minAngle`)*uG,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&fG(m,g);var _=0;L(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&H(a)&&(a=ji(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),F(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function hG(e){e.registerChartView(sG),e.registerSeriesModel(cG),e.registerLayout(ut(dG,`sunburst`)),e.registerProcessor(ut(Uj,`sunburst`)),e.registerVisual(mG),oG(e)}var gG={color:`fill`,borderColor:`stroke`},_G={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},vG=ac(),yG=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return dT(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=vG(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(gb);function bG(e,t){return t||=[0,0],R([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function xG(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(t){return e.dataToPoint(t)},size:z(bG,e)}}}function SG(e,t){return t||=[0,0],R([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function CG(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(t){return e.dataToPoint(t)},size:z(SG,e)}}}function wG(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function TG(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:z(wG,e)}}}function EG(e,t){return t||=[0,0],R([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function DG(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:z(EG,e)}}}function OG(e){var t=e.getRect(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function kG(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function AG(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function jG(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return MG(o,e),L(o.rich,function(e){MG(e,e)}),{textConfig:i,textContent:a}}function MG(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function NG(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||Q.color.neutral99;PG(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,L(t.rich,function(e){PG(e,e)}),r}function PG(e,t){t&&(K(t,`fill`)&&(e.textFill=t.fill),K(t,`stroke`)&&(e.textStroke=t.fill),K(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),K(t,`font`)&&(e.font=t.font),K(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),K(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),K(t,`fontSize`)&&(e.fontSize=t.fontSize),K(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),K(t,`align`)&&(e.textAlign=t.align),K(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),K(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),K(t,`width`)&&(e.textWidth=t.width),K(t,`height`)&&(e.textHeight=t.height),K(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),K(t,`padding`)&&(e.textPadding=t.padding),K(t,`borderColor`)&&(e.textBorderColor=t.borderColor),K(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),K(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),K(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),K(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),K(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),K(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),K(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),K(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),K(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),K(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var FG={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},IG=ct(FG);at(fo,function(e,t){return e[t]=1,e},{}),fo.join(`, `);var LG=[``,`style`,`shape`,`extra`],RG=ac();function zG(e,t,n,r,i){var a=e+`Animation`,o=Pp(e,r,i)||{},s=RG(t).userDuring;return o.duration>0&&(o.during=s?z(YG,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),F(o,n[a]),o}function BG(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=RG(e),l=t.style;c.userDuring=t.during;var u={},d={};if($G(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else GG(e,t,i||0,n,u);VG(e,t),l?e.dirty():e.markRedraw()}function VG(e,t){for(var n=RG(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function KG(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof ml&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Su&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var qG={},JG={setTransform:function(e,t){return qG.el[e]=t,this},getTransform:function(e){return qG.el[e]},setShape:function(e,t){var n=qG.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=qG.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=qG.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=qG.el.style;if(t)return t[e]},setExtra:function(e,t){var n=qG.el.extra||(qG.el.extra={});return n[e]=t,this},getExtra:function(e){var t=qG.el.extra;if(t)return t[e]}};function YG(){var e=this,t=e.el;if(t){var n=RG(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}qG.el=t,r(JG)}}function XG(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),UG(c))F(o,a);else for(var l=Ls(c),u=0;u=0){!o&&(o=r[e]={});for(var p=ct(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=ct(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,sK).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:H(a)?a:Q.color.neutral99},l=b(r,sK),d=zm(l,null,c,!1,!0);d.text=l.getShallow(`show`)?W(e.getFormattedLabel(r,sK),dA(t,r)):null;var f=Bm(l,c,!1);return E(n,s),s=NG(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,oK).getItemStyle(),a=b(r,oK),o=zm(a,null,null,!0,!0);o.text=a.getShallow(`show`)?xt(e.getFormattedLabel(r,oK),e.getFormattedLabel(r,sK),dA(t,r)):null;var s=Bm(a,null,!0);return E(n,i),i=NG(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)K(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,K(gG,e)){var r=t.getItemVisual(n,`style`);return r?r[gG[e]]:null}if(K(_G,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return RT(I({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return qm(e,n)}}function DK(e){var t={};return L(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function OK(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=kK(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Qd(s,r.focus,r.blurScope,r.emphasisDisabled),s}function kK(e,t,n,r,i,a){var o=-1,s=t;t&&AK(t,r,i)&&(o=tt(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=xK(r),s&&yK(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),hK.normal.cfg=hK.normal.conOpt=hK.emphasis.cfg=hK.emphasis.conOpt=hK.blur.cfg=hK.blur.conOpt=hK.select.cfg=hK.select.conOpt=null,hK.isLegacy=!1,MK(l,n,r,i,c,hK),jK(l,n,r,i,c),SK(e,l,n,r,hK,i,c),K(r,`info`)&&(vG(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function AK(e,t,n){var r=vG(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&UK(a)&&HK(a)!==r.customPathData||i===`image`&&K(o,`image`)&&o.image!==r.customImagePath}function jK(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&AK(o,a,r)&&(o=null),o||(o=xK(a),e.setClipPath(o)),SK(null,o,t,a,null,r,i)}}function MK(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){NK(n,null,a),NK(n,oK,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=xK(o),e.setTextContent(u)),SK(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)LK(t,t.childAt(p),i)}}function LK(e,t,n){t&&HG(t,vG(e).option,n)}function RK(e){new Sw(e.oldChildren,e.newChildren,zK,zK,e).add(BK).update(BK).remove(VK).execute()}function zK(e,t){return(e&&e.name)??mK+t}function BK(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];kK(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function VK(e){var t=this.context,n=t.oldChildren[e];n&&HG(n,vG(n).option,t.seriesModel)}function HK(e){return e&&(e.pathData||e.d)}function UK(e){return e&&(K(e,`pathData`)||K(e,`d`))}function WK(e){e.registerChartView(bK),e.registerSeriesModel(yG)}var GK=ac(),KK=P,qK=z,JK=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Y,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ut(YK,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}$K(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=JN(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=GK(e).pointerEl=new Wp[i.type](KK(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=GK(e).labelEl=new Vu(KK(t.label));e.add(i),ZK(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=GK(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=GK(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ZK(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=hm(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Nn(e.event)},onmousedown:qK(this._onHandleDragMove,this,0,0),drift:qK(this._onHandleDragMove,this),ondragend:qK(this._onHandleDragEnd,this)}),n.add(r)),$K(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,zb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){YK(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QK(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(QK(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(QK(r)),GK(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Bb(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function YK(e,t,n,r){XK(GK(n).lastProp,r)||(GK(n).lastProp=r,t?Ip(n,r,e):(n.stopAnimation(),n.attr(r)))}function XK(e,t){if(U(e)&&U(t)){var n=!0;return L(t,function(t,r){n&&=XK(e[r],t)}),!!n}else return e===t}function ZK(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function QK(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $K(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function eq(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function tq(e,t,n,r,i){var a=rq(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=pg(o.get(`padding`)||0),c=o.getFont(),l=So(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),nq(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:zm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function nq(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function rq(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:TE(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function iq(e,t,n){var r=zn();return Wn(r,r,n.rotation),Un(r,r,n.position),cm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function aq(e,t,n,r,i,a){var o=$M.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),tq(t,r,i,a,{position:iq(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oq(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sq(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function cq(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var lq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=uq(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=eq(r),d=dq[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}aq(t,e,bN(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=bN(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iq(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=uq(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(JK);function uq(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var dq={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:oq([t,n[0]],[t,n[1]],fq(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:sq([t-r/2,n[0]],[r,i],fq(e))}}};function fq(e){return e.dim===`x`?0:1}var pq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}($g),mq=ac(),hq=L;function gq(e,t,n){if(!Ae.node){var r=t.getZr();mq(r).records||(mq(r).records={}),_q(r,t);var i=mq(r).records[e]||(mq(r).records[e]={});i.handler=n}}function _q(e,t){if(mq(e).initialized)return;mq(e).initialized=!0,n(`click`,ut(bq,`click`)),n(`mousemove`,ut(bq,`mousemove`)),n(`globalout`,yq);function n(n,r){e.on(n,function(n){var i=xq(t);hq(mq(e).records,function(e){e&&r(e,n,i.dispatchAction)}),vq(i.pendings,t)})}}function vq(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function yq(e,t,n){e.handler(`leave`,null,n)}function bq(e,t,n,r){t.handler(e,n,r)}function xq(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Sq(e,t){if(!Ae.node){var n=t.getZr();(mq(n).records||{})[e]&&(mq(n).records[e]=null)}}var Cq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;gq(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){Sq(`axisPointer`,t)},t.prototype.dispose=function(e,t){Sq(`axisPointer`,t)},t.type=`axisPointer`,t}(Tb);function wq(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ic(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var Tq=ac();function Eq(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||z(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){Iq(i)&&(i=wq({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=Iq(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||Iq(i),f={},p={},m={list:[],map:{}},h={showPointer:ut(kq,p),showTooltip:ut(Aq,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=Pq(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&Dq(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,Fq(t),Fq(e)))),g[e.key]=a}})}),L(g,function(e,t){Dq(u[t],e,h,!0,f)}),jq(p,u,f),Mq(m,i,e,o),Nq(u,o,n),f}}function Dq(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=Oq(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function Oq(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function kq(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Aq(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=ZN(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function jq(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function Mq(e,t,n,r){if(Iq(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Nq(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=Tq(r)[i]||{},o=Tq(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];L(a,function(e,t){!o[t]&&c.push(e)}),L(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function Pq(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Fq(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function Iq(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Lq(e){$N.registerAxisPointerClass(`CartesianAxisPointer`,lq),e.registerComponentModel(pq),e.registerComponentView(Cq),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=VN(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Eq)}function Rq(e){yw(uP),yw(Lq)}var zq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=eq(r),d=Vq[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}tq(e,n,r,i,Bq(t,n,r,o,r.get([`label`,`margin`])))},t}(JK);function Bq(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=zn();Wn(f,f,s),Un(f,f,[r.cx,r.cy]),l=cm([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=$M.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var Vq={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:oq(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:cq(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:cq(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},Hq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}($g),Uq=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,lc).models[0]},t.type=`polarAxis`,t}($g);rt(Uq,PE);var Wq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(Uq),Gq=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(Uq),Kq=function(e){N(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(xD);Kq.prototype.dataToRadius=xD.prototype.dataToCoord,Kq.prototype.radiusToData=xD.prototype.coordToData;var qq=ac(),Jq=function(e){N(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=So(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=qq(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(xD);Jq.prototype.dataToAngle=xD.prototype.dataToCoord,Jq.prototype.angleToData=xD.prototype.coordToData;var Yq=[`radius`,`angle`],Xq=function(){function e(e){this.dimensions=Yq,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new Kq,this._angleAxis=new Jq,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=co;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return Zq(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Zq(t)===this?this.pointToData(n):null},e}();function Zq(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function Qq(e,t,n){var r=t.get(`center`),i=Gg(t,n).refContainer;e.cx=X(r[0],i.width)+i.x,e.cy=X(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:B(s)||(s=[0,s]);var c=[X(s[0],o),X(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function $q(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();L(OE(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),L(OE(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),xE(r.scale,r.model),xE(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function eJ(e){return e.mainType===`angleAxis`}function tJ(e,t){if(e.type=t.get(`type`),e.scale=SE(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),eJ(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var nJ={dimensions:Yq,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new Xq(r+``);i.update=$q;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);tJ(a,s),tJ(o,c),Qq(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`polar`&&(e.coordinateSystem=e.getReferringComponents(`polar`,lc).models[0].coordinateSystem)}),n}},rJ=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function iJ(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function aJ(e){return+!e.getRadiusAxis().inverse}function oJ(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var sJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=R(n.getViewLabels(),function(e){e=P(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});oJ(s),oJ(a),L(rJ,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&cJ[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}($N),cJ={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=aJ(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new Wp[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new np({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[aJ(n)],l=R(r,function(e){return new dp({shape:iJ(n,[c,c+s],e.coord)})});e.add(nm(l,{style:I(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[aJ(n)],u=[],d=0;dm?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];U(v)&&v.textStyle&&(o=new ch(v.textStyle,c,c.ecModel))}var y=new Vu({silent:$M.isLabelSilent(t),style:zm(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),Cm({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=$M.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,Z(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var ee=d.dataToCoord(w)-x,te=a.dataToCoord(T);Math.abs(ee)=j})}}})}function gJ(e){var t={};L(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=mJ(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=pJ(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=X(e.get(`barWidth`),c),p=X(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return L(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=X(e.categoryGap,i),o=X(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),L(r,function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return kJ(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return kJ(t)===this?this.pointToData(n):null},e}();function kJ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function AJ(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new OJ(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,lc).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var jJ={create:AJ,dimensions:DJ},MJ=[`x`,`y`],NJ=[`width`,`height`],PJ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=LJ(o,1-IJ(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=eq(r),d=FJ[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}aq(t,e,xJ(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=xJ(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iq(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=IJ(i),s=LJ(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=LJ(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(JK),FJ={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:oq([t,n[0]],[t,n[1]],IJ(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:sq([t-r/2,n[0]],[r,i],IJ(e))}}};function IJ(e){return+!e.isHorizontal()}function LJ(e,t){var n=e.getRect();return[n[MJ[t]],n[MJ[t]]+n[NJ[t]]]}var RJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(Tb);function zJ(e){yw(Lq),$N.registerAxisPointerClass(`SingleAxisPointer`,PJ),e.registerComponentView(RJ),e.registerComponentView(CJ),e.registerComponentModel(TJ),TM(e,`single`,TJ,TJ.defaultOption),e.registerCoordinateSystem(`single`,jJ)}var BJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=Xg(t);e.prototype.init.apply(this,arguments),VJ(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),VJ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`}},itemStyle:{color:Q.color.neutral00,borderWidth:1,borderColor:Q.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:Q.size.s,color:Q.color.secondary},monthLabel:{show:!0,position:`start`,margin:Q.size.s,align:`center`,formatter:null,color:Q.color.secondary},yearLabel:{show:!0,position:null,margin:Q.size.xl,formatter:null,color:Q.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}($g);function VJ(e,t){var n=e.cellSize,r=B(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),Yg(e,t,{type:`box`,ignoreSize:R([0,1],function(e){return qg(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var HJ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new Iu({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new cp({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return H(e)&&e?vg(e,t):V(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new Vu({z2:30,style:zm(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||H(a))&&(a&&(t=wh(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m=i.start.time&&r.timeo.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/UJ)-Math.floor(t[0].time/UJ)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&tr.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){Mg({targetModel:t,coordSysType:`calendar`,coordSysProvider:Ng})}),r},e.dimensions=[`time`,`value`],e}();function GJ(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function KJ(e){e.registerComponentModel(BJ),e.registerComponentView(HJ),e.registerCoordinateSystem(`calendar`,WJ)}var qJ={level:1,leaf:2,nonLeaf:3},JJ={none:0,all:1,body:2,corner:3};function YJ(e,t,n){var r=t[Kp[n]].getCell(e);return!r&&ft(e)&&e<0&&(r=t[Kp[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function XJ(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function ZJ(e,t,n,r,i){QJ(e[0],t,i,n,r,0),QJ(e[1],t,i,n,r,1)}function QJ(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=B(o)?o:[o],c=s.length,l=!!n;if(c>=1?($J(e,t,s,l,i,a,0),c>1&&$J(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[Kp[1-a]].getLocatorCount(a),d=i[Kp[a]].getLocatorCount(a)-1;n===JJ.body?u=ns(0,u):n===JJ.corner&&(d=ts(-1,d)),d=t[0]&&e[0]<=t[1]}function aY(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function oY(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function sY(e,t,n,r){var i=YJ(t[r][0],n,r),a=YJ(t[r][1],n,r);e[Kp[r]]=e[qp[r]]=NaN,i&&a&&(e[Kp[r]]=i.xy,e[qp[r]]=a.xy+a.wh-i.xy)}function cY(e,t,n,r){return e[Kp[t]]=n,e[Kp[1-t]]=r,e}function lY(e){return e&&(e.type===qJ.leaf||e.type===qJ.nonLeaf)?e:null}function uY(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var dY=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=fY(e);var n=t.get(`data`,!0);n!=null&&!B(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&L(e,function(e,l){var u;H(e)?u={value:e}:U(e)?(u=e,e.value!=null&&!H(e.value)&&(u={value:null})):u={value:null};var d={type:qJ.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new q,span:cY(new q,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:uY()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:qJ.level,xy:NaN,wh:NaN,option:null,id:new q,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[Kp[t.dimIdx]]=p,c+=p,n+=p}),c}function s(){for(var e=[];n.length=1,y=n[Kp[r]],b=a.getLocatorCount(r)-1,x=new _c;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){yt(e.wh)&&(e.wh=_),e.xy=y,e.id[Kp[r]]===b&&!v&&(e.wh=n[Kp[r]]+n[qp[r]]-e.xy),y+=e.wh}}function HY(e,t){for(var n=t[Kp[e]].resetCellIterator();n.next();){var r=n.item;WY(r.rect,e,r.id,r.span,t),WY(r.rect,1-e,r.id,r.span,t),r.type===qJ.nonLeaf&&(r.xy=r.rect[Kp[e]],r.wh=r.rect[qp[e]])}}function UY(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;WY(r,0,i,n,t),WY(r,1,i,n,t)}})}function WY(e,t,n,r,i){e[qp[t]]=0;var a=n[Kp[t]]<0?i[Kp[1-t]]:i[Kp[t]],o=a.getUnitLayoutInfo(t,n[Kp[t]]);if(e[Kp[t]]=o.xy,e[qp[t]]=o.wh,r[Kp[t]]>1){var s=a.getUnitLayoutInfo(t,n[Kp[t]]+r[Kp[t]]-1);e[qp[t]]=s.xy+s.wh-o.xy}}function GY(e,t,n){return KY(os(e,n[qp[t]]),n[qp[t]])}function KY(e,t){return Math.max(Math.min(e,W(t,1/0)),0)}function qY(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var JY={inBody:1,inCorner:2,outside:3},YY={x:null,y:null,point:[]};function XY(e,t,n,r,i){var a=n[Kp[t]],o=n[Kp[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[Kp[t]]=JY.outside;return}if(i===JJ.body){c?(e[Kp[t]]=JY.inBody,d=ts(s.xy+s.wh,ns(c.xy,d)),e.point[t]=d):e[Kp[t]]=JY.outside;return}else if(i===JJ.corner){u?(e[Kp[t]]=JY.inCorner,d=ts(u.xy+u.wh,ns(l.xy,d)),e.point[t]=d):e[Kp[t]]=JY.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(dm){if(!i){e[Kp[t]]=JY.outside;return}d=m}e.point[t]=d,e[Kp[t]]=f<=d&&d<=m?JY.inBody:p<=d&&d<=f?JY.inCorner:JY.outside}function ZY(e,t,n,r){var i=1-n;if(e[Kp[n]]!==JY.outside)for(r[Kp[n]].resetCellIterator(BY);BY.next();){var a=BY.item;if(eX(e.point[n],a.rect,n)&&eX(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[Kp[i]];return}}}function QY(e,t,n,r){if(e[Kp[n]]!==JY.outside){for((e[Kp[n]]===JY.inCorner?r[Kp[1-n]]:r[Kp[n]]).resetLayoutIterator(zY,n);zY.next();)if($Y(e.point[n],zY.item)){t[n]=zY.item.id[Kp[n]];return}}}function $Y(e,t){return t.xy<=e&&e<=t.xy+t.wh}function eX(e,t,n){return t[Kp[n]]<=e&&e<=t[Kp[n]]+t[qp[n]]}function tX(e){e.registerComponentModel(bY),e.registerComponentView(DY),e.registerCoordinateSystem(`matrix`,LY)}function nX(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function rX(e,t){var n;return L(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function iX(e,t,n){var r=F({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?($e(i,r,!0),Yg(i,r,{ignoreSize:!0}),Zg(n,i),sX(n,i),sX(n,i,`shape`),sX(n,i,`style`),sX(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var aX=[`transition`,`enterFrom`,`leaveTo`],oX=aX.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function sX(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?aX:oX,i=0;i=0;c--){var l=n[c],u=Zs(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=dX(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=Kg(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!dX(d).isNew&&v){for(var y=l.transition,b={},x=0;x=0)?b[S]=C:d[S]=C}Ip(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){hX(n,dX(n).option,t,e._lastGraphicModel)}),this._elMap=G()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(Tb);function pX(e){var t=new(K(uX,e)?uX[e]:Qp(e))({});return dX(t).type=e,t}function mX(e,t,n,r){var i=pX(n);return t.add(i),r.set(e,i),dX(i).id=e,dX(i).isNew=!0,i}function hX(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){hX(e,t,n,r)}),HG(e,t,r),n.removeKey(dX(e).id))}function gX(e,t,n,r){e.isGroup||L([[`cursor`,ml.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=W(t[r],n[1]):e[r]??(e[r]=n[1])}),L(ct(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=V(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function _X(e){return e=F({},e),L([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Fg),function(t){delete e[t]}),e}function vX(e,t,n){var r=Z(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Z(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function yX(e){e.registerComponentModel(lX),e.registerComponentView(fX),e.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var bX=[`x`,`y`,`radius`,`angle`,`single`],xX=[`cartesian2d`,`polar`,`singleAxis`];function SX(e){return tt(xX,e.get(`coordinateSystem`))>=0}function CX(e){return e+`Axis`}function wX(e,t){var n=G(),r=[],i=G();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function TX(e){var t=e.ecModel,n={infoList:[],infoMap:G()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(CX(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var EX=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),DX=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=OX(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=OX(e);$e(this.option,e,!0),$e(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=G();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return L(bX,function(n){var r=this.getReferringComponents(CX(n),uc);if(r.specified){t=!0;var i=new EX;L(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new EX;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,lc).models[0];o&&L(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,lc).models[0]&&a.add(e.componentIndex)})}}}r&&L(bX,function(t){if(r){var i=n.findComponents({mainType:CX(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new EX;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);L([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(CX(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){L(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(CX(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;L([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else MX(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});MX(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;MX([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=is(i,[0,100],n,!0)-n[0]):i=is(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=ds(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function FX(e,t,n){var r=[1/0,-1/0];MX(n,function(e){kE(r,e.getData(),t)});var i=e.getAxisModel(),a=_E(i.axis.scale,i,r).calculate();return[a.min,a.max]}var IX={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(CX(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new PX(t,r,a,e),n.push(i.__dzAxisProxy))});var r=G();return L(n,function(e){L(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function LX(e){e.registerAction(`dataZoom`,function(e,t){L(wX(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var RX=!1;function zX(e){RX||(RX=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,IX),LX(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function BX(e){e.registerComponentModel(kX),e.registerComponentView(jX),zX(e)}var VX=function(){function e(){}return e}(),HX={};function UX(e,t){HX[e]=t}function WX(e){return HX[e]}var GX=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;L(this.option.feature,function(e,n){var r=WX(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),$e(e,r.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:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}($g);function KX(e,t){var n=pg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Iu({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var qX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];L(s,function(e,t){l.push(t)}),new Sw(this._featureNames||[],l).add(u).update(u).remove(ut(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new ch(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(JX(o))m={onclick:p.option.onclick,featureName:o};else{var h=WX(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=uh(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof VX;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Nd:Pd)(r[e])},m instanceof VX&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof VX&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;H(d)?(p={},p[c]=d):p=d,H(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};L(p,function(c,d){var f=hm(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Vu({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:qm({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Cm({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Nd:Pd)(f),i.add(f),f.on(`click`,z(s.onclick,s,t,n,d)),h[d]=f})}var f=Gg(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Hg(p,f,m);Rg(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),Kg(i,p,f,m),i.add(KX(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!V(c)&&t){var l=c.style||={},u=So(t,Vu.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){L(this._features,function(e){e instanceof VX&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){L(this._features,function(n){n instanceof VX&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){L(this._features,function(n){n instanceof VX&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(Tb);function JX(e){return e.indexOf(`my`)===0}var YX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Ae.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=``,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(VX),XX=`__ec_magicType_stack__`,ZX=[[`line`,`bar`],[`stack`]],QX=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return L(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if($X[n]){var a={series:[]};L(ZX,function(e){tt(e,n)>=0&&L(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=$X[n](t,i,e,r);o&&(I(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,lc).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=$e({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(VX),$X={line:function(e,t,n,r){if(e===`bar`)return $e({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return $e({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===XX;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),$e({id:t,stack:i?``:XX},r.get([`option`,`stack`])||{},!0)}};sw({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var eZ=Array(60).join(`-`),tZ=` `;function nZ(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function rZ(e){var t=[];return L(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(R(e.series,function(e){return e.name})),o=[r.model.getCategories()];L(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(tZ)],c=0;c=0)return!0}var cZ=RegExp(`[`+tZ+`]+`,`g`);function lZ(e){for(var t=e.split(/\n+/g),n=oZ(t.shift()).split(cZ),r=[],i=R(n,function(e){return{name:e,data:[]}}),a=0;a=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function _Z(e){var t=bZ(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return mZ(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function vZ(e){hZ(e).snapshots=null}function yZ(e){return bZ(e).length}function bZ(e){var t=hZ(e);return t.snapshots||=[{}],t.snapshots}var xZ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){vZ(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(VX);sw({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var SZ=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],CZ=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=TZ(t,e);L(EZ,function(e,t){(!n||!n.include||tt(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=kZ[e.brushType](0,n,t);e.__rangeOffset={offset:jZ[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){L(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&L(r.coordSyses,function(r){n(e,kZ[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){L(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=kZ[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?jZ[e.brushType](r.values,i.offset,NZ(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return R(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:pH(r),isTargetByCursor:hH(r,e,n.coordSysModel),getLinearBrushOtherExtent:mH(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&tt(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=TZ(t,e),i=0;ie[1]&&e.reverse(),e}function TZ(e,t){return sc(e,t,{includeMainTypes:SZ})}var EZ={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=G(),o={},s={};!n&&!r&&!i||(L(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),L(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),L(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];L(i.getCartesians(),function(e,t){(tt(n,e.getAxis(`x`).model)>=0||tt(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:OZ.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){L(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OZ.geo})})}},DZ=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],OZ={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(sm(e)),t}},kZ={lineX:ut(AZ,0),lineY:ut(AZ,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[wZ([i[0],a[0]]),wZ([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:R(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function AZ(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=wZ(R([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var jZ={lineX:ut(MZ,0),lineY:ut(MZ,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return R(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function MZ(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function NZ(e,t){var n=PZ(e),r=PZ(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function PZ(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var FZ=L,IZ=ec(`toolbox-dataZoom_`),LZ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new AV(n.getZr()),this._brushController.on(`brush`,z(this._onBrush,this)).mount()),VZ(e,t,this,r,n),BZ(e,t)},t.prototype.onclick=function(e,t,n){RZ[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new CZ(zZ(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),gZ(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=tV(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];FZ(e,function(e,n){t.push(P(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(VX),RZ={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(_Z(this.ecModel))}};function zZ(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 BZ(e,t){e.setIconStatus(`back`,yZ(t)>1?`emphasis`:`normal`)}function VZ(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new CZ(zZ(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}D_(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=sc(e,zZ(r));FZ(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),FZ(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:IZ+t+a};o[n]=a,i.push(o)}return i});function HZ(e){e.registerComponentModel(GX),e.registerComponentView(qX),UX(`saveAsImage`,YX),UX(`magicType`,QX),UX(`dataView`,fZ),UX(`dataZoom`,LZ),UX(`restore`,xZ),yw(BX)}var UZ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}($g);function WZ(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function GZ(e){if(Ae.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function tQ(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ae.transformSupported?``+ZZ+i:`,left`+i+`,top`+i)),XZ+`:`+a}function nQ(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ae.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ae.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+ZZ+`:`+o+`;`:[[`top`,0],[`left`,0],[KZ,o]]}function rQ(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function iQ(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=lb(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(tQ(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=fg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(rQ(d)),f!=null&&i.push(`padding:`+pg(f).join(`px `)+`px`),i.join(`;`)+`;`}function aQ(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&mn(e,o,n,r,i)}else{e[0]=r,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 oQ=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ae.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(H(i)?document.querySelector(i):ht(i)?i:V(i)&&i(e.getDom()));aQ(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;kn(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=YZ(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QZ+iQ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+nQ(i[0],i[1],!0)+(`border-color:`+bg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!WZ(n)&&(o=eQ(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ae.node||!n.getDom())){var i=mQ(r,n);this._ticket=``;var a=r.dataByCoordSys,o=yQ(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=dQ;c.x=r.x,c.y=r.y,c.update(),Z(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=wq(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(mQ(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&pQ([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;kx(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=z(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=pQ([t.tooltipOption],r),o=this._renderMode,s=[],c=Yy(`section`,{blocks:[],noHeader:!0}),l=[],u=new ub;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=rq(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Yy(`section`,{header:a,noHeader:!Tt(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),L(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=TE(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,bg(m.color),o);var h=ay(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=pQ([f],r).get(`valueFormatter`);d.blocks.push(_?F({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=tb(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=pQ([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new ub;h.marker=g.makeTooltipMarker(`item`,bg(h.color),d);var _=ay(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?tb(y?F({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=Sn(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=pQ(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ub;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=qh(m.axisValue,d,p)),d=_g(d,n,!0)}else if(V(u)){var g=z(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=X(t[0],s),r=X(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=Hg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=_Q(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=hQ(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=vQ(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=vQ(d)?l[1]/2:d===`bottom`?l[1]:0),WZ(e)){var h=gQ(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ae.node||!t.getDom()||(Bb(this,`_updatePosition`),this._tooltipContent.dispose(),Sq(`itemTooltip`,t))},t.type=`tooltip`,t}(Tb);function pQ(e,t,n){var r=t.ecModel,i;n?(i=new ch(n,r,r),i=new ch(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ch&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new ch(o,i,r)))}return i}function mQ(e,t){return e.dispatchAction||z(t.dispatchAction,t)}function hQ(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function gQ(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _Q(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function vQ(e){return e===`center`||e===`middle`}function yQ(e,t,n){var r=cc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=dc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function bQ(e){yw(Lq),e.registerComponentModel(UZ),e.registerComponentView(fQ),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},It),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},It)}var xQ=[`rect`,`polygon`,`keep`,`clear`];function SQ(e,t){var n=Ls(e?e.brush:[]);if(n.length){var r=[];L(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),CQ(s),t&&!s.length&&s.push.apply(s,xQ)}}function CQ(e){var t={};L(e,function(e){t[e]=1}),e.length=0,L(t,function(t,n){e.push(n)})}var wQ=L;function TQ(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function EQ(e,t,n){var r={};return wQ(t,function(t){var a=r[t]=i();wQ(e[t],function(e,r){if(tR.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new tR(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new tR(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function DQ(e,t,n){var r;L(n,function(e){t.hasOwnProperty(e)&&TQ(t[e])&&(r=!0)}),r&&L(n,function(n){t.hasOwnProperty(n)&&TQ(t[n])?e[n]=P(t[n]):delete e[n]})}function OQ(e,t,n,r,i,a){var o={};L(e,function(e){o[e]=tR.prepareVisualTypes(t[e])});var s;function c(e){return Sx(n,s,e)}function l(e,t){Tx(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;ht[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&WQ(t)}};function WQ(e){return new J(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var GQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new AV(t.getZr())).on(`brush`,z(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){LQ(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:P(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:P(n),$from:t})},t.type=`brush`,t}(Tb),KQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&DQ(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=R(e,function(e){return qQ(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=qQ(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:Q.color.backgroundTint,borderColor:Q.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Q.color.disabled},t}($g);function qQ(e,t){return $e({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ch(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var JQ=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],YQ=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,L(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return L(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:JQ.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(VX);function XQ(e){e.registerComponentView(GQ),e.registerComponentModel(KQ),e.registerPreprocessor(SQ),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,RQ),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},It),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},It),UX(`brush`,YQ)}var ZQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}($g),QQ=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Vu({style:zm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Vu({style:zm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){xg(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){xg(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Hg(g,Gg(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Iu({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(Tb);function $Q(e){e.registerComponentModel(ZQ),e.registerComponentView(QQ)}var e$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],L(t,function(e,t){var n=Zs(Bs(e),``),a;U(e)?(a=P(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new Xw([{name:`value`,type:a}],this)).initData(i,r)},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:Q.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Q.color.secondary},data:[]},t}($g),t$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=ph(e$.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:Q.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:Q.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:Q.color.tertiary},itemStyle:{color:Q.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Q.color.accent60},itemStyle:{color:Q.color.accent60,borderColor:Q.color.accent60},controlStyle:{color:Q.color.accent70,borderColor:Q.color.accent70}},progress:{lineStyle:{color:Q.color.accent30},itemStyle:{color:Q.color.accent40}},data:[]}),t}(e$);rt(t$,iy.prototype);var n$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(Tb),r$=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(xD),i$=Math.PI,a$=ac(),o$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return Yy(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},L([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=c$(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:i$/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*i$/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=zn(),o=i.x,s=i.y+i.height;Un(a,a,[-o,-s]),Wn(a,a,-i$/2),Un(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||H(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=s$(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new r$(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Y;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new dp({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:F({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new dp({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:I({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],L(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=u$(s,c,t,{x:o,y:0,onclick:z(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),Xd(d);var f=Z(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],L(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new Vu({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:z(i._changeTimeline,i,o),silent:!1,style:zm(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=zm(l),d.ensureState(`progress`).style=zm(u),t.add(d),Xd(d),a$(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,z(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,z(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,z(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=Eo(W(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=l$(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),Xd(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=z(s._handlePointerDrag,s),e.ondragend=z(s._handlePointerDragend,s),d$(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){d$(e,s._progressLine,a,n,r)}};this._currentPointer=u$(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=cs(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var E$={min:ut(T$,`min`),max:ut(T$,`max`),average:ut(T$,`average`),median:ut(T$,`median`)};function D$(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!w$(t)&&!B(t.coord)&&B(i)){var a=O$(t,n,r,e);if(t=P(t),t.type&&E$[t.type]&&a.baseAxis&&a.valueAxis){var o=tt(i,a.baseAxis.dim),s=tt(i,a.valueAxis.dim),c=E$[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!B(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&E$[t.type]){var u=r.getOtherAxis(l);u&&(t.value=N$(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)E$[d[f]]&&(d[f]=N$(n,n.mapDimension(i[f]),d[f]));return t}}function O$(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(k$(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function k$(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function A$(e,t){return e&&e.containData&&t.coord&&!C$(t)?e.containData(t.coord):!0}function j$(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!C$(t)&&!C$(n)?e.containZone(t.coord,n.coord):!0}function M$(e,t){return e?function(e,n,r,i){return ly(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return ly(e.value,t[i])}}function N$(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var P$=ac(),F$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=G()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){P$(e).keep=!1}),t.eachSeries(function(e){var i=x$.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!P$(e).keep&&r.group.remove(e.group)}),I$(t,i,this.type)},t.prototype.markKeep=function(e){P$(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;L(e,function(e){var r=x$.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Fd(e):Id(e))})})},t.type=`marker`,t}(Tb);function I$(e,t,n){e.eachSeries(function(e){var r=x$.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=Am(r),o=a.z,s=a.zlevel;Mm(i.group,o,s)}})}function L$(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=X(s.get(`x`),l)+d,h=X(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var R$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markPoint`);t&&(L$(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new vA),l=z$(i,e,t);t.setData(l),L$(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(V(r)||V(i)||V(a)||V(s)){var u=t.getRawValue(e),d=t.getDataParams(e);V(r)&&(r=r(u,d)),V(i)&&(i=i(u,d)),V(a)&&(a=a(u,d)),V(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=Cx(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:W(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){Z(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(F$);function z$(e,t,n){var r=e?R(e&&e.dimensions,function(e){return F(F({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new Xw(r,n),a=R(n.get(`data`),ut(D$,t));e&&(a=ot(a,ut(A$,e)));var o=M$(!!e,r);return i.initData(a,null,o),i}function B$(e){e.registerComponentModel(S$),e.registerComponentView(R$),e.registerPreprocessor(function(e){v$(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var V$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(x$),H$=ac(),U$=function(e,t,n,r){var i=e.getData(),a;if(B(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=bt(r.yAxis,r.xAxis);else{var l=O$(r,i,t,e);s=l.valueAxis,c=N$(i,cT(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=P(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&ft(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[D$(e,a[0]),D$(e,a[1]),F({},a[2])];return h[2].type=h[2].type||null,$e(h[2],h[0]),$e(h[2],h[1]),h};function W$(e){return!isNaN(e)&&!isFinite(e)}function G$(e,t,n,r){var i=1-e,a=r.dimensions[e];return W$(t[i])&&W$(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function K$(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(G$(1,n,r,e)||G$(0,n,r,e)))return!0}return A$(e,t[0])&&A$(e,t[1])}function q$(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=X(o.get(`x`),i.getWidth()),l=X(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(FA(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;W$(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):W$(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var J$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=H$(t).from,a=H$(t).to;i.each(function(t){q$(i,t,!0,e,n),q$(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Iz);this.group.add(c.group);var l=Y$(i,e,t),u=l.from,d=l.to,f=l.line;H$(t).from=u,H$(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);B(p)||(p=[p,p]),B(m)||(m=[m,m]),B(h)||(h=[h,h]),B(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:W(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){Z(e).dataModel=t,e.traverse(function(e){Z(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);q$(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=Cx(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:W(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:W(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:W(a.get(`symbolSize`),m[+!i]),symbol:W(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(F$);function Y$(e,t,n){var r=e?R(e&&e.dimensions,function(e){return F(F({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new Xw(r,n),a=new Xw(r,n),o=new Xw([],n),s=R(n.get(`data`),ut(U$,t,e,n));e&&(s=ot(s,ut(K$,e)));var c=M$(!!e,r);return i.initData(R(s,function(e){return e[0]}),null,c),a.initData(R(s,function(e){return e[1]}),null,c),o.initData(R(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function X$(e){e.registerComponentModel(V$),e.registerComponentView(J$),e.registerPreprocessor(function(e){v$(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var Z$=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(x$),Q$=ac(),$$=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=D$(e,i),s=D$(e,a),c=o.coord,l=s.coord;c[0]=bt(c[0],-1/0),c[1]=bt(c[1],-1/0),l[0]=bt(l[0],1/0),l[1]=bt(l[1],1/0);var u=et([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function e1(e){return!isNaN(e)&&!isFinite(e)}function t1(e,t,n,r){var i=1-e;return e1(t[i])&&e1(n[i])}function n1(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return FA(e,`cartesian2d`)?n&&r&&(t1(1,n,r,e)||t1(0,n,r,e))?!0:j$(e,i,a):A$(e,i)||A$(e,a)}function r1(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=X(o.get(n[0]),i.getWidth()),l=X(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(FA(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);e1(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):e1(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var i1=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],a1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=x$.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=R(i1,function(i){return r1(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new Y});this.group.add(c.group),this.markKeep(c);var l=o1(i,e,t);t.setData(l),l.each(function(t){var n=R(i1,function(n){return r1(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];cs(d),cs(f);var p=c[0]>d[1]||c[1]f[1]||u[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`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}($g),u1=ut,d1=L,f1=Y,p1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new f1),this.group.add(this._selectorGroup=new f1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Gg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Hg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Hg(I({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KX(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=G(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),d1(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new f1;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,u1(g1,f,null,r,d)).on(`mouseover`,u1(v1,m.name,null,r,d)).on(`mouseout`,u1(y1,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Z(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Oi(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:Ii(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,u1(g1,null,f,r,d)).on(`mouseover`,u1(v1,null,f,r,d)).on(`mouseout`,u1(y1,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Z(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Z(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();d1(e,function(e){var r=e.type,i=new Vu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Lm(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Xd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=m1(c,r,o,s,d,m,u),y=new f1,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(h1({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t??``):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Vu({style:zm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Iu({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Cm({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Xd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Rg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Rg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Tb);function m1(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),d1(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:OS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function h1(e){var t=e.icon||`roundRect`,n=zx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function g1(e,t,n,r){y1(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),v1(e,t,n,r)}function _1(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;rn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Iu({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Ip(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=O1[i],o=k1[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(p1);function j1(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function M1(e){yw(w1),e.registerComponentModel(T1),e.registerComponentView(A1),j1(e)}function N1(e){yw(w1),yw(M1)}var P1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=ph(DX.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DX),F1=ac();function I1(e,t,n){F1(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function L1(e,t){for(var n=F1(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function U1(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=F1(t),r=n.coordSysRecordMap||=G();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){L(TX(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,z1(t,n.model));(a.dataZoomInfoMap||=G()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){R1(r,e);return}var s=H1(a,e,t);n.enable(s.controlType,s.opt),zb(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var W1=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),I1(r,t,{pan:z(G1.pan,this),zoom:z(G1.zoom,this),scrollMove:z(G1.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){L1(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(AX),G1={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=q1[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(tV(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:K1(function(e,t,n,r,i,a){var o=q1[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:K1(function(e,t,n,r,i,a){return q1[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function K1(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(tV(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var q1={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return 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,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function J1(e){zX(e),e.registerComponentModel(P1),e.registerComponentView(W1),U1(e)}var Y1=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=ph(DX.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(DX),X1=Iu,Z1=1,Q1=30,$1=7,e0=`horizontal`,t0=`vertical`,n0=5,r0=[`line`,`bar`,`candlestick`,`scatter`],i0={easing:`cubicOut`,duration:100,delay:0},a0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=z(this._onBrush,this),this._onBrushEnd=z(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),zb(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Bb(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Y;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?$1:0,r=Gg(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===e0?{right:r.width-i.x-i.width,top:r.height-Q1-a-n,width:i.width,height:Q1}:{right:a,top:i.y,width:Q1,height:i.height},s=Xg(e.option);L([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=Hg(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===t0&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===e0&&!i?{scaleY:o?1:-1,scaleX:1}:n===e0&&i?{scaleY:o?1:-1,scaleX:-1}:n===t0&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new X1({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new X1({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:z(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:is(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Y,r=new op({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new cp({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){L(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&tt(r0,e.get(`type`))<0)){var o=r.getComponent(CX(i),a).axis,s=o0(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new X1({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new X1({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Z1,fill:Q.color.transparent}})),L([0,1],function(t){var a=o.get(`handleIcon`);!Ix[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=zx(a,-1,0,2,2,null,!0);s.attr({cursor:s0(this._orient),draggable:!0,drift:z(this._onDragMove,this,t),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=X(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Xd(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Vu({silent:!0,invisible:!f,style:zm(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=X(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Iu({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=zx(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Iu({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:z(this._onDragMove,this,`all`),ondragstart:z(this._showDataInfo,this,!0),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[is(e[0],[0,100],t,!0),is(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];tV(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:is(a.minSpan,o,i,!0),a.maxSpan==null?null:is(a.maxSpan,o,i,!0));var s=this._range,c=this._range=cs([is(r[0],i,o,!0),is(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=cs(n.slice()),i=this._size;L([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new q(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();tV(0,a,r,0,o.minSpan==null?null:is(o.minSpan,i,r,!0),o.maxSpan==null?null:is(o.maxSpan,i,r,!0)),this._range=cs([is(a[0],r,i,!0),is(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Nn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new X1({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?i0:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=TX(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(AX);function o0(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function s0(e){return e===`vertical`?`ns-resize`:`ew-resize`}function c0(e){e.registerComponentModel(Y1),e.registerComponentView(a0),zX(e)}function l0(e){yw(J1),yw(c0)}var u0={get:function(e,t,n){var r=P((d0[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},d0={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},f0=tR.mapVisual,p0=tR.eachVisual,m0=B,h0=L,g0=cs,_0=is,v0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&DQ(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=z(e,this),this.controllerVisuals=EQ(this.option.controller,t,e),this.targetVisuals=EQ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=dc(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return R(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){L(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(H(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(V(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=g0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};$e(r,n),$e(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){m0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},h0(r,function(e,t){if(tR.isValidType(t)){var n=u0.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;h0(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&P(t)||(a?i:[i]),c.symbolSize??=n&&P(n)||(a?s[0]:[s[0],s[0]]),c.symbol=f0(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;p0(l,function(e){e>u&&(u=e)}),c.symbolSize=f0(l,function(e){return _0(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}($g),y0=[20,140],b0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=y0[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=y0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=cs((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=x0(this,`outOfRange`,this.getExtent()),n=x0(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Y(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);D0([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=E0(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=cm(n.handleLabelPoints[l],sm(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=E0(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=cm(c.indicatorLabelPoint,sm(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||F0(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=rc(u,d);this._dispatchHighDown(`downplay`,T0(f[0],n)),this._dispatchHighDown(`highlight`,T0(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(kx(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function B0(e,t,n,r){for(var i=t.targetVisuals[r],a=tR.prepareVisualTypes(i),o={color:Cx(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(L0,R0),L(z0,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(H0))}function K0(e){e.registerComponentModel(b0),e.registerComponentView(M0),G0(e)}var q0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],J0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=R(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=tR.listVisualTypes(),i=this.isCategory();L(t.pieces,function(e){L(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),L(n,function(e,n){var r=!1;L(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&L(this.stateList,function(e){(t[e]||(t[e]={}))[n]=u0.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,L(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;L(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=tR.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){tR.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return L(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=ph(v0.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}(v0),J0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function Y0(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var X0=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=bt(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),L(o.viewPieceList,function(o){var s=o.piece,u=new Y;u.onclick=z(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Vu({style:zm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:W(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Rg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:T0(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return w0(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Y,o=this.visualMapModel.textStyleModel;a.add(new Vu({style:zm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=R(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=zx(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,L(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(S0);function Z0(e){e.registerComponentModel(q0),e.registerComponentView(X0),G0(e)}function Q0(e){yw(K0),yw(Z0)}var $0=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:jm(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),e2=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new $0(this);this._target=null,this.ecModel.eachSeries(function(e){Zz(e,null)}),this.shouldShow()&&Zz(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:Q.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Q.color.neutral30,borderColor:Q.color.neutral40,opacity:.3},z:10},t}($g),t2=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new gI,!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||Q.color.neutral00;var o=Gg(e,n).refContainer,s=Hg(zg(e,!0),o),c=a.lineWidth||0,l=this._contentRect=bm(s.clone(),c/2,!0,!0),u=new Y;r.add(u),u.setClipPath(new Iu({shape:l.plain()}));var d=this._targetGroup=new Y;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new Iu({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new Iu({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),r2(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),r2(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(a.x,a.y,a.width,a.height);var o=Hg({left:`center`,top:`center`,aspect:a.width/a.height},r);n.setViewRect(o.x,o.y,o.width,o.height),i.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=Kn([],e.targetTrans),n=Hn([],this._coordSys.transform,t);this._transThisToTarget=Kn([],n);var r=e.viewportRect;r=r?r.clone():new J(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(I({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new BP(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,z(this._onPan,this)).on(`zoom`,z(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=nn([],[e.oldX,e.oldY],t),r=nn([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(n2(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=nn([],[e.originX,e.originY],t);this._api.dispatchAction(n2(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(Tb);function n2(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,F(n,t),n}function r2(e,t){var n=Am(e);Mm(t.group,n.z,n.zlevel)}function i2(e){e.registerComponentModel(e2),e.registerComponentView(t2)}var a2={label:{enabled:!0},decal:{show:!1}},o2=ac(),s2={};function c2(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=P(a2);$e(r.label,e.getLocaleModel().get(`aria`),!1),$e(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=G();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),o2(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(V(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=M_(t.ecModel,t.name,s2,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=o2(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=M_(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=I(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},f2=function(){function e(e){(this._condVal=H(e)?new RegExp(e):vt(e)?e:null)??Ns(``)}return e.prototype.evaluate=function(e){var t=typeof e;return H(t)?this._condVal.test(e):ft(t)?this._condVal.test(e+``):!1},e}(),p2=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),m2=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(i),i=[e,t]}function u(e,t,n,r){M2(e,n)&&M2(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=tw:D2&&r.push(i),r}function P2(e,t,n,r,i,a,o,s,c,l){if(M2(e,n)&&M2(t,r)&&M2(i,o)&&M2(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y=0&&w=0){c.push(o,s);return}var T=[],E=[];$r(e,n,i,o,.5,T),$r(t,r,a,s,.5,E),P2(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),P2(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function F2(e,t){var n=N2(e),r=[];t||=1;for(var i=0;i0)for(var l=0;lMath.abs(l),d=I2([c,l],+!u,t),f=(u?s:l)/d.length,p=0;pi,o=I2([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f1?null:new q(p*c+e,p*l+t)}function V2(e,t,n){var r=new q;q.sub(r,n,t),r.normalize();var i=new q;return q.sub(i,e,t),i.dot(r)}function H2(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function U2(e,t,n){for(var r=e.length,i=[],a=0;ao?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),U2(t,l,u)}function G2(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);G2(e,a[0],i,r),G2(e,a[1],n-i,r)}return r}function K2(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function d4(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return R(R(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:u4(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function f4(e){return Y2(e.path,e.count)}function p4(){return{fromIndividuals:[],toIndividuals:[],count:0}}function m4(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var v4={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;g4(e)&&(l=e,u=t),g4(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(r4(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?I({delay:s(r,i)},c):c;l4(f,p,m),a(f,p,f,p,m)}}else for(var h=I({dividePath:v4[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?m4(l,u,h):h4(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;bt.length,p=l?_4(u,l):_4(f?t:e,[f?e:t]),m=0,h=0;hx4))for(var i=n.getIndices(),a=0;a0&&r.group.traverse(function(e){e instanceof Su&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function I4(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function L4(e){return B(e)?e.sort().join(`,`):e}function R4(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function z4(e,t){var n=G(),r=G(),i=G();return L(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=I4(t),c=L4(s);r.set(c,{dataGroupId:a,data:o}),B(s)&&L(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),L(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=I4(e),s=L4(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:R4(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:R4(a),data:a}]});else if(B(o)){var l=[];L(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:R4(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:R4(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:R4(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:R4(a)})}}}}),n}function B4(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:R4(t.oldData[n]),groupIdDim:e.dimension})}),L(Ls(e.to),function(e){var r=B4(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:R4(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&F4(i,a,r)}function H4(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){L(Ls(n.seriesTransition),function(e){L(Ls(e.to),function(e){for(var t=n.updatedSeries,r=0;ra.vmin?t+=a.vmin-n+(e-a.vmin)/(a.vmax-a.vmin)*a.gapReal:t+=e-n,n=a.vmax,r=!1;break}t+=a.vmin-n+a.gapReal,n=a.vmax}return r&&(t+=e-n),t},e.prototype.unelapse=function(e){for(var t=G4,n=K4,r=!0,i=0,a=0;as?o.vmin+(e-s)/(c-s)*(o.vmax-o.vmin):n+e-t,n=o.vmax,r=!1;break}t=c,n=o.vmax}return r&&(i=n+e-t),i},e}();function W4(){return new U4}var G4=0,K4=0;function q4(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};L(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=X4(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));L(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Math.max(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function J4(e,t,n,r,i,a){e!==`no`&&L(n,function(n){var o=X4(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&lt[0]&&n=0&&e<.99999}L(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:P(e),vmin:t(e.start),vmax:t(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(H(e.gap)){var s=Tt(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&L([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return L(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:r.filter(function(e){return!!e})}}function Q4(e,t){return $4(t)===$4(e)}function $4(e){return e.start+`_\0_`+e.end}function e3(e,t,n){var r=[];L(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),L(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=st(r,function(n){return Q4(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return L(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function t3(e,t,n,r){var i,a;if(e.break){var o=e.break.parsedBreak,s=st(n,function(t){return Q4(t.breakOption,e.break.parsedBreak.breakOption)}),c=r(t**+o.vmin,s.vmin),l=r(t**+o.vmax,s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type===`tpAbs`?ss(t**+(o.vmin+o.gapParsed.val))-c:o.gapParsed.val};i={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:c,vmax:l,gapParsed:u,gapReal:o.gapReal}},a=s[e.break.type]}return{brkRoundingCriterion:a,vBreak:i}}function n3(e,t,n){var r={noNegative:!0},i=Z4(e,n,r),a=Z4(e,n,r),o=Math.log(t);return a.breaks=R(a.breaks,function(e){var t=Math.log(e.vmin)/o;return{vmin:t,vmax:Math.log(e.vmax)/o,gapParsed:{type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?Math.log(e.vmin+e.gapParsed.val)/o-t:e.gapParsed.val},gapReal:e.gapReal,breakOption:e.breakOption}}),{parsedOriginal:i,parsedLogged:a}}var r3={vmin:`start`,vmax:`end`};function i3(e,t){return t&&(e||={},e.break={type:r3[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function a3(){Dh({createScaleBreakContext:W4,pruneTicksByBreak:J4,addBreaksToTicks:Y4,parseAxisBreakOption:Z4,identifyAxisBreak:Q4,serializeAxisBreakIdentifier:$4,retrieveAxisBreakPairs:e3,getTicksLogTransformBreak:t3,logarithmicParseBreaksFromOption:n3,makeAxisLabelFormatterParamBreak:i3})}var o3=ac();function s3(e,t){var n=st(e,function(e){return Oh().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function c3(e){L(e,function(e){return e.shouldRemove=!0})}function l3(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function u3(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!Oh())return;var o=Oh().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new Y({ignoreModelZ:!0}),y=a.isHorizontal(),b=o3(t).visualList||(o3(t).visualList=[]);c3(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(Tn[1]&&n.reverse(),{coordPair:n,brkId:Oh().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new q,h=new q;q.scale(m,r,-s),q.scale(h,r,1-s),iO(n[0],m),iO(n[1],h)}function p3(e,t){var n={breaks:[]};return L(t.breaks,function(r){if(r){var i=st(e.get(`breaks`,!0),function(e){return Oh().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function m3(){CM({adjustBreakLabelPair:f3,buildAxisBreakLine:d3,rectCoordBuildBreakAxis:u3,updateModelAxisBreak:p3})}function h3(e){BM(e),a3(),m3()}function g3(){FN(_3)}function _3(e,t){L(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=v3(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function v3(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof kT?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=wE(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u{let e=a.current;if(!e)return;let t=$C(e,null,{renderer:`canvas`});o.current=t,i&&(i.current=t),t.setOption(s.current),c.current&&Object.keys(c.current).forEach(e=>{t.on(e,t=>c.current?.[e]?.(t))});let n=new ResizeObserver(()=>o.current?.resize());return n.observe(e),()=>{n.disconnect(),t.dispose(),o.current=null,i&&(i.current=null)}},[]),(0,w.useEffect)(()=>{o.current?.setOption(e,{replaceMerge:[`series`]})},[e]),(0,C.jsx)(`div`,{ref:a,style:t,className:n})}var b3={healthy:`#22c55e`,degraded:`#fb923c`,critical:`#ef4444`};function x3(e){return e<.4?`#ef4444`:e<.7?`#fb923c`:`#22c55e`}var S3=w.memo(({node:e,edges:t,onClose:n,onSelectService:r,onViewTraces:i,onViewLogs:a})=>{let o=b3[e.status]||`#888`,s=t.filter(t=>t.target===e.id),c=t.filter(t=>t.source===e.id),l=(e.metrics.error_rate*100).toFixed(1),u=e.metrics.error_rate>.05;return(0,C.jsxs)(`div`,{style:{background:`#0a0a0c`,border:`1px solid #27272a`,borderRadius:8,padding:16,width:320,fontFamily:`system-ui, sans-serif`,color:`#fff`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,marginBottom:16,position:`relative`},children:[(0,C.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:o,marginRight:8,flexShrink:0}}),(0,C.jsx)(`span`,{style:{fontSize:13,fontWeight:`bold`,color:`#fff`,marginRight:8},children:e.id}),(0,C.jsx)(`span`,{style:{fontSize:9,textTransform:`uppercase`,background:o,color:`#fff`,padding:`2px 6px`,borderRadius:4,fontWeight:600},children:e.status}),(0,C.jsx)(`button`,{onClick:n,"aria-label":`Close`,style:{position:`absolute`,right:0,top:0,background:`none`,border:`none`,color:`#888`,cursor:`pointer`,fontSize:16,lineHeight:1,padding:0},children:`X`})]}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:8,marginBottom:16},children:[(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`RPS`}),(0,C.jsx)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:Math.round(e.metrics.request_rate_rps)})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`Error Rate`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`,color:u?`#ef4444`:`#fff`},children:[l,`%`]})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`Avg Latency`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:[e.metrics.avg_latency_ms,`ms`]})]}),(0,C.jsxs)(`div`,{style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:10},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,marginBottom:4},children:`P99`}),(0,C.jsxs)(`div`,{style:{fontSize:16,fontWeight:`bold`},children:[e.metrics.p99_latency_ms,`ms`]})]})]}),(0,C.jsxs)(`div`,{style:{marginBottom:16},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,fontSize:11,marginBottom:4},children:[(0,C.jsx)(`span`,{style:{color:`#888`},children:`Health Score`}),(0,C.jsx)(`span`,{style:{color:`#fff`},children:e.health_score.toFixed(2)})]}),(0,C.jsx)(`div`,{style:{background:`#27272a`,borderRadius:2,height:4},children:(0,C.jsx)(`div`,{style:{width:`${e.health_score*100}%`,height:4,borderRadius:2,background:x3(e.health_score)}})})]}),s.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:12},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Upstream`}),s.map(e=>(0,C.jsxs)(`div`,{onClick:()=>r(e.source),style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,cursor:`pointer`,display:`flex`,justifyContent:`space-between`,fontSize:12},children:[(0,C.jsx)(`span`,{children:e.source}),(0,C.jsxs)(`span`,{style:{color:`#888`},children:[e.call_count,` calls`]})]},e.source))]}),c.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:12},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Downstream`}),c.map(e=>(0,C.jsxs)(`div`,{onClick:()=>r(e.target),style:{background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,cursor:`pointer`,display:`flex`,justifyContent:`space-between`,fontSize:12},children:[(0,C.jsx)(`span`,{children:e.target}),(0,C.jsxs)(`span`,{style:{color:`#888`},children:[e.call_count,` calls`]})]},e.target))]}),e.alerts.length>0&&(0,C.jsxs)(`div`,{style:{marginBottom:16},children:[(0,C.jsx)(`div`,{style:{fontSize:10,color:`#888`,textTransform:`uppercase`,marginBottom:6},children:`Alerts`}),e.alerts.map((e,t)=>(0,C.jsx)(`div`,{style:{background:`#1c0707`,border:`1px solid #27272a`,borderRadius:6,padding:`6px 10px`,marginBottom:4,fontSize:11,color:`#fca5a5`},children:e},t))]}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:8},children:[(0,C.jsx)(`button`,{onClick:()=>i(e.id),style:{flex:1,background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,color:`#fff`,padding:`8px 0`,cursor:`pointer`,fontSize:12},children:`View Traces →`}),(0,C.jsx)(`button`,{onClick:()=>a(e.id),style:{flex:1,background:`#18181b`,border:`1px solid #27272a`,borderRadius:6,color:`#fff`,padding:`8px 0`,cursor:`pointer`,fontSize:12},children:`View Logs →`})]})]})});function C3(e,t){let n=new Map;if(e.length===0)return n;if(e.length===1)return n.set(e[0].id,0),n;let r=new Set(e.map(e=>e.id)),i=new Map,a=new Map;for(let e of r)i.set(e,[]),a.set(e,[]);for(let e of t)!r.has(e.source)||!r.has(e.target)||(a.get(e.source).push(e.target),i.get(e.target).push(e.source));let o=e.filter(e=>i.get(e.id).length===0);if(o.length===0){let t=[...e].sort((e,t)=>(t.span_count??0)-(e.span_count??0)),r=Math.max(1,Math.ceil(t.length/4));for(let e=0;ee.id);for(let e of o)s.set(e.id,0);let l=0;for(;ls.get(n)&&(s.set(n,e),c.push(n))}}let u=Math.max(...s.values());for(let t of e){let e=t.id,r=i.get(e),o=a.get(e),c=s.get(e);if(r.length===0)n.set(e,0);else if(o.length===0&&r.length>0)n.set(e,3);else if(u<=1)n.set(e,1);else{let t=c/u<=.5?1:2;n.set(e,t)}}return n}var w3=60;function T3(e,t,n){let r=new Map;if(e.length===0)return r;let i=C3(e,t),a=Math.max(...i.values()),o=new Map;for(let[e,t]of i)o.has(t)||o.set(t,[]),o.get(t).push(e);let s=a+1,c=n.height-2*w3,l=s>1?c/(s-1):0;for(let[e,t]of o){let i=s>1?w3+e*l:n.height/2,a=n.width-2*w3,o=t.length>1?a/(t.length-1):0;for(let a=0;a1?w3+a*o:n.width/2;r.set(t[a],{x:s,y:i,tier:e})}}return r}function E3(e){if(e.length===0)return 10;let t=[...e].map(e=>e.call_count).sort((e,t)=>e-t),n=Math.floor(t.length/2),r=t.length%2==0?(t[n-1]+t[n])/2:t[n];return Math.max(r,10)}var D3={healthy:{bg:`#0f2618`,border:`#166534`,dot:`#22c55e`},degraded:{bg:`#1a1207`,border:`#854d0e`,dot:`#fb923c`},critical:{bg:`#1c0707`,border:`#991b1b`,dot:`#ef4444`}};function O3(e){return D3[e]?.bg??`#18181b`}function k3(e){return D3[e]?.border??`#27272a`}function A3(e){return D3[e]?.dot??`#888`}function j3(e){return e===`critical`?`#ef4444`:e===`degraded`?`#fb923c`:`#3f3f46`}var M3=[`GATEWAY`,`API LAYER`,`SERVICES`,`DATA`],N3=w.memo(({graph:e,cache:t,loading:n,error:r,onNavigateToTraces:i,onNavigateToLogs:a})=>{let[o,s]=(0,w.useState)(null),[c,l]=(0,w.useState)(10),[u,d]=(0,w.useState)(``),f=(0,w.useRef)(null),[p,m]=(0,w.useState)(``),h=(0,w.useRef)(null),g=(0,w.useCallback)(e=>{let t=e.target.value;d(t),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>m(t),300)},[]);(0,w.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,w.useEffect)(()=>{e?.edges&&l(E3(e.edges))},[e]);let _=e?.nodes??[],v=e?.edges??[],y=_.length>=70,b=(0,w.useMemo)(()=>Math.max(1,...v.map(e=>e.call_count)),[v]),x=(0,w.useMemo)(()=>v.filter(e=>e.call_count>=c).slice(0,500),[v,c]),S=(0,w.useMemo)(()=>_.length===0?new Map:T3(_.map(e=>({id:e.id,span_count:e.metrics.span_count_1h})),v.map(e=>({source:e.source,target:e.target})),{width:900,height:600}),[_,v]),T=(0,w.useMemo)(()=>{let e=new Map;for(let t of S.values())(!e.has(t.tier)||t.y{let n=e.id.length>16?e.id.slice(0,15)+`…`:e.id,r=Math.round(e.metrics.request_rate_rps),i=(e.metrics.error_rate*100).toFixed(1);return t?`{dot|●} {name|${n}}`:`{dot|●} {name|${n}}\n{metric|${r} rps ${i}% err}`},[]),D=(0,w.useMemo)(()=>{let e=_.map(e=>{let t=S.get(e.id)??{x:0,y:0},n=!p||e.id.toLowerCase().includes(p.toLowerCase());return{name:e.id,x:t.x,y:t.y,symbol:`roundRect`,symbolSize:y?[90,36]:[120,46],itemStyle:{color:O3(e.status),borderColor:k3(e.status),borderWidth:1,shadowColor:e.status===`healthy`?`transparent`:k3(e.status),shadowBlur:e.status===`healthy`?0:8,opacity:n?1:.2},label:{show:!0,formatter:()=>E(e,y),rich:{dot:{fontSize:y?6:8,color:A3(e.status)},name:{fontSize:y?9:11,fontWeight:`bold`,color:`#e4e4e7`},metric:{fontSize:y?7:9,color:`#71717a`,padding:[2,0,0,0]}}}}}),t=x.map(e=>({source:e.source,target:e.target,lineStyle:{width:Math.max(1,Math.min(4,Math.log10(e.call_count+1))),color:j3(e.status),opacity:.3+.5*(e.call_count/b),curveness:.1},symbol:[`none`,`arrow`],symbolSize:6})),n=[];for(let[e,t]of T)e>=0&&e{let t=e;if(t.dataType===`node`){let e=_.find(e=>e.id===t.name);return e?[`${e.id}`,`Status: ${e.status}`,`RPS: ${Math.round(e.metrics.request_rate_rps)}`,`Error: ${(e.metrics.error_rate*100).toFixed(1)}%`,`Avg Latency: ${e.metrics.avg_latency_ms}ms`].join(`
`):``}if(t.dataType===`edge`&&t.data){let e=v.find(e=>e.source===t.data.source&&e.target===t.data.target);return e?[`${e.source} → ${e.target}`,`Calls: ${e.call_count}`,`Avg Latency: ${e.avg_latency_ms}ms`,`Error: ${(e.error_rate*100).toFixed(1)}%`].join(`
`):``}return``}},graphic:n,series:[{type:`graph`,layout:`force`,force:{repulsion:y?200:350,gravity:.08,edgeLength:y?[80,160]:[120,250],friction:.6,layoutAnimation:!0},roam:!0,data:e,links:t,emphasis:{focus:`adjacency`},lineStyle:{color:`source`}}]}},[_,v,x,S,T,y,p,b,E]),O=(0,w.useMemo)(()=>({click:e=>{let t=e;t.dataType===`node`&&t.name?s(_.find(e=>e.id===t.name)??null):s(null)}}),[_]),k=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`graphRoam`,zoom:1.3})},[]),A=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`graphRoam`,zoom:.7})},[]),j=(0,w.useCallback)(()=>{h.current?.dispatchAction({type:`restore`})},[]),ee=(0,w.useCallback)(e=>{let t=_.find(t=>t.id===e);t&&s(t)},[_]);return n?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#71717a`,fontSize:13},children:`Loading service map...`})}):r?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ef4444`,fontSize:13},children:r})}):!e||_.length===0?(0,C.jsx)(`div`,{className:`service-map-container`,children:(0,C.jsx)(`div`,{style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#71717a`,fontSize:13},children:`No services discovered yet.`})}):(0,C.jsxs)(`div`,{className:`service-map-container`,children:[(0,C.jsxs)(`div`,{className:`service-map-toolbar`,children:[(0,C.jsxs)(`div`,{className:`search-wrap`,style:{maxWidth:220},children:[(0,C.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,children:[(0,C.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,C.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),(0,C.jsx)(`input`,{className:`search-input`,type:`text`,placeholder:`Filter services...`,value:u,onChange:g,style:{paddingLeft:28,fontSize:11}})]}),(0,C.jsxs)(`div`,{className:`edge-slider`,children:[(0,C.jsx)(`span`,{children:`Edges ≥`}),(0,C.jsx)(`input`,{type:`range`,min:1,max:b,value:c,onChange:e=>l(Number(e.target.value))}),(0,C.jsx)(`span`,{children:c})]}),(0,C.jsx)(`div`,{style:{flex:1}}),(0,C.jsxs)(`div`,{className:`zoom-controls`,children:[(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:k,title:`Zoom in`,children:`+`}),(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:A,title:`Zoom out`,children:`−`}),(0,C.jsx)(`button`,{className:`zoom-btn`,onClick:j,title:`Fit to view`,children:`⊛`})]})]}),(0,C.jsxs)(`div`,{className:`service-map-body`,children:[(0,C.jsx)(`div`,{className:`service-map-canvas`,children:(0,C.jsx)(y3,{option:D,style:{width:`100%`,height:`100%`},onEvents:O,chartRef:h})}),o&&(0,C.jsx)(`div`,{className:`side-panel`,children:(0,C.jsx)(S3,{node:o,edges:v,onClose:()=>s(null),onSelectService:ee,onViewTraces:i,onViewLogs:a})})]})]})});function P3(){return P3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var G3=-1;function K3(e){if(e===void 0&&(e=!1),G3===-1||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,document.body.appendChild(t),G3=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return G3}var q3=null;function J3(e){if(e===void 0&&(e=!1),q3===null||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,n.direction=`rtl`;var r=document.createElement(`div`),i=r.style;return i.width=`100px`,i.height=`100px`,t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?q3=`positive-descending`:(t.scrollLeft=1,q3=t.scrollLeft===0?`negative`:`positive-ascending`),document.body.removeChild(t),q3}return q3}var Y3=150,X3=function(e,t){return e};function Z3(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){L3(t,e);function t(t){var r=e.call(this,t)||this;return r._instanceProps=c(r.props,F3(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:F3(r),isScrolling:!1,scrollDirection:`forward`,scrollOffset:typeof r.props.initialScrollOffset==`number`?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=V3(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=V3(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t=r.props,a=t.direction,o=t.itemSize,s=t.layout,c=r._getItemStyleCache(l&&o,l&&s,l&&a),u;if(c.hasOwnProperty(e))u=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p=a===`horizontal`||s===`horizontal`,m=a===`rtl`,h=p?d:0;c[e]=u={position:`absolute`,left:m?void 0:h,right:m?h:void 0,top:p?0:d,height:p?`100%`:f,width:p?f:`100%`}}return u},r._getItemStyleCache=void 0,r._getItemStyleCache=V3(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,a=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,o=i;if(t===`rtl`)switch(J3()){case`negative`:o=-i;break;case`positive-descending`:o=a-n-i;break}return o=Math.max(0,Math.min(o,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetc.clientWidth?K3():0:c.scrollHeight>c.clientHeight?K3():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if(typeof n==`number`&&this._outerRef!=null){var i=this._outerRef;t===`horizontal`||r===`horizontal`?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&this._outerRef!=null){var a=this._outerRef;if(t===`horizontal`||n===`horizontal`)if(t===`rtl`)switch(J3()){case`negative`:a.scrollLeft=-i;break;case`positive-ascending`:a.scrollLeft=i;break;default:var o=a.clientWidth;a.scrollLeft=a.scrollWidth-o-i;break}else a.scrollLeft=i;else a.scrollTop=i}this._callPropsCallbacks()},d.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&U3(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,o=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=d===void 0?X3:d,p=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,_=e.useIsScrolling,v=e.width,y=this.state.isScrolling,b=i===`horizontal`||p===`horizontal`,x=b?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],T=S[1],E=[];if(l>0)for(var D=C;D<=T;D++)E.push((0,w.createElement)(t,{data:u,key:f(D,u),index:D,isScrolling:_?y:void 0,style:this._getItemStyle(D)}));var O=r(this.props,this._instanceProps);return(0,w.createElement)(m||h||`div`,{className:n,onScroll:x,ref:this._outerRefSetter,style:P3({position:`relative`,height:a,width:v,overflow:`auto`,WebkitOverflowScrolling:`touch`,willChange:`transform`,direction:i},g)},(0,w.createElement)(s||c||`div`,{children:E,ref:o,style:{height:b?`100%`:O,pointerEvents:y?`none`:void 0,width:b?O:`100%`}}))},d._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered==`function`&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if(typeof this.props.onScroll==`function`){var a=this.state,o=a.scrollDirection,s=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(o,s,c)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,a=r.scrollDirection,c=r.scrollOffset;if(t===0)return[0,0,0,0];var l=o(this.props,c,this._instanceProps),u=s(this.props,l,c,this._instanceProps),d=!i||a===`backward`?Math.max(1,n):1,f=!i||a===`forward`?Math.max(1,n):1;return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(w.PureComponent),t.defaultProps={direction:`ltr`,itemData:void 0,layout:`vertical`,overscanCount:2,useIsScrolling:!1},t}var Q3=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},$3=50,e6=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,a=n.lastMeasuredIndex;if(t>a){var o=0;if(a>=0){var s=i[a];o=s.offset+s.size}for(var c=a+1;c<=t;c++){var l=r(c);i[c]={offset:o,size:l},o+=l}n.lastMeasuredIndex=t}return i[t]},t6=function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?n6(e,t,i,0,n):r6(e,t,Math.max(0,i),n)},n6=function(e,t,n,r,i){for(;r<=n;){var a=r+Math.floor((n-r)/2),o=e6(e,a,t).offset;if(o===i)return a;oi&&(n=a-1)}return r>0?r-1:0},r6=function(e,t,n,r){for(var i=e.itemCount,a=1;n=n&&(a=n-1),a>=0){var s=r[a];o=s.offset+s.size}var c=(n-a-1)*i;return o+c},a6=Z3({getItemOffset:function(e,t,n){return e6(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:i6,getOffsetForIndexAndAlignment:function(e,t,n,r,i,a){var o=e.direction,s=e.height,c=e.layout,l=e.width,u=o===`horizontal`||c===`horizontal`?l:s,d=e6(e,t,i),f=i6(e,i),p=Math.max(0,Math.min(f-u,d.offset)),m=Math.max(0,d.offset-u+d.size+a);switch(n===`smart`&&(n=r>=m-u&&r<=p+u?`auto`:`center`),n){case`start`:return p;case`end`:return m;case`center`:return Math.round(m+(p-m)/2);default:return r>=m&&r<=p?r:r=h-f&&r<=m+f?`auto`:`center`),n){case`start`:return m;case`end`:return h;case`center`:var g=Math.round(h+(m-h)/2);return gp+Math.floor(f/2)?p:g;default:return r>=h&&r<=m?r:rn.onSelect(r.trace_id),className:`card`,style:{textAlign:`left`,background:i?`var(--nav-active-bg)`:`var(--bg-card)`,borderColor:i?`var(--color-accent)`:`var(--border)`,padding:`0.9rem`,cursor:`pointer`,width:`100%`,height:`100%`,display:`block`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`},children:r.service_name}),(0,C.jsx)(`span`,{className:`badge ${r.status.includes(`ERROR`)?`badge-red`:`badge-green`}`,children:r.status||`OK`})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`,marginBottom:`0.3rem`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r.operation||r.trace_id}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`,flexWrap:`wrap`},children:[(0,C.jsxs)(`span`,{className:`badge`,children:[r.span_count,` spans`]}),(0,C.jsxs)(`span`,{className:`badge`,children:[r.duration_ms?.toFixed(1),` ms`]})]})]})})}function l6({traces:e,selected:t,loading:n,error:r,onSelect:i,serviceFilter:a,onClearFilter:o}){let s=a?e.filter(e=>e.service_name===a):e,c=(0,w.useRef)(null),[l,u]=(0,w.useState)({width:0,height:0});return(0,w.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;u({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,C.jsxs)(`div`,{className:`traces-layout`,children:[(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,gap:`0.8rem`,minHeight:0,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{flexShrink:0},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,marginBottom:`0.35rem`},children:`Traces`}),(0,C.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700},children:`Recent distributed requests`})]}),a&&(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,marginBottom:8,padding:`4px 8px`,background:`#1e3a5f`,borderRadius:4,fontSize:11,color:`#38bdf8`},children:[(0,C.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,C.jsx)(`button`,{onClick:o,style:{background:`none`,border:`none`,color:`#38bdf8`,cursor:`pointer`,fontSize:12},children:`×`})]}),n&&(0,C.jsx)(`div`,{style:{color:`var(--text-muted)`},children:`Loading traces…`}),r&&(0,C.jsx)(`div`,{style:{color:`#ef4444`},children:r}),(0,C.jsx)(`div`,{ref:c,style:{flex:1,minHeight:0,overflow:`hidden`},children:l.height>0&&s.length>0&&(0,C.jsx)(o6,{height:l.height,width:l.width,itemCount:s.length,itemSize:s6,itemData:{traces:s,selectedId:t?.trace_id,onSelect:i},overscanCount:6,children:c6})})]}),(0,C.jsxs)(`div`,{className:`traces-right-col`,children:[(0,C.jsx)(`div`,{className:`card`,children:(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`},children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700},children:t?.trace_id??`No trace selected`}),(0,C.jsx)(`div`,{style:{fontSize:`0.73rem`,color:`var(--text-muted)`,marginTop:`0.2rem`},children:t?.service_name})]}),t&&(0,C.jsx)(`span`,{className:`badge ${t.status.includes(`ERROR`)?`badge-red`:`badge-green`}`,children:t.status})]})}),(0,C.jsxs)(`div`,{className:`card`,style:{overflow:`auto`},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.8rem`,fontWeight:700,marginBottom:`0.8rem`},children:`Span Waterfall`}),(0,C.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.7rem`},children:(t?.spans??[]).map(e=>(0,C.jsxs)(`div`,{style:{border:`1px solid var(--border)`,borderRadius:10,padding:`0.8rem`,background:`var(--bg-card)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.78rem`},children:e.operation_name}),(0,C.jsxs)(`span`,{className:`badge`,children:[(e.duration/1e3).toFixed(1),` ms`]})]}),(0,C.jsx)(`div`,{style:{height:8,borderRadius:999,background:`var(--bg-base)`,overflow:`hidden`,marginBottom:`0.45rem`},children:(0,C.jsx)(`div`,{style:{width:`${Math.min(100,Math.max(6,e.duration/Math.max(t?.duration||1,1)*100))}%`,height:`100%`,background:`linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))`}})}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:e.service_name})]},e.id))})]})]})]})}var u6=62,d6=19,f6=80,p6=9;function m6(e){let t=e?e.length:0;return u6+Math.max(1,Math.ceil(t/f6))*d6+p6}function h6({index:e,style:t,data:n}){let r=n.logs[e];return(0,C.jsx)(`div`,{style:{...t,paddingBottom:`${p6}px`,boxSizing:`border-box`},children:(0,C.jsxs)(`div`,{style:{padding:`0.75rem 0.9rem`,borderRadius:10,border:`1px solid var(--border)`,background:`var(--bg-card)`,height:`100%`,boxSizing:`border-box`,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.45rem`,alignItems:`center`,flexWrap:`wrap`},children:[(0,C.jsx)(`span`,{className:`badge ${r.severity===`ERROR`?`badge-red`:r.severity===`WARN`?`badge-orange`:`badge-blue`}`,children:r.severity}),(0,C.jsx)(`span`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:r.service_name})]}),(0,C.jsx)(`span`,{style:{fontSize:`0.68rem`,color:`var(--text-dim)`},children:new Date(r.timestamp).toLocaleTimeString()})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,color:`var(--text-secondary)`,lineHeight:1.6,wordBreak:`break-word`},children:r.body})]})})}function g6({logs:e,similar:t,loading:n,error:r,onSimilar:i,serviceFilter:a,onClearFilter:o}){let[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(``),d=(0,w.useMemo)(()=>{let t=e;return a&&(t=t.filter(e=>e.service_name===a)),l&&(t=t.filter(e=>e.severity===l)),t},[e,l,a]),f=(0,w.useRef)(null),[p,m]=(0,w.useState)({width:0,height:0}),h=(0,w.useRef)(null);return(0,w.useEffect)(()=>{let e=f.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m({width:e,height:n})}});return t.observe(e),()=>t.disconnect()},[]),(0,w.useEffect)(()=>{h.current?.resetAfterIndex(0)},[d,p.width]),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`minmax(320px, 420px) minmax(0, 1fr)`,gap:`1rem`,minHeight:0,flex:1},children:[(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,gap:`0.9rem`,minHeight:0},children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{style:{fontSize:`0.74rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,marginBottom:`0.35rem`},children:`Live Log Search`}),(0,C.jsx)(`div`,{style:{fontSize:`0.95rem`,fontWeight:700},children:`Tail, filter, and query similar incidents`})]}),a&&(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,marginBottom:8,padding:`4px 8px`,background:`#1e3a5f`,borderRadius:4,fontSize:11,color:`#38bdf8`},children:[(0,C.jsxs)(`span`,{children:[`Filtered: `,a]}),(0,C.jsx)(`button`,{onClick:o,style:{background:`none`,border:`none`,color:`#38bdf8`,cursor:`pointer`,fontSize:12},children:`×`})]}),(0,C.jsx)(`input`,{className:`search-input`,style:{paddingLeft:`10px`},value:s,onChange:e=>c(e.target.value),placeholder:`Find similar logs...`,spellCheck:!1}),(0,C.jsx)(`div`,{style:{display:`flex`,gap:`0.4rem`,flexWrap:`wrap`},children:[``,`INFO`,`WARN`,`ERROR`].map(e=>(0,C.jsx)(`button`,{className:`mode-pill${l===e?` active`:``}`,onClick:()=>u(e),children:e||`all`},e||`all`))}),(0,C.jsx)(`button`,{className:`mc-send-btn`,disabled:!s.trim(),onClick:()=>i(s),children:`Run Similarity Search`}),(0,C.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.6rem`,overflow:`auto`},children:t.map(e=>(0,C.jsxs)(`div`,{style:{border:`1px solid var(--border)`,borderRadius:10,padding:`0.8rem`,background:`var(--bg-card)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.35rem`},children:[(0,C.jsx)(`div`,{style:{fontWeight:700,fontSize:`0.76rem`},children:e.service_name}),(0,C.jsx)(`span`,{className:`badge ${e.severity===`ERROR`?`badge-red`:e.severity===`WARN`?`badge-orange`:`badge-blue`}`,children:e.severity})]}),(0,C.jsx)(`div`,{style:{fontSize:`0.72rem`,color:`var(--text-secondary)`,lineHeight:1.5},children:e.body})]},`similar-${e.id}`))})]}),(0,C.jsxs)(`div`,{className:`card`,style:{display:`flex`,flexDirection:`column`,minHeight:0,overflow:`hidden`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`0.8rem`,flexShrink:0},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.85rem`,fontWeight:700},children:`Stream`}),n&&(0,C.jsx)(`span`,{className:`badge`,children:`Loading…`})]}),r&&(0,C.jsx)(`div`,{style:{color:`#ef4444`,marginBottom:`0.8rem`,flexShrink:0},children:r}),(0,C.jsx)(`div`,{ref:f,style:{flex:1,minHeight:0,overflow:`hidden`},children:p.height>0&&d.length>0&&(0,C.jsx)(a6,{ref:h,height:p.height,width:p.width,itemCount:d.length,itemSize:e=>m6(d[e]?.body??``),estimatedItemSize:90,itemData:{logs:d},overscanCount:6,children:h6})})]})]})}function _6(e,t){if(t.includes(`application/json`))return JSON.parse(e);let n=e.split(` -`).find(e=>e.startsWith(`data: `))?.slice(6);return n?JSON.parse(n):{}}function v6(e=`/mcp`){let[t,n]=(0,w.useState)(`idle`),[r,i]=(0,w.useState)([]),[a,o]=(0,w.useState)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(0),l=()=>{let e={"Content-Type":`application/json`,Accept:`application/json, text/event-stream`};return s.current&&(e[`Mcp-Session-Id`]=s.current),e},u=async t=>{let n=performance.now(),r=await fetch(e,{method:`POST`,headers:l(),body:JSON.stringify(t)}),i=r.headers.get(`Mcp-Session-Id`);return i&&(s.current=i),{data:_6(await r.text(),r.headers.get(`content-type`)??``),status:r.status,ms:Math.round(performance.now()-n)}},d=async(e,t)=>{try{let n=await u({jsonrpc:`2.0`,id:++c.current,method:e,params:t});return{result:n.data.result,error:n.data.error,timing:n.ms}}catch(e){return{error:{code:-1,message:String(e)}}}},f=async()=>{n(`connecting`),o(null);let e=await d(`initialize`,{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}});if(e.error){n(`error`),o(e.error.message);return}n(`connected`);let t=await d(`tools/list`,{});t.error||i(t.result?.tools??[])};return(0,w.useEffect)(()=>{f()},[]),{status:t,tools:r,error:a,call:d,connect:f,send:u}}function y6({tool:e,index:t,onCall:n,onRPC:r}){let i=e.inputSchema?.properties||{},a=e.inputSchema?.required||[],o=Object.keys(i).length;return(0,C.jsxs)(`div`,{className:`mc-tool-card`,children:[(0,C.jsx)(`div`,{style:{position:`absolute`,inset:`0 0 auto 0`,height:2,background:`linear-gradient(90deg, var(--color-accent), var(--color-accent-hover))`}}),(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,gap:`0.75rem`,marginBottom:`0.4rem`},children:[(0,C.jsx)(`span`,{style:{fontFamily:`ui-monospace, monospace`,fontSize:`0.8rem`,fontWeight:700,color:`var(--text-primary)`},children:e.name}),o>0&&(0,C.jsxs)(`span`,{className:`mc-badge`,style:{fontSize:`0.6rem`},children:[o,`p`]})]}),(0,C.jsx)(`p`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`,lineHeight:1.55,marginBottom:`0.75rem`,minHeight:`3.2em`},children:e.description||`No description provided.`}),o>0&&(0,C.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.3rem`,marginBottom:`0.8rem`},children:Object.entries(i).map(([e,t])=>(0,C.jsxs)(`span`,{className:`mc-param-tag ${a.includes(e)?`mc-param-req`:`mc-param-opt`}`,children:[e,(0,C.jsxs)(`span`,{style:{opacity:.45,marginLeft:2},children:[`:`,t.type??`any`]})]},e))}),(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`,marginTop:`auto`},children:[(0,C.jsxs)(`button`,{className:`mc-btn-call`,onClick:()=>n(t),style:{display:`flex`,alignItems:`center`,gap:`0.35rem`},children:[(0,C.jsx)(pe,{size:10}),` Call`]}),(0,C.jsxs)(`button`,{className:`mc-btn-rpc`,onClick:()=>r(t),style:{display:`flex`,alignItems:`center`,gap:`0.35rem`},children:[(0,C.jsx)(be,{size:10}),` JSON-RPC`]})]})]})}function b6(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}function x6({tool:e,onClose:t,onCall:n}){let[r,i]=(0,w.useState)(()=>JSON.stringify(b6(e),null,2)),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(!1),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(``);return(0,C.jsxs)(O,{open:!0,onClose:t,title:(0,C.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.45rem`},children:[(0,C.jsx)(pe,{size:12,style:{color:`var(--color-accent)`}}),(0,C.jsx)(`span`,{children:`Call`}),(0,C.jsx)(`code`,{style:{background:`transparent`,padding:0,color:`var(--color-accent)`},children:e.name})]}),description:e.description,size:`lg`,children:[d&&(0,C.jsx)(`div`,{style:{padding:`0.6rem 1.25rem`,background:`rgba(239,68,68,0.08)`,borderBottom:`1px solid rgba(239,68,68,0.2)`,color:`#ef4444`,fontSize:`0.72rem`,marginBottom:`0.75rem`},children:d}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,minHeight:0,flex:1},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,padding:`1rem`,borderRight:`1px solid var(--border)`},children:[(0,C.jsx)(`label`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Arguments`}),(0,C.jsx)(`textarea`,{className:`mc-textarea`,style:{flex:1,minHeight:`16rem`},value:r,onChange:e=>i(e.target.value),spellCheck:!1}),(0,C.jsx)(`button`,{className:`mc-send-btn`,disabled:s,onClick:async()=>{let t;try{t=JSON.parse(r||`{}`)}catch(e){f(`Invalid JSON: ${String(e)}`);return}c(!0),f(``);let i=performance.now();try{o(xe(await n(e.name,t))),u(`${Math.round(performance.now()-i)}ms`)}catch(e){o(``),f(String(e))}finally{c(!1)}},children:s?`Executing…`:`Execute Tool`})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.55rem`,padding:`1rem`,minHeight:0},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,C.jsx)(`label`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Result`}),l&&(0,C.jsx)(`span`,{className:`mc-badge`,children:l})]}),(0,C.jsx)(`pre`,{className:`mc-code`,style:{flex:1,minHeight:`16rem`,overflow:`auto`,padding:`0.9rem`},dangerouslySetInnerHTML:{__html:a||``}})]})]})]})}function S6(e){let t={},n=e.inputSchema?.properties||{},r=e.inputSchema?.required||[];for(let[e,i]of Object.entries(n))t[e]=r.includes(e)?i.type===`number`?0:i.type===`boolean`?!1:``:null;return t}var C6={"tools/call":(e,t)=>({jsonrpc:`2.0`,id:1,method:`tools/call`,params:{name:e,arguments:t}}),"tools/list":()=>({jsonrpc:`2.0`,id:1,method:`tools/list`}),initialize:()=>({jsonrpc:`2.0`,id:1,method:`initialize`,params:{protocolVersion:`2024-11-05`,capabilities:{},clientInfo:{name:`otelcontext-ui`,version:`1.0.0`}}}),ping:()=>({jsonrpc:`2.0`,id:1,method:`ping`}),"resources/list":()=>({jsonrpc:`2.0`,id:1,method:`resources/list`})};function w6({tool:e,onClose:t,onSend:n}){let r=e?.name??`tool_name`,i=e?S6(e):{},[a,o]=(0,w.useState)(`tools/call`),[s,c]=(0,w.useState)(JSON.stringify(C6[`tools/call`](r,i),null,2)),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(``),[p,m]=(0,w.useState)(!1),[h,g]=(0,w.useState)(``),_=(0,w.useRef)(null),v=e=>{if(o(e),e===`custom`)return;let t=e===`tools/call`?C6[e](r,i):C6[e]();c(JSON.stringify(t,null,2))};return(0,C.jsxs)(O,{open:!0,onClose:t,title:(0,C.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,C.jsx)(be,{size:14,style:{color:`var(--color-accent)`}}),(0,C.jsx)(`span`,{style:{fontFamily:`ui-monospace, monospace`},children:r}),(0,C.jsx)(`span`,{className:`mc-badge`,children:a})]}),description:e?.description||`Manual JSON-RPC request builder`,size:`lg`,children:[(0,C.jsx)(T,{items:[{value:`tools/call`,label:`call`},{value:`tools/list`,label:`list`},{value:`initialize`,label:`init`},{value:`ping`,label:`ping`},{value:`resources/list`,label:`resources`},{value:`custom`,label:`custom`}].map(e=>({key:e.value,label:e.label})),value:a,variant:`line`,onChange:e=>v(e)}),h&&(0,C.jsx)(`div`,{style:{padding:`0.6rem 1.25rem`,background:`rgba(239,68,68,0.08)`,borderBottom:`1px solid rgba(239,68,68,0.2)`,color:`#ef4444`,fontSize:`0.72rem`,marginTop:`0.75rem`},children:h}),(0,C.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,flex:1,minHeight:0,marginTop:`0.75rem`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,minHeight:0,borderRight:`1px solid var(--border)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0.6rem 0.9rem`,borderBottom:`1px solid var(--border)`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Request`}),(0,C.jsxs)(`button`,{ref:_,className:`mc-copy-btn`,onClick:async()=>{if(await navigator.clipboard.writeText(s),!_.current)return;let e=_.current.innerHTML;_.current.textContent=`Copied`,window.setTimeout(()=>{_.current&&(_.current.innerHTML=e)},1200)},children:[(0,C.jsx)(ue,{size:11}),` Copy`]})]}),(0,C.jsx)(`div`,{style:{padding:`0.75rem`,flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:(0,C.jsx)(`textarea`,{className:`mc-textarea`,style:{flex:1,minHeight:0},value:s,onChange:e=>c(e.target.value),spellCheck:!1})}),(0,C.jsx)(`div`,{style:{padding:`0 0.75rem 0.75rem`},children:(0,C.jsxs)(`button`,{className:`mc-send-btn`,disabled:p,onClick:async()=>{let e;try{e=JSON.parse(s)}catch(e){g(`Invalid JSON: ${String(e)}`);return}m(!0),g(``);try{let{data:t,status:r,ms:i}=await n(e);u(xe(t)),f(`${i}ms · HTTP ${r}`)}catch(e){u(``),g(String(e))}finally{m(!1)}},style:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`0.45rem`},children:[(0,C.jsx)(ve,{size:12}),` `,p?`Sending…`:`Send`]})})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0.6rem 0.9rem`,borderBottom:`1px solid var(--border)`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.62rem`,textTransform:`uppercase`,letterSpacing:`0.12em`,color:`var(--text-dim)`,fontWeight:700},children:`Response`}),d&&(0,C.jsx)(`span`,{className:`mc-badge`,children:d})]}),(0,C.jsx)(`pre`,{className:`mc-code`,style:{margin:`0.75rem`,flex:1,minHeight:0,overflow:`auto`,padding:`0.9rem`},dangerouslySetInnerHTML:{__html:l||``}})]})]})]})}var T6={idle:`#555`,connecting:`#eab308`,connected:`#22c55e`,error:`#ef4444`};function E6(){let{status:e,tools:t,error:n,call:r,connect:i,send:a}=v6(),[o,s]=(0,w.useState)(null),[c,l]=(0,w.useState)(null),u=T6[e];return(0,C.jsxs)(`div`,{className:`mcp-view`,children:[(0,C.jsxs)(`div`,{className:`mc-status-bar`,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.55rem`},children:[(0,C.jsxs)(`span`,{style:{position:`relative`,display:`inline-flex`,width:8,height:8},children:[(0,C.jsx)(`span`,{style:{position:`absolute`,inset:0,borderRadius:`50%`,background:u,opacity:e===`connected`?.4:0,animation:e===`connected`?`mc-ping 2s cubic-bezier(0,0,0.2,1) infinite`:`none`}}),(0,C.jsx)(`span`,{style:{width:8,height:8,borderRadius:`50%`,background:u}})]}),(0,C.jsx)(`span`,{style:{fontSize:`0.78rem`,fontWeight:600,color:u,textTransform:`capitalize`},children:e})]}),(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.4rem`,fontSize:`0.72rem`,color:`var(--text-dim)`},children:[(0,C.jsx)(me,{size:11,style:{opacity:.5}}),(0,C.jsxs)(`code`,{style:{fontFamily:`ui-monospace, monospace`,padding:`0.15rem 0.4rem`,borderRadius:4,background:`var(--bg-card)`,border:`1px solid var(--border)`,color:`var(--text-secondary)`},children:[window.location.origin,`/mcp`]})]}),(0,C.jsx)(`span`,{className:`mc-badge`,children:`HTTP Streamable MCP · JSON-RPC 2.0`}),(0,C.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,C.jsxs)(`button`,{className:`mc-btn-icon`,onClick:()=>void i(),children:[(0,C.jsx)(ge,{size:12}),` Reconnect`]})})]}),(0,C.jsxs)(`div`,{style:{padding:`0.7rem 1.25rem`,borderBottom:`1px solid var(--border)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,C.jsx)(`span`,{style:{fontSize:`0.66rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.14em`,color:`var(--text-dim)`},children:`Available Tools`}),(0,C.jsxs)(`span`,{style:{fontSize:`0.72rem`,color:`var(--text-muted)`},children:[t.length,` discovered`]})]}),(0,C.jsxs)(`div`,{style:{flex:1,overflow:`auto`,padding:`1rem`,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(280px, 1fr))`,gap:`0.8rem`,alignContent:`start`},children:[e===`error`&&(0,C.jsxs)(`div`,{className:`card`,style:{gridColumn:`1 / -1`,textAlign:`center`,padding:`2.5rem 1rem`},children:[(0,C.jsx)(`div`,{style:{fontSize:`0.9rem`,fontWeight:700,color:`#ef4444`,marginBottom:`0.45rem`},children:`Connection failed`}),(0,C.jsx)(`div`,{style:{color:`var(--text-muted)`,marginBottom:`0.85rem`},children:n||`Could not reach the MCP endpoint.`}),(0,C.jsx)(`code`,{children:`MCP_ENABLED=true`})]}),e===`connected`&&t.map((e,n)=>(0,C.jsx)(y6,{tool:e,index:n,onCall:e=>s(t[e]),onRPC:e=>l(t[e])},e.name))]}),o&&(0,C.jsx)(x6,{tool:o,onClose:()=>s(null),onCall:async(e,t)=>(await r(`tools/call`,{name:e,arguments:t})).result??null}),c&&(0,C.jsx)(w6,{tool:c,onClose:()=>l(null),onSend:a})]})}function D6(e=6e4){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(!0),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(void 0),u=(0,w.useCallback)(async()=>{try{let e=await fetch(`/api/system/graph`);if(!e.ok)throw Error(`HTTP ${e.status}`);i(e.headers.get(`X-Cache`)??``),n(await e.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,w.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{graph:t,cache:r,loading:a,error:s,reload:u}}function O6(e=3e4){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(null),[a,o]=(0,w.useState)(!0),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(void 0),u=(0,w.useCallback)(async()=>{try{let[e,t]=await Promise.all([fetch(`/api/metrics/dashboard`),fetch(`/api/stats`)]);if(!e.ok||!t.ok)throw Error(`fetch failed`);n(await e.json()),i(await t.json()),c(null)}catch(e){c(e instanceof Error?e.message:`fetch failed`)}finally{o(!1)}},[]);return(0,w.useEffect)(()=>(u(),l.current=setInterval(u,e),()=>clearInterval(l.current)),[u,e]),{dashboard:t,stats:r,loading:a,error:s,reload:u}}function k6(){let[e,t]=(0,w.useState)([]),[n,r]=(0,w.useState)(null),[i,a]=(0,w.useState)(!0),[o,s]=(0,w.useState)(null),c=(0,w.useCallback)(async()=>{a(!0),s(null);try{let e=await(await fetch(`/api/traces?limit=25&offset=0`)).json();t(e.traces??[]),e.traces?.[0]&&r(await(await fetch(`/api/traces/${e.traces[0].trace_id}`)).json())}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,w.useEffect)(()=>{c()},[c]),{traces:e,selected:n,loading:i,error:o,selectTrace:async e=>{r(await(await fetch(`/api/traces/${e}`)).json())},reload:c}}function A6(e){return Array.isArray(e)?e:Array.isArray(e.logs)?e.logs:Array.isArray(e.items)?e.items:[]}function j6(){let[e,t]=(0,w.useState)([]),[n,r]=(0,w.useState)([]),[i,a]=(0,w.useState)(!0),[o,s]=(0,w.useState)(null),c=(0,w.useCallback)(async()=>{a(!0),s(null);try{t(A6(await(await fetch(`/api/logs?limit=100&offset=0`)).json()))}catch(e){s(String(e))}finally{a(!1)}},[]);return(0,w.useEffect)(()=>{c()},[c]),{logs:e,similar:n,loading:i,error:o,runSimilar:async e=>{e.trim()&&r(A6(await(await fetch(`/api/logs/similar?q=${encodeURIComponent(e)}&limit=8`)).json()))},setLogs:t,reload:c}}var M6=100,N6=1e4,P6=3e4,F6=35e3;function I6(e){let t=(0,w.useRef)(null),n=(0,w.useRef)(e),[r,i]=(0,w.useState)(`connecting`);t.status=r;let a=(0,w.useRef)(0),o=(0,w.useRef)(null),s=(0,w.useRef)(null),c=(0,w.useRef)(null),l=(0,w.useRef)(!1),u=(0,w.useRef)(()=>{});(0,w.useEffect)(()=>{n.current=e},[e]);let d=(0,w.useCallback)(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),f=(0,w.useCallback)(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null),c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]),p=(0,w.useCallback)(()=>{if(l.current)return;d();let e=a.current,t=Math.min(M6*2**e,N6);a.current=e+1,i(`reconnecting`),o.current=window.setTimeout(()=>{o.current=null,u.current()},t)},[d]),m=(0,w.useCallback)(()=>{f(),s.current=window.setInterval(()=>{let e=t.current;if(!(!e||e.readyState!==WebSocket.OPEN)){try{e.send(JSON.stringify({type:`ping`}))}catch{return}c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{c.current=null;let e=t.current;if(e)try{e.close()}catch{}},F6)}},P6)},[f]),h=(0,w.useCallback)(()=>{if(l.current)return;d(),f();let e=t.current;if(e){e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}t.current=null}i(a.current===0?`connecting`:`reconnecting`);let r=window.location.protocol===`https:`?`wss:`:`ws:`,o;try{o=new WebSocket(`${r}//${window.location.host}/ws`)}catch{p();return}t.current=o,o.onopen=()=>{l.current||(a.current=0,i(`connected`),m())},o.onmessage=e=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null);try{let t=JSON.parse(e.data);t.type===`logs`&&Array.isArray(t.data)&&n.current(t.data)}catch{}},o.onerror=()=>{},o.onclose=()=>{l.current||(t.current===o&&(t.current=null),f(),i(`disconnected`),p())}},[f,d,p,m]);return(0,w.useEffect)(()=>{u.current=h},[h]),(0,w.useEffect)(()=>{l.current=!1,u.current=h,h();let e=()=>{if(document.visibilityState!==`visible`)return;let e=t.current;(!e||e.readyState===WebSocket.CLOSED||e.readyState===WebSocket.CLOSING)&&(a.current=0,d(),u.current())},n=()=>{a.current=0,d(),u.current()};return document.addEventListener(`visibilitychange`,e),window.addEventListener(`online`,n),()=>{l.current=!0,document.removeEventListener(`visibilitychange`,e),window.removeEventListener(`online`,n),d(),f();let r=t.current;if(r){r.onopen=null,r.onmessage=null,r.onerror=null,r.onclose=null;try{r.close()}catch{}t.current=null}}},[]),t}function L6(){let[e,t]=(0,w.useState)(`services`),[n,r]=(0,w.useState)(null),i=D6(),a=O6(),o=k6(),s=j6(),c=(0,w.useRef)(s.setLogs);c.current=s.setLogs;let l=!!I6((0,w.useCallback)(e=>{c.current(t=>[...e,...t].slice(0,200))},[])).current,u=(0,w.useCallback)(e=>{r(e),t(`traces`)},[]),d=(0,w.useCallback)(e=>{r(e),t(`logs`)},[]),f=(0,w.useCallback)(()=>{r(null)},[]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(De,{view:e,onNavigate:t,dashboard:a.dashboard,stats:a.stats,wsConnected:l}),(0,C.jsxs)(`main`,{className:`main-content`,children:[e===`services`&&(0,C.jsx)(N3,{graph:i.graph,cache:i.cache,loading:i.loading,error:i.error,onNavigateToTraces:u,onNavigateToLogs:d}),e===`traces`&&(0,C.jsx)(l6,{traces:o.traces,selected:o.selected,loading:o.loading,error:o.error,onSelect:e=>void o.selectTrace(e),serviceFilter:n,onClearFilter:f}),e===`logs`&&(0,C.jsx)(g6,{logs:s.logs,similar:s.similar,loading:s.loading,error:s.error,onSimilar:e=>void s.runSimilar(e),serviceFilter:n,onClearFilter:f}),e===`mcp`&&(0,C.jsx)(E6,{})]})]})}(0,ie.createRoot)(document.getElementById(`root`)).render((0,C.jsx)(w.StrictMode,{children:(0,C.jsxs)(M,{mode:`dark`,children:[(0,C.jsx)(L6,{}),(0,C.jsx)(te,{})]})})); \ No newline at end of file diff --git a/internal/ui/dist/assets/index-BLTTK0qH.css b/internal/ui/dist/assets/index-DGckg6RL.css similarity index 81% rename from internal/ui/dist/assets/index-BLTTK0qH.css rename to internal/ui/dist/assets/index-DGckg6RL.css index 7cc20f3..b26583e 100644 --- a/internal/ui/dist/assets/index-BLTTK0qH.css +++ b/internal/ui/dist/assets/index-DGckg6RL.css @@ -1 +1 @@ -@font-face{font-family:Bricolage Grotesque;font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap;src:url(/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2)format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/GeistMono-Variable-BNLlm6Cd.woff2)format("woff2")}:root{--font-display:"Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-sans:"Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs-display:64px;--lh-display:1.02;--ls-display:-.035em;--fs-h1:44px;--lh-h1:1.06;--ls-h1:-.028em;--fs-h2:32px;--lh-h2:1.12;--ls-h2:-.022em;--fs-h3:22px;--lh-h3:1.25;--ls-h3:-.014em;--fs-h4:17px;--lh-h4:1.35;--ls-h4:-.008em;--fs-body:15px;--lh-body:1.55;--ls-body:0;--fs-small:13px;--lh-small:1.5;--ls-small:0;--fs-micro:11px;--lh-micro:1.4;--ls-micro:.04em;--fs-code:13.5px;--lh-code:1.55;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--space-0:0;--space-1:4px;--space-1\.5:6px;--space-2:8px;--space-2\.5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--container-narrow:640px;--container:960px;--container-wide:1280px;--container-full:1536px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-2xl:16px;--radius-full:9999px;--border-thin:1px;--border-medium:1.5px;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--dur-instant:80ms;--dur-fast:.14s;--dur-base:.22s;--dur-slow:.38s;--elevation-card:var(--shadow-sm);--elevation-popover:var(--shadow-md);--elevation-modal:var(--shadow-lg);--elevation-toast:var(--shadow-lg);--inset-highlight:inset 0 1px 0 #ffffff0f;--inset-shade:inset 0 -1px 0 #0000001f;--brand-red-50:#fff0f0;--brand-red-100:#ffd6d6;--brand-red-200:#ffa8a8;--brand-red-300:#ff6b6b;--brand-red-400:#ff2e2e;--brand-red-500:#e60000;--brand-red-600:#c20000;--brand-red-700:#9e0000;--brand-red-800:#7a0000;--brand-red-900:#520000;--brand-gray-50:#f5f5f5;--brand-gray-100:#e5e5e5;--brand-gray-200:#ccc;--brand-gray-300:#a6a6a6;--brand-gray-400:gray;--brand-gray-500:#5a5a5a;--brand-gray-600:#3d3d3d;--brand-gray-700:#2b2b2b;--brand-gray-800:#1c1c1c;--brand-gray-900:#0f0f0f;--amber-500:#ffb948;--red-500:#ff5a5f;--blue-500:#3d8cff;--pink-500:#ff5ca8}:root,[data-theme=light]{--bg-0:#fff;--bg-1:#fff;--bg-2:#f5f5f5;--bg-3:#e5e5e5;--bg-inverse:#1c1c1c;--fg-1:#1c1c1c;--fg-2:#3d3d3d;--fg-3:#4f4f4f;--fg-4:#a6a6a6;--fg-inverse:#fff;--border-1:#1c1c1c14;--border-2:#1c1c1c24;--border-3:#1c1c1c3d;--accent:#e60000;--accent-hover:#c20000;--accent-press:#9e0000;--accent-soft:#e6000014;--accent-soft-2:#e6000029;--accent-fg:#fff;--success:#1c1c1c;--warning:#d98e2b;--danger:#e60000;--info:#2d73d9;--shadow-xs:0 1px 1px #1c1c1c0a;--shadow-sm:0 1px 2px #1c1c1c0f, 0 1px 1px #1c1c1c0a;--shadow-md:0 4px 12px #1c1c1c12, 0 1px 2px #1c1c1c0a;--shadow-lg:0 12px 32px #1c1c1c1a, 0 2px 6px #1c1c1c0d;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#1c1c1c0a}[data-theme=dark]{--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}}html{font-family:var(--font-sans);color:var(--fg-1);background:var(--bg-0)}body{font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt", "liga", "kern"}.rcs-display,h1.display{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1)}h1,.rcs-h1{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h2,.rcs-h2{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h3,.rcs-h3{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--ls-h3);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h4,.rcs-h4{font-weight:var(--fw-medium);font-size:var(--fs-h4);line-height:var(--lh-h4);letter-spacing:var(--ls-h4);color:var(--fg-1);margin:0}p,.rcs-body{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--fg-2);margin:0}.rcs-small,small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--fg-3)}.rcs-micro,.rcs-label{font-family:var(--font-mono);font-size:var(--fs-micro);line-height:var(--lh-micro);letter-spacing:var(--ls-micro);text-transform:uppercase;color:var(--fg-3);font-weight:var(--fw-medium)}code,kbd,samp,pre,.rcs-code{font-family:var(--font-mono);font-size:var(--fs-code);line-height:var(--lh-code);font-feature-settings:"zero", "tnum";font-variant-numeric:tabular-nums slashed-zero}.rcs-stat-value,.rcs-stat-delta,.rcs-micro,.rcs-label{font-variant-numeric:tabular-nums}code:not(pre code){background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-xs);color:var(--fg-1);padding:1px 5px;font-size:.92em}a{color:var(--accent);transition:opacity var(--dur-fast) var(--ease-out-quart);text-decoration:none}a:hover{opacity:.75}::selection{background:var(--accent-soft-2);color:var(--fg-1)}:focus-visible{box-shadow:var(--shadow-focus);border-radius:var(--radius-sm);outline:none}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.rcs-button,.rcs-input,.rcs-textarea,.rcs-select-trigger{font-family:var(--font-sans)}.rcs-button{justify-content:center;align-items:center;gap:var(--space-2);font-weight:var(--fw-medium);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);border:1px solid #0000;display:inline-flex}.rcs-button:disabled,.rcs-button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.rcs-button:active:not(:disabled){transform:translateY(.5px)}.rcs-button--primary:focus-visible,.rcs-button--danger:focus-visible{box-shadow:var(--inset-highlight), var(--inset-shade), var(--shadow-focus)}.rcs-button--xs{border-radius:var(--radius-sm);height:24px;padding:0 8px;font-size:12px}.rcs-button--sm{border-radius:var(--radius-sm);height:28px;padding:0 10px;font-size:13px}.rcs-button--md{border-radius:var(--radius-sm);height:32px;padding:0 12px;font-size:14px}.rcs-button--lg{border-radius:var(--radius-md);height:40px;padding:0 16px;font-size:15px}.rcs-button--pill{border-radius:var(--radius-full)}.rcs-button--square{aspect-ratio:1;padding:0}.rcs-button--circle{aspect-ratio:1;border-radius:var(--radius-full);padding:0}.rcs-button--block{width:100%}.rcs-button--primary{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--primary:hover:not(:disabled){background:var(--brand-gray-700);border-color:var(--brand-gray-700)}.rcs-button--secondary{background:var(--bg-1);color:var(--fg-1);border-color:var(--border-2)}.rcs-button--secondary:hover:not(:disabled){background:var(--bg-2);border-color:var(--border-3)}.rcs-button--ghost{color:var(--fg-1);background:0 0;border-color:#0000}.rcs-button--ghost:hover:not(:disabled){background:var(--bg-2)}.rcs-button--danger{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--danger:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.rcs-button--link{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0}.rcs-button--link:hover:not(:disabled){opacity:.75}.rcs-button-spinner{border:1.5px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite rcs-spin}@keyframes rcs-spin{to{transform:rotate(360deg)}}.rcs-button-group{display:inline-flex}.rcs-button-group--vertical{flex-direction:column}.rcs-button-group--attached .rcs-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.rcs-button-group--attached .rcs-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;margin-left:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.rcs-input-wrap{background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);align-items:center;width:100%;display:flex}.rcs-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-input-wrap[data-status=error]{border-color:var(--danger)}.rcs-input-wrap[data-status=warning]{border-color:var(--warning)}.rcs-input-wrap[data-status=success]{border-color:var(--brand-gray-800)}.rcs-input-wrap[data-disabled=true]{opacity:.6;cursor:not-allowed;background:var(--bg-2)}.rcs-input-wrap--xs{height:24px;padding:0 8px;font-size:12px}.rcs-input-wrap--sm{height:28px;padding:0 10px;font-size:13px}.rcs-input-wrap--md{height:32px;padding:0 12px;font-size:14px}.rcs-input-wrap--lg{height:40px;padding:0 14px;font-size:15px}.rcs-input{min-width:0;color:var(--fg-1);font-family:inherit;font-size:inherit;background:0 0;border:0;outline:0;flex:1}.rcs-input::placeholder{color:var(--fg-4)}.rcs-input-wrap>.rcs-input:focus,.rcs-input-wrap>.rcs-input:focus-visible{box-shadow:none;border-radius:inherit}@media (width<=768px),(pointer:coarse){.rcs-input-wrap--xs,.rcs-input-wrap--sm,.rcs-input-wrap--md,.rcs-input-wrap--lg,.rcs-textarea{font-size:16px}}.rcs-input-affix{color:var(--fg-3);align-items:center;display:inline-flex}.rcs-input-affix--left{margin-right:var(--space-2)}.rcs-input-affix--right{margin-left:var(--space-2)}.rcs-input-clear{cursor:pointer;color:var(--fg-3);border-radius:var(--radius-xs);background:0 0;border:0;padding:2px;line-height:1}.rcs-input-clear:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-textarea{background:var(--bg-1);width:100%;color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);resize:vertical;outline:0;font-family:inherit;font-size:14px;line-height:1.55;display:block}.rcs-textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-textarea-count{text-align:right;font-family:var(--font-mono);color:var(--fg-4);margin-top:4px;font-size:11px;display:block}.rcs-pin{gap:var(--space-2);display:inline-flex}.rcs-pin-cell{text-align:center;width:36px;height:40px;font-family:var(--font-mono);background:var(--bg-1);color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);outline:0;font-size:16px}.rcs-pin-cell:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-form-field{margin-bottom:var(--space-4);display:block}.rcs-form-label{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1);margin-bottom:var(--space-2);display:block}.rcs-form-required{color:var(--danger);margin-left:2px}.rcs-form-optional{color:var(--fg-4);margin-left:4px;font-weight:400}.rcs-form-hint{color:var(--fg-3);margin-top:6px;font-size:12px;display:block}.rcs-form-error{color:var(--danger);font-size:12px;font-family:var(--font-mono);margin-top:6px;display:block}.rcs-checkbox,.rcs-radio{align-items:flex-start;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-flex}.rcs-checkbox input,.rcs-radio input{appearance:none;border:1.5px solid var(--border-3);background:var(--bg-1);cursor:pointer;width:16px;height:16px;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0;place-items:center;margin:1px 0 0;display:inline-grid}.rcs-checkbox input{border-radius:3px}.rcs-radio input{border-radius:50%}.rcs-checkbox input:checked,.rcs-radio input:checked{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:checked:after{content:"";border-left:1.75px solid var(--fg-inverse);border-bottom:1.75px solid var(--fg-inverse);width:9px;height:5px;transform:rotate(-45deg)translate(1px,-1px)}.rcs-checkbox input:indeterminate{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:indeterminate:after{content:"";background:var(--fg-inverse);width:8px;height:1.75px}.rcs-radio input:checked:after{content:"";background:var(--fg-inverse);border-radius:50%;width:6px;height:6px}.rcs-checkbox-label,.rcs-radio-label{line-height:1.4}.rcs-checkbox-desc,.rcs-radio-desc{color:var(--fg-3);margin-top:2px;font-size:12px;display:block}.rcs-radio-group{gap:var(--space-4);display:inline-flex}.rcs-radio-group--vertical{flex-direction:column}.rcs-switch{align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex}.rcs-switch-track{background:var(--bg-3);border-radius:var(--radius-full);width:32px;height:18px;transition:background var(--dur-fast) var(--ease-out-quart);position:relative}.rcs-switch-thumb{width:14px;height:14px;transition:transform var(--dur-fast) var(--ease-out-quart);box-shadow:var(--shadow-xs);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.rcs-switch[data-checked=true] .rcs-switch-track{background:var(--accent)}.rcs-switch[data-checked=true] .rcs-switch-thumb{transform:translate(14px)}.rcs-switch--xs .rcs-switch-track{width:24px;height:14px}.rcs-switch--xs .rcs-switch-thumb{width:10px;height:10px}.rcs-switch--xs[data-checked=true] .rcs-switch-thumb{transform:translate(10px)}.rcs-switch--lg .rcs-switch-track{width:44px;height:24px}.rcs-switch--lg .rcs-switch-thumb{width:20px;height:20px}.rcs-switch--lg[data-checked=true] .rcs-switch-thumb{transform:translate(20px)}.rcs-switch input{opacity:0;pointer-events:none;position:absolute}.rcs-slider{-webkit-user-select:none;user-select:none;height:32px;padding:12px 0;position:relative}.rcs-slider-track{background:var(--bg-3);border-radius:var(--radius-full);height:4px;position:relative}.rcs-slider-fill{background:var(--accent);border-radius:inherit;height:100%;position:absolute}.rcs-slider-thumb{border:2px solid var(--accent);width:16px;height:16px;box-shadow:var(--shadow-sm);cursor:grab;background:#fff;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.rcs-slider-thumb:active{cursor:grabbing}.rcs-slider-marks{height:16px;color:var(--fg-3);margin-top:8px;font-size:11px;position:relative}.rcs-slider-mark{position:absolute;transform:translate(-50%)}.rcs-select{width:100%;display:inline-block;position:relative}.rcs-select-trigger{align-items:center;gap:var(--space-2);background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);width:100%;min-width:120px;color:var(--fg-1);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart);outline:0;display:inline-flex}.rcs-select-trigger:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-select-trigger[data-status=error]{border-color:var(--danger)}.rcs-select-trigger[disabled]{opacity:.6;cursor:not-allowed}.rcs-select-trigger--xs{height:24px;padding:0 8px;font-size:12px}.rcs-select-trigger--sm{height:28px;padding:0 10px;font-size:13px}.rcs-select-trigger--md{height:32px;padding:0 12px;font-size:14px}.rcs-select-trigger--lg{height:40px;padding:0 14px;font-size:15px}.rcs-select-value{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.rcs-select-placeholder{color:var(--fg-4)}.rcs-select-caret{color:var(--fg-3);transition:transform var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.rcs-select[data-open=true] .rcs-select-caret{transform:rotate(180deg)}.rcs-select-menu{z-index:20;background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-md);box-shadow:var(--elevation-popover);max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}.rcs-select-search{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);width:100%;color:var(--fg-1);outline:0;margin-bottom:4px;padding:6px 8px;font-size:13px}.rcs-select-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;padding:6px 8px;font-size:13px;display:flex}.rcs-select-option:hover,.rcs-select-option[data-active=true]{background:var(--bg-2)}.rcs-select-option[data-selected=true]{background:var(--accent-soft);color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-select-option[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-select-option-desc{color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-select-empty{text-align:center;color:var(--fg-4);padding:12px;font-size:13px}.rcs-combo-tag{background:var(--bg-2);border-radius:var(--radius-xs);align-items:center;gap:4px;margin-right:4px;padding:1px 4px 1px 6px;font-size:12px;display:inline-flex}.rcs-combo-tag-x{cursor:pointer;color:var(--fg-3);background:0 0;border:0;padding:0 2px}.rcs-upload-drop{padding:var(--space-8);border:1.5px dashed var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);text-align:center;cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);flex-direction:column;justify-content:center;align-items:center;display:flex}.rcs-upload-drop:hover,.rcs-upload-drop[data-drag=true]{border-color:var(--accent);background:var(--accent-soft)}.rcs-upload-hint{color:var(--fg-3);margin-top:4px;font-size:12px}.rcs-badge{font-family:var(--font-mono);font-size:11px;font-weight:var(--fw-medium);border-radius:var(--radius-xs);letter-spacing:.02em;text-transform:uppercase;border:1px solid #0000;align-items:center;gap:4px;padding:2px 6px;line-height:1.4;display:inline-flex}.rcs-badge--sm{padding:1px 4px;font-size:10px}.rcs-badge--lg{padding:3px 8px;font-size:12px}.rcs-badge--neutral{background:var(--bg-2);color:var(--fg-2);border-color:var(--border-1)}.rcs-badge--info{color:var(--info);background:#2d73d91a}.rcs-badge--warning{color:var(--warning);background:#d98e2b1f}.rcs-badge--danger{background:var(--accent-soft);color:var(--accent)}.rcs-badge--subtle{background:var(--bg-2);color:var(--fg-3);border-color:var(--border-1)}.rcs-badge--solid{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-badge-x{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:0;padding:0 0 0 2px}.rcs-badge-x:hover{opacity:1}.rcs-status-dot{align-items:center;gap:var(--space-2);color:var(--fg-2);font-size:13px;display:inline-flex}.rcs-status-dot-glyph{background:var(--fg-3);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.rcs-status-dot[data-status=running] .rcs-status-dot-glyph,.rcs-status-dot[data-status=live] .rcs-status-dot-glyph{background:#1f9e5c}.rcs-status-dot[data-status=degraded] .rcs-status-dot-glyph{background:var(--warning)}.rcs-status-dot[data-status=failed] .rcs-status-dot-glyph{background:var(--danger)}.rcs-status-dot[data-status=idle] .rcs-status-dot-glyph,.rcs-status-dot[data-status=stopped] .rcs-status-dot-glyph{background:var(--fg-4)}.rcs-status-dot[data-pulse=true] .rcs-status-dot-glyph{animation:rcs-pulse 1.6s var(--ease-out-quart) infinite;box-shadow:0 0}@keyframes rcs-pulse{0%{box-shadow:0 0 #1f9e5c80}70%{box-shadow:0 0 0 6px #1f9e5c00}to{box-shadow:0 0 #1f9e5c00}}.rcs-card{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-card);transition:border-color var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart)}.rcs-card[data-hoverable=true]:hover{border-color:var(--border-2);box-shadow:var(--elevation-popover);transform:translateY(-1px)}.rcs-card[data-hoverable=true]:active{box-shadow:var(--elevation-card);transform:translateY(0)}.rcs-card-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);justify-content:space-between;align-items:flex-start;display:flex}.rcs-card-title{font-size:15px;font-weight:var(--fw-semibold);color:var(--fg-1)}.rcs-card-subtitle{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-card-extra{flex-shrink:0}.rcs-card-body{padding:var(--space-5)}.rcs-card-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);background:var(--bg-2);border-radius:0 0 var(--radius-md) var(--radius-md)}.rcs-space{display:inline-flex}.rcs-space--vertical{flex-direction:column}.rcs-space--wrap{flex-wrap:wrap}.rcs-space-split{color:var(--border-2);align-self:stretch;align-items:stretch;display:inline-flex}.rcs-divider{background:var(--border-1);border:0}.rcs-divider--horizontal{width:100%;height:1px;margin:var(--space-4) 0}.rcs-divider--vertical{width:1px;height:1em;margin:0 var(--space-3);vertical-align:middle;display:inline-block}.rcs-divider--text{align-items:center;gap:var(--space-3);height:auto;margin:var(--space-4) 0;font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;background:0 0;font-size:11px;display:flex}.rcs-divider--text:before,.rcs-divider--text:after{content:"";background:var(--border-1);flex:1;height:1px}.rcs-divider--dashed{background-image:linear-gradient(to right, var(--border-2) 50%, transparent 50%);background-color:#0000;background-size:8px 1px}.rcs-grid{display:grid}.rcs-scroll{position:relative}.rcs-scroll[data-thin=true]{scrollbar-width:thin}.rcs-tabs{flex-direction:column;display:flex}.rcs-tabs-nav{flex-shrink:0;align-items:center;gap:0;display:flex}.rcs-tabs-tab{align-items:center;gap:var(--space-2);cursor:pointer;font-size:14px;font-weight:var(--fw-medium);color:var(--fg-3);transition:color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;padding:10px 14px;display:inline-flex}.rcs-tabs-tab:hover,.rcs-tabs-tab[data-active=true]{color:var(--fg-1)}.rcs-tabs-tab:active:not([disabled]):not([data-active=true]){transform:translateY(.5px)}.rcs-tabs-tab[disabled]{opacity:.4;cursor:not-allowed}.rcs-tabs--line .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--line .rcs-tabs-tab[data-active=true]{box-shadow:inset 0 -2px 0 0 var(--fg-1)}.rcs-tabs--card .rcs-tabs-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;border:1px solid #0000;margin-bottom:-1px}.rcs-tabs--card .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--card .rcs-tabs-tab[data-active=true]{background:var(--bg-1);border-color:var(--border-1) var(--border-1) var(--bg-1)}.rcs-tabs--segment{background:var(--bg-2);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.rcs-tabs--segment .rcs-tabs-nav{gap:0}.rcs-tabs--segment .rcs-tabs-tab{border-radius:var(--radius-xs);padding:6px 12px}.rcs-tabs--segment .rcs-tabs-tab[data-active=true]{background:var(--bg-1);box-shadow:var(--shadow-xs)}.rcs-tabs--pill .rcs-tabs-tab{border-radius:var(--radius-full);padding:6px 14px}.rcs-tabs--pill .rcs-tabs-tab[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-tabs[data-scrollable=true]{position:relative}.rcs-tabs-nav[data-scrollable=true]{scrollbar-width:none;-ms-overflow-style:none;overflow:auto hidden}.rcs-tabs-nav[data-scrollable=true]::-webkit-scrollbar{display:none}.rcs-tabs-nav[data-scrollable=true] .rcs-tabs-tab{flex-shrink:0}.rcs-tabs[data-scrollable=true]:after{content:"";width:32px;height:var(--rcs-tabs-nav-h,40px);background:linear-gradient(to right, transparent, var(--rcs-tabs-fade-color,var(--bg-0)));pointer-events:none;z-index:1;position:absolute;top:0;right:0}.rcs-tabs-content{flex-direction:column;flex:1;min-height:0;display:flex}.rcs-menu{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);flex-direction:column;min-width:200px;padding:4px;display:flex}.rcs-menu--horizontal{flex-direction:row}.rcs-menu-item{align-items:center;gap:var(--space-2);cursor:pointer;border-radius:var(--radius-sm);color:var(--fg-1);padding:6px 8px;font-size:13px;display:flex}.rcs-menu-item:hover{background:var(--bg-2)}.rcs-menu-item[data-selected=true]{background:var(--accent-soft)}.rcs-menu-item[data-destructive=true]{color:var(--danger)}.rcs-menu-item[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-menu-item-shortcut{font-family:var(--font-mono);color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-menu-separator{background:var(--border-1);height:1px;margin:4px 0}.rcs-menu-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;padding:4px 8px;font-size:10px}.rcs-breadcrumb{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-breadcrumb a{color:var(--fg-2)}.rcs-breadcrumb a:hover{color:var(--fg-1)}.rcs-breadcrumb-item--last{color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-breadcrumb-sep{color:var(--fg-4)}.rcs-pagination{align-items:center;gap:4px;font-size:13px;display:inline-flex}.rcs-pagination-btn{min-width:28px;height:28px;color:var(--fg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;padding:0 8px;font-size:13px}.rcs-pagination-btn:hover:not(:disabled){border-color:var(--border-3);color:var(--fg-1)}.rcs-pagination-btn[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-pagination-btn:disabled{opacity:.4;cursor:not-allowed}.rcs-pagination-ellipsis{color:var(--fg-4);padding:0 6px}.rcs-steps{gap:0;display:flex}.rcs-steps--vertical{flex-direction:column}.rcs-step{align-items:flex-start;gap:var(--space-2);padding:0 var(--space-3);flex:1;display:flex;position:relative}.rcs-step:not(:last-child):after{content:"";top:12px;left:calc(24px + var(--space-3));background:var(--border-2);height:1px;position:absolute;right:0}.rcs-step[data-status=finish]:after{background:var(--bg-inverse)}.rcs-step-marker{width:24px;height:24px;font-size:11px;font-family:var(--font-mono);font-weight:var(--fw-medium);border:1px solid var(--border-2);background:var(--bg-1);color:var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.rcs-step[data-status=process] .rcs-step-marker,.rcs-step[data-status=finish] .rcs-step-marker{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-step[data-status=error] .rcs-step-marker{background:var(--danger);color:#fff;border-color:var(--danger)}.rcs-step-title{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1)}.rcs-step[data-status=wait] .rcs-step-title{color:var(--fg-3)}.rcs-step-desc{color:var(--fg-3);margin-top:2px;font-size:12px}.rcs-alert{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);display:flex}.rcs-alert--info{background:#2d73d90f;border-color:#2d73d933}.rcs-alert--success{background:var(--bg-2);border-color:var(--border-1)}.rcs-alert--warning{background:#d98e2b14;border-color:#d98e2b40}.rcs-alert--danger{background:var(--accent-soft);border-color:var(--accent-soft-2)}.rcs-alert-body{flex:1}.rcs-alert-title{font-weight:var(--fw-semibold);color:var(--fg-1);margin-bottom:2px;font-size:14px}.rcs-alert-content{color:var(--fg-2);font-size:13px;line-height:1.5}.rcs-alert-action{margin-top:8px}.rcs-alert-icon{flex-shrink:0;padding-top:1px;font-size:16px;line-height:1}.rcs-alert-close{cursor:pointer;color:var(--fg-3);background:0 0;border:0;flex-shrink:0;padding:2px;line-height:1}.rcs-alert-close:hover{color:var(--fg-1)}.rcs-modal-backdrop{z-index:100;padding:var(--space-4);animation:rcs-fade-in var(--dur-base) var(--ease-out-quart);background:#0006;place-items:center;display:grid;position:fixed;inset:0}.rcs-modal{background:var(--bg-1);color:var(--fg-1);border-radius:var(--radius-lg);box-shadow:var(--elevation-modal);width:100%;max-width:520px;max-height:90vh;animation:rcs-pop-in var(--dur-base) var(--ease-out-quart);flex-direction:column;display:flex}.rcs-modal--xs{max-width:360px}.rcs-modal--sm{max-width:440px}.rcs-modal--md{max-width:520px}.rcs-modal--lg{max-width:720px}.rcs-modal--fullscreen{border-radius:0;max-width:100vw;height:100vh;max-height:100vh}.rcs-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);flex-shrink:0}.rcs-modal-title{font-size:17px;font-weight:var(--fw-semibold);margin:0}.rcs-modal-desc{color:var(--fg-3);margin-top:4px;font-size:13px}.rcs-modal-body{padding:var(--space-5);flex:1;min-height:0;overflow:auto}.rcs-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);justify-content:flex-end;gap:var(--space-2);flex-shrink:0;display:flex}@keyframes rcs-fade-in{0%{opacity:0}}@keyframes rcs-pop-in{0%{opacity:0;transform:scale(.96)translateY(8px)}}.rcs-drawer{background:var(--bg-1);color:var(--fg-1);z-index:101;box-shadow:var(--elevation-modal);flex-direction:column;display:flex;position:fixed}.rcs-drawer--right{height:100dvh;top:0;right:0}.rcs-drawer--left{height:100dvh;top:0;left:0}.rcs-drawer--top{width:100dvw;top:0;left:0}.rcs-drawer--bottom{width:100dvw;bottom:0;left:0}.rcs-progress{display:block}.rcs-progress-track{background:var(--bg-3);border-radius:var(--radius-full);width:100%;height:6px;overflow:hidden}.rcs-progress-fill{background:var(--bg-inverse);border-radius:inherit;height:100%;transition:width var(--dur-base) var(--ease-out-quart)}.rcs-progress[data-tone=danger] .rcs-progress-fill{background:var(--danger)}.rcs-progress[data-tone=warning] .rcs-progress-fill{background:var(--warning)}.rcs-progress--lg .rcs-progress-track{height:8px}.rcs-progress--sm .rcs-progress-track{height:4px}.rcs-progress--xs .rcs-progress-track{height:3px}.rcs-progress[data-indeterminate=true] .rcs-progress-fill{animation:rcs-indeterminate 1.4s var(--ease-in-out) infinite;width:30%!important}@keyframes rcs-indeterminate{0%{transform:translate(-100%)}to{transform:translate(380%)}}.rcs-progress-value{font-family:var(--font-mono);color:var(--fg-3);margin-top:4px;font-size:11px}.rcs-skeleton{background:var(--bg-2);border-radius:var(--radius-sm);display:inline-block;position:relative;overflow:hidden}.rcs-skeleton[data-animated=true]:after{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);animation:1.4s linear infinite rcs-shimmer;position:absolute;inset:0}[data-theme=dark] .rcs-skeleton[data-animated=true]:after,.rcs-skeleton[data-animated=true][data-theme=dark]:after{background:linear-gradient(90deg,#0000,#ffffff0f,#0000)}@keyframes rcs-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.rcs-skeleton--text{border-radius:var(--radius-xs);width:100%;height:1em}.rcs-skeleton--circle{border-radius:50%}.rcs-spin{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-spin-glyph{border:2px solid;border-top-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite rcs-spin}.rcs-spin--xs .rcs-spin-glyph{border-width:1.5px;width:12px;height:12px}.rcs-spin--lg .rcs-spin-glyph{border-width:2.5px;width:24px;height:24px}.rcs-spin[data-tone=danger] .rcs-spin-glyph{color:var(--danger)}.rcs-tooltip{display:inline-block;position:relative}.rcs-tooltip-bubble{z-index:50;background:var(--bg-inverse);color:var(--fg-inverse);border-radius:var(--radius-sm);white-space:nowrap;box-shadow:var(--elevation-popover);pointer-events:none;padding:4px 8px;font-size:12px;position:absolute}.rcs-tooltip-bubble[data-placement=top]{bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=bottom]{top:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=left]{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}.rcs-tooltip-bubble[data-placement=right]{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.rcs-toast-region{bottom:var(--space-5);right:var(--space-5);z-index:200;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:fixed}.rcs-toast{pointer-events:auto;background:var(--bg-1);min-width:260px;max-width:380px;color:var(--fg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-toast);padding:var(--space-3) var(--space-4);gap:var(--space-3);animation:rcs-toast-in var(--dur-base) var(--ease-out-quart);align-items:flex-start;display:flex}@keyframes rcs-toast-in{0%{opacity:0;transform:translateY(8px)}}.rcs-toast-title{font-weight:var(--fw-semibold);font-size:14px}.rcs-toast-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-toast-action{color:var(--accent);cursor:pointer;font-weight:var(--fw-medium);background:0 0;border:0;padding:4px 8px}.rcs-toast-icon{text-align:center;flex-shrink:0;width:20px;font-size:14px;line-height:20px}.rcs-toast--success .rcs-toast-icon{color:var(--brand-gray-800)}.rcs-toast--danger .rcs-toast-icon{color:var(--danger)}.rcs-toast--warning .rcs-toast-icon{color:var(--warning)}.rcs-toast--info .rcs-toast-icon{color:var(--info)}.rcs-table-wrap{border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);overflow:auto}.rcs-table{border-collapse:collapse;width:100%;font-size:13px}.rcs-table thead th{text-align:left;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--fg-3);font-size:11px;font-weight:var(--fw-medium);border-bottom:1px solid var(--border-1);background:var(--bg-2);white-space:nowrap;padding:10px 14px}.rcs-table[data-sticky-header=true] thead th{z-index:1;position:sticky;top:0}.rcs-table tbody td{border-bottom:1px solid var(--border-1);color:var(--fg-1);vertical-align:middle;padding:10px 14px}.rcs-table tbody tr:last-child td{border-bottom:0}.rcs-table[data-density=compact] tbody td{padding:6px 12px}.rcs-table[data-density=comfortable] tbody td{padding:14px 16px}.rcs-table[data-striped=true] tbody tr:nth-child(odd) td{background:var(--bg-2)}.rcs-table[data-bordered=true] th,.rcs-table[data-bordered=true] td{border-right:1px solid var(--border-1)}.rcs-table tbody tr:hover td{background:var(--bg-2);cursor:pointer}.rcs-table-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rcs-table-sortable:after{content:" ↕";color:var(--fg-4)}.rcs-table-sortable[data-sort=asc]:after{content:" ↑";color:var(--fg-1)}.rcs-table-sortable[data-sort=desc]:after{content:" ↓";color:var(--fg-1)}.rcs-table-empty{text-align:center;padding:var(--space-12);color:var(--fg-3);font-size:13px}.rcs-table-align-right{text-align:right}.rcs-table-align-center{text-align:center}.rcs-stat{flex-direction:column;gap:4px;display:flex}.rcs-stat-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;font-size:11px}.rcs-stat-value{font-size:28px;font-weight:var(--fw-semibold);color:var(--fg-1);align-items:baseline;gap:4px;display:flex}.rcs-stat-unit{color:var(--fg-3);font-size:14px;font-weight:var(--fw-regular)}.rcs-stat-delta{font-size:12px;font-family:var(--font-mono);color:var(--fg-3);align-items:center;gap:4px;display:inline-flex}.rcs-stat-delta[data-tone=good]{color:#1f9e5c}.rcs-stat-delta[data-tone=bad]{color:var(--danger)}.rcs-stat-spark{width:80px;height:24px}.rcs-avatar{background:var(--bg-2);color:var(--fg-2);font-weight:var(--fw-medium);border:1px solid var(--border-1);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.rcs-avatar img{object-fit:cover;width:100%;height:100%}.rcs-avatar--circle{border-radius:50%}.rcs-avatar--square{border-radius:var(--radius-sm)}.rcs-avatar-status{background:var(--brand-gray-800);border:2px solid var(--bg-1);border-radius:50%;width:25%;height:25%;position:absolute;bottom:0;right:0}.rcs-timeline{gap:var(--space-4);flex-direction:column;display:flex}.rcs-timeline-item{gap:var(--space-3);display:flex;position:relative}.rcs-timeline-item:not(:last-child):before{content:"";background:var(--border-1);width:1px;position:absolute;top:18px;bottom:-16px;left:7px}.rcs-timeline-marker{background:var(--bg-1);border:2px solid var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;width:14px;height:14px;margin-top:4px}.rcs-timeline-item[data-tone=success] .rcs-timeline-marker{border-color:var(--brand-gray-800);background:var(--brand-gray-800)}.rcs-timeline-item[data-tone=warning] .rcs-timeline-marker{border-color:var(--warning)}.rcs-timeline-item[data-tone=danger] .rcs-timeline-marker{border-color:var(--danger);background:var(--danger)}.rcs-timeline-content{flex:1;padding-bottom:4px}.rcs-timeline-title{font-size:14px;font-weight:var(--fw-medium)}.rcs-timeline-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-timeline-time{font-family:var(--font-mono);color:var(--fg-4);text-transform:uppercase;letter-spacing:.04em;margin-top:4px;font-size:11px;display:block}.rcs-chat{flex-direction:column;height:100%;min-height:0;display:flex}.rcs-chat-messages{padding:var(--space-4);gap:var(--space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.rcs-chat-msg{gap:var(--space-3);display:flex}.rcs-chat-msg--user{flex-direction:row-reverse}.rcs-chat-bubble{max-width:75%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--fg-1);font-size:14px;line-height:1.5}.rcs-chat-msg--user .rcs-chat-bubble{background:var(--bg-inverse);color:var(--fg-inverse);border-bottom-right-radius:4px}.rcs-chat-msg--assistant .rcs-chat-bubble{border-bottom-left-radius:4px}.rcs-chat-msg--system .rcs-chat-bubble{border:1px dashed var(--border-2);font-family:var(--font-mono);color:var(--fg-3);background:0 0;align-self:center;max-width:100%;font-size:12px}.rcs-chat-msg-status{font-family:var(--font-mono);color:var(--fg-4);margin-top:2px;font-size:10px}.rcs-chat-suggestions{padding:0 var(--space-4) var(--space-2);gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-chat-suggestion{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-full);color:var(--fg-2);cursor:pointer;padding:6px 12px;font-size:13px}.rcs-chat-suggestion:hover{background:var(--bg-2);border-color:var(--border-3)}.rcs-chat-composer{gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border-1);background:var(--bg-1);align-items:flex-end;display:flex}.rcs-chat-input{resize:none;border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);color:var(--fg-1);outline:0;flex:1;min-height:40px;max-height:200px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.5}.rcs-chat-input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-codeblock{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-md);overflow:hidden}.rcs-codeblock-header{border-bottom:1px solid var(--border-1);background:var(--bg-1);font-family:var(--font-mono);color:var(--fg-3);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.rcs-codeblock-pre{padding:var(--space-3) var(--space-4);font-family:var(--font-mono);color:var(--fg-1);margin:0;font-size:13px;line-height:1.5;overflow:auto}.rcs-codeblock-pre[data-wrap=true]{white-space:pre-wrap;word-break:break-word}.rcs-codeblock-line{display:flex}.rcs-codeblock-lineno{text-align:right;width:32px;padding-right:var(--space-3);color:var(--fg-4);-webkit-user-select:none;user-select:none;flex-shrink:0;display:inline-block}.rcs-codeblock-line[data-highlight=true]{background:var(--accent-soft);margin:0 calc(-1 * var(--space-4));padding:0 var(--space-4)}.rcs-codeblock-copy{cursor:pointer;color:var(--fg-3);font-family:var(--font-mono);border-radius:var(--radius-xs);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;padding:2px 6px;font-size:11px}.rcs-codeblock-copy:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-markdown{color:var(--fg-1);font-size:14px;line-height:1.65}.rcs-markdown h1{margin:1.2em 0 .5em;font-size:22px}.rcs-markdown h2{margin:1.2em 0 .5em;font-size:18px}.rcs-markdown h3{margin:1em 0 .4em;font-size:15px}.rcs-markdown p{color:var(--fg-2);margin:.6em 0}.rcs-markdown a{color:var(--accent)}.rcs-markdown ul,.rcs-markdown ol{color:var(--fg-2);margin:.6em 0;padding-left:1.4em}.rcs-markdown blockquote{border-left:2px solid var(--border-2);color:var(--fg-3);margin:1em 0;padding:.2em 1em;font-style:italic}.rcs-markdown pre{background:var(--bg-2);padding:var(--space-3);border-radius:var(--radius-sm);overflow:auto}.rcs-markdown code{background:var(--bg-2);border-radius:3px;padding:1px 5px;font-size:.9em}.rcs-markdown--compact{font-size:13px}.rcs-markdown--compact h1{font-size:18px}.rcs-terminal{color:#e5e5e5;border-radius:var(--radius-md);font-family:var(--font-mono);background:#0f0f0f;flex-direction:column;font-size:13px;display:flex;overflow:hidden}.rcs-terminal-tabs{background:#1c1c1c;border-bottom:1px solid #2b2b2b;gap:0;padding:0 8px;display:flex}.rcs-terminal-tab{color:#a6a6a6;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-bottom:1px solid #0000;padding:6px 10px;font-size:11px}.rcs-terminal-tab[data-active=true]{color:#fff;border-bottom-color:var(--accent)}.rcs-terminal-body{padding:var(--space-3);flex:1;overflow:auto}.rcs-terminal-line{padding:1px 0;line-height:1.5}.rcs-terminal-line[data-type=stderr]{color:#ff8585}.rcs-terminal-line[data-type=error]{color:#ff5a5f}.rcs-terminal-line[data-type=warn]{color:#ffb948}.rcs-terminal-line[data-type=info]{color:#62a3ff}.rcs-terminal-line[data-type=debug]{color:#a6a6a6}.rcs-terminal-line[data-type=prompt]{color:#1f9e5c}.rcs-terminal-cursor{vertical-align:text-bottom;background:#e5e5e5;width:7px;height:14px;animation:1s steps(2,end) infinite rcs-blink;display:inline-block}@keyframes rcs-blink{50%{opacity:0}}.rcs-rte{border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);overflow:hidden}.rcs-rte-toolbar{border-bottom:1px solid var(--border-1);background:var(--bg-2);gap:2px;padding:4px 6px;display:flex}.rcs-rte-toolbtn{cursor:pointer;border-radius:var(--radius-xs);color:var(--fg-2);background:0 0;border:0;padding:4px 8px;font-size:13px}.rcs-rte-toolbtn:hover{background:var(--bg-3);color:var(--fg-1)}.rcs-rte-content{padding:var(--space-3);color:var(--fg-1);outline:0;min-height:120px;font-size:14px;line-height:1.6}.rcs-rte-content[data-empty=true]:before{content:attr(data-placeholder);color:var(--fg-4)}.rcs-page-header{--rcs-page-header-py:var(--space-5);--rcs-page-header-px:var(--space-6);--rcs-page-header-title-fs:var(--fs-h3);--rcs-page-header-subtitle-fs:14px;border-bottom:1px solid var(--border-1);padding:var(--rcs-page-header-py) var(--rcs-page-header-px);background:var(--bg-1)}.rcs-page-header--xs{--rcs-page-header-py:var(--space-1\.5);--rcs-page-header-px:var(--space-3);--rcs-page-header-title-fs:15px;--rcs-page-header-subtitle-fs:12px}.rcs-page-header--sm{--rcs-page-header-py:var(--space-2);--rcs-page-header-px:var(--space-4);--rcs-page-header-title-fs:var(--fs-h4);--rcs-page-header-subtitle-fs:13px}.rcs-page-header--lg{--rcs-page-header-py:var(--space-6);--rcs-page-header-px:var(--space-8);--rcs-page-header-title-fs:var(--fs-h2);--rcs-page-header-subtitle-fs:15px}.rcs-page-header--xl{--rcs-page-header-py:var(--space-8);--rcs-page-header-px:var(--space-12);--rcs-page-header-title-fs:var(--fs-h1);--rcs-page-header-subtitle-fs:17px}.rcs-page-header-row{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.rcs-page-header-back{cursor:pointer;color:var(--fg-3);margin-bottom:var(--space-2);font-size:12px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;align-items:center;gap:4px;padding:2px 0;display:inline-flex}.rcs-page-header-back:hover{color:var(--fg-1)}.rcs-page-header-back-inline{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--fg-3);cursor:pointer;transition:background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;display:inline-flex}.rcs-page-header-back-inline:hover{background:var(--bg-2);color:var(--fg-1)}.rcs-page-header-back-inline:active{transform:translateY(.5px)}.rcs-page-header--sm .rcs-page-header-back-inline{width:24px;height:24px;font-size:14px}.rcs-page-header--xs .rcs-page-header-back-inline{width:22px;height:22px;font-size:13px}.rcs-page-header--xs .rcs-page-header-title{gap:var(--space-2)}.rcs-page-header-title{align-items:center;gap:var(--space-3);min-width:0;display:flex}.rcs-page-header-title h1{font-size:var(--rcs-page-header-title-fs);font-family:var(--font-display);font-weight:var(--fw-semibold);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";margin:0}.rcs-page-header-subtitle{font-size:var(--rcs-page-header-subtitle-fs);color:var(--fg-3);margin-top:4px}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-title-text{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle{margin-top:0}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle:before{content:"·";margin-right:var(--space-2);color:var(--fg-4)}.rcs-page-header-actions{gap:var(--space-2);flex-shrink:0;display:flex}.rcs-page-header-tabs{margin-top:var(--space-4);margin-bottom:calc(-1 * (var(--rcs-page-header-py) + var(--border-thin)))}.rcs-app-shell{background:var(--bg-0);grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.rcs-app-shell-body{min-height:0;display:grid}.rcs-app-shell-body[data-has-sidebar=true]{grid-template-columns:var(--rcs-sidebar-w,240px) 1fr}.rcs-app-shell-sidebar{border-right:1px solid var(--border-1);background:var(--bg-1);overflow:auto}.rcs-app-shell-main{min-width:0;overflow:auto}.rcs-app-shell-header{border-bottom:1px solid var(--border-1);background:var(--bg-1)}.rcs-app-shell-footer{border-top:1px solid var(--border-1);background:var(--bg-1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--bg-base:var(--bg-0);--bg-nav:var(--bg-1);--bg-panel:var(--bg-1);--bg-card:var(--bg-2);--bg-input:var(--bg-3);--border:var(--border-1);--border-hover:var(--border-2);--border-strong:var(--border-3);--text-primary:var(--fg-1);--text-secondary:var(--fg-2);--text-muted:var(--fg-3);--text-dim:var(--fg-4);--text-faint:var(--fg-4);--nav-active-bg:var(--bg-2);--nav-active-border:var(--border-2);--nav-active-text:var(--fg-1);--nav-inactive-text:var(--fg-3);--color-accent:var(--accent-fg);--color-accent-hover:var(--accent-hover);--accent-error:var(--brand-red-500);--color-warn:var(--amber-500);--color-success:var(--brand-red-300);--code-bg:var(--bg-3);--code-text:var(--fg-2);--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9;--accent-glow:var(--accent-soft)}[data-theme=dark] .icon-sun{display:flex}[data-theme=dark] .icon-moon,[data-theme=light] .icon-sun{display:none}[data-theme=light] .icon-moon{display:flex}[data-radix-popper-content-wrapper]{z-index:100!important}html,body{background:var(--bg-base);height:100%;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;overflow:hidden}#root{flex-direction:column;height:100%;display:flex}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-base)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}code{background:var(--bg-card);color:var(--text-secondary);border-radius:3px;padding:1px 5px;font-family:SF Mono,ui-monospace,monospace}.top-nav{background:var(--bg-nav);border-bottom:1px solid var(--border);z-index:10;flex-shrink:0;align-items:center;gap:.25rem;height:48px;padding:0 1rem;display:flex;position:relative;overflow-x:auto}.top-nav::-webkit-scrollbar{height:0}.logo{border-right:1px solid var(--border);color:inherit;flex-shrink:0;align-items:center;gap:.5rem;margin-right:.25rem;padding-right:1rem;text-decoration:none;display:flex}.logo-mark{letter-spacing:.12em;color:var(--text-primary);font-size:.7rem;font-weight:700}.logo-ver{color:var(--text-faint);letter-spacing:.02em;margin-left:2px;font-family:ui-monospace,monospace;font-size:.6rem}.nav-link{cursor:pointer;color:var(--nav-inactive-text);background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;align-items:center;gap:.35rem;padding:.3rem .7rem;font-family:inherit;font-size:.78rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.nav-link:hover{color:var(--text-secondary);background:var(--nav-active-bg)}.nav-link.active{color:var(--nav-active-text);background:var(--nav-active-bg);border-color:var(--nav-active-border)}.theme-btn{width:32px;height:32px;color:var(--text-dim);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;margin-left:.25rem;transition:all .15s;display:flex}.theme-btn:hover{border-color:var(--border-hover);color:var(--text-muted)}.status-bar{background:var(--bg-nav);border-top:1px solid var(--border);height:24px;color:var(--text-muted);flex-shrink:0;align-items:center;gap:14px;padding:0 18px;font-size:10px;display:flex}.status-item{align-items:center;gap:4px;display:flex}.status-key{background:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);border-radius:3px;padding:0 4px;font-family:SF Mono,ui-monospace,monospace;font-size:9px;font-weight:600}.main-content{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:1rem;transition:border-color .15s}.card:hover{border-color:var(--border-hover)}.badge{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-card);border:1px solid var(--border);color:var(--text-dim);border-radius:5px;align-items:center;padding:.15rem .5rem;font-size:.62rem;font-weight:600;display:inline-flex}.badge-green{color:#6ee7b7;background:#064e3b;border-color:#10b981}.badge-blue{border-color:var(--syntax-num);color:#a5f3fc;background:#0c4a6e}.badge-purple{border-color:var(--syntax-key);color:#c7d7fe;background:#1e1b4b}.badge-orange{border-color:var(--color-warn);color:#fed7aa;background:#451a03}.badge-red{color:#fecaca;background:#3f1014;border-color:#ef4444}.search-wrap{flex:1;max-width:600px;position:relative}.search-wrap svg{opacity:.4;pointer-events:none;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.search-input{background:var(--bg-input);width:100%;color:var(--text-primary);border:1px solid var(--border);border-radius:8px;outline:none;padding:6px 10px 6px 30px;font-family:SF Mono,ui-monospace,monospace;font-size:12px;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--accent-glow)}.search-input::placeholder{color:var(--text-muted)}.mode-pill{cursor:pointer;border:1px solid var(--border);color:var(--text-muted);background:0 0;border-radius:6px;padding:.3rem .75rem;font-family:inherit;font-size:.75rem;font-weight:600;transition:all .15s}.mode-pill.active{background:var(--nav-active-bg);border-color:var(--color-accent);color:var(--color-accent)}.mode-pill:hover:not(.active){background:var(--nav-active-bg);color:var(--text-secondary)}.mcp-view{background:var(--bg-base);flex-direction:column;flex:1;display:flex;overflow:hidden}.mc-status-bar{background:var(--bg-panel);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.75rem;padding:.6rem 1.25rem;display:flex}.mc-badge{letter-spacing:.08em;background:var(--bg-card);color:var(--text-dim);border:1px solid var(--border);border-radius:4px;padding:.2rem .55rem;font-family:ui-monospace,monospace;font-size:.65rem;font-weight:600}.mc-btn-icon{border:1px solid var(--border);background:var(--bg-card);height:30px;color:var(--text-dim);cursor:pointer;border-radius:6px;align-items:center;gap:.3rem;padding:0 .6rem;font-family:inherit;font-size:.72rem;transition:all .15s;display:flex}.mc-btn-icon:hover{border-color:var(--border-hover);color:var(--text-muted)}.mc-tool-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;flex-direction:column;padding:.9rem;transition:border-color .15s,box-shadow .15s;display:flex;position:relative;overflow:hidden}.mc-tool-card:hover{border-color:var(--border-hover);box-shadow:0 0 12px #ffffff08}.mc-param-tag{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.12rem .35rem;font-family:ui-monospace,monospace;font-size:.62rem}.mc-param-req{border-color:var(--border-hover);color:var(--text-secondary)}.mc-param-opt{color:var(--text-dim)}.mc-btn-call{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-hover);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:inherit;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-call:hover{background:var(--bg-panel);color:var(--text-primary);border-color:var(--border-strong)}.mc-btn-rpc{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:ui-monospace,monospace;font-size:.7rem;font-weight:600;transition:background .12s}.mc-btn-rpc:hover{background:var(--bg-panel);color:var(--text-secondary)}.mc-overlay{z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000bf;position:fixed;inset:0}.mc-modal{border:1px solid var(--border-hover);background:var(--bg-panel);border-radius:14px;position:relative;box-shadow:0 24px 64px #0009}.mc-code{color:var(--code-text);border:1px solid var(--border);background:#050505;border-radius:8px;font-family:ui-monospace,monospace;font-size:.75rem}.mc-textarea{color:#86efac;border:1px solid var(--border);resize:none;background:#050505;border-radius:8px;outline:none;width:100%;padding:.6rem .75rem;font-family:ui-monospace,monospace;font-size:.74rem;transition:border-color .15s}.mc-textarea:focus{border-color:var(--border-hover)}.mc-send-btn{background:var(--text-primary);width:100%;color:var(--bg-base);cursor:pointer;border:none;border-radius:8px;padding:.6rem;font-family:inherit;font-size:.82rem;font-weight:700;transition:opacity .15s}.mc-send-btn:hover{opacity:.85}.mc-send-btn:disabled{opacity:.4;cursor:not-allowed}.mc-copy-btn{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:5px;align-items:center;gap:.35rem;padding:.25rem .6rem;font-family:inherit;font-size:.72rem;transition:all .12s;display:flex}.mc-copy-btn:hover{color:var(--text-secondary);border-color:var(--border-hover)}[data-radix-tabs-trigger][data-state=active]{color:var(--text-primary)!important;border-bottom-color:var(--color-accent)!important}[data-radix-tabs-trigger]{outline:none}[data-radix-tabs-trigger]:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent)}.stats{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.stat{border:1px solid var(--border);background:var(--bg-card);border-radius:8px;flex-direction:column;justify-content:center;min-width:72px;padding:.35rem .55rem;display:flex}.stat-val{color:var(--text-primary);font-size:.85rem;font-weight:700;line-height:1}.stat-lbl{text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-top:.18rem;font-size:.62rem}@keyframes mc-ping{75%,to{opacity:0;transform:scale(2)}}.traces-layout{flex:1;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1rem;min-height:0;display:grid;overflow:hidden}@media (width<=860px){.traces-layout{grid-template-rows:auto 1fr;grid-template-columns:1fr;overflow:auto}}.traces-right-col{grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;min-height:0;display:grid;overflow:hidden}.stats-bar{font-size:10px;font-family:var(--font-mono,monospace);color:var(--text-muted);align-items:center;gap:14px;display:flex}.stats-bar b{color:var(--text-primary)}.stats-bar .stat-error{color:#ef4444}.stats-bar .stat-healthy{color:#22c55e}.ws-dot{border-radius:50%;width:6px;height:6px;display:inline-block}.ws-dot.connected{background:#22c55e}.ws-dot.disconnected{background:#ef4444}.service-map-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.service-map-toolbar{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 16px;display:flex}.service-map-body{flex:1;display:flex;overflow:hidden}.service-map-canvas{flex:1;min-height:0;position:relative}.edge-slider{color:var(--text-muted);align-items:center;gap:6px;font-size:10px;display:flex}.edge-slider input[type=range]{width:120px;accent-color:var(--color-accent)}.zoom-controls{gap:4px;display:flex}.zoom-btn{border:1px solid var(--border);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:flex}.zoom-btn:hover{border-color:var(--border-hover);color:var(--text-primary)}.side-panel{border-left:1px solid var(--border);background:var(--bg-card);flex-shrink:0;width:280px;padding:12px;overflow-y:auto} +@font-face{font-family:Bricolage Grotesque;font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap;src:url(/assets/BricolageGrotesque-Variable-C5Lc8Qmc.woff2)format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/PlusJakartaSans-Variable-eXO_dkmS.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/GeistMono-Variable-BNLlm6Cd.woff2)format("woff2")}:root{--font-display:"Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-sans:"Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs-display:64px;--lh-display:1.02;--ls-display:-.035em;--fs-h1:44px;--lh-h1:1.06;--ls-h1:-.028em;--fs-h2:32px;--lh-h2:1.12;--ls-h2:-.022em;--fs-h3:22px;--lh-h3:1.25;--ls-h3:-.014em;--fs-h4:17px;--lh-h4:1.35;--ls-h4:-.008em;--fs-body:15px;--lh-body:1.55;--ls-body:0;--fs-small:13px;--lh-small:1.5;--ls-small:0;--fs-micro:11px;--lh-micro:1.4;--ls-micro:.04em;--fs-code:13.5px;--lh-code:1.55;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--space-0:0;--space-1:4px;--space-1\.5:6px;--space-2:8px;--space-2\.5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--container-narrow:640px;--container:960px;--container-wide:1280px;--container-full:1536px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-2xl:16px;--radius-full:9999px;--border-thin:1px;--border-medium:1.5px;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--dur-instant:80ms;--dur-fast:.14s;--dur-base:.22s;--dur-slow:.38s;--elevation-card:var(--shadow-sm);--elevation-popover:var(--shadow-md);--elevation-modal:var(--shadow-lg);--elevation-toast:var(--shadow-lg);--inset-highlight:inset 0 1px 0 #ffffff0f;--inset-shade:inset 0 -1px 0 #0000001f;--brand-red-50:#fff0f0;--brand-red-100:#ffd6d6;--brand-red-200:#ffa8a8;--brand-red-300:#ff6b6b;--brand-red-400:#ff2e2e;--brand-red-500:#e60000;--brand-red-600:#c20000;--brand-red-700:#9e0000;--brand-red-800:#7a0000;--brand-red-900:#520000;--brand-gray-50:#f5f5f5;--brand-gray-100:#e5e5e5;--brand-gray-200:#ccc;--brand-gray-300:#a6a6a6;--brand-gray-400:gray;--brand-gray-500:#5a5a5a;--brand-gray-600:#3d3d3d;--brand-gray-700:#2b2b2b;--brand-gray-800:#1c1c1c;--brand-gray-900:#0f0f0f;--amber-500:#ffb948;--red-500:#ff5a5f;--blue-500:#3d8cff;--pink-500:#ff5ca8}:root,[data-theme=light]{--bg-0:#fff;--bg-1:#fff;--bg-2:#f5f5f5;--bg-3:#e5e5e5;--bg-inverse:#1c1c1c;--fg-1:#1c1c1c;--fg-2:#3d3d3d;--fg-3:#4f4f4f;--fg-4:#a6a6a6;--fg-inverse:#fff;--border-1:#1c1c1c14;--border-2:#1c1c1c24;--border-3:#1c1c1c3d;--accent:#e60000;--accent-hover:#c20000;--accent-press:#9e0000;--accent-soft:#e6000014;--accent-soft-2:#e6000029;--accent-fg:#fff;--success:#1c1c1c;--warning:#d98e2b;--danger:#e60000;--info:#2d73d9;--shadow-xs:0 1px 1px #1c1c1c0a;--shadow-sm:0 1px 2px #1c1c1c0f, 0 1px 1px #1c1c1c0a;--shadow-md:0 4px 12px #1c1c1c12, 0 1px 2px #1c1c1c0a;--shadow-lg:0 12px 32px #1c1c1c1a, 0 2px 6px #1c1c1c0d;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#1c1c1c0a}[data-theme=dark]{--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg-0:#1c1c1c;--bg-1:#2b2b2b;--bg-2:#3d3d3d;--bg-3:#4a4a4a;--bg-inverse:#fff;--fg-1:#fff;--fg-2:#ccc;--fg-3:#a6a6a6;--fg-4:#5a5a5a;--fg-inverse:#1c1c1c;--border-1:#ffffff14;--border-2:#ffffff24;--border-3:#ffffff3d;--accent:#e60000;--accent-hover:#ff2e2e;--accent-press:#c20000;--accent-soft:#e6000024;--accent-soft-2:#e600003d;--accent-fg:#fff;--success:#fff;--warning:#ffb948;--danger:#ff6366;--info:#62a3ff;--shadow-xs:0 1px 1px #0006;--shadow-sm:0 1px 2px #00000073, 0 1px 1px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 2px #00000059;--shadow-lg:0 18px 40px #000000a6, 0 2px 8px #0006;--shadow-focus:0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);--grid-line:#ffffff0a}}html{font-family:var(--font-sans);color:var(--fg-1);background:var(--bg-0)}body{font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt", "liga", "kern"}.rcs-display,h1.display{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1)}h1,.rcs-h1{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h2,.rcs-h2{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h3,.rcs-h3{font-family:var(--font-display);font-weight:var(--fw-semibold);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--ls-h3);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";color:var(--fg-1);margin:0}h4,.rcs-h4{font-weight:var(--fw-medium);font-size:var(--fs-h4);line-height:var(--lh-h4);letter-spacing:var(--ls-h4);color:var(--fg-1);margin:0}p,.rcs-body{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--fg-2);margin:0}.rcs-small,small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--fg-3)}.rcs-micro,.rcs-label{font-family:var(--font-mono);font-size:var(--fs-micro);line-height:var(--lh-micro);letter-spacing:var(--ls-micro);text-transform:uppercase;color:var(--fg-3);font-weight:var(--fw-medium)}code,kbd,samp,pre,.rcs-code{font-family:var(--font-mono);font-size:var(--fs-code);line-height:var(--lh-code);font-feature-settings:"zero", "tnum";font-variant-numeric:tabular-nums slashed-zero}.rcs-stat-value,.rcs-stat-delta,.rcs-micro,.rcs-label{font-variant-numeric:tabular-nums}code:not(pre code){background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-xs);color:var(--fg-1);padding:1px 5px;font-size:.92em}a{color:var(--accent);transition:opacity var(--dur-fast) var(--ease-out-quart);text-decoration:none}a:hover{opacity:.75}::selection{background:var(--accent-soft-2);color:var(--fg-1)}:focus-visible{box-shadow:var(--shadow-focus);border-radius:var(--radius-sm);outline:none}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.rcs-button,.rcs-input,.rcs-textarea,.rcs-select-trigger{font-family:var(--font-sans)}.rcs-button{justify-content:center;align-items:center;gap:var(--space-2);font-weight:var(--fw-medium);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);border:1px solid #0000;display:inline-flex}.rcs-button:disabled,.rcs-button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.rcs-button:active:not(:disabled){transform:translateY(.5px)}.rcs-button--primary:focus-visible,.rcs-button--danger:focus-visible{box-shadow:var(--inset-highlight), var(--inset-shade), var(--shadow-focus)}.rcs-button--xs{border-radius:var(--radius-sm);height:24px;padding:0 8px;font-size:12px}.rcs-button--sm{border-radius:var(--radius-sm);height:28px;padding:0 10px;font-size:13px}.rcs-button--md{border-radius:var(--radius-sm);height:32px;padding:0 12px;font-size:14px}.rcs-button--lg{border-radius:var(--radius-md);height:40px;padding:0 16px;font-size:15px}.rcs-button--pill{border-radius:var(--radius-full)}.rcs-button--square{aspect-ratio:1;padding:0}.rcs-button--circle{aspect-ratio:1;border-radius:var(--radius-full);padding:0}.rcs-button--block{width:100%}.rcs-button--primary{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--primary:hover:not(:disabled){background:var(--brand-gray-700);border-color:var(--brand-gray-700)}.rcs-button--secondary{background:var(--bg-1);color:var(--fg-1);border-color:var(--border-2)}.rcs-button--secondary:hover:not(:disabled){background:var(--bg-2);border-color:var(--border-3)}.rcs-button--ghost{color:var(--fg-1);background:0 0;border-color:#0000}.rcs-button--ghost:hover:not(:disabled){background:var(--bg-2)}.rcs-button--danger{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);box-shadow:var(--inset-highlight), var(--inset-shade), 0 1px 1px #0000000a}.rcs-button--danger:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.rcs-button--link{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0}.rcs-button--link:hover:not(:disabled){opacity:.75}.rcs-button-spinner{border:1.5px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite rcs-spin}@keyframes rcs-spin{to{transform:rotate(360deg)}}.rcs-button-group{display:inline-flex}.rcs-button-group--vertical{flex-direction:column}.rcs-button-group--attached .rcs-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.rcs-button-group--attached .rcs-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;margin-left:0}.rcs-button-group--attached.rcs-button-group--vertical .rcs-button:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.rcs-input-wrap{background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);align-items:center;width:100%;display:flex}.rcs-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-input-wrap[data-status=error]{border-color:var(--danger)}.rcs-input-wrap[data-status=warning]{border-color:var(--warning)}.rcs-input-wrap[data-status=success]{border-color:var(--brand-gray-800)}.rcs-input-wrap[data-disabled=true]{opacity:.6;cursor:not-allowed;background:var(--bg-2)}.rcs-input-wrap--xs{height:24px;padding:0 8px;font-size:12px}.rcs-input-wrap--sm{height:28px;padding:0 10px;font-size:13px}.rcs-input-wrap--md{height:32px;padding:0 12px;font-size:14px}.rcs-input-wrap--lg{height:40px;padding:0 14px;font-size:15px}.rcs-input{min-width:0;color:var(--fg-1);font-family:inherit;font-size:inherit;background:0 0;border:0;outline:0;flex:1}.rcs-input::placeholder{color:var(--fg-4)}.rcs-input-wrap>.rcs-input:focus,.rcs-input-wrap>.rcs-input:focus-visible{box-shadow:none;border-radius:inherit}@media (width<=768px),(pointer:coarse){.rcs-input-wrap--xs,.rcs-input-wrap--sm,.rcs-input-wrap--md,.rcs-input-wrap--lg,.rcs-textarea{font-size:16px}}.rcs-input-affix{color:var(--fg-3);align-items:center;display:inline-flex}.rcs-input-affix--left{margin-right:var(--space-2)}.rcs-input-affix--right{margin-left:var(--space-2)}.rcs-input-clear{cursor:pointer;color:var(--fg-3);border-radius:var(--radius-xs);background:0 0;border:0;padding:2px;line-height:1}.rcs-input-clear:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-textarea{background:var(--bg-1);width:100%;color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);transition:border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);resize:vertical;outline:0;font-family:inherit;font-size:14px;line-height:1.55;display:block}.rcs-textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-textarea-count{text-align:right;font-family:var(--font-mono);color:var(--fg-4);margin-top:4px;font-size:11px;display:block}.rcs-pin{gap:var(--space-2);display:inline-flex}.rcs-pin-cell{text-align:center;width:36px;height:40px;font-family:var(--font-mono);background:var(--bg-1);color:var(--fg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);outline:0;font-size:16px}.rcs-pin-cell:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-form-field{margin-bottom:var(--space-4);display:block}.rcs-form-label{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1);margin-bottom:var(--space-2);display:block}.rcs-form-required{color:var(--danger);margin-left:2px}.rcs-form-optional{color:var(--fg-4);margin-left:4px;font-weight:400}.rcs-form-hint{color:var(--fg-3);margin-top:6px;font-size:12px;display:block}.rcs-form-error{color:var(--danger);font-size:12px;font-family:var(--font-mono);margin-top:6px;display:block}.rcs-checkbox,.rcs-radio{align-items:flex-start;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-flex}.rcs-checkbox input,.rcs-radio input{appearance:none;border:1.5px solid var(--border-3);background:var(--bg-1);cursor:pointer;width:16px;height:16px;transition:background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0;place-items:center;margin:1px 0 0;display:inline-grid}.rcs-checkbox input{border-radius:3px}.rcs-radio input{border-radius:50%}.rcs-checkbox input:checked,.rcs-radio input:checked{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:checked:after{content:"";border-left:1.75px solid var(--fg-inverse);border-bottom:1.75px solid var(--fg-inverse);width:9px;height:5px;transform:rotate(-45deg)translate(1px,-1px)}.rcs-checkbox input:indeterminate{background:var(--bg-inverse);border-color:var(--bg-inverse)}.rcs-checkbox input:indeterminate:after{content:"";background:var(--fg-inverse);width:8px;height:1.75px}.rcs-radio input:checked:after{content:"";background:var(--fg-inverse);border-radius:50%;width:6px;height:6px}.rcs-checkbox-label,.rcs-radio-label{line-height:1.4}.rcs-checkbox-desc,.rcs-radio-desc{color:var(--fg-3);margin-top:2px;font-size:12px;display:block}.rcs-radio-group{gap:var(--space-4);display:inline-flex}.rcs-radio-group--vertical{flex-direction:column}.rcs-switch{align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex}.rcs-switch-track{background:var(--bg-3);border-radius:var(--radius-full);width:32px;height:18px;transition:background var(--dur-fast) var(--ease-out-quart);position:relative}.rcs-switch-thumb{width:14px;height:14px;transition:transform var(--dur-fast) var(--ease-out-quart);box-shadow:var(--shadow-xs);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.rcs-switch[data-checked=true] .rcs-switch-track{background:var(--accent)}.rcs-switch[data-checked=true] .rcs-switch-thumb{transform:translate(14px)}.rcs-switch--xs .rcs-switch-track{width:24px;height:14px}.rcs-switch--xs .rcs-switch-thumb{width:10px;height:10px}.rcs-switch--xs[data-checked=true] .rcs-switch-thumb{transform:translate(10px)}.rcs-switch--lg .rcs-switch-track{width:44px;height:24px}.rcs-switch--lg .rcs-switch-thumb{width:20px;height:20px}.rcs-switch--lg[data-checked=true] .rcs-switch-thumb{transform:translate(20px)}.rcs-switch input{opacity:0;pointer-events:none;position:absolute}.rcs-slider{-webkit-user-select:none;user-select:none;height:32px;padding:12px 0;position:relative}.rcs-slider-track{background:var(--bg-3);border-radius:var(--radius-full);height:4px;position:relative}.rcs-slider-fill{background:var(--accent);border-radius:inherit;height:100%;position:absolute}.rcs-slider-thumb{border:2px solid var(--accent);width:16px;height:16px;box-shadow:var(--shadow-sm);cursor:grab;background:#fff;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.rcs-slider-thumb:active{cursor:grabbing}.rcs-slider-marks{height:16px;color:var(--fg-3);margin-top:8px;font-size:11px;position:relative}.rcs-slider-mark{position:absolute;transform:translate(-50%)}.rcs-select{width:100%;display:inline-block;position:relative}.rcs-select-trigger{align-items:center;gap:var(--space-2);background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-sm);width:100%;min-width:120px;color:var(--fg-1);cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart);outline:0;display:inline-flex}.rcs-select-trigger:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-select-trigger[data-status=error]{border-color:var(--danger)}.rcs-select-trigger[disabled]{opacity:.6;cursor:not-allowed}.rcs-select-trigger--xs{height:24px;padding:0 8px;font-size:12px}.rcs-select-trigger--sm{height:28px;padding:0 10px;font-size:13px}.rcs-select-trigger--md{height:32px;padding:0 12px;font-size:14px}.rcs-select-trigger--lg{height:40px;padding:0 14px;font-size:15px}.rcs-select-value{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.rcs-select-placeholder{color:var(--fg-4)}.rcs-select-caret{color:var(--fg-3);transition:transform var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.rcs-select[data-open=true] .rcs-select-caret{transform:rotate(180deg)}.rcs-select-menu{z-index:20;background:var(--bg-1);border:1px solid var(--border-2);border-radius:var(--radius-md);box-shadow:var(--elevation-popover);max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}.rcs-select-search{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);width:100%;color:var(--fg-1);outline:0;margin-bottom:4px;padding:6px 8px;font-size:13px}.rcs-select-option{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;padding:6px 8px;font-size:13px;display:flex}.rcs-select-option:hover,.rcs-select-option[data-active=true]{background:var(--bg-2)}.rcs-select-option[data-selected=true]{background:var(--accent-soft);color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-select-option[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-select-option-desc{color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-select-empty{text-align:center;color:var(--fg-4);padding:12px;font-size:13px}.rcs-combo-tag{background:var(--bg-2);border-radius:var(--radius-xs);align-items:center;gap:4px;margin-right:4px;padding:1px 4px 1px 6px;font-size:12px;display:inline-flex}.rcs-combo-tag-x{cursor:pointer;color:var(--fg-3);background:0 0;border:0;padding:0 2px}.rcs-upload-drop{padding:var(--space-8);border:1.5px dashed var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);text-align:center;cursor:pointer;transition:border-color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);flex-direction:column;justify-content:center;align-items:center;display:flex}.rcs-upload-drop:hover,.rcs-upload-drop[data-drag=true]{border-color:var(--accent);background:var(--accent-soft)}.rcs-upload-hint{color:var(--fg-3);margin-top:4px;font-size:12px}.rcs-badge{font-family:var(--font-mono);font-size:11px;font-weight:var(--fw-medium);border-radius:var(--radius-xs);letter-spacing:.02em;text-transform:uppercase;border:1px solid #0000;align-items:center;gap:4px;padding:2px 6px;line-height:1.4;display:inline-flex}.rcs-badge--sm{padding:1px 4px;font-size:10px}.rcs-badge--lg{padding:3px 8px;font-size:12px}.rcs-badge--neutral{background:var(--bg-2);color:var(--fg-2);border-color:var(--border-1)}.rcs-badge--info{color:var(--info);background:#2d73d91a}.rcs-badge--warning{color:var(--warning);background:#d98e2b1f}.rcs-badge--danger{background:var(--accent-soft);color:var(--accent)}.rcs-badge--subtle{background:var(--bg-2);color:var(--fg-3);border-color:var(--border-1)}.rcs-badge--solid{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-badge-x{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:0;padding:0 0 0 2px}.rcs-badge-x:hover{opacity:1}.rcs-status-dot{align-items:center;gap:var(--space-2);color:var(--fg-2);font-size:13px;display:inline-flex}.rcs-status-dot-glyph{background:var(--fg-3);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.rcs-status-dot[data-status=running] .rcs-status-dot-glyph,.rcs-status-dot[data-status=live] .rcs-status-dot-glyph{background:#1f9e5c}.rcs-status-dot[data-status=degraded] .rcs-status-dot-glyph{background:var(--warning)}.rcs-status-dot[data-status=failed] .rcs-status-dot-glyph{background:var(--danger)}.rcs-status-dot[data-status=idle] .rcs-status-dot-glyph,.rcs-status-dot[data-status=stopped] .rcs-status-dot-glyph{background:var(--fg-4)}.rcs-status-dot[data-pulse=true] .rcs-status-dot-glyph{animation:rcs-pulse 1.6s var(--ease-out-quart) infinite;box-shadow:0 0}@keyframes rcs-pulse{0%{box-shadow:0 0 #1f9e5c80}70%{box-shadow:0 0 0 6px #1f9e5c00}to{box-shadow:0 0 #1f9e5c00}}.rcs-card{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-card);transition:border-color var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart)}.rcs-card[data-hoverable=true]:hover{border-color:var(--border-2);box-shadow:var(--elevation-popover);transform:translateY(-1px)}.rcs-card[data-hoverable=true]:active{box-shadow:var(--elevation-card);transform:translateY(0)}.rcs-card-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);justify-content:space-between;align-items:flex-start;display:flex}.rcs-card-title{font-size:15px;font-weight:var(--fw-semibold);color:var(--fg-1)}.rcs-card-subtitle{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-card-extra{flex-shrink:0}.rcs-card-body{padding:var(--space-5)}.rcs-card-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);background:var(--bg-2);border-radius:0 0 var(--radius-md) var(--radius-md)}.rcs-space{display:inline-flex}.rcs-space--vertical{flex-direction:column}.rcs-space--wrap{flex-wrap:wrap}.rcs-space-split{color:var(--border-2);align-self:stretch;align-items:stretch;display:inline-flex}.rcs-divider{background:var(--border-1);border:0}.rcs-divider--horizontal{width:100%;height:1px;margin:var(--space-4) 0}.rcs-divider--vertical{width:1px;height:1em;margin:0 var(--space-3);vertical-align:middle;display:inline-block}.rcs-divider--text{align-items:center;gap:var(--space-3);height:auto;margin:var(--space-4) 0;font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;background:0 0;font-size:11px;display:flex}.rcs-divider--text:before,.rcs-divider--text:after{content:"";background:var(--border-1);flex:1;height:1px}.rcs-divider--dashed{background-image:linear-gradient(to right, var(--border-2) 50%, transparent 50%);background-color:#0000;background-size:8px 1px}.rcs-grid{display:grid}.rcs-scroll{position:relative}.rcs-scroll[data-thin=true]{scrollbar-width:thin}.rcs-tabs{flex-direction:column;display:flex}.rcs-tabs-nav{flex-shrink:0;align-items:center;gap:0;display:flex}.rcs-tabs-tab{align-items:center;gap:var(--space-2);cursor:pointer;font-size:14px;font-weight:var(--fw-medium);color:var(--fg-3);transition:color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;padding:10px 14px;display:inline-flex}.rcs-tabs-tab:hover,.rcs-tabs-tab[data-active=true]{color:var(--fg-1)}.rcs-tabs-tab:active:not([disabled]):not([data-active=true]){transform:translateY(.5px)}.rcs-tabs-tab[disabled]{opacity:.4;cursor:not-allowed}.rcs-tabs--line .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--line .rcs-tabs-tab[data-active=true]{box-shadow:inset 0 -2px 0 0 var(--fg-1)}.rcs-tabs--card .rcs-tabs-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;border:1px solid #0000;margin-bottom:-1px}.rcs-tabs--card .rcs-tabs-nav{border-bottom:1px solid var(--border-1)}.rcs-tabs--card .rcs-tabs-tab[data-active=true]{background:var(--bg-1);border-color:var(--border-1) var(--border-1) var(--bg-1)}.rcs-tabs--segment{background:var(--bg-2);border-radius:var(--radius-sm);padding:3px;display:inline-flex}.rcs-tabs--segment .rcs-tabs-nav{gap:0}.rcs-tabs--segment .rcs-tabs-tab{border-radius:var(--radius-xs);padding:6px 12px}.rcs-tabs--segment .rcs-tabs-tab[data-active=true]{background:var(--bg-1);box-shadow:var(--shadow-xs)}.rcs-tabs--pill .rcs-tabs-tab{border-radius:var(--radius-full);padding:6px 14px}.rcs-tabs--pill .rcs-tabs-tab[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse)}.rcs-tabs[data-scrollable=true]{position:relative}.rcs-tabs-nav[data-scrollable=true]{scrollbar-width:none;-ms-overflow-style:none;overflow:auto hidden}.rcs-tabs-nav[data-scrollable=true]::-webkit-scrollbar{display:none}.rcs-tabs-nav[data-scrollable=true] .rcs-tabs-tab{flex-shrink:0}.rcs-tabs[data-scrollable=true]:after{content:"";width:32px;height:var(--rcs-tabs-nav-h,40px);background:linear-gradient(to right, transparent, var(--rcs-tabs-fade-color,var(--bg-0)));pointer-events:none;z-index:1;position:absolute;top:0;right:0}.rcs-tabs-content{flex-direction:column;flex:1;min-height:0;display:flex}.rcs-menu{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);flex-direction:column;min-width:200px;padding:4px;display:flex}.rcs-menu--horizontal{flex-direction:row}.rcs-menu-item{align-items:center;gap:var(--space-2);cursor:pointer;border-radius:var(--radius-sm);color:var(--fg-1);padding:6px 8px;font-size:13px;display:flex}.rcs-menu-item:hover{background:var(--bg-2)}.rcs-menu-item[data-selected=true]{background:var(--accent-soft)}.rcs-menu-item[data-destructive=true]{color:var(--danger)}.rcs-menu-item[data-disabled=true]{opacity:.4;cursor:not-allowed}.rcs-menu-item-shortcut{font-family:var(--font-mono);color:var(--fg-3);margin-left:auto;font-size:11px}.rcs-menu-separator{background:var(--border-1);height:1px;margin:4px 0}.rcs-menu-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;padding:4px 8px;font-size:10px}.rcs-breadcrumb{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-breadcrumb a{color:var(--fg-2)}.rcs-breadcrumb a:hover{color:var(--fg-1)}.rcs-breadcrumb-item--last{color:var(--fg-1);font-weight:var(--fw-medium)}.rcs-breadcrumb-sep{color:var(--fg-4)}.rcs-pagination{align-items:center;gap:4px;font-size:13px;display:inline-flex}.rcs-pagination-btn{min-width:28px;height:28px;color:var(--fg-2);border:1px solid var(--border-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;padding:0 8px;font-size:13px}.rcs-pagination-btn:hover:not(:disabled){border-color:var(--border-3);color:var(--fg-1)}.rcs-pagination-btn[data-active=true]{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-pagination-btn:disabled{opacity:.4;cursor:not-allowed}.rcs-pagination-ellipsis{color:var(--fg-4);padding:0 6px}.rcs-steps{gap:0;display:flex}.rcs-steps--vertical{flex-direction:column}.rcs-step{align-items:flex-start;gap:var(--space-2);padding:0 var(--space-3);flex:1;display:flex;position:relative}.rcs-step:not(:last-child):after{content:"";top:12px;left:calc(24px + var(--space-3));background:var(--border-2);height:1px;position:absolute;right:0}.rcs-step[data-status=finish]:after{background:var(--bg-inverse)}.rcs-step-marker{width:24px;height:24px;font-size:11px;font-family:var(--font-mono);font-weight:var(--fw-medium);border:1px solid var(--border-2);background:var(--bg-1);color:var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.rcs-step[data-status=process] .rcs-step-marker,.rcs-step[data-status=finish] .rcs-step-marker{background:var(--bg-inverse);color:var(--fg-inverse);border-color:var(--bg-inverse)}.rcs-step[data-status=error] .rcs-step-marker{background:var(--danger);color:#fff;border-color:var(--danger)}.rcs-step-title{font-size:13px;font-weight:var(--fw-medium);color:var(--fg-1)}.rcs-step[data-status=wait] .rcs-step-title{color:var(--fg-3)}.rcs-step-desc{color:var(--fg-3);margin-top:2px;font-size:12px}.rcs-alert{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);display:flex}.rcs-alert--info{background:#2d73d90f;border-color:#2d73d933}.rcs-alert--success{background:var(--bg-2);border-color:var(--border-1)}.rcs-alert--warning{background:#d98e2b14;border-color:#d98e2b40}.rcs-alert--danger{background:var(--accent-soft);border-color:var(--accent-soft-2)}.rcs-alert-body{flex:1}.rcs-alert-title{font-weight:var(--fw-semibold);color:var(--fg-1);margin-bottom:2px;font-size:14px}.rcs-alert-content{color:var(--fg-2);font-size:13px;line-height:1.5}.rcs-alert-action{margin-top:8px}.rcs-alert-icon{flex-shrink:0;padding-top:1px;font-size:16px;line-height:1}.rcs-alert-close{cursor:pointer;color:var(--fg-3);background:0 0;border:0;flex-shrink:0;padding:2px;line-height:1}.rcs-alert-close:hover{color:var(--fg-1)}.rcs-modal-backdrop{z-index:100;padding:var(--space-4);animation:rcs-fade-in var(--dur-base) var(--ease-out-quart);background:#0006;place-items:center;display:grid;position:fixed;inset:0}.rcs-modal{background:var(--bg-1);color:var(--fg-1);border-radius:var(--radius-lg);box-shadow:var(--elevation-modal);width:100%;max-width:520px;max-height:90vh;animation:rcs-pop-in var(--dur-base) var(--ease-out-quart);flex-direction:column;display:flex}.rcs-modal--xs{max-width:360px}.rcs-modal--sm{max-width:440px}.rcs-modal--md{max-width:520px}.rcs-modal--lg{max-width:720px}.rcs-modal--fullscreen{border-radius:0;max-width:100vw;height:100vh;max-height:100vh}.rcs-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border-1);flex-shrink:0}.rcs-modal-title{font-size:17px;font-weight:var(--fw-semibold);margin:0}.rcs-modal-desc{color:var(--fg-3);margin-top:4px;font-size:13px}.rcs-modal-body{padding:var(--space-5);flex:1;min-height:0;overflow:auto}.rcs-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border-1);justify-content:flex-end;gap:var(--space-2);flex-shrink:0;display:flex}@keyframes rcs-fade-in{0%{opacity:0}}@keyframes rcs-pop-in{0%{opacity:0;transform:scale(.96)translateY(8px)}}.rcs-drawer{background:var(--bg-1);color:var(--fg-1);z-index:101;box-shadow:var(--elevation-modal);flex-direction:column;display:flex;position:fixed}.rcs-drawer--right{height:100dvh;top:0;right:0}.rcs-drawer--left{height:100dvh;top:0;left:0}.rcs-drawer--top{width:100dvw;top:0;left:0}.rcs-drawer--bottom{width:100dvw;bottom:0;left:0}.rcs-progress{display:block}.rcs-progress-track{background:var(--bg-3);border-radius:var(--radius-full);width:100%;height:6px;overflow:hidden}.rcs-progress-fill{background:var(--bg-inverse);border-radius:inherit;height:100%;transition:width var(--dur-base) var(--ease-out-quart)}.rcs-progress[data-tone=danger] .rcs-progress-fill{background:var(--danger)}.rcs-progress[data-tone=warning] .rcs-progress-fill{background:var(--warning)}.rcs-progress--lg .rcs-progress-track{height:8px}.rcs-progress--sm .rcs-progress-track{height:4px}.rcs-progress--xs .rcs-progress-track{height:3px}.rcs-progress[data-indeterminate=true] .rcs-progress-fill{animation:rcs-indeterminate 1.4s var(--ease-in-out) infinite;width:30%!important}@keyframes rcs-indeterminate{0%{transform:translate(-100%)}to{transform:translate(380%)}}.rcs-progress-value{font-family:var(--font-mono);color:var(--fg-3);margin-top:4px;font-size:11px}.rcs-skeleton{background:var(--bg-2);border-radius:var(--radius-sm);display:inline-block;position:relative;overflow:hidden}.rcs-skeleton[data-animated=true]:after{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);animation:1.4s linear infinite rcs-shimmer;position:absolute;inset:0}[data-theme=dark] .rcs-skeleton[data-animated=true]:after,.rcs-skeleton[data-animated=true][data-theme=dark]:after{background:linear-gradient(90deg,#0000,#ffffff0f,#0000)}@keyframes rcs-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.rcs-skeleton--text{border-radius:var(--radius-xs);width:100%;height:1em}.rcs-skeleton--circle{border-radius:50%}.rcs-spin{align-items:center;gap:var(--space-2);color:var(--fg-3);font-size:13px;display:inline-flex}.rcs-spin-glyph{border:2px solid;border-top-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite rcs-spin}.rcs-spin--xs .rcs-spin-glyph{border-width:1.5px;width:12px;height:12px}.rcs-spin--lg .rcs-spin-glyph{border-width:2.5px;width:24px;height:24px}.rcs-spin[data-tone=danger] .rcs-spin-glyph{color:var(--danger)}.rcs-tooltip{display:inline-block;position:relative}.rcs-tooltip-bubble{z-index:50;background:var(--bg-inverse);color:var(--fg-inverse);border-radius:var(--radius-sm);white-space:nowrap;box-shadow:var(--elevation-popover);pointer-events:none;padding:4px 8px;font-size:12px;position:absolute}.rcs-tooltip-bubble[data-placement=top]{bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=bottom]{top:calc(100% + 6px);left:50%;transform:translate(-50%)}.rcs-tooltip-bubble[data-placement=left]{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}.rcs-tooltip-bubble[data-placement=right]{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.rcs-toast-region{bottom:var(--space-5);right:var(--space-5);z-index:200;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:fixed}.rcs-toast{pointer-events:auto;background:var(--bg-1);min-width:260px;max-width:380px;color:var(--fg-1);border:1px solid var(--border-1);border-radius:var(--radius-md);box-shadow:var(--elevation-toast);padding:var(--space-3) var(--space-4);gap:var(--space-3);animation:rcs-toast-in var(--dur-base) var(--ease-out-quart);align-items:flex-start;display:flex}@keyframes rcs-toast-in{0%{opacity:0;transform:translateY(8px)}}.rcs-toast-title{font-weight:var(--fw-semibold);font-size:14px}.rcs-toast-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-toast-action{color:var(--accent);cursor:pointer;font-weight:var(--fw-medium);background:0 0;border:0;padding:4px 8px}.rcs-toast-icon{text-align:center;flex-shrink:0;width:20px;font-size:14px;line-height:20px}.rcs-toast--success .rcs-toast-icon{color:var(--brand-gray-800)}.rcs-toast--danger .rcs-toast-icon{color:var(--danger)}.rcs-toast--warning .rcs-toast-icon{color:var(--warning)}.rcs-toast--info .rcs-toast-icon{color:var(--info)}.rcs-table-wrap{border:1px solid var(--border-1);border-radius:var(--radius-md);background:var(--bg-1);overflow:auto}.rcs-table{border-collapse:collapse;width:100%;font-size:13px}.rcs-table thead th{text-align:left;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--fg-3);font-size:11px;font-weight:var(--fw-medium);border-bottom:1px solid var(--border-1);background:var(--bg-2);white-space:nowrap;padding:10px 14px}.rcs-table[data-sticky-header=true] thead th{z-index:1;position:sticky;top:0}.rcs-table tbody td{border-bottom:1px solid var(--border-1);color:var(--fg-1);vertical-align:middle;padding:10px 14px}.rcs-table tbody tr:last-child td{border-bottom:0}.rcs-table[data-density=compact] tbody td{padding:6px 12px}.rcs-table[data-density=comfortable] tbody td{padding:14px 16px}.rcs-table[data-striped=true] tbody tr:nth-child(odd) td{background:var(--bg-2)}.rcs-table[data-bordered=true] th,.rcs-table[data-bordered=true] td{border-right:1px solid var(--border-1)}.rcs-table tbody tr:hover td{background:var(--bg-2);cursor:pointer}.rcs-table-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rcs-table-sortable:after{content:" ↕";color:var(--fg-4)}.rcs-table-sortable[data-sort=asc]:after{content:" ↑";color:var(--fg-1)}.rcs-table-sortable[data-sort=desc]:after{content:" ↓";color:var(--fg-1)}.rcs-table-empty{text-align:center;padding:var(--space-12);color:var(--fg-3);font-size:13px}.rcs-table-align-right{text-align:right}.rcs-table-align-center{text-align:center}.rcs-stat{flex-direction:column;gap:4px;display:flex}.rcs-stat-label{font-family:var(--font-mono);text-transform:uppercase;color:var(--fg-3);letter-spacing:.04em;font-size:11px}.rcs-stat-value{font-size:28px;font-weight:var(--fw-semibold);color:var(--fg-1);align-items:baseline;gap:4px;display:flex}.rcs-stat-unit{color:var(--fg-3);font-size:14px;font-weight:var(--fw-regular)}.rcs-stat-delta{font-size:12px;font-family:var(--font-mono);color:var(--fg-3);align-items:center;gap:4px;display:inline-flex}.rcs-stat-delta[data-tone=good]{color:#1f9e5c}.rcs-stat-delta[data-tone=bad]{color:var(--danger)}.rcs-stat-spark{width:80px;height:24px}.rcs-avatar{background:var(--bg-2);color:var(--fg-2);font-weight:var(--fw-medium);border:1px solid var(--border-1);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.rcs-avatar img{object-fit:cover;width:100%;height:100%}.rcs-avatar--circle{border-radius:50%}.rcs-avatar--square{border-radius:var(--radius-sm)}.rcs-avatar-status{background:var(--brand-gray-800);border:2px solid var(--bg-1);border-radius:50%;width:25%;height:25%;position:absolute;bottom:0;right:0}.rcs-timeline{gap:var(--space-4);flex-direction:column;display:flex}.rcs-timeline-item{gap:var(--space-3);display:flex;position:relative}.rcs-timeline-item:not(:last-child):before{content:"";background:var(--border-1);width:1px;position:absolute;top:18px;bottom:-16px;left:7px}.rcs-timeline-marker{background:var(--bg-1);border:2px solid var(--fg-3);z-index:1;border-radius:50%;flex-shrink:0;width:14px;height:14px;margin-top:4px}.rcs-timeline-item[data-tone=success] .rcs-timeline-marker{border-color:var(--brand-gray-800);background:var(--brand-gray-800)}.rcs-timeline-item[data-tone=warning] .rcs-timeline-marker{border-color:var(--warning)}.rcs-timeline-item[data-tone=danger] .rcs-timeline-marker{border-color:var(--danger);background:var(--danger)}.rcs-timeline-content{flex:1;padding-bottom:4px}.rcs-timeline-title{font-size:14px;font-weight:var(--fw-medium)}.rcs-timeline-desc{color:var(--fg-3);margin-top:2px;font-size:13px}.rcs-timeline-time{font-family:var(--font-mono);color:var(--fg-4);text-transform:uppercase;letter-spacing:.04em;margin-top:4px;font-size:11px;display:block}.rcs-chat{flex-direction:column;height:100%;min-height:0;display:flex}.rcs-chat-messages{padding:var(--space-4);gap:var(--space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.rcs-chat-msg{gap:var(--space-3);display:flex}.rcs-chat-msg--user{flex-direction:row-reverse}.rcs-chat-bubble{max-width:75%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--fg-1);font-size:14px;line-height:1.5}.rcs-chat-msg--user .rcs-chat-bubble{background:var(--bg-inverse);color:var(--fg-inverse);border-bottom-right-radius:4px}.rcs-chat-msg--assistant .rcs-chat-bubble{border-bottom-left-radius:4px}.rcs-chat-msg--system .rcs-chat-bubble{border:1px dashed var(--border-2);font-family:var(--font-mono);color:var(--fg-3);background:0 0;align-self:center;max-width:100%;font-size:12px}.rcs-chat-msg-status{font-family:var(--font-mono);color:var(--fg-4);margin-top:2px;font-size:10px}.rcs-chat-suggestions{padding:0 var(--space-4) var(--space-2);gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-chat-suggestion{background:var(--bg-1);border:1px solid var(--border-1);border-radius:var(--radius-full);color:var(--fg-2);cursor:pointer;padding:6px 12px;font-size:13px}.rcs-chat-suggestion:hover{background:var(--bg-2);border-color:var(--border-3)}.rcs-chat-composer{gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border-1);background:var(--bg-1);align-items:flex-end;display:flex}.rcs-chat-input{resize:none;border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);color:var(--fg-1);outline:0;flex:1;min-height:40px;max-height:200px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.5}.rcs-chat-input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus)}.rcs-codeblock{background:var(--bg-2);border:1px solid var(--border-1);border-radius:var(--radius-md);overflow:hidden}.rcs-codeblock-header{border-bottom:1px solid var(--border-1);background:var(--bg-1);font-family:var(--font-mono);color:var(--fg-3);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.rcs-codeblock-pre{padding:var(--space-3) var(--space-4);font-family:var(--font-mono);color:var(--fg-1);margin:0;font-size:13px;line-height:1.5;overflow:auto}.rcs-codeblock-pre[data-wrap=true]{white-space:pre-wrap;word-break:break-word}.rcs-codeblock-line{display:flex}.rcs-codeblock-lineno{text-align:right;width:32px;padding-right:var(--space-3);color:var(--fg-4);-webkit-user-select:none;user-select:none;flex-shrink:0;display:inline-block}.rcs-codeblock-line[data-highlight=true]{background:var(--accent-soft);margin:0 calc(-1 * var(--space-4));padding:0 var(--space-4)}.rcs-codeblock-copy{cursor:pointer;color:var(--fg-3);font-family:var(--font-mono);border-radius:var(--radius-xs);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;padding:2px 6px;font-size:11px}.rcs-codeblock-copy:hover{color:var(--fg-1);background:var(--bg-2)}.rcs-markdown{color:var(--fg-1);font-size:14px;line-height:1.65}.rcs-markdown h1{margin:1.2em 0 .5em;font-size:22px}.rcs-markdown h2{margin:1.2em 0 .5em;font-size:18px}.rcs-markdown h3{margin:1em 0 .4em;font-size:15px}.rcs-markdown p{color:var(--fg-2);margin:.6em 0}.rcs-markdown a{color:var(--accent)}.rcs-markdown ul,.rcs-markdown ol{color:var(--fg-2);margin:.6em 0;padding-left:1.4em}.rcs-markdown blockquote{border-left:2px solid var(--border-2);color:var(--fg-3);margin:1em 0;padding:.2em 1em;font-style:italic}.rcs-markdown pre{background:var(--bg-2);padding:var(--space-3);border-radius:var(--radius-sm);overflow:auto}.rcs-markdown code{background:var(--bg-2);border-radius:3px;padding:1px 5px;font-size:.9em}.rcs-markdown--compact{font-size:13px}.rcs-markdown--compact h1{font-size:18px}.rcs-terminal{color:#e5e5e5;border-radius:var(--radius-md);font-family:var(--font-mono);background:#0f0f0f;flex-direction:column;font-size:13px;display:flex;overflow:hidden}.rcs-terminal-tabs{background:#1c1c1c;border-bottom:1px solid #2b2b2b;gap:0;padding:0 8px;display:flex}.rcs-terminal-tab{color:#a6a6a6;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-bottom:1px solid #0000;padding:6px 10px;font-size:11px}.rcs-terminal-tab[data-active=true]{color:#fff;border-bottom-color:var(--accent)}.rcs-terminal-body{padding:var(--space-3);flex:1;overflow:auto}.rcs-terminal-line{padding:1px 0;line-height:1.5}.rcs-terminal-line[data-type=stderr]{color:#ff8585}.rcs-terminal-line[data-type=error]{color:#ff5a5f}.rcs-terminal-line[data-type=warn]{color:#ffb948}.rcs-terminal-line[data-type=info]{color:#62a3ff}.rcs-terminal-line[data-type=debug]{color:#a6a6a6}.rcs-terminal-line[data-type=prompt]{color:#1f9e5c}.rcs-terminal-cursor{vertical-align:text-bottom;background:#e5e5e5;width:7px;height:14px;animation:1s steps(2,end) infinite rcs-blink;display:inline-block}@keyframes rcs-blink{50%{opacity:0}}.rcs-rte{border:1px solid var(--border-2);border-radius:var(--radius-md);background:var(--bg-1);overflow:hidden}.rcs-rte-toolbar{border-bottom:1px solid var(--border-1);background:var(--bg-2);gap:2px;padding:4px 6px;display:flex}.rcs-rte-toolbtn{cursor:pointer;border-radius:var(--radius-xs);color:var(--fg-2);background:0 0;border:0;padding:4px 8px;font-size:13px}.rcs-rte-toolbtn:hover{background:var(--bg-3);color:var(--fg-1)}.rcs-rte-content{padding:var(--space-3);color:var(--fg-1);outline:0;min-height:120px;font-size:14px;line-height:1.6}.rcs-rte-content[data-empty=true]:before{content:attr(data-placeholder);color:var(--fg-4)}.rcs-page-header{--rcs-page-header-py:var(--space-5);--rcs-page-header-px:var(--space-6);--rcs-page-header-title-fs:var(--fs-h3);--rcs-page-header-subtitle-fs:14px;border-bottom:1px solid var(--border-1);padding:var(--rcs-page-header-py) var(--rcs-page-header-px);background:var(--bg-1)}.rcs-page-header--xs{--rcs-page-header-py:var(--space-1\.5);--rcs-page-header-px:var(--space-3);--rcs-page-header-title-fs:15px;--rcs-page-header-subtitle-fs:12px}.rcs-page-header--sm{--rcs-page-header-py:var(--space-2);--rcs-page-header-px:var(--space-4);--rcs-page-header-title-fs:var(--fs-h4);--rcs-page-header-subtitle-fs:13px}.rcs-page-header--lg{--rcs-page-header-py:var(--space-6);--rcs-page-header-px:var(--space-8);--rcs-page-header-title-fs:var(--fs-h2);--rcs-page-header-subtitle-fs:15px}.rcs-page-header--xl{--rcs-page-header-py:var(--space-8);--rcs-page-header-px:var(--space-12);--rcs-page-header-title-fs:var(--fs-h1);--rcs-page-header-subtitle-fs:17px}.rcs-page-header-row{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.rcs-page-header-back{cursor:pointer;color:var(--fg-3);margin-bottom:var(--space-2);font-size:12px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:0;align-items:center;gap:4px;padding:2px 0;display:inline-flex}.rcs-page-header-back:hover{color:var(--fg-1)}.rcs-page-header-back-inline{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--fg-3);cursor:pointer;transition:background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;display:inline-flex}.rcs-page-header-back-inline:hover{background:var(--bg-2);color:var(--fg-1)}.rcs-page-header-back-inline:active{transform:translateY(.5px)}.rcs-page-header--sm .rcs-page-header-back-inline{width:24px;height:24px;font-size:14px}.rcs-page-header--xs .rcs-page-header-back-inline{width:22px;height:22px;font-size:13px}.rcs-page-header--xs .rcs-page-header-title{gap:var(--space-2)}.rcs-page-header-title{align-items:center;gap:var(--space-3);min-width:0;display:flex}.rcs-page-header-title h1{font-size:var(--rcs-page-header-title-fs);font-family:var(--font-display);font-weight:var(--fw-semibold);font-optical-sizing:auto;font-feature-settings:"ss01", "kern";margin:0}.rcs-page-header-subtitle{font-size:var(--rcs-page-header-subtitle-fs);color:var(--fg-3);margin-top:4px}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-title-text{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle{margin-top:0}.rcs-page-header[data-inline-subtitle=true] .rcs-page-header-subtitle:before{content:"·";margin-right:var(--space-2);color:var(--fg-4)}.rcs-page-header-actions{gap:var(--space-2);flex-shrink:0;display:flex}.rcs-page-header-tabs{margin-top:var(--space-4);margin-bottom:calc(-1 * (var(--rcs-page-header-py) + var(--border-thin)))}.rcs-app-shell{background:var(--bg-0);grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.rcs-app-shell-body{min-height:0;display:grid}.rcs-app-shell-body[data-has-sidebar=true]{grid-template-columns:var(--rcs-sidebar-w,240px) 1fr}.rcs-app-shell-sidebar{border-right:1px solid var(--border-1);background:var(--bg-1);overflow:auto}.rcs-app-shell-main{min-width:0;overflow:auto}.rcs-app-shell-header{border-bottom:1px solid var(--border-1);background:var(--bg-1)}.rcs-app-shell-footer{border-top:1px solid var(--border-1);background:var(--bg-1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--syntax-key:#93c5fd;--syntax-str:#86efac;--syntax-bool:#fcd34d;--syntax-null:#94a3b8;--syntax-num:#67e8f9}html,body{background:var(--bg-0);height:100%;color:var(--fg-1);margin:0;overflow:hidden}#root{flex-direction:column;height:100%;display:flex}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--bg-0)}::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-3)}code{background:var(--bg-2);border-radius:var(--radius-sm);color:var(--fg-2);font-family:var(--font-mono,ui-monospace, monospace);padding:1px 5px} diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index ffeee1f..f6fd5ee 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -4,8 +4,8 @@ OtelContext - - + +
diff --git a/ui/package-lock.json b/ui/package-lock.json index 48aec4b..3a886ff 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -10,7 +10,8 @@ "dependencies": { "@ossrandom/design-system": "^0.3.0", "clsx": "^2.1.1", - "echarts": "^6.0.0", + "cytoscape": "^3.33.2", + "cytoscape-cose-bilkent": "^4.1.0", "lucide-react": "^0.469.0", "react": "^19.2.5", "react-dom": "^19.2.5" @@ -1891,6 +1892,15 @@ "dev": true, "license": "MIT" }, + "node_modules/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "license": "MIT", + "dependencies": { + "layout-base": "^1.0.0" + } + }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -1934,6 +1944,27 @@ "dev": true, "license": "MIT" }, + "node_modules/cytoscape": { + "version": "3.33.2", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.33.2.tgz", + "integrity": "sha512-sj4HXd3DokGhzZAdjDejGvTPLqlt84vNFN8m7bGsOzDY5DyVcxIb2ejIXat2Iy7HxWhdT/N1oKyheJ5YdpsGuw==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, "node_modules/data-urls": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", @@ -2008,22 +2039,6 @@ "license": "MIT", "peer": true }, - "node_modules/echarts": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/echarts/-/echarts-6.0.0.tgz", - "integrity": "sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "2.3.0", - "zrender": "6.0.0" - } - }, - "node_modules/echarts/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", - "license": "0BSD" - }, "node_modules/electron-to-chromium": { "version": "1.5.313", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.313.tgz", @@ -2629,6 +2644,12 @@ "json-buffer": "3.0.1" } }, + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "license": "MIT" + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -3993,21 +4014,6 @@ "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } - }, - "node_modules/zrender": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/zrender/-/zrender-6.0.0.tgz", - "integrity": "sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==", - "license": "BSD-3-Clause", - "dependencies": { - "tslib": "2.3.0" - } - }, - "node_modules/zrender/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", - "license": "0BSD" } } } diff --git a/ui/package.json b/ui/package.json index 77f13da..f86dc70 100644 --- a/ui/package.json +++ b/ui/package.json @@ -14,7 +14,8 @@ "dependencies": { "@ossrandom/design-system": "^0.3.0", "clsx": "^2.1.1", - "echarts": "^6.0.0", + "cytoscape": "^3.33.2", + "cytoscape-cose-bilkent": "^4.1.0", "lucide-react": "^0.469.0", "react": "^19.2.5", "react-dom": "^19.2.5" diff --git a/ui/src/App.tsx b/ui/src/App.tsx index c12de4f..c247584 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -52,7 +52,16 @@ export default function App() { stats={dash.stats} wsConnected={wsConnected} /> -
+
{view === 'services' && ( { const { error, info } = this.state if (!error) return this.props.children - // Inline styles ONLY — if Mantine/global CSS failed to load and is the - // root cause, the fallback must still render correctly. + // Inline styles ONLY — if the design system stylesheet failed to load and is + // the root cause, the fallback must still render correctly. DS CSS vars are + // used as primary with hex fallbacks. + const monoStack = + 'var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace)' return (
{ alignItems: 'center', justifyContent: 'center', padding: '24px', - background: 'var(--bg-base, #000)', - color: 'var(--text-primary, #fff)', + background: 'var(--bg-0, #0a0a0a)', + color: 'var(--fg-1, #fff)', fontFamily: - '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif', + 'var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif)', zIndex: 9999, overflow: 'auto', }} @@ -78,20 +81,20 @@ export class ErrorBoundary extends Component { style={{ width: '100%', maxWidth: '640px', - background: 'var(--bg-card, #0a0a0a)', - border: '1px solid var(--border, #1f1f1f)', - borderRadius: '8px', + background: 'var(--bg-1, #111)', + border: '1px solid var(--border-1, #27272a)', + borderRadius: 'var(--radius-lg, 12px)', padding: '32px', - boxShadow: '0 10px 40px rgba(0, 0, 0, 0.5)', + boxShadow: 'var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.5))', }} >
@@ -100,9 +103,9 @@ export class ErrorBoundary extends Component {

Something went wrong @@ -111,7 +114,7 @@ export class ErrorBoundary extends Component { style={{ fontSize: '14px', lineHeight: 1.6, - color: 'var(--text-secondary, #ccc)', + color: 'var(--fg-2, #d4d4d8)', margin: '0 0 20px 0', }} > @@ -122,19 +125,18 @@ export class ErrorBoundary extends Component {
- + {error.name || 'Error'} : {error.message || '(no message)'} @@ -145,7 +147,7 @@ export class ErrorBoundary extends Component { style={{ marginBottom: '24px', fontSize: '12px', - color: 'var(--text-muted, #666)', + color: 'var(--fg-3, #71717a)', }} > { cursor: 'pointer', userSelect: 'none', padding: '4px 0', - color: 'var(--text-secondary, #ccc)', + color: 'var(--fg-2, #d4d4d8)', }} > Component stack @@ -162,14 +164,13 @@ export class ErrorBoundary extends Component { style={{ marginTop: '8px', padding: '12px', - background: 'var(--code-bg, #050505)', - border: '1px solid var(--border, #1f1f1f)', - borderRadius: '6px', - fontFamily: - 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace', + background: 'var(--bg-3, #050505)', + border: '1px solid var(--border-1, #27272a)', + borderRadius: 'var(--radius-md, 8px)', + fontFamily: monoStack, fontSize: '11px', lineHeight: 1.5, - color: 'var(--code-text, #ccc)', + color: 'var(--fg-2, #d4d4d8)', whiteSpace: 'pre-wrap', wordBreak: 'break-word', maxHeight: '240px', @@ -187,11 +188,11 @@ export class ErrorBoundary extends Component { onClick={this.reset} style={{ appearance: 'none', - border: '1px solid var(--color-accent, #38bdf8)', - background: 'var(--color-accent, #38bdf8)', - color: '#000', + border: '1px solid var(--accent-fg, #ef4444)', + background: 'var(--accent-fg, #ef4444)', + color: 'var(--accent-on, #fff)', padding: '10px 18px', - borderRadius: '6px', + borderRadius: 'var(--radius-md, 8px)', fontSize: '14px', fontWeight: 600, cursor: 'pointer', @@ -205,11 +206,11 @@ export class ErrorBoundary extends Component { onClick={this.reload} style={{ appearance: 'none', - border: '1px solid var(--border-strong, #333)', + border: '1px solid var(--border-2, #3f3f46)', background: 'transparent', - color: 'var(--text-primary, #fff)', + color: 'var(--fg-1, #fff)', padding: '10px 18px', - borderRadius: '6px', + borderRadius: 'var(--radius-md, 8px)', fontSize: '14px', fontWeight: 500, cursor: 'pointer', diff --git a/ui/src/components/mcp/MCPConsole.tsx b/ui/src/components/mcp/MCPConsole.tsx index 4190cab..7c17742 100644 --- a/ui/src/components/mcp/MCPConsole.tsx +++ b/ui/src/components/mcp/MCPConsole.tsx @@ -1,4 +1,5 @@ import { useState } from 'react' +import { Alert, Badge, Button, Space } from '@ossrandom/design-system' import { Plug, RefreshCw } from 'lucide-react' import { useMCP } from '@/hooks/useMCP' import type { MCPTool } from '@/types/api' @@ -6,47 +7,130 @@ import ToolCard from './ToolCard' import ToolCallModal from './ToolCallModal' import RPCPopup from './RPCPopup' -const statusColors = { - idle: '#555', - connecting: '#eab308', - connected: '#22c55e', - error: '#ef4444', -} as const +const statusTone: Record = { + idle: 'neutral', + connecting: 'warning', + connected: 'info', + error: 'danger', +} export default function MCPConsole() { const { status, tools, error, call, connect, send } = useMCP() const [callTool, setCallTool] = useState(null) const [rpcTool, setRpcTool] = useState(null) - const dotColor = statusColors[status] return ( -
-
-
- - - - - {status} -
-
+
+
+ + {status} + + + - {window.location.origin}/mcp -
- HTTP Streamable MCP · JSON-RPC 2.0 + + {window.location.origin}/mcp + + + + + HTTP Streamable MCP · JSON-RPC 2.0 + +
- +
-
- Available Tools - {tools.length} discovered + +
+ + Available Tools + + {tools.length} discovered
-
- {status === 'error' &&
Connection failed
{error || 'Could not reach the MCP endpoint.'}
MCP_ENABLED=true
} - {status === 'connected' && tools.map((tool, index) => setCallTool(tools[next])} onRPC={(next) => setRpcTool(tools[next])} />)} + +
+ {status === 'error' && ( +
+ + {error || 'Could not reach the MCP endpoint.'}{' '} + MCP_ENABLED=true + +
+ )} + {status === 'connected' && + tools.map((tool, index) => ( + setCallTool(tools[next])} + onRPC={(next) => setRpcTool(tools[next])} + /> + ))}
- {callTool && setCallTool(null)} onCall={async (name, args) => (await call('tools/call', { name, arguments: args })).result ?? null} />} + + {callTool && ( + setCallTool(null)} + onCall={async (name, args) => + (await call('tools/call', { name, arguments: args })).result ?? null + } + /> + )} {rpcTool && setRpcTool(null)} onSend={send} />}
) diff --git a/ui/src/components/mcp/RPCPopup.tsx b/ui/src/components/mcp/RPCPopup.tsx index 3993b34..652d6ad 100644 --- a/ui/src/components/mcp/RPCPopup.tsx +++ b/ui/src/components/mcp/RPCPopup.tsx @@ -1,5 +1,5 @@ -import { useRef, useState } from 'react' -import { Modal, Tabs } from '@ossrandom/design-system' +import { useState } from 'react' +import { Alert, Badge, Button, Modal, Space, Tabs, Textarea } from '@ossrandom/design-system' import { Copy, SendHorizontal, Terminal } from 'lucide-react' import type { MCPTool } from '@/types/api' import { colorJSON } from '@/lib/utils' @@ -30,6 +30,14 @@ const templates: Record, (name?: string, args?: Rec 'resources/list': () => ({ jsonrpc: '2.0', id: 1, method: 'resources/list' }), } +const labelStyle: React.CSSProperties = { + fontSize: '0.62rem', + textTransform: 'uppercase', + letterSpacing: '0.12em', + color: 'var(--fg-4)', + fontWeight: 700, +} + export default function RPCPopup({ tool, onClose, onSend }: Props) { const name = tool?.name ?? 'tool_name' const args = tool ? buildDefaultArgs(tool) : {} @@ -39,7 +47,7 @@ export default function RPCPopup({ tool, onClose, onSend }: Props) { const [timing, setTiming] = useState('') const [sending, setSending] = useState(false) const [error, setError] = useState('') - const copyRef = useRef(null) + const [copied, setCopied] = useState(false) const selectMethod = (next: RpcMethod) => { setMethod(next) @@ -72,12 +80,8 @@ export default function RPCPopup({ tool, onClose, onSend }: Props) { const handleCopy = async () => { await navigator.clipboard.writeText(requestText) - if (!copyRef.current) return - const old = copyRef.current.innerHTML - copyRef.current.textContent = 'Copied' - window.setTimeout(() => { - if (copyRef.current) copyRef.current.innerHTML = old - }, 1200) + setCopied(true) + window.setTimeout(() => setCopied(false), 1200) } const methods: { value: RpcMethod; label: string }[] = [ @@ -90,11 +94,11 @@ export default function RPCPopup({ tool, onClose, onSend }: Props) { ] const title = ( - - - {name} - {method} - + + + {name} + {method} + ) return ( @@ -111,26 +115,55 @@ export default function RPCPopup({ tool, onClose, onSend }: Props) { variant="line" onChange={(key) => selectMethod(key)} /> - {error &&
{error}
} -
-
-
- Request - -
-
-