var yV=Object.defineProperty;var mV=(r,e,t)=>e in r?yV(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ut=(r,e,t)=>(mV(r,typeof e!="symbol"?e+"":e,t),t);import{d as vt,o as he,c as de,a as ae,F as lt,r as dt,n as qt,m as _d,b as Ee,e as rt,f as St,w as Et,g as Qo,h as Ft,i as Je,j as ho,k as Sd,l as Mr,t as Dt,u as Q,p as uw,q as pt,s as nC,v as se,x as Tf,y as wV,z as It,A as BV,B as _n,C as CV,D as bV,E as xV,G as Zp,H as PU,I as _V,J as SV,K as TV}from"./vue-3f711dbc.js";import{L as IV,T as kU,E as LV,V as Ot,M as wA,a as BA,Q as Td,S as r_,b as xa,c as EV,P as MV,W as DV,d as aC,e as Bs,f as Rr,D as RU,G as ac,C as FV,g as QV,B as iC,A as OU,h as UV,i as PV,j as Id,k as gl,l as cw,m as fw,n as CA,o as n_,p as a_,q as i_,N as kV}from"./three-6ab3b202.js";import{g as RV}from"./gsap-54c24ddd.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();const OV="/assets/titles-0941b966.png",HV="/assets/light_bg-DEu33pwq-09f9d8c7.png",NV="/assets/20251231114626_961_154-3c8fdbef.png",VV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe4AAAAXCAYAAADN/awzAAAACXBIWXMAAAsSAAALEgHS3X78AAAJ8ElEQVR4nO2dgXKjSAxEZcjd/f/v7sbmavdgS+nrbgknWWcTdRVlGAaNZrB50oDtS4xGow+tbdt+fE6XiMDP61/E7x/1VlL+JPq4RcSVlH8X9ba0/XO5XC4bOX40Gr2TBtyj0RspATbSZ2tJZVkr+fwtUH7Y+2eH9JoAnpd4h8/yxiCdltsO8h+A/7Zv31L9Z2LvmtZz+Q22JxgYjYwG3KMvpW37yQOEa0BGm8tZprqCjQOwf++AXch+VC7D9bysuw9PAG5lX60zIRzZNluuCdzXHdJH2QbQD7IdEBREAvhtt/cd7AUJBiLVYWUvfJhgYPRZNOAefUjt2St7f7JpYAWvBfY9pWVJy4XYYRBn7VySnQzXA6wqIKjaQLsLATfLvNF2R11g3+Jltp3hfYX9mK3jOrYTCdzZnjpOrTOf8+wABhc52892WDnODMQEA6NHaMA9epV2wEYBuEPsPm2Q7PGyZ68LgS+2xbbRjwy7p/SK+xHcaj33YwHI5ululxWzPlQ2lya4O1m3gl8ImCIIGbSxXogsXK1jYIAQZv45mzdYnsFPPL47RtnHZ/KMAJsFiG4wsM8OkKqj0X+ad8cX0D49rKZrHUhd2QEPdu8113Fts3UGQAZQZY/VdxBcoE4AcBUgMaO+EGi7YMBto022oE/dcc9S0HKZK1sQiPl+Nt77dhC/wTEbORZ9rGywZQNfmU03TnlMnkVwoWywbRznY3aA9csFXAF1X7Q3wcDn0ZzJD6QCsKrMZZ/HBf1J3JfttoFleVnFQ1MdH9UUMYNXN6PE9ln2ygIDBkMGZ1cXAwEGVjU+zGfm/1FeBTXdz3Y3286vmHVjGdYLAkoWHGA9Bm2XbWOQ4fzuzABUY8MCgDOZO/M934KoAhdlT40Je2Cw8teWTTDwGM2o36GTgFXCunjhZxnu2XUHlCgu9g7aIYB4JsN05QzYnawSyzJ4V+Ev23bgrtbVVLbqJ44BCwZU20HWO+eyAxIG3ArYCuDMZhAoqQyTwYj5uok2nU+doAD3uT6wMcWxZnY2gLXy0/ns/FZ9xuNcGZ4bDM6cLTceL7YnGKj1aUdohyuT6nNnLBgQAi7GXSlQsQs+2q6gij6uAgzMlitXcEGooD9nYI5j7OyoV6yvprMx42ZT1K6fHbAqwCr/8TgWEOTyyp6TuuDndQfBDsg7IApR1sm41cKyazUDgPe8FRQrX9gxLiPGPqhZAjYWXT8c9JlfzGfVbzV7waT2Yzm7JaDUCTZ+6rMFAx+iNwKyr/Ht3gtZxya7SGObeFzHT3UvldntQKvKFs8EBswfBhEHpw6sVXDAfHNlKsBgmbW6182mqNW0tZrCrs4n61sGspqqZ3YXsKPOZZiLNAMlA5wDNT5dXsEzCFAqYCs/nb+svBtEqAAHfVB1qmOZX+gj6x/rvxu3qk9VH9R4d8fB2WTvt7Ny436PPezHLz06EHhI6+lJZJQC1D1y93OrdtU+dd/VtVH1yV2QXUaFxyt73alb9M8FBcw+g0jXxj2Aw7Fwtl223AE2PnDmptqx3cq3s+PCMnl1zjpyIGLw2GBKtwK4y7rPTIe7dQYzBcHuNLRqE8uwPJrlXXir86D67Xxmvqs+uL6eac/ZV3ZcUOEArNrGqfyO3Bj9T7/7a4HqZxCtDHhfow5gO+oA70w7XVhh3com8xEvxpX/FbgUtM8EBWoMKrA4oKBP7jgFb1bmfMMpa3Uc2kW/ENTsKXI1Ta76cgbkQcZOjU/eF+LCc9nL8+tRd4Fp5AuUV++HC7H/u8T6wfqAwjEI4fsF9mex8qrvOP6RfERf8/h37ebtyle2j/U/iM9sP9ZRPrM66poUBNRqPO557505d3cz8V7g3wXu10YXopNqwE+bTx9MdUI7b5yqDXZsfiNVb2Y8hl3gjm32oUY72K7zB9vE/exC371I3Ig/DAxHvcXUcX1V/Wf+ov1bgupxQczvlxv4uZIMwflbnSt3sez09Zb8VRcYd+FR2UTuf5D+uilwtrB73ey+KN5jxleW2bl7vi5TxTbZfrXg+LmszNVnr+hbpx9s9gDHqeuvG2tcx1f1/lK2sT+VHbWN+5yts+rw4pd+d8Z9V5TwHnqH+9x4z+81tlj2pjKkaLTlMrpsE+2p6FNlOmwKFzO/yi7zrTsFrOoEZKU4pp2x7bSh7Kp78+xeNn7nmy3V18rYmLlxYmN+dky6Yhd5vAAiHM48pIbbDpDYftzxgFqkNsIAGvep++HMJwdCtp/5V/XJBU/sXJwB7Vmf1fujGg8sx3HHB9Huhd9bQpuD6IM93PaxvHlDnXyqvDMODIxBLqKVDbSHcMW6zl/cl4HEHsZCf5Xv9wKb2cRtBVKEqhpvZbcKIjoP6+G+FdYX+N66ekitCkLOQLtTL6C8KwcmlR0hLBys8TUfi7YrP7pgU2Uui72KvjngMrH9yq9Of1UWjr5eC7tZCq5YtplxwGNZUKNsYvDkjjm976t8lexr9PKNlIIBBpGOGGjZhb6yqQCfIYVLECCoNtAHBlosd36hfwySLIBhth3AKx8ZxEP4gn4t8fI3zlkmzsa34xvrixpDNc5sbJxc9hfigq0eNqug3flJVNYu868CIavbWdjsgco42TpKQdgFAu6cIEyPV/XnLl1AK9/zODBfuqLtzne1X6cZvQfrzl9LQy1ke01LQJ0zwQELBi7EngpmFJjyw13MbsdfFVh04KkgyiC+QqaNvxZXPQSoghEHcDZ2bgxwzJzYFGV3HbM9BPiVQJtNlysoVtlqdX+0AqO6z82CD2dLSQUhLDN2djtjgeOLxyu7TAPYP0hzVj6pxAOACrBV2bGNfy0ZBUgq0GIW28m4lV0MCM5MVyvQsilyBDgDvoNztY+NlRrDapyzqqzWZbEZdPiq7nMjwG/wNTLWbhQAU1m7y4w7EMfA45nYZ745Mb+/A2BVAINtsXPxS/MPZV9PA+5RWxAMMLgG2Z+3F9i3wp+UqAxU2Quofyzst9NZEIDt5PbZNDmCuzNFzvxzoEf/XJ9fI5ZBRxPoLvtGcLOMG+1lMUiytth9XTyOlavA5LD7nP40BSGPYmWhst8B7OitNOAePVTmb0Fx2peVYXnO4p9OgJFBPYP1CDDw/7ZzsNG5b53X8RYB84n11W13pcDLoHzIZeEMqsfyrTFFntvAdQZY9t/aIQDLMmdXd6aHRx9e8w4dfTrtzw10wb9CnSBAXff/B8e/MFX34x2EcRqe/YAL+u2271GGJ3vy2wE0BIAZvL8lcGObLDNWWe3/ID7Z6+gra8A9GjW0zwyw7HmFoy8JxmGCgWUPBp7ItDnKfU7PfoYRtMc9XQRs7FktCh+EOuo+Q9k2gB2N3kcD7tHoQdpnBg7w588i+0XDlXxej0yfZaoqq72yspkeHo3+EEXEvw1P63b0/b+qAAAAAElFTkSuQmCC",GV="/assets/jitu-0ae999cf.png";/** * @name: autofit.js * @author: Larry Zhu * @version: 3.2.8 * @description: autofit.js 是迄今为止最易用的自适应工具 * @license: MIT */let iy=null,Gc="",hw="",vw="",oy=null,o_=null,Tr=1,yl=!1;const jp={isAutofitRunning:!1,init(r={},e=!0){e&&console.log("autofit.js is running");const{dw:t=1920,dh:n=1080,el:a=typeof r=="string"?r:"body",resize:i=!0,ignore:o=[],transition:s="none",delay:A=0,limit:l=.1,cssMode:u="scale",allowScroll:c=!1}=r;iy=a;const f=document.querySelector(a);if(!f){console.error(`autofit: '${a}' is not exist`);return}const h=document.createElement("style"),v=document.createElement("style");h.lang="text/css",v.lang="text/css",h.id="autofit-style",v.id="ignoreStyle",!c&&(h.innerHTML="body {overflow: hidden;}");const d=document.querySelector("body");d.appendChild(h),d.appendChild(v),f.style.height=`${n}px`,f.style.width=`${t}px`,f.style.transformOrigin="0 0",!c&&(f.style.overflow="hidden"),sy(t,n,f,o,l,u),oy=()=>{clearTimeout(o_),A!=0?o_=setTimeout(()=>{sy(t,n,f,o,l,u),yl&&dw(Gc,vw,hw)},A):(sy(t,n,f,o,l,u),yl&&dw(Gc,vw,hw))},i&&window.addEventListener("resize",oy),this.isAutofitRunning=!0,setTimeout(()=>{f.style.transition=`${s}s`})},off(r="body"){try{window.removeEventListener("resize",oy);const e=document.querySelector("#autofit-style");e&&e.remove();const t=document.querySelector("#ignoreStyle");t&&t.remove();const n=document.querySelector(iy||r);n&&(n.style.cssText=""),yl&&HU()}catch(e){console.error("autofit: Failed to remove normally",e)}this.isAutofitRunning=!1,console.log("autofit.js is off")},elRectification:null,scale:Tr};function dw(r,e=!0,t=1){if(!jp.isAutofitRunning){console.error("autofit.js:(elRectification): autofit has not been initialized yet");return}HU(),!r&&console.error(`autofit.js:elRectification bad selector: ${r}`),Gc=r,hw=t,vw=e;const n=Array.from(document.querySelectorAll(r));if(n.length==0){console.error(`autofit.js:elRectification found no element by selector: "${r}"`);return}for(const a of n){const i=Tr==1?1:Number(Tr)*Number(t);yl||(a.originalWidth=a.clientWidth,a.originalHeight=a.clientHeight),e?(a.style.width=`${a.originalWidth*i}px`,a.style.height=`${a.originalHeight*i}px`):(a.style.width=`${100*i}%`,a.style.height=`${100*i}%`),a.style.transform=`translateZ(0) scale(${1/Number(Tr)})`,a.style.transformOrigin="0 0"}yl=!0}function HU(){if(Gc){yl=!1;for(const r of Array.from(document.querySelectorAll(Gc)))r.style.width="",r.style.height="",r.style.transform=""}}function sy(r,e,t,n,a,i="scale"){const o=document.documentElement.clientHeight,s=document.documentElement.clientWidth;Tr=s/oa?Tr:1,jp.scale=+Tr;const A=Math.round(o/Number(Tr)),l=Math.round(s/Number(Tr));t.style.height=`${A}px`,t.style.width=`${l}px`,i==="zoom"?t.style.zoom=`${Tr}`:t.style.transform=`translateZ(0) scale(${Tr})`;const u=document.querySelector("#ignoreStyle");u.innerHTML="";for(const c of n){const f=c;let h=f.el||f.dom;if(typeof f=="string"&&(h=f),!h||typeof h=="object"&&!Object.keys(h).length){console.error(`autofit: found invalid or empty selector/object: ${h}`);continue}const v=f.scale?f.scale:1/Number(Tr),d=v!=Tr&&f.fontSize,p=v!=Tr&&f.width,g=v!=Tr&&f.height;u.innerHTML+=` ${h} { transform: scale(${v})!important; transform-origin: 0 0; ${p?`width: ${p}!important;`:""} ${g?`height: ${g}!important;`:""} }`,d&&(u.innerHTML+=` ${h} div ,${h} span,${h} a,${h} * { font-size: ${d}px; }`)}}jp.elRectification=dw;const zV="/assets/gradient-b59efedb.png",$V="/assets/earth-74238849.jpg",KV="/assets/glow-ef19d813.png",WV="/assets/label-f2c3f6ed.png",XV="/assets/redCircle-61b74946.png",YV="/assets/label-f2c3f6ed.png",ZV="/assets/light_column-aa132c89.png",jV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA/CAYAAAC8aKvcAAAOHElEQVRogb2b268dVR3Hv3Pb+1zYqR7hGBCIgqg0LdbwgGJU5MEoMSQSfdEQJSbGBFFfjDz4D5AYDQneEh4wchENkcgDii8QUxBKEUpRaAqFFmlt6UG6z+m+zMwas37ru9asmT2zz96nhWmms8/ec1mf9fut322tCVAUeAe24Cze8qw2MD6Da2eF2gq8D9l2/ZY6YisSbmtA/ft20Ee9366Z2vD6b23nzgwxD3ATQND42QL1Gq5ZbPhuUGtw3/u72iFtn5t+b4GYDXia9MxnH9JCdbzzXp9BtS9kg8c82o6wHVDCz9MJtYZvDtwG2wyqIS1cl3/rLdkEOK3BjlBIB/jwVfAtQc8LPAlbB7WQGnCNR4h5NMd+A3iPjcxQCPgK/04FUjlwX+KT0p4Jeh7g6bAnEDrQPkIB1HAx94jXnW4AXkKB3INehKrAb0BVJG6lXYU+K8CTsFaFVwlopbqMUCS6iBADAmvIEUI56n3Aay28hVzkMRcg5TpgCCXwGrwHJbDn8bhF6GnAzbB1Fe4hFIkmAhRiAaFAdhBiTNiUx5C7vyk2TB8TKAHt8Kjhu1AOXEP70n4bagr0XMD1cTsJq1V4mbB10ByRQCYIkSEUyBghUgTyr74VAlsgg0Is6qwEXgN35LscI0IPCF4f21dCzSLpOnCTRa7CHkfoVLgvEBG6AhaJRJX8HckxF8mG7pgR2JeyEtxCrsjkqhLadJ3ZxwSvS9uq+HGoWdTbB54N1qqwHau6OYuuWQZU22SNoHcfOKe0rZQLNiQkdg6FgHdJ5exc5B7ys36Cht5Avgl0HdhBt8XSJXwbbCpgZt+QEWrsseLn2APXMoUbwWHlKQUNlIHO3TEWfcjlOnBgiIDYYbpD+tI+4AQg0D0RkPbTE6D2aVbCzb5WS9daYztmBzI+I1HhnHDgHrhjgpTQhbfrRhcO2OAqwipKN5SxmNFBZe6z3vVdR8ixjAwDSjxBXpF0acjsmPahi7qEJy1y3UCl0uAqrDZPEJkk/JwIbsbfIzomJchaOcsOjgTajFe43UKm0k0Fh1cq/wfYALAs0ZfpFr0toBCvsSr+v3AdWuObnh4uOtcTOAOVU4192EycUoJI+jsRncjlO3OOkqOVdFgzWlqyRro5YSMXdhiNyDlgQjlfx+gF3Vch3bnBqKwr3wU11a7Ax43Gypdul9FTJg80bmZIiYWeCofiSDpsRofRc8epOxiKFByLdrPqDFFno8a5dK3RCCVXGXnHDsCYO0XwBdEB5WKDUsqoSzqsgDZJt0PpDuhnc7oda6SyCmxXfjVpw4JWtINX49aHrsANn1jGqjiUAEsSTOo9kBhraVcPqw/uxFcOXo0fy3WBIJj7QEKPDiJ03LNGNI6KGjdi+/p0maWUJ3z+5BiuS9dY5cAZnCFVWnkSziVsMI0qCM5c6T0Rzv/yebjyunNxw/4NPH/XG3jq9sM4qMfiDy7Gpd88H1ftXMaOMEB0coyjMhqN9TfRWU6pFpQiOATsv658Zz1Am5SdpKeP4Q5H14BuBYIYMoqKZAQF4npiSjlxUoEZUfvW8eLnV3CBBrriHOz62Uew6ycfwpq+/UqCFf9x+zbwEoGtCwJNViGmzQLHMtojicJSOrUlIhspG9DJsVxRabiTrDontWwn5Rj2gws7hgMaKzN+u1bK1z6Dh395BA8qMwphQX3YvEB+xxH8+dq9+CuUAHedLSicAUwq9qAQ02baYpOUAWP6DveG6orvE0udt+oM5q/6hmPGxoXYYhM2+g3IKeEqvEDffAD7btyPe09lWK834FSO9Rv3475bDmC/gNrrAsLa+ykPWLfB+nircZEnHLRXWCYl7G9rvIFN8TIvRLQBBdxjSott8p2EDkSg7z2KN297FX+vP+K2Q9h933GcdGPfQvqwQU2yftgasnttZoZadaVWV5scw349SjGUy+h5lah1QEmHdCplA6pRV8JHW8l3xqaDKtvYXN9hyGhHrqLTySTIDOnHfV9uDZVi7q2vPM32DrzKS61A2CzhujpolKGXz2YCbx4WUNohpV3frZQKJKoBWJm7J57qxtSOqFGqNloLvfaMvcJC3KDKnnuartKxdyM/gbf/lJH0P6/Cd+7ejmu3L+EcRkdlNFaUDW8FVpWILPY6L7r8HPR+uwPX7L0K3yZswEA0ZBJh2hQ1j9lJpLYt8VS56s1sPuvAP7SEHbt6uO7r5yN/+TQOPHwS//75Ybx8aMDuMncJi2Kygwuwuca/iqpesoCl71+EHV96Hz522TIuDYDorbHoXfncQqKvZsjEq5bODDzH9t8hXtu2jIt1wz68hMtvWcLlN18I9a/TeO2hN/HKr47gP0cGKIp6eUcDG40ILlrEwnc/gEuvX8UHty/hojCods6xDK+6Dp+llD5uPkunh0HFLel00Oa+OttJGWCk6CAWn9hhcLCADAuIsKTLbvfsxBe/topvJNr71TZVQD23jqMnUoy+sIJL/F8fWcOhc2Ms7Orh/XVIvaUFBvccxf03vYBHxCyFUuQ5LSW+BENJGHWtJcFYYnCbaXWRN6SLxXTgIWH1rm+f0HUoxsq5lAIkHtYx8ue24YI7t+NbWspnQ3MODPDSTftx9+Nv4w2BVQQOcRrAUHbtNDOMERO4EDHlFWBT75KkY9JoDVgRtFvmZSSKhbaIJZnQpXb6b/XYW1i77An8+heH8cBI1xa3uOlrbz+CBz+6G3c+fgprrIIolzsX/Ke423Rxie1eaVd6H7h60pgZqQXORc5KHIyFtQ0JJGPNGern3zuAJz+zB3e8sI5X5kXev4FDn96D3/zwReyRlFG5aoiSCNqmk2Gt4LfINtpZjJE3TdMAXJ2s0ieOWPXvUYk77NvcA8xZobBHrySz5xTWdjyBe376Gv4y1DXHTbahwvi2V/G3nf/AH/b2JbnIK+Udv1P1nslTlcuJcwrHlg7s1t8s8PBPSL2b5HIjW5lQ8sCqZLNKacakGumPDuKZTz2Nu55fx+E25H3rOPzJp/C7Ww/iWXmKKdqlrvrRBB1RwiGj+LE3PTPmsKxPw7YGHgNvHsdCj1kcjydUuCy2hXJ2yupTah//7CmcvOJJ/PH+Y6Kmle33x/D0x5/En55bF6mOJW4yOmafnk4U9eyzQ5G00b6uVC2NVvrqXCvbhhMF67pa91j47rK+kLk4p1ThyGtYwMYGtV1hvG9dEvyqdPs4BmPgxuxWe33Ke6WuIyMPHmKbq9IdcB7KGt3+pIT9wKNwZR57or7wBKGP03BELKermhqHkorbINRWRAIXP+lqg1HTagPMdyMBNKAlfCntVFBCT8LV4rwxYtpwrUFhW8OqggbgctNS3sv+HdHsL9Iih5zcCpksKmlARkmUsLZWEbhyu4oxCRyZ8T7iuB8LvOmAMbXGSDeu1ajH4muNdG12pbz5pnKSrQJeBy4rfXUpp/TBxmCErGBmrG+lrEimXqoRsJ5s7htAxUGLhHXUVHA4WFhIFm4kXdqGdunGjKjGjcZqohBf1KqWhdSBHuXcrYlYTIpY0BEMpQKSy6i20LGrI5fJuC2nauAmlQ4o4cBBjd2YNuAppV+VbswJNivdrptCbZVum0pX4ctlBgorMseksMxxbBpgZiIsbOFmF+CSQVNFzpMGCXeMFIesSY+pLeX4DRgyBtwjWuvI8xQLMm5Viyq3+uH69KK5sE8VuZBLD+xcrZ0vLJhiGKMylt2qY87xCFHZYaNKG38tv3vjd+SptLlv7FnokNIdenPFk1OmTUyNY7hZtSGKFsgDhgIauNqDlXTBPo+oaFahI5F3nGAy4uJ3Q28uKXWQih1osyArWXj7Bg3V27Mtf5hW8SgmJL3KnuyxdweeL04o5Vjck2lo4CQsUt59Ci/WG7L7f1KLLjOfnBK2sMqZy9QBx96s4chb+oDK3iTlmdZ4wKWPexFiG0KZTVTMleHKMho5YWXYTrDFlXpygfDhXbj+s+/FV/VNH3sLD1z3HB4SQwgXtaWVYaLkrqkDXkIqE+KryLAmRzVlInwCbtZVPGC+HLbmy+AxJWDYUDi3RTh/nYc/N+yHqhY8qUVXTQm+l+9Og8UMJR5/Bs4EJI9CYRUQN2UjsGWO6dwMSrlu5M0FgXGXseYGLeAESsDz2hMRG75WrXLfCzBmWL0zK3BTb5lar/XNZs2FqTUtUjELzi4pzgkpzgVFTrpVYDB4yGrQoZsvNuM25NqODdqTQcVQbQo7D3C5GSmbgKQvbsGYG22qBvI9XHasGI4qNwFmgCNX/jXnRdIlilFTLnbZrgjwF7KYQq7t7CbpbrptZfnwpAHzlzCZWb1yrVaXk16xt2Yr9cZwwqJCIipqoFJvyVJXJGokuyALWVSLoZoJZB4JV310XxIK09snuJqm7+5qCgbLTCLhql9mGtQvx2dMTqz6Q2yCcXkxF6uUS5TK8LFs01zbVuvShRvLYP2oQ/+soTdY9Bvw+wXOPnYZj9e3gFJeZnAZsJqRcHarvh6reTXtTNtWgA2sHctgRvU6i7c9fhfTuQQiLZNIQlbwVYHtAtOI58YMYXtM6K1kR62Z0FzQ877z0L7gVI9nf720XXDatoy4Dm29b88dlatPNa+gndkVnQlwHXrzheJ9hq+JN7PnLxJvWhxuQdvXSNdB3zVgtEKD065NrwGsecD+6nd4tbT2VfBNkO8o8HRoNLzo4c83dxtUeuRVV1B7yaP5PYctweIsADd/rr/G4y8uaZrG9GcINn+TZcuwOANgzPRqD2ovZTW9x4SGcurs7yq9q8CY4eWttnOmbbO6nS01/EwnxKvZ1Bk0pOW+8/626fZOvF06r0Q3285eAwH8H5voqTrwCB3hAAAAAElFTkSuQmCC",JV=[{name:"gradient",url:zV},{name:"redCircle",url:XV},{name:"label",url:WV},{name:"aperture",url:YV},{name:"glow",url:KV},{name:"light_column",url:ZV},{name:"aircraft",url:jV},{name:"earth",url:$V}],qV={textures:JV};class eG{constructor(e){ut(this,"manager");ut(this,"callback");ut(this,"textureLoader");ut(this,"textures");this.callback=e,this.textures={},this.setLoadingManager(),this.loadResources()}setLoadingManager(){this.manager=new IV,this.manager.onStart=()=>{console.log("开始加载资源文件")},this.manager.onLoad=()=>{this.callback()},this.manager.onProgress=e=>{console.log(`正在加载:${e}`)},this.manager.onError=e=>{console.log("加载失败:"+e)}}loadResources(){var e;this.textureLoader=new kU(this.manager),(e=qV.textures)==null||e.forEach(t=>{this.textureLoader.load(t.url,n=>{this.textures[t.name]=n})})}destroy(){Object.keys(this.textures).forEach(e=>{const t=this.textures[e];t&&t.dispose&&t.dispose()}),this.textures={}}}const s_={type:"change"},Ay={type:"start"},A_={type:"end"};class tG extends LV{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new Ot,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:wA.ROTATE,MIDDLE:wA.DOLLY,RIGHT:wA.PAN},this.touches={ONE:BA.ROTATE,TWO:BA.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return s.phi},this.getAzimuthalAngle=function(){return s.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(Ae){Ae.addEventListener("keydown",Z),this._domElementKeyEvents=Ae},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(s_),n.update(),i=a.NONE},this.update=function(){const Ae=new Ot,Te=new Td().setFromUnitVectors(e.up,new Ot(0,1,0)),it=Te.clone().invert(),kt=new Ot,vr=new Td,Yr=2*Math.PI;return function(){const Ho=n.object.position;Ae.copy(Ho).sub(n.target),Ae.applyQuaternion(Te),s.setFromVector3(Ae),n.autoRotate&&i===a.NONE&&x(b()),n.enableDamping?(s.theta+=A.theta*n.dampingFactor,s.phi+=A.phi*n.dampingFactor):(s.theta+=A.theta,s.phi+=A.phi);let Mn=n.minAzimuthAngle,ea=n.maxAzimuthAngle;return isFinite(Mn)&&isFinite(ea)&&(Mn<-Math.PI?Mn+=Yr:Mn>Math.PI&&(Mn-=Yr),ea<-Math.PI?ea+=Yr:ea>Math.PI&&(ea-=Yr),Mn<=ea?s.theta=Math.max(Mn,Math.min(ea,s.theta)):s.theta=s.theta>(Mn+ea)/2?Math.max(Mn,s.theta):Math.min(ea,s.theta)),s.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,s.phi)),s.makeSafe(),s.radius*=l,s.radius=Math.max(n.minDistance,Math.min(n.maxDistance,s.radius)),n.enableDamping===!0?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),Ae.setFromSpherical(s),Ae.applyQuaternion(it),Ho.copy(n.target).add(Ae),n.object.lookAt(n.target),n.enableDamping===!0?(A.theta*=1-n.dampingFactor,A.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(A.set(0,0,0),u.set(0,0,0)),l=1,c||kt.distanceToSquared(n.object.position)>o||8*(1-vr.dot(n.object.quaternion))>o?(n.dispatchEvent(s_),kt.copy(n.object.position),vr.copy(n.object.quaternion),c=!1,!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",fe),n.domElement.removeEventListener("pointerdown",$),n.domElement.removeEventListener("pointercancel",z),n.domElement.removeEventListener("wheel",Y),n.domElement.removeEventListener("pointermove",j),n.domElement.removeEventListener("pointerup",ie),n._domElementKeyEvents!==null&&n._domElementKeyEvents.removeEventListener("keydown",Z)};const n=this,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let i=a.NONE;const o=1e-6,s=new r_,A=new r_;let l=1;const u=new Ot;let c=!1;const f=new xa,h=new xa,v=new xa,d=new xa,p=new xa,g=new xa,y=new xa,m=new xa,w=new xa,B=[],C={};function b(){return 2*Math.PI/60/60*n.autoRotateSpeed}function _(){return Math.pow(.95,n.zoomSpeed)}function x(Ae){A.theta-=Ae}function S(Ae){A.phi-=Ae}const I=function(){const Ae=new Ot;return function(it,kt){Ae.setFromMatrixColumn(kt,0),Ae.multiplyScalar(-it),u.add(Ae)}}(),L=function(){const Ae=new Ot;return function(it,kt){n.screenSpacePanning===!0?Ae.setFromMatrixColumn(kt,1):(Ae.setFromMatrixColumn(kt,0),Ae.crossVectors(n.object.up,Ae)),Ae.multiplyScalar(it),u.add(Ae)}}(),T=function(){const Ae=new Ot;return function(it,kt){const vr=n.domElement;if(n.object.isPerspectiveCamera){const Yr=n.object.position;Ae.copy(Yr).sub(n.target);let mA=Ae.length();mA*=Math.tan(n.object.fov/2*Math.PI/180),I(2*it*mA/vr.clientHeight,n.object.matrix),L(2*kt*mA/vr.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(I(it*(n.object.right-n.object.left)/n.object.zoom/vr.clientWidth,n.object.matrix),L(kt*(n.object.top-n.object.bottom)/n.object.zoom/vr.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function M(Ae){n.object.isPerspectiveCamera?l/=Ae:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*Ae)),n.object.updateProjectionMatrix(),c=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function R(Ae){n.object.isPerspectiveCamera?l*=Ae:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/Ae)),n.object.updateProjectionMatrix(),c=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function P(Ae){f.set(Ae.clientX,Ae.clientY)}function E(Ae){y.set(Ae.clientX,Ae.clientY)}function k(Ae){d.set(Ae.clientX,Ae.clientY)}function D(Ae){h.set(Ae.clientX,Ae.clientY),v.subVectors(h,f).multiplyScalar(n.rotateSpeed);const Te=n.domElement;x(2*Math.PI*v.x/Te.clientHeight),S(2*Math.PI*v.y/Te.clientHeight),f.copy(h),n.update()}function U(Ae){m.set(Ae.clientX,Ae.clientY),w.subVectors(m,y),w.y>0?M(_()):w.y<0&&R(_()),y.copy(m),n.update()}function O(Ae){p.set(Ae.clientX,Ae.clientY),g.subVectors(p,d).multiplyScalar(n.panSpeed),T(g.x,g.y),d.copy(p),n.update()}function G(Ae){Ae.deltaY<0?R(_()):Ae.deltaY>0&&M(_()),n.update()}function X(Ae){let Te=!1;switch(Ae.code){case n.keys.UP:T(0,n.keyPanSpeed),Te=!0;break;case n.keys.BOTTOM:T(0,-n.keyPanSpeed),Te=!0;break;case n.keys.LEFT:T(n.keyPanSpeed,0),Te=!0;break;case n.keys.RIGHT:T(-n.keyPanSpeed,0),Te=!0;break}Te&&(Ae.preventDefault(),n.update())}function te(){if(B.length===1)f.set(B[0].pageX,B[0].pageY);else{const Ae=.5*(B[0].pageX+B[1].pageX),Te=.5*(B[0].pageY+B[1].pageY);f.set(Ae,Te)}}function ne(){if(B.length===1)d.set(B[0].pageX,B[0].pageY);else{const Ae=.5*(B[0].pageX+B[1].pageX),Te=.5*(B[0].pageY+B[1].pageY);d.set(Ae,Te)}}function ye(){const Ae=B[0].pageX-B[1].pageX,Te=B[0].pageY-B[1].pageY,it=Math.sqrt(Ae*Ae+Te*Te);y.set(0,it)}function re(){n.enableZoom&&ye(),n.enablePan&&ne()}function W(){n.enableZoom&&ye(),n.enableRotate&&te()}function ee(Ae){if(B.length==1)h.set(Ae.pageX,Ae.pageY);else{const it=Qe(Ae),kt=.5*(Ae.pageX+it.x),vr=.5*(Ae.pageY+it.y);h.set(kt,vr)}v.subVectors(h,f).multiplyScalar(n.rotateSpeed);const Te=n.domElement;x(2*Math.PI*v.x/Te.clientHeight),S(2*Math.PI*v.y/Te.clientHeight),f.copy(h)}function oe(Ae){if(B.length===1)p.set(Ae.pageX,Ae.pageY);else{const Te=Qe(Ae),it=.5*(Ae.pageX+Te.x),kt=.5*(Ae.pageY+Te.y);p.set(it,kt)}g.subVectors(p,d).multiplyScalar(n.panSpeed),T(g.x,g.y),d.copy(p)}function H(Ae){const Te=Qe(Ae),it=Ae.pageX-Te.x,kt=Ae.pageY-Te.y,vr=Math.sqrt(it*it+kt*kt);m.set(0,vr),w.set(0,Math.pow(m.y/y.y,n.zoomSpeed)),M(w.y),y.copy(m)}function N(Ae){n.enableZoom&&H(Ae),n.enablePan&&oe(Ae)}function K(Ae){n.enableZoom&&H(Ae),n.enableRotate&&ee(Ae)}function $(Ae){n.enabled!==!1&&(B.length===0&&(n.domElement.setPointerCapture(Ae.pointerId),n.domElement.addEventListener("pointermove",j),n.domElement.addEventListener("pointerup",ie)),we(Ae),Ae.pointerType==="touch"?J(Ae):q(Ae))}function j(Ae){n.enabled!==!1&&(Ae.pointerType==="touch"?ue(Ae):V(Ae))}function ie(Ae){xe(Ae),B.length===0&&(n.domElement.releasePointerCapture(Ae.pointerId),n.domElement.removeEventListener("pointermove",j),n.domElement.removeEventListener("pointerup",ie)),n.dispatchEvent(A_),i=a.NONE}function z(Ae){xe(Ae)}function q(Ae){let Te;switch(Ae.button){case 0:Te=n.mouseButtons.LEFT;break;case 1:Te=n.mouseButtons.MIDDLE;break;case 2:Te=n.mouseButtons.RIGHT;break;default:Te=-1}switch(Te){case wA.DOLLY:if(n.enableZoom===!1)return;E(Ae),i=a.DOLLY;break;case wA.ROTATE:if(Ae.ctrlKey||Ae.metaKey||Ae.shiftKey){if(n.enablePan===!1)return;k(Ae),i=a.PAN}else{if(n.enableRotate===!1)return;P(Ae),i=a.ROTATE}break;case wA.PAN:if(Ae.ctrlKey||Ae.metaKey||Ae.shiftKey){if(n.enableRotate===!1)return;P(Ae),i=a.ROTATE}else{if(n.enablePan===!1)return;k(Ae),i=a.PAN}break;default:i=a.NONE}i!==a.NONE&&n.dispatchEvent(Ay)}function V(Ae){switch(i){case a.ROTATE:if(n.enableRotate===!1)return;D(Ae);break;case a.DOLLY:if(n.enableZoom===!1)return;U(Ae);break;case a.PAN:if(n.enablePan===!1)return;O(Ae);break}}function Y(Ae){n.enabled===!1||n.enableZoom===!1||i!==a.NONE||(Ae.preventDefault(),n.dispatchEvent(Ay),G(Ae),n.dispatchEvent(A_))}function Z(Ae){n.enabled===!1||n.enablePan===!1||X(Ae)}function J(Ae){switch(_e(Ae),B.length){case 1:switch(n.touches.ONE){case BA.ROTATE:if(n.enableRotate===!1)return;te(),i=a.TOUCH_ROTATE;break;case BA.PAN:if(n.enablePan===!1)return;ne(),i=a.TOUCH_PAN;break;default:i=a.NONE}break;case 2:switch(n.touches.TWO){case BA.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;re(),i=a.TOUCH_DOLLY_PAN;break;case BA.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;W(),i=a.TOUCH_DOLLY_ROTATE;break;default:i=a.NONE}break;default:i=a.NONE}i!==a.NONE&&n.dispatchEvent(Ay)}function ue(Ae){switch(_e(Ae),i){case a.TOUCH_ROTATE:if(n.enableRotate===!1)return;ee(Ae),n.update();break;case a.TOUCH_PAN:if(n.enablePan===!1)return;oe(Ae),n.update();break;case a.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;N(Ae),n.update();break;case a.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;K(Ae),n.update();break;default:i=a.NONE}}function fe(Ae){n.enabled!==!1&&Ae.preventDefault()}function we(Ae){B.push(Ae)}function xe(Ae){delete C[Ae.pointerId];for(let Te=0;Te * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License *//*! ***************************************************************************** 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 pw=function(r,e){return pw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},pw(r,e)};function ga(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pw(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gw=function(){return gw=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&t>10)+55296,o%1024+56320)),(a+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},l_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var eh=0;eh"u"?[]:new Uint8Array(256);for(var th=0;th>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|A&63;return l},oG=function(r){for(var e=r.length,t=[],n=0;n>ks,lG=1<>ks,cG=NU+uG,fG=cG,hG=32,vG=fG+hG,dG=65536>>oC,pG=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ks],t=(t<>ks)],t=(t<>oC),t=this.index[t],t+=e>>ks&gG,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var rh=0;rhh_?(a.push(!0),s-=h_):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(o),t.push(ww);if(s===xG||s===yw){if(o===0)return n.push(o),t.push(Cs);var A=t[o-1];return DG.indexOf(A)===-1?(n.push(n[o-1]),t.push(A)):(n.push(o),t.push(Cs))}if(n.push(o),s===LG)return t.push(e==="strict"?Bw:zc);if(s===$U||s===IG)return t.push(Cs);if(s===EG)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(zc):t.push(Cs);t.push(s)}),[n,t,a]},hy=function(r,e,t,n){var a=n[t];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==to)break}if(a===to)for(var i=t;i>0;){i--;var s=n[i];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var A=t;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==to)break}if(s!==to)break}return!1},w_=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===to)t--;else return n}return 0},UG=function(r,e,t,n,a){if(t[n]===0)return ht;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return ht;var o=i-1,s=i+1,A=e[i],l=o>=0?e[o]:0,u=e[s];if(A===VU&&u===GU)return ht;if(Tw.indexOf(A)!==-1)return KU;if(Tw.indexOf(u)!==-1||WU.indexOf(u)!==-1)return ht;if(w_(i,e)===zU)return oh;if(Sw.get(r[i])===yw||(A===ah||A===ih)&&Sw.get(r[s])===yw||A===v_||u===v_||A===d_||[to,mw,oc].indexOf(A)===-1&&u===d_||[nh,uu,TG,bA,xA].indexOf(u)!==-1||w_(i,e)===cu||hy(cy,cu,i,e)||hy([nh,uu],Bw,i,e)||hy(p_,p_,i,e))return ht;if(A===to)return oh;if(A===cy||u===cy)return ht;if(u===ww||A===ww)return oh;if([mw,oc,Bw].indexOf(u)!==-1||A===SG||l===xw&&FG.indexOf(A)!==-1||A===xA&&u===xw||u===g_||si.indexOf(u)!==-1&&A===gn||si.indexOf(A)!==-1&&u===gn||A===Ac&&[zc,ah,ih].indexOf(u)!==-1||[zc,ah,ih].indexOf(A)!==-1&&u===sc||si.indexOf(A)!==-1&&y_.indexOf(u)!==-1||y_.indexOf(A)!==-1&&si.indexOf(u)!==-1||[Ac,sc].indexOf(A)!==-1&&(u===gn||[cu,oc].indexOf(u)!==-1&&e[s+1]===gn)||[cu,oc].indexOf(A)!==-1&&u===gn||A===gn&&[gn,xA,bA].indexOf(u)!==-1)return ht;if([gn,xA,bA,nh,uu].indexOf(u)!==-1)for(var c=i;c>=0;){var f=e[c];if(f===gn)return ht;if([xA,bA].indexOf(f)!==-1)c--;else break}if([Ac,sc].indexOf(u)!==-1)for(var c=[nh,uu].indexOf(A)!==-1?o:i;c>=0;){var f=e[c];if(f===gn)return ht;if([xA,bA].indexOf(f)!==-1)c--;else break}if(_w===A&&[_w,Yv,Cw,bw].indexOf(u)!==-1||[Yv,Cw].indexOf(A)!==-1&&[Yv,Zv].indexOf(u)!==-1||[Zv,bw].indexOf(A)!==-1&&u===Zv||m_.indexOf(A)!==-1&&[g_,sc].indexOf(u)!==-1||m_.indexOf(u)!==-1&&A===Ac||si.indexOf(A)!==-1&&si.indexOf(u)!==-1||A===bA&&si.indexOf(u)!==-1||si.concat(gn).indexOf(A)!==-1&&u===cu&&MG.indexOf(r[s])===-1||si.concat(gn).indexOf(u)!==-1&&A===uu)return ht;if(A===fy&&u===fy){for(var h=t[i],v=1;h>0&&(h--,e[h]===fy);)v++;if(v%2!==0)return ht}return A===ah&&u===ih?ht:oh},PG=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=QG(r,e.lineBreak),n=t[0],a=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(s){return[gn,Cs,$U].indexOf(s)!==-1?zc:s}));var o=e.wordBreak==="keep-all"?i.map(function(s,A){return s&&r[A]>=19968&&r[A]<=40959}):void 0;return[n,a,o]},kG=function(){function r(e,t,n,a){this.codePoints=e,this.required=t===KU,this.start=n,this.end=a}return r.prototype.slice=function(){return jt.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),RG=function(r,e){var t=qp(r),n=PG(t,e),a=n[0],i=n[1],o=n[2],s=t.length,A=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=ht;l=XU&&r<=57},yz=function(r){return r>=55296&&r<=57343},_A=function(r){return Nr(r)||r>=jU&&r<=qU||r>=YU&&r<=hz},mz=function(r){return r>=YU&&r<=dz},wz=function(r){return r>=jU&&r<=gz},Bz=function(r){return mz(r)||wz(r)},Cz=function(r){return r>=nz},ch=function(r){return r===Ld||r===NG||r===VG},Ed=function(r){return Bz(r)||Cz(r)||r===KG},__=function(r){return Ed(r)||Nr(r)||r===An},bz=function(r){return r>=sz&&r<=Az||r===lz||r>=uz&&r<=cz||r===fz},Ji=function(r,e){return r!==_c?!1:e!==Ld},fh=function(r,e,t){return r===An?Ed(e)||Ji(e,t):Ed(r)?!0:!!(r===_c&&Ji(r,e))},dy=function(r,e,t){return r===Ts||r===An?Nr(e)?!0:e===$c&&Nr(t):Nr(r===$c?e:r)},xz=function(r){var e=0,t=1;(r[e]===Ts||r[e]===An)&&(r[e]===An&&(t=-1),e++);for(var n=[];Nr(r[e]);)n.push(r[e++]);var a=n.length?parseInt(jt.apply(void 0,n),10):0;r[e]===$c&&e++;for(var i=[];Nr(r[e]);)i.push(r[e++]);var o=i.length,s=o?parseInt(jt.apply(void 0,i),10):0;(r[e]===JU||r[e]===ZU)&&e++;var A=1;(r[e]===Ts||r[e]===An)&&(r[e]===An&&(A=-1),e++);for(var l=[];Nr(r[e]);)l.push(r[e++]);var u=l.length?parseInt(jt.apply(void 0,l),10):0;return t*(a+s*Math.pow(10,-o))*Math.pow(10,A*u)},_z={type:2},Sz={type:3},Tz={type:4},Iz={type:13},Lz={type:8},Ez={type:21},Mz={type:9},Dz={type:10},Fz={type:11},Qz={type:12},Uz={type:14},hh={type:23},Pz={type:1},kz={type:25},Rz={type:24},Oz={type:26},Hz={type:27},Nz={type:28},Vz={type:29},Gz={type:31},Iw={type:32},eP=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(qp(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Iw;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case sh:return this.consumeStringToken(sh);case GG:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(__(t)||Ji(n,a)){var i=fh(t,n,a)?HG:OG,o=this.consumeName();return{type:5,value:o,flags:i}}break;case zG:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Iz;break;case Ah:return this.consumeStringToken(Ah);case lh:return _z;case hu:return Sz;case vy:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Uz;break;case Ts:if(dy(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case az:return Tz;case An:var s=e,A=this.peekCodePoint(0),l=this.peekCodePoint(1);if(dy(s,A,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fh(s,A,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===An&&l===YG)return this.consumeCodePoint(),this.consumeCodePoint(),Rz;break;case $c:if(dy(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case C_:if(this.peekCodePoint(0)===vy)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vy&&(u=this.consumeCodePoint(),u===C_))return this.consumeToken();if(u===_a)return this.consumeToken()}break;case iz:return Oz;case oz:return Hz;case XG:if(this.peekCodePoint(0)===WG&&this.peekCodePoint(1)===An&&this.peekCodePoint(2)===An)return this.consumeCodePoint(),this.consumeCodePoint(),kz;break;case ZG:var c=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(fh(c,f,h)){var o=this.consumeName();return{type:7,value:o}}break;case jG:return Nz;case _c:if(Ji(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case JG:return Vz;case qG:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Lz;break;case ez:return Fz;case tz:return Qz;case vz:case pz:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===Ts&&(_A(d)||d===uh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case b_:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Mz;if(this.peekCodePoint(0)===b_)return this.consumeCodePoint(),Ez;break;case rz:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Dz;break;case _a:return Iw}return ch(e)?(this.consumeWhiteSpace(),Gz):Nr(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Ed(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:jt(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();_A(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===uh&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(jt.apply(void 0,e.map(function(A){return A===uh?XU:A})),16),i=parseInt(jt.apply(void 0,e.map(function(A){return A===uh?qU:A})),16);return{type:30,start:a,end:i}}var o=parseInt(jt.apply(void 0,e),16);if(this.peekCodePoint(0)===An&&_A(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];_A(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(jt.apply(void 0,s),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===lh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===lh?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===_a)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Ah||t===sh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===_a||this.peekCodePoint(0)===hu)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),hh)}for(;;){var a=this.consumeCodePoint();if(a===_a||a===hu)return{type:22,value:jt.apply(void 0,e)};if(ch(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===_a||this.peekCodePoint(0)===hu?(this.consumeCodePoint(),{type:22,value:jt.apply(void 0,e)}):(this.consumeBadUrlRemnants(),hh);if(a===sh||a===Ah||a===lh||bz(a))return this.consumeBadUrlRemnants(),hh;if(a===_c)if(Ji(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),hh;else e.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;ch(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===hu||e===_a)return;Ji(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var a=Math.min(t,e);n+=jt.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var a=this._value[n];if(a===_a||a===void 0||a===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(a===Ld)return this._value.splice(0,n),Pz;if(a===_c){var i=this._value[n+1];i!==_a&&i!==void 0&&(i===Ld?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ji(a,i)&&(t+=this.consumeStringSlice(n),t+=jt(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=If,n=this.peekCodePoint(0);for((n===Ts||n===An)&&e.push(this.consumeCodePoint());Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===$c&&Nr(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=B_;Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===JU||n===ZU)&&((a===Ts||a===An)&&Nr(i)||Nr(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=B_;Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[xz(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(fh(a,i,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return a===$G?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(_A(e)){for(var t=jt(e);_A(this.peekCodePoint(0))&&t.length<6;)t+=jt(this.consumeCodePoint());ch(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||yz(n)||n>1114111?x_:n}return e===_a?x_:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(__(t))e+=jt(t);else if(Ji(t,this.peekCodePoint(0)))e+=jt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),tP=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new eP;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||$z(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Iw:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),Lf=function(r){return r.type===15},zl=function(r){return r.type===17},Tt=function(r){return r.type===20},zz=function(r){return r.type===0},Lw=function(r,e){return Tt(r)&&r.value===e},rP=function(r){return r.type!==31},_l=function(r){return r.type!==31&&r.type!==4},ri=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},$z=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},xo=function(r){return r.type===17||r.type===15},sr=function(r){return r.type===16||xo(r)},nP=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Dr={type:17,number:0,flags:If},sC={type:16,number:50,flags:If},ro={type:16,number:100,flags:If},lc=function(r,e,t){var n=r[0],a=r[1];return[Ht(n,e),Ht(typeof a<"u"?a:n,t)]},Ht=function(r,e){if(r.type===16)return r.number/100*e;if(Lf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},aP="deg",iP="grad",oP="rad",sP="turn",eg={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case aP:return Math.PI*e.number/180;case iP:return Math.PI/200*e.number;case oP:return e.number;case sP:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},AP=function(r){return r.type===15&&(r.unit===aP||r.unit===iP||r.unit===oP||r.unit===sP)},lP=function(r){var e=r.filter(Tt).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Dr,Dr];case"to top":case"bottom":return Kn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Dr,ro];case"to right":case"left":return Kn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ro,ro];case"to bottom":case"top":return Kn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ro,Dr];case"to left":case"right":return Kn(270)}return 0},Kn=function(r){return Math.PI*r/180},vo={name:"color",parse:function(r,e){if(e.type===18){var t=Kz[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3);return no(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return no(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6);return no(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return no(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var s=mi[e.value.toUpperCase()];if(typeof s<"u")return s}return mi.TRANSPARENT}},po=function(r){return(255&r)===0},wr=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,a=255&r>>24;return e<255?"rgba("+a+","+n+","+t+","+e/255+")":"rgb("+a+","+n+","+t+")"},no=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},S_=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},T_=function(r,e){var t=e.filter(_l);if(t.length===3){var n=t.map(S_),a=n[0],i=n[1],o=n[2];return no(a,i,o,1)}if(t.length===4){var s=t.map(S_),a=s[0],i=s[1],o=s[2],A=s[3];return no(a,i,o,A)}return 0};function py(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var I_=function(r,e){var t=e.filter(_l),n=t[0],a=t[1],i=t[2],o=t[3],s=(n.type===17?Kn(n.number):eg.parse(r,n))/(Math.PI*2),A=sr(a)?a.number/100:0,l=sr(i)?i.number/100:0,u=typeof o<"u"&&sr(o)?Ht(o,1):1;if(A===0)return no(l*255,l*255,l*255,1);var c=l<=.5?l*(A+1):l+A-l*A,f=l*2-c,h=py(f,c,s+1/3),v=py(f,c,s),d=py(f,c,s-1/3);return no(h*255,v*255,d*255,u)},Kz={hsl:I_,hsla:I_,rgb:T_,rgba:T_},Sc=function(r,e){return vo.parse(r,tP.create(e).parseComponentValue())},mi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Wz={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Tt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xz={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tg=function(r,e){var t=vo.parse(r,e[0]),n=e[1];return n&&sr(n)?{color:t,stop:n}:{color:t,stop:null}},L_=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=Dr),n.stop===null&&(n.stop=ro);for(var a=[],i=0,o=0;oi?a.push(A):a.push(i),i=A}else a.push(null)}for(var l=null,o=0;oo.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},jz=function(r,e,t,n,a){var i=0,o=0;switch(r.size){case 0:r.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-a)):r.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-a)));break;case 2:if(r.shape===0)i=o=Math.min(ra(e,t),ra(e,t-a),ra(e-n,t),ra(e-n,t-a));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-a))/Math.min(Math.abs(e),Math.abs(e-n)),A=E_(n,a,e,t,!0),l=A[0],u=A[1];i=ra(l-e,(u-t)/s),o=s*i}break;case 1:r.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-a)):r.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-a)));break;case 3:if(r.shape===0)i=o=Math.max(ra(e,t),ra(e,t-a),ra(e-n,t),ra(e-n,t-a));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-a))/Math.max(Math.abs(e),Math.abs(e-n)),c=E_(n,a,e,t,!1),l=c[0],u=c[1];i=ra(l-e,(u-t)/s),o=s*i}break}return Array.isArray(r.size)&&(i=Ht(r.size[0],n),o=r.size.length===2?Ht(r.size[1],a):i),[i,o]},Jz=function(r,e){var t=Kn(180),n=[];return ri(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&o.value==="to"){t=lP(a);return}else if(AP(o)){t=eg.parse(r,o);return}}var s=tg(r,a);n.push(s)}),{angle:t,stops:n,type:1}},vh=function(r,e){var t=Kn(180),n=[];return ri(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=lP(a);return}else if(AP(o)){t=(eg.parse(r,o)+Kn(270))%Kn(360);return}}var s=tg(r,a);n.push(s)}),{angle:t,stops:n,type:1}},qz=function(r,e){var t=Kn(180),n=[],a=1,i=0,o=3,s=[];return ri(e).forEach(function(A,l){var u=A[0];if(l===0){if(Tt(u)&&u.value==="linear"){a=1;return}else if(Tt(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var c=vo.parse(r,u.values[0]);n.push({stop:Dr,color:c})}else if(u.name==="to"){var c=vo.parse(r,u.values[0]);n.push({stop:ro,color:c})}else if(u.name==="color-stop"){var f=u.values.filter(_l);if(f.length===2){var c=vo.parse(r,f[1]),h=f[0];zl(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:c})}}}}),a===1?{angle:(t+Kn(180))%Kn(360),stops:n,type:a}:{size:o,shape:i,stops:n,position:s,type:a}},uP="closest-side",cP="farthest-side",fP="closest-corner",hP="farthest-corner",vP="circle",dP="ellipse",pP="cover",gP="contain",e$=function(r,e){var t=0,n=3,a=[],i=[];return ri(e).forEach(function(o,s){var A=!0;if(s===0){var l=!1;A=o.reduce(function(c,f){if(l)if(Tt(f))switch(f.value){case"center":return i.push(sC),c;case"top":case"left":return i.push(Dr),c;case"right":case"bottom":return i.push(ro),c}else(sr(f)||xo(f))&&i.push(f);else if(Tt(f))switch(f.value){case vP:return t=0,!1;case dP:return t=1,!1;case"at":return l=!0,!1;case uP:return n=0,!1;case pP:case cP:return n=1,!1;case gP:case fP:return n=2,!1;case hP:return n=3,!1}else if(xo(f)||sr(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return c},A)}if(A){var u=tg(r,o);a.push(u)}}),{size:n,shape:t,stops:a,position:i,type:2}},dh=function(r,e){var t=0,n=3,a=[],i=[];return ri(e).forEach(function(o,s){var A=!0;if(s===0?A=o.reduce(function(u,c){if(Tt(c))switch(c.value){case"center":return i.push(sC),!1;case"top":case"left":return i.push(Dr),!1;case"right":case"bottom":return i.push(ro),!1}else if(sr(c)||xo(c))return i.push(c),!1;return u},A):s===1&&(A=o.reduce(function(u,c){if(Tt(c))switch(c.value){case vP:return t=0,!1;case dP:return t=1,!1;case gP:case uP:return n=0,!1;case cP:return n=1,!1;case fP:return n=2,!1;case pP:case hP:return n=3,!1}else if(xo(c)||sr(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},A)),A){var l=tg(r,o);a.push(l)}}),{size:n,shape:t,stops:a,position:i,type:2}},t$=function(r){return r.type===1},r$=function(r){return r.type===2},AC={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=yP[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function n$(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!yP[r.name])}var yP={"linear-gradient":Jz,"-moz-linear-gradient":vh,"-ms-linear-gradient":vh,"-o-linear-gradient":vh,"-webkit-linear-gradient":vh,"radial-gradient":e$,"-moz-radial-gradient":dh,"-ms-radial-gradient":dh,"-o-radial-gradient":dh,"-webkit-radial-gradient":dh,"-webkit-gradient":qz},a$={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return _l(n)&&n$(n)}).map(function(n){return AC.parse(r,n)})}},i$={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Tt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},o$={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return ri(e).map(function(t){return t.filter(sr)}).map(nP)}},s$={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return ri(e).map(function(t){return t.filter(Tt).map(function(n){return n.value}).join(" ")}).map(A$)}},A$=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ml;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(ml||(ml={}));var l$={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return ri(e).map(function(t){return t.filter(u$)})}},u$=function(r){return Tt(r)||sr(r)},rg=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},c$=rg("top"),f$=rg("right"),h$=rg("bottom"),v$=rg("left"),ng=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return nP(t.filter(sr))}}},d$=ng("top-left"),p$=ng("top-right"),g$=ng("bottom-right"),y$=ng("bottom-left"),ag=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},m$=ag("top"),w$=ag("right"),B$=ag("bottom"),C$=ag("left"),ig=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Lf(t)?t.number:0}}},b$=ig("top"),x$=ig("right"),_$=ig("bottom"),S$=ig("left"),T$={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},I$={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},L$={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).reduce(function(t,n){return t|E$(n.value)},0)}},E$=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},M$={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},D$={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Md;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Md||(Md={}));var F$={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Md.STRICT;case"normal":default:return Md.NORMAL}}},Q$={name:"line-height",initialValue:"normal",prefix:!1,type:4},M_=function(r,e){return Tt(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:sr(r)?Ht(r,e):e},U$={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:AC.parse(r,e)}},P$={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ew={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},og=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},k$=og("top"),R$=og("right"),O$=og("bottom"),H$=og("left"),N$={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},V$={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},sg=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},G$=sg("top"),z$=sg("right"),$$=sg("bottom"),K$=sg("left"),W$={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},X$={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Y$={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&Lw(e[0],"none")?[]:ri(e).map(function(t){for(var n={color:mi.TRANSPARENT,offsetX:Dr,offsetY:Dr,blur:Dr},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},J$=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},q$=function(r){var e=r.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],n=e[1];e[2],e[3];var a=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,a,i,o,s]:null},eK={matrix:J$,matrix3d:q$},D_={type:16,number:50,flags:If},tK=[D_,D_],rK={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(sr);return t.length!==2?tK:[t[0],t[1]]}},nK={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Tc;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Tc||(Tc={}));var aK={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return Tc.BREAK_ALL;case"keep-all":return Tc.KEEP_ALL;case"normal":default:return Tc.NORMAL}}},iK={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(zl(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},mP={name:"time",parse:function(r,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},oK={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return zl(e)?e.number:1}},sK={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},AK={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},lK={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(a){switch(a.type){case 20:case 0:t.push(a.value);break;case 17:t.push(a.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},uK={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},cK={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(zl(e))return e.number;if(Tt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},fK={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(Tt).map(function(t){return t.value})}},hK={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},pr=function(r,e){return(r&e)!==0},vK={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},dK={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],a=e.filter(rP),i=0;i1?1:0],this.overflowWrap=He(e,V$,t.overflowWrap),this.paddingTop=He(e,G$,t.paddingTop),this.paddingRight=He(e,z$,t.paddingRight),this.paddingBottom=He(e,$$,t.paddingBottom),this.paddingLeft=He(e,K$,t.paddingLeft),this.paintOrder=He(e,wK,t.paintOrder),this.position=He(e,X$,t.position),this.textAlign=He(e,W$,t.textAlign),this.textDecorationColor=He(e,sK,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=He(e,AK,(a=t.textDecorationLine)!==null&&a!==void 0?a:t.textDecoration),this.textShadow=He(e,Y$,t.textShadow),this.textTransform=He(e,Z$,t.textTransform),this.transform=He(e,j$,t.transform),this.transformOrigin=He(e,rK,t.transformOrigin),this.visibility=He(e,nK,t.visibility),this.webkitTextStrokeColor=He(e,BK,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(e,CK,t.webkitTextStrokeWidth),this.wordBreak=He(e,aK,t.wordBreak),this.zIndex=He(e,iK,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return po(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return pr(this.display,4)||pr(this.display,33554432)||pr(this.display,268435456)||pr(this.display,536870912)||pr(this.display,67108864)||pr(this.display,134217728)},r}(),xK=function(){function r(e,t){this.content=He(e,vK,t.content),this.quotes=He(e,yK,t.quotes)}return r}(),Q_=function(){function r(e,t){this.counterIncrement=He(e,dK,t.counterIncrement),this.counterReset=He(e,pK,t.counterReset)}return r}(),He=function(r,e,t){var n=new eP,a=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(a);var i=new tP(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(r,Tt(o)?o.value:e.initialValue);case 0:return e.parse(r,i.parseComponentValue());case 1:return e.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return eg.parse(r,i.parseComponentValue());case"color":return vo.parse(r,i.parseComponentValue());case"image":return AC.parse(r,i.parseComponentValue());case"length":var s=i.parseComponentValue();return xo(s)?s:Dr;case"length-percentage":var A=i.parseComponentValue();return sr(A)?A:Dr;case"time":return mP.parse(r,i.parseComponentValue())}break}},_K="data-html2canvas-debug",SK=function(r){var e=r.getAttribute(_K);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mw=function(r,e){var t=SK(r);return t===1||e===t},ni=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Mw(t,3))debugger;this.styles=new bK(e,window.getComputedStyle(t,null)),Qw(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Jp(this.context,t),Mw(t,4)&&(this.flags|=16)}return r}(),TK="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",U_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ph=0;ph>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|A&63;return l},LK=function(r){for(var e=r.length,t=[],n=0;n>Rs,DK=1<>Rs,QK=wP+FK,UK=QK,PK=32,kK=UK+PK,RK=65536>>lC,OK=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Rs],t=(t<>Rs)],t=(t<>lC),t=this.index[t],t+=e>>Rs&HK,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var gh=0;gh=55296&&a<=56319&&t>10)+55296,o%1024+56320)),(a+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},YK=VK(TK),Pn="×",xy="÷",ZK=function(r){return YK.get(r)},jK=function(r,e,t){var n=t-2,a=e[n],i=e[t-1],o=e[t];if(i===my&&o===wy)return Pn;if(i===my||i===wy||i===R_||o===my||o===wy||o===R_)return xy;if(i===H_&&[H_,By,N_,V_].indexOf(o)!==-1||(i===N_||i===By)&&(o===By||o===Cy)||(i===V_||i===Cy)&&o===Cy||o===G_||o===O_||o===KK||i===$K)return Pn;if(i===G_&&o===z_){for(;a===O_;)a=e[--n];if(a===z_)return Pn}if(i===by&&o===by){for(var s=0;a===by;)s++,a=e[--n];if(s%2===0)return Pn}return xy},JK=function(r){var e=WK(r),t=e.length,n=0,a=0,i=e.map(ZK);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=Pn;no.x||u.y>o.y;return o=u,l===0?!0:c});return r.body.removeChild(e),s},r8=function(){return typeof new Image().crossOrigin<"u"},n8=function(){return typeof new XMLHttpRequest().responseType=="string"},a8=function(r){var e=new Image,t=r.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},$_=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},i8=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var a=new Image,i=e.toDataURL();a.src=i;var o=Dw(t,t,0,0,a);return n.fillStyle="red",n.fillRect(0,0,t,t),K_(o).then(function(s){n.drawImage(s,0,0);var A=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=t+"px",$_(A)?K_(Dw(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),$_(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Dw=function(r,e,t,n,a){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(a),o},K_=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Er={get SUPPORT_RANGE_BOUNDS(){var r=e8(document);return Object.defineProperty(Er,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=Er.SUPPORT_RANGE_BOUNDS&&t8(document);return Object.defineProperty(Er,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=a8(document);return Object.defineProperty(Er,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?i8(document):Promise.resolve(!1);return Object.defineProperty(Er,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=r8();return Object.defineProperty(Er,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=n8();return Object.defineProperty(Er,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Er,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Er,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Ic=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),o8=function(r,e,t,n){var a=l8(e,t),i=[],o=0;return a.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(Er.SUPPORT_RANGE_BOUNDS){var A=W_(n,o,s.length).getClientRects();if(A.length>1){var l=uC(s),u=0;l.forEach(function(f){i.push(new Ic(f,_i.fromDOMRectList(r,W_(n,u+o,f.length).getClientRects()))),u+=f.length})}else i.push(new Ic(s,_i.fromDOMRectList(r,A)))}else{var c=n.splitText(s.length);i.push(new Ic(s,s8(r,n))),n=c}else Er.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),i},s8=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var i=Jp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return _i.EMPTY},W_=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,e),a.setEnd(r,e+t),a},uC=function(r){if(Er.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return qK(r)},A8=function(r,e){if(Er.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return c8(r,e)},l8=function(r,e){return e.letterSpacing!==0?uC(r):A8(r,e)},u8=[32,160,4961,65792,65793,4153,4241],c8=function(r,e){for(var t=RG(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,i=function(){if(a.value){var o=a.value.slice(),s=qp(o),A="";s.forEach(function(l){u8.indexOf(l)===-1?A+=jt(l):(A.length&&n.push(A),n.push(jt(l)),A="")}),A.length&&n.push(A)}};!(a=t.next()).done;)i();return n},f8=function(){function r(e,t,n){this.text=h8(t.data,n.textTransform),this.textBounds=o8(e,this.text,n,t)}return r}(),h8=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(v8,d8);case 2:return r.toUpperCase();default:return r}},v8=/(^|\s|:|-|\(|\))([a-z])/g,d8=function(r,e,t){return r.length>0?e+t.toUpperCase():r},BP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(ni),CP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(ni),bP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this,i=new XMLSerializer,o=Jp(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(ni),xP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.value=n.value,a}return e}(ni),Fw=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(ni),p8=[{type:15,flags:0,unit:"px",number:3}],g8=[{type:16,flags:0,number:50}],y8=function(r){return r.width>r.height?new _i(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)t.textNodes.push(new f8(r,a,t.styles));else if(ll(a))if(QP(a)&&a.assignedNodes)a.assignedNodes().forEach(function(s){return jv(r,s,t,n)});else{var o=IP(r,a);o.styles.isVisible()&&(C8(a,o,n)?o.flags|=4:b8(o.styles)&&(o.flags|=2),B8.indexOf(a.tagName)!==-1&&(o.flags|=8),t.elements.push(o),a.slot,a.shadowRoot?jv(r,a.shadowRoot,o,n):!Qd(a)&&!MP(a)&&!Ud(a)&&jv(r,a,o,n))}},IP=function(r,e){return Uw(e)?new BP(r,e):DP(e)?new CP(r,e):MP(e)?new bP(r,e):x8(e)?new xP(r,e):_8(e)?new Fw(r,e):S8(e)?new cC(r,e):Ud(e)?new _P(r,e):Qd(e)?new SP(r,e):FP(e)?new TP(r,e):new ni(r,e)},LP=function(r,e){var t=IP(r,e);return t.flags|=4,jv(r,e,t,t),t},C8=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fC(r)&&t.styles.isTransparent()},b8=function(r){return r.isPositioned()||r.isFloating()},EP=function(r){return r.nodeType===Node.TEXT_NODE},ll=function(r){return r.nodeType===Node.ELEMENT_NODE},Qw=function(r){return ll(r)&&typeof r.style<"u"&&!Jv(r)},Jv=function(r){return typeof r.className=="object"},x8=function(r){return r.tagName==="LI"},_8=function(r){return r.tagName==="OL"},S8=function(r){return r.tagName==="INPUT"},T8=function(r){return r.tagName==="HTML"},MP=function(r){return r.tagName==="svg"},fC=function(r){return r.tagName==="BODY"},DP=function(r){return r.tagName==="CANVAS"},Y_=function(r){return r.tagName==="VIDEO"},Uw=function(r){return r.tagName==="IMG"},FP=function(r){return r.tagName==="IFRAME"},Z_=function(r){return r.tagName==="STYLE"},I8=function(r){return r.tagName==="SCRIPT"},Qd=function(r){return r.tagName==="TEXTAREA"},Ud=function(r){return r.tagName==="SELECT"},QP=function(r){return r.tagName==="SLOT"},j_=function(r){return r.tagName.indexOf("-")>0},L8=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,a=e.counterReset,i=!0;n!==null&&n.forEach(function(s){var A=t.counters[s.counter];A&&s.increment!==0&&(i=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=s.increment)});var o=[];return i&&a.forEach(function(s){var A=t.counters[s.counter];o.push(s.counter),A||(A=t.counters[s.counter]=[]),A.push(s.reset)}),o},r}(),J_={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},q_={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E8={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},M8={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},SA=function(r,e,t,n,a,i){return rt?Kc(r,a,i.length>0):n.integers.reduce(function(o,s,A){for(;r>=s;)r-=s,o+=n.values[A];return o},"")+i},UP=function(r,e,t,n){var a="";do t||r--,a=n(r)+a,r/=e;while(r*e>=e);return a},Zt=function(r,e,t,n,a){var i=t-e+1;return(r<0?"-":"")+(UP(Math.abs(r),i,n,function(o){return jt(Math.floor(o%i)+e)})+a)},No=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return UP(Math.abs(r),n,!1,function(a){return e[Math.floor(a%n)]})+t},nl=1,Wi=2,Xi=4,cc=8,Ai=function(r,e,t,n,a,i){if(r<-9999||r>9999)return Kc(r,4,a.length>0);var o=Math.abs(r),s=a;if(o===0)return e[0]+s;for(var A=0;o>0&&A<=4;A++){var l=o%10;l===0&&pr(i,nl)&&s!==""?s=e[l]+s:l>1||l===1&&A===0||l===1&&A===1&&pr(i,Wi)||l===1&&A===1&&pr(i,Xi)&&r>100||l===1&&A>1&&pr(i,cc)?s=e[l]+(A>0?t[A-1]:"")+s:l===1&&A>0&&(s=t[A-1]+s),o=Math.floor(o/10)}return(r<0?n:"")+s},eS="十百千萬",tS="拾佰仟萬",rS="マイナス",_y="마이너스",Kc=function(r,e,t){var n=t?". ":"",a=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Zt(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return No(r,"〇一二三四五六七八九",a);case 6:return SA(r,1,3999,J_,3,n).toLowerCase();case 7:return SA(r,1,3999,J_,3,n);case 8:return Zt(r,945,969,!1,n);case 9:return Zt(r,97,122,!1,n);case 10:return Zt(r,65,90,!1,n);case 11:return Zt(r,1632,1641,!0,n);case 12:case 49:return SA(r,1,9999,q_,3,n);case 35:return SA(r,1,9999,q_,3,n).toLowerCase();case 13:return Zt(r,2534,2543,!0,n);case 14:case 30:return Zt(r,6112,6121,!0,n);case 15:return No(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return No(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Ai(r,"零一二三四五六七八九",eS,"負",a,Wi|Xi|cc);case 47:return Ai(r,"零壹貳參肆伍陸柒捌玖",tS,"負",a,nl|Wi|Xi|cc);case 42:return Ai(r,"零一二三四五六七八九",eS,"负",a,Wi|Xi|cc);case 41:return Ai(r,"零壹贰叁肆伍陆柒捌玖",tS,"负",a,nl|Wi|Xi|cc);case 26:return Ai(r,"〇一二三四五六七八九","十百千万",rS,a,0);case 25:return Ai(r,"零壱弐参四伍六七八九","拾百千万",rS,a,nl|Wi|Xi);case 31:return Ai(r,"영일이삼사오육칠팔구","십백천만",_y,i,nl|Wi|Xi);case 33:return Ai(r,"零一二三四五六七八九","十百千萬",_y,i,0);case 32:return Ai(r,"零壹貳參四五六七八九","拾百千",_y,i,nl|Wi|Xi);case 18:return Zt(r,2406,2415,!0,n);case 20:return SA(r,1,19999,M8,3,n);case 21:return Zt(r,2790,2799,!0,n);case 22:return Zt(r,2662,2671,!0,n);case 22:return SA(r,1,10999,E8,3,n);case 23:return No(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return No(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zt(r,3302,3311,!0,n);case 28:return No(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return No(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return Zt(r,3792,3801,!0,n);case 37:return Zt(r,6160,6169,!0,n);case 38:return Zt(r,4160,4169,!0,n);case 39:return Zt(r,2918,2927,!0,n);case 40:return Zt(r,1776,1785,!0,n);case 43:return Zt(r,3046,3055,!0,n);case 44:return Zt(r,3174,3183,!0,n);case 45:return Zt(r,3664,3673,!0,n);case 46:return Zt(r,3872,3881,!0,n);case 3:default:return Zt(r,48,57,!0,n)}},PP="data-html2canvas-ignore",nS=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new L8,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,a=D8(e,t);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=a.contentWindow,A=s.document,l=U8(a).then(function(){return jr(n,void 0,void 0,function(){var u,c;return Or(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(O8),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Q8(A)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,c)}).then(function(){return a})]:[2,a]}})})});return A.open(),A.write(k8(document.doctype)+""),R8(this.referenceElement.ownerDocument,i,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),l},r.prototype.createElementClone=function(e){if(Mw(e,2))debugger;if(DP(e))return this.createCanvasClone(e);if(Y_(e))return this.createVideoClone(e);if(Z_(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Uw(t)&&(Uw(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),j_(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Sy(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var i=e.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var A=s.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},r.prototype.appendChildNode=function(e,t,n){(!ll(t)||!I8(t)&&!t.hasAttribute(PP)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!ll(t)||!Z_(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var a=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(ll(i)&&QP(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(s){return a.appendChildNode(t,s,n)})}else this.appendChildNode(t,i,n)},r.prototype.cloneNode=function(e,t){if(EP(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ll(e)&&(Qw(e)||Jv(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Qw(a)&&(this.clonedReferenceElement=a),fC(a)&&V8(a);var A=this.counters.parse(new Q_(this.context,i)),l=this.resolvePseudoContent(e,a,o,Lc.BEFORE);j_(e)&&(t=!0),Y_(e)||this.cloneChildNodes(e,a,t),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(e,a,s,Lc.AFTER);return u&&a.appendChild(u),this.counters.pop(A),(i&&(this.options.copyStyles||Jv(e))&&!FP(e)||t)&&Sy(i,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(Qd(e)||Ud(e))&&(Qd(a)||Ud(a))&&(a.value=e.value),a}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,a){var i=this;if(n){var o=n.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Q_(this.context,n));var A=new xK(this.context,n),l=s.createElement("html2canvaspseudoelement");Sy(n,l),A.content.forEach(function(c){if(c.type===0)l.appendChild(s.createTextNode(c.value));else if(c.type===22){var f=s.createElement("img");f.src=c.value,f.style.opacity="1",l.appendChild(f)}else if(c.type===18){if(c.name==="attr"){var h=c.values.filter(Tt);h.length&&l.appendChild(s.createTextNode(e.getAttribute(h[0].value)||""))}else if(c.name==="counter"){var v=c.values.filter(_l),d=v[0],p=v[1];if(d&&Tt(d)){var g=i.counters.getCounterValue(d.value),y=p&&Tt(p)?Ew.parse(i.context,p.value):3;l.appendChild(s.createTextNode(Kc(g,y,!1)))}}else if(c.name==="counters"){var m=c.values.filter(_l),d=m[0],w=m[1],p=m[2];if(d&&Tt(d)){var B=i.counters.getCounterValues(d.value),C=p&&Tt(p)?Ew.parse(i.context,p.value):3,b=w&&w.type===0?w.value:"",_=B.map(function(I){return Kc(I,C,!1)}).join(b);l.appendChild(s.createTextNode(_))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(s.createTextNode(F_(A.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(F_(A.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(c.value))}}),l.className=Pw+" "+kw;var u=a===Lc.BEFORE?" "+Pw:" "+kw;return Jv(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Lc;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Lc||(Lc={}));var D8=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(PP,"true"),r.body.appendChild(t),t},F8=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},Q8=function(r){return Promise.all([].slice.call(r.images,0).map(F8))},U8=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),e(r))},50)}})},P8=["all","d","content"],Sy=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);P8.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},k8=function(r){var e="";return r&&(e+=""),e},R8=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},O8=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},H8=":before",N8=":after",Pw="___html2canvas___pseudoelement_before",kw="___html2canvas___pseudoelement_after",aS=`{ content: "" !important; display: none !important; }`,V8=function(r){G8(r,"."+Pw+H8+aS+` .`+kw+N8+aS)},G8=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},kP=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),z8=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Iy(e)||X8(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return jr(this,void 0,void 0,function(){var t,n,a,i,o=this;return Or(this,function(s){switch(s.label){case 0:return t=kP.isSameOrigin(e),n=!Ty(e)&&this._options.useCORS===!0&&Er.SUPPORT_CORS_IMAGES&&!t,a=!Ty(e)&&!t&&!Iy(e)&&typeof this._options.proxy=="string"&&Er.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Ty(e)&&!Iy(e)&&!a&&!n?[2]:(i=e,a?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,l){var u=new Image;u.onload=function(){return A(u)},u.onerror=l,(Y8(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return A(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(i,o){var s=Er.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(s==="text")i(A.response);else{var c=new FileReader;c.addEventListener("load",function(){return i(c.result)},!1),c.addEventListener("error",function(f){return o(f)},!1),c.readAsDataURL(A.response)}else o("Failed to proxy resource "+a+" with status code "+A.status)},A.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+a)}}A.send()})},r}(),$8=/^data:image\/svg\+xml/i,K8=/^data:image\/.*;base64,/i,W8=/^data:image\/.*/i,X8=function(r){return Er.SUPPORT_SVG_DRAWING||!Z8(r)},Ty=function(r){return W8.test(r)},Y8=function(r){return K8.test(r)},Iy=function(r){return r.substr(0,4)==="blob"},Z8=function(r){return r.substr(-3).toLowerCase()==="svg"||$8.test(r)},Pe=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),TA=function(r,e,t){return new Pe(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},yh=function(){function r(e,t,n,a){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=a}return r.prototype.subdivide=function(e,t){var n=TA(this.start,this.startControl,e),a=TA(this.startControl,this.endControl,e),i=TA(this.endControl,this.end,e),o=TA(n,a,e),s=TA(a,i,e),A=TA(o,s,e);return t?new r(this.start,n,o,A):new r(A,s,i,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Nn=function(r){return r.type===1},j8=function(){function r(e){var t=e.styles,n=e.bounds,a=lc(t.borderTopLeftRadius,n.width,n.height),i=a[0],o=a[1],s=lc(t.borderTopRightRadius,n.width,n.height),A=s[0],l=s[1],u=lc(t.borderBottomRightRadius,n.width,n.height),c=u[0],f=u[1],h=lc(t.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+A)/n.width),p.push((v+c)/n.width),p.push((o+d)/n.height),p.push((l+f)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,o/=g,A/=g,l/=g,c/=g,f/=g,v/=g,d/=g);var y=n.width-A,m=n.height-f,w=n.width-c,B=n.height-d,C=t.borderTopWidth,b=t.borderRightWidth,_=t.borderBottomWidth,x=t.borderLeftWidth,S=Ht(t.paddingTop,e.bounds.width),I=Ht(t.paddingRight,e.bounds.width),L=Ht(t.paddingBottom,e.bounds.width),T=Ht(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Gt(n.left+x/3,n.top+C/3,i-x/3,o-C/3,wt.TOP_LEFT):new Pe(n.left+x/3,n.top+C/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Gt(n.left+y,n.top+C/3,A-b/3,l-C/3,wt.TOP_RIGHT):new Pe(n.left+n.width-b/3,n.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||f>0?Gt(n.left+w,n.top+m,c-b/3,f-_/3,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?Gt(n.left+x/3,n.top+B,v-x/3,d-_/3,wt.BOTTOM_LEFT):new Pe(n.left+x/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Gt(n.left+x*2/3,n.top+C*2/3,i-x*2/3,o-C*2/3,wt.TOP_LEFT):new Pe(n.left+x*2/3,n.top+C*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Gt(n.left+y,n.top+C*2/3,A-b*2/3,l-C*2/3,wt.TOP_RIGHT):new Pe(n.left+n.width-b*2/3,n.top+C*2/3),this.bottomRightBorderDoubleInnerBox=c>0||f>0?Gt(n.left+w,n.top+m,c-b*2/3,f-_*2/3,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b*2/3,n.top+n.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?Gt(n.left+x*2/3,n.top+B,v-x*2/3,d-_*2/3,wt.BOTTOM_LEFT):new Pe(n.left+x*2/3,n.top+n.height-_*2/3),this.topLeftBorderStroke=i>0||o>0?Gt(n.left+x/2,n.top+C/2,i-x/2,o-C/2,wt.TOP_LEFT):new Pe(n.left+x/2,n.top+C/2),this.topRightBorderStroke=i>0||o>0?Gt(n.left+y,n.top+C/2,A-b/2,l-C/2,wt.TOP_RIGHT):new Pe(n.left+n.width-b/2,n.top+C/2),this.bottomRightBorderStroke=c>0||f>0?Gt(n.left+w,n.top+m,c-b/2,f-_/2,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=v>0||d>0?Gt(n.left+x/2,n.top+B,v-x/2,d-_/2,wt.BOTTOM_LEFT):new Pe(n.left+x/2,n.top+n.height-_/2),this.topLeftBorderBox=i>0||o>0?Gt(n.left,n.top,i,o,wt.TOP_LEFT):new Pe(n.left,n.top),this.topRightBorderBox=A>0||l>0?Gt(n.left+y,n.top,A,l,wt.TOP_RIGHT):new Pe(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||f>0?Gt(n.left+w,n.top+m,c,f,wt.BOTTOM_RIGHT):new Pe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?Gt(n.left,n.top+B,v,d,wt.BOTTOM_LEFT):new Pe(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Gt(n.left+x,n.top+C,Math.max(0,i-x),Math.max(0,o-C),wt.TOP_LEFT):new Pe(n.left+x,n.top+C),this.topRightPaddingBox=A>0||l>0?Gt(n.left+Math.min(y,n.width-b),n.top+C,y>n.width+b?0:Math.max(0,A-b),Math.max(0,l-C),wt.TOP_RIGHT):new Pe(n.left+n.width-b,n.top+C),this.bottomRightPaddingBox=c>0||f>0?Gt(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-_),Math.max(0,c-b),Math.max(0,f-_),wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b,n.top+n.height-_),this.bottomLeftPaddingBox=v>0||d>0?Gt(n.left+x,n.top+Math.min(B,n.height-_),Math.max(0,v-x),Math.max(0,d-_),wt.BOTTOM_LEFT):new Pe(n.left+x,n.top+n.height-_),this.topLeftContentBox=i>0||o>0?Gt(n.left+x+T,n.top+C+S,Math.max(0,i-(x+T)),Math.max(0,o-(C+S)),wt.TOP_LEFT):new Pe(n.left+x+T,n.top+C+S),this.topRightContentBox=A>0||l>0?Gt(n.left+Math.min(y,n.width+x+T),n.top+C+S,y>n.width+x+T?0:A-x+T,l-(C+S),wt.TOP_RIGHT):new Pe(n.left+n.width-(b+I),n.top+C+S),this.bottomRightContentBox=c>0||f>0?Gt(n.left+Math.min(w,n.width-(x+T)),n.top+Math.min(m,n.height+C+S),Math.max(0,c-(b+I)),f-(_+L),wt.BOTTOM_RIGHT):new Pe(n.left+n.width-(b+I),n.top+n.height-(_+L)),this.bottomLeftContentBox=v>0||d>0?Gt(n.left+x+T,n.top+B,Math.max(0,v-(x+T)),d-(_+L),wt.BOTTOM_LEFT):new Pe(n.left+x+T,n.top+n.height-(_+L))}return r}(),wt;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(wt||(wt={}));var Gt=function(r,e,t,n,a){var i=4*((Math.sqrt(2)-1)/3),o=t*i,s=n*i,A=r+t,l=e+n;switch(a){case wt.TOP_LEFT:return new yh(new Pe(r,l),new Pe(r,l-s),new Pe(A-o,e),new Pe(A,e));case wt.TOP_RIGHT:return new yh(new Pe(r,e),new Pe(r+o,e),new Pe(A,l-s),new Pe(A,l));case wt.BOTTOM_RIGHT:return new yh(new Pe(A,e),new Pe(A,e+s),new Pe(r+o,l),new Pe(r,l));case wt.BOTTOM_LEFT:default:return new yh(new Pe(A,l),new Pe(A-o,l),new Pe(r,e+s),new Pe(r,e))}},Pd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},J8=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},kd=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},q8=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),mh=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),eW=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),tW=function(r){return r.type===0},RP=function(r){return r.type===1},rW=function(r){return r.type===2},iS=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},nW=function(r,e,t,n,a){return r.map(function(i,o){switch(o){case 0:return i.add(e,t);case 1:return i.add(e+n,t);case 2:return i.add(e+n,t+a);case 3:return i.add(e,t+a)}return i})},OP=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),HP=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new j8(this.container),this.container.styles.opacity<1&&this.effects.push(new eW(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new q8(n,a,i))}if(this.container.styles.overflowX!==0){var o=Pd(this.curves),s=kd(this.curves);iS(o,s)?this.effects.push(new mh(o,6)):(this.effects.push(new mh(o,2)),this.effects.push(new mh(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(A){return!RP(A)});if(t||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=Pd(n.curves),s=kd(n.curves);iS(o,s)||a.unshift(new mh(s,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(A){return pr(A.target,e)})},r}(),Rw=function(r,e,t,n){r.container.elements.forEach(function(a){var i=pr(a.flags,4),o=pr(a.flags,2),s=new HP(a,r);pr(a.styles.display,2048)&&n.push(s);var A=pr(a.flags,8)?[]:n;if(i||o){var l=i||a.styles.isPositioned()?t:e,u=new OP(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var c=a.styles.zIndex.order;if(c<0){var f=0;l.negativeZIndex.some(function(v,d){return c>v.element.container.styles.zIndex.order?(f=d,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(c>0){var h=0;l.positiveZIndex.some(function(v,d){return c>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Rw(s,u,i?u:t,A)}else a.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Rw(s,e,t,A);pr(a.flags,8)&&NP(a,A)})},NP=function(r,e){for(var t=r instanceof Fw?r.start:1,n=r instanceof Fw?r.reversed:!1,a=0;a"u"?r[0]:t},cW=function(r,e,t,n,a){var i=e[0],o=e[1],s=t[0],A=t[1];switch(r){case 2:return[new Pe(Math.round(n.left),Math.round(n.top+o)),new Pe(Math.round(n.left+n.width),Math.round(n.top+o)),new Pe(Math.round(n.left+n.width),Math.round(A+n.top+o)),new Pe(Math.round(n.left),Math.round(A+n.top+o))];case 3:return[new Pe(Math.round(n.left+i),Math.round(n.top)),new Pe(Math.round(n.left+i+s),Math.round(n.top)),new Pe(Math.round(n.left+i+s),Math.round(n.height+n.top)),new Pe(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Pe(Math.round(n.left+i),Math.round(n.top+o)),new Pe(Math.round(n.left+i+s),Math.round(n.top+o)),new Pe(Math.round(n.left+i+s),Math.round(n.top+o+A)),new Pe(Math.round(n.left+i),Math.round(n.top+o+A))];default:return[new Pe(Math.round(a.left),Math.round(a.top)),new Pe(Math.round(a.left+a.width),Math.round(a.top)),new Pe(Math.round(a.left+a.width),Math.round(a.height+a.top)),new Pe(Math.round(a.left),Math.round(a.height+a.top))]}},fW="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sS="Hidden Text",hW=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),a.src=fW,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(sS)),n.appendChild(i),n.appendChild(a);var s=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(sS)),n.style.lineHeight="normal",a.style.verticalAlign="super";var A=a.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:A}},r.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),GP=function(){function r(e,t){this.context=e,this.options=t}return r}(),vW=1e4,dW=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new hW(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(a){return n.applyEffect(a)})},e.prototype.applyEffect=function(t){this.ctx.save(),rW(t)&&(this.ctx.globalAlpha=t.opacity),tW(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),RP(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return jr(this,void 0,void 0,function(){var n;return Or(this,function(a){switch(a.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return jr(this,void 0,void 0,function(){return Or(this,function(n){switch(n.label){case 0:if(pr(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,a){var i=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+a);else{var o=uC(t.text);o.reduce(function(s,A){return i.ctx.fillText(A,s,t.bounds.top+a),s+i.ctx.measureText(A).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=wW(t.fontFamily).join(", "),i=Lf(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,i,a].join(" "),a,i]},e.prototype.renderTextNode=function(t,n){return jr(this,void 0,void 0,function(){var a,i,o,s,A,l,u,c,f=this;return Or(this,function(h){return a=this.createFontStyle(n),i=a[0],o=a[1],s=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(o,s),l=A.baseline,u=A.middle,c=n.paintOrder,t.textBounds.forEach(function(v){c.forEach(function(d){switch(d){case 0:f.ctx.fillStyle=wr(n.color),f.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=wr(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=wr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:f.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:f.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(f.ctx.strokeStyle=wr(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,a){if(a&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Rd(t),o=kd(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return jr(this,void 0,void 0,function(){var n,a,i,o,s,A,y,y,l,u,c,f,w,h,v,B,d,p,g,y,m,w,B;return Or(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,a=t.curves,i=n.styles,o=0,s=n.textNodes,C.label=1;case 1:return o0&&M>0&&(_=i.ctx.createPattern(B,"repeat"),i.renderRepeat(S,_,P,E))):r$(u)&&(x=Ly(t,n,[null,null,null]),S=x[0],I=x[1],L=x[2],T=x[3],M=x[4],R=u.position.length===0?[sC]:u.position,P=Ht(R[0],T),E=Ht(R[R.length-1],M),k=jz(u,P,E,T,M),D=k[0],U=k[1],D>0&&U>0&&(O=i.ctx.createRadialGradient(I+P,L+E,0,I+P,L+E,D),L_(u.stops,D*2).forEach(function(re){return O.addColorStop(re.stop,wr(re.color))}),i.path(S),i.ctx.fillStyle=O,D!==U?(G=t.bounds.left+.5*t.bounds.width,X=t.bounds.top+.5*t.bounds.height,te=U/D,ne=1/te,i.ctx.save(),i.ctx.translate(G,X),i.ctx.transform(1,0,0,te,0,0),i.ctx.translate(-G,-X),i.ctx.fillRect(I,ne*(L-X)+X,T,M*ne),i.ctx.restore()):i.ctx.fill())),ye.label=6;case 6:return n--,[2]}})},i=this,o=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,a,i,o){return jr(this,void 0,void 0,function(){var s,A,l,u,c,f,h,v,d,p,g,y,m,w,B,C,B,C;return Or(this,function(b){return this.ctx.save(),s=sW(i,a),A=oS(i,a),o===2&&(this.path(A),this.ctx.clip()),Nn(A[0])?(l=A[0].start.x,u=A[0].start.y):(l=A[0].x,u=A[0].y),Nn(A[1])?(c=A[1].end.x,f=A[1].end.y):(c=A[1].x,f=A[1].y),a===0||a===2?h=Math.abs(l-c):h=Math.abs(u-f),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(A.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,o===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m){let n=e*Math.PI/180;const a=t*Math.PI/180;n=-n;const i=r*Math.cos(a)*Math.cos(n),o=r*Math.sin(a),s=r*Math.cos(a)*Math.sin(n);return new Ot(i,o,s)},AS=r=>{const e=new aC(1,1),t=r.textures.aperture,n=new Bs({color:15310696,map:t,transparent:!0,opacity:1,depthWrite:!1}),a=new Rr(e,n),i=Sl(r.radius*1.001,r.lon,r.lat),o=r.radius*.08;a.scale.set(o,o,o),a.userData.size=o,a.userData.scale=Math.random()*1,a.position.set(i.x,i.y,i.z);const s=new Ot(i.x,i.y,i.z).normalize(),A=new Ot(0,0,1);return a.quaternion.setFromUnitVectors(A,s),a},lS=r=>{const e=r.radius*.3,t=new aC(r.radius*.05,e);t.rotateX(Math.PI/2),t.translate(0,0,e/2);const n=new Bs({map:r.textures.light_column,color:r.index==0?r.punctuation.lightColumn.startColor:r.punctuation.lightColumn.endColor,transparent:!0,side:RU,depthWrite:!1}),a=new Rr(t,n),i=new ac;i.add(a,a.clone().rotateZ(Math.PI/2));const o=Sl(r.radius,r.lon,r.lat);i.position.set(o.x,o.y,o.z);const s=new Ot(o.x,o.y,o.z).normalize(),A=new Ot(0,0,1);return i.quaternion.setFromUnitVectors(A,s),i},uS=r=>{const e=new aC(1,1),t=new Rr(e,r.material),n=Sl(r.radius*1.001,r.lon,r.lat),a=r.radius*.05;t.scale.set(a,a,a),t.position.set(n.x,n.y,n.z);const i=new Ot(n.x,n.y,n.z).normalize(),o=new Ot(0,0,1);return t.quaternion.setFromUnitVectors(o,i),t},IW=r=>{const e=[];for(let t=0;t<2*Math.PI-.1;t+=2*Math.PI/(r.number||100))e.push([parseFloat((Math.cos(t)*(r.radius||10)).toFixed(2)),0,parseFloat((Math.sin(t)*(r.radius||10)).toFixed(2))]);return r.closed&&e.push(e[0]),e},LW=r=>{const e=[];r.pointList.forEach(a=>e.push(new Ot(a[0],a[1],a[2])));const t=new FV(e),n=new QV(t,r.number||50,r.radius||1,r.radialSegments);return new Rr(n,r.material)};function EW(r,e,t,n){const a=new iC,o=new OU(0,0,r,e,t,!1).getSpacedPoints(100);a.setFromPoints(o);const s=[];for(let h=0;h time && vp.y < time + 20.0) { float t = smoothstep(0.0, 0.8, (1.0 - abs(0.5 - (vp.y - time) / 20.0)) / 3.0 ); gl_FragColor = mix(gl_FragColor, vec4(glowColor, 1.0), t * t ); } gl_FragColor = mix(gl_FragColor, vec4( glowColor, 1.0 ), a); float b = 0.8; gl_FragColor = gl_FragColor + texture2D( map, vUv ); } `;class RW{constructor(e){ut(this,"group");ut(this,"earthGroup");ut(this,"around");ut(this,"aroundPoints");ut(this,"options");ut(this,"uniforms");ut(this,"timeValue");ut(this,"earth");ut(this,"punctuationMaterial");ut(this,"markupPoint");ut(this,"waveMeshArr");ut(this,"circleLineList");ut(this,"circleList");ut(this,"x");ut(this,"n");ut(this,"isRotation");ut(this,"flyLineArcGroup");this.options=e,this.group=new ac,this.group.name="group",this.group.scale.set(0,0,0),this.earthGroup=new ac,this.group.add(this.earthGroup),this.earthGroup.name="EarthGroup",this.markupPoint=new ac,this.markupPoint.name="markupPoint",this.waveMeshArr=[],this.circleLineList=[],this.circleList=[],this.x=0,this.n=0,this.isRotation=this.options.earth.isRotation,this.timeValue=100,this.uniforms={glowColor:{value:new gl(840171)},scale:{type:"f",value:-1},bias:{type:"f",value:1},power:{type:"f",value:3.3},time:{type:"f",value:this.timeValue},isHover:{value:!1},map:{value:null}}}async init(){return new Promise(async e=>{this.createEarth(),this.createStars(),this.createEarthGlow(),this.createEarthAperture(),await this.createMarkupPoint(),this.createFlyLine(),this.show(),e()})}async updateData(){return new Promise(async e=>{if(this.flyLineArcGroup){const n=[...this.flyLineArcGroup.children];for(const a of n)this.flyLineArcGroup.remove(a),a instanceof Rr&&(a.geometry&&a.geometry.dispose(),a.material&&(Array.isArray(a.material)?a.material:[a.material]).forEach(o=>{o.dispose&&o.dispose()}))}const t=[...this.markupPoint.children];for(const n of t)this.markupPoint.remove(n),n instanceof Rr&&(n.geometry&&n.geometry.dispose(),n.material&&(Array.isArray(n.material)?n.material:[n.material]).forEach(i=>{i.dispose&&i.dispose()}));await this.createMarkupPoint(),this.createFlyLine(),this.show(),e()})}createEarth(){const e=new CA(this.options.earth.radius,50,50),t=new CA(this.options.earth.radius+10,60,60),n=new cw({color:8519679,transparent:!0,sizeAttenuation:!0,opacity:.1,vertexColors:!1,size:.01}),a=new fw(t,n);this.earthGroup.add(a),this.uniforms.map.value=this.options.textures.earth;const i=new n_({uniforms:this.uniforms,vertexShader:PW,fragmentShader:kW});i.needsUpdate=!0,this.earth=new Rr(e,i),this.earth.name="earth",this.earthGroup.add(this.earth)}createStars(){const e=[],t=[];for(let i=0;i<500;i++){const o=new Ot;o.x=800*Math.random()-300,o.y=800*Math.random()-300,o.z=800*Math.random()-300,e.push(o.x,o.y,o.z),t.push(new gl(1,1,1))}this.around=new iC,this.around.setAttribute("position",new Id(new Float32Array(e),3));const n=t.flatMap(i=>[i.r,i.g,i.b]);this.around.setAttribute("color",new Id(new Float32Array(n),3));const a=new cw({size:2,sizeAttenuation:!0,color:5076687,transparent:!0,opacity:1,map:this.options.textures.gradient});this.aroundPoints=new fw(this.around,a),this.aroundPoints.name="星空",this.aroundPoints.scale.set(1,1,1),this.group.add(this.aroundPoints)}createEarthGlow(){const e=this.options.earth.radius,t=this.options.textures.glow,n=new a_({map:t,color:4427985,transparent:!0,opacity:.7,depthWrite:!1}),a=new i_(n);a.scale.set(e*3,e*3,1),this.earthGroup.add(a)}createEarthAperture(){const e=["varying vec3 vVertexWorldPosition;","varying vec3 vVertexNormal;","varying vec4 vFragColor;","void main(){"," vVertexNormal = normalize(normalMatrix * normal);"," vVertexWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;"," // set gl_Position"," gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);","}"].join(` `),t={uniforms:{coeficient:{type:"f",value:1},power:{type:"f",value:3},glowColor:{type:"c",value:new gl(4427985)}},vertexShader:e,fragmentShader:["uniform vec3 glowColor;","uniform float coeficient;","uniform float power;","varying vec3 vVertexNormal;","varying vec3 vVertexWorldPosition;","varying vec4 vFragColor;","void main(){"," vec3 worldCameraToVertex = vVertexWorldPosition - cameraPosition;"," vec3 viewCameraToVertex = (viewMatrix * vec4(worldCameraToVertex, 0.0)).xyz;"," viewCameraToVertex= normalize(viewCameraToVertex);"," float intensity = pow(coeficient + dot(vVertexNormal, viewCameraToVertex), power);"," gl_FragColor = vec4(glowColor, intensity);","}"].join(` `)},n=new n_({uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,blending:kV,transparent:!0,depthWrite:!1}),a=new CA(this.options.earth.radius+0,50,50),i=new Rr(a,n);this.earthGroup.add(i)}async createMarkupPoint(){await Promise.all(this.options.data.map(async e=>{const t=this.options.earth.radius,n=e.startArray.E,a=e.startArray.N;this.punctuationMaterial=new Bs({color:this.options.punctuation.circleColor,map:this.options.textures.label,transparent:!0,depthWrite:!1});const i=uS({radius:t,lon:n,lat:a,material:this.punctuationMaterial});i.userData={type:"markup",city:e.startArray},this.markupPoint.add(i);const o=lS({radius:this.options.earth.radius,lon:n,lat:a,index:0,textures:this.options.textures,punctuation:this.options.punctuation});o.userData={type:"markup",city:e.startArray},this.markupPoint.add(o);const s=AS({radius:t,lon:n,lat:a,textures:this.options.textures});this.markupPoint.add(s),this.waveMeshArr.push(s),await Promise.all(e.endArray.map(A=>{const l=A.E,u=A.N,c=uS({radius:t,lon:l,lat:u,material:this.punctuationMaterial});c.userData={type:"markup",city:A},this.markupPoint.add(c);const f=lS({radius:this.options.earth.radius,lon:l,lat:u,index:1,textures:this.options.textures,punctuation:this.options.punctuation});f.userData={type:"markup",city:A};const h=AS({radius:t,lon:l,lat:u,textures:this.options.textures});this.markupPoint.add(h),this.waveMeshArr.push(h)})),this.earthGroup.add(this.markupPoint)}))}async createSpriteLabel(){await Promise.all(this.options.data.map(async e=>{let t=[];t.push(e.startArray),t=t.concat(...e.endArray),await Promise.all(t.map(async n=>{const a=Sl(this.options.earth.radius*1.001,n.E,n.N),i=`
${n.name}
`,o=document.getElementById("html2canvas");o&&n.name&&(o.innerHTML=i);const s={backgroundColor:null,scale:6,dpi:window.devicePixelRatio},l=(await _W(document.getElementById("html2canvas"),s)).toDataURL("image/png"),u=new kU().load(l),c=new a_({map:u,transparent:!0}),f=new i_(c),h=5+(n.name.length-2)*2;f.scale.set(h,3,1),f.position.set(a.x*1.1,a.y*1.1,a.z*1.1),n.name&&this.earth.add(f)}))}))}createAnimateCircle(){const e=IW({radius:this.options.earth.radius+15,number:150,closed:!0}),t=new Bs({color:"#0c3172",transparent:!0,opacity:.4,side:RU}),n=LW({pointList:e,material:t,number:100,radius:.1});this.earthGroup.add(n);const a=n.clone();a.scale.set(1.2,1.2,1.2),a.rotateZ(Math.PI/6),this.earthGroup.add(a);const i=n.clone();i.scale.set(.8,.8,.8),i.rotateZ(-Math.PI/6),this.earthGroup.add(i);const o=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#e0b187"})),s=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#628fbb"})),A=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#806bdf"}));this.circleLineList.push(n,a,i),o.name=s.name=A.name="卫星";for(let l=0;l{e.endArray.forEach(t=>{const n=MW(this.options.earth.radius,e.startArray.E,e.startArray.N,t.E,t.N,this.options.flyLine);this.flyLineArcGroup.add(n),this.flyLineArcGroup.userData.flyLineArray.push(n.userData.flyLine)})})}show(){RV.to(this.group.scale,{x:1,y:1,z:1,duration:2,ease:"Quadratic"})}render(){var e,t;(t=(e=this.flyLineArcGroup)==null?void 0:e.userData.flyLineArray)==null||t.forEach(n=>{n.rotation.z+=this.options.flyLine.speed,n.rotation.z>=n.flyEndAngle&&(n.rotation.z=0)}),this.isRotation&&(this.earthGroup.rotation.y+=this.options.earth.rotateSpeed),this.circleLineList.forEach(n=>{n.rotateY(this.options.satellite.rotateSpeed)}),this.uniforms.time.value=this.uniforms.time.value<-this.timeValue?this.timeValue:this.uniforms.time.value-1,this.waveMeshArr.length&&this.waveMeshArr.forEach(n=>{n.userData.scale+=.007,n.scale.set(n.userData.size*n.userData.scale,n.userData.size*n.userData.scale,n.userData.size*n.userData.scale),n.userData.scale<=1.5?n.material.opacity=(n.userData.scale-1)*2:n.userData.scale>1.5&&n.userData.scale<=2?n.material.opacity=1-(n.userData.scale-1.5)*2:n.userData.scale=1})}destroy(){if(this.earth&&(this.earth.geometry&&this.earth.geometry.dispose(),this.earth.material&&this.earth.material.dispose&&this.earth.material.dispose()),this.aroundPoints&&(this.aroundPoints.geometry&&this.aroundPoints.geometry.dispose(),this.aroundPoints.material&&this.aroundPoints.material.dispose&&this.aroundPoints.material.dispose()),this.earthGroup.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.flyLineArcGroup&&this.flyLineArcGroup.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.markupPoint.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.waveMeshArr.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.circleLineList.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.earth&&this.earth.material&&this.earth.material.uniforms){const e=this.earth.material;e.uniforms.map&&e.uniforms.map.value&&e.uniforms.map.value.dispose()}}}var zP={},hC={};hC.__esModule=!0;var OW=function(){function r(){this.handlers={}}return r.prototype.on=function(e,t){var n=this.handlers[e];return n||(n=[],this.handlers[e]=n),this.handlers[e].push(t),t},r.prototype.off=function(e,t){var n=this.handlers[e];if(t){var a=n.indexOf(t);a!==-1&&this.handlers[e].splice(a,1)}},r.prototype.offAll=function(){this.handlers={}},r.prototype.emit=function(e){for(var t=[],n=1;n{this.controls.update(),this.earth&&this.earth.render(),this.renderer.render(this.scene,this.camera),requestAnimationFrame(this.tick)});this.sizes=new HW({dom:t.dom}),this.res=new eG(()=>{this.earth=new RW({data:[{startArray:{name:"即途交付中心",E:113.849837,N:34.702114},endArray:t.data.map(a=>({name:"",E:a.latlng.split(",")[0],N:a.latlng.split(",")[1]}))}],dom:t.dom,textures:this.res.textures,earth:{radius:50,rotateSpeed:.001,isRotation:!0},satellite:{show:!0,rotateSpeed:.002,size:0,number:3},punctuation:{circleColor:840171,lightColumn:{startColor:840171,endColor:43775}},flyLine:{color:15969910,speed:.02,flyLineColor:16742164}}),console.log(this.earth),this.earth.init().then(()=>{this.scene.add(this.earth.earthGroup),this.earth.earthGroup.position.y=-999,setTimeout(()=>{this.startEntranceAnimation()},100),this.tick()});const n=195;this.earth.earthGroup.rotation.y=-n*Math.PI/180})}updateEarthData(t){this.earth.options.data[0].endArray=t.map(n=>({name:n.cityName,E:n.latlng.split(",")[0],N:n.latlng.split(",")[1]})),this.earth.updateData()}startEntranceAnimation(){if(!this.earth||!this.earth.earthGroup)return;this.stopAnimation();const t=Date.now(),n=3500,a=250,i=200,o=-80,s=.4,A=100,l=-60;this.camera.position.set(i,o,a),this.camera.lookAt(0,0,0),this.earth.earthGroup.position.set(A,l,0),this.earth.earthGroup.scale.setScalar(s);const u=f=>1-Math.pow(1-f,4),c=()=>{const f=Date.now()-t,h=Math.min(f/n,1),v=u(h),d=i*(1-v),p=o*(1-v),g=a*(1-v)+100*v;this.camera.position.set(d,p,g),this.camera.lookAt(0,0,0);const y=A*(1-v),m=l+(-30-l)*v;this.earth.earthGroup.position.set(y,m,0);const w=s+(1-s)*v;this.earth.earthGroup.scale.setScalar(w),h<1?this.animationId=requestAnimationFrame(c):(this.animationId=null,console.log("入场动画完成"))};c()}startAutoMoveDown(t=.5){this.isAnimating&&this.currentDirection==="down"||(this.stopAnimation(),this.animationSpeed=t,this.currentDirection="down",this.isAnimating=!0,this.animate())}startAutoMoveUp(t=.5){this.isAnimating&&this.currentDirection==="up"||(this.stopAnimation(),this.animationSpeed=t,this.currentDirection="up",this.isAnimating=!0,this.animate())}stopAnimation(){this.isAnimating=!1,this.currentDirection="none",this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}animate(){if(!this.isAnimating||!this.earth||!this.earth.earthGroup){this.stopAnimation();return}const t=16,n=this.animationSpeed*t/1e3;this.currentDirection==="down"?this.earth.earthGroup.position.y-=n:this.currentDirection==="up"&&(this.earth.earthGroup.position.y+=n),this.animationId=requestAnimationFrame(()=>this.animate())}moveToPosition(t,n=3e3){if(!this.earth||!this.earth.earthGroup)return;this.stopAnimation();const a=this.earth.earthGroup.position.y,i=Date.now(),o=A=>A<.5?4*A*A*A:(A-1)*(2*A-2)*(2*A-2)+1,s=()=>{const A=Date.now()-i,l=Math.min(A/n,1),u=o(l);this.earth.earthGroup.position.y=a+t*u,l<1?this.animationId=requestAnimationFrame(s):this.animationId=null};s()}resetPosition(){this.earth&&this.earth.earthGroup&&this.moveToPosition(-this.earth.earthGroup.position.y,2e3)}moveDown(t){this.earth&&this.earth.earthGroup&&(this.earth.earthGroup.position.y-=t)}setVerticalPosition(t){this.earth&&this.earth.earthGroup&&(this.earth.earthGroup.position.y=t)}getVerticalPosition(){return this.earth&&this.earth.earthGroup?this.earth.earthGroup.position.y:0}destroy(){this.stopAnimation(),cancelAnimationFrame(this.tick),this.earth&&this.earth.destroy(),this.res&&this.res.destroy(),this.sizes&&this.sizes.destroy(),super.destroy()}}function $P(r,e){return function(){return r.apply(e,arguments)}}const{toString:VW}=Object.prototype,{getPrototypeOf:vC}=Object,{iterator:Ag,toStringTag:KP}=Symbol,lg=(r=>e=>{const t=VW.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ya=r=>(r=r.toLowerCase(),e=>lg(e)===r),ug=r=>e=>typeof e===r,{isArray:$l}=Array,Tl=ug("undefined");function Ef(r){return r!==null&&!Tl(r)&&r.constructor!==null&&!Tl(r.constructor)&&fn(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const WP=ya("ArrayBuffer");function GW(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&WP(r.buffer),e}const zW=ug("string"),fn=ug("function"),XP=ug("number"),Mf=r=>r!==null&&typeof r=="object",$W=r=>r===!0||r===!1,qv=r=>{if(lg(r)!=="object")return!1;const e=vC(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(KP in r)&&!(Ag in r)},KW=r=>{if(!Mf(r)||Ef(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},WW=ya("Date"),XW=ya("File"),YW=ya("Blob"),ZW=ya("FileList"),jW=r=>Mf(r)&&fn(r.pipe),JW=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||fn(r.append)&&((e=lg(r))==="formdata"||e==="object"&&fn(r.toString)&&r.toString()==="[object FormData]"))},qW=ya("URLSearchParams"),[e6,t6,r6,n6]=["ReadableStream","Request","Response","Headers"].map(ya),a6=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Df(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,a;if(typeof r!="object"&&(r=[r]),$l(r))for(n=0,a=r.length;n0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Is=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ZP=r=>!Tl(r)&&r!==Is;function Ow(){const{caseless:r,skipUndefined:e}=ZP(this)&&this||{},t={},n=(a,i)=>{const o=r&&YP(t,i)||i;qv(t[o])&&qv(a)?t[o]=Ow(t[o],a):qv(a)?t[o]=Ow({},a):$l(a)?t[o]=a.slice():(!e||!Tl(a))&&(t[o]=a)};for(let a=0,i=arguments.length;a(Df(e,(a,i)=>{t&&fn(a)?r[i]=$P(a,t):r[i]=a},{allOwnKeys:n}),r),o6=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),s6=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},A6=(r,e,t,n)=>{let a,i,o;const s={};if(e=e||{},r==null)return e;do{for(a=Object.getOwnPropertyNames(r),i=a.length;i-- >0;)o=a[i],(!n||n(o,r,e))&&!s[o]&&(e[o]=r[o],s[o]=!0);r=t!==!1&&vC(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},l6=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},u6=r=>{if(!r)return null;if($l(r))return r;let e=r.length;if(!XP(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},c6=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&vC(Uint8Array)),f6=(r,e)=>{const n=(r&&r[Ag]).call(r);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(r,i[0],i[1])}},h6=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},v6=ya("HTMLFormElement"),d6=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),fS=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),p6=ya("RegExp"),jP=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Df(t,(a,i)=>{let o;(o=e(a,i,r))!==!1&&(n[i]=o||a)}),Object.defineProperties(r,n)},g6=r=>{jP(r,(e,t)=>{if(fn(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(fn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},y6=(r,e)=>{const t={},n=a=>{a.forEach(i=>{t[i]=!0})};return $l(r)?n(r):n(String(r).split(e)),t},m6=()=>{},w6=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function B6(r){return!!(r&&fn(r.append)&&r[KP]==="FormData"&&r[Ag])}const C6=r=>{const e=new Array(10),t=(n,a)=>{if(Mf(n)){if(e.indexOf(n)>=0)return;if(Ef(n))return n;if(!("toJSON"in n)){e[a]=n;const i=$l(n)?[]:{};return Df(n,(o,s)=>{const A=t(o,a+1);!Tl(A)&&(i[s]=A)}),e[a]=void 0,i}}return n};return t(r,0)},b6=ya("AsyncFunction"),x6=r=>r&&(Mf(r)||fn(r))&&fn(r.then)&&fn(r.catch),JP=((r,e)=>r?setImmediate:e?((t,n)=>(Is.addEventListener("message",({source:a,data:i})=>{a===Is&&i===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Is.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",fn(Is.postMessage)),_6=typeof queueMicrotask<"u"?queueMicrotask.bind(Is):typeof process<"u"&&process.nextTick||JP,S6=r=>r!=null&&fn(r[Ag]),pe={isArray:$l,isArrayBuffer:WP,isBuffer:Ef,isFormData:JW,isArrayBufferView:GW,isString:zW,isNumber:XP,isBoolean:$W,isObject:Mf,isPlainObject:qv,isEmptyObject:KW,isReadableStream:e6,isRequest:t6,isResponse:r6,isHeaders:n6,isUndefined:Tl,isDate:WW,isFile:XW,isBlob:YW,isRegExp:p6,isFunction:fn,isStream:jW,isURLSearchParams:qW,isTypedArray:c6,isFileList:ZW,forEach:Df,merge:Ow,extend:i6,trim:a6,stripBOM:o6,inherits:s6,toFlatObject:A6,kindOf:lg,kindOfTest:ya,endsWith:l6,toArray:u6,forEachEntry:f6,matchAll:h6,isHTMLForm:v6,hasOwnProperty:fS,hasOwnProp:fS,reduceDescriptors:jP,freezeMethods:g6,toObjectSet:y6,toCamelCase:d6,noop:m6,toFiniteNumber:w6,findKey:YP,global:Is,isContextDefined:ZP,isSpecCompliantForm:B6,toJSONObject:C6,isAsyncFn:b6,isThenable:x6,setImmediate:JP,asap:_6,isIterable:S6};function tt(r,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}pe.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const qP=tt.prototype,ek={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{ek[r]={value:r}});Object.defineProperties(tt,ek);Object.defineProperty(qP,"isAxiosError",{value:!0});tt.from=(r,e,t,n,a,i)=>{const o=Object.create(qP);pe.toFlatObject(r,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const s=r&&r.message?r.message:"Error",A=e==null&&r?r.code:e;return tt.call(o,s,A,t,n,a),r&&o.cause==null&&Object.defineProperty(o,"cause",{value:r,configurable:!0}),o.name=r&&r.name||"Error",i&&Object.assign(o,i),o};const T6=null;function Hw(r){return pe.isPlainObject(r)||pe.isArray(r)}function tk(r){return pe.endsWith(r,"[]")?r.slice(0,-2):r}function hS(r,e,t){return r?r.concat(e).map(function(a,i){return a=tk(a),!t&&i?"["+a+"]":a}).join(t?".":""):e}function I6(r){return pe.isArray(r)&&!r.some(Hw)}const L6=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function cg(r,e,t){if(!pe.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=pe.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!pe.isUndefined(p[d])});const n=t.metaTokens,a=t.visitor||u,i=t.dots,o=t.indexes,A=(t.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(e);if(!pe.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(pe.isDate(v))return v.toISOString();if(pe.isBoolean(v))return v.toString();if(!A&&pe.isBlob(v))throw new tt("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(v)||pe.isTypedArray(v)?A&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,d,p){let g=v;if(v&&!p&&typeof v=="object"){if(pe.endsWith(d,"{}"))d=n?d:d.slice(0,-2),v=JSON.stringify(v);else if(pe.isArray(v)&&I6(v)||(pe.isFileList(v)||pe.endsWith(d,"[]"))&&(g=pe.toArray(v)))return d=tk(d),g.forEach(function(m,w){!(pe.isUndefined(m)||m===null)&&e.append(o===!0?hS([d],w,i):o===null?d:d+"[]",l(m))}),!1}return Hw(v)?!0:(e.append(hS(p,d,i),l(v)),!1)}const c=[],f=Object.assign(L6,{defaultVisitor:u,convertValue:l,isVisitable:Hw});function h(v,d){if(!pe.isUndefined(v)){if(c.indexOf(v)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(v),pe.forEach(v,function(g,y){(!(pe.isUndefined(g)||g===null)&&a.call(e,g,pe.isString(y)?y.trim():y,d,f))===!0&&h(g,d?d.concat(y):[y])}),c.pop()}}if(!pe.isObject(r))throw new TypeError("data must be an object");return h(r),e}function vS(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function dC(r,e){this._pairs=[],r&&cg(r,this,e)}const rk=dC.prototype;rk.append=function(e,t){this._pairs.push([e,t])};rk.toString=function(e){const t=e?function(n){return e.call(this,n,vS)}:vS;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function E6(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nk(r,e,t){if(!e)return r;const n=t&&t.encode||E6;pe.isFunction(t)&&(t={serialize:t});const a=t&&t.serialize;let i;if(a?i=a(e,t):i=pe.isURLSearchParams(e)?e.toString():new dC(e,t).toString(n),i){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class M6{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(n){n!==null&&e(n)})}}const dS=M6,ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},D6=typeof URLSearchParams<"u"?URLSearchParams:dC,F6=typeof FormData<"u"?FormData:null,Q6=typeof Blob<"u"?Blob:null,U6={isBrowser:!0,classes:{URLSearchParams:D6,FormData:F6,Blob:Q6},protocols:["http","https","file","blob","url","data"]},pC=typeof window<"u"&&typeof document<"u",Nw=typeof navigator=="object"&&navigator||void 0,P6=pC&&(!Nw||["ReactNative","NativeScript","NS"].indexOf(Nw.product)<0),k6=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),R6=pC&&window.location.href||"http://localhost",O6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pC,hasStandardBrowserEnv:P6,hasStandardBrowserWebWorkerEnv:k6,navigator:Nw,origin:R6},Symbol.toStringTag,{value:"Module"})),Gr={...O6,...U6};function H6(r,e){return cg(r,new Gr.classes.URLSearchParams,{visitor:function(t,n,a,i){return Gr.isNode&&pe.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function N6(r){return pe.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function V6(r){const e={},t=Object.keys(r);let n;const a=t.length;let i;for(n=0;n=t.length;return o=!o&&pe.isArray(a)?a.length:o,A?(pe.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!pe.isObject(a[o]))&&(a[o]=[]),e(t,n,a[o],i)&&pe.isArray(a[o])&&(a[o]=V6(a[o])),!s)}if(pe.isFormData(r)&&pe.isFunction(r.entries)){const t={};return pe.forEachEntry(r,(n,a)=>{e(N6(n),a,t,0)}),t}return null}function G6(r,e,t){if(pe.isString(r))try{return(e||JSON.parse)(r),pe.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const gC={transitional:ak,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=pe.isObject(e);if(i&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return a?JSON.stringify(ik(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e)||pe.isReadableStream(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return H6(e,this.formSerializer).toString();if((s=pe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return cg(s?{"files[]":e}:e,A&&new A,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),G6(e)):e}],transformResponse:[function(e){const t=this.transitional||gC.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(pe.isResponse(e)||pe.isReadableStream(e))return e;if(e&&pe.isString(e)&&(n&&!this.responseType||a)){const o=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gr.classes.FormData,Blob:Gr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],r=>{gC.headers[r]={}});const yC=gC,z6=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$6=r=>{const e={};let t,n,a;return r&&r.split(` `).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&z6[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},pS=Symbol("internals");function vu(r){return r&&String(r).trim().toLowerCase()}function ed(r){return r===!1||r==null?r:pe.isArray(r)?r.map(ed):String(r)}function K6(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const W6=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ey(r,e,t,n,a){if(pe.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!pe.isString(e)){if(pe.isString(n))return e.indexOf(n)!==-1;if(pe.isRegExp(n))return n.test(e)}}function X6(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Y6(r,e){const t=pe.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(a,i,o){return this[n].call(this,e,a,i,o)},configurable:!0})})}class fg{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function i(s,A,l){const u=vu(A);if(!u)throw new Error("header name must be a non-empty string");const c=pe.findKey(a,u);(!c||a[c]===void 0||l===!0||l===void 0&&a[c]!==!1)&&(a[c||A]=ed(s))}const o=(s,A)=>pe.forEach(s,(l,u)=>i(l,u,A));if(pe.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(pe.isString(e)&&(e=e.trim())&&!W6(e))o($6(e),t);else if(pe.isObject(e)&&pe.isIterable(e)){let s={},A,l;for(const u of e){if(!pe.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(A=s[l])?pe.isArray(A)?[...A,u[1]]:[A,u[1]]:u[1]}o(s,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=vu(e),e){const n=pe.findKey(this,e);if(n){const a=this[n];if(!t)return a;if(t===!0)return K6(a);if(pe.isFunction(t))return t.call(this,a,n);if(pe.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vu(e),e){const n=pe.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ey(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let a=!1;function i(o){if(o=vu(o),o){const s=pe.findKey(n,o);s&&(!t||Ey(n,n[s],s,t))&&(delete n[s],a=!0)}}return pe.isArray(e)?e.forEach(i):i(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const i=t[n];(!e||Ey(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const t=this,n={};return pe.forEach(this,(a,i)=>{const o=pe.findKey(n,i);if(o){t[o]=ed(a),delete t[i];return}const s=e?X6(i):String(i).trim();s!==i&&delete t[i],t[s]=ed(a),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pe.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&pe.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[pS]=this[pS]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=vu(o);n[s]||(Y6(a,o),n[s]=!0)}return pe.isArray(e)?e.forEach(i):i(e),this}}fg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(fg.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});pe.freezeMethods(fg);const Aa=fg;function My(r,e){const t=this||yC,n=e||t,a=Aa.from(n.headers);let i=n.data;return pe.forEach(r,function(s){i=s.call(t,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function ok(r){return!!(r&&r.__CANCEL__)}function Kl(r,e,t){tt.call(this,r??"canceled",tt.ERR_CANCELED,e,t),this.name="CanceledError"}pe.inherits(Kl,tt,{__CANCEL__:!0});function sk(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new tt("Request failed with status code "+t.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Z6(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function j6(r,e){r=r||10;const t=new Array(r),n=new Array(r);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(A){const l=Date.now(),u=n[i];o||(o=l),t[a]=A,n[a]=l;let c=i,f=0;for(;c!==a;)f+=t[c++],c=c%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),l-o{t=u,a=null,i&&(clearTimeout(i),i=null),r(...l)};return[(...l)=>{const u=Date.now(),c=u-t;c>=n?o(l,u):(a=l,i||(i=setTimeout(()=>{i=null,o(a)},n-c)))},()=>a&&o(a)]}const Od=(r,e,t=3)=>{let n=0;const a=j6(50,250);return J6(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,A=o-n,l=a(A),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:A,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};r(c)},t)},gS=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},yS=r=>(...e)=>pe.asap(()=>r(...e)),q6=Gr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Gr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Gr.origin),Gr.navigator&&/(msie|trident)/i.test(Gr.navigator.userAgent)):()=>!0,eX=Gr.hasStandardBrowserEnv?{write(r,e,t,n,a,i,o){if(typeof document>"u")return;const s=[`${r}=${encodeURIComponent(e)}`];pe.isNumber(t)&&s.push(`expires=${new Date(t).toUTCString()}`),pe.isString(n)&&s.push(`path=${n}`),pe.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),pe.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function tX(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function rX(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Ak(r,e,t){let n=!tX(e);return r&&(n||t==!1)?rX(r,e):e}const mS=r=>r instanceof Aa?{...r}:r;function Ys(r,e){e=e||{};const t={};function n(l,u,c,f){return pe.isPlainObject(l)&&pe.isPlainObject(u)?pe.merge.call({caseless:f},l,u):pe.isPlainObject(u)?pe.merge({},u):pe.isArray(u)?u.slice():u}function a(l,u,c,f){if(pe.isUndefined(u)){if(!pe.isUndefined(l))return n(void 0,l,c,f)}else return n(l,u,c,f)}function i(l,u){if(!pe.isUndefined(u))return n(void 0,u)}function o(l,u){if(pe.isUndefined(u)){if(!pe.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,c){if(c in e)return n(l,u);if(c in r)return n(void 0,l)}const A={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u,c)=>a(mS(l),mS(u),c,!0)};return pe.forEach(Object.keys({...r,...e}),function(u){const c=A[u]||a,f=c(r[u],e[u],u);pe.isUndefined(f)&&c!==s||(t[u]=f)}),t}const lk=r=>{const e=Ys({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;if(e.headers=o=Aa.from(o),e.url=nk(Ak(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),pe.isFormData(t)){if(Gr.hasStandardBrowserEnv||Gr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(t.getHeaders)){const A=t.getHeaders(),l=["content-type","content-length"];Object.entries(A).forEach(([u,c])=>{l.includes(u.toLowerCase())&&o.set(u,c)})}}if(Gr.hasStandardBrowserEnv&&(n&&pe.isFunction(n)&&(n=n(e)),n||n!==!1&&q6(e.url))){const A=a&&i&&eX.read(i);A&&o.set(a,A)}return e},nX=typeof XMLHttpRequest<"u",aX=nX&&function(r){return new Promise(function(t,n){const a=lk(r);let i=a.data;const o=Aa.from(a.headers).normalize();let{responseType:s,onUploadProgress:A,onDownloadProgress:l}=a,u,c,f,h,v;function d(){h&&h(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function g(){if(!p)return;const m=Aa.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),B={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:r,request:p};sk(function(b){t(b),d()},function(b){n(b),d()},B),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(n(new tt("Request aborted",tt.ECONNABORTED,r,p)),p=null)},p.onerror=function(w){const B=w&&w.message?w.message:"Network Error",C=new tt(B,tt.ERR_NETWORK,r,p);C.event=w||null,n(C),p=null},p.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const B=a.transitional||ak;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new tt(w,B.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,r,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&pe.forEach(o.toJSON(),function(w,B){p.setRequestHeader(B,w)}),pe.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),s&&s!=="json"&&(p.responseType=a.responseType),l&&([f,v]=Od(l,!0),p.addEventListener("progress",f)),A&&p.upload&&([c,h]=Od(A),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=m=>{p&&(n(!m||m.type?new Kl(null,r,p):m),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const y=Z6(a.url);if(y&&Gr.protocols.indexOf(y)===-1){n(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,r));return}p.send(i||null)})},iX=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,a;const i=function(l){if(!a){a=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof tt?u:new Kl(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,i(new tt(`timeout ${e} of ms exceeded`,tt.ETIMEDOUT))},e);const s=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),r=null)};r.forEach(l=>l.addEventListener("abort",i));const{signal:A}=n;return A.unsubscribe=()=>pe.asap(s),A}},oX=iX,sX=function*(r,e){let t=r.byteLength;if(!e||t{const a=AX(r,e);let i=0,o,s=A=>{o||(o=!0,n&&n(A))};return new ReadableStream({async pull(A){try{const{done:l,value:u}=await a.next();if(l){s(),A.close();return}let c=u.byteLength;if(t){let f=i+=c;t(f)}A.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(A){return s(A),a.return()}},{highWaterMark:2})},BS=64*1024,{isFunction:Ch}=pe,uX=(({Request:r,Response:e})=>({Request:r,Response:e}))(pe.global),{ReadableStream:CS,TextEncoder:bS}=pe.global,xS=(r,...e)=>{try{return!!r(...e)}catch{return!1}},cX=r=>{r=pe.merge.call({skipUndefined:!0},uX,r);const{fetch:e,Request:t,Response:n}=r,a=e?Ch(e):typeof fetch=="function",i=Ch(t),o=Ch(n);if(!a)return!1;const s=a&&Ch(CS),A=a&&(typeof bS=="function"?(v=>d=>v.encode(d))(new bS):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=i&&s&&xS(()=>{let v=!1;const d=new t(Gr.origin,{body:new CS,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!d}),u=o&&s&&xS(()=>pe.isReadableStream(new n("").body)),c={stream:u&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!c[v]&&(c[v]=(d,p)=>{let g=d&&d[v];if(g)return g.call(d);throw new tt(`Response type '${v}' is not supported`,tt.ERR_NOT_SUPPORT,p)})});const f=async v=>{if(v==null)return 0;if(pe.isBlob(v))return v.size;if(pe.isSpecCompliantForm(v))return(await new t(Gr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(v)||pe.isArrayBuffer(v))return v.byteLength;if(pe.isURLSearchParams(v)&&(v=v+""),pe.isString(v))return(await A(v)).byteLength},h=async(v,d)=>{const p=pe.toFiniteNumber(v.getContentLength());return p??f(d)};return async v=>{let{url:d,method:p,data:g,signal:y,cancelToken:m,timeout:w,onDownloadProgress:B,onUploadProgress:C,responseType:b,headers:_,withCredentials:x="same-origin",fetchOptions:S}=lk(v),I=e||fetch;b=b?(b+"").toLowerCase():"text";let L=oX([y,m&&m.toAbortSignal()],w),T=null;const M=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let R;try{if(C&&l&&p!=="get"&&p!=="head"&&(R=await h(_,g))!==0){let O=new t(d,{method:"POST",body:g,duplex:"half"}),G;if(pe.isFormData(g)&&(G=O.headers.get("content-type"))&&_.setContentType(G),O.body){const[X,te]=gS(R,Od(yS(C)));g=wS(O.body,BS,X,te)}}pe.isString(x)||(x=x?"include":"omit");const P=i&&"credentials"in t.prototype,E={...S,signal:L,method:p.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:P?x:void 0};T=i&&new t(d,E);let k=await(i?I(T,S):I(d,E));const D=u&&(b==="stream"||b==="response");if(u&&(B||D&&M)){const O={};["status","statusText","headers"].forEach(ne=>{O[ne]=k[ne]});const G=pe.toFiniteNumber(k.headers.get("content-length")),[X,te]=B&&gS(G,Od(yS(B),!0))||[];k=new n(wS(k.body,BS,X,()=>{te&&te(),M&&M()}),O)}b=b||"text";let U=await c[pe.findKey(c,b)||"text"](k,v);return!D&&M&&M(),await new Promise((O,G)=>{sk(O,G,{data:U,headers:Aa.from(k.headers),status:k.status,statusText:k.statusText,config:v,request:T})})}catch(P){throw M&&M(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,v,T),{cause:P.cause||P}):tt.from(P,P&&P.code,v,T)}}},fX=new Map,uk=r=>{let e=r&&r.env||{};const{fetch:t,Request:n,Response:a}=e,i=[n,a,t];let o=i.length,s=o,A,l,u=fX;for(;s--;)A=i[s],l=u.get(A),l===void 0&&u.set(A,l=s?new Map:cX(e)),u=l;return l};uk();const mC={http:T6,xhr:aX,fetch:{get:uk}};pe.forEach(mC,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const _S=r=>`- ${r}`,hX=r=>pe.isFunction(r)||r===null||r===!1;function vX(r,e){r=pe.isArray(r)?r:[r];const{length:t}=r;let n,a;const i={};for(let o=0;o`adapter ${A} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(_S).join(` `):" "+_S(o[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const ck={getAdapter:vX,adapters:mC};function Dy(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Kl(null,r)}function SS(r){return Dy(r),r.headers=Aa.from(r.headers),r.data=My.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ck.getAdapter(r.adapter||yC.adapter,r)(r).then(function(n){return Dy(r),n.data=My.call(r,r.transformResponse,n),n.headers=Aa.from(n.headers),n},function(n){return ok(n)||(Dy(r),n&&n.response&&(n.response.data=My.call(r,r.transformResponse,n.response),n.response.headers=Aa.from(n.response.headers))),Promise.reject(n)})}const fk="1.13.2",hg={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{hg[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const TS={};hg.transitional=function(e,t,n){function a(i,o){return"[Axios v"+fk+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new tt(a(o," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!TS[o]&&(TS[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};hg.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function dX(r,e,t){if(typeof r!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let a=n.length;for(;a-- >0;){const i=n[a],o=e[i];if(o){const s=r[i],A=s===void 0||o(s,i,r);if(A!==!0)throw new tt("option "+i+" must be "+A,tt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const td={assertOptions:dX,validators:hg},Sa=td.validators;class Hd{constructor(e){this.defaults=e||{},this.interceptors={request:new dS,response:new dS}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ys(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;n!==void 0&&td.assertOptions(n,{silentJSONParsing:Sa.transitional(Sa.boolean),forcedJSONParsing:Sa.transitional(Sa.boolean),clarifyTimeoutError:Sa.transitional(Sa.boolean)},!1),a!=null&&(pe.isFunction(a)?t.paramsSerializer={serialize:a}:td.assertOptions(a,{encode:Sa.function,serialize:Sa.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),td.assertOptions(t,{baseUrl:Sa.spelling("baseURL"),withXsrfToken:Sa.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&pe.merge(i.common,i[t.method]);i&&pe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),t.headers=Aa.concat(o,i);const s=[];let A=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(A=A&&d.synchronous,s.unshift(d.fulfilled,d.rejected))});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let u,c=0,f;if(!A){const v=[SS.bind(this),void 0];for(v.unshift(...s),v.push(...l),f=v.length,u=Promise.resolve(t);c{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,s){n.reason||(n.reason=new Kl(i,o,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new wC(function(a){e=a}),cancel:e}}}const pX=wC;function gX(r){return function(t){return r.apply(null,t)}}function yX(r){return pe.isObject(r)&&r.isAxiosError===!0}const Vw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vw).forEach(([r,e])=>{Vw[e]=r});const mX=Vw;function hk(r){const e=new rd(r),t=$P(rd.prototype.request,e);return pe.extend(t,rd.prototype,e,{allOwnKeys:!0}),pe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(a){return hk(Ys(r,a))},t}const ur=hk(yC);ur.Axios=rd;ur.CanceledError=Kl;ur.CancelToken=pX;ur.isCancel=ok;ur.VERSION=fk;ur.toFormData=cg;ur.AxiosError=tt;ur.Cancel=ur.CanceledError;ur.all=function(e){return Promise.all(e)};ur.spread=gX;ur.isAxiosError=yX;ur.mergeConfig=Ys;ur.AxiosHeaders=Aa;ur.formToJSON=r=>ik(pe.isHTMLForm(r)?new FormData(r):r);ur.getAdapter=ck.getAdapter;ur.HttpStatusCode=mX;ur.default=ur;const vk=ur,fa=vk.create({baseURL:"http://39.105.28.231:1020",timeout:5e3});fa.interceptors.request.use(r=>{const e=localStorage.getItem("token");return e&&(r.headers.Authorization=`Bearer ${e}`),r},r=>Promise.reject(r));fa.interceptors.response.use(r=>r.data,r=>Promise.reject(r));function BC(r,e){let t=0;return function(...n){const a=Date.now();a-t>=r&&(t=a,e.apply(this,n))}}function wX(){return"xxxxxxxxxxxxaxxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const _o=()=>wX().replaceAll("-","");function CC(r){const e=new Set,t=new Set;return r.forEach(n=>{e.has(n.id)?t.add(n):e.add(n.id)}),t.size>0&&r.forEach(n=>{n.id=_o()}),r}function Il(r){return r.map((e,t)=>({id:_o(),index:t,data:e}))}var bC=vt({name:"VerticalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(r,{expose:e,emit:t}){const n=Ee(null),a=Ee(null),i=Ee([]),o=Ee(0),s=Ee(!1),A=Ee(r.direction),l=rt(()=>r.hover?!s.value&&r.modelValue:r.modelValue),u=Ee([]),c=Il(r.list),f=Ee(r.visibleCount===void 0?0:r.visibleCount);let h=0,v=0,d=0,p=[],g=0,y=0,m=-1,w=0,B=null,C=!1,b=0,_=0,x=!1;const S=()=>{cancelAnimationFrame(B),B=null},I=()=>{const W=m+y;if(W>=c.length){const ee=W-c.length,oe=["splice",[0,y],[m],[0,ee]];i.value=oe,ee>c.length?m=c.length:m=ee}else{const ee=["splice",[0,y],[m,W]];i.value=ee,m=W}},L=()=>{const W=Array.from(n.value.children);p=(A.value==="up"?W.slice(0,y):W.slice(k.value.length-y,k.value.length)).map(oe=>oe.offsetHeight),g=p.reduce((oe,H)=>oe+H,0)},T=(W,ee)=>{if(S(),!x)return;const oe=()=>{const H=p[0];let N=!1;b>=H&&(N=!0),N&&(p.shift(),b=0,v+=1),v===h&&(d+=1,t("count",d),v=0),r.singleLine&&N?(C=!0,setTimeout(()=>{C=!1,W||T(!1,r.step)},r.singleWaitTime)):W||T(!1,r.step)};(l.value&&!C||W)&&(B=requestAnimationFrame(()=>{_+=ee,b+=ee,A.value==="up"?o.value+=ee:o.value-=ee,_>g?(t("offset",y,c),I(),Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,L(),oe()})):oe()}))},M=()=>{s.value=!0},R=()=>{s.value=!1,r.hover&&T(!1,r.step)},P=BC(30,W=>{T(!0,10)}),E=W=>{r.hover&&r.wheel&&(P(W),W.preventDefault(),W.stopPropagation())},k=rt(()=>{let W=[];return i.value.length===0?W=c.slice(0,f.value):i.value[0]==="splice"?(W=A.value==="up"?k.value:k.value.reverse(),W.splice(...i.value[1]),i.value.slice(2).forEach(ee=>{W.push(...c.slice(...ee))})):i.value.slice(1).forEach(ee=>{W.push(...c.slice(...ee))}),A.value!=="up"&&W.reverse(),CC(W)}),D=()=>{if(m=f.value+y,m>=c.length){const W=m-c.length,ee=["slice",[0,m],[0,W]];return W>c.length?m=c.length:m=W,ee}else return["slice",[0,m]]},U=()=>Array.from(n.value.children).map(W=>W.offsetHeight).reduce((W,ee)=>W+ee,0),O=W=>{r.visibleCount===void 0?(u.value=Il([r.list[0]]),Je(()=>{f.value=Math.ceil(w/a.value.offsetHeight)+2,u.value=c.slice(0,f.value),Je(()=>{W()})})):(u.value=c.slice(0,f.value),Je(()=>{W()}))};St(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",M),n.value.parentElement.addEventListener("mouseleave",R),n.value.parentElement.addEventListener("wheel",E),w=n.value.parentElement.offsetHeight,r.list.length>0&&O(()=>{a.value.offsetHeight>w?(y=X(),i.value=D(),Je(()=>{o.value=A.value==="up"?0:U()-w,L(),x=!0,setTimeout(()=>{T(!1,r.step)},r.delay)})):G(),u.value=[]})),h=c.length});const G=()=>{v=0,d=0,x=!1,y=0,i.value=[],Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,b=0})},X=()=>{let W=c.length-f.value;return W=Math.max(1,W),W=Math.min(5,W),W};return e({add:(W,ee,oe)=>{if(ee&&ee.length>0){W>c.length&&(W=c.length),W<0&&(W=0);const H=[];ee.length===1&&k.value.forEach(($,j)=>{$.index===W&&H.push(j)});const N=[];ee.forEach($=>{N.push({id:_o(),data:$})}),c.splice(W,0,...N),c.forEach(($,j)=>{$.index=j});const K=X();if(x)Wc.length&&(m=0)),ee.length===1&&H.length>0&&H.forEach($=>{k.value[$]=N[0]}),K!==y&&(y=K);else{const $=()=>{a.value.offsetHeight>w?(y=K,i.value=D(),Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,b=0,L(),x=!0,T(!1,r.step)})):(r.visibleCount===void 0&&(f.value=0),G()),u.value=[]};f.value===0&&r.visibleCount===void 0?O(()=>{$()}):(u.value=c.slice(0,f.value),Je(()=>{$()}))}}oe&&typeof oe=="function"&&oe(c),h=c.length},remove:(W,ee=1,oe)=>{W>=0&&W{if(a.value.offsetHeight>w){const N=X();N!==y&&(y=N),i.value=D()}else G();u.value=[]})):G()),oe&&typeof oe=="function"&&oe(c),h=c.length},update:(W,ee,oe)=>{if(W>=0&&W{K.index===W&&H.push($)});const N={id:_o(),index:W,data:ee};c[W]=N,H.length>0&&H.forEach(K=>{k.value[K]=N})}oe&&typeof oe=="function"&&oe(c)},reset:()=>{Je(()=>{u.value=c.slice(0,f.value),Je(()=>{a.value.offsetHeight>w?i.value[0]==="splice"?(I(),Je(()=>{L()})):(i.value=D(),Je(()=>{L()})):G()})})}}),Et(()=>r.modelValue,W=>{W&&T(!1,r.step)}),Qo(()=>{cancelAnimationFrame(B),n.value&&(n.value.parentElement.removeEventListener("mouseenter",M),n.value.parentElement.removeEventListener("mouseleave",R),n.value.parentElement.removeEventListener("wheel",E))}),{realWrapperRef:n,visibleItems:k,offset:o,testList:u,realWrapperHiddenRef:a}}});const BX={style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"};function CX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",{class:"vue3-seamless-vertical-wrapper",ref:"realWrapperRef",style:qt({transition:`transform ${r.ease}`,transform:`translateY(-${r.offset}px)`})},[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],4),ae("div",BX,[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],512)],64)}function xC(r,e){e===void 0&&(e={});var t=e.insertAt;if(!(!r||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}}var bX=` .vue3-seamless-vertical-wrapper[data-v-70134dc7] {\r width: 100%; }\r `;xC(bX);bC.render=CX;bC.__scopeId="data-v-70134dc7";bC.__file="packages/VerticalScroll.vue";var _C=vt({name:"HorizontalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"left"},delay:{type:Number,default:0}},setup(r,{emit:e,expose:t}){const n=Ee(null),a=Ee(null),i=Ee([]),o=Ee(0),s=Ee(!1),A=Ee(r.direction),l=rt(()=>r.hover?!s.value&&r.modelValue:r.modelValue),u=Ee([]),c=Ee(r.visibleCount===void 0?0:r.visibleCount),f=Il(r.list);let h=0,v=0,d=0,p=[],g=0,y=0,m=-1,w=0,B=null,C=!1,b=0,_=0,x=!1;const S=()=>{cancelAnimationFrame(B),B=null},I=()=>{const W=m+y;if(W>=f.length){const ee=W-f.length,oe=["splice",[0,y],[m],[0,ee]];i.value=oe,ee>f.length?m=f.length:m=ee}else{const ee=["splice",[0,y],[m,W]];i.value=ee,m=W}},L=()=>{const W=Array.from(n.value.children);p=(A.value==="left"?W.slice(0,y):W.slice(k.value.length-y,k.value.length)).map(oe=>oe.offsetWidth),g=p.reduce((oe,H)=>oe+H,0)},T=(W,ee)=>{if(S(),!x)return;const oe=()=>{const H=p[0];let N=!1;b>=H&&(N=!0),N&&(p.shift(),b=0,v+=1),v===h&&(d+=1,e("count",d),v=0),r.singleLine&&N?(C=!0,setTimeout(()=>{C=!1,W||T(!1,r.step)},r.singleWaitTime)):W||T(!1,r.step)};(l.value&&!C||W)&&(B=requestAnimationFrame(()=>{_+=ee,b+=ee,r?o.value+=ee:o.value-=ee,_>g?(e("offset",y,f),I(),Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,L(),oe()})):oe()}))},M=()=>{s.value=!0},R=()=>{s.value=!1,r.hover&&T(!1,r.step)},P=BC(30,W=>{T(!0,10)}),E=W=>{r.hover&&r.wheel&&(P(W),W.preventDefault(),W.stopPropagation())},k=rt(()=>{let W=[];return i.value.length===0?W=f.slice(0,c.value):i.value[0]==="splice"?(W=A.value==="left"?k.value:k.value.reverse(),W.splice(...i.value[1]),i.value.slice(2).forEach(ee=>{W.push(...f.slice(...ee))})):i.value.slice(1).forEach(ee=>{W.push(...f.slice(...ee))}),A.value!=="left"&&W.reverse(),CC(W)}),D=()=>{if(m=c.value+y,m>=f.length){const W=m-f.length,ee=["slice",[0,m],[0,W]];return W>f.length?m=f.length:m=W,ee}else return["slice",[0,m]]},U=()=>Array.from(n.value.children).map(W=>W.offsetWidth).reduce((W,ee)=>W+ee,0),O=W=>{r.visibleCount===void 0?(u.value=Il([r.list[0]]),Je(()=>{c.value=Math.ceil(w/a.value.offsetWidth)+2,u.value=f.slice(0,c.value),Je(()=>{W()})})):(u.value=f.slice(0,c.value),Je(()=>{W()}))};St(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",M),n.value.parentElement.addEventListener("mouseleave",R),n.value.parentElement.addEventListener("wheel",E),w=n.value.parentElement.offsetWidth,r.list.length>0&&O(()=>{a.value.offsetWidth>w?(y=X(),i.value=D(),Je(()=>{o.value=A.value==="left"?0:U()-w,L(),x=!0,setTimeout(()=>{T(!1,r.step)},r.delay)})):G(),u.value=[]})),h=f.length});const G=()=>{v=0,d=0,x=!1,y=0,i.value=[],Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,b=0})},X=()=>{let W=f.length-c.value;return W=Math.max(1,W),W=Math.min(5,W),W};return t({add:(W,ee,oe)=>{if(ee&&ee.length>0){W>f.length&&(W=f.length),W<0&&(W=0);const H=[];ee.length===1&&k.value.forEach(($,j)=>{$.index===W&&H.push(j)});const N=[];ee.forEach($=>{N.push({id:_o(),data:$})}),f.splice(W,0,...N),f.forEach(($,j)=>{$.index=j});const K=X();if(x)Wf.length&&(m=0)),ee.length===1&&H.forEach($=>{k.value[$]=N[0]}),K!==y&&(y=K);else{const $=()=>{a.value.offsetWidth>w?(y=K,i.value=D(),Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,b=0,L(),x=!0,T(!1,r.step)})):(r.visibleCount===void 0&&(c.value=0),G()),u.value=[]};c.value===0&&r.visibleCount===void 0?O(()=>{$()}):(u.value=f.slice(0,c.value),Je(()=>{$()}))}}oe&&typeof oe=="function"&&oe(f),h=f.length},remove:(W,ee=1,oe)=>{W>=0&&W{if(a.value.offsetWidth>w){const N=X();N!==y&&(y=N),i.value=D()}else G();u.value=[]})):G()),oe&&typeof oe=="function"&&oe(f),h=f.length},update:(W,ee,oe)=>{if(W>=0&&W{K.index===W&&H.push($)});const N={id:_o(),index:W,data:ee};f[W]=N,H.length>0&&H.forEach(K=>{k[K]=N})}oe&&typeof oe=="function"&&oe(f)},reset:()=>{Je(()=>{u.value=f.slice(0,c.value),Je(()=>{a.value.offsetWidth>w?i.value[0]==="splice"?(I(),Je(()=>{L()})):(i.value=D(),Je(()=>{L()})):G()})})}}),Et(()=>r.modelValue,W=>{W&&T(!1,r.step)}),Qo(()=>{cancelAnimationFrame(B),n.value&&(n.value.parentElement.removeEventListener("mouseenter",M),n.value.parentElement.removeEventListener("mouseleave",R),n.value.parentElement.removeEventListener("wheel",E))}),{visibleItems:k,offset:o,testList:u,realWrapperRef:n,realWrapperHiddenRef:a}}});function xX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",_d({class:"vue3-seamless-horizontal-wrapper",ref:"realWrapperRef",style:{transition:`transform ${r.ease}`,transform:`translateX(-${r.offset}px)`}},r.$attrs),[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index,style:"color: brown;"})),128))],16),ae("div",_d({style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"},r.$attrs),[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16)],64)}var _X=` .vue3-seamless-horizontal-wrapper[data-v-530d6df5] { height: 100%; } `;xC(_X);_C.render=xX;_C.__scopeId="data-v-530d6df5";_C.__file="packages/HorizontalScroll.vue";var Ll=vt({name:"Vue3SeamlessScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(r,{expose:e,emit:t}){const n=Ee(null),a=Ee(null),i=Ee(null),o=Ee([]),s=Ee(0),A=Ee(!1),l=Ee(r.direction),u=rt(()=>r.hover?!A.value&&r.modelValue:r.modelValue),c=Ee([]),f=Ee(r.visibleCount===void 0?0:r.visibleCount),h=Il(r.list);let v=0,d=0,p=0,g=[],y=0,m=0,w=-1,B=0,C=null,b=!1,_=0,x=0,S=!1;const I=rt(()=>l.value==="up"||l.value==="down"?`translateY(-${s.value}px)`:`translateX(-${s.value}px)`),L=()=>{cancelAnimationFrame(C),C=null},T=()=>{const H=w+m;if(H>=h.length){const N=H-h.length,K=["splice",[0,m],[w],[0,N]];o.value=K,N>h.length?w=h.length:w=N}else{const N=["splice",[0,m],[w,H]];o.value=N,w=H}},M=()=>{const H=Array.from(a.value.children);g=(l.value==="up"||l.value==="left"?H.slice(0,m):H.slice(O.value.length-m,O.value.length)).map(K=>l.value==="left"||l.value==="right"?K.offsetWidth:K.offsetHeight),y=g.reduce((K,$)=>K+$,0)},R=()=>{l.value==="up"||l.value==="left"?s.value=0:s.value=X()-B},P=(H,N)=>{if(L(),!S)return;const K=()=>{const $=g[0];let j=!1;_>=$&&(j=!0),j&&(g.shift(),_=0,d+=1),d===v&&(p+=1,t("count",p),d=0),r.singleLine&&j?(b=!0,setTimeout(()=>{b=!1,H||P(!1,r.step)},r.singleWaitTime)):H||P(!1,r.step)};(u.value&&!b||H)&&(C=requestAnimationFrame(()=>{x+=N,_+=N,l.value==="up"||l.value==="left"?s.value+=N:s.value-=N,x>y?(t("offset",m,h),T(),Je(()=>{R(),x=0,M(),K()})):K()}))},E=()=>{A.value=!0},k=()=>{A.value=!1,r.hover&&P(!1,r.step)},D=BC(30,H=>{P(!0,10)}),U=H=>{r.hover&&r.wheel&&(D(H),H.preventDefault(),H.stopPropagation())},O=rt(()=>{let H=[];return o.value.length===0?H=h.slice(0,f.value):o.value[0]==="splice"?(H=l.value==="up"||l.value==="left"?O.value:O.value.reverse(),H.splice(...o.value[1]),o.value.slice(2).forEach(N=>{H.push(...h.slice(...N))})):o.value.slice(1).forEach(N=>{H.push(...h.slice(...N))}),l.value==="up"||l.value==="left"||H.reverse(),CC(H)}),G=()=>{if(w=f.value+m,w>=h.length){const H=w-h.length,N=["slice",[0,w],[0,H]];return H>h.length?w=h.length:w=H,N}else return["slice",[0,w]]},X=()=>Array.from(a.value.children).map(N=>l.value==="left"||l.value==="right"?N.offsetWidth:N.offsetHeight).reduce((N,K)=>N+K,0),te=H=>{r.visibleCount===void 0?(c.value=Il([r.list[0]]),Je(()=>{l.value==="left"||l.value==="right"?f.value=Math.ceil(B/i.value.offsetWidth)+2:f.value=Math.ceil(B/i.value.offsetHeight)+2,c.value=h.slice(0,f.value),Je(()=>{H()})})):(c.value=h.slice(0,f.value),Je(()=>{H()}))};St(()=>{a.value&&(a.value.parentElement.addEventListener("mouseenter",E),a.value.parentElement.addEventListener("mouseleave",k),a.value.parentElement.addEventListener("wheel",U),B=a.value.parentElement.offsetHeight,(l.value==="left"||l.value==="right")&&(B=a.value.parentElement.offsetWidth),te(()=>{let H=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(H=i.value.offsetWidth>B),H?(m=ye(),o.value=G(),Je(()=>{R(),M(),S=!0,setTimeout(()=>{P(!1,r.step)},r.delay)})):ne(),c.value=[]})),v=h.length});const ne=()=>{d=0,p=0,S=!1,m=0,o.value=[],Je(()=>{R(),x=0,_=0})},ye=()=>{let H=h.length-f.value;return H=Math.max(1,H),H=Math.min(5,H),H};return e({add:(H,N,K)=>{if(N&&N.length>0){H>h.length&&(H=h.length),H<0&&(H=0);const $=[];N.length===1&&O.value.forEach((z,q)=>{z.index===H&&$.push(q)});const j=[];N.forEach(z=>{j.push({id:_o(),data:z})}),h.splice(H,0,...j),h.forEach((z,q)=>{z.index=q});const ie=ye();if(S)Hh.length&&(w=0)),N.length===1&&$.length>0&&$.forEach(z=>{O[z]=j[0]}),ie!==m&&(m=ie);else{const z=()=>{let q=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(q=i.value.offsetWidth>B),q?(m=ie,o.value=G(),Je(()=>{R(),x=0,_=0,M(),S=!0,P(!1,r.step)})):(r.visibleCount===void 0&&(f.value=0),ne()),c.value=[]};f.value===0&&r.visibleCount===void 0?te(()=>{z()}):(c.value=h.slice(0,f.value),Je(()=>{z()}))}}K&&typeof K=="function"&&K(h),v=h.length},remove:(H,N=1,K)=>{H>=0&&H{let $=i.value.offsetHeight>B;if((l.value==="left"||l.value==="right")&&($=i.value.offsetWidth>B),$){const j=ye();j!==m&&(m=j),o.value=G()}else ne();c.value=[]})):ne()),K&&typeof K=="function"&&K(h),v=h.length},update:(H,N,K)=>{if(H>=0&&H{ie.index===H&&$.push(z)});const j={id:_o(),index:H,data:N};h[H]=j,$.length>0&&$.forEach(ie=>{O[ie]=j})}K&&typeof K=="function"&&K(h)},reset:()=>{Je(()=>{c.value=h.slice(0,f.value),Je(()=>{let H=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(H=i.value.offsetWidth>B),H?o.value[0]==="splice"?(T(),Je(()=>{M()})):(o.value=G(),Je(()=>{M()})):ne()})})}}),Et(()=>r.modelValue,H=>{H&&P(!1,r.step)}),Qo(()=>{cancelAnimationFrame(C),a.value&&(a.value.parentElement.removeEventListener("mouseenter",E),a.value.parentElement.removeEventListener("mouseleave",k),a.value.parentElement.removeEventListener("wheel",U))}),{realBoxRef:n,realWrapperRef:a,visibleItems:O,offset:s,testList:c,realWrapperHiddenRef:i,transform:I}}});function SX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",_d({class:"vue3-seamless-wrapper",ref:"realWrapperRef",style:{transition:`transform ${r.ease}`,transform:r.transform}},r.$attrs),[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16),ae("div",_d({style:{position:"absolute !important",left:"-999999px !important"},ref:"realWrapperHiddenRef"},r.$attrs),[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16)],64)}var TX=` .vue3-seamless-wrapper[data-v-b156a416] {\r width: 100%;\r height: 100%; }\r `;xC(TX);Ll.render=SX;Ll.__scopeId="data-v-b156a416";Ll.__file="packages/Vue3SeamlessScroll.vue";const IX=function(r,e={}){r.component(e.name||Ll.name,Ll)};function LX(r){r.use(IX)}const EX={style:{"max-height":"200px",padding:"10px",overflow:"hidden",width:"100%"}},MX={class:"inner_right"},DX={style:{display:"flex","align-items":"center","justify-content":"space-between"}},FX={class:"info"},QX={class:"contents zhuyao doudong"},UX={class:"types doudong typeGreen"},PX={class:"info"},kX={class:"contents",style:{"font-size":"12px"}},RX={class:"info addresswrap"},OX={class:"contents ciyao",style:{"font-size":"12px"}},HX=vt({__name:"left-bottom",setup(r){const e=Ee(!0),t=Ee(1),n=Ee([]);Ee(!0);const a=async()=>{try{n.value=[];const i=await fa("/orderStats/realTimeData");n.value=i}catch{n.value=[]}};return St(()=>{a(),setInterval(()=>{a()},3e4)}),(i,o)=>{const s=ho("dv-loading");return he(),de("div",EX,[n.value.length>0?(he(),Sd(Q(Ll),{key:0,class:"left_boottom_wrap",list:n.value,step:t.value,hover:e.value},{default:Mr(()=>[(he(!0),de(lt,null,dt(n.value,(A,l)=>(he(),de("div",{class:"left_boottom_item",key:l},[ae("div",MX,[o[2]||(o[2]=ae("div",{class:"dibu"},null,-1)),ae("div",DX,[ae("div",FX,[ae("span",QX,Dt(A.phone),1)]),ae("span",UX," ¥"+Dt(A.amount),1)]),ae("div",PX,[o[0]||(o[0]=ae("span",{class:"labels"},"时间:",-1)),ae("span",kX,Dt(A.createTime),1)]),ae("div",RX,[o[1]||(o[1]=ae("span",{class:"labels"},"电站名称:",-1)),ae("span",OX,Dt(A.stationName),1)])])]))),128))]),_:1},8,["list","step","hover"])):(he(),Sd(s,{key:1},{default:Mr(()=>[...o[3]||(o[3]=[uw("Loading...",-1)])]),_:1}))])}}});const Wl=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},NX=Wl(HX,[["__scopeId","data-v-14519b3f"]]);/*! ***************************************************************************** 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 Gw=function(r,e){return Gw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Gw(r,e)};function ce(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Gw(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var VX=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 VX,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}(),Yi=new GX;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Yi.wxa=!0,Yi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Yi.worker=!0:!Yi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Yi.node=!0,Yi.svgSupported=!0):zX(navigator.userAgent,Yi);function zX(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var A=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in A||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in A)&&!("OTransition"in A),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}const st=Yi;var SC=12,dk="sans-serif",Si=SC+"px "+dk,$X=20,KX=100,WX="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function XX(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var A=0;A>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[A]+":0",a[l]+":0",n[1-A]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){F(t,function(u){u.parentNode&&u.parentNode.removeChild(u)})},t}function p7(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],A=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),c=2*l,f=u.left,h=u.top;o.push(f,h),A=A&&i&&f===i[c]&&h===i[c+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return A&&a?a:(e.srcCoords=o,e[n]=t?MS(s,o):MS(o,s))}function Ck(r){return r.nodeName.toUpperCase()==="CANVAS"}var g7=/([&<>"'])/g,y7={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vr(r){return r==null?"":(r+"").replace(g7,function(e,t){return y7[t]})}var m7=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qy=[],w7=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function jw(r,e,t,n){return t=t||{},n?DS(r,e,t):w7&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):DS(r,e,t),t}function DS(r,e,t){if(st.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Ck(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(Zw(Qy,r,n,a)){t.zrX=Qy[0],t.zrY=Qy[1];return}}t.zrX=t.zrY=0}function FC(r){return r||window.event}function kn(r,e,t){if(e=FC(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&jw(r,o,e,t)}else{jw(r,e,e,t);var i=B7(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&m7.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function B7(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Jw(r,e,t,n){r.addEventListener(e,t,n)}function C7(r,e,t,n){r.removeEventListener(e,t,n)}var Ti=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function FS(r){return r.which===2||r.which===3}var b7=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&n&&n.length>1){var i=QS(n)/QS(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=x7(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function xr(){return[1,0,0,1,0,0]}function yg(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function mg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ka(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],A=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=A,r}function ja(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Uo(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],A=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return r[0]=a*c+s*u,r[1]=-a*u+s*c,r[2]=i*c+A*u,r[3]=-i*u+c*A,r[4]=c*(o-n[0])+u*(l-n[1])+n[0],r[5]=c*(l-n[1])-u*(o-n[0])+n[1],r}function QC(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function va(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],A=t*o-i*n;return A?(A=1/A,r[0]=o*A,r[1]=-i*A,r[2]=-n*A,r[3]=t*A,r[4]=(n*s-o*a)*A,r[5]=(i*a-t*s)*A,r):null}function _7(r){var e=xr();return mg(e,r),e}var S7=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.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}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r}();const ke=S7;var Es=Math.min,ul=Math.max,qw=Math.abs,US=["x","y"],T7=["width","height"],Vo=new ke,Go=new ke,zo=new ke,$o=new ke,mn=bk(),fc=mn.minTv,e1=mn.maxTv,Mc=[0,0],UC=function(){function r(e,t,n,a){r.set(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=Es(e.x,this.x),n=Es(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ul(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ul(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=xr();return ja(i,i,[-t.x,-t.y]),QC(i,i,[n,a]),ja(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&ke.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(I7,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(L7,t.x,t.y,t.width,t.height));var s=!!n;mn.reset(a,s);var A=mn.touchThreshold,l=e.x+A,u=e.x+e.width-A,c=e.y+A,f=e.y+e.height-A,h=t.x+A,v=t.x+t.width-A,d=t.y+A,p=t.y+t.height-A;if(l>u||c>f||h>v||d>p)return!1;var g=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Vo.x=zo.x=t.x,Vo.y=$o.y=t.y,Go.x=$o.x=t.x+t.width,Go.y=zo.y=t.y+t.height,Vo.transform(n),$o.transform(n),Go.transform(n),zo.transform(n),e.x=Es(Vo.x,Go.x,zo.x,$o.x),e.y=Es(Vo.y,Go.y,zo.y,$o.y);var A=ul(Vo.x,Go.x,zo.x,$o.x),l=ul(Vo.y,Go.y,zo.y,$o.y);e.width=A-e.x,e.height=l-e.y},r}(),I7=new UC(0,0,0,0),L7=new UC(0,0,0,0);function PS(r,e,t,n,a,i,o,s){var A=qw(e-t),l=qw(n-r),u=Es(A,l),c=US[a],f=US[1-a],h=T7[a];e=l||!mn.bidirectional)&&(fc[c]=-l,fc[f]=0,mn.useDir&&mn.calcDirMTV())))}function bk(){var r=0,e=new ke,t=new ke,n={minTv:new ke,maxTv:new ke,useDir:!1,dirMinTv:new ke,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=ul(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,A=Math.sin(r),l=Math.cos(r),u=A*i.y+l*i.x;if(a(u)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(t.x=s*l/u,t.y=s*A/u,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()=0;c--){var f=i[c];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Py.copy(f.getBoundingRect()),f.transform&&Py.applyTransform(f.transform),Py.intersect(u)&&s.push(f))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Q7(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?xk:!0}return!1}function kS(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Q7(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==xk)){e.target=o;break}}}function Sk(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}const U7=_k;var Tk=32,pu=7;function P7(r){for(var e=0;r>=Tk;)e|=r&1,r>>=1;return r+e}function RS(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a=0;)a++;return a-e}function k7(r,e,t){for(t--;e>>1,a(i,r[A])<0?s=A:o=A+1;var l=n-o;switch(l){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(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=i}}function ky(r,e,t,n,a,i){var o=0,s=0,A=1;if(i(r,e[t+a])>0){for(s=n-a;A0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s),o+=a,A+=a}else{for(s=a+1;As&&(A=s);var l=o;o=a-A,A=a-l}for(o++;o>>1);i(r,e[t+u])>0?o=u+1:A=u}return A}function Ry(r,e,t,n,a,i){var o=0,s=0,A=1;if(i(r,e[t+a])<0){for(s=a+1;As&&(A=s);var l=o;o=a-A,A=a-l}else{for(s=n-a;A=0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s),o+=a,A+=a}for(o++;o>>1);i(r,e[t+u])<0?A=u:o=u+1}return A}function R7(r,e){var t=pu,n,a,i=0,o=[];n=[],a=[];function s(h,v){n[i]=h,a[i]=v,i+=1}function A(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=pu||b>=pu);if(_)break;B<0&&(B=0),B+=2}if(t=B,t<1&&(t=1),v===1){for(g=0;g=0;g--)r[C+g]=r[B+g];r[w]=o[m];return}for(var b=t;;){var _=0,x=0,S=!1;do if(e(o[m],r[y])<0){if(r[w--]=r[y--],_++,x=0,--v===0){S=!0;break}}else if(r[w--]=o[m--],x++,_=0,--p===1){S=!0;break}while((_|x)=0;g--)r[C+g]=r[B+g];if(v===0){S=!0;break}}if(r[w--]=o[m--],--p===1){S=!0;break}if(x=p-ky(r[y],o,0,p,p-1,e),x!==0){for(w-=x,m-=x,p-=x,C=w+1,B=m+1,g=0;g=pu||x>=pu);if(S)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(w-=v,y-=v,C=w+1,B=y+1,g=v-1;g>=0;g--)r[C+g]=r[B+g];r[w]=o[m]}else{if(p===0)throw new Error;for(B=w-(p-1),g=0;gs&&(A=s),OS(r,t,t+A,t+i,e),i=A}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var wn=1,hc=2,il=4,HS=!1;function Oy(){HS||(HS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function NS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var O7=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=NS}return r.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(a,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}();const H7=O7;var Ik;Ik=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const t1=Ik;var sd={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 e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-sd.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?sd.bounceIn(r*2)*.5:sd.bounceOut(r*2-1)*.5+.5}};const Lk=sd;var xh=Math.pow,go=Math.sqrt,Gd=1e-8,Ek=1e-4,VS=go(3),_h=1/3,ka=oA(),Vn=oA(),wl=oA();function so(r){return r>-Gd&&rGd||r<-Gd}function dr(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function GS(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function zd(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),A=3*(e-r),l=r-a,u=s*s-3*o*A,c=s*A-9*o*l,f=A*A-3*s*l,h=0;if(so(u)&&so(c))if(so(s))i[0]=0;else{var v=-A/s;v>=0&&v<=1&&(i[h++]=v)}else{var d=c*c-4*u*f;if(so(d)){var p=c/u,v=-s/o+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=go(d),m=u*s+1.5*o*(-c+y),w=u*s+1.5*o*(-c-y);m<0?m=-xh(-m,_h):m=xh(m,_h),w<0?w=-xh(-w,_h):w=xh(w,_h);var v=(-s-(m+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var B=(2*u*s-3*o*c)/(2*go(u*u*u)),C=Math.acos(B)/3,b=go(u),_=Math.cos(C),v=(-s-2*b*_)/(3*o),g=(-s+b*(_+VS*Math.sin(C)))/(3*o),x=(-s+b*(_-VS*Math.sin(C)))/(3*o);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function Dk(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,A=0;if(so(o)){if(Mk(i)){var l=-s/i;l>=0&&l<=1&&(a[A++]=l)}}else{var u=i*i-4*o*s;if(so(u))a[0]=-i/(2*o);else if(u>0){var c=go(u),l=(-i+c)/(2*o),f=(-i-c)/(2*o);l>=0&&l<=1&&(a[A++]=l),f>=0&&f<=1&&(a[A++]=f)}}return A}function So(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,A=(n-t)*a+t,l=(s-o)*a+o,u=(A-s)*a+s,c=(u-l)*a+l;i[0]=r,i[1]=o,i[2]=l,i[3]=c,i[4]=c,i[5]=u,i[6]=A,i[7]=n}function Fk(r,e,t,n,a,i,o,s,A,l,u){var c,f=.005,h=1/0,v,d,p,g;ka[0]=A,ka[1]=l;for(var y=0;y<1;y+=.05)Vn[0]=dr(r,t,a,o,y),Vn[1]=dr(e,n,i,s,y),p=Os(ka,Vn),p=0&&p=0&&l<=1&&(a[A++]=l)}}else{var u=o*o-4*i*s;if(so(u)){var l=-o/(2*i);l>=0&&l<=1&&(a[A++]=l)}else if(u>0){var c=go(u),l=(-o+c)/(2*i),f=(-o-c)/(2*i);l>=0&&l<=1&&(a[A++]=l),f>=0&&f<=1&&(a[A++]=f)}}return A}function Qk(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Xc(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function Uk(r,e,t,n,a,i,o,s,A){var l,u=.005,c=1/0;ka[0]=o,ka[1]=s;for(var f=0;f<1;f+=.05){Vn[0]=Cr(r,t,a,f),Vn[1]=Cr(e,n,i,f);var h=Os(ka,Vn);h=0&&h=1?1:zd(0,n,i,1,A,s)&&dr(0,a,o,1,s[0])}}}var $7=function(){function r(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||Xt,this.ondestroy=e.ondestroy||Xt,this.onrestart=e.onrestart||Xt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var A=a%n;this._startTime=e-A,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(e){this.easing=e,this.easingFunc=Me(e)?e:Lk[e]||PC(e)},r}();const K7=$7;var Pk=function(){function r(e){this.value=e}return r}(),W7=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Pk(e);return this.insertEntry(t),t},r.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++},r.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--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),X7=function(){function r(e){this._list=new W7,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var A=n.head;n.remove(A),delete a[A.key],i=A.value,this._lastRemovedEntry=A}s?s.value=t:s=new Pk(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.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},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ml=X7;var zS={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 la(r){return r=Math.round(r),r<0?0:r>255?255:r}function Y7(r){return r=Math.round(r),r<0?0:r>360?360:r}function Yc(r){return r<0?0:r>1?1:r}function Hy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?la(parseFloat(e)/100*255):la(parseInt(e,10))}function yo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Yc(parseFloat(e)/100):Yc(parseFloat(e))}function Ny(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ao(r,e,t){return r+(e-r)*t}function Un(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function n1(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var kk=new Ml(20),Sh=null;function EA(r,e){Sh&&n1(Sh,e),Sh=kk.put(r,Sh||e.slice())}function hn(r,e){if(r){e=e||[];var t=kk.get(r);if(t)return n1(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in zS)return n1(e,zS[n]),EA(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Un(e,0,0,0,1);return}return Un(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),EA(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Un(e,0,0,0,1);return}return Un(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),EA(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var A=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),u=1;switch(A){case"rgba":if(l.length!==4)return l.length===3?Un(e,+l[0],+l[1],+l[2],1):Un(e,0,0,0,1);u=yo(l.pop());case"rgb":if(l.length>=3)return Un(e,Hy(l[0]),Hy(l[1]),Hy(l[2]),l.length===3?u:yo(l[3])),EA(r,e),e;Un(e,0,0,0,1);return;case"hsla":if(l.length!==4){Un(e,0,0,0,1);return}return l[3]=yo(l[3]),a1(l,e),EA(r,e),e;case"hsl":if(l.length!==3){Un(e,0,0,0,1);return}return a1(l,e),EA(r,e),e;default:return}}Un(e,0,0,0,1)}}function a1(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=yo(r[1]),a=yo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Un(e,la(Ny(o,i,t+1/3)*255),la(Ny(o,i,t)*255),la(Ny(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Z7(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,A,l;if(o===0)A=0,l=0;else{s<.5?l=o/(i+a):l=o/(2-i-a);var u=((i-e)/6+o/2)/o,c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o;e===i?A=f-c:t===i?A=1/3+u-f:n===i&&(A=2/3+c-u),A<0&&(A+=1),A>1&&(A-=1)}var h=[A*360,l,s];return r[3]!=null&&h.push(r[3]),h}}function i1(r,e){var t=hn(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Wa(t,t.length===4?"rgba":"rgb")}}function Vy(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],A=n-a;return t[0]=la(Ao(o[0],s[0],A)),t[1]=la(Ao(o[1],s[1],A)),t[2]=la(Ao(o[2],s[2],A)),t[3]=Yc(Ao(o[3],s[3],A)),t}}function j7(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=hn(e[a]),s=hn(e[i]),A=n-a,l=Wa([la(Ao(o[0],s[0],A)),la(Ao(o[1],s[1],A)),la(Ao(o[2],s[2],A)),Yc(Ao(o[3],s[3],A))],"rgba");return t?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function mo(r,e,t,n){var a=hn(r);if(r)return a=Z7(a),e!=null&&(a[0]=Y7(Me(e)?e(a[0]):e)),t!=null&&(a[1]=yo(Me(t)?t(a[1]):t)),n!=null&&(a[2]=yo(Me(n)?n(a[2]):n)),Wa(a1(a),"rgba")}function $d(r,e){var t=hn(r);if(t&&e!=null)return t[3]=Yc(e),Wa(t,"rgba")}function Wa(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Kd(r,e){var t=hn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var $S=new Ml(100);function o1(r){if(Ce(r)){var e=$S.get(r);return e||(e=i1(r,-.1),$S.put(r,e)),e}else if(dg(r)){var t=ve({},r);return t.colorStops=me(r.colorStops,function(n){return{offset:n.offset,color:i1(n.color,-.1)}}),t}return r}var Wd=Math.round;function Zc(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=hn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var KS=1e-4;function lo(r){return r-KS}function Th(r){return Wd(r*1e3)/1e3}function s1(r){return Wd(r*1e4)/1e4}function J7(r){return"matrix("+Th(r[0])+","+Th(r[1])+","+Th(r[2])+","+Th(r[3])+","+s1(r[4])+","+s1(r[5])+")"}var q7={left:"start",right:"end",center:"middle",middle:"middle"};function e9(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function t9(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function r9(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Rk(r){return r&&!!r.image}function n9(r){return r&&!!r.svgElement}function kC(r){return Rk(r)||n9(r)}function Ok(r){return r.type==="linear"}function Hk(r){return r.type==="radial"}function Nk(r){return r&&(r.type==="linear"||r.type==="radial")}function wg(r){return"url(#"+r+")"}function Vk(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Gk(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*nd,a=Le(r.scaleX,1),i=Le(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,A=[];return(e||t)&&A.push("translate("+e+"px,"+t+"px)"),n&&A.push("rotate("+n+")"),(a!==1||i!==1)&&A.push("scale("+a+","+i+")"),(o||s)&&A.push("skew("+Wd(o*nd)+"deg, "+Wd(s*nd)+"deg)"),A.join(" ")}var a9=function(){return st.hasGlobalWindow&&Me(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}}(),A1=Array.prototype.slice;function vi(r,e,t){return(e-r)*t+r}function Gy(r,e,t,n){for(var a=e.length,i=0;in?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)n.length=o;else for(var A=i;A=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=XS,A=t;if($r(t)){var l=A9(t);s=l,(l===1&&!qe(t[0])||l===2&&!qe(t[0][0]))&&(o=!0)}else if(qe(t)&&!zr(t))s=Lh;else if(Ce(t))if(!isNaN(+t))s=Lh;else{var u=hn(t);u&&(A=u,s=vc)}else if(dg(t)){var c=ve({},A);c.colorStops=me(t.colorStops,function(h){return{offset:h.offset,color:hn(h.color)}}),Ok(t)?s=l1:Hk(t)&&(s=u1),A=c}i===0?this.valType=s:(s!==this.valType||s===XS)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:A,rawValue:t,percent:0};return n&&(f.easing=n,f.easingFunc=Me(n)?n:Lk[n]||PC(n)),a.push(f),f},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,A=Eh(a),l=YS(a),u=0;u=0&&!(o[u].percent<=t);u--);u=f(u,s-2)}else{for(u=c;ut);u++);u=f(u-1,s-2)}v=o[u+1],h=o[u]}if(h&&v){this._lastFr=u,this._lastFrP=t;var p=v.percent-h.percent,g=p===0?1:f((t-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?gu:e[A];if((Eh(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[A]=g<1?h.rawValue:v.rawValue;else if(Eh(i))i===ld?Gy(y,h[a],v[a],g):i9(y,h[a],v[a],g);else if(YS(i)){var m=h[a],w=v[a],B=i===l1;e[A]={type:B?"linear":"radial",x:vi(m.x,w.x,g),y:vi(m.y,w.y,g),colorStops:me(m.colorStops,function(b,_){var x=w.colorStops[_];return{offset:vi(b.offset,x.offset,g),color:Ad(Gy([],b.color,x.color,g))}}),global:w.global},B?(e[A].x2=vi(m.x2,w.x2,g),e[A].y2=vi(m.y2,w.y2,g)):e[A].r=vi(m.r,w.r,g)}else if(l)Gy(y,h[a],v[a],g),n||(e[A]=Ad(y));else{var C=vi(h[a],v[a],g);n?this._additiveValue=C:e[A]=C}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Lh?e[n]=e[n]+a:t===vc?(hn(e[n],gu),Ih(gu,gu,a,1),e[n]=Ad(gu)):t===ld?Ih(e[n],e[n],a,1):t===zk&&WS(e[n],e[n],a,1)},r}(),RC=function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){LC("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}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(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,je(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o0&&A.addKeyframe(0,Dc(l),a),this._trackKeys.push(s)}A.addKeyframe(e,Dc(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.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=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function cl(){return new Date().getTime()}var u9=function(r){Mt(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=cl()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(t1(n),!t._paused&&t.update())}t1(n)},e.prototype.start=function(){this._running||(this._time=cl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=cl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=cl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new RC(t,n.loop);return this.addAnimator(a),a},e}(qn);const c9=u9;var f9=300,zy=st.domSupported,$y=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=me(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}}(),ZS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jS=!1;function c1(r){var e=r.pointerType;return e==="pen"||e==="touch"}function h9(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 Ky(r){r&&(r.zrByTouch=!0)}function v9(r,e){return kn(r.dom,new d9(r,e),!0)}function $k(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var d9=function(){function r(e,t){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),aa={mousedown:function(r){r=kn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kn(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=kn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kn(this.dom,r);var e=r.toElement||r.relatedTarget;$k(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){jS=!0,r=kn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){jS||(r=kn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kn(this.dom,r),Ky(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),aa.mousemove.call(this,r),aa.mousedown.call(this,r)},touchmove:function(r){r=kn(this.dom,r),Ky(r),this.handler.processGesture(r,"change"),aa.mousemove.call(this,r)},touchend:function(r){r=kn(this.dom,r),Ky(r),this.handler.processGesture(r,"end"),aa.mouseup.call(this,r),+new Date-+this.__lastTouchMomenteT||r<-eT}var Wo=[],MA=[],Xy=xr(),Yy=Math.abs,B9=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ko(this.rotation)||Ko(this.x)||Ko(this.y)||Ko(this.scaleX-1)||Ko(this.scaleY-1)||Ko(this.skewX)||Ko(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(qS(n),this.invTransform=null);return}n=n||xr(),t?this.getLocalTransform(n):qS(n),e&&(t?Ka(n,e,n):mg(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wo);var n=Wo[0]<0?-1:1,a=Wo[1]<0?-1:1,i=((Wo[0]-n)*t+n)/Wo[0]||0,o=((Wo[1]-a)*t+a)/Wo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xr(),va(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.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],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-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=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||xr(),Ka(MA,e.invTransform,t),t=MA);var n=this.originX,a=this.originY;(n||a)&&(Xy[4]=n,Xy[5]=a,Ka(MA,t,Xy),MA[4]-=n,MA[5]-=a,t=MA),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=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)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&Yt(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&Yt(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Yy(e[0]-1)>1e-10&&Yy(e[3]-1)>1e-10?Math.sqrt(Yy(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Yd(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,A=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||A){var v=n+s,d=a+A;t[4]=-v*i-f*d*o,t[5]=-d*o-h*v*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,l&&Uo(t,t,l),t[4]+=n+u,t[5]+=a+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Ja=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yd(r,e){for(var t=0;t=tT)){r=r||Si;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=ha.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?Zy=tT:a>2&&Zy++,e}}var Zy=0,tT=5;function Wk(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=C9(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ya(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=ha.measureText(e,r.font).width,t.put(e,n)),n}function rT(r,e,t,n){var a=Ya(Xa(e),r),i=Ff(e),o=Dl(0,a,t),s=Hs(0,i,n),A=new Ne(o,s,a,i);return A}function Bg(r,e,t,n){var a=((r||"")+"").split(` `),i=a.length;if(i===1)return rT(a[0],e,t,n);for(var o=new Ne(0,0,0,0),s=0;s=0?parseFloat(r)/100*e:parseFloat(r):r}function Zd(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,A=t.x,l=t.y,u="left",c="top";if(n instanceof Array)A+=da(n[0],t.width),l+=da(n[1],t.height),u=null,c=null;else switch(n){case"left":A-=a,l+=s,u="right",c="middle";break;case"right":A+=a+o,l+=s,c="middle";break;case"top":A+=o/2,l-=a,u="center",c="bottom";break;case"bottom":A+=o/2,l+=i+a,u="center";break;case"inside":A+=o/2,l+=s,u="center",c="middle";break;case"insideLeft":A+=a,l+=s,c="middle";break;case"insideRight":A+=o-a,l+=s,u="right",c="middle";break;case"insideTop":A+=o/2,l+=a,u="center";break;case"insideBottom":A+=o/2,l+=i-a,u="center",c="bottom";break;case"insideTopLeft":A+=a,l+=a;break;case"insideTopRight":A+=o-a,l+=a,u="right";break;case"insideBottomLeft":A+=a,l+=i-a,c="bottom";break;case"insideBottomRight":A+=o-a,l+=i-a,u="right",c="bottom";break}return r=r||{},r.x=A,r.y=l,r.align=u,r.verticalAlign=c,r}var jy="__zr_normal__",Jy=Ja.concat(["ignore"]),b9=Za(Ja,function(r,e){return r[e]=!0,r},{ignore:!1}),DA={},x9=new Ne(0,0,0,0),Dh=[],OC=function(){function r(e){this.id=yk(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,A=!1;i.parent=a?this:null;var l=!1;i.copyTransform(t);var u=n.position!=null,c=n.autoOverflowArea,f=void 0;if((c||u)&&(f=x9,n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(DA,n,f):Zd(DA,n,f),i.x=DA.x,i.y=DA.y,o=DA.align,s=DA.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=f.width*.5,d=f.height*.5):(v=da(h[0],f.width),d=da(h[1],f.height)),l=!0,i.originX=-i.x+v+(a?0:f.x),i.originY=-i.y+d+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new Ne(0,0,0,0);i.getLocalTransform(Dh),va(Dh,Dh),Ne.copy(y,f),y.applyTransform(Dh)}else g.overflowRect=null;var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,w=void 0,B=void 0,C=void 0;m&&this.canBeInsideText()?(w=n.insideFill,B=n.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(w),C=!0)):(w=n.outsideFill,B=n.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(w),C=!0)),w=w||"#000",(w!==g.fill||B!==g.stroke||C!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(A=!0,g.fill=w,g.stroke=B,g.autoStroke=C,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=wn,A&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?d1:v1},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&hn(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Wa(n,"rgba")},r.prototype.traverse=function(e,t){},r.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||{},ve(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Oe(e))for(var n=e,a=je(n),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(jy,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===jy,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,A=this.stateTransition;if(!($e(s,e)>=0&&(t||s.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i){LC("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&A&&A.duration>0,A);var c=this._textContent,f=this._textGuide;return c&&c.useState(e,t,n,u),f&&f.useState(e,t,n,u),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wn),l}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var A=0;A0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(e,t,f),p&&p.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wn)}},r.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},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=$e(a,e),o=$e(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o0&&t.during&&i[0].during(function(v,d){t.during(d)});for(var f=0;f0||a.force&&!o.length){var _=void 0,x=void 0,S=void 0;if(s){x={},f&&(_={});for(var w=0;w=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=$e(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=$e(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/A*l+o}var Be=P9;function P9(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return jd(r,e,t)}function jd(r,e,t){return Ce(r)?U9(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function er(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Jk),r=(+r).toFixed(e),t?r:+r}function Yn(r){return r.sort(function(e,t){return e-t}),r}function Na(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return k9(r)}function k9(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function qk(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Ha(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function R9(r,e){var t=Za(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=me(r,function(h){return(isNaN(h)?0:h)/t*n*100}),i=n*100,o=me(a,function(h){return Math.floor(h)}),s=Za(o,function(h,v){return h+v},0),A=me(a,function(h,v){return h-o[v]});sl&&(l=A[c],u=c);++o[u],A[u]=0,++s}return me(o,function(h){return h/n})}function O9(r,e){var t=Math.max(Na(r),Na(e)),n=r+e;return t>Jk?n:er(n,t)}var iT=9007199254740991;function eR(r){var e=Math.PI*2;return(r%e+e)%e}function jc(r){return r>-aT&&r=10&&e++,e}function tR(r,e){var t=HC(r),n=Math.pow(10,t),a=r/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function tm(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function oT(r){r.sort(function(A,l){return s(A,l,0)?-1:1});for(var e=-1/0,t=1,n=0;n0?e.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 rm(r){r.option=r.parentModel=r.ecModel=null}var oY=".",Xo="___EC__COMPONENT__CONTAINER___",fR="___EC__EXTENDED_CLASS___";function Va(r){var e={main:"",sub:""};if(r){var t=r.split(oY);e.main=t[0]||"",e.sub=t[1]||""}return e}function sY(r){Kr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function AY(r){return!!(r&&r[fR])}function GC(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return lY(n)?a=function(i){ce(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(t.$constructor||n).apply(this,arguments)},e7(a,this)),ve(a.prototype,t),a[fR]=!0,a.extend=this.extend,a.superCall=fY,a.superApply=hY,a.superClass=n,a}}function lY(r){return Me(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function hR(r,e){r.extend=e.extend}var uY=Math.round(Math.random()*10);function cY(r){var e=["__\0is_clz",uY++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function fY(r,e){for(var t=[],n=2;n=0||i&&$e(i,A)<0)){var l=n.getShallow(A,e);l!=null&&(o[r[s][0]]=l)}}return o}}var vY=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dY=Js(vY),pY=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return dY(this,e,t)},r}(),y1=new Ml(50);function gY(r){if(typeof r=="string"){var e=y1.get(r);return e&&e.image}else return r}function zC(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=y1.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!bg(e)&&i.pending.push(o)):(e=ha.loadImage(r,cT,cT),e.__zrImageSrc=r,y1.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function cT(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=s;l++)A-=s;var u=Ya(o,t);return u>A&&(t="",u=0),A=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=A,a.containerWidth=r,a}function dR(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Ya(i,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var A=s===0?mY(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,A),o=Ya(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function mY(r,e,t){for(var n=0,a=0,i=r.length;ap&&h){var m=Math.floor(p/f);v=v||g.length>m,g=g.slice(0,m),y=g.length*f}if(a&&u&&d!=null)for(var w=vR(d,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),B={},C=0;Cv&&am(i,o.substring(v,p),e,h),am(i,d[2],e,h,d[1]),v=nm.lastIndex}vc){var D=i.lines.length;L>0?(x.tokens=x.tokens.slice(0,L),b(x,I,S),i.lines=i.lines.slice(0,_+1)):i.lines=i.lines.slice(0,_),i.isTruncated=i.isTruncated||i.lines.length0&&v+n.accumWidth>n.width&&(u=e.split(` `),l=!0),n.accumWidth=v}else{var d=pR(e,A,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,c=d.linesWidths,u=d.lines}}u||(u=e.split(` `));for(var p=Xa(A),g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _Y=Za(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function SY(r){return xY(r)?!!_Y[r]:!0}function pR(r,e,t,n,a){for(var i=[],o=[],s="",A="",l=0,u=0,c=Xa(e),f=0;ft:a+u+v>t){u?(s||A)&&(d?(s||(s=A,A="",l=0,u=l),i.push(s),o.push(u-l),A+=h,l+=v,s="",u=l):(A&&(s+=A,A="",l=0),i.push(s),o.push(u),s=h,u=v)):d?(i.push(A),o.push(l),A=h,l=v):(i.push(h),o.push(v));continue}u+=v,d?(A+=h,l+=v):(A&&(s+=A,A="",l=0),s+=h)}return A&&(s+=A),s&&(i.push(s),o.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:o}}function hT(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;Ne.set(vT,Dl(t,o,a),Hs(n,s,i),o,s),Ne.intersect(e,vT,null,dT);var A=dT.outIntersectRect;r.outerWidth=A.width,r.outerHeight=A.height,r.baseX=Dl(A.x,A.width,a,!0),r.baseY=Hs(A.y,A.height,i,!0)}}var vT=new Ne(0,0,0,0),dT={outIntersectRect:{},clamp:!0};function $C(r){return r!=null?r+="":r=""}function TY(r){var e=$C(r.text),t=r.font,n=Ya(Xa(t),e),a=Ff(t);return m1(r,n,a,null)}function m1(r,e,t,n){var a=new Ne(Dl(r.x||0,e,r.textAlign),Hs(r.y||0,t,r.textBaseline),e,t),i=n??(gR(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function gR(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var w1="__zr_style_"+Math.round(Math.random()*10),Ns={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},xg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ns[w1]=!0;var pT=["z","z2","invisible"],IY=["invisible"],LY=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=je(t),a=0;a1e-4){s[0]=r-t,s[1]=e-n,A[0]=r+t,A[1]=e+n;return}if(Fh[0]=Am(a)*t+r,Fh[1]=sm(a)*n+e,Qh[0]=Am(i)*t+r,Qh[1]=sm(i)*n+e,l(s,Fh,Qh),u(A,Fh,Qh),a=a%Yo,a<0&&(a=a+Yo),i=i%Yo,i<0&&(i=i+Yo),a>i&&!o?i+=Yo:aa&&(Uh[0]=Am(h)*t+r,Uh[1]=sm(h)*n+e,l(s,Uh,s),u(A,Uh,A))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zo=[],jo=[],Ta=[],Ri=[],Ia=[],La=[],lm=Math.min,um=Math.max,Jo=Math.cos,qo=Math.sin,li=Math.abs,B1=Math.PI,Zi=B1*2,cm=typeof Float32Array<"u",yu=[];function fm(r){var e=Math.round(r/B1*1e8)/1e8;return e%2*B1}function Sg(r,e){var t=fm(r[0]);t<0&&(t+=Zi);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Zi?a=t+Zi:e&&t-a>=Zi?a=t-Zi:!e&&t>a?a=t+(Zi-fm(t-a)):e&&t0&&(this._ux=li(n/Xd/e)||0,this._uy=li(n/Xd/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(mt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=li(e-this._xi),a=li(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(mt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(mt.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(mt.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),yu[0]=a,yu[1]=i,Sg(yu,o),a=yu[0],i=yu[1];var s=i-a;return this.addData(mt.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=Jo(i)*n+e,this._yi=qo(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(mt.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&cm&&(this.data=new Float32Array(t));for(var n=0;n0&&o))for(var s=0;su.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Ta[0]=Ta[1]=Ia[0]=Ia[1]=Number.MAX_VALUE,Ri[0]=Ri[1]=La[0]=La[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;on||li(m)>a||f===t-1)&&(d=Math.sqrt(y*y+m*m),i=p,o=g);break}case mt.C:{var w=e[f++],B=e[f++],p=e[f++],g=e[f++],C=e[f++],b=e[f++];d=N7(i,o,w,B,p,g,C,b,10),i=C,o=b;break}case mt.Q:{var w=e[f++],B=e[f++],p=e[f++],g=e[f++];d=G7(i,o,w,B,p,g,10),i=p,o=g;break}case mt.A:var _=e[f++],x=e[f++],S=e[f++],I=e[f++],L=e[f++],T=e[f++],M=T+L;f+=1,v&&(s=Jo(L)*S+_,A=qo(L)*I+x),d=um(S,I)*lm(Zi,Math.abs(T)),i=Jo(M)*S+_,o=qo(M)*I+x;break;case mt.R:{s=i=e[f++],A=o=e[f++];var R=e[f++],P=e[f++];d=R*2+P*2;break}case mt.Z:{var y=s-i,m=A-o;d=Math.sqrt(y*y+m*m),i=s,o=A;break}}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,A,l,u,c,f,h=t<1,v,d,p=0,g=0,y,m=0,w,B;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var C=0;C0&&(e.lineTo(w,B),m=0),b){case mt.M:s=l=n[C++],A=u=n[C++],e.moveTo(l,u);break;case mt.L:{c=n[C++],f=n[C++];var x=li(c-l),S=li(f-u);if(x>a||S>i){if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;e.lineTo(l*(1-L)+c*L,u*(1-L)+f*L);break e}p+=I}e.lineTo(c,f),l=c,u=f,m=0}else{var T=x*x+S*S;T>m&&(w=c,B=f,m=T)}break}case mt.C:{var M=n[C++],R=n[C++],P=n[C++],E=n[C++],k=n[C++],D=n[C++];if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;So(l,M,P,k,L,Zo),So(u,R,E,D,L,jo),e.bezierCurveTo(Zo[1],jo[1],Zo[2],jo[2],Zo[3],jo[3]);break e}p+=I}e.bezierCurveTo(M,R,P,E,k,D),l=k,u=D;break}case mt.Q:{var M=n[C++],R=n[C++],P=n[C++],E=n[C++];if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;Xc(l,M,P,L,Zo),Xc(u,R,E,L,jo),e.quadraticCurveTo(Zo[1],jo[1],Zo[2],jo[2]);break e}p+=I}e.quadraticCurveTo(M,R,P,E),l=P,u=E;break}case mt.A:var U=n[C++],O=n[C++],G=n[C++],X=n[C++],te=n[C++],ne=n[C++],ye=n[C++],re=!n[C++],W=G>X?G:X,ee=li(G-X)>.001,oe=te+ne,H=!1;if(h){var I=v[g++];p+I>y&&(oe=te+ne*(y-p)/I,H=!0),p+=I}if(ee&&e.ellipse?e.ellipse(U,O,G,X,ye,te,oe,re):e.arc(U,O,W,te,oe,re),H)break e;_&&(s=Jo(te)*G+U,A=qo(te)*X+O),l=Jo(oe)*G+U,u=qo(oe)*X+O;break;case mt.R:s=l=n[C],A=u=n[C+1],c=n[C++],f=n[C++];var N=n[C++],K=n[C++];if(h){var I=v[g++];if(p+I>y){var $=y-p;e.moveTo(c,f),e.lineTo(c+lm($,N),f),$-=N,$>0&&e.lineTo(c+N,f+lm($,K)),$-=K,$>0&&e.lineTo(c+um(N-$,0),f+K),$-=N,$>0&&e.lineTo(c,f+um(K-$,0));break e}p+=I}e.rect(c,f,N,K);break;case mt.Z:if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;e.lineTo(l*(1-L)+s*L,u*(1-L)+A*L);break e}p+=I}e.closePath(),l=s,u=A}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function qi(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,A=0,l=r;if(o>e+s&&o>n+s||or+s&&i>t+s||ie+c&&u>n+c&&u>i+c&&u>s+c||ur+c&&l>t+c&&l>a+c&&l>o+c||le+l&&A>n+l&&A>i+l||Ar+l&&s>t+l&&s>a+l||st||u+la&&(a+=mu);var f=Math.atan2(A,s);return f<0&&(f+=mu),f>=n&&f<=a||f+mu>=n&&f+mu<=a}function di(r,e,t,n,a,i){if(i>e&&i>n||ia?s:0}var Oi=qa.CMD,es=Math.PI*2,PY=1e-4;function kY(r,e){return Math.abs(r-e)e&&l>n&&l>i&&l>s||l1&&RY(),h=dr(e,n,i,s,On[0]),f>1&&(v=dr(e,n,i,s,On[1]))),f===2?pe&&s>n&&s>i||s=0&&l<=1){for(var u=0,c=Cr(e,n,i,l),f=0;ft||s<-t)return 0;var A=Math.sqrt(t*t-s*s);qr[0]=-A,qr[1]=A;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=es-1e-4){n=0,a=es;var u=i?1:-1;return o>=qr[0]+r&&o<=qr[1]+r?u:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=es,a+=es);for(var f=0,h=0;h<2;h++){var v=qr[h];if(v+r>o){var d=Math.atan2(s,v),u=i?1:-1;d<0&&(d=es+d),(d>=n&&d<=a||d+es>=n&&d+es<=a)&&(d>Math.PI/2&&d1&&(t||(s+=di(A,l,u,c,n,a))),p&&(A=i[v],l=i[v+1],u=A,c=l),d){case Oi.M:u=i[v++],c=i[v++],A=u,l=c;break;case Oi.L:if(t){if(qi(A,l,i[v],i[v+1],e,n,a))return!0}else s+=di(A,l,i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.C:if(t){if(QY(A,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=OY(A,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.Q:if(t){if(yR(A,l,i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=HY(A,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],B=i[v++],C=i[v++];v+=1;var b=!!(1-i[v++]);f=Math.cos(B)*m+g,h=Math.sin(B)*w+y,p?(u=f,c=h):s+=di(A,l,f,h,n,a);var _=(n-g)*w/m+g;if(t){if(UY(g,y,w,B,B+C,b,e,_,a))return!0}else s+=NY(g,y,w,B,B+C,b,_,a);A=Math.cos(B+C)*m+g,l=Math.sin(B+C)*w+y;break;case Oi.R:u=A=i[v++],c=l=i[v++];var x=i[v++],S=i[v++];if(f=u+x,h=c+S,t){if(qi(u,c,f,c,e,n,a)||qi(f,c,f,h,e,n,a)||qi(f,h,u,h,e,n,a)||qi(u,h,u,c,e,n,a))return!0}else s+=di(f,c,f,h,n,a),s+=di(u,h,u,c,n,a);break;case Oi.Z:if(t){if(qi(A,l,u,c,e,n,a))return!0}else s+=di(A,l,u,c,n,a);A=u,l=c;break}}return!t&&!kY(l,c)&&(s+=di(A,l,u,c,n,a)||0),s!==0}function VY(r,e,t){return mR(r,0,!1,e,t)}function GY(r,e,t,n){return mR(r,e,!0,t,n)}var Jd=Re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ns),zY={style:Re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},xg.style)},hm=Ja.concat(["invisible","culling","z","z2","zlevel","parent"]),$Y=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(A){t.buildPath(A,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s.5?v1:n>.2?w9:d1}else if(t)return d1}return v1},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(Ce(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Kd(t,0)0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&il)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var A=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}A>1e-10&&(s.width+=l/A,s.height+=l/A,s.x-=l/A/2,s.y-=l/A/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){var s=this.path;if(this.hasStroke()){var A=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(A=Math.max(A,this.strokeContainThreshold)),GY(s,A/l,t,n)))return!0}if(this.hasFill())return VY(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=il,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:ve(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&il)},e.prototype.createStyle=function(t){return gg(Jd,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=ve({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var A=!(n&&i),l;if(n&&n.shape?o?i?l=n.shape:(l=ve({},a.shape),ve(l,n.shape)):(l=ve({},i?this.shape:a.shape),ve(l,n.shape)):A&&(l=a.shape),l)if(o){this.shape=ve({},this.shape);for(var u={},c=je(l),f=0;fa&&(c=s+A,s*=a/c,A*=a/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),A+l>i&&(c=A+l,A*=i/c,l*=i/c),s+u>i&&(c=s+u,s*=i/c,u*=i/c),r.moveTo(t+s,n),r.lineTo(t+a-A,n),A!==0&&r.arc(t+a-A,n+A,A,-Math.PI/2,0),r.lineTo(t+a,n+i-l),l!==0&&r.arc(t+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(t+u,n+i),u!==0&&r.arc(t+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var fl=Math.round;function Tg(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(fl(n*2)===fl(a*2)&&(r.x1=r.x2=Cn(n,s,!0)),fl(i*2)===fl(o*2)&&(r.y1=r.y2=Cn(i,s,!0))),r}}function CR(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Cn(n,s,!0),r.y=Cn(a,s,!0),r.width=Math.max(Cn(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Cn(a+o,s,!1)-r.y,o===0?0:1)),r}}function Cn(r,e,t){if(!e)return r;var n=fl(r*2);return(n+fl(e))%2===0?n/2:(n+(t?1:-1))/2}var jY=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),JY={},bR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jY},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var A=CR(JY,n,this.style);a=A.x,i=A.y,o=A.width,s=A.height,A.r=n.r,n=A}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?ZY(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ze);bR.prototype.type="rect";const Xe=bR;var BT={fill:"#000"},CT=2,Ea={},qY={style:Re({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},xg.style)},xR=function(r){Mt(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=BT,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=0;L=0&&(M=C[T],M.align==="right");)this._placeToken(M,t,_,g,L,"right",m),x-=M.width,L-=M.width,T--;for(I+=(u-(I-p)-(y-L)-x)/2;S<=T;)M=C[S],this._placeToken(M,t,_,g,I+M.width/2,"center",m),I+=M.width,S++;g+=_}},e.prototype._placeToken=function(t,n,a,i,o,s,A){var l=n.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=i+a/2;u==="top"?c=i+t.height/2:u==="bottom"&&(c=i+a-t.height/2);var f=!t.isLineHolder&&vm(l);f&&this._renderBackground(l,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var h=!!l.backgroundColor,v=t.textPadding;v&&(o=IT(o,s,v),c-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(qc),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=!1,B=TT("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),C=ST("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!A&&(!g.autoStroke||y)?(m=CT,w=!0,g.stroke):null),b=l.textShadowBlur>0||n.textShadowBlur>0;p.text=t.text,p.x=o,p.y=c,b&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=t.font||Si,p.opacity=bn(l.opacity,n.opacity,1),xT(p,l),C&&(p.lineWidth=bn(l.lineWidth,n.lineWidth,m),p.lineDash=Le(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=C),B&&(p.fill=B),d.setBoundingRect(m1(p,t.contentWidth,t.contentHeight,w?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var A=t.backgroundColor,l=t.borderWidth,u=t.borderColor,c=A&&A.image,f=A&&!c,h=t.borderRadius,v=this,d,p;if(f||t.lineHeight||l&&u){d=this._getOrCreateChild(Xe),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(f){var y=d.style;y.fill=A||null,y.fillOpacity=Le(t.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Ur),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=A.image,m.x=a,m.y=i,m.width=o,m.height=s}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=Le(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=bn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return SR(t)&&(n=[t.fontStyle,t.fontWeight,_R(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Xn(n)||t.textFont||t.font},e}(jn),eZ={left:!0,right:1,center:1},tZ={top:1,bottom:1,middle:1},bT=["fontStyle","fontWeight","fontSize","fontFamily"];function _R(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?SC+"px":r+"px"}function xT(r,e){for(var t=0;t=0,i=!1;if(r instanceof Ze){var o=TR(r),s=a&&o.selectFill||o.normalFill,A=a&&o.selectStroke||o.normalStroke;if(FA(s)||FA(A)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=ve({},n),l=ve({},l),l.fill=s):!FA(l.fill)&&FA(s)?(i=!0,n=ve({},n),l=ve({},l),l.fill=o1(s)):!FA(l.stroke)&&FA(A)&&(i||(n=ve({},n),l=ve({},l)),l.stroke=o1(A)),n.style=l}}if(n&&n.z2==null){i||(n=ve({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Jl)}return n}function AZ(r,e,t){if(t&&t.z2==null){t=ve({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??nZ)}return t}function lZ(r,e,t){var n=$e(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:oZ(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=ve({},t),o=ve({opacity:n?a:i.opacity*.1},o),t.style=o),t}function dm(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return sZ(this,r,e,t);if(r==="blur")return lZ(this,r,t);if(r==="select")return AZ(this,r,t)}return t}function qs(r){r.stateProxy=dm;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=dm),t&&(t.stateProxy=dm)}function FT(r,e){!QR(r,e)&&!r.__highByOuter&&Ui(r,IR)}function QT(r,e){!QR(r,e)&&!r.__highByOuter&&Ui(r,LR)}function Li(r,e){r.__highByOuter|=1<<(e||0),Ui(r,IR)}function Ei(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ui(r,LR)}function MR(r){Ui(r,YC)}function ZC(r){Ui(r,ER)}function DR(r){Ui(r,aZ)}function FR(r){Ui(r,iZ)}function QR(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function UR(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=KC(i),s=a==="series",A=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(A),o.isBlured&&(A.group.traverse(function(l){ER(l)}),s&&t.push(i)),o.isBlured=!1}),F(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function x1(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(l,u){for(var c=0;c0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Gs(r,e,t){Ms(r,!0),Ui(r,qs),S1(r,e,t)}function dZ(r){Ms(r,!1)}function Qt(r,e,t,n){n?dZ(r):Gs(r,e,t)}function S1(r,e,t){var n=Ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var PT=["emphasis","blur","select"],pZ={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cr(r,e,t,n){t=t||"itemStyle";for(var a=0;a1&&(o*=pm(v),s*=pm(v));var d=(a===i?-1:1)*pm((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,p=d*o*h/s,g=d*-s*f/o,y=(r+t)/2+kh(c)*p-Ph(c)*g,m=(e+n)/2+Ph(c)*p+kh(c)*g,w=HT([1,0],[(f-p)/o,(h-g)/s]),B=[(f-p)/o,(h-g)/s],C=[(-1*f-p)/o,(-1*h-g)/s],b=HT(B,C);if(I1(B,C)<=-1&&(b=wu),I1(B,C)>=1&&(b=0),b<0){var _=Math.round(b/wu*1e6)/1e6;b=wu*2+_%2*wu}u.addData(l,y,m,o,s,w,b,c,i)}var CZ=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xZ(r){var e=new qa;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=qa.CMD,A=r.match(CZ);if(!A)return e;for(var l=0;lM*M+R*R&&(_=S,x=I),{cx:_,cy:x,x0:-u,y0:-c,x1:_*(a/B-1),y1:x*(a/B-1)}}function MZ(r){var e;if(ge(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function DZ(r,e){var t,n=dc(e.r,0),a=dc(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var A=e.startAngle,l=e.endAngle;if(!(isNaN(A)||isNaN(l))){var u=e.cx,c=e.cy,f=!!e.clockwise,h=VT(l-A),v=h>gm&&h%gm;if(v>na&&(h=v),!(n>na))r.moveTo(u,c);else if(h>gm-na)r.moveTo(u+n*UA(A),c+n*ts(A)),r.arc(u,c,n,A,l,!f),a>na&&(r.moveTo(u+a*UA(l),c+a*ts(l)),r.arc(u,c,a,l,A,f));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,B=void 0,C=void 0,b=void 0,_=void 0,x=void 0,S=void 0,I=void 0,L=void 0,T=void 0,M=void 0,R=n*UA(A),P=n*ts(A),E=a*UA(l),k=a*ts(l),D=h>na;if(D){var U=e.cornerRadius;U&&(t=MZ(U),d=t[0],p=t[1],g=t[2],y=t[3]);var O=VT(n-a)/2;if(m=Ma(O,g),w=Ma(O,y),B=Ma(O,d),C=Ma(O,p),x=b=dc(m,w),S=_=dc(B,C),(b>na||_>na)&&(I=n*UA(l),L=n*ts(l),T=a*UA(A),M=a*ts(A),hna){var ee=Ma(g,x),oe=Ma(y,x),H=Rh(T,M,R,P,n,ee,f),N=Rh(I,L,E,k,n,oe,f);r.moveTo(u+H.cx+H.x0,c+H.cy+H.y0),x0&&r.arc(u+H.cx,c+H.cy,ee,kr(H.y0,H.x0),kr(H.y1,H.x1),!f),r.arc(u,c,n,kr(H.cy+H.y1,H.cx+H.x1),kr(N.cy+N.y1,N.cx+N.x1),!f),oe>0&&r.arc(u+N.cx,c+N.cy,oe,kr(N.y1,N.x1),kr(N.y0,N.x0),!f))}else r.moveTo(u+R,c+P),r.arc(u,c,n,A,l,!f);if(!(a>na)||!D)r.lineTo(u+E,c+k);else if(S>na){var ee=Ma(d,S),oe=Ma(p,S),H=Rh(E,k,I,L,a,-oe,f),N=Rh(R,P,T,M,a,-ee,f);r.lineTo(u+H.cx+H.x0,c+H.cy+H.y0),S<_&&ee===oe?r.arc(u+H.cx,c+H.cy,S,kr(H.y0,H.x0),kr(N.y0,N.x0),!f):(oe>0&&r.arc(u+H.cx,c+H.cy,oe,kr(H.y0,H.x0),kr(H.y1,H.x1),!f),r.arc(u,c,a,kr(H.cy+H.y1,H.cx+H.x1),kr(N.cy+N.y1,N.cx+N.x1),f),ee>0&&r.arc(u+N.cx,c+N.cy,ee,kr(N.y1,N.x1),kr(N.y0,N.x0),!f))}else r.lineTo(u+E,c+k),r.arc(u,c,a,l,A,f)}r.closePath()}}}var FZ=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),zR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FZ},e.prototype.buildPath=function(t,n){DZ(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ze);zR.prototype.type="sector";const nn=zR;var QZ=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),$R=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QZ},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e}(Ze);$R.prototype.type="ring";const Eg=$R;function UZ(r,e,t,n){var a=[],i=[],o=[],s=[],A,l,u,c;if(n){u=[1/0,1/0],c=[-1/0,-1/0];for(var f=0,h=r.length;f=2){if(n){var i=UZ(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var A=i[s*2],l=i[s*2+1],u=a[(s+1)%o];r.bezierCurveTo(A[0],A[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;sns[1]){if(i=!1,Br.negativeSize||n)return i;var A=Oh(ns[0]-rs[1]),l=Oh(rs[0]-ns[1]);ym(A,l)>Nh.len()&&(A=l||!Br.bidirectional)&&(ke.scale(Hh,s,-l*a),Br.useDir&&Br.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,A=o,l=1;l0){var c=u.duration,f=u.delay,h=u.easing,v={duration:c,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!l,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function at(r,e,t,n,a,i){tb("update",r,e,t,n,a,i)}function Lt(r,e,t,n,a,i){tb("enter",r,e,t,n,a,i)}function Cl(r){if(!r.__zr)return!0;for(var e=0;eHa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function $T(r){return!r.isGroup}function rj(r){return r.shape!=null}function Uf(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(A){$T(A)&&A.anid&&(s[A.anid]=A)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rj(o)&&(s.shape=De(o.shape)),s}var i=n(r);e.traverse(function(o){if($T(o)&&o.anid){var s=i[o.anid];if(s){var A=a(o);o.attr(a(s)),at(o,A,t,Ve(o).dataIndex)}}})}function iO(r,e){return me(r,function(t){var n=t[0];n=Wt(n,e.x),n=xn(n,e.x+e.width);var a=t[1];return a=Wt(a,e.y),a=xn(a,e.y+e.height),[n,a]})}function nj(r,e){var t=Wt(r.x,e.x),n=xn(r.x+r.width,e.x+e.width),a=Wt(r.y,e.y),i=xn(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Pf(r,e,t){var n=ve({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Re(a,t),new Ur(n)):rf(r.replace("path://",""),n,t,"center")}function pc(r,e,t,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=mm(h,v,u,c)/f;return!(p<0||p>1)}function mm(r,e,t,n){return r*n-t*e}function aj(r){return r<=1e-6&&r>=-1e-6}function eA(r,e,t,n,a){return e==null||(qe(e)?Rt[0]=Rt[1]=Rt[2]=Rt[3]=e:(Rt[0]=e[0],Rt[1]=e[1],Rt[2]=e[2],Rt[3]=e[3]),n&&(Rt[0]=Wt(0,Rt[0]),Rt[1]=Wt(0,Rt[1]),Rt[2]=Wt(0,Rt[2]),Rt[3]=Wt(0,Rt[3])),t&&(Rt[0]=-Rt[0],Rt[1]=-Rt[1],Rt[2]=-Rt[2],Rt[3]=-Rt[3]),KT(r,Rt,"x","width",3,1,a&&a[0]||0),KT(r,Rt,"y","height",0,2,a&&a[1]||0)),r}var Rt=[0,0,0,0];function KT(r,e,t,n,a,i,o){var s=e[i]+e[a],A=r[n];r[n]+=s,o=Wt(0,xn(o,A)),r[n]=0?-e[a]:e[i]>=0?A+e[i]:Ha(s)>1e-8?(A-o)*e[a]/s:0):r[t]-=e[a]}function Pi(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=Ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var A=r.formatterParamsExtra;A&&F(je(A),function(u){Se(s,u)||(s[u]=A[u],s.$vars.push(u))});var l=Ve(r.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:Re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function E1(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ko(r,e){if(r)if(ge(r))for(var t=0;te&&(e=o),oe&&(t=e=0),{min:t,max:e}}function Qg(r,e,t){AO(r,e,t,-1/0)}function AO(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),A=0;A=0&&s.push(A)}),s}}function Ro(r,e){return Ke(Ke({},r,!0),e,!0)}const gj={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:". "}}}},yj={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 ap="ZH",ib="EN",bl=ib,vd={},ob={},vO=st.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bl).toUpperCase();return r.indexOf(ap)>-1?ap:bl}():bl;function dO(r,e){r=r.toUpperCase(),ob[r]=new ot(e),vd[r]=e}function mj(r){if(Ce(r)){var e=vd[r.toUpperCase()]||{};return r===ap||r===ib?De(e):Ke(De(e),De(vd[bl]),!1)}else return Ke(De(r),De(vd[bl]),!1)}function D1(r){return ob[r]}function wj(){return ob[bl]}dO(ib,gj);dO(ap,yj);var F1=null;function Bj(r){F1||(F1=r)}function tr(){return F1}var sb=1e3,Ab=sb*60,Uc=Ab*60,$n=Uc*24,jT=$n*365,Cj={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})/},dd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},bj="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gh="{yyyy}-{MM}-{dd}",JT={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gh,hour:Gh+" "+dd.hour,minute:Gh+" "+dd.minute,second:Gh+" "+dd.second,millisecond:bj},yn=["year","month","day","hour","minute","second","millisecond"],xj=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _j(r){return!Ce(r)&&!Me(r)?Sj(r):r}function Sj(r){r=r||{};var e={},t=!0;return F(yn,function(n){t&&(t=r[n]==null)}),F(yn,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var A=yn[s],l=Oe(i)&&!ge(i)?i[A]:i,u=void 0;ge(l)?(u=l.slice(),o=u[0]||""):Ce(l)?(o=l,u=[o]):(o==null?o=dd[n]:Cj[A].test(o)||(o=e[A][A][0]+" "+o),u=[o],t&&(u[1]="{primary|"+o+"}")),e[n][A]=u}}),e}function Hi(r,e){return r+="","0000".substr(0,e-r.length)+r}function Pc(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 Tj(r){return r===Pc(r)}function Ij(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Pg(r,e,t,n){var a=sA(r),i=a[pO(t)](),o=a[lb(t)]()+1,s=Math.floor((o-1)/3)+1,A=a[ub(t)](),l=a["get"+(t?"UTC":"")+"Day"](),u=a[cb(t)](),c=(u-1)%12+1,f=a[fb(t)](),h=a[hb(t)](),v=a[vb(t)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof ot?n:D1(n||vO)||wj(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),B=y.get("dayOfWeek"),C=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Hi(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Hi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Hi(A,2)).replace(/{d}/g,A+"").replace(/{eeee}/g,B[l]).replace(/{ee}/g,C[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Hi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Hi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Hi(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Hi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Hi(v,3)).replace(/{S}/g,v+"")}function Lj(r,e,t,n,a){var i=null;if(Ce(t))i=t;else if(Me(t)){var o={time:r.time,level:r.time.level},s=tr();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var A=r.time;if(A){var l=t[A.lowerTimeUnit][A.upperTimeUnit];i=l[Math.min(A.level,l.length-1)]||""}else{var u=vl(r.value,a);i=t[u][u][0]}}return Pg(new Date(r.value),i,a,n)}function vl(r,e){var t=sA(r),n=t[lb(e)]()+1,a=t[ub(e)](),i=t[cb(e)](),o=t[fb(e)](),s=t[hb(e)](),A=t[vb(e)](),l=A===0,u=l&&s===0,c=u&&o===0,f=c&&i===0,h=f&&a===1,v=h&&n===1;return v?"year":h?"month":f?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Q1(r,e,t){switch(e){case"year":r[gO(t)](0);case"month":r[yO(t)](1);case"day":r[mO(t)](0);case"hour":r[wO(t)](0);case"minute":r[BO(t)](0);case"second":r[CO(t)](0)}return r}function pO(r){return r?"getUTCFullYear":"getFullYear"}function lb(r){return r?"getUTCMonth":"getMonth"}function ub(r){return r?"getUTCDate":"getDate"}function cb(r){return r?"getUTCHours":"getHours"}function fb(r){return r?"getUTCMinutes":"getMinutes"}function hb(r){return r?"getUTCSeconds":"getSeconds"}function vb(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Ej(r){return r?"setUTCFullYear":"setFullYear"}function gO(r){return r?"setUTCMonth":"setMonth"}function yO(r){return r?"setUTCDate":"setDate"}function mO(r){return r?"setUTCHours":"setHours"}function wO(r){return r?"setUTCMinutes":"setMinutes"}function BO(r){return r?"setUTCSeconds":"setSeconds"}function CO(r){return r?"setUTCMilliseconds":"setMilliseconds"}function bO(r){if(!rR(r))return Ce(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function xO(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var kf=pg;function U1(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&Xn(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var o=e==="time",s=r instanceof Date;if(o||s){var A=o?sA(r):r;if(isNaN(+A)){if(s)return"-"}else return Pg(A,n,t)}if(e==="ordinal")return zw(r)?a(r):qe(r)&&i(r)?r+"":"-";var l=Ii(r);return i(l)?bO(l):zw(r)?a(r):typeof r=="boolean"?r+"":"-"}var qT=["a","b","c","d","e","f","g"],Cm=function(r,e){return"{"+r+(e??"")+"}"};function _O(r,e,t){ge(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rA(r,e){return e=e||"transparent",Ce(r)?r:Oe(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function ip(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var pd={},bm={},Rf=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(pd),this._normalMasterList=n(bm);function n(a,i){var o=[];return F(a,function(s,A){var l=s.create(e,t);o=o.concat(l||[])}),o}},r.prototype.update=function(e,t){F(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){pd[e]=t;return}bm[e]=t},r.get=function(e){return bm[e]||pd[e]},r}();function Fj(r){return!!pd[r]}var P1={coord:1,coord2:2};function Qj(r){SO.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var SO=Ie();function Uj(r){var e=r.getShallow("coord",!0),t=P1.coord;if(e==null){var n=SO.get(r.type);n&&n.getCoord2&&(t=P1.coord2,e=n.getCoord2(r))}return{coord:e,from:t}}var Ra={none:0,dataCoordSys:1,boxCoordSys:2};function TO(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=Ra.none;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Ra.dataCoordSys,i||(a=Ra.none)):n==="box"&&(a=Ra.boxCoordSys,!i&&!Fj(t)&&(a=Ra.none))}return{coordSysType:t,kind:a}}function Of(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=TO(e),o=i.kind,s=i.coordSysType;if(a&&o!==Ra.dataCoordSys&&(o=Ra.dataCoordSys,s=t),o===Ra.none||s!==t)return!1;var A=n(t,e);return A?(o===Ra.dataCoordSys?e.coordinateSystem=A:e.boxCoordinateSystem=A,!0):!1}var IO=function(r,e){var t=e.getReferringComponents(r,zt).models[0];return t&&t.coordinateSystem},gd=F,LO=["left","right","top","bottom","width","height"],Ds=[["width","left","right"],["height","top","bottom"]];function db(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(A,l){var u=A.getBoundingRect(),c=e.childAt(l+1),f=c&&c.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(f?-f.x+u.x:0);h=i+d,h>n||A.newline?(i=0,h=d,o+=s+t,s=u.height):s=Math.max(s,u.height)}else{var p=u.height+(f?-f.y+u.y:0);v=o+p,v>a||A.newline?(i+=s+t,o=0,v=p,s=u.width):s=Math.max(s,u.width)}A.newline||(A.x=i,A.y=o,A.markRedraw(),r==="horizontal"?i=h+t:o=v+t)})}var $s=db;ze(db,"vertical");ze(db,"horizontal");function EO(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function Pj(r,e){var t=hr(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===gc.point)i=t.refPoint,a=Ut(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=ge(o)?o:[o,o];a=Ut(n,t.refContainer),i=t.boxCoordFrom===P1.coord2?t.refPoint:[Be(s[0],a.width)+a.x,Be(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function MO(r,e){var t=Pj(r,e),n=t.viewRect,a=t.center,i=r.get("radius");ge(i)||(i=[0,i]);var o=Be(n.width,e.getWidth()),s=Be(n.height,e.getHeight()),A=Math.min(o,s),l=Be(i[0],A/2),u=Be(i[1],A/2);return{cx:a[0],cy:a[1],r0:l,r:u,viewRect:n}}function Ut(r,e,t){t=kf(t||0);var n=e.width,a=e.height,i=Be(r.left,n),o=Be(r.top,a),s=Be(r.right,n),A=Be(r.bottom,a),l=Be(r.width,n),u=Be(r.height,a),c=t[2]+t[0],f=t[1]+t[3],h=r.aspect;switch(isNaN(l)&&(l=n-s-f-i),isNaN(u)&&(u=a-A-c-o),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-s-l-f),isNaN(o)&&(o=a-A-u-c),r.left||r.right){case"center":i=n/2-l/2-t[3];break;case"right":i=n-l-f;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-u/2-t[0];break;case"bottom":o=a-u-c;break}i=i||0,o=o||0,isNaN(l)&&(l=n-f-i-(s||0)),isNaN(u)&&(u=a-c-o-(A||0));var v=new Ne((e.x||0)+i+t[3],(e.y||0)+o+t[0],l,u);return v.margin=t,v}function DO(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},A=n==="cover";return a>t&&!A||a=d)return c;for(var p=0;p=0;A--)s=Ke(s,a[A],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return jl(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return EO(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(ot);hR(ru,ot);Cg(ru);dj(ru);pj(ru,Oj);function Oj(r){var e=[];return F(ru.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=me(e,function(t){return Va(t).main}),r!=="dataset"&&$e(e,"dataset")<=0&&e.unshift("dataset"),e}const et=ru;var Fs={color:{},darkColor:{},size:{}},$t=Fs.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)"};ve($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});for(var as in $t)if($t.hasOwnProperty(as)){var eI=$t[as];as==="theme"?Fs.darkColor.theme=$t.theme.slice():as==="highlight"?Fs.darkColor.highlight="rgba(255,231,130,0.4)":as.indexOf("accent")===0?Fs.darkColor[as]=mo(eI,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Fs.darkColor[as]=mo(eI,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Fs.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const le=Fs;var QO="";typeof navigator<"u"&&(QO=navigator.platform||"");var PA="rgba(0, 0, 0, 0.2)",UO=le.color.theme[0],Hj=mo(UO,null,null,.9);const Nj={darkMode:"auto",colorBy:"series",color:le.color.theme,gradientColor:[Hj,UO],aria:{decal:{decals:[{color:PA,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:PA,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:PA,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:PA,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:PA,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:PA,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QO.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 PO=Ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sn="original",_r="arrayRows",Tn="objectRows",wa="keyedColumns",Bo="typedArray",kO="unknown",ca="column",fA="row",Ir={Must:1,Might:2,Not:3},RO=Ye();function Vj(r){RO(r).datasetMap=Ie()}function OO(r,e,t){var n={},a=gb(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,A=RO(s).datasetMap,l=a.uid+"_"+t.seriesLayoutBy,u,c;r=r.slice(),F(r,function(d,p){var g=Oe(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,c=v(g)),n[g.name]=[]});var f=A.get(l)||A.set(l,{categoryWayDim:c,valueWayDim:0});F(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=f.valueWayDim;h(n[g],m,y),h(o,m,y),f.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=f.categoryWayDim;h(n[g],m,y),h(o,m,y),f.categoryWayDim+=y}});function h(d,p,g){for(var y=0;ye)return r[n];return r[t-1]}function VO(r,e,t,n,a,i,o){i=i||r;var s=e(i),A=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=o==null||!n?t:Wj(n,o);if(u=u||t,!(!u||!u.length)){var c=u[A];return a&&(l[a]=c),s.paletteIdx=(A+1)%u.length,c}}function Xj(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var zh,Bu,rI,nI="\0_ec_inner",Yj=1,GO=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ot(i),this._locale=new ot(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=oI(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,oI(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?rI(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var A=i.getMediaOption(this);A.length&&F(A,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],A=Ie(),l=n&&n.replaceMergeMainTypeMap;Vj(this),F(t,function(c,f){c!=null&&(et.hasClass(f)?f&&(s.push(f),A.set(f,!0)):a[f]=a[f]==null?De(c):Ke(a[f],c,!0))}),l&&l.each(function(c,f){et.hasClass(f)&&!A.get(f)&&(s.push(f),A.set(f,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),u,this);function u(c){var f=$j(this,c,gt(t[c])),h=i.get(c),v=h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=AR(h,f,v);q9(d,c,et),a[c]=null,i.set(c,null),o.set(c,0);var p=[],g=[],y=0,m;F(d,function(w,B){var C=w.existing,b=w.newOption;if(!b)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var _=c==="series",x=et.getClass(c,w.keyInfo.subType,!_);if(!x)return;if(c==="tooltip"){if(m)return;m=!0}if(C&&C.constructor===x)C.name=w.keyInfo.name,C.mergeOption(b,this),C.optionUpdated(b,!1);else{var S=ve({componentIndex:B},w.keyInfo);C=new x(b,this,this,S),ve(C,S),w.brandNew&&(C.__requireNewView=!0),C.init(b,this,this),C.optionUpdated(null,!0)}}C?(p.push(C.option),g.push(C),y++):(p.push(void 0),g.push(void 0))},this),a[c]=p,i.set(c,g),o.set(c,y),c==="series"&&zh(this)}this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=De(this.option);return F(t,function(n,a){if(et.hasClass(a)){for(var i=gt(n),o=i.length,s=!1,A=o-1;A>=0;A--)i[A]&&!Jc(i[A])?s=!0:(i[A]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[nI],t},e.prototype.setTheme=function(t){this._theme=new ot(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function iJ(r,e){return r.join(",")===e.join(",")}const oJ=tJ;var ta=F,of=Oe,sI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function xm(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=sI.length;t0?t[o-1].seriesModel:null)}),dJ(t)}})}function dJ(r){F(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,A=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,u,c){var f=o.get(e.stackedDimension,c);if(isNaN(f))return a;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,p=t-1;p>=0;p--){var g=r[p];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(A==="all"||A==="positive"&&y>0||A==="negative"&&y<0||A==="samesign"&&f>=0&&y>0||A==="samesign"&&f<=0&&y<0){f=O9(f,y),d=y;break}}}return n[0]=f,n[1]=d,n})})}var Rg=function(){function r(e){this.data=e.data||(e.sourceFormat===wa?{}:[]),this.sourceFormat=e.sourceFormat||kO,this.seriesLayoutBy=e.seriesLayoutBy||ca,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;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};vI=(e={},e[_r+"_"+ca]={pure:!0,appendData:i},e[_r+"_"+fA]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tn]={pure:!0,appendData:i},e[wa]={pure:!0,appendData:function(o){var s=this._data;F(o,function(A,l){for(var u=s[l]||(s[l]=[]),c=0;c<(A||[]).length;c++)u.push(A[c])})}},e[Sn]={appendData:i},e[Bo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Ql(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function yI(r){var e,t;return Oe(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function kc(r){return new bJ(r)}var bJ=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=u(this._modBy),s=this._modDataCount||0,A=u(e&&e.modBy),l=e&&e.modDataCount||0;(o!==A||s!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=A,this._modDataCount=l;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(c||h1&&n>0?s:o}};return i;function o(){return e=r?null:Ae},gte:function(r,e){return r>=e}},_J=function(){function r(e,t){if(!qe(t)){var n="";At(n)}this._opFn=tH[e],this._rvalFloat=Ii(t)}return r.prototype.evaluate=function(e){return qe(e)?this._opFn(e,this._rvalFloat):this._opFn(Ii(e),this._rvalFloat)},r}(),rH=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=qe(e)?e:Ii(e),a=qe(t)?t:Ii(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ce(e),A=Ce(t);s&&(n=A?e:0),A&&(a=s?t:0)}return na?-this._resultLT:0},r}(),SJ=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ii(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=Ii(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function TJ(r,e){return r==="eq"||r==="ne"?new SJ(r==="eq",e):Se(tH,r)?new _J(r,e):null}var IJ=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Co(e,t)},r}();function LJ(r,e){var t=new IJ,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ca&&At(o);var s=[],A={},l=r.dimensionsDefine;if(l)F(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(s.push(y),g!=null){var m="";Se(A,g)&&At(m),A[g]=y}});else for(var u=0;u65535?kJ:RJ}function RA(){return[1/0,-1/0]}function OJ(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function BI(r,e,t,n,a){var i=iH[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var A=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=A,{start:s,end:A}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,A=this._rawExtent,l=me(o,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.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=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i=c&&y<=f||isNaN(y))&&(A[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=e[a[1]][0],B=e[a[1]][1],g=0;g=c&&y<=f||isNaN(y))&&(C>=w&&C<=B||isNaN(C))&&(A[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=c&&y<=f||isNaN(y))&&(A[l++]=b)}else for(var g=0;ge[S][1])&&(_=!1)}_&&(A[l++]=t.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,A=Math.floor(1/t),l=this.getRawIndex(0),u,c,f,h=new(kA(this._rawCount))(Math.min((Math.ceil(o/A)+2)*2,o));h[s++]=l;for(var v=1;vu&&(u=c,f=w)}I>0&&Is&&(d=s-u);for(var p=0;pv&&(v=y,h=u+p)}var m=this.getRawIndex(c),w=this.getRawIndex(h);cu-v&&(A=u-v,s.length=A);for(var d=0;dc[1]&&(c[1]=g),f[h++]=y}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();iA&&(A=c)}return o=[s,A],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,a,i){return Co(t[i],this._dimensions[i])}Tm={arrayRows:e,objectRows:function(t,n,a,i){return Co(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Co(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}}(),r}(),oH=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(Kh(e)){var o=e,s=void 0,A=void 0,l=void 0;if(n){var u=t[0];u.prepareSource(),l=u.getSource(),s=l.data,A=l.sourceFormat,i=[u._getVersionSign()]}else s=o.get("data",!0),A=vn(s)?Bo:Sn,i=[];var c=this._getSourceMetaRawOption()||{},f=l&&l.metaRawOption||{},h=Le(c.seriesLayoutBy,f.seriesLayoutBy)||null,v=Le(c.sourceHeader,f.sourceHeader),d=Le(c.dimensions,f.dimensions),p=h!==f.seriesLayoutBy||!!v!=!!f.sourceHeader||d;a=p?[O1(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},A)]:[]}else{var g=e;if(n){var y=this._applyTransform(t);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[O1(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&bI(i)}var o,s=[],A=[];return F(e,function(l){l.prepareSource();var u=l.getSource(a||0),c="";a!=null&&!u&&bI(c),s.push(u),A.push(l._getVersionSign())}),n?o=UJ(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[pJ(s[0])]),{sourceList:o,upstreamSignList:A}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return F(r.blocks,function(a){var i=uH(a);i>=e&&(e=i+ +(n&&(!i||N1(a)&&!a.noHeader)))}),e}return 0}function GJ(r,e,t,n){var a=e.noHeader,i=$J(uH(e)),o=[],s=e.blocks||[];Kr(!s||ge(s)),s=s||[];var A=r.orderMode;if(e.sortBlocks&&A){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Se(l,A)){var u=new rH(l[A],null);s.sort(function(d,p){return u.evaluate(d.sortParam,p.sortParam)})}else A==="seriesDesc"&&s.reverse()}F(s,function(d,p){var g=e.valueFormatter,y=lH(d)(g?ve(ve({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):V1(n,o.join(""),a?t:i.html);if(a)return c;var f=U1(e.header,"ordinal",r.useUTC),h=AH(n,r.renderMode).nameStyle,v=sH(n);return r.renderMode==="richText"?cH(r,f,h)+i.richText+c:V1(n,'
'+Vr(f)+"
"+c,t)}function zJ(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,A=e.name,l=r.useUTC,u=e.valueFormatter||r.valueFormatter||function(w){return w=ge(w)?w:[w],me(w,function(B,C){return U1(B,ge(h)?h[C]:h,l)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||le.color.secondary,a),f=i?"":U1(A,"ordinal",l),h=e.valueType,v=o?[]:u(e.value,e.dataIndex),d=!s||!i,p=!s&&i,g=AH(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(s?"":c)+(i?"":cH(r,f,y))+(o?"":XJ(r,v,d,p,m)):V1(n,(s?"":c)+(i?"":KJ(f,!s,y))+(o?"":WJ(v,d,p,m)),t)}}function xI(r,e,t,n,a,i){if(r){var o=lH(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function $J(r){return{html:NJ[r],richText:VJ[r]}}function V1(r,e,t){var n='
',a="margin: "+t+"px 0 0",i=sH(r);return'
'+e+n+"
"}function KJ(r,e,t){var n=e?"margin-left:2px":"";return''+Vr(r)+""}function WJ(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=ge(r)?r:[r],''+me(r,function(o){return Vr(o)}).join("  ")+""}function cH(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function XJ(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ge(e)?e.join(" "):e,i)}function fH(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return rA(n)}function hH(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Im=function(){function r(){this.richTextStyles={},this._nextStyleNameId=nR()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=Dj({color:t,type:e,renderMode:n,markerId:a});return Ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};ge(t)?F(t,function(i){return ve(n,i)}):ve(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function vH(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),A=ge(s),l=fH(e,t),u,c,f,h;if(o>1||A&&!o){var v=YJ(s,e,t,i,l);u=v.inlineValues,c=v.inlineValueTypes,f=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(i[0]);h=u=Ql(a,t,i[0]),c=d.type}else h=u=A?s[0]:s;var p=NC(e),g=p&&e.name||"",y=a.getName(t),m=n?g:y;return nr("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[nr("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Xn(m),value:u,valueType:c,dataIndex:t})].concat(f||[])})}function YJ(r,e,t,n,a){var i=e.getData(),o=Za(r,function(c,f,h){var v=i.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],A=[],l=[];n.length?F(n,function(c){u(Ql(i,t,c),c)}):F(r,u);function u(c,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?l.push(nr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),A.push(h.type)))}return{inlineValues:s,inlineValueTypes:A,blocks:l}}var Ni=Ye();function Wh(r,e){return r.getName(e)||r.getId(e)}var yd="__universalTransitionEnabled",Ng=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=kc({count:jJ,reset:JJ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Ni(this).sourceManager=new oH(this);i.prepareSource();var o=this.getInitialData(t,a);SI(o,this),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=af(this),i=a?cA(t):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Ke(t,n.getTheme().get(this.subType)),Ke(t,this.getDefaultOption()),Zs(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&ei(t,i,a)},e.prototype.mergeOption=function(t,n){t=Ke(this.option,t,!0),this.fillDataTextStyle(t.data);var a=af(this);a&&ei(this.option,t,a);var i=Ni(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);SI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!vn(t))for(var n=["show"],a=0;a=0&&f<0)&&(c=y,f=g,h=0),g===f&&(u[h++]=d))}),u.length=h,u},e.prototype.formatTooltip=function(t,n,a){return vH({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(st.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=yb.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Wh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yd])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,A=n.length;if(!(!s||!A)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Oe(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u0&&this._innerSelect(t,n)}},e.registerClass=function(t){return et.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(et);ir(Ng,Og);ir(Ng,yb);hR(Ng,et);function _I(r){var e=r.name;NC(r)||(r.name=ZJ(r)||e)}function ZJ(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return F(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function jJ(r){return r.model.getRawData().count()}function JJ(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),qJ}function qJ(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function SI(r,e){F(Wc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ze(eq,e))})}function eq(r,e){var t=G1(r);return t&&t.setOutputEnd((e||this).count()),e}function G1(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const Pt=Ng;var bb=function(){function r(){this.group=new Fe,this.uid=tu("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();GC(bb);Cg(bb);const Nt=bb;function nu(){var r=Ye();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var dH=Ye(),tq=nu(),xb=function(){function r(){this.group=new Fe,this.uid=tu("viewChart"),this.renderTask=kc({plan:rq,reset:nq}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&II(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&II(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){ko(this.group,e)},r.markUpdateMethod=function(e,t){dH(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function TI(r,e,t){r&&tf(r)&&(e==="emphasis"?Li:Ei)(r,t)}function II(r,e,t){var n=js(r,e),a=e&&e.highlightKey!=null?yZ(e.highlightKey):null;n!=null?F(gt(n),function(i){TI(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){TI(i,t,a)})}GC(xb);Cg(xb);function rq(r){return tq(r.model)}function nq(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&dH(a).updateMethod,A=i?"incrementalPrepareRender":s&&o[s]?s:"render";return A!=="render"&&o[A](e,t,n,a),aq[A]}var aq={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const bt=xb;var op="\0__throttleOriginMethod",LI="\0__throttleRate",EI="\0__throttleType";function _b(r,e,t){var n,a=0,i=0,o=null,s,A,l,u;e=e||0;function c(){i=new Date().getTime(),o=null,r.apply(A,l||[])}var f=function(){for(var h=[],v=0;v=0?c():o=setTimeout(c,-s),a=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){u=h},f}function au(r,e,t,n){var a=r[e];if(a){var i=a[op]||a,o=a[EI],s=a[LI];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=_b(i,t,n==="debounce"),a[op]=i,a[EI]=n,a[LI]=t}return a}}function sf(r,e){var t=r[e];t&&t[op]&&(t.clear&&t.clear(),r[e]=t[op])}var MI=Ye(),DI={itemStyle:Js(hO,!0),lineStyle:Js(fO,!0)},iq={lineStyle:"stroke",itemStyle:"fill"};function pH(r,e){var t=r.visualStyleMapper||DI[e];return t||(console.warn("Unknown style type '"+e+"'."),DI.itemStyle)}function gH(r,e){var t=r.visualDrawType||iq[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var oq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=pH(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var A=gH(r,n),l=o[A],u=Me(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[A]||u||c){var f=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[A]||(o[A]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",A),!e.isSeriesFiltered(r)&&u)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=ve({},o);p[A]=u(d),h.setItemVisual(v,"style",p)}}}},bu=new ot,sq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=pH(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var A=o.getRawDataItem(s);if(A&&A[n]){bu.option=A[n];var l=a(bu),u=o.ensureUniqueItemVisual(s,"style");ve(u,l),bu.option.decal&&(o.setItemVisual(s,"decal",bu.option.decal),bu.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Aq={performRawSeries:!0,overallReset:function(r){var e=Ie();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),MI(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=MI(t).scope,s=t.visualStyleAccessPath||"itemStyle",A=gH(t,s);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],c=i.getItemVisual(u,"colorFromPalette");if(c){var f=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();f[A]=t.getColorFromPalette(h,o,v)}})}})}},Xh=Math.PI;function lq(r,e){e=e||{},Re(e,{text:"loading",textColor:le.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:le.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Fe,n=new Xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new nt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Xe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new eb({shape:{startAngle:-Xh/2,endAngle:-Xh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xh*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,A=e.showSpinner?e.spinnerRadius:0,l=(r.getWidth()-A*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:A),u=r.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:u}),i.setShape({x:l-A,y:u-A,width:A*2,height:A*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var uq=function(){function r(e,t,n,a){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,A=s!=null?Math.ceil(s/o):null;return{step:o,modBy:A,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),A=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:A,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Ie();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Kr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;F(e,function(A,l){if(!(a.visualType&&a.visualType!==A.visualType)){var u=o._stageTaskMap.get(A.uid),c=u.seriesTaskMap,f=u.overallTask;if(f){var h,v=f.agentStubMap;v.each(function(p){s(a,p)&&(p.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,n);var d=o.getPerformArgs(f,a.block);v.each(function(p){p.perform(d)}),f.perform(d)&&(i=!0)}else c&&c.each(function(p,g){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!A.performRawSeries&&t.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function s(A,l){return A.setDirty&&(!A.dirtyMap||A.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.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)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Ie(),A=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(u):A?n.eachRawSeriesByType(A,u):l&&l(n,a).each(u);function u(c){var f=c.uid,h=s.set(f,o&&o.get(f)||kc({plan:dq,reset:pq,count:yq}));h.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||kc({reset:cq});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,A=o.agentStubMap=Ie(),l=e.seriesType,u=e.getTargetSeries,c=!0,f=!1,h="";Kr(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(c=!1,F(n.getSeries(),v));function v(d){var p=d.uid,g=A.set(p,s&&s.get(p)||(f=!0,kc({reset:fq,onDirty:vq})));g.context={model:d,overallProgress:c},g.agent=o,g.__block=c,i._pipe(d,g)}f&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Me(e)&&(e={overallReset:e,seriesType:mq(e)}),e.uid=tu("stageHandler"),t&&(e.visualType=t),e},r}();function cq(r){r.overallReset(r.ecModel,r.api,r.payload)}function fq(r){return r.overallProgress&&hq}function hq(){this.agent.dirty(),this.getDownstream().dirty()}function vq(){this.agent&&this.agent.dirty()}function dq(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function pq(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=gt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?me(e,function(t,n){return yH(n)}):gq}var gq=yH(0);function yH(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i0&&h===l.length-f.length){var v=l.slice(0,h);v!=="data"&&(t.mainType=v,t[f.toLowerCase()]=A,u=!0)}}s.hasOwnProperty(l)&&(n[l]=A,u=!0),u||(a[l]=A)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var A=t.cptQuery,l=t.dataQuery;return u(A,o,"mainType")&&u(A,o,"subType")&&u(A,o,"index","componentIndex")&&u(A,o,"name")&&u(A,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function u(c,f,h,v){return c[h]==null||f[v||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),z1=["symbol","symbolSize","symbolRotate","symbolOffset"],QI=z1.concat(["symbolKeepAspect"]),bq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&Us(A)?A:.5;var l=r.createRadialGradient(o,s,0,o,s,A);return l}function $1(r,e,t){for(var n=e.type==="radial"?Oq(r,e,t):Rq(r,e,t),a=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:qe(r)?[r]:ge(r)?r:null}function Tb(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Nq(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=me(t,function(i){return i/a}),n/=a)}return[t,n]}var Vq=new qa(!0);function lp(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function UI(r){return typeof r=="string"&&r!=="none"}function up(r){var e=r.fill;return e!=null&&e!=="none"}function PI(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function kI(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function K1(r,e,t){var n=zC(e.image,e.__image,t);if(bg(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*nd),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Gq(r,e,t,n){var a,i=lp(t),o=up(t),s=t.strokePercent,A=s<1,l=!e.path;(!e.silent||A)&&l&&e.createPathProxy();var u=e.path||Vq,c=e.__dirty;if(!n){var f=t.fill,h=t.stroke,v=o&&!!f.colorStops,d=i&&!!h.colorStops,p=o&&!!f.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,B=void 0,C=void 0;(v||d)&&(C=e.getBoundingRect()),v&&(y=c?$1(r,f,C):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(m=c?$1(r,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),p&&(w=c||!e.__canvasFillPattern?K1(r,f,e):e.__canvasFillPattern,e.__canvasFillPattern=w),g&&(B=c||!e.__canvasStrokePattern?K1(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=B),v?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),d?r.strokeStyle=m:g&&(B?r.strokeStyle=B:i=!1)}var b=e.getGlobalScale();u.setScale(b[0],b[1],e.segmentIgnoreThreshold);var _,x;r.setLineDash&&t.lineDash&&(a=Tb(e),_=a[0],x=a[1]);var S=!0;(l||c&il)&&(u.setDPR(r.dpr),A?u.setContext(null):(u.setContext(r),S=!1),u.reset(),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),S&&u.rebuildPath(r,A?s:1),_&&(r.setLineDash(_),r.lineDashOffset=x),n||(t.strokeFirst?(i&&kI(r,t),o&&PI(r,t)):(o&&PI(r,t),i&&kI(r,t))),_&&r.setLineDash([])}function zq(r,e,t){var n=e.__image=zC(t.image,e.__image,e,e.onload);if(!(!n||!bg(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),A=n.width/n.height;if(o==null&&s!=null?o=s*A:s==null&&o!=null?s=o/A:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var l=t.sx||0,u=t.sy||0;r.drawImage(n,l,u,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var l=t.sx,u=t.sy,c=o-l,f=s-u;r.drawImage(n,l,u,c,f,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function $q(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Si,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Tb(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(lp(t)&&r.strokeText(a,t.x,t.y),up(t)&&r.fillText(a,t.x,t.y)):(up(t)&&r.fillText(a,t.x,t.y),lp(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var RI=["shadowBlur","shadowOffsetX","shadowOffsetY"],OI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _H(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){cn(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Ns.opacity:o}(n||e.blend!==t.blend)&&(i||(cn(r,a),i=!0),r.globalCompositeOperation=e.blend||Ns.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[or]){if(this._disposed){this.id;return}var i,o,s;if(Oe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[or]=!0,VA(this),!this._model||n){var A=new oJ(this._api),l=this._theme,u=this._model=new zO;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,A)}this._model.setOption(t,{replaceMerge:o},Z1);var c={seriesTransition:s,optionChanged:!0};if(a)this[mr]={silent:i,updateParams:c},this[or]=!1,this.getZr().wakeUp();else{try{ls(this),ci.update.call(this,null,c)}catch(f){throw this[mr]=null,this[or]=!1,f}this._ssr||this._zr.flush(),this[mr]=null,this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[or]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[mr]&&(i==null&&(i=this[mr].silent),o=this[mr].updateParams,this[mr]=null),this[or]=!0,VA(this);try{this._updateTheme(t),a.setTheme(this._theme),ls(this),ci.update.call(this,{type:"setTheme"},o)}catch(s){throw this[or]=!1,s}this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype._updateTheme=function(t){Ce(t)&&(t=GH[t]),t&&(t=De(t),t&&WO(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||st.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return F(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;F(n,function(A){a.eachComponent({mainType:A},function(l){var u=o._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return F(i,function(A){A.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(e2[a]){var A=s,l=s,u=-s,c=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();F(Rc,function(m,w){if(m.group===a){var B=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(De(t)),C=m.getDom().getBoundingClientRect();A=i(C.left,A),l=i(C.top,l),u=o(C.right,u),c=o(C.bottom,c),f.push({dom:B,left:C.left,top:C.top})}}),A*=h,l*=h,u*=h,c*=h;var v=u-A,d=c-l,p=ha.createCanvas(),g=nT(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return F(f,function(m){var w=m.left-A,B=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new Xe({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),F(f,function(m){var w=new Ur({style:{x:m.left*h-A,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Jh(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Jh(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Jh(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Bl(a,t);return F(o,function(s,A){A.indexOf("Models")>=0&&F(s,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(A==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Bl(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),A=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return A!=null?Sb(s,A,n):Hf(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;F(mee,function(a){var i=function(o){var s=t.getModel(),A=o.target,l,u=a==="globalout";if(u?l={}:A&&Qs(A,function(d){var p=Ve(d);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,A)||{},!0}else if(p.eventData)return l=ve({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&s.getComponent(c,f),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=a,t._$eventProcessor.eventInfo={targetEl:A,packedEvent:l,model:h,view:v},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;F(X1,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),_q(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&uR(this.getDom(),Eb,"");var n=this,a=n._api,i=n._model;F(n._componentsViews,function(o){o.dispose(i,a)}),F(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Rc[n.id]},e.prototype.resize=function(t){if(!this[or]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[mr]&&(i==null&&(i=this[mr].silent),a=!0,this[mr]=null),this[or]=!0,VA(this);try{a&&ls(this),ci.update.call(this,{type:"resize",animation:ve({duration:0},t&&t.animation)})}catch(o){throw this[or]=!1,o}this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Oe(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!j1[t]){var a=j1[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=ve({},t);return n.type=W1[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Oe(n)||(n={silent:!!n}),!!cp[t.type]&&this._model){if(this[or]){this._pendingActions.push(t);return}var a=n.silent;Qm.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&st.browser.weChat&&this._throttledZrFlush(),HA.call(this,a),NA.call(this,a)}},e.prototype.updateLabelLayout=function(){ia.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ls=function(c){var f=c._scheduler;f.restorePipelines(c._model),f.prepareStageTasks(),Dm(c,!0),Dm(c,!1),f.plan()},Dm=function(c,f){for(var h=c._model,v=c._scheduler,d=f?c._componentsViews:c._chartsViews,p=f?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,m=0;mf.get("hoverLayerThreshold")&&!st.node&&!st.worker&&f.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=c._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(c,f){var h=c.get("blendMode")||null;f.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function A(c,f){if(!c.preventAutoZ){var h=tA(c);f.eachRendered(function(v){return Qg(v,h.z,h.zlevel),!0})}}function l(c,f){f.eachRendered(function(h){if(!Cl(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(c,f){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),p=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cl(g))return;if(g instanceof Ze&&mZ(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&i(g)}})}JI=function(c){return new(function(f){ce(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Li(v,d),Dn(c)},h.prototype.leaveEmphasis=function(v,d){Ei(v,d),Dn(c)},h.prototype.enterBlur=function(v){MR(v),Dn(c)},h.prototype.leaveBlur=function(v){ZC(v),Dn(c)},h.prototype.enterSelect=function(v){DR(v),Dn(c)},h.prototype.leaveSelect=function(v){FR(v),Dn(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getMainProcessVersion=function(){return c[Zh]},h}($O))(c)},NH=function(c){function f(h,v){for(var d=0;d=0)){t2.push(t);var i=BH.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function XH(r,e){j1[r]=e}function See(r,e,t){var n=ree("registerMap");n&&n(r,e,t)}var Tee=QJ;vA(Ib,oq);vA(Vg,sq);vA(Vg,Aq);vA(Ib,bq);vA(Vg,xq);vA(UH,qq);KH(WO);WH(see,vJ);XH("default",lq);ai({type:Vs,event:Vs,update:Vs},Xt);ai({type:fd,event:fd,update:fd},Xt);ai({type:qd,event:XC,update:qd,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});ai({type:b1,event:XC,update:b1,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});ai({type:ep,event:XC,update:ep,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});function Fb(r,e,t,n){return{eventContent:{selected:vZ(t),isFromClick:e.isFromClick||!1}}}$H("default",{});$H("dark",Bq);var r2=[],Iee={registerPreprocessor:KH,registerProcessor:WH,registerPostInit:Cee,registerPostUpdate:bee,registerUpdateLifecycle:Mb,registerAction:ai,registerCoordinateSystem:xee,registerLayout:_ee,registerVisual:vA,registerTransform:Tee,registerLoading:XH,registerMap:See,registerImpl:tee,PRIORITY:pee,ComponentModel:et,ComponentView:Nt,SeriesModel:Pt,ChartView:bt,registerComponentModel:function(r){et.registerClass(r)},registerComponentView:function(r){Nt.registerClass(r)},registerSeriesModel:function(r){Pt.registerClass(r)},registerChartView:function(r){bt.registerClass(r)},registerCustomSeries:function(r,e){nee(r,e)},registerSubTypeDefaulter:function(r,e){et.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){D9(r,e)}};function We(r){if(ge(r)){F(r,function(e){We(e)});return}$e(r2,r)>=0||(r2.push(r),Me(r)&&(r={install:r}),r.install(Iee))}function _u(r){return r==null?0:r.length||1}function n2(r){return r}var Lee=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||n2,this._newKeyGetter=a||n2,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o1){var u=A.shift();A.length===1&&(n[s]=A[0]),this._update&&this._update(u,o)}else l===1?(n[s]=null,this._update&&this._update(A,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[A]=null;else if(c===1&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[A]=null;else if(c===1&&f===1)this._update&&this._update(u,l),a[A]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[A]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var Su=Oe,Vi=me,Pee=typeof Int32Array>"u"?Array:Int32Array,kee="e\0\0",a2=-1,Ree=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Oee=["_approximateExtent"],i2,ev,Tu,Iu,km,Lu,Rm,Hee=function(){function r(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,a=!1;ZH(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},A=!1,l={},u=0;u=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,A=s===Sn;if(A&&!a.pure)for(var l=[],u=e;u0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),ge(i)?i=i.slice():Su(i)&&(i=ve({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Su(t)?ve(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Su(e)?ve(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?ve(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;C1(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){F(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Vi(this.dimensions,this._getDimInfo,this),this.hostModel)),km(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(MC(arguments)))})},r.internalField=function(){i2=function(e){var t=e._invertedIndicesMap;F(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new Pee(o.categories.length);for(var A=0;A1&&(A+="__ec__"+u),a[t]=A}}}(),r}();const tn=Hee;function Nf(r,e){mb(r)||(r=wb(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=Ie(),i=[],o=Vee(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qH(o),A=n===r.dimensionsDefine,l=A?JH(r):jH(n),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(r,o));for(var c=Ie(u),f=new aH(o),h=0;h0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function Vee(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return F(e,function(i){var o;Oe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Gee(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var zee=function(){function r(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return r}();function $ee(r){var e=r.get("coordinateSystem"),t=new zee(e),n=Kee[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var Kee={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",zt).models[0],i=r.getReferringComponents("yAxis",zt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),GA(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),GA(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",zt).models[0];e.coordSysDims=["single"],t.set("single",a),GA(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",zt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),GA(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),GA(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();F(i.parallelAxisIndex,function(s,A){var l=a.getComponent("parallelAxis",s),u=o[A];t.set(u,l),GA(l)&&(n.set(u,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=A))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",zt).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function GA(r){return r.get("type")==="category"}function Wee(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;Xee(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var A=!!(r&&r.get("stack")),l,u,c,f;if(F(i,function(y,m){Ce(y)&&(i[m]=y={name:y}),A&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){c="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;F(i,function(y){y.coordDim===h&&d++});var p={name:c,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:f,coordDim:f,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(f,v),g.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:c}}function Xee(r){return!ZH(r.schema)}function Io(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function e4(r,e){return Io(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Yee(r,e){var t=r.get("coordinateSystem"),n=Rf.get(t),a;return e&&e.coordSysDims&&(a=me(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var A=s.get("type");o.type=hp(A)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Zee(r,e,t){var n,a;return t&&F(r,function(i,o){var s=i.coordDim,A=t.categoryAxisMap.get(s);A&&(n==null&&(n=o),i.ordinalMeta=A.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ki(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=wb(r)):(a=n.getSource(),i=a.sourceFormat===Sn);var o=$ee(e),s=Yee(e,o),A=t.useEncodeDefaulter,l=Me(A)?A:A?ze(OO,s,e):null,u={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},c=Nf(a,u),f=Zee(c.dimensions,t.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),v=Wee(e,{schema:c,store:h}),d=new tn(c,e);d.setCalculationInfo(v);var p=f!=null&&jee(a)?function(g,y,m,w){return w===f?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function jee(r){if(r.sourceFormat===Sn){var e=Jee(r.data||[]);return!ge(Zl(e))}}function Jee(r){for(var e=0;ea&&(o=i.interval=a);var s=i.intervalPrecision=uf(o),A=i.niceTickExtent=[er(Math.ceil(r[0]/o)*o,s),er(Math.floor(r[1]/o)*o,s)];return ete(A,r),i}function Om(r){var e=Math.pow(10,HC(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,er(t*e)}function uf(r){return Na(r)+2}function o2(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function ete(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),o2(r,0,e),o2(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Qb(r,e){return r>=e[0]&&r<=e[1]}var tte=function(){function r(){this.normalize=s2,this.scale=A2}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=be(e.normalize,e),this.scale=be(e.scale,e)):(this.normalize=s2,this.scale=A2)},r}();function s2(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function A2(r,e){return r*(e[1]-e[0])+e[0]}function q1(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var t4=function(){function r(e){this._calculator=new tte,this._setting=e||{},this._extent=[1/0,-1/0];var t=tr();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.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)},r.prototype.setBreaksFromOption=function(e){var t=tr();t&&this._innerSetBreak(t.parseAxisBreakOption(e,be(this.parse,this)))},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),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(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Cg(t4);const dA=t4;var rte=0,nte=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rte,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&me(n,ate);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Ce(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 a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Ie(this.categories))},r}();function ate(r){return Oe(r)&&r.value!=null?r.value:r+""}const cf=nte;var r4=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new cf({})),ge(a)&&(a=new cf({categories:me(a,function(i){return Oe(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:Ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Qb(t,this._extent)&&t>=0&&t=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(dA);dA.registerClass(r4);const ff=r4;var Gi=er,n4=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Qb(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=uf(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=tr(),A=[];if(!n)return A;if(t.breakTicks==="only_break"&&s)return s.addBreaksToTicks(A,this._brkCtx.breaks,this._extent),A;var l=1e4;a[0]=0&&(c=Gi(c+f*n,o))}if(A.length>0&&c===A[A.length-1].value)break;if(A.length>l)return[]}var h=A.length?A[A.length-1].value:i[1];return a[1]>h&&(t.expandToNicedExtent?A.push({value:Gi(h+n,o)}):A.push({value:a[1]})),s&&s.pruneTicksByBreak(t.pruneByBreak,A,this._brkCtx.breaks,function(v){return v.value},this._interval,this._extent),t.breakTicks!=="none"&&s&&s.addBreaksToTicks(A,this._brkCtx.breaks,this._extent),A},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function o4(r){var e=ste(r),t=[];return F(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var A=i.dim+"_"+i.index,l=e[A],u=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),f=Math.abs(c[1]-c[0]);s=l?u/f*l:u}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=Be(n.get("barWidth"),s),d=Be(n.get("barMaxWidth"),s),p=Be(n.get("barMinWidth")||(c4(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),m=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:m,axisKey:Pb(i),stackId:Ub(n)})}),s4(t)}function s4(r){var e={};F(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},A=s.stacks;e[i]=s;var l=n.stackId;A[l]||s.autoWidthCount++,A[l]=A[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!A[l].width&&(A[l].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var c=n.barMaxWidth;c&&(A[l].maxWidth=c);var f=n.barMinWidth;f&&(A[l].minWidth=f);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return F(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var A=je(i).length;s=Math.max(35-A*4,15)+"%"}var l=Be(s,o),u=Be(n.gap,1),c=n.remainedWidth,f=n.autoWidthCount,h=(c-l)/(f+(f-1)*u);h=Math.max(h,0),F(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,c-=w+u*w,f--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,c-=w+u*w,f--)}}),h=(c-l)/(f+(f-1)*u),h=Math.max(h,0);var v=0,d;F(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;F(i,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+u)})}),t}function Ate(r,e,t){if(r&&e){var n=r[Pb(e)];return n!=null&&t!=null?n[Ub(t)]:n}}function A4(r,e){var t=i4(r,e),n=o4(t);F(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),A=Ub(a),l=n[Pb(s)][A],u=l.offset,c=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:c})})}function l4(r){return{seriesType:r,plan:nu(),reset:function(e){if(u4(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),A=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Io(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=lte(a,i),v=c4(e),d=e.get("barMinHeight")||0,p=u&&t.getDimensionIndex(u),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(m,w){for(var B=m.count,C=v&&Ga(B*3),b=v&&A&&Ga(B*3),_=v&&Ga(B),x=n.master.getRect(),S=f?x.width:x.height,I,L=w.getStore(),T=0;(I=m.next())!=null;){var M=L.get(c?p:o,I),R=L.get(s,I),P=h,E=void 0;c&&(E=+M-L.get(o,I));var k=void 0,D=void 0,U=void 0,O=void 0;if(f){var G=n.dataToPoint([M,R]);if(c){var X=n.dataToPoint([E,R]);P=X[0]}k=P,D=G[1]+y,U=G[0]-P,O=g,Math.abs(U)0?t:1:t))}var ute=function(r,e,t,n){for(;t>>1;r[a][1]a&&(this._approxInterval=a);var o=tv.length,s=Math.min(ute(tv,this._approxInterval,0,o),o-1);this._interval=tv[s][1],this._intervalPrecision=uf(this._interval),this._minLevelUnit=tv[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return qe(t)?t:+sA(t)},e.prototype.contain=function(t){return Qb(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Lo),tv=[["second",sb],["minute",Ab],["hour",Uc],["quarter-day",Uc*6],["half-day",Uc*12],["day",$n*1.2],["half-week",$n*3.5],["week",$n*7],["month",$n*31],["quarter",$n*95],["half-year",jT/2],["year",jT]];function h4(r,e,t,n){return Q1(new Date(e),r,n).getTime()===Q1(new Date(t),r,n).getTime()}function cte(r,e){return r/=$n,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fte(r){var e=30*$n;return r/=e,r>6?6:r>3?3:r>2?2:1}function hte(r){return r/=Uc,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function l2(r,e){return r/=e?Ab:sb,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vte(r){return tR(r,!0)}function dte(r,e,t){var n=Math.max(0,$e(yn,e)-1);return Q1(new Date(r),yn[n],t).getTime()}function pte(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function gte(r,e,t,n,a,i){var o=1e4,s=xj,A=0;function l(T,M,R,P,E,k,D){for(var U=pte(E,T),O=M,G=new Date(O);Oo));)if(G[E](G[P]()+T),O=G.getTime(),i){var X=i.calcNiceTickMultiple(O,U);X>0&&(G[E](G[P]()+X*T),O=G.getTime())}D.push({value:O,notAdd:!0})}function u(T,M,R){var P=[],E=!M.length;if(!h4(Pc(T),n[0],n[1],t)){E&&(M=[{value:dte(n[0],T,t)},{value:n[1]}]);for(var k=0;k=n[0]&&D<=n[1]&&l(O,D,U,G,X,te,P),T==="year"&&R.length>1&&k===0&&R.unshift({value:R[0].value-O})}}for(var k=0;k=n[0]&&w<=n[1]&&h++)}var B=a/e;if(h>B*1.5&&v>B/1.5||(c.push(y),h>B||r===s[d]))break}f=[]}}}for(var C=ft(me(c,function(T){return ft(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),b=[],_=C.length-1,d=0;d0;)i*=10;var s=[tB(mte(n[0]/i)*i),tB(yte(n[1]/i)*i)];this._interval=i,this._intervalPrecision=uf(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=nv(t)/nv(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=nv(t)/nv(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),rv(this.base,t)},e.prototype.setBreaksFromOption=function(t){var n=tr();if(n){var a=n.logarithmicParseBreaksFromOption(t,this.base,be(this.parse,this)),i=a.parsedOriginal,o=a.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},e.type="log",e}(Lo);function av(r,e){return tB(r,Na(e))}dA.registerClass(d4);const wte=d4;var Bte=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]0&&A>0&&!l&&(s=0),s<0&&A<0&&!u&&(A=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,l=!0),h!=null&&(A=h,u=!0),{min:s,max:A,minFixed:l,maxFixed:u,isBlank:c}},r.prototype.modifyDataMinMax=function(e,t){this[bte[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=Cte[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Cte={min:"_determinedMin",max:"_determinedMax"},bte={min:"_dataMin",max:"_dataMax"};function p4(r,e,t){var n=r.rawExtentInfo;return n||(n=new Bte(r,e,t),r.rawExtentInfo=n,n)}function iv(r,e){return e==null?null:zr(e)?NaN:r.parse(e)}function g4(r,e){var t=r.type,n=p4(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=i4("bar",o),A=!1;if(F(s,function(c){A=A||c.getBaseAxis()===e.axis}),A){var l=o4(s),u=xte(a,i,e,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function xte(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Ate(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;F(o,function(h){s=Math.min(h.offset,s)});var A=-1/0;F(o,function(h){A=Math.max(h.offset+h.width,A)}),s=Math.abs(s),A=Math.abs(A);var l=s+A,u=e-r,c=1-(s+A)/i,f=u/c-u;return e+=f*(A/l),r-=f*(s/l),{min:r,max:e}}function Pl(r,e){var t=e,n=g4(r,t),a=n.extent,i=t.get("splitNumber");r instanceof wte&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),A=o==="interval"||o==="time";r.setBreaksFromOption(m4(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:A?t.get("minInterval"):null,maxInterval:A?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Gg(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new ff({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new v4({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(dA.getClass(e)||Lo)}}function _te(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function ou(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=_j(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(Ce(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(Me(e)){if(r.type==="category")return function(a,i){return e(vp(r,a),a.value-r.scale.getExtent()[0],null)};var n=tr();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(vp(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function vp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function kb(r){var e=r.get("interval");return e??"auto"}function y4(r){return r.type==="category"&&kb(r.getLabelModel())===0}function dp(r,e){var t={};return F(r.mapDimensionsAll(e),function(n){t[e4(r,n)]=!0}),je(t)}function Ste(r,e,t){e&&F(dp(e,t),function(n){var a=e.getApproximateExtent(n);a[0]r[1]&&(r[1]=a[1])})}function kl(r){return r==="middle"||r==="center"}function hf(r){return r.getShallow("show")}function m4(r){var e=r.get("breaks",!0);if(e!=null)return!tr()||!Tte(r.axis)?void 0:e}function Tte(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Ite=1e-8;function u2(r,e){return Math.abs(r-e)a&&(n=o,a=A)}if(n)return Ete(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return F(o,function(s){s.type==="polygon"?c2(s.exterior,a,i,t):F(s.points,function(A){c2(A,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),A=A>>1^-(A&1),s+=a,A+=i,a=s,i=A,n.push([s/t,A/t])}return n}function Fte(r,e){return r=Dte(r),me(ft(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new f2(o[0],o.slice(1)));break;case"MultiPolygon":F(a.coordinates,function(A){A[0]&&i.push(new f2(A[0],A.slice(1)))});break;case"LineString":i.push(new h2([a.coordinates]));break;case"MultiLineString":i.push(new h2(a.coordinates))}var s=new B4(n[e||"name"],i,n.cp);return s.properties=n,s})}var Qte=Ye(),Oc=Ye(),pa={estimate:1,determine:2};function pp(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function b4(r,e){var t=me(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Ute(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=ou(r),a=r.scale.getExtent(),i=b4(r,t),o=ft(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:me(o,function(s){var A={value:s};return{formattedLabel:n(A),rawLabel:r.scale.getLabel(A),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?kte(r,e):Ote(r)}function Pte(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=b4(r,n);return{ticks:ft(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?Rte(r,e):{ticks:me(r.scale.getTicks(t),function(o){return o.value})}}function kte(r,e){var t=r.getLabelModel(),n=x4(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function x4(r,e,t){var n=Nte(r),a=kb(e),i=t.kind===pa.estimate;if(!i){var o=S4(n,a);if(o)return o}var s,A;Me(a)?s=L4(r,a):(A=a==="auto"?Vte(r,t):a,s=I4(r,A));var l={labels:s,labelCategoryInterval:A};return i?t.out.noPxChangeTryDetermine.push(function(){return rB(n,a,l),!0}):rB(n,a,l),l}function Rte(r,e){var t=Hte(r),n=kb(e),a=S4(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Me(n))i=L4(r,n,!0);else if(n==="auto"){var s=x4(r,r.getLabelModel(),pp(pa.determine));o=s.labelCategoryInterval,i=me(s.labels,function(A){return A.tickValue})}else o=n,i=I4(r,o,!0);return rB(t,n,{ticks:i,tickCategoryInterval:o})}function Ote(r){var e=r.scale.getTicks(),t=ou(r);return{labels:me(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var Hte=_4("axisTick"),Nte=_4("axisLabel");function _4(r){return function(t){return Oc(t)[r]||(Oc(t)[r]={list:[]})}}function S4(r,e){for(var t=0;tu&&(l=Math.max(1,Math.floor(A/u)));for(var c=s[0],f=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(f*Math.cos(i)),v=Math.abs(f*Math.sin(i)),d=0,p=0;c<=s[1];c+=l){var g=0,y=0,m=Bg(a({value:c}),n.font,"center","top");g=m.width*1.3,y=m.height*1.3,d=Math.max(d,g,7),p=Math.max(p,y,7)}var w=d/h,B=p/v;isNaN(w)&&(w=1/0),isNaN(B)&&(B=1/0);var C=Math.max(0,Math.floor(Math.min(w,B)));if(t===pa.estimate)return e.out.noPxChangeTryDetermine.push(be(zte,null,r,C,A)),C;var b=T4(r,C,A);return b??C}function zte(r,e,t){return T4(r,e,t)==null}function T4(r,e,t){var n=Qte(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function $te(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function I4(r,e,t){var n=ou(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],A=Math.max((e||0)+1,1),l=i[0],u=a.count();l!==0&&A>1&&u/A>2&&(l=Math.round(Math.ceil(l/A)*A));var c=y4(r),f=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;f&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=A)d(v);h&&v-A!==i[1]&&d(i[1]);function d(p){var g={value:p};s.push(t?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function L4(r,e,t){var n=r.scale,a=ou(r),i=[];return F(n.getTicks(),function(o){var s=n.getLabel(o),A=o.value;e(o.value,s)&&i.push(t?A:{formattedLabel:a(o),rawLabel:s,tickValue:A,time:void 0,break:void 0})}),i}var v2=[0,1],Kte=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return qk(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),d2(n,a.count())),ct(e,v2,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),d2(n,a.count()));var i=ct(e,n,v2,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Pte(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=me(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Wte(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=me(n,function(i){return me(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||pp(pa.determine),Ute(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||pp(pa.determine),Gte(this,e)},r}();function d2(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function Wte(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var A=e[a-1].tickValue-e[0].tickValue,l=(e[a-1].coord-e[0].coord)/A;F(e,function(h){h.coord-=l/2,h.onBand=!0});var u=r.scale.getExtent();s=1+u[1]-e[a-1].tickValue,o={coord:e[a-1].coord+l*s,tickValue:u[1]+1,onBand:!0},e.push(o)}var c=i[0]>i[1];f(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&f(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),f(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&f(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function f(h,v){return h=er(h),v=er(v),c?h>v:ha&&(a+=Eu);var h=Math.atan2(s,o);if(h<0&&(h+=Eu),h>=n&&h<=a||h+Eu>=n&&h+Eu<=a)return A[0]=u,A[1]=c,l-t;var v=t*Math.cos(n)+r,d=t*Math.sin(n)+e,p=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),m=(p-o)*(p-o)+(g-s)*(g-s);return y0){e=e/180*Math.PI,sa.fromArray(r[0]),xt.fromArray(r[1]),Kt.fromArray(r[2]),ke.sub(za,sa,xt),ke.sub(Oa,Kt,xt);var t=za.len(),n=Oa.len();if(!(t<.001||n<.001)){za.scale(1/t),Oa.scale(1/n);var a=za.dot(Oa),i=Math.cos(e);if(i1&&ke.copy(en,Kt),en.toArray(r[1])}}}}function qte(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,sa.fromArray(r[0]),xt.fromArray(r[1]),Kt.fromArray(r[2]),ke.sub(za,xt,sa),ke.sub(Oa,Kt,xt);var n=za.len(),a=Oa.len();if(!(n<.001||a<.001)){za.scale(1/n),Oa.scale(1/a);var i=za.dot(e),o=Math.cos(t);if(i=A)ke.copy(en,Kt);else{en.scaleAndAdd(Oa,s/Math.tan(Math.PI/2-u));var c=Kt.x!==xt.x?(en.x-xt.x)/(Kt.x-xt.x):(en.y-xt.y)/(Kt.y-xt.y);if(isNaN(c))return;c<0?ke.copy(en,xt):c>1&&ke.copy(en,Kt)}en.toArray(r[1])}}}}function Vm(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ere(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=ao(n[0],n[1]),i=ao(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=id([],n[1],n[0],o/a),A=id([],n[1],n[2],o/i),l=id([],s,A,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(A[0],A[1],A[0],A[1],n[2][0],n[2][1])}else for(var u=1;u0&&a&&C(-c/i,0,i);var p=r[0],g=r[i-1],y,m;w(),y<0&&b(-y,.8),m<0&&b(m,.8),w(),B(y,m,1),B(m,y,-1),w(),y<0&&_(-y),m<0&&_(m);function w(){y=p.rect[o]-t,m=n-g.rect[o]-g.rect[s]}function B(x,S,I){if(x<0){var L=Math.min(S,-x);if(L>0){C(L*I,0,i);var T=L+x;T<0&&b(-T*I,1)}else b(-x*I,1)}}function C(x,S,I){x!==0&&(u=!0);for(var L=S;L0)for(var T=0;T0;T--){var E=I[T-1]*P;C(-E,T,i)}}}function _(x){var S=x<0?-1:1;x=Math.abs(x);for(var I=Math.ceil(x/(i-1)),L=0;L0?C(I,0,L+1):C(-I,i-L-1,i),x-=I,x<=0)return}return u}function nre(r){for(var e=0;e=0&&n.attr(i.oldLayoutSelect),$e(f,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),at(n,l,t,A)}else if(n.attr(l),!eu(n).valueAnimation){var c=Le(n.style.opacity,1);n.style.opacity=0,Lt(n,{style:{opacity:c}},t,A)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};ov(h,l,sv),ov(h,n.states.select,sv)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};ov(v,l,sv),ov(v,n.states.emphasis,sv)}cO(n,A,u,t,t)}if(a&&!a.ignore&&!a.invisible){var i=ore(a),o=i.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),at(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Lt(a,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const Are=sre;var $m=Ye();function lre(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=$m(t).labelManager;a||(a=$m(t).labelManager=new Are),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=$m(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Km=Math.sin,Wm=Math.cos,P4=Math.PI,cs=Math.PI*2,ure=180/P4,cre=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,A){var l=s-o,u=!A,c=Math.abs(l),f=lo(c-cs)||(u?l>=cs:-l>=cs),h=l>0?l%cs:l%cs+cs,v=!1;f?v=!0:lo(c)?v=!1:v=h>=P4==!!u;var d=e+n*Wm(o),p=t+a*Km(o);this._start&&this._add("M",d,p);var g=Math.round(i*ure);if(f){var y=1/this._p,m=(u?1:-1)*(cs-y);this._add("A",n,a,g,1,+u,e+n*Wm(o+m),t+a*Km(o+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=e+n*Wm(s),B=t+a*Km(s);this._add("A",n,a,g,+v,+u,w,B)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,A,l){for(var u=[],c=this._p,f=1;f"}function wre(r){return""}function Hb(r,e){e=e||{};var t=e.newline?` `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,A=a.text;return mre(o,s)+(o!=="style"?Vr(A):A||"")+(i?""+t+me(i,function(l){return n(l)}).join(t)+t:"")+wre(o)}return n(r)}function Bre(r,e,t){t=t||{};var n=t.newline?` `:"",a=" {"+n,i=n+"}",o=me(je(r),function(A){return A+a+me(je(r[A]),function(l){return l+":"+r[A][l]+";"}).join(n)+i}).join(n),s=me(je(e),function(A){return"@keyframes "+A+a+me(je(e[A]),function(l){return l+a+me(je(e[A][l]),function(u){var c=e[A][l][u];return u==="d"&&(c='path("'+c+'")'),u+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":[""].join(n)}function sB(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function B2(r,e,t,n){return gr("svg","root",{width:r,height:e,xmlns:R4,"xmlns:xlink":O4,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var Cre=0;function N4(){return Cre++}var C2={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"},ds="transform-origin";function bre(r,e,t){var n=ve({},r.shape);ve(n,e),r.buildPath(t,n);var a=new k4;return a.reset(Vk(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function xre(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[ds]=t+"px "+n+"px")}var _re={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function V4(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function Sre(r,e,t){var n=r.shape.paths,a={},i,o;if(F(n,function(A){var l=sB(t.zrId);l.animation=!0,$g(A,{},l,!0);var u=l.cssAnims,c=l.cssNodes,f=je(u),h=f.length;if(h){o=f[h-1];var v=u[o];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=V4(a,t);return i.replace(o,s)}}function b2(r){return Ce(r)?C2[r]?"cubic-bezier("+C2[r]+")":PC(r)?r:"":""}function $g(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Dg){var s=Sre(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var A={},l=0;l0}).length){var re=V4(b,t);return re+" "+y[0]+" both"}}for(var p in A){var s=d(A[p]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+N4();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function Tre(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};x2(n,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,A=r.currentStates.indexOf("select")>=0&&s||o;A&&(i=o1(A))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),x2(n,e,t,!0)}}function x2(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+N4(),t.cssStyleCache[a]=i,t.cssNodes["."+i+(n?":hover":"")]=r),e.class=e.class?e.class+" "+i:i}var vf=Math.round;function G4(r){return r&&Ce(r.src)}function z4(r){return r&&Me(r.toDataURL)}function Nb(r,e,t,n){pre(function(a,i){var o=a==="fill"||a==="stroke";o&&Nk(i)?K4(e,r,a,n):o&&kC(i)?W4(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Qre(t,r,n)}function Vb(r,e){var t=F9(e);t&&(t.each(function(n,a){n!=null&&(r[(w2+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[w2+"silent"]="true"))}function _2(r){return lo(r[0]-1)&&lo(r[1])&&lo(r[2])&&lo(r[3]-1)}function Ire(r){return lo(r[4])&&lo(r[5])}function Gb(r,e,t){if(e&&!(Ire(e)&&_2(e))){var n=t?10:1e4;r.transform=_2(e)?"translate("+vf(e[4]*n)/n+" "+vf(e[5]*n)/n+")":J7(e)}}function S2(r,e,t){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Kr(f,p),Kr(h,p)}else if(f==null||h==null){var g=function(S,I){if(S){var L=S.elm,T=f||I.width,M=h||I.height;S.tag==="pattern"&&(l?(M=1,T/=i.width):u&&(T=1,M/=i.height)),S.attrs.width=T,S.attrs.height=M,L&&(L.setAttribute("width",T),L.setAttribute("height",M))}},y=zC(v,null,r,function(S){A||g(C,S),g(c,S)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=gr("image","img",{href:v,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(c=De(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var m,w;A?m=w=1:l?(w=1,m=o.width/i.width):u?(m=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(o.width=m),w!=null&&!isNaN(w)&&(o.height=w);var B=Gk(a);B&&(o.patternTransform=B);var C=gr("pattern","",o,[c]),b=Hb(C),_=n.patternCache,x=_[b];x||(x=n.zrId+"-p"+n.patternIdx++,_[b]=x,o.id=x,C=n.defs[x]=gr("pattern",x,o,[c])),e[t]=wg(x)}}function Ure(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=gr("clipPath",i,o,[$4(r,t)])}e["clip-path"]=wg(i)}function L2(r){return document.createTextNode(r)}function xs(r,e,t){r.insertBefore(e,t)}function E2(r,e){r.removeChild(e)}function M2(r,e){r.appendChild(e)}function X4(r){return r.parentNode}function Y4(r){return r.nextSibling}function Xm(r,e){r.textContent=e}var D2=58,Pre=120,kre=gr("","");function AB(r){return r===void 0}function Pa(r){return r!==void 0}function Rre(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function mc(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function df(r){var e,t=r.children,n=r.tag;if(Pa(n)){var a=r.elm=H4(n);if(zb(kre,r),ge(t))for(e=0;ei?(v=t[A+1]==null?null:t[A+1].elm,Z4(r,v,t,a,A)):Bp(r,e,n,i))}function ol(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(zb(r,e),AB(e.text)?Pa(n)&&Pa(a)?n!==a&&Ore(t,n,a):Pa(a)?(Pa(r.text)&&Xm(t,""),Z4(t,null,a,0,a.length-1)):Pa(n)?Bp(t,n,0,n.length-1):Pa(r.text)&&Xm(t,""):r.text!==e.text&&(Pa(n)&&Bp(t,n,0,n.length-1),Xm(t,e.text)))}function Hre(r,e){if(mc(r,e))ol(r,e);else{var t=r.elm,n=X4(t);df(e),n!==null&&(xs(n,e.elm,Y4(t)),Bp(n,[r],0,0))}return e}var Nre=0,Vre=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=F2(),this.configLayer=F2(),this.storage=t,this._opts=n=ve({},n),this.root=e,this._id="zr"+Nre++,this._oldVNode=B2(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=H4("svg");zb(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Hre(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return I2(e,sB(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=sB(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Gre(n,a,this._backgroundColor,i);s&&o.push(s);var A=e.compress?null:this._mainVNode=gr("g","main",{},[]);this._paintList(t,i,A?A.children:o),A&&o.push(A);var l=me(je(i.defs),function(f){return i.defs[f]});if(l.length&&o.push(gr("defs","defs",{},l)),e.animation){var u=Bre(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=gr("style","stl",{},[],u);o.push(c)}}return B2(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Hb(this.renderToVNode({animation:Le(e.cssAnimation,!0),emphasis:Le(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Le(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,A,l=0,u=0;u=0&&!(f&&A&&f[d]===A[d]);d--);for(var p=v-1;p>d;p--)o--,s=i[o-1];for(var g=d+1;g=s)}}for(var c=this.__startIndex;c15)break}}M.prevElClipPaths&&g.restore()};if(y)if(y.length===0)_=p.__endIndex;else for(var S=h.dpr,I=0;I0&&e>a[0]){for(A=0;Ae);A++);s=n[a[A]]}if(a.splice(A+1,0,e),n[e]=t,!t.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a0?Av:0),this._needsManuallyCompositing),u.__builtin__||LC("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==A&&(u.__dirty=!0),u.__startIndex=A,u.incremental?u.__drawIndex=-1:u.__drawIndex=A,t(A),i=u),a.__dirty&wn&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=A))}t(A),this.eachBuiltinLayer(function(c,f){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,F(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ke(n[e],t,!0):n[e]=t;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill=le.color.neutral00,l.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Pt);const ene=qre;function Rl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=Ql(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(e[i])}return n.join(" ")}var tne=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var A=ar(t,-1,-1,2,2,null,s);A.attr({z2:Le(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),A.drift=rne,this._symbolType=t,this.add(A)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Li(this.childAt(0))},e.prototype.downplay=function(){Ei(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,A=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,A,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:A[0]/2,scaleY:A[1]/2};c?h.attr(v):at(h,v,s,n),Jn(h)}if(this._updateCommon(t,n,A,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Lt(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),A=t.hostModel,l,u,c,f,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,c=i.selectItemStyle,f=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),f=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=fr(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var B=hA(t.getItemVisual(n,"symbolOffset"),a);B&&(s.x=B[0],s.y=B[1]),g&&s.attr("cursor",g);var C=t.getItemVisual(n,"style"),b=C.fill;if(s instanceof Ur){var _=s.style;s.useStyle(ve({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},C))}else s.__isEmptyBrush?s.useStyle(ve({},C)):s.useStyle(C),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=t.getItemVisual(n,"liftZ"),S=this._z2;x!=null?S==null&&(this._z2=s.z2,s.z2+=x):S!=null&&(s.z2=S,this._z2=null);var I=o&&o.useNameLabel;yr(s,d,{labelFetcher:A,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:C.opacity});function L(R){return I?t.getName(R):Rl(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var T=s.ensureState("emphasis");T.style=l,s.ensureState("select").style=c,s.ensureState("blur").style=u;var M=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),Qt(this,f,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var A=i.getTextContent();A&&To(A,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();To(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return iu(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Fe);function rne(r,e){this.parent.drift(r,e)}const Gf=tne;function Zm(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function P2(r){return r!=null&&!Oe(r)&&(r={isIgnore:r}),r||{}}function k2(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:fr(e),cursorStyle:e.get("cursor")}}var nne=function(){function r(e){this.group=new Fe,this._SymbolCtor=e||Gf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=P2(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,A=k2(e),l={disableAnimation:s},u=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||n.removeAll(),e.diff(i).add(function(c){var f=u(c);if(Zm(e,f,c,t)){var h=new o(e,c,A,l);h.setPosition(f),e.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,f){var h=i.getItemGraphicEl(f),v=u(c);if(!Zm(e,v,c,t)){n.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new o(e,c,A,l),h.setPosition(v);else{h.updateData(e,c,A,l);var g={x:v[0],y:v[1]};s?h.attr(g):at(h,g,a)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=u,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=k2(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=P2(n);function a(A){A.isGroup||(A.incremental=!0,A.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=n[0]:n[1]<0&&(t=n[1]),t}function q4(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function ine(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function one(r,e,t,n,a,i,o,s){for(var A=ine(r,e),l=[],u=[],c=[],f=[],h=[],v=[],d=[],p=J4(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m=a||d<0)break;if(Ks(g,y)){if(A){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](g,y),c=g,f=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(o>0){for(var B=d+i,C=e[B*2],b=e[B*2+1];C===g&&b===y&&p=n||Ks(C,b))h=g,v=y;else{S=C-l,I=b-u;var M=g-l,R=C-g,P=y-u,E=b-y,k=void 0,D=void 0;if(s==="x"){k=Math.abs(M),D=Math.abs(R);var U=S>0?1:-1;h=g-U*k*o,v=y,L=g+U*D*o,T=y}else if(s==="y"){k=Math.abs(P),D=Math.abs(E);var O=I>0?1:-1;h=g,v=y-O*k*o,L=g,T=y+O*D*o}else k=Math.sqrt(M*M+P*P),D=Math.sqrt(R*R+E*E),x=D/(D+k),h=g-S*o*(1-x),v=y-I*o*(1-x),L=g+S*o*x,T=y+I*o*x,L=zi(L,$i(C,g)),T=zi(T,$i(b,y)),L=$i(L,zi(C,g)),T=$i(T,zi(b,y)),S=L-g,I=T-y,h=g-S*k/D,v=y-I*k/D,h=zi(h,$i(l,g)),v=zi(v,$i(u,y)),h=$i(h,zi(l,g)),v=$i(v,zi(u,y)),S=g-h,I=y-v,L=g+S*D/k,T=y+I*D/k}r.bezierCurveTo(c,f,h,v,g,y),c=L,f=T}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var eN=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),sne=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new eN},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ks(a[o*2-2],a[o*2-1]);o--);for(;i=0){var w=l?(v-A)*m+A:(h-s)*m+s;return l?[t,w]:[w,t]}s=h,A=v;break;case o.C:h=i[c++],v=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++];var B=l?zd(s,h,d,g,t,u):zd(A,v,p,y,t,u);if(B>0)for(var C=0;C=0){var w=l?dr(A,v,p,y,b):dr(s,h,d,g,b);return l?[t,w]:[w,t]}}s=g,A=y;break}}},e}(Ze),Ane=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(eN),tN=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new Ane},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,A=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ks(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,A,e)):a&&t.push(o(a,A,0),o(a,A,e));break}else a&&(t.push(o(a,A,0)),a=null),t.push(A),i=A}return t}function cne(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var A=e.getAxis(a),l=me(i.stops,function(m){return{coord:A.toGlobalCoord(A.dataToCoord(m.value)),color:m.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var f=une(l,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&u)return l[0].coord<0?c[1]?c[1]:l[u-1].color:c[0]?c[0]:l[0].color;var v=10,d=f[0].coord-v,p=f[h-1].coord+v,g=p-d;if(g<.001)return"transparent";F(f,function(m){m.offset=(m.coord-d)/g}),f.push({offset:h?f[h-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:c[0]||"transparent"});var y=new AA(0,0,0,0,f,!0);return y[a]=d,y[a+"2"]=p,y}}}function fne(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&hne(i,e))){var o=e.mapDimension(i.dim),s={};return F(i.getViewLabels(),function(A){var l=i.scale.getRawOrdinalNumber(A.tickValue);s[l]=1}),function(A){return!s.hasOwnProperty(e.get(o,A))}}}}function hne(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function vne(r,e){return isNaN(r)||isNaN(e)}function dne(r){for(var e=r.length/2;e>0&&vne(r[e*2-2],r[e*2-1]);e--);return e-1}function V2(r,e){return[r[e*2],r[e*2+1]]}function pne(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,A=-1,l=0;l=e||i>=e&&o<=e){A=l;break}s=l,i=o}return{range:[s,A],t:(e-i)/(o-i)}}function aN(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var D=v.getState("emphasis").style;D.lineWidth=+v.style.lineWidth+1}Ve(v).seriesIndex=t.seriesIndex,Qt(v,P,E,k);var U=N2(t.get("smooth")),O=t.get("smoothMonotone");if(v.setShape({smooth:U,smoothMonotone:O,connectNulls:b}),d){var G=s.getCalculationInfo("stackedOnSeries"),X=0;d.useStyle(Re(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(X=N2(G.get("smooth"))),d.setShape({smooth:U,stackedOnSmooth:X,smoothMonotone:O,connectNulls:b}),cr(d,t,"areaStyle"),Ve(d).seriesIndex=t.seriesIndex,Qt(d,P,E,k)}var te=this._changePolyState;s.eachItemGraphicEl(function(ne){ne&&(ne.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=s,this._coordSys=i,this._stackedOnPoints=B,this._points=u,this._step=S,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,v),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,n){Ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=js(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var A=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var u=A[s*2],c=A[s*2+1];if(isNaN(u)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,c))return;var f=t.get("zlevel")||0,h=t.get("z")||0;l=new Gf(o,s),l.x=u,l.y=c,l.setZ(f,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=f,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else bt.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=js(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var A=o.getItemGraphicEl(s);A&&(A.__temp?(o.setItemGraphicEl(s,null),this.group.remove(A)):A.downplay())}else bt.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;tp(this._polyline,t),n&&tp(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new sne({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new tN({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),A=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var l=t.hostModel,u=l.get("animationDuration");Me(u)&&(u=u(null));var c=l.get("animationDelay")||0,f=Me(c)?c(null):c;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(o){var w=a,B=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-B[1]/180*Math.PI):(g=w.r0,y=w.r,m=B[0])}else{var C=a;i?(g=C.x,y=C.x+C.width,m=h.x):(g=C.y+C.height,y=C.y,m=h.y)}var b=y===g?0:(m-g)/(y-g);A&&(b=1-b);var _=Me(c)?c(v):u*b+f,x=d.getSymbolPath(),S=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(aN(t)){var o=t.getData(),s=this._polyline,A=o.getLayout("points");if(!A){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new nt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=dne(A);u>=0&&(yr(s,fr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:u,defaultText:function(c,f,h){return h!=null?j4(o,h):Rl(o,c)},enableTextSetter:!0},gne(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,A){var l=this._endLabel,u=this._polyline;if(l){t<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var c=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,p=A.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,B=(g?d:0)*(y?-1:1),C=(g?0:-d)*(y?-1:1),b=g?"x":"y",_=pne(c,w,b),x=_.range,S=x[1]-x[0],I=void 0;if(S>=1){if(S>1&&!h){var L=V2(c,x[0]);l.attr({x:L[0]+B,y:L[1]+C}),o&&(I=f.getRawValue(x[0]))}else{var L=u.getPointOn(w,b);L&&l.attr({x:L[0]+B,y:L[1]+C});var T=f.getRawValue(x[0]),M=f.getRawValue(x[1]);o&&(I=cR(a,v,T,M,_.t))}i.lastFrameIndex=x[0]}else{var R=t===1||i.lastFrameIndex>0?x[0]:0,L=V2(c,R);o&&(I=f.getRawValue(R)),l.attr({x:L[0]+B,y:L[1]+C})}if(o){var P=eu(l);typeof P.setLabelText=="function"&&P.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,A){var l=this._polyline,u=this._polygon,c=t.hostModel,f=one(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=f.current,v=f.stackedOnCurrent,d=f.next,p=f.stackedOnNext;if(o&&(v=Ki(f.stackedOnCurrent,f.current,a,o,A),h=Ki(f.current,null,a,o,A),p=Ki(f.stackedOnNext,f.next,a,o,A),d=Ki(f.next,null,a,o,A)),H2(h,d)>3e3||u&&H2(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=f.current,l.shape.points=h;var g={shape:{points:d}};f.current!==h&&(g.shape.__points=f.next),l.stopAnimation(),at(l,g,c),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),at(u,{shape:{stackedOnPoints:p}},c),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=f.status,w=0;we&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var A=o.getBaseAxis(),l=o.getOtherAxis(A),u=A.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(c||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(l.dim),1/h));var v=void 0;Ce(i)?v=wne[i]:Me(i)&&(v=i),v&&e.setData(a.downSample(a.mapDimension(l.dim),1/h,v,Bne))}}}}}function Cne(r){r.registerChartView(mne),r.registerSeriesModel(ene),r.registerLayout(Kf("line",!0)),r.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)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iN("line"))}var oN=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)F(i.getAxes(),function(f,h){if(f.type==="category"&&n!=null){var v=f.getTicksCoords(),d=f.getTickModel().get("alignWithLabel"),p=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){s[h]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,B=0;Bp){m=(C+y)/2;break}B===1&&(w=b-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),s[h]=f.toGlobalCoord(m)}});else{var A=this.getData(),l=A.getLayout("offset"),u=A.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=l+u/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Pt);Pt.registerClass(oN);const Cp=oN;var bne=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ki(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ro(Cp.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:le.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Cp);const xne=bne;var _ne=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}(),Sne=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new _ne},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),A=(s-o)*.5,l=o+A,u=n.startAngle,c=n.endAngle,f=n.clockwise,h=Math.PI*2,v=f?c-uMath.PI/2&&us)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Bi(i,t,Ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(bt),G2={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Jm(e.x,r.x),s=qm(e.x+e.width,a),A=Jm(e.y,r.y),l=qm(e.y+e.height,i),u=sa?s:o,e.y=c&&A>i?l:A,e.width=u?0:s-o,e.height=c?0:l-A,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),u||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=qm(e.r,r.r),i=Jm(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},z2={cartesian2d:function(r,e,t,n,a,i,o,s,A){var l=new Xe({shape:ve({},n),z2:1});if(l.__dataIndex=t,l.name="item",i){var u=l.shape,c=a?"height":"width";u[c]=0}return l},polar:function(r,e,t,n,a,i,o,s,A){var l=!a&&A?bp:nn,u=new l({shape:n,z2:1});u.name="item";var c=sN(a);if(u.calculateTextPosition=Tne(c,{isRoundCap:l===bp}),i){var f=u.shape,h=a?"r":"endAngle",v={};f[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?at:Lt)(u,{shape:v},i)}return u}};function Mne(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function $2(r,e,t,n,a,i,o,s){var A,l;i?(l={x:n.x,width:n.width},A={y:n.y,height:n.height}):(l={y:n.y,height:n.height},A={x:n.x,width:n.width}),s||(o?at:Lt)(t,{shape:A},e,a,null);var u=e?r.baseAxis.model:null;(o?at:Lt)(t,{shape:l},u,a)}function K2(r,e){for(var t=0;t0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Qne(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function sN(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function X2(r,e,t,n,a,i,o,s){var A=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var u=r.shape,c=$a(n.getModel("itemStyle"),u,!0);ve(u,c),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(A);var f=n.getShallow("cursor");f&&r.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=fr(n);yr(r,v,{labelFetcher:i,labelDataIndex:t,defaultText:Rl(i.getData(),t),inheritColor:A.fill,defaultOpacity:A.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,Ine(r,p==="outside"?h:p,sN(o),n.get(["label","rotate"]))}uO(d,v,i.getRawValue(t),function(y){return j4(e,y)});var g=n.getModel(["emphasis"]);Qt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),cr(r,n),Qne(a)&&(r.style.fill="none",r.style.stroke="none",F(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Une(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var Pne=function(){function r(){}return r}(),Y2=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Pne},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],A=[],l=this.barWidth,u=0;u=0?t:null},30,!1);function kne(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],A=[],l=r.barWidth,u=0,c=i.length/3;u=s[0]&&e<=s[0]+A[0]&&t>=s[1]&&t<=s[1]+A[1])return o[u]}return-1}function AN(r,e,t){if(Eo(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Rne(r,e,t){var n=r.type==="polar"?nn:Xe;return new n({shape:AN(e,t,r),silent:!0,z2:0})}const One=Ene;function Hne(r){r.registerChartView(One),r.registerSeriesModel(xne),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ze(A4,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,l4("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iN("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var J2=Math.PI*2,fv=Math.PI/180;function Nne(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=MO(n,t),s=o.cx,A=o.cy,l=o.r,u=o.r0,c=o.viewRect,f=-n.get("startAngle")*fv,h=n.get("endAngle"),v=n.get("padAngle")*fv;h=h==="auto"?f-J2:-h*fv;var d=n.get("minAngle")*fv,p=d+v,g=0;a.each(i,function(E){!isNaN(E)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),B=n.get("roseType"),C=n.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var _=w?1:-1,x=[f,h],S=_*v/2;Sg(x,!w),f=x[0],h=x[1];var I=lN(n);I.startAngle=f,I.endAngle=h,I.clockwise=w,I.cx=s,I.cy=A,I.r=l,I.r0=u;var L=Math.abs(h-f),T=L,M=0,R=f;if(a.setLayout({viewRect:c,r:l}),a.each(i,function(E,k){var D;if(isNaN(E)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:A,r0:u,r:B?NaN:l});return}B!=="area"?D=y===0&&C?m:E*m:D=L/g,DD?(O=R+_*D/2,G=O):(O=R+S,G=U-S),a.setItemLayout(k,{angle:D,startAngle:O,endAngle:G,clockwise:w,cx:s,cy:A,r0:u,r:B?ct(E,b,[u,l]):l}),R=U}),Tt?g:p,B=Math.abs(m.label.y-t);if(B>=w.maxY){var C=m.label.x-e-m.len2*a,b=n+m.len,_=Math.abs(C)r.unconstrainedWidth?null:f:null;n.setStyle("width",h)}cN(i,n)}}}function cN(r,e){eL.rect=r,Q4(eL,e,zne)}var zne={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},eL={};function e0(r){return r.position==="center"}function $ne(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*Vne,s=e.getLayout("viewRect"),A=e.getLayout("r"),l=s.width,u=s.x,c=s.y,f=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var b in C.states)if(C.states[b].ignore===!1)return!0;return!1}e.each(function(C){var b=e.getItemGraphicEl(C),_=b.shape,x=b.getTextContent(),S=b.getTextGuideLine(),I=e.getItemModel(C),L=I.getModel("label"),T=L.get("position")||I.get(["emphasis","label","position"]),M=L.get("distanceToLabelLine"),R=L.get("alignTo"),P=Be(L.get("edgeDistance"),l),E=L.get("bleedMargin");E==null&&(E=Math.min(l,f)>200?10:2);var k=I.getModel("labelLine"),D=k.get("length");D=Be(D,l);var U=k.get("length2");if(U=Be(U,l),Math.abs(_.endAngle-_.startAngle)0?"right":"left":G>0?"left":"right"}var j=Math.PI,ie=0,z=L.get("rotate");if(qe(z))ie=z*(j/180);else if(T==="center")ie=0;else if(z==="radial"||z===!0){var q=G<0?-O+j:-O;ie=q}else if(z==="tangential"&&T!=="outside"&&T!=="outer"){var V=Math.atan2(G,X);V<0&&(V=j*2+V);var Y=X>0;Y&&(V=j+V),ie=V-j}if(i=!!ie,x.x=te,x.y=ne,x.rotation=ie,x.setStyle({verticalAlign:"middle"}),W){x.setStyle({align:re});var J=x.states.select;J&&(J.x+=x.x,J.y+=x.y)}else{var Z=new Ne(0,0,0,0);cN(Z,x),t.push({label:x,labelLine:S,position:T,len:D,len2:U,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new ke(G,X),linePoints:ye,textAlign:re,labelDistance:M,labelAlignTo:R,edgeDistance:P,bleedMargin:E,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:x.style.width})}b.setTextConfig({inside:W})}}),!i&&r.get("avoidLabelOverlap")&&Gne(t,n,a,A,l,f,u,c);for(var d=0;d0){for(var u=o.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c=i.r0}},e.type="pie",e}(bt);const Xne=Wne;function Au(r,e,t){e=ge(e)&&{coordDimensions:e}||ve({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Nf(n,e).dimensions,i=new tn(a,r);return i.initData(n,t),i}var Yne=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const lu=Yne;var Zne=Ye(),fN=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Au(this,{coordDimensions:["value"],encodeDefaulter:ze(pb,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Zne(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(A){o.push(A)}),i=a.seats=R9(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Zs(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Pt);Qj({fullType:fN.type,getCoord2:function(r){return r.getShallow("center")}});const jne=fN;function Jne(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(qe(o)&&!isNaN(o)&&o<0)})}}}function qne(r){r.registerChartView(Xne),r.registerSeriesModel(jne),xH("pie",r.registerAction),r.registerLayout(ze(Nne,"pie")),r.registerProcessor(su("pie")),r.registerProcessor(Jne("pie"))}var eae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:le.color.primary}},universalTransition:{divideShape:"clone"}},e}(Pt);const tae=eae;var hN=4,rae=function(){function r(){}return r}(),nae=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new rae},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,A=t.getContext?t.getContext():t,l=A&&i[0]=0;l--){var u=l*2,c=i[u]-s/2,f=i[u+1]-A/2;if(t>=c&&n>=f&&t<=c+s&&n<=f+A)return l}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],A=1/0,l=1/0,u=-1/0,c=-1/0,f=0;f=0&&(l.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const iae=aae;var oae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Kf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new iae:new zf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(bt);const sae=oae;var vN={left:0,right:0,top:0,bottom:0},xp=["25%","25%"],Aae=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=cA(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&ei(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&ei(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:vN,outerBoundsContain:"all",outerBoundsClampWidth:xp[0],outerBoundsClampHeight:xp[1],backgroundColor:le.color.transparent,borderWidth:1,borderColor:le.color.neutral30},e}(et);const lae=Aae;var uB=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},e.type="cartesian2dAxis",e}(et);ir(uB,Vf);var dN={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:le.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:le.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:le.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[le.color.backgroundTint,le.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:le.color.neutral00,borderColor:le.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uae=Ke({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},dN),$b=Ke({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:le.color.axisMinorSplitLine,width:1}}},dN),cae=Ke({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$b),fae=Re({logBase:10},$b);const pN={category:uae,value:$b,time:cae,log:fae};var hae={value:1,category:1,time:1,log:1},cB=null;function vae(r){cB||(cB=r)}function Wf(){return cB}function Ol(r,e,t,n){F(hae,function(a,i){var o=Ke(Ke({},pN[i],!0),n,!0),s=function(A){ce(l,A);function l(){var u=A!==null&&A.apply(this,arguments)||this;return u.type=e+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,c){var f=af(this),h=f?cA(u):{},v=c.getTheme();Ke(u,v.get(i+"Axis")),Ke(u,this.getDefaultOption()),u.type=tL(u),f&&ei(u,h,f)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=cf.createByAxisModel(this))},l.prototype.getCategories=function(u){var c=this.option;if(c.type==="category")return u?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(u){var c=Wf();return c?c.updateModelAxisBreak(this,u):{breaks:[]}},l.type=e+"Axis."+i,l.defaultOption=o,l}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",tL)}function tL(r){return r.type||(r.data?"category":"value")}var dae=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return me(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ft(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const pae=dae;var fB=["x","y"];function rL(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var gae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=fB,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!rL(t)||!rL(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),A=a[1]-a[0],l=i[1]-i[0];if(!(!A||!l)){var u=(s[0]-o[0])/A,c=(s[1]-o[1])/l,f=o[0]-a[0]*u,h=o[1]-i[0]*c,v=this._transform=[u,0,0,c,f,h];this._invTransform=va([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Yt(a,t,this._transform);var s=this.getAxis("x"),A=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=A.toGlobalCoord(A.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),A=a.parse(t[0]),l=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),A),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return Yt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,A=Math.max(a[0],a[1])-o+t;return new Ne(i,o,s,A)},e}(pae),yae=function(r){ce(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ba);const gN=yae;var Kg="expandAxisBreak",yN="collapseAxisBreak",mN="toggleAxisBreak",Kb="axisbreakchanged",mae={type:Kg,event:Kb,update:"update",refineEvent:Wb},wae={type:yN,event:Kb,update:"update",refineEvent:Wb},Bae={type:mN,event:Kb,update:"update",refineEvent:Wb};function Wb(r,e,t,n){var a=[];return F(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function Cae(r){r.registerAction(mae,e),r.registerAction(wae,e),r.registerAction(Bae,e);function e(t,n){var a=[],i=Bl(n,t);function o(s,A){F(i[s],function(l){var u=l.updateAxisBreaks(t);F(u.breaks,function(c){var f;a.push(Re((f={},f[A]=l.componentIndex,f),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var uo=Math.PI,bae=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],xae=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Hl=Ye(),wN=Ye(),BN=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r}();function _ae(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,A=Xb(r.axisName)&&kl(r.nameLocation);F(n,function(v){var d=ti(v);if(!(!d||d.label.ignore)){o.push(d);var p=i.transGroup;A&&(p.transform?va(Mu,p.transform):yg(Mu),d.transform&&Ka(Mu,Mu,d.transform),Ne.copy(hv,d.localRect),hv.applyTransform(Mu),s?s.union(hv):Ne.copy(s=new Ne(0,0,0,0),hv))}});var l=Math.abs(i.dirVec.x)>.1?"x":"y",u=i.transGroup[l];if(o.sort(function(v,d){return Math.abs(v.label[l]-u)-Math.abs(d.label[l]-u)}),A&&s){var c=a.getExtent(),f=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-f;s.union(new Ne(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Mu=xr(),hv=new Ne(0,0,0,0),CN=function(r,e,t,n,a,i){if(kl(r.nameLocation)){var o=i.stOccupiedRect;o&&bN(rre({},o,i.transGroup.transform),n,a)}else xN(i.labelInfoList,i.dirVec,n,a)};function bN(r,e,t){var n=new ke;zg(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&nB(e,n)}function xN(r,e,t,n){for(var a=ke.dot(n,e)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):jc(a-uo)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Sae=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Tae={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var A=n.axis.getExtent(),l=i.transform,u=[A[0],0],c=[A[1],0],f=u[0]>c[0];l&&(Yt(u,u,l),Yt(c,c,l));var h=ve({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())Wf().buildAxisBreakLine(n,a,i,v);else{var d=new lr(ve({shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]}},v));Fl(d.shape,d.style.lineWidth),d.anid="line",a.add(d)}var p=n.get(["axisLine","symbol"]);if(p!=null){var g=n.get(["axisLine","symbolSize"]);Ce(p)&&(p=[p,p]),(Ce(g)||qe(g))&&(g=[g,g]);var y=hA(n.get(["axisLine","symbolOffset"])||0,g),m=g[0],w=g[1];F([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],function(B,C){if(p[C]!=="none"&&p[C]!=null){var b=ar(p[C],-m/2,-w/2,m,w,h.stroke,!0),_=B.r+B.offset,x=f?c:u;b.attr({rotation:B.rotate,x:x[0]+_*Math.cos(r.rotation),y:x[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),a.add(b)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var A=aL(e,a,s);A&&nL(r,e,t,n,a,i,o,pa.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var A=aL(e,a,s);A&&nL(r,e,t,n,a,i,o,pa.determine);var l=Mae(r,a,i,n);Eae(r,e.labelLayoutList,l),Dae(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var A=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=A.nameLayout=A.nameLocation=null);var l=r.axisName;if(Xb(l)){var u=r.nameLocation,c=r.nameDirection,f=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,v=n.axis.getExtent(),d=n.axis.inverse?-1:1,p=new ke(0,0),g=new ke(0,0);u==="start"?(p.x=v[0]-d*h,g.x=-d):u==="end"?(p.x=v[1]+d*h,g.x=d):(p.x=(v[0]+v[1])/2,p.y=r.labelOffset+c*h,g.y=c);var y=xr();g.transform(Uo(y,y,r.rotation));var m=n.get("nameRotate");m!=null&&(m=m*uo/180);var w,B;kl(u)?w=Ws.innerTextLayout(r.rotation,m??r.rotation,c):(w=Iae(r.rotation,u,m||0,v),B=r.raw.axisNameAvailableWidth,B!=null&&(B=Math.abs(B/Math.sin(w.rotation)),!isFinite(B)&&(B=null)));var C=f.getFont(),b=n.get("nameTruncate",!0)||{},_=b.ellipsis,x=Fr(r.raw.nameTruncateMaxWidth,b.maxWidth,B),S=s.nameMarginLevel||0,I=new nt({x:p.x,y:p.y,rotation:w.rotation,silent:Ws.isLabelSilent(n),style:Ct(f,{text:l,font:C,overflow:"truncate",width:x,ellipsis:_,fill:f.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:f.get("align")||w.textAlign,verticalAlign:f.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Pi({el:I,componentModel:n,itemName:l}),I.__fullText=l,I.anid="name",n.get("triggerEvent")){var L=Ws.makeAxisEventDataBase(n);L.targetType="axisName",L.name=l,Ve(I).eventData=L}i.add(I),I.updateTransform(),e.nameEl=I;var T=A.nameLayout=ti({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:kl(u)?bae[S]:xae[S]});if(A.nameLocation=u,a.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&T){var M=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,T,g,M)}}}};function nL(r,e,t,n,a,i,o,s){SN(e)||Fae(r,e,a,s,n,o);var A=e.labelLayoutList;Qae(r,n,A,i),kae(n,r.rotation,A);var l=r.optionHideOverlap;Lae(n,A,l),l&&U4(ft(A,function(u){return u&&!u.label.ignore})),_ae(r,t,n,A)}function Iae(r,e,t,n){var a=eR(t-r),i,o,s=n[0]>n[1],A=e==="start"&&!s||e!=="start"&&s;return jc(a-uo/2)?(o=A?"bottom":"top",i="center"):jc(a-uo*1.5)?(o=A?"top":"bottom",i="center"):(o="middle",auo/2?i=A?"left":"right":i=A?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Lae(r,e,t){if(y4(r.axis))return;function n(s,A,l){var u=ti(e[A]),c=ti(e[l]);if(!(!u||!c)){if(s===!1||u.suggestIgnore){wc(u.label);return}if(c.suggestIgnore){wc(c.label);return}var f=.1;if(!t){var h=[0,0,0,0];u=aB({marginForce:h},u),c=aB({marginForce:h},c)}zg(u,c,null,{touchThreshold:f})&&wc(s?c.label:u.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function Eae(r,e,t){r.showMinorTicks||F(e,function(n){if(n&&n.label.ignore)for(var a=0;al[0]&&isFinite(v)&&isFinite(l[0]);)h=Om(h),v=l[1]-h*o;else{var p=r.getTicks().length-1;p>o&&(h=Om(h));var g=h*o;d=Math.ceil(l[1]/h)*h,v=er(d-g),v<0&&l[0]>=0?(v=0,d=er(g)):d>0&&l[1]<=0&&(d=0,v=-er(g))}var y=(a[0].value-i[0].value)/s,m=(a[o].value-i[o].value)/s;n.setExtent.call(r,v+h*y,d+h*m),n.setInterval.call(r,h),(y||m)&&n.setNiceExtent.call(r,v+h,d-h)}var oL=[[3,1],[0,2]],Nae=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fB,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,A=je(o),l=A.length;if(l){for(var u=[],c=l-1;c>=0;c--){var f=+A[c],h=o[f],v=h.model,d=h.scale;J1(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Pl(d,v),J1(d)&&(s=h))}u.length&&(s||(s=u.pop(),Pl(s.scale,s.model)),F(u,function(p){TN(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var i={};F(n.x,function(o){sL(n,"y",o,i)}),F(n.y,function(o){sL(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=hr(e,t),i=this._rect=Ut(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,A=e.get("containLabel");if(vB(o,i),!n){var l=zae(i,s,o,A,t),u=void 0;if(A)dB?(dB(this._axesList,i),vB(o,i)):u=uL(i.clone(),"axisLabel",null,i,o,l,a);else{var c=$ae(e,i,a),f=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;f&&(u=uL(f,h,v,i,o,l,a))}IN(i,o,pa.determine,null,u,a)}F(this._coordsList,function(d){d.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Oe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0})==null;return eA(n,s,!0,!0,t),vB(a,n),A;function l(f){F(a[Ge[f]],function(h){if(hf(h.model)){var v=i.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var p=0;p0&&!zr(h)&&h>1e-4&&(f/=h),f}}function zae(r,e,t,n,a){var i=new BN(Kae);return F(t,function(o){return F(o,function(s){if(hf(s.model)){var A=!n;s.axisBuilder=Oae(r,e,s.model,a,i,A)}})}),i}function IN(r,e,t,n,a,i){var o=t===pa.determine;F(e,function(l){return F(l,function(u){hf(u.model)&&(Hae(u.axisBuilder,r,u.model),u.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};A(0),A(1);function A(l){s[Ge[1-l]]=r[rr[l]]<=i.refContainer[rr[l]]*.5?0:1-l===1?2:1}F(e,function(l,u){return F(l,function(c){hf(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function $ae(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=Ut(r.get("outerBounds",!0)||vN,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||$e(["all","axisLabel"],i)<0?o="all":o=i;var s=[jd(Le(r.get("outerBoundsClampWidth",!0),xp[0]),e.width),jd(Le(r.get("outerBoundsClampHeight",!0),xp[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Kae=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";CN(r,e,t,n,a,i),kl(r.nameLocation)||F(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&xN(s.labelInfoList,s.dirVec,n,a)})};const Wae=Nae;function Xae(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Yae(t,r,e),t.seriesInvolved&&jae(t,r),t}function Yae(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];F(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var A=pf(s.model),l=r.coordSysAxesInfo[A]={};r.coordSysMap[A]=s;var u=s.model,c=u.getModel("tooltip",n);if(F(s.getAxes(),ze(d,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var f=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(f||h)&&F(v.baseAxes,ze(d,h?"cross":!0,f)),h&&F(v.otherAxes,ze(d,"cross",!1))}function d(p,g,y){var m=y.model.getModel("axisPointer",a),w=m.get("show");if(!(!w||w==="auto"&&!p&&!pB(m))){g==null&&(g=m.get("triggerTooltip")),m=p?Zae(y,c,a,e,p,g):m;var B=m.get("snap"),C=m.get("triggerEmphasis"),b=pf(y.model),_=g||B||y.type==="category",x=r.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:m,triggerTooltip:g,triggerEmphasis:C,involveSeries:_,snap:B,useHandle:pB(m),seriesModels:[],linkGroup:null};l[b]=x,r.seriesInvolved=r.seriesInvolved||_;var S=Jae(i,y);if(S!=null){var I=o[S]||(o[S]={axesInfo:{}});I.axesInfo[b]=x,I.mapper=i[S].mapper,x.linkGroup=I}}}})}function Zae(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],A={};F(s,function(f){A[f]=De(o.get(f))}),A.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(A.type="line");var l=A.label||(A.label={});if(l.show==null&&(l.show=!1),a==="cross"){var u=o.get(["label","show"]);if(l.show=u??!0,!i){var c=A.lineStyle=o.get("crossStyle");c&&Re(l,c.textStyle)}}return r.model.getModel("axisPointer",new ot(A,t,n))}function jae(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||F(r.coordSysAxesInfo[pf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Jae(r,e){for(var t=e.model,n=e.dim,a=0;a=0||r===e}function qae(r){var e=Yb(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=pB(t);i==null&&(a.status=s?"show":"hide");var A=n.getExtent().slice();A[0]>A[1]&&A.reverse(),(o==null||o>A[1])&&(o=A[1]),o0;return o&&s}var sie=Ye();function hL(r,e,t,n){if(r instanceof gN){var a=r.scale.type;if(a!=="category"&&a!=="ordinal")return t}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),A=i.get("jitterMargin")||0,l=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?QN(t,o,l,n):Aie(r,e,t,n,o,A):t}function QN(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function Aie(r,e,t,n,a,i){var o=sie(r);o.items||(o.items=[]);var s=o.items,A=vL(s,e,t,n,a,i,1),l=vL(s,e,t,n,a,i,-1),u=Math.abs(A-t)a/2||c&&f>c/2-n?QN(t,a,c,n):(s.push({fixedCoord:e,floatCoord:u,r:n}),u)}function vL(r,e,t,n,a,i,o){for(var s=t,A=0;Aa/2)return Number.MAX_VALUE;if(o===1&&v>s||o===-1&&v0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=A;v.color!=null&&(d=Re({color:v.color},A));var p=Ke(De(v),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:f},!1);if(Ce(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else Me(u)&&(p.name=u(p.name,p));var y=new ot(p,null,this.ecModel);return ir(y,Vf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:le.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ke({lineStyle:{color:le.color.neutral20}},Du.axisLine),axisLabel:vv(Du.axisLabel,!1),axisTick:vv(Du.axisTick,!1),splitLine:vv(Du.splitLine,!0),splitArea:vv(Du.splitArea,!0),indicator:[]},e}(et);const mie=yie;var wie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=me(i,function(s){var A=s.model.get("showName")?s.name:"",l=new Di(s.model,n,{axisName:A,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});F(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),A=o.getModel("lineStyle"),l=s.getModel("areaStyle"),u=o.get("show"),c=s.get("show"),f=A.get("color"),h=l.get("color"),v=ge(f)?f:[f],d=ge(h)?h:[h],p=[],g=[];function y(R,P,E){var k=E%P.length;return R[k]=R[k]||[],k}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,B=n.cy,C=0;C3?1.4:o>1?1.2:1.1,u=i>0?l:1/l;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:u,originX:s,originY:A,isAvailableBehavior:null})}if(a){var c=Math.abs(i),f=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:A,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(gL(this._zr,"globalPan")||Fu(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Ti(i.event),i.__ecRoamConsumed=!0,yL(t,n,a,i,o))},e}(qn);function Fu(r){return r.__ecRoamConsumed}var Die=Ye();function Wg(r){var e=Die(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Qu(r,e,t,n){for(var a=Wg(r),i=a.roam,o=i[e]=i[e]||[],s=0;s=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&s!=null&&A!=null&&(c=HN(u,{x:0,y:0,width:s,height:A}),!t.ignoreViewBox)){var h=a;a=new Fe,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!t.ignoreRootClip&&s!=null&&A!=null&&a.setClipPath(new Xe({shape:{x:0,y:0,width:s,height:A}})),{root:a,width:s,height:A,viewBoxRect:u,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),A,l=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")A=t;else{if(!i){var u=n0[s];if(u&&Se(n0,s)){A=u.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:A};n.push(f),s==="g"&&(l=f)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:A});t.add(A)}}var h=CL[s];if(h&&Se(CL,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(A&&A.isGroup)for(var p=e.firstChild;p;)p.nodeType===1?this._parseNode(p,A,n,l,i,o):p.nodeType===3&&o&&this._parseText(p,A),p=p.nextSibling},r.prototype._parseText=function(e,t){var n=new qc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),Pie(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){n0={g:function(e,t){var n=new Fe;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Xe;return Fn(t,n),dn(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 Po;return Fn(t,n),dn(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 lr;return Fn(t,n),dn(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 qC;return Fn(t,n),dn(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"),a;n&&(a=_L(n));var i=new an({shape:{points:a||[]},silent:!0});return Fn(t,i),dn(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=_L(n));var i=new Wr({shape:{points:a||[]},silent:!0});return Fn(t,i),dn(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Ur;return Fn(t,n),dn(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",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Fe;return Fn(t,s),dn(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Fe;return Fn(t,s),dn(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=HR(n);return Fn(t,a),dn(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),CL={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new AA(e,t,n,a);return bL(r,i),xL(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new qR(e,t,n);return bL(r,a),xL(r,a),a}};function bL(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function xL(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};ON(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var A=hn(o),l=A&&A[3];l&&(A[3]*=yo(s),o=Wa(A,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Fn(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Re(e.__inheritedStyle,r.__inheritedStyle))}function _L(r){for(var e=Yg(r),t=[],n=0;n0;i-=2){var o=n[i],s=n[i-1],A=Yg(o);switch(a=a||xr(),s){case"translate":ja(a,a,[parseFloat(A[0]),parseFloat(A[1]||"0")]);break;case"scale":QC(a,a,[parseFloat(A[0]),parseFloat(A[1]||A[0])]);break;case"rotate":Uo(a,a,-parseFloat(A[0])*a0,[parseFloat(A[1]||"0"),parseFloat(A[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(A[0])*a0);Ka(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(A[0])*a0);Ka(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(A[0]),a[1]=parseFloat(A[1]),a[2]=parseFloat(A[2]),a[3]=parseFloat(A[3]),a[4]=parseFloat(A[4]),a[5]=parseFloat(A[5]);break}}e.setLocalTransform(a)}}var TL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ON(r,e,t){var n=r.getAttribute("style");if(n){TL.lastIndex=0;for(var a;(a=TL.exec(n))!=null;){var i=a[1],o=Se(Sp,i)?Sp[i]:null;o&&(e[o]=a[2]);var s=Se(Tp,i)?Tp[i]:null;s&&(t[s]=a[2])}}}function Vie(r,e,t){for(var n=0;n0,y={api:n,geo:A,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};A.resourceType==="geoJSON"?this._buildGeoJSON(y):A.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,p,t,n),this._updateMapSelectHandler(e,l,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ie(),n=Ie(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,A=e.geo.projection,l=A&&A.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var v=[],d=!l&&A&&A.project,p=0;p=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;yr(e,fr(n),{labelFetcher:f,labelDataIndex:c,defaultText:t},h);var v=e.getTextContent();if(v&&(NN(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function DL(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):Ve(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function FL(r,e,t,n,a){r.data||Pi({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function QL(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Qt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&gZ(e,a,t),o}function UL(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(A,l){isFinite(A)&&isFinite(l)&&a.push([A,l])},sphere:function(){}});return!t&&s.polygonStart(),F(r,function(A){s.lineStart();for(var l=0;l-1&&(a.style.stroke=a.style.fill,a.style.fill=le.color.neutral00,a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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:le.color.tertiary},itemStyle:{borderWidth:.5,borderColor:le.color.border,areaColor:le.color.background},emphasis:{label:{show:!0,color:le.color.primary},itemStyle:{areaColor:le.color.highlight}},select:{label:{show:!0,color:le.color.primary},itemStyle:{color:le.color.highlight}},nameProperty:"name"},e}(Pt);const uoe=loe;function coe(r,e){var t={};return F(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,A=-1/0,l=t[i].length,u=0;u1?(m.width=y,m.height=y/d):(m.height=y,m.width=y*d),m.y=g[1]-m.height/2,m.x=g[0]-m.width/2;else{var w=r.getBoxLayoutParams();w.aspect=d,m=Ut(w,v),m=DO(r,m,d)}this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function poe(r,e){F(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var goe=function(){function r(){this.dimensions=GN}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var A=o.get("map"),l=new OL(A+s,A,ve({nameMap:o.get("nameMap"),api:t,ecModel:e},a(o)));l.zoomLimit=o.get("scaleLimit"),n.push(l),o.coordinateSystem=l,l.model=o,l.resize=HL,l.resize(o,t)}),e.eachSeries(function(o){Of({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",zt).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),F(i,function(o,s){var A=me(o,function(u){return u.get("nameMap")}),l=new OL(s,s,ve({nameMap:EC(A),api:t,ecModel:e},a(o[0])));l.zoomLimit=Fr.apply(null,me(o,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=HL,l.resize(o[0],t),F(o,function(u){u.coordinateSystem=l,poe(l,u)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=Ie(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function Soe(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){Ioe(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Loe(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function Toe(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function NL(r){return arguments.length?r:Doe}function Bc(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Ioe(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Loe(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,A=a.hierNode.modifier,l=i.hierNode.modifier,u=o.hierNode.modifier,c=s.hierNode.modifier;s=i0(s),i=o0(i),s&&i;){a=i0(a),o=o0(o),a.hierNode.ancestor=r;var f=s.hierNode.prelim+c-i.hierNode.prelim-l+n(s,i);f>0&&(Moe(Eoe(s,r,t),r,f),l+=f,A+=f),c+=s.hierNode.modifier,l+=i.hierNode.modifier,A+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!i0(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-A),i&&!o0(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=l-u,t=r)}return t}function i0(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function o0(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Eoe(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Moe(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function Doe(r,e){return r.parentNode===e.parentNode?1:2}var Foe=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Qoe=function(r){ce(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Foe},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],A=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,c=1-u,f=Be(n.forkPosition,1),h=[];h[u]=o[u],h[c]=o[c]+(A[c]-o[c])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[u]=s[u],t.lineTo(h[0],h[1]),h[u]=A[u],t.lineTo(h[0],h[1]),t.lineTo(A[0],A[1]);for(var v=1;vy.x,B||(w=w-Math.PI));var b=B?"left":"right",_=s.getModel("label"),x=_.get("rotate"),S=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:_.get("position")||b,rotation:x==null?-w:S,origin:"center"}),I.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),T=L==="relative"?Wc(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;T&&(Ve(t).focus=T),Poe(a,o,u,t,v,h,d,n),t.__edge&&(t.onHoverStateChange=function(M){if(M!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Qf||tp(t.__edge,M)}})}function Poe(r,e,t,n,a,i,o,s){var A=e.getModel(),l=r.get("edgeShape"),u=r.get("layout"),c=r.getOrient(),f=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=A.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=n.__edge=new Mg({shape:mB(u,c,f,a,a)})),at(d,{shape:mB(u,c,f,i,o)},r));else if(l==="polyline"&&u==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var p=e.children,g=[],y=0;yt&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t=0){var n=t.getData().tree.root,a=r.targetNode;if(Ce(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function ZN(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function nx(r,e){var t=ZN(r);return $e(t,e)>=0}function Zg(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Woe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new ot(a,this,this.ecModel),o=rx.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(f,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(f.parentModel=i),f})}var A=0;o.eachNode("preorder",function(c){c.depth>A&&(A=c.depth)});var l=t.expandAndCollapse,u=l&&t.initialTreeDepth>=0?t.initialTreeDepth:A;return o.root.eachNode("preorder",function(c){var f=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=f&&f.collapsed!=null?!f.collapsed:c.depth<=u}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),A=s.getValue(),l=s.name;s&&s!==o;)l=s.parentNode.name+"."+l,s=s.parentNode;return nr("nameValue",{name:l,value:A,noValue:isNaN(A)||A==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Zg(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.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:le.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Pt);const Xoe=Woe;function Yoe(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function Zoe(r,e){r.eachSeriesByType("tree",function(t){joe(t,e)})}function joe(r,e){var t=hr(r,e).refContainer,n=Ut(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=NL(function(w,B){return(w.parentNode===B.parentNode?1:2)/w.depth})):(i=n.width,o=n.height,s=NL());var A=r.getData().tree.root,l=A.children[0];if(l){_oe(A),Yoe(l,Soe,s),A.hierNode.modifier=-l.hierNode.prelim,ku(l,Toe);var u=l,c=l,f=l;ku(l,function(w){var B=w.getLayout().x;Bc.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});var h=u===c?1:s(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=i/(c.getLayout().x+h+v),p=o/(f.depth-1||1),ku(l,function(w){g=(w.getLayout().x+v)*d,y=(w.depth-1)*p;var B=Bc(g,y);w.setLayout({x:B.x,y:B.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=o/(c.getLayout().x+h+v),d=i/(f.depth-1||1),ku(l,function(w){y=(w.getLayout().x+v)*p,g=m==="LR"?(w.depth-1)*d:i-(w.depth-1)*d,w.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(c.getLayout().x+h+v),p=o/(f.depth-1||1),ku(l,function(w){g=(w.getLayout().x+v)*d,y=m==="TB"?(w.depth-1)*p:o-(w.depth-1)*p,w.setLayout({x:g,y},!0)}))}}}function Joe(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");ve(s,o)})})}function qoe(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=Xg(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function ese(r){r.registerChartView(koe),r.registerSeriesModel(Xoe),r.registerLayout(Zoe),r.registerVisual(Joe),qoe(r)}var KL=["treemapZoomToNode","treemapRender","treemapMove"];function tse(r){for(var e=0;e1;)i=i.parentNode;var o=R1(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var rse=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};JN(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ot({itemStyle:o},this,n);i=t.levels=nse(i,n);var A=me(i||[],function(c){return new ot(c,s,n)},this),l=rx.createTree(a,this,u);function u(c){c.wrapMethod("getItemModel",function(f,h){var v=l.getNodeByDataIndex(h),d=v?A[v.depth]:null;return f.parentModel=d||s,f})}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return nr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Zg(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},ve(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=Ie(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jN(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:le.size.l,top:le.size.xxxl,right:le.size.l,bottom:le.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:le.size.m,emptyItemWidth:25,itemStyle:{color:le.color.backgroundShade,textStyle:{color:le.color.secondary}},emphasis:{itemStyle:{color:le.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:le.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:le.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:[]},e}(Pt);function JN(r){var e=0;F(r.children,function(n){JN(n);var a=n.value;ge(a)&&(a=a[0]),e+=a});var t=r.value;ge(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ge(r.value)?r.value[0]=t:r.value=t}function nse(r,e){var t=gt(e.get("color")),n=gt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;F(r,function(s){var A=new ot(s),l=A.get("color"),u=A.get("decal");(A.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(A.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}const ase=rse;var ise=8,WL=8,s0=5,ose=function(){function r(e){this.group=new Fe,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),A=i.getModel("emphasis"),l=s.getModel("textStyle"),u=A.getModel(["itemStyle","textStyle"]),c=hr(e,t).refContainer,f={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},v=Ut(f,c);this._prepare(n,h,l),this._renderContent(e,h,v,s,A,l,u,a),kg(o,f,c)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Ar(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+ise*2,t.emptyItemWidth);t.totalWidth+=s+WL,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,A){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=t.totalWidth,h=t.renderList,v=i.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;f>n.width&&(f-=y-u,y=u,m=null);var w=new an({shape:{points:sse(l,0,y,c,d===h.length-1,d===0)},style:Re(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new nt({style:Ct(o,{text:m})}),textConfig:{position:"inside"},z2:Jl*1e4,onclick:ze(A,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Ct(s,{text:m}),w.ensureState("emphasis").style=v,Qt(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Ase(w,e,g),l+=y+WL}},r.prototype.remove=function(){this.group.removeAll()},r}();function sse(r,e,t,n,a,i){var o=[[a?r:r-s0,e],[r+t,e],[r+t,e+n],[a?r:r-s0,e+n]];return!i&&o.splice(2,0,[r+t+s0,e+n/2]),!a&&o.push([r,e+n/2]),o}function Ase(r,e,t){Ve(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Zg(t,e)}}const lse=ose;var use=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.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())},a=0,i=this._storage.length;aYL||Math.abs(t.dy)>YL)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var A=new Ne(s.x,s.y,s.width,s.height),l=null,u=this._controllerHost;l=u.zoomLimit;var c=u.zoom=u.zoom||1;if(c*=i,l){var f=l.min||0,h=l.max||1/0;c=Math.max(Math.min(h,c),f)}var v=c/u.zoom;u.zoom=c;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=xr();ja(p,p,[-n,-a]),QC(p,p,[v,v]),ja(p,p,[n,a]),A.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:A.x,y:A.y,width:A.width,height:A.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var A=s.hostTree.data.getItemModel(s.dataIndex),l=A.get("link",!0),u=A.get("target",!0)||"blank";l&&ip(l,u)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new lse(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(nx(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ru(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var A=s.transformCoordToLocal(t,n),l=s.shape;if(l.x<=A[0]&&A[0]<=l.x+l.width&&l.y<=A[1]&&A[1]<=l.y+l.height)a={node:o,offsetX:A[0],offsetY:A[1]};else return!1}},this),a},e.type="treemap",e}(bt);function Ru(){return{nodeGroup:[],background:[],content:[]}}function pse(r,e,t,n,a,i,o,s,A,l){if(!o)return;var u=o.getLayout(),c=r.getData(),f=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),m=o.viewChildren,w=u.upperHeight,B=m&&m.length,C=f.getModel("itemStyle"),b=f.getModel(["emphasis","itemStyle"]),_=f.getModel(["blur","itemStyle"]),x=f.getModel(["select","itemStyle"]),S=C.get("borderRadius")||0,I=ne("nodeGroup",wB);if(!I)return;if(A.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Ip(I).nodeWidth=h,Ip(I).nodeHeight=v,u.isAboveViewRoot)return I;var L=ne("background",XL,l,hse);L&&U(I,L,B&&u.upperLabelHeight);var T=f.getModel("emphasis"),M=T.get("focus"),R=T.get("blurScope"),P=T.get("disabled"),E=M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():M;if(B)tf(I)&&Ms(I,!1),L&&(Ms(L,!P),c.setItemGraphicEl(o.dataIndex,L),S1(L,E,R));else{var k=ne("content",XL,l,vse);k&&O(I,k),L.disableMorphing=!0,L&&tf(L)&&Ms(L,!1),Ms(I,!P),c.setItemGraphicEl(o.dataIndex,I);var D=f.getShallow("cursor");D&&k.attr("cursor",D),S1(I,E,R)}return I;function U(W,ee,oe){var H=Ve(ee);if(H.dataIndex=o.dataIndex,H.seriesIndex=r.seriesIndex,ee.setShape({x:0,y:0,width:h,height:v,r:S}),p)G(ee);else{ee.invisible=!1;var N=o.getVisual("style"),K=N.stroke,$=JL(C);$.fill=K;var j=gs(b);j.fill=b.get("borderColor");var ie=gs(_);ie.fill=_.get("borderColor");var z=gs(x);if(z.fill=x.get("borderColor"),oe){var q=h-2*d;X(ee,K,N.opacity,{x:d,y:0,width:q,height:w})}else ee.removeTextContent();ee.setStyle($),ee.ensureState("emphasis").style=j,ee.ensureState("blur").style=ie,ee.ensureState("select").style=z,qs(ee)}W.add(ee)}function O(W,ee){var oe=Ve(ee);oe.dataIndex=o.dataIndex,oe.seriesIndex=r.seriesIndex;var H=Math.max(h-2*d,0),N=Math.max(v-2*d,0);if(ee.culling=!0,ee.setShape({x:d,y:d,width:H,height:N,r:S}),p)G(ee);else{ee.invisible=!1;var K=o.getVisual("style"),$=K.fill,j=JL(C);j.fill=$,j.decal=K.decal;var ie=gs(b),z=gs(_),q=gs(x);X(ee,$,K.opacity,null),ee.setStyle(j),ee.ensureState("emphasis").style=ie,ee.ensureState("blur").style=z,ee.ensureState("select").style=q,qs(ee)}W.add(ee)}function G(W){!W.invisible&&i.push(W)}function X(W,ee,oe,H){var N=f.getModel(H?jL:ZL),K=Ar(f.get("name"),null),$=N.getShallow("show");yr(W,fr(f,H?jL:ZL),{defaultText:$?K:null,inheritColor:ee,defaultOpacity:oe,labelFetcher:r,labelDataIndex:o.dataIndex});var j=W.getTextContent();if(j){var ie=j.style,z=pg(ie.padding||0);H&&(W.setTextConfig({layoutRect:H}),j.disableLabelLayout=!0),j.beforeUpdate=function(){var V=Math.max((H?H.width:W.shape.width)-z[1]-z[3],0),Y=Math.max((H?H.height:W.shape.height)-z[0]-z[2],0);(ie.width!==V||ie.height!==Y)&&j.setStyle({width:V,height:Y})},ie.truncateMinChar=2,ie.lineOverflow="truncate",te(ie,H,u);var q=j.getState("emphasis");te(q?q.style:null,H,u)}}function te(W,ee,oe){var H=W?W.text:null;if(!ee&&oe.isLeafRoot&&H!=null){var N=r.get("drillDownIcon",!0);W.text=N?N+" "+H:H}}function ne(W,ee,oe,H){var N=y!=null&&t[W][y],K=a[W];return N?(t[W][y]=null,ye(K,N)):p||(N=new ee,N instanceof jn&&(N.z2=gse(oe,H)),re(K,N)),e[W][g]=N}function ye(W,ee){var oe=W[g]={};ee instanceof wB?(oe.oldX=ee.x,oe.oldY=ee.y):oe.oldShape=ve({},ee.shape)}function re(W,ee){var oe=W[g]={},H=o.parentNode,N=ee instanceof Fe;if(H&&(!n||n.direction==="drillDown")){var K=0,$=0,j=a.background[H.getRawIndex()];!n&&j&&j.oldShape&&(K=j.oldShape.width,$=j.oldShape.height),N?(oe.oldX=0,oe.oldY=$):oe.oldShape={x:K,y:$,width:0,height:0}}oe.fadein=!N}}function gse(r,e){return r*fse+e}const yse=dse;var yf=F,mse=Oe,Lp=-1,ax=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=De(e);this.type=n,this.mappingMethod=t,this._normalizeData=Cse[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(A0(a),wse(a)):t==="category"?a.categories?Bse(a):A0(a,!0):(Kr(t!=="linear"||a.dataExtent),A0(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return be(this._normalizeData,this)},r.listVisualTypes=function(){return je(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){Oe(e)?F(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=ge(e)?[]:Oe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var A=t.call(n,o,s);a?i=A:i[s]=A}),i},r.retrieveVisuals=function(e){var t={},n;return e&&yf(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(ge(e))e=e.slice();else if(mse(e)){var t=[];yf(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function A0(r,e){var t=r.visual,n=[];Oe(t)?yf(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),qN(r,n)}function pv(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:BB([0,1])}}function qL(r){var e=this.option.visual;return e[Math.round(ct(r,[0,1],[0,e.length-1],!0))]||{}}function Ou(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Cc(r){var e=this.option.visual;return e[this.option.loop&&r!==Lp?r%e.length:r]}function ys(){return this.option.visual[0]}function BB(r){return{linear:function(e){return ct(e,r,this.option.visual,!0)},category:Cc,piecewise:function(e,t){var n=CB.call(this,t);return n==null&&(n=ct(e,r,this.option.visual,!0)),n},fixed:ys}}function CB(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=ax.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function qN(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=me(e,function(t){var n=hn(t);return n||[0,0,0,1]})),e}var Cse={linear:function(r){return ct(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ax.findPieceIndex(r,e,!0);if(t!=null)return ct(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Lp},fixed:Xt};function gv(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var g=Ise(a,A,d,p,v,n);t5(d,g,t,n)}})}}}function _se(r,e,t){var n=ve({},e),a=t.designatedVisualItemStyle;return F(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function eE(r){var e=l0(r,"color");if(e){var t=l0(r,"colorAlpha"),n=l0(r,"colorSaturation");return n&&(e=mo(e,null,null,n)),t&&(e=$d(e,t)),e}}function Sse(r,e){return e!=null?mo(e,null,null,r):null}function l0(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function Tse(r,e,t,n,a,i){if(!(!i||!i.length)){var o=u0(e,"color")||a.color!=null&&a.color!=="none"&&(u0(e,"colorAlpha")||u0(e,"colorSaturation"));if(o){var s=e.get("visualMin"),A=e.get("visualMax"),l=t.dataExtent.slice();s!=null&&sl[1]&&(l[1]=A);var u=e.get("colorMappingBy"),c={type:o.name,dataExtent:l,visual:o.range};c.type==="color"&&(u==="index"||u==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var f=new Qr(c);return e5(f).drColorMappingBy=u,f}}}function u0(r,e){var t=r.get(e);return ge(t)&&t.length?{name:e,range:t}:null}function Ise(r,e,t,n,a,i){var o=ve({},e);if(a){var s=a.type,A=s==="color"&&e5(a).drColorMappingBy,l=A==="index"?n:A==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(l)}return o}var mf=Math.max,Ep=Math.min,tE=Fr,ix=F,r5=["itemStyle","borderWidth"],Lse=["itemStyle","gapWidth"],Ese=["upperLabel","show"],Mse=["upperLabel","height"];const Dse={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=hr(r,t).refContainer,o=Ut(r.getBoxLayoutParams(),i),s=a.size||[],A=Be(tE(o.width,s[0]),i.width),l=Be(tE(o.height,s[1]),i.height),u=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],f=gf(n,c,r),h=u==="treemapRender"||u==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),d=ZN(v);if(u!=="treemapMove"){var p=u==="treemapZoomToNode"?Rse(r,f,v,A,l):h?[h.width,h.height]:[A,l],g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:p[0],height:p[1],area:p[0]*p[1]};v.setLayout(m),n5(v,y,!1,0),m=v.getLayout(),ix(d,function(B,C){var b=(d[C+1]||v).getValue();B.setLayout(ve({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var w=r.getData().tree.root;w.setLayout(Ose(o,h,f),!0),r.setLayoutInfo(o),a5(w,new Ne(-o.x,-o.y,t.getWidth(),t.getHeight()),d,v,0)}};function n5(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),A=s.get(r5),l=s.get(Lse)/2,u=i5(s),c=Math.max(A,u),f=A-l,h=c-l;r.setLayout({borderWidth:A,upperHeight:c,upperLabelHeight:u},!0),a=mf(a-2*f,0),i=mf(i-f-h,0);var v=a*i,d=Fse(r,s,v,e,t,n);if(d.length){var p={x:f,y:h,width:a,height:i},g=Ep(a,i),y=1/0,m=[];m.area=0;for(var w=0,B=d.length;w=0;A--){var l=a[n==="asc"?o-A-1:A].getValue();l/t*es[1]&&(s[1]=l)})),{sum:n,dataExtent:s}}function kse(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;in&&(n=o));var A=r.area*r.area,l=e*e*t;return A?mf(l*n/A,A/(l*a)):1/0}function rE(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],A=["width","height"],l=t[s[i]],u=e?r.area/e:0;(a||u>t[A[o]])&&(u=t[A[o]]);for(var c=0,f=r.length;ciT&&(l=iT),i=s}ln&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o0&&(B[0]=-B[0],B[1]=-B[1]);var b=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var _=-Math.atan2(w[1],w[0]);c[0].8?"left":f[0]<-.8?"right":"center",d=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*g+u[0],i.y=-f[1]*y+u[1],v=f[0]>.8?"right":f[0]<-.8?"left":"center",d=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*b+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*b,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*b+c[0],i.y=c[1]+x,v=w[0]>=0?"right":"left",i.originX=g*b,i.originY=-x;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},e}(Fe);const lx=nAe;var aAe=function(){function r(e){this.group=new Fe,this._LineCtor=e||lx}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=AE(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,A){t._doUpdate(i,e,A,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=AE(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!iAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function AE(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:fr(e)}}function lE(r){return isNaN(r[0])||isNaN(r[1])}function d0(r){return r&&!lE(r[0])&&!lE(r[1])}const ux=aAe;var p0=[],g0=[],y0=[],KA=Cr,m0=Os,uE=Math.abs;function cE(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,A=t*t,l=.1,u=.1;u<=.9;u+=.1){p0[0]=KA(n[0],a[0],i[0],u),p0[1]=KA(n[1],a[1],i[1],u);var c=uE(m0(p0,e)-A);c=0?s=s+l:s=s-l:v>=0?s=s-l:s=s+l}return s}function w0(r,e){var t=[],n=Xc,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,A){var l=s.getLayout(),u=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");l.__original||(l.__original=[wi(l[0]),wi(l[1])],l[2]&&l.__original.push(wi(l[2])));var f=l.__original;if(l[2]!=null){if(Jr(a[0],f[0]),Jr(a[1],f[2]),Jr(a[2],f[1]),u&&u!=="none"){var h=xc(s.node1),v=cE(a,f[0],h*e);n(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(c&&c!=="none"){var h=xc(s.node2),v=cE(a,f[1],h*e);n(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Jr(l[0],a[0]),Jr(l[1],a[2]),Jr(l[2],a[1])}else{if(Jr(i[0],f[0]),Jr(i[1],f[1]),Ls(o,i[1],i[0]),Yl(o,o),u&&u!=="none"){var h=xc(s.node1);Kw(i[0],i[0],o,h*e)}if(c&&c!=="none"){var h=xc(s.node2);Kw(i[1],i[1],o,-h*e)}Jr(l[0],i[0]),Jr(l[1],i[1])}})}var f5=Ye();function oAe(r){if(r)return f5(r).bridge}function fE(r,e){r&&(f5(r).bridge=e)}function hE(r){return r.type==="view"}var sAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new zf,i=new ux,o=this.group,s=new Fe;this._controller=new gA(n.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=a,this._active=!0;var A=this._getThumbnailInfo();A&&A.bridge.reset(a);var l=this._symbolDraw,u=this._lineDraw;if(hE(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):at(this._mainGroup,c,t)}w0(t.getGraph(),bc(t));var f=t.getData();l.updateData(f);var h=t.getEdgeData();u.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,t,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&(s=!0,this._startForceLayoutIteration(v,a,d));var p=t.get("layout");f.graph.eachNode(function(w){var B=w.dataIndex,C=w.getGraphicEl(),b=w.getModel();if(C){C.off("drag").off("dragend");var _=b.get("draggable");_&&C.on("drag",function(S){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,a,d),v.setFixed(B),f.setItemLayout(B,[C.x,C.y]);break;case"circular":f.setItemLayout(B,[C.x,C.y]),w.setLayout({fixed:!0},!0),Ax(t,"symbolSize",w,[S.offsetX,S.offsetY]),i.updateLayout(t);break;case"none":default:f.setItemLayout(B,[C.x,C.y]),sx(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(B)}),C.setDraggable(_,!!b.get("cursor"));var x=b.get(["emphasis","focus"]);x==="adjacency"&&(Ve(C).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var B=w.getGraphicEl(),C=w.getModel().get(["emphasis","focus"]);B&&C==="adjacency"&&(Ve(B).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(w){l5(w,g,y,m)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n,a){var i=this,o=!1;(function s(){t.step(function(A){i.updateLayout(i._model),(A||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!A)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,n,a){var i=this._controller,o=this._controllerHost,s=n.coordinateSystem;if(!hE(s)){i.disable();return}i.enable(n.get("roam"),{api:a,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(A,l,u){return s.containPoint([l,u])},isInClip:function(A,l,u){return!t||t.contain(l,u)}}}),o.zoomLimit=n.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(A){a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:A.dx,dy:A.dy})}).on("zoom",function(A){a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:A.scale,originX:A.originX,originY:A.originY})})},e.prototype.updateViewOnPan=function(t,n,a){this._active&&(jb(this._controllerHost,a.dx,a.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,n,a){this._active&&(Jb(this._controllerHost,a.zoom,a.originX,a.originY),this._updateNodeAndLinkScale(),w0(t.getGraph(),bc(t)),this._lineDraw.updateLayout(),n.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=bc(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(w0(t.getGraph(),bc(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.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()},e.prototype._getThumbnailInfo=function(){var t=this._model,n=t.coordinateSystem;if(n.type==="view"){var a=oAe(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new Fe,A=a.group.children(),l=i.group.children(),u=new Fe,c=new Fe;s.add(c),s.add(u);for(var f=0;f=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof ms||(t=this._nodesMap[WA(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&A.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(h.node1))}for(A=0;A=0&&!e.hasKey(m)&&(e.set(m,!0),s.push(y.node2))}}}return{edge:e.keys(),node:t.keys()}},r}(),h5=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Ie(),t=Ie();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i=0&&!e.hasKey(c)&&(e.set(c,!0),n.push(u.node1))}for(i=0;i=0&&!e.hasKey(d)&&(e.set(d,!0),a.push(v.node2))}return{edge:e.keys(),node:t.keys()}},r}();function v5(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}ir(ms,v5("hostGraph","data"));ir(h5,v5("hostGraph","edgeData"));const uAe=lAe;function cx(r,e,t,n,a){for(var i=new uAe(n),o=0;o "+f)),l++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar"||h==="matrix")v=ki(r,t);else{var d=Rf.get(h),p=d?d.dimensions||[]:[];$e(p,"value")<0&&p.concat(["value"]);var g=Nf(r,{coordDimensions:p,encodeDefine:t.getEncode()}).dimensions;v=new tn(g,t),v.initData(r)}var y=new tn(["value"],t);return y.initData(A,s),a&&a(v,y),XN({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var cAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new lu(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Zs(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){Kse(this);var s=cx(i,a,this,!0,A);return F(s.edges,function(l){Wse(l.node1,l.node2,this,l.dataIndex)},this),s.data}function A(l,u){l.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var c=ot.prototype.getModel;function f(v,d){var p=c.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=f,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),A=i.getName(s.node1.dataIndex),l=i.getName(s.node2.dataIndex),u=[];return A!=null&&u.push(A),l!=null&&u.push(l),nr("nameValue",{name:u.join(" > "),value:o.value,noValue:o.value==null})}var c=vH({series:this,dataIndex:t,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var t=me(this.option.categories||[],function(a){return a.value!=null?a:ve({value:0},a)}),n=new tn(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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:le.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const fAe=cAe;function hAe(r){r.registerChartView(AAe),r.registerSeriesModel(fAe),r.registerProcessor(Nse),r.registerVisual(Vse),r.registerVisual(Gse),r.registerLayout(Xse),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Zse),r.registerLayout(Jse),r.registerCoordinateSystem("graphView",{dimensions:yA.dimensions,create:eAe}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=n.getViewOfSeriesModel(a);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(a,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(a,n,e));var o=a.coordinateSystem,s=Xg(o,e,a.get("scaleLimit"));a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var vAe=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;Ve(i).dataType="node",i.z2=2;var o=new nt;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),A=t.hostModel,l=s.getModel(),u=l.getModel("emphasis"),c=t.getItemLayout(n),f=ve($a(l.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(f.startAngle)){h.setShape(f);return}i?h.setShape(f):at(h,{shape:f},A,n);var v=ve($a(l.getModel("itemStyle"),c,!0),c);o.setShape(v),o.useStyle(t.getItemVisual(n,"style")),cr(o,l),this._updateLabel(A,l,s),t.setItemGraphicEl(n,h),cr(h,l,"itemStyle");var d=u.get("focus");Qt(this,d==="adjacency"?s.getAdjacentDataIndices():d,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,A=Math.cos(s),l=Math.sin(s),u=n.getModel("label");i.ignore=!u.get("show");var c=fr(n),f=a.getVisual("style");yr(i,c,{labelFetcher:{getFormattedLabel:function(y,m,w,B,C,b){return t.getFormattedLabel(y,m,"node",B,bn(C,c.normal&&c.normal.get("formatter"),n.get("name")),b)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:"startArc"});var h=u.get("position")||"outside",v=u.get("distance")||0,d;h==="outside"?d=o.r+v:d=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var p=h!=="outside"?u.get("align")||"center":A>0?"left":"right",g=h!=="outside"?u.get("verticalAlign")||"middle":l>0?"top":"bottom";i.attr({x:A*d+o.cx,y:l*d+o.cy,rotation:0,style:{align:p,verticalAlign:g}})},e}(nn);const vE=vAe;var dAe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;return Ve(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,A=n.graph.getEdgeByIndex(a),l=A.getLayout(),u=A.node1.getModel(),c=n.getItemModel(A.dataIndex),f=c.getModel("lineStyle"),h=c.getModel("emphasis"),v=h.get("focus"),d=ve($a(u.getModel("itemStyle"),l,!0),l),p=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){p.setShape(d);return}o?(p.setShape(d),dE(p,A,t,f)):(Jn(p),dE(p,A,t,f),at(p,{shape:d},s,a)),Qt(this,v==="adjacency"?A.getAdjacentDataIndices():v,h.get("blurScope"),h.get("disabled")),cr(p,c,"lineStyle"),n.setItemGraphicEl(A.dataIndex,p)},e}(Ze);function dE(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var A=t.getItemVisual(a.dataIndex,"style").fill,l=t.getItemVisual(i.dataIndex,"style").fill;if(Ce(A)&&Ce(l)){var u=r.shape,c=(u.s1[0]+u.s2[0])/2,f=(u.s1[1]+u.s2[1])/2,h=(u.t1[0]+u.t2[0])/2,v=(u.t1[1]+u.t2[1])/2;o.fill=new AA(c,f,h,v,[{offset:0,color:A},{offset:1,color:l}],!0)}break}}var pAe=Math.PI/180,gAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,A=-t.get("startAngle")*pAe;if(i.diff(o).add(function(u){var c=i.getItemLayout(u);if(c){var f=new vE(i,u,A);Ve(f).dataIndex=u,s.add(f)}}).update(function(u,c){var f=o.getItemGraphicEl(c),h=i.getItemLayout(u);if(!h){f&&Bi(f,t,c);return}f?f.updateData(i,u,A):f=new vE(i,u,A),s.add(f)}).remove(function(u){var c=o.getItemGraphicEl(u);c&&Bi(c,t,u)}).execute(),!o){var l=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Be(l[0],a.getWidth()),this.group.originY=Be(l[1],a.getHeight()),Lt(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,A)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(A){var l=new dAe(a,i,A,n);Ve(l).dataIndex=A,s.add(l)}).update(function(A,l){var u=o.getItemGraphicEl(l);u.updateData(a,i,A,n),s.add(u)}).remove(function(A){var l=o.getItemGraphicEl(A);l&&Bi(l,t,A)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e}(bt);const yAe=gAe;var mAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=cx(i,a,this,!0,s);return o.data}function s(A,l){var u=ot.prototype.getModel;function c(h,v){var d=u.call(this,h,v);return d.resolveParentPath=f,d}l.wrapMethod("getItemModel",function(h){return h.resolveParentPath=f,h.getModel=c,h});function f(h){if(h&&(h[0]==="label"||h[1]==="label")){var v=h.slice();return h[0]==="label"?v[0]="edgeLabel":h[1]==="label"&&(v[1]="edgeLabel"),v}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),A=o.getName(s.node1.dataIndex),l=o.getName(s.node2.dataIndex),u=[];return A!=null&&u.push(A),l!=null&&u.push(l),nr("nameValue",{name:u.join(" > "),value:i.value,noValue:i.value==null})}return nr("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series.chord",e.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}}},e}(Pt);const wAe=mAe;var B0=Math.PI/180;function BAe(r,e){r.eachSeriesByType("chord",function(t){CAe(t,e)})}function CAe(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=MO(r,e),s=o.cx,A=o.cy,l=o.r,u=o.r0,c=Math.max((r.get("padAngle")||0)*B0,0),f=Math.max((r.get("minAngle")||0)*B0,0),h=-r.get("startAngle")*B0,v=h+Math.PI*2,d=r.get("clockwise"),p=d?1:-1,g=[h,v];Sg(g,!d);var y=g[0],m=g[1],w=m-y,B=t.getSum("value")===0&&a.getSum("value")===0,C=[],b=0;n.eachEdge(function(k){var D=B?1:k.getValue("value");B&&(D>0||f)&&(b+=2);var U=k.node1.dataIndex,O=k.node2.dataIndex;C[U]=(C[U]||0)+D,C[O]=(C[O]||0)+D});var _=0;if(n.eachNode(function(k){var D=k.getValue("value");isNaN(D)||(C[k.dataIndex]=Math.max(D,C[k.dataIndex]||0)),!B&&(C[k.dataIndex]>0||f)&&b++,_+=C[k.dataIndex]||0}),!(b===0||_===0)){c*b>=Math.abs(w)&&(c=Math.max(0,(Math.abs(w)-f*b)/b)),(c+f)*b>=Math.abs(w)&&(f=(Math.abs(w)-c*b)/b);var x=(w-c*b*p)/_,S=0,I=0,L=0;n.eachNode(function(k){var D=C[k.dataIndex]||0,U=x*(_?D:1)*p;Math.abs(U)I){var M=S/I;n.eachNode(function(k){var D=k.getLayout().angle;Math.abs(D)>=f?k.setLayout({angle:D*M,ratio:M},!0):k.setLayout({angle:f,ratio:f===0?1:D/f},!0)})}else n.eachNode(function(k){if(!T){var D=k.getLayout().angle,U=Math.min(D/L,1),O=U*S;D-Of&&f>0){var U=T?1:Math.min(D/L,1),O=D-f,G=Math.min(O,Math.min(R,S*U));R-=G,k.setLayout({angle:D-G,ratio:(D-G)/D},!0)}else f>0&&k.setLayout({angle:f,ratio:D===0?1:f/D},!0)}});var P=y,E=[];n.eachNode(function(k){var D=Math.max(k.getLayout().angle,f);k.setLayout({cx:s,cy:A,r0:u,r:l,startAngle:P,endAngle:P+D*p,clockwise:d},!0),E[k.dataIndex]=P,P+=(D+c)*p}),n.eachEdge(function(k){var D=B?1:k.getValue("value"),U=x*(_?D:1)*p,O=k.node1.dataIndex,G=E[O]||0,X=Math.abs((k.node1.getLayout().ratio||1)*U),te=G+X*p,ne=[s+u*Math.cos(G),A+u*Math.sin(G)],ye=[s+u*Math.cos(te),A+u*Math.sin(te)],re=k.node2.dataIndex,W=E[re]||0,ee=Math.abs((k.node2.getLayout().ratio||1)*U),oe=W+ee*p,H=[s+u*Math.cos(W),A+u*Math.sin(W)],N=[s+u*Math.cos(oe),A+u*Math.sin(oe)];k.setLayout({s1:ne,s2:ye,sStartAngle:G,sEndAngle:te,t1:H,t2:N,tStartAngle:W,tEndAngle:oe,cx:s,cy:A,r:u,value:D,clockwise:d}),E[O]=te,E[re]=oe})}}}function bAe(r){r.registerChartView(yAe),r.registerSeriesModel(wAe),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,BAe),r.registerProcessor(su("chord"))}var xAe=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),_Ae=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new xAe},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,A=n.angle,l=n.x-a(A)*s*(s>=o/3?1:2),u=n.y-i(A)*s*(s>=o/3?1:2);A=n.angle-Math.PI/2,t.moveTo(l,u),t.lineTo(n.x+a(A)*s,n.y+i(A)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(A)*s,n.y-i(A)*s),t.lineTo(l,u)},e}(Ze);const SAe=_Ae;function TAe(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=Be(t[0],e.getWidth()),s=Be(t[1],e.getHeight()),A=Be(r.get("radius"),i/2);return{cx:o,cy:s,r:A}}function mv(r,e){var t=r==null?"":r+"";return e&&(Ce(e)?t=e.replace("{value}",t):Me(e)&&(t=e(r))),t}var IAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=TAe(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,A=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),f=c.get("roundCap"),h=f?bp:nn,v=c.get("show"),d=c.getModel("lineStyle"),p=d.get("width"),g=[l,u];Sg(g,!A),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],B=0;v&&B=x&&(S===0?0:i[S-1][0])Math.PI/2&&(te+=Math.PI)):X==="tangential"?te=-_-Math.PI/2:qe(X)&&(te=X*Math.PI/180),te===0?c.add(new nt({style:Ct(m,{text:D,x:O,y:G,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:U}),silent:!0})):c.add(new nt({style:Ct(m,{text:D,x:O,y:G,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:O,originY:G,rotation:te}))}if(y.get("show")&&P!==w){var E=y.get("distance");E=E?E+u:u;for(var ne=0;ne<=B;ne++){M=Math.cos(_),R=Math.sin(_);var ye=new lr({shape:{x1:M*(v-E)+f,y1:R*(v-E)+h,x2:M*(v-b-E)+f,y2:R*(v-b-E)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((P+ne/B)/w)}),c.add(ye),_+=S}_-=S}else _+=x}},e.prototype._renderPointer=function(t,n,a,i,o,s,A,l,u){var c=this.group,f=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),y=t.getData(),m=y.mapDimension("value"),w=+t.get("min"),B=+t.get("max"),C=[w,B],b=[s,A];function _(S,I){var L=y.getItemModel(S),T=L.getModel("pointer"),M=Be(T.get("width"),o.r),R=Be(T.get("length"),o.r),P=t.get(["pointer","icon"]),E=T.get("offsetCenter"),k=Be(E[0],o.r),D=Be(E[1],o.r),U=T.get("keepAspect"),O;return P?O=ar(P,k-M/2,D-R,M,R,null,U):O=new SAe({shape:{angle:-Math.PI/2,width:M,r:R,x:k,y:D}}),O.rotation=-(I+Math.PI/2),O.x=o.cx,O.y=o.cy,O}function x(S,I){var L=p.get("roundCap"),T=L?bp:nn,M=p.get("overlap"),R=M?p.get("width"):u/y.count(),P=M?o.r-R:o.r-(S+1)*R,E=M?o.r:o.r-S*R,k=new T({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:l,r0:P,r:E}});return M&&(k.z2=ct(y.get(m,S),[w,B],[100,0],!0)),k}(g||d)&&(y.diff(f).add(function(S){var I=y.get(m,S);if(d){var L=_(S,s);Lt(L,{rotation:-((isNaN(+I)?b[0]:ct(I,C,b,!0))+Math.PI/2)},t),c.add(L),y.setItemGraphicEl(S,L)}if(g){var T=x(S,s),M=p.get("clip");Lt(T,{shape:{endAngle:ct(I,C,b,M)}},t),c.add(T),C1(t.seriesIndex,y.dataType,S,T),v[S]=T}}).update(function(S,I){var L=y.get(m,S);if(d){var T=f.getItemGraphicEl(I),M=T?T.rotation:s,R=_(S,M);R.rotation=M,at(R,{rotation:-((isNaN(+L)?b[0]:ct(L,C,b,!0))+Math.PI/2)},t),c.add(R),y.setItemGraphicEl(S,R)}if(g){var P=h[I],E=P?P.shape.endAngle:s,k=x(S,E),D=p.get("clip");at(k,{shape:{endAngle:ct(L,C,b,D)}},t),c.add(k),C1(t.seriesIndex,y.dataType,S,k),v[S]=k}}).execute(),y.each(function(S){var I=y.getItemModel(S),L=I.getModel("emphasis"),T=L.get("focus"),M=L.get("blurScope"),R=L.get("disabled");if(d){var P=y.getItemGraphicEl(S),E=y.getItemVisual(S,"style"),k=E.fill;if(P instanceof Ur){var D=P.style;P.useStyle(ve({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},E))}else P.useStyle(E),P.type!=="pointer"&&P.setColor(k);P.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(ct(y.get(m,S),C,[0,1],!0))),P.z2EmphasisLift=0,cr(P,I),Qt(P,T,M,R)}if(g){var U=v[S];U.useStyle(y.getItemVisual(S,"style")),U.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,cr(U,I),Qt(U,T,M,R)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),A=a.get("offsetCenter"),l=a.get("keepAspect"),u=ar(s,n.cx-o/2+Be(A[0],n.r),n.cy-o/2+Be(A[1],n.r),o,o,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,A=t.getData(),l=A.mapDimension("value"),u=+t.get("min"),c=+t.get("max"),f=new Fe,h=[],v=[],d=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);A.diff(this._data).add(function(g){h[g]=new nt({silent:!0}),v[g]=new nt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),A.each(function(g){var y=A.getItemModel(g),m=A.get(l,g),w=new Fe,B=i(ct(m,[u,c],[0,1],!0)),C=y.getModel("title");if(C.get("show")){var b=C.get("offsetCenter"),_=o.cx+Be(b[0],o.r),x=o.cy+Be(b[1],o.r),S=h[g];S.attr({z2:p?0:2,style:Ct(C,{x:_,y:x,text:A.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:B})}),w.add(S)}var I=y.getModel("detail");if(I.get("show")){var L=I.get("offsetCenter"),T=o.cx+Be(L[0],o.r),M=o.cy+Be(L[1],o.r),R=Be(I.get("width"),o.r),P=Be(I.get("height"),o.r),E=t.get(["progress","show"])?A.getItemVisual(g,"style").fill:B,S=v[g],k=I.get("formatter");S.attr({z2:p?0:2,style:Ct(I,{x:T,y:M,text:mv(m,k),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),uO(S,{normal:I},m,function(U){return mv(U,k)}),d&&cO(S,g,A,t,{getFormattedLabel:function(U,O,G,X,te,ne){return mv(ne?ne.interpolatedValue:m,k)}}),w.add(S)}f.add(w)}),this.group.add(f),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(bt);const LAe=IAe;var EAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Au(this,["value"])},e.type="series.gauge",e.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,le.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:le.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:le.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:le.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:le.color.neutral00,borderWidth:0,borderColor:le.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:le.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:le.color.transparent,borderWidth:0,borderColor:le.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:le.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Pt);const MAe=EAe;function DAe(r){r.registerChartView(LAe),r.registerSeriesModel(MAe)}var FAe=["itemStyle","opacity"],QAe=function(r){ce(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Wr,s=new nt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),A=t.getItemLayout(n),l=s.getModel("emphasis"),u=s.get(FAe);u=u??1,a||Jn(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:A.points}),i.style.opacity=0,Lt(i,{style:{opacity:u}},o,n)):at(i,{style:{opacity:u},shape:{points:A.points}},o,n),cr(i,s),this._updateLabel(t,n),Qt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,A=t.getItemModel(n),l=t.getItemLayout(n),u=l.label,c=t.getItemVisual(n,"style"),f=c.fill;yr(o,fr(A),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:t.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}});var h=A.getModel("label"),v=h.get("color"),d=v==="inherit"?f:null;a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:d,outsideFill:d});var p=u.linePoints;i.setShape({points:p}),a.textGuideLineConfig={anchor:p?new ke(p[0][0],p[0][1]):null},at(o,{style:{x:u.x,y:u.y}},s,n),o.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),Rb(a,Ob(A),{stroke:f})},e}(an),UAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(A){var l=new QAe(i,A);i.setItemGraphicEl(A,l),s.add(l)}).update(function(A,l){var u=o.getItemGraphicEl(l);u.updateData(i,A),s.add(u),i.setItemGraphicEl(A,u)}).remove(function(A){var l=o.getItemGraphicEl(A);Bi(l,t,A)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(bt);const PAe=UAe;var kAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Au(this,{coordDimensions:["value"],encodeDefaulter:ze(pb,this)})},e.prototype._defaultLabelLine=function(t){Zs(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.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:le.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const RAe=kAe;function OAe(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(A){return A}),a=[],i=e==="ascending",o=0,s=r.count();oale)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!b0(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function b0(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const sle=ile;var Ale=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Ke(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){F(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);F(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(et);const lle=Ale;var ule=function(r){ce(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ba);const cle=ule;function Mo(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=XA(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=XA(s,[0,o]),a=i=XA(s,[a,i]),n=0}e[0]=XA(e[0],t),e[1]=XA(e[1],t);var A=x0(e,n);e[n]+=r;var l=a||0,u=t.slice();A.sign<0?u[0]+=l:u[1]-=l,e[n]=XA(e[n],u);var c;return c=x0(e,n),a!=null&&(c.sign!==A.sign||c.spani&&(e[1-n]=e[n]+c.sign*i),e}function x0(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function XA(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var _0=F,p5=Math.min,g5=Math.max,yE=Math.floor,fle=Math.ceil,mE=er,hle=Math.PI,vle=function(){function r(e,t,n){this.type="parallel",this._axesMap=Ie(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;_0(a,function(o,s){var A=i[s],l=t.getComponent("parallelAxis",A),u=this._axesMap.set(o,new cle(o,Gg(l),[0,0],l.get("type"),A)),c=u.type==="category";u.onBand=c&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();_0(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Pl(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){var n=hr(e,t).refContainer;this._rect=Ut(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],A=[0,s],l=this.dimensions.length,u=wv(e.get("axisExpandWidth"),A),c=wv(e.get("axisExpandCount")||0,[0,l]),f=e.get("axisExpandable")&&l>3&&l>c&&c>1&&u>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=wv(h[1]-h[0],A),h[1]=h[0]+v;else{v=wv(u*(c-1),A);var d=e.get("axisExpandCenter")||yE(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(s-v)/(l-c);p<3&&(p=0);var g=[yE(mE(h[0]/u,1))+1,fle(mE(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],A=o.inverse?1:0;o.setExtent(s[A],s[1-A])}),_0(n,function(o,s){var A=(a.axisExpandable?ple:dle)(s,a),l={horizontal:{x:A.position,y:a.axisLength},vertical:{x:0,y:A.position}},u={horizontal:hle/2,vertical:0},c=[l[i].x+e.x,l[i].y+e.y],f=u[i],h=xr();Uo(h,h,f),ja(h,h,c),this._axesLayout[o]={position:c,rotation:f,transform:h,axisNameAvailableWidth:A.axisNameAvailableWidth,axisLabelShow:A.axisLabelShow,nameTruncateMaxWidth:A.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],A=[];F(o,function(p){s.push(e.mapDimension(p)),A.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-c[0])?(l="jump",A=s-i*(1-c[2])):(A=s-i*c[1])>=0&&(A=s-i*(1-c[1]))<=0&&(A=0),A*=t.axisExpandWidth/u,A?Mo(A,a,o,"all"):l="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[g5(0,v-h/2)],a[1]=p5(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function wv(r,e){return p5(g5(r,e[0]),e[1])}function dle(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function ple(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,A=i,l=!1,u;return r=0;a--)Yn(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;ible}function x5(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function _5(r,e,t,n){var a=new Fe;return a.add(new Xe({name:"main",style:dx(t),silent:!0,draggable:!0,cursor:"move",drift:ze(bE,r,e,a,["n","s","w","e"]),ondragend:ze(aA,e,{isEnd:!0})})),F(n,function(i){a.add(new Xe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ze(bE,r,e,a,i),ondragend:ze(aA,e,{isEnd:!0})}))}),a}function S5(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Nl(a,xle),o=t[0][0],s=t[1][0],A=o-a/2,l=s-a/2,u=t[0][1],c=t[1][1],f=u-i+a/2,h=c-i+a/2,v=u-o,d=c-s,p=v+a,g=d+a;hi(r,e,"main",o,s,v,d),n.transformable&&(hi(r,e,"w",A,l,i,g),hi(r,e,"e",f,l,i,g),hi(r,e,"n",A,l,p,i),hi(r,e,"s",A,h,p,i),hi(r,e,"nw",A,l,i,i),hi(r,e,"ne",f,l,i,i),hi(r,e,"sw",A,h,i,i),hi(r,e,"se",f,h,i,i))}function TB(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(dx(t)),a.attr({silent:!n,cursor:n?"move":"default"}),F([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?IB(r,i[0]):Mle(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Sle[s]+"-resize":null})})}function hi(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(Fle(px(r,e,[[n,a],[n+i,a+o]])))}function dx(r){return Re({strokeNoScale:!0},r.brushStyle)}function T5(r,e,t,n){var a=[Bf(r,t),Bf(e,n)],i=[Nl(r,t),Nl(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Ele(r){return zs(r.group)}function IB(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Fg(t[e],Ele(r));return n[a]}function Mle(r,e){var t=[IB(r,e[0]),IB(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function bE(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),A=I5(e,a,i);F(n,function(l){var u=_le[l];s[u[0]][u[1]]+=A[u[0]]}),o.range=r.fromRectRange(T5(s[0][0],s[1][0],s[0][1],s[1][1])),fx(e,t),aA(e,{isEnd:!1})}function Dle(r,e,t,n){var a=e.__brushOption.range,i=I5(r,t,n);F(a,function(o){o[0]+=i[0],o[1]+=i[1]}),fx(r,e),aA(r,{isEnd:!1})}function I5(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function px(r,e,t){var n=b5(r,e);return n&&n!==nA?n.clipPath(t,r._transform):De(t)}function Fle(r){var e=Bf(r[0][0],r[1][0]),t=Bf(r[0][1],r[1][1]),n=Nl(r[0][0],r[1][0]),a=Nl(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function Qle(r,e,t){if(!(!r._brushType||Ple(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=vx(r,e,t);if(!r._dragging)for(var o=0;on.getWidth()||t<0||t>n.getHeight()}var Jg={lineX:SE(0),lineY:SE(1),rect:{createCover:function(r,e){function t(n){return n}return _5({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=x5(r);return T5(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){S5(r,e,t,n)},updateCommon:TB,contain:EB},polygon:{createCover:function(r,e){var t=new Fe;return t.add(new Wr({name:"main",style:dx(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new an({name:"main",draggable:!0,drift:ze(Dle,r,e),ondragend:ze(aA,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:px(r,e,t)})},updateCommon:TB,contain:EB}};function SE(r){return{createCover:function(e,t){return _5({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=x5(e),n=Bf(t[0][r],t[1][r]),a=Nl(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=b5(e,t);if(o!==nA&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var A=[n,i];r&&A.reverse(),S5(e,t,A,a)},updateCommon:TB,contain:EB}}const gx=Ile;function E5(r){return r=yx(r),function(e){return iO(e,r)}}function M5(r,e){return r=yx(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function D5(r,e,t){var n=yx(r);return function(a,i){return n.contain(i[0],i[1])&&!UN(a,e,t)}}function yx(r){return Ne.create(r)}var kle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new gx(n.getZr())).on("brush",be(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!Rle(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Fe,this.group.add(this._axisGroup),!!t.get("show")){var s=Hle(t,n),A=s.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,f=A.getAxisLayout(c),h=ve({strokeContainThreshold:u},f),v=new Di(t,a,h);v.build(),this._axisGroup.add(v.group),this._refreshBrushController(h,l,t,s,u,a),Uf(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var A=a.axis.getExtent(),l=A[1]-A[0],u=Math.min(30,Math.abs(l)*.1),c=Ne.create({x:A[0],y:-o/2,width:l,height:o});c.x-=u,c.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:E5(c),isTargetByCursor:D5(c,s,i),getLinearBrushOtherExtent:M5(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Ole(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=me(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Nt);function Rle(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Ole(r){var e=r.axis;return me(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Hle(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const Nle=kle;var Vle={type:"axisAreaSelect",event:"axisAreaSelected"};function Gle(r){r.registerAction(Vle,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var zle={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function F5(r){r.registerComponentView(sle),r.registerComponentModel(lle),r.registerCoordinateSystem("parallel",wle),r.registerPreprocessor(tle),r.registerComponentModel(wE),r.registerComponentView(Nle),Ol(r,"parallel",wE,zle),Gle(r)}function $le(r){We(F5),r.registerChartView(WAe),r.registerSeriesModel(jAe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ele)}var Kle=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}(),Wle=function(r){ce(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Kle},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){Li(this)},e.prototype.downplay=function(){Ei(this)},e}(Ze),Xle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Fe,t._focusAdjacencyDisabled=!1,t}return e.prototype.init=function(t,n){this._controller=new gA(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this._mainGroup,A=t.layoutInfo,l=A.width,u=A.height,c=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=A.x,s.y=A.y,this._updateViewCoordSys(t,a),PN(t,a,s,this._controller,this._controllerHost,null),o.eachEdge(function(v){var d=new Wle,p=Ve(d);p.dataIndex=v.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),B=v.node1.getModel(),C=B.get("localX"),b=B.get("localY"),_=v.node2.getLayout(),x=v.node2.getModel(),S=x.get("localX"),I=x.get("localY"),L=v.getLayout(),T,M,R,P,E,k,D,U;d.shape.extent=Math.max(1,L.dy),d.shape.orient=h,h==="vertical"?(T=(C!=null?C*l:w.x)+L.sy,M=(b!=null?b*u:w.y)+w.dy,R=(S!=null?S*l:_.x)+L.ty,P=I!=null?I*u:_.y,E=T,k=M*(1-m)+P*m,D=R,U=M*m+P*(1-m)):(T=(C!=null?C*l:w.x)+w.dx,M=(b!=null?b*u:w.y)+L.sy,R=S!=null?S*l:_.x,P=(I!=null?I*u:_.y)+L.ty,E=T*(1-m)+R*m,k=M,D=T*m+R*(1-m),U=P),d.setShape({x1:T,y1:M,x2:R,y2:P,cpx1:E,cpy1:k,cpx2:D,cpy2:U}),d.useStyle(y.getItemStyle()),TE(d.style,h,v);var O=""+g.get("value"),G=fr(g,"edgeLabel");yr(d,G,{labelFetcher:{getFormattedLabel:function(ne,ye,re,W,ee,oe){return t.getFormattedLabel(ne,ye,"edge",W,bn(ee,G.normal&&G.normal.get("formatter"),O),oe)}},labelDataIndex:v.dataIndex,defaultText:O}),d.setTextConfig({position:"inside"});var X=g.getModel("emphasis");cr(d,g,"lineStyle",function(ne){var ye=ne.getItemStyle();return TE(ye,h,v),ye}),s.add(d),f.setItemGraphicEl(v.dataIndex,d);var te=X.get("focus");Qt(d,te==="adjacency"?v.getAdjacentDataIndices():te==="trajectory"?v.getTrajectoryDataIndices():te,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,B=new Xe({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});yr(B,fr(p),{labelFetcher:{getFormattedLabel:function(b,_){return t.getFormattedLabel(b,_,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),B.disableLabelAnimation=!0,B.setStyle("fill",v.getVisual("color")),B.setStyle("decal",v.getVisual("style").decal),cr(B,p),s.add(B),c.setItemGraphicEl(v.dataIndex,B),Ve(B).dataType="node";var C=m.get("focus");Qt(B,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,m.get("blurScope"),m.get("disabled"))}),c.eachItemGraphicEl(function(v,d){var p=c.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Yle(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=a.width,o=a.height,s=t.coordinateSystem=new yA(null,{api:n,ecModel:t.ecModel});s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},e.type="sankey",e}(bt);function TE(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");Ce(n)&&Ce(a)&&(r.fill=new AA(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Yle(r,e,t){var n=new Xe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Lt(n,{shape:{width:r.width+20}},e,t),n}const Zle=Xle;var jle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,A=0;A=0&&(s[o[A].depth]=new ot(o[A],this,n));var l=cx(i,a,this,!0,u);return l.data;function u(c,f){c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,A=o.value,l=s.source+" -- "+s.target;return nr("nameValue",{name:l,value:A,noValue:i(A)})}else{var u=this.getGraph().getNodeByIndex(t),c=u.getLayout().value,f=this.getDataParams(t,a).data.name;return nr("nameValue",{name:f!=null?f+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.layoutMode="box",e.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:le.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:le.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(Pt);const Jle=jle;function qle(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=hr(t,e).refContainer,o=Ut(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,A=o.height,l=t.getGraph(),u=l.nodes,c=l.edges;tue(u);var f=ft(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");eue(u,c,n,a,s,A,h,v,d)})}function eue(r,e,t,n,a,i,o,s,A){rue(r,e,t,a,i,s,A),oue(r,e,i,a,n,o,s),due(r,s)}function tue(r){F(r,function(e){var t=bo(e.outEdges,Mp),n=bo(e.inEdges,Mp),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function rue(r,e,t,n,a,i,o){for(var s=[],A=[],l=[],u=[],c=0,f=0;f=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;yc-1?h:c-1;o&&o!=="left"&&nue(r,o,i,b);var _=i==="vertical"?(a-t)/b:(n-t)/b;iue(r,_,i)}function Q5(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function nue(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s0;i--)A*=.99,lue(s,A,o),S0(s,a,t,n,o),vue(s,A,o),S0(s,a,t,n,o)}function sue(r,e){var t=[],n=e==="vertical"?"y":"x",a=g1(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),F(a.keys,function(i){t.push(a.buckets.get(i))}),t}function Aue(r,e,t,n,a,i){var o=1/0;F(r,function(s){var A=s.length,l=0;F(s,function(c){l+=c.getLayout().value});var u=i==="vertical"?(n-(A-1)*a)/l:(t-(A-1)*a)/l;u0&&(s=A.getLayout()[i]+l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0)),u=A.getLayout()[i]+A.getLayout()[f]+e;var v=a==="vertical"?n:t;if(l=u-e-v,l>0){s=A.getLayout()[i]-l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0),u=s;for(var h=c-2;h>=0;--h)A=o[h],l=A.getLayout()[i]+A.getLayout()[f]+e-u,l>0&&(s=A.getLayout()[i]-l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0)),u=A.getLayout()[i]}})}function lue(r,e,t){F(r.slice().reverse(),function(n){F(n,function(a){if(a.outEdges.length){var i=bo(a.outEdges,uue,t)/bo(a.outEdges,Mp);if(isNaN(i)){var o=a.outEdges.length;i=o?bo(a.outEdges,cue,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Do(a,t))*e;a.setLayout({x:s},!0)}else{var A=a.getLayout().y+(i-Do(a,t))*e;a.setLayout({y:A},!0)}}})})}function uue(r,e){return Do(r.node2,e)*r.getValue()}function cue(r,e){return Do(r.node2,e)}function fue(r,e){return Do(r.node1,e)*r.getValue()}function hue(r,e){return Do(r.node1,e)}function Do(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Mp(r){return r.getValue()}function bo(r,e,t){for(var n=0,a=r.length,i=-1;++io&&(o=A)}),F(n,function(s){var A=new Qr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),l=A.mapValueToVisual(s.getLayout().value),u=s.getModel().get(["itemStyle","color"]);u!=null?(s.setVisual("color",u),s.setVisual("style",{fill:u})):(s.setVisual("color",l),s.setVisual("style",{fill:l}))})}a.length&&F(a,function(s){var A=s.getModel().get("lineStyle");s.setVisual("style",A)})})}function gue(r){r.registerChartView(Zle),r.registerSeriesModel(Jle),r.registerLayout(qle),r.registerVisual(pue),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){var i=a.coordinateSystem,o=Xg(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}var U5=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),A;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),A=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),A=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u=e.layout==="horizontal"?0:1,c=this._baseAxisDim=l[u],f=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=e.data;if(p&&A){var g=[];F(p,function(w,B){var C;ge(w)?(C=w.slice(),w.unshift(B)):ge(w.value)?(C=ve({},w),C.value=C.value.slice(),w.value.unshift(B)):C=w,g.push(C)}),e.data=g}var y=this.defaultValueDimensions,m=[{name:c,type:hp(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hp(d),dimsDef:y.slice()}];return Au(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:ze(OO,m,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),P5=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:le.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:le.color.shadow}},animationDuration:800},e}(Pt);ir(P5,U5,!0);const yue=P5;var mue=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var A=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),c=IE(u,i,l,A,!0);i.setItemGraphicEl(l,c),o.add(c)}}).update(function(l,u){var c=s.getItemGraphicEl(u);if(!i.hasValue(l)){o.remove(c);return}var f=i.getItemLayout(l);c?(Jn(c),k5(f,c,i,l)):c=IE(f,i,l,A),o.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=s.getItemGraphicEl(l);u&&o.remove(u)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(bt),wue=function(){function r(){}return r}(),Bue=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new wue},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:t,outliers:n}}var Lue={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==_r){var n="";At(n)}var a=Iue(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Eue(r){r.registerSeriesModel(yue),r.registerChartView(bue),r.registerLayout(xue),r.registerTransform(Lue)}var Mue=["itemStyle","borderColor"],Due=["itemStyle","borderColor0"],Fue=["itemStyle","borderColorDoji"],Que=["itemStyle","color"],Uue=["itemStyle","color0"];function mx(r,e){return e.get(r>0?Que:Uue)}function Bx(r,e){return e.get(r===0?Fue:r>0?Mue:Due)}var Pue={seriesType:"candlestick",plan:nu(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,A=o.getItemStyle();A.fill=mx(s,o),A.stroke=Bx(s,o)||A.fill;var l=a.ensureUniqueItemVisual(i,"style");ve(l,A)}}}}}};const kue=Pue;var Rue=["color","borderColor"],Oue=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),A=t.coordinateSystem,l=A.getArea&&A.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var c=n.getItemLayout(u);if(s&&LE(l,c))return;var f=T0(c,u,!0);Lt(f,{shape:{points:c.ends}},t,u),I0(f,n,u,o),i.add(f),n.setItemGraphicEl(u,f)}}).update(function(u,c){var f=a.getItemGraphicEl(c);if(!n.hasValue(u)){i.remove(f);return}var h=n.getItemLayout(u);if(s&&LE(l,h)){i.remove(f);return}f?(at(f,{shape:{points:h.ends}},t,u),Jn(f)):f=T0(h),I0(f,n,u,o),i.add(f),n.setItemGraphicEl(u,f)}).remove(function(u){var c=a.getItemGraphicEl(u);c&&i.remove(c)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),EE(t,this.group);var n=t.get("clip",!0)?$f(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),A=T0(s);I0(A,a,o,i),A.incremental=!0,this.group.add(A),this._progressiveEls.push(A)}},e.prototype._incrementalRenderLarge=function(t,n){EE(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(bt),Hue=function(){function r(){}return r}(),Nue=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Hue},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ze);function T0(r,e,t){var n=r.ends;return new Nue({shape:{points:t?Vue(n,r):n},z2:100})}function LE(r,e){for(var t=!0,n=0;nB?I[i]:S[i],ends:M,brushRect:D(C,b,m)})}function E(O,G){var X=[];return X[a]=G,X[i]=O,isNaN(G)||isNaN(O)?[NaN,NaN]:e.dataToPoint(X)}function k(O,G,X){var te=G.slice(),ne=G.slice();te[a]=hd(te[a]+n/2,1,!1),ne[a]=hd(ne[a]-n/2,1,!0),X?O.push(te,ne):O.push(ne,te)}function D(O,G,X){var te=E(O,X),ne=E(G,X);return te[a]-=n/2,ne[a]-=n/2,{x:te[0],y:te[1],width:n,height:ne[1]-te[1]}}function U(O){return O[a]=hd(O[a],1),O}}function v(d,p){for(var g=Ga(d.count*4),y=0,m,w=[],B=[],C,b=p.getStore(),_=!!r.get(["itemStyle","borderColorDoji"]);(C=d.next())!=null;){var x=b.get(s,C),S=b.get(l,C),I=b.get(u,C),L=b.get(c,C),T=b.get(f,C);if(isNaN(x)||isNaN(L)||isNaN(T)){g[y++]=NaN,y+=3;continue}g[y++]=ME(b,C,S,I,u,_),w[a]=x,w[i]=L,m=e.dataToPoint(w,null,B),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=T,m=e.dataToPoint(w,null,B),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function ME(r,e,t,n,a,i){var o;return t>n?o=-1:t0?r.get(a,e-1)<=n?1:-1:1,o}function Xue(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=Be(Le(r.get("barMaxWidth"),a),a),o=Be(Le(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?Be(s,a):Math.max(Math.min(a/2,i),o)}const Yue=Wue;function Zue(r){r.registerChartView(zue),r.registerSeriesModel($ue),r.registerPreprocessor(Kue),r.registerVisual(kue),r.registerLayout(Yue)}function DE(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var jue=function(r){ce(e,r);function e(t,n){var a=r.call(this)||this,i=new Gf(t,n),o=new Fe;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||A!==this._loop||l!==this._roundTrip){i.stopAnimation();var f=void 0;Me(c)?f=c(a):f=c,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,A,l)}this._period=s,this._loop=A,this._roundTrip=l}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,A=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||A.done(function(){s.remove(t)}),A.start()}},e.prototype._getLineLength=function(t){return ao(t.__p1,t.__cp1)+ao(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],A=s.slice(),l=Cr,u=r1;s[0]=l(n[0],i[0],a[0],o),s[1]=l(n[1],i[1],a[1],o);var c=t.__t<1?u(n[0],i[0],a[0],o):u(a[0],i[0],n[0],1-o),f=t.__t<1?u(n[1],i[1],a[1],o):u(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(f,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[A]<=n);A--);A=Math.min(A,o-2)}else{for(A=s;An);A++);A=Math.min(A-1,o-2)}var u=(n-i[A])/(i[A+1]-i[A]),c=a[A],f=a[A+1];t.x=c[0]*(1-u)+u*f[0],t.y=c[1]*(1-u)+u*f[1];var h=t.__t<1?f[0]-c[0]:c[0]-f[0],v=t.__t<1?f[1]-c[1]:c[1]-f[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=A,this._lastFramePercent=n,t.ignore=!1}},e}(O5);const sce=oce;var Ace=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),lce=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Ace},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var A=1;A0){var h=(l+c)/2-(u-f)*i,v=(u+f)/2-(c-l)*i;t.quadraticCurveTo(h,v,c,f)}else t.lineTo(c,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var A=0,l=0;l0)for(var c=i[l++],f=i[l++],h=1;h0){var p=(c+v)/2-(f-d)*o,g=(f+d)/2-(v-c)*o;if(yR(c,f,p,g,v,d,s,t,n))return A}else if(qi(c,f,v,d,s,t,n))return A;A++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,A=-1/0,l=0;l0&&(o.dataIndex=A+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const cce=uce;var fce={seriesType:"lines",plan:nu(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,A=a.end-a.start;if(t){for(var l=0,u=a.start;u0&&(u||l.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&$f(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=N5.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,A=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=A?new cce:new ux(o?i?sce:H5:i?O5:lx),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=A),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(bt);const vce=hce;var dce=typeof Uint32Array>"u"?Array:Uint32Array,pce=typeof Float64Array>"u"?Array:Float64Array;function FE(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=me(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),EC([a,t[0],t[1]])}))}var gce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],FE(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(FE(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))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Wc(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Wc(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Pt);const yce=gce;function Bv(r){return r instanceof Array||(r=[r,r]),r}var mce={seriesType:"lines",reset:function(r){var e=Bv(r.get("symbol")),t=Bv(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),A=Bv(s.getShallow("symbol",!0)),l=Bv(s.getShallow("symbolSize",!0));A[0]&&i.setItemVisual(o,"fromSymbol",A[0]),A[1]&&i.setItemVisual(o,"toSymbol",A[1]),l[0]&&i.setItemVisual(o,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(o,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};const wce=mce;function Bce(r){r.registerChartView(vce),r.registerSeriesModel(yce),r.registerLayout(N5),r.registerVisual(wce)}var Cce=256,bce=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ha.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),A=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var v=0;v0){var L=o(m)?A:l;m>0&&(m=m*S+_),B[C++]=L[I],B[C++]=L[I+1],B[C++]=L[I+2],B[C++]=L[I+3]*m*256}else C+=4}return f.putImageData(w,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ha.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=le.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const xce=bce;function _ce(r,e,t){var n=r[1]-r[0];e=me(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var A=e[s].interval;if(A[0]<=o&&o<=A[1]){i=s;break}}return s>=0&&s=e[0]&&n<=e[1]}}function QE(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Tce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(A){A===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):QE(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(QE(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,A=Eo(s,"cartesian2d"),l=Eo(s,"matrix"),u,c,f,h;if(A){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),B=t.get(["itemStyle","borderRadius"]),C=fr(t),b=t.getModel("emphasis"),_=b.get("focus"),x=b.get("blurScope"),S=b.get("disabled"),I=A||l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],L=a;Lf[1]||Ph[1])continue;var E=s.dataToPoint([R,P]);T=new Xe({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:M})}else if(l){var k=s.dataToLayout([g.get(I[0],L),g.get(I[1],L)]).rect;if(zr(k.x))continue;T=new Xe({z2:1,shape:k,style:M})}else{if(isNaN(g.get(I[1],L)))continue;var D=s.dataToLayout([g.get(I[0],L)]),k=D.contentRect||D.rect;if(zr(k.x)||zr(k.y))continue;T=new Xe({z2:1,shape:k,style:M})}if(g.hasItemOption){var U=g.getItemModel(L),O=U.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=U.getModel(["blur","itemStyle"]).getItemStyle(),w=U.getModel(["select","itemStyle"]).getItemStyle(),B=U.get(["itemStyle","borderRadius"]),_=O.get("focus"),x=O.get("blurScope"),S=O.get("disabled"),C=fr(U)}T.shape.r=B;var G=t.getRawValue(L),X="-";G&&G[2]!=null&&(X=G[2]+""),yr(T,C,{labelFetcher:t,labelDataIndex:L,defaultOpacity:M.opacity,defaultText:X}),T.ensureState("emphasis").style=y,T.ensureState("blur").style=m,T.ensureState("select").style=w,Qt(T,_,x,S),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),p.add(T),g.setItemGraphicEl(L,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,A=n.getData(),l=this._hmLayer||this._hmLayer||new xce;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=t.getViewRect().clone(),c=t.getRoamTransform();u.applyTransform(c);var f=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-f,g=d-h,y=[A.mapDimension("lng"),A.mapDimension("lat"),A.mapDimension("value")],m=A.mapArray(y,function(b,_,x){var S=t.dataToPoint([b,_]);return S[0]-=f,S[1]-=h,S.push(x),S}),w=a.getExtent(),B=a.type==="visualMap.continuous"?Sce(w,a.option.range):_ce(w,a.getPieceList(),a.option.selected);l.update(m,p,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},B);var C=new Ur({style:{width:p,height:g,x:f,y:h,image:l.canvas},silent:!0});this.group.add(C)},e.type="heatmap",e}(bt);const Ice=Tce;var Lce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Rf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const Ece=Lce;function Mce(r){r.registerChartView(Ice),r.registerSeriesModel(Ece)}var Dce=["itemStyle","borderWidth"],UE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],M0=new Po,Fce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,A=t.coordinateSystem,l=A.getBaseAxis(),u=l.isHorizontal(),c=A.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:A,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:UE[+u],categoryDim:UE[1-+u]};o.diff(s).add(function(v){if(o.hasValue(v)){var d=kE(o,v),p=PE(o,v,d,f),g=RE(o,f,p);o.setItemGraphicEl(v,g),i.add(g),HE(g,f,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=kE(o,v),y=PE(o,v,g,f),m=W5(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?Hce(p,f,y):p=RE(o,f,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),HE(p,f,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&OE(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?$f(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){OE(i,Ve(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(bt);function PE(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",A=t.get("symbolRotate"),l=(A||0)*Math.PI/180||0,u=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Qce(t,i,a,n,f),Uce(r,e,a,i,o,f.boundingLength,f.pxSign,u,n,f),Pce(t,f.symbolScale,l,n,f);var h=f.symbolSize,v=hA(t.get("symbolOffset"),h);return kce(t,h,a,i,o,v,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function Qce(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),A=s.toGlobalCoord(s.dataToCoord(0)),l=1-+(t[i.wh]<=0),u;if(ge(o)){var c=[D0(s,o[0])-A,D0(s,o[1])-A];c[1]=0?1:-1:u>0?1:-1}function D0(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Uce(r,e,t,n,a,i,o,s,A,l){var u=A.valueDim,c=A.categoryDim,f=Math.abs(t[c.wh]),h=r.getItemVisual(e,"symbolSize"),v;ge(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[c.index]=Be(v[c.index],f),v[u.index]=Be(v[u.index],n?f:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/s,v[1]/s];d[u.index]*=(A.isHorizontal?-1:1)*o}function Pce(r,e,t,n,a){var i=r.get(Dce)||0;i&&(M0.attr({scaleX:e[0],scaleY:e[1],rotation:t}),M0.updateTransform(),i/=M0.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function kce(r,e,t,n,a,i,o,s,A,l,u,c){var f=u.categoryDim,h=u.valueDim,v=c.pxSign,d=Math.max(e[h.index]+s,0),p=d;if(n){var g=Math.abs(A),y=Fr(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=Be(y,e[h.index]),B=Math.max(d+w*2,0),C=m?0:w*2,b=rR(n),_=b?n:NE((g+C)/B),x=g-_*d;w=x/2/(m?_:Math.max(_-1,1)),B=d+w*2,C=m?0:w*2,!b&&n!=="fixed"&&(_=l?NE((Math.abs(l)+C)/B):0),p=_*B-C,c.repeatTimes=_,c.symbolMargin=w}var S=v*(p/2),I=c.pathPosition=[];I[f.index]=t[f.wh]/2,I[h.index]=o==="start"?S:o==="end"?A-S:A/2,i&&(I[0]+=i[0],I[1]+=i[1]);var L=c.bundlePosition=[];L[f.index]=t[f.xy],L[h.index]=t[h.xy];var T=c.barRectShape=ve({},t);T[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(I[h.index]+S)),T[f.wh]=t[f.wh];var M=c.clipShape={};M[f.xy]=-t[f.xy],M[f.wh]=u.ecSize[f.wh],M[h.xy]=0,M[h.wh]=t[h.wh]}function V5(r){var e=r.symbolPatternSize,t=ar(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function G5(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,A=e.valueDim,l=t.repeatTimes||0,u=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(Cx(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[A.index]=c*(y-l/2+.5)+s[A.index],{x:p[0],y:p[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function z5(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?xl(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=V5(t),a.add(i),xl(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function $5(r,e,t){var n=ve({},e.barRectShape),a=r.__pictorialBarRect;a?xl(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Xe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function K5(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=ve({},t.clipShape),o=e.valueDim,s=t.animationModel,A=t.dataIndex;if(a)at(a,{shape:i},s,A);else{i[o.wh]=0,a=new Xe({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[o.wh]=t.clipShape[o.wh],lA[n?"updateProps":"initProps"](a,{shape:l},s,A)}}}function kE(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Rce,t.isAnimationEnabled=Oce,t}function Rce(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Oce(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function RE(r,e,t,n){var a=new Fe,i=new Fe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?G5(a,e,t):z5(a,e,t),$5(a,t,n),K5(a,e,t,n),a.__pictorialShapeStr=W5(r,t),a.__pictorialSymbolMeta=t,a}function Hce(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;at(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?G5(r,e,t,!0):z5(r,e,t,!0),$5(r,t,!0),K5(r,e,t,!0)}function OE(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Cx(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),F(i,function(o){To(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function W5(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Cx(r,e,t){F(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function xl(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&lA[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function HE(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),A=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),c=i.get("blurScope"),f=i.get("scale");Cx(r,function(d){if(d instanceof Ur){var p=d.style;d.useStyle(ve({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,f&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=A,l&&(d.cursor=l),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,yr(v,fr(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Rl(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Qt(r,u,c,i.get("disabled"))}function NE(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const Nce=Fce;var Vce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ro(Cp.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:le.color.primary}}}),e}(Cp);const Gce=Vce;function zce(r){r.registerChartView(Nce),r.registerSeriesModel(Gce),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ze(A4,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,l4("pictorialBar"))}var $ce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,A=t.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;s.x=0,s.y=u.y+c[0];function f(p){return p.name}var h=new Mi(this._layersSeries||[],A,f,f),v=[];h.add(be(d,this,"add")).update(be(d,this,"update")).remove(be(d,this,"remove")).execute();function d(p,g,y){var m=o._layers;if(p==="remove"){s.remove(m[g]);return}for(var w=[],B=[],C,b=A[g].indices,_=0;_i&&(i=s),n.push(s)}for(var l=0;li&&(i=c)}return{y0:a,max:i}}function Jce(r){r.registerChartView(Wce),r.registerSeriesModel(Yce),r.registerLayout(Zce),r.registerProcessor(su("themeRiver"))}var qce=2,efe=4,tfe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=qce,o.textConfig={inside:!0},Ve(o).seriesIndex=n.seriesIndex;var s=new nt({z2:efe,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ve(s).dataIndex=n.dataIndex;var A=n.getModel(),l=A.getModel("emphasis"),u=n.getLayout(),c=ve({},u);c.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var h=n.getVisual("decal");h&&(f.decal=Ul(h,o));var v=$a(A.getModel("itemStyle"),c,!0);ve(c,v),F(rn,function(y){var m=s.ensureState(y),w=A.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var B=$a(w,c);B&&(m.shape=B)}),t?(s.setShape(c),s.shape.r=u.r0,Lt(s,{shape:{r:u.r}},a,n.dataIndex)):(at(s,{shape:c},a),Jn(s)),s.useStyle(f),this._updateLabel(a);var d=A.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="relative"?Wc(n.getAncestorsIndices(),n.getDescendantIndices()):p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;Qt(this,g,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,A=(o.startAngle+o.endAngle)/2,l=Math.cos(A),u=Math.sin(A),c=this,f=c.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(s)M&&!jc(P-M)&&P0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,n,a):(o.virtualPiece=new GE(y,t,n,a),u.add(o.virtualPiece)),m.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(m.parentNode)})):o.virtualPiece&&(u.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var A=o.getModel(),l=A.get("link");if(l){var u=A.get("target",!0)||"_blank";ip(l,u)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MB,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,A=Math.sqrt(o*o+s*s);return A<=i.r&&A>=i.r0}},e.type="sunburst",e}(bt);const ife=afe;var ofe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};X5(a);var i=this._levelModels=me(t.levels||[],function(A){return new ot(A,this,n)},this),o=rx.createTree(a,this,s);function s(A){A.wrapMethod("getItemModel",function(l,u){var c=o.getNodeByDataIndex(u),f=i[c.depth];return f&&(l.parentModel=f),l})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Zg(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jN(this)},e.type="series.sunburst",e.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"},e}(Pt);function X5(r){var e=0;F(r.children,function(n){X5(n);var a=n.value;ge(a)&&(a=a[0]),e+=a});var t=r.value;ge(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ge(r.value)?r.value[0]=t:r.value=t}const sfe=ofe;var $E=Math.PI/180;function Afe(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");ge(i)||(i=[0,i]),ge(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),A=Math.min(o,s),l=Be(a[0],o),u=Be(a[1],s),c=Be(i[0],A/2),f=Be(i[1],A/2),h=-n.get("startAngle")*$E,v=n.get("minAngle")*$E,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&Y5(p,y);var m=0;F(p.children,function(P){!isNaN(P.getValue())&&m++});var w=p.getValue(),B=Math.PI/(w||m)*2,C=p.depth>0,b=p.height-(C?-1:1),_=(f-c)/(b||1),x=n.get("clockwise"),S=n.get("stillShowZeroSum"),I=x?1:-1,L=function(P,E){if(P){var k=E;if(P!==d){var D=P.getValue(),U=w===0&&S?B:D*B;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Ce(s)&&(s=i1(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),A=s.getModel("itemStyle").getItemStyle();A.fill||(A.fill=t(o,n,i.root.height));var l=a.ensureUniqueItemVisual(o.dataIndex,"style");ve(l,A)})})}function cfe(r){r.registerChartView(ife),r.registerSeriesModel(sfe),r.registerLayout(ze(Afe,"sunburst")),r.registerProcessor(ze(su,"sunburst")),r.registerVisual(ufe),nfe(r)}var KE={color:"fill",borderColor:"stroke"},ffe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ci=Ye(),hfe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return ki(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=Ci(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Pt);const vfe=hfe;function dfe(r,e){return e=e||[0,0],me(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function pfe(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:be(dfe,r)}}}function gfe(r,e){return e=e||[0,0],me([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function yfe(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:be(gfe,r)}}}function mfe(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function wfe(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:be(mfe,r)}}}function Bfe(r,e){return e=e||[0,0],me(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,A=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(A=A*Math.PI/180),A},this)}function Cfe(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:be(Bfe,r)}}}function bfe(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function xfe(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}function Z5(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||Se(r,"text")))}function j5(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},Se(n,"text")&&(o.text=n.text),Se(n,"rich")&&(o.rich=n.rich),Se(n,"textFill")&&(o.fill=n.textFill),Se(n,"textStroke")&&(o.stroke=n.textStroke),Se(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Se(n,"fontSize")&&(o.fontSize=n.fontSize),Se(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Se(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Se(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Se(n,"textPosition")&&(a.position=n.textPosition),Se(n,"textOffset")&&(a.offset=n.textOffset),Se(n,"textRotation")&&(a.rotation=n.textRotation),Se(n,"textDistance")&&(a.distance=n.textDistance)}return WE(o,r),F(o.rich,function(A){WE(A,A)}),{textConfig:a,textContent:i}}function WE(r,e){e&&(e.font=e.textFont||e.font,Se(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Se(e,"textAlign")&&(r.align=e.textAlign),Se(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Se(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Se(e,"textWidth")&&(r.width=e.textWidth),Se(e,"textHeight")&&(r.height=e.textHeight),Se(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Se(e,"textPadding")&&(r.padding=e.textPadding),Se(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Se(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Se(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Se(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Se(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Se(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Se(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function XE(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||le.color.neutral99;YE(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||le.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||le.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,F(e.rich,function(s){YE(s,s)}),n}function YE(r,e){e&&(Se(e,"fill")&&(r.textFill=e.fill),Se(e,"stroke")&&(r.textStroke=e.fill),Se(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Se(e,"font")&&(r.font=e.font),Se(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Se(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Se(e,"fontSize")&&(r.fontSize=e.fontSize),Se(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Se(e,"align")&&(r.textAlign=e.align),Se(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Se(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Se(e,"width")&&(r.textWidth=e.width),Se(e,"height")&&(r.textHeight=e.height),Se(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Se(e,"padding")&&(r.textPadding=e.padding),Se(e,"borderColor")&&(r.textBorderColor=e.borderColor),Se(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Se(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Se(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Se(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Se(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Se(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Se(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Se(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Se(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Se(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var J5={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ZE=je(J5);Za(Ja,function(r,e){return r[e]=1,r},{});Ja.join(", ");var Dp=["","style","shape","extra"],Vl=Ye();function bx(r,e,t,n,a){var i=r+"Animation",o=ql(r,n,a)||{},s=Vl(e).userDuring;return o.duration>0&&(o.during=s?be(Lfe,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),ve(o,t[i]),o}function Bd(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),A=Vl(r),l=e.style;A.userDuring=e.during;var u={},c={};if(Mfe(r,e,c),r.type==="compound")for(var f=r.shape.paths,h=e.shape.paths,v=0;v0&&r.animateFrom(p,g)}else Sfe(r,e,a||0,t,u);q5(r,e),l?r.dirty():r.markRedraw()}function q5(r,e){for(var t=Vl(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Tfe(r,e){Se(e,"silent")&&(r.silent=e.silent),Se(e,"ignore")&&(r.ignore=e.ignore),r instanceof jn&&Se(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ze&&Se(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Qa={},Ife={setTransform:function(r,e){return Qa.el[r]=e,this},getTransform:function(r){return Qa.el[r]},setShape:function(r,e){var t=Qa.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Qa.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Qa.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Qa.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Qa.el.extra||(Qa.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Qa.el.extra;if(e)return e[r]}};function Lfe(){var r=this,e=r.el;if(e){var t=Vl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}Qa.el=e,n(Ife)}}function jE(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,A=a.transition;if(A)if(!o&&(o=n[r]={}),Xs(A))ve(o,i);else for(var l=gt(A),u=0;u=0){!o&&(o=n[r]={});for(var h=je(i),u=0;u=0)){var f=r.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=n.style={});for(var v=je(t),l=0;l=0?e.getStore().get(k,P):void 0}var D=e.get(E.name,P),U=E&&E.ordinalMeta;return U?U.categories[D]:D}function b(R,P){P==null&&(P=u);var E=e.getItemVisual(P,"style"),k=E&&E.fill,D=E&&E.opacity,U=m(P,co).getItemStyle();k!=null&&(U.fill=k),D!=null&&(U.opacity=D);var O={inheritColor:Ce(k)?k:le.color.neutral99},G=w(P,co),X=Ct(G,null,O,!1,!0);X.text=G.getShallow("show")?Le(r.getFormattedLabel(P,co),Rl(e,P)):null;var te=np(G,O,!1);return S(R,U),U=XE(U,X,te),R&&x(U,R),U.legacy=!0,U}function _(R,P){P==null&&(P=u);var E=m(P,bi).getItemStyle(),k=w(P,bi),D=Ct(k,null,null,!0,!0);D.text=k.getShallow("show")?bn(r.getFormattedLabel(P,bi),r.getFormattedLabel(P,co),Rl(e,P)):null;var U=np(k,null,!0);return S(R,E),E=XE(E,D,U),R&&x(E,R),E.legacy=!0,E}function x(R,P){for(var E in P)Se(P,E)&&(R[E]=P[E])}function S(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function I(R,P){if(P==null&&(P=u),Se(KE,R)){var E=e.getItemVisual(P,"style");return E?E[KE[R]]:null}if(Se(ffe,R))return e.getItemVisual(P,R)}function L(R){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return ote(Re({axis:P},R))}}function T(){return t.getCurrentSeriesIndices()}function M(R){return ab(R,t)}}function Gfe(r){var e={};return F(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function k0(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=Ix(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&Qt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Ix(r,e,t,n,a,i){var o=-1,s=e;e&&n3(e,n,a)&&(o=$e(i.childrenRef(),e),e=null);var A=!e,l=e;l?l.clearStates():(l=Sx(n),s&&Rfe(s,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),n.tooltipDisabled&&(l.tooltipDisabled=!0),Qn.normal.cfg=Qn.normal.conOpt=Qn.emphasis.cfg=Qn.emphasis.conOpt=Qn.blur.cfg=Qn.blur.conOpt=Qn.select.cfg=Qn.select.conOpt=null,Qn.isLegacy=!1,$fe(l,t,n,a,A,Qn),zfe(l,t,n,a,A),Tx(r,l,t,n,Qn,a,A),Se(n,"info")&&(Ci(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,o):i.add(l),l}function n3(r,e,t){var n=Ci(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Zfe(i)&&a3(i)!==n.customPathData||a==="image"&&Se(o,"image")&&o.image!==n.customImagePath}function zfe(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&n3(o,i,n)&&(o=null),o||(o=Sx(i),r.setClipPath(o)),Tx(null,o,e,i,null,n,a)}}function $fe(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){qE(t,null,i),qE(t,bi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,A=i.blur.conOpt,l=i.select.conOpt;if(o!=null||s!=null||l!=null||A!=null){var u=r.getTextContent();if(o===!1)u&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Sx(o),r.setTextContent(u)),Tx(null,u,e,o,null,n,a);for(var c=o&&o.style,f=0;f=u;h--){var v=e.childAt(h);Wfe(e,v,a)}}}function Wfe(r,e,t){e&&qg(e,Ci(r).option,t)}function Xfe(r){new Mi(r.oldChildren,r.newChildren,eM,eM,r).add(tM).update(tM).remove(Yfe).execute()}function eM(r,e){var t=r&&r.name;return t??Pfe+e}function tM(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;Ix(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function Yfe(r){var e=this.context,t=e.oldChildren[r];t&&qg(t,Ci(t).option,e.seriesModel)}function a3(r){return r&&(r.pathData||r.d)}function Zfe(r){return r&&(Se(r,"pathData")||Se(r,"d"))}function jfe(r){r.registerChartView(Hfe),r.registerSeriesModel(vfe)}var _s=Ye(),rM=De,R0=be,Jfe=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,A=this._handle;if(!o||o==="hide"){s&&s.hide(),A&&A.hide();return}s&&s.show(),A&&A.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Fe,this.createPointerEl(s,l,e,t),this.createLabelEl(s,l,e,t),n.getZr().add(s);else{var f=ze(nM,t,c);this.updatePointerEl(s,l,f),this.updateLabelEl(s,l,f,t)}iM(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var A=Yb(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/A>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=_s(e).pointerEl=new lA[i.type](rM(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=_s(e).labelEl=new nt(rM(t.label));e.add(i),aM(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=_s(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=_s(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),aM(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ti(l.event)},onmousedown:R0(this._onHandleDragMove,this,0,0),drift:R0(this._onHandleDragMove,this),ondragend:R0(this._onHandleDragEnd,this)}),n.add(a)),iM(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var A=i.get("size");ge(A)||(A=[A,A]),a.scaleX=A[0]/2,a.scaleY=A[1]/2,au(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){nM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,O0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(O0(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(O0(a)),_s(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function nM(r,e,t,n){i3(_s(t).lastProp,n)||(_s(t).lastProp=n,e?at(t,n,r):(t.stopAnimation(),t.attr(n)))}function i3(r,e){if(Oe(r)&&Oe(e)){var t=!0;return F(e,function(n,a){t=t&&i3(r[a],n)}),!!t}else return r===e}function aM(r,e){r[e.get(["label","show"])?"show":"hide"]()}function O0(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function iM(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}const Ex=Jfe;function Mx(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function o3(r,e,t,n,a){var i=t.get("value"),o=s3(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),A=kf(s.get("padding")||0),l=s.getFont(),u=Bg(o,l),c=a.position,f=u.width+A[1]+A[3],h=u.height+A[0]+A[2],v=a.align;v==="right"&&(c[0]-=f),v==="center"&&(c[0]-=f/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),qfe(c,f,h,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ct(s,{text:o,font:l,fill:s.getTextColor(),padding:A,backgroundColor:p}),z2:10}}function qfe(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function s3(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:vp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};F(n,function(A){var l=t.getSeriesByIndex(A.seriesIndex),u=A.dataIndexInside,c=l&&l.getDataParams(u);c&&s.seriesData.push(c)}),Ce(o)?i=o.replace("{value}",i):Me(o)&&(i=o(s))}return i}function Dx(r,e,t){var n=xr();return Uo(n,n,t.rotation),ja(n,n,t.position),ua([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function A3(r,e,t,n,a,i){var o=Di.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),o3(e,n,a,i,{position:Dx(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Fx(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function l3(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function oM(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var ehe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,A=s.grid,l=i.get("type"),u=sM(A,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var f=Mx(i),h=the[l](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var v=_p(A.getRect(),a);A3(n,t,v,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=_p(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Dx(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,A=o.getGlobalExtent(!0),l=sM(s,o).getOtherAxis(o).getGlobalExtent(),u=o.dim==="x"?0:1,c=[t.x,t.y];c[u]+=n[u],c[u]=Math.min(A[1],c[u]),c[u]=Math.max(A[0],c[u]);var f=(l[1]+l[0])/2,h=[f,f];h[u]=c[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[u]}},e}(Ex);function sM(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var the={line:function(r,e,t){var n=Fx([e,t[0]],[e,t[1]],AM(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:l3([e-n/2,t[0]],[n,a],AM(r))}}};function AM(r){return r.dim==="x"?0:1}const rhe=ehe;var nhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:le.color.border,width:1,type:"dashed"},shadowStyle:{color:le.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:le.color.neutral00,padding:[5,7,5,7],backgroundColor:le.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:le.color.accent40,throttle:40}},e}(et);const ahe=nhe;var yi=Ye(),ihe=F;function u3(r,e,t){if(!st.node){var n=e.getZr();yi(n).records||(yi(n).records={}),ohe(n,e);var a=yi(n).records[r]||(yi(n).records[r]={});a.handler=t}}function ohe(r,e){if(yi(r).initialized)return;yi(r).initialized=!0,t("click",ze(lM,"click")),t("mousemove",ze(lM,"mousemove")),t("globalout",Ahe);function t(n,a){r.on(n,function(i){var o=lhe(e);ihe(yi(r).records,function(s){s&&a(s,i,o.dispatchAction)}),she(o.pendings,e)})}}function she(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Ahe(r,e,t){r.handler("leave",null,t)}function lM(r,e,t,n){e.handler(r,t,n)}function lhe(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function QB(r,e){if(!st.node){var t=e.getZr(),n=(yi(t).records||{})[r];n&&(yi(t).records[r]=null)}}var uhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";u3("axisPointer",a,function(s,A,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:A&&A.offsetX,y:A&&A.offsetY})})},e.prototype.remove=function(t,n){QB("axisPointer",n)},e.prototype.dispose=function(t,n){QB("axisPointer",n)},e.type="axisPointer",e}(Nt);const che=uhe;function c3(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=js(i,r);if(o==null||o<0||ge(o))return{point:[]};var s=i.getItemGraphicEl(o),A=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(A&&A.dataToPoint)if(r.isStacked){var l=A.getBaseAxis(),u=A.getOtherAxis(l),c=u.dim,f=l.dim,h=c==="x"||c==="radius"?1:0,v=i.mapDimension(f),d=[];d[h]=i.get(v,o),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=A.dataToPoint(d)||[]}else t=A.dataToPoint(i.getValues(me(A.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),t=[p.x+p.width/2,p.y+p.height/2]}return{point:t,el:s}}var uM=Ye();function fhe(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||be(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Cd(a)&&(a=c3({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var A=Cd(a),l=i.axesInfo,u=s.axesInfo,c=n==="leave"||Cd(a),f={},h={},v={list:[],map:{}},d={showPointer:ze(vhe,h),showTooltip:ze(dhe,v)};F(s.coordSysMap,function(g,y){var m=A||g.containPoint(a);F(s.coordSysAxesInfo[y],function(w,B){var C=w.axis,b=mhe(l,w);if(!c&&m&&(!l||b)){var _=b&&b.value;_==null&&!A&&(_=C.pointToData(a)),_!=null&&cM(w,_,d,!1,f)}})});var p={};return F(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&F(m.axesInfo,function(w,B){var C=h[B];if(w!==g&&C){var b=C.value;m.mapper&&(b=g.axis.scale.parse(m.mapper(b,fM(w),fM(g)))),p[g.key]=b}})}),F(p,function(g,y){cM(u[y],g,d,!0,f)}),phe(h,u,f),ghe(v,a,r,o),yhe(u,o,t),f}}function cM(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=hhe(e,r),s=o.payloadBatch,A=o.snapToValue;s[0]&&a.seriesIndex==null&&ve(a,s[0]),!n&&r.snap&&i.containData(A)&&A!=null&&(e=A),t.showPointer(r,e,s),t.showTooltip(r,o,A)}}function hhe(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return F(e.seriesModels,function(A,l){var u=A.getData().mapDimensionsAll(n),c,f;if(A.getAxisTooltipData){var h=A.getAxisTooltipData(u,r,t);f=h.dataIndices,c=h.nestestValue}else{if(f=A.indicesOfNearest(n,u[0],r,t.type==="category"?.5:null),!f.length)return;c=A.getData().get(u[0],f[0])}if(!(c==null||!isFinite(c))){var v=r-c,d=Math.abs(v);d<=o&&((d=0&&s<0)&&(o=d,s=v,a=c,i.length=0),F(f,function(p){i.push({seriesIndex:A.seriesIndex,dataIndexInside:p,dataIndex:A.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function vhe(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function dhe(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var A=e.coordSys.model,l=pf(A),u=r.map[l];u||(u=r.map[l]={coordSysId:A.id,coordSysIndex:A.componentIndex,coordSysType:A.type,coordSysMainType:A.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function phe(r,e,t){var n=t.axesInfo=[];F(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function ghe(r,e,t,n){if(Cd(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function yhe(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=uM(n)[a]||{},o=uM(n)[a]={};F(r,function(l,u){var c=l.axisPointerModel.option;c.status==="show"&&l.triggerEmphasis&&F(c.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],A=[];F(i,function(l,u){!o[u]&&A.push(l)}),F(o,function(l,u){!i[u]&&s.push(l)}),A.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:A}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function mhe(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function fM(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Cd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xf(r){pA.registerAxisPointerClass("CartesianAxisPointer",rhe),r.registerComponentModel(ahe),r.registerComponentView(che),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ge(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Xae(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fhe)}function whe(r){We(FN),We(Xf)}var Bhe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var A=s.polar,l=A.getOtherAxis(s),u=l.getExtent(),c=s.dataToCoord(n),f=i.get("type");if(f&&f!=="none"){var h=Mx(i),v=bhe[f](s,A,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=i.get(["label","margin"]),p=Che(n,a,i,A,d);o3(t,a,i,o,p)},e}(Ex);function Che(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var A=n.getRadiusAxis().getExtent(),l,u,c;if(i.dim==="radius"){var f=xr();Uo(f,f,s),ja(f,f,[n.cx,n.cy]),l=ua([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,v=Di.innerTextLayout(s,h*Math.PI/180,-1);u=v.textAlign,c=v.textVerticalAlign}else{var d=A[1];l=n.coordToPoint([d+a,o]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",c=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var bhe={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:Fx(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:oM(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:oM(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const xhe=Bhe;var _he=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(et);const She=_he;var Qx=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zt).models[0]},e.type="polarAxis",e}(et);ir(Qx,Vf);var The=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Qx),Ihe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Qx),Ux=function(r){ce(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(Ba);Ux.prototype.dataToRadius=Ba.prototype.dataToCoord;Ux.prototype.radiusToData=Ba.prototype.coordToData;const Lhe=Ux;var Ehe=Ye(),Px=function(r){ce(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],A=t.dataToCoord(s+1)-t.dataToCoord(s),l=Math.abs(A),u=Bg(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(u.height,7),f=c/l;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),v=Ehe(t.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Ba);Px.prototype.dataToAngle=Ba.prototype.dataToCoord;Px.prototype.angleToData=Ba.prototype.coordToData;const Mhe=Px;var f3=["radius","angle"],Dhe=function(){function r(e){this.dimensions=f3,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Lhe,this._angleAxis=new Mhe,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var A=Math.sqrt(t*t+n*n);t/=A,n/=A;for(var l=Math.atan2(-n,t)/Math.PI*180,u=ls;)l+=u*360;return[A,l]},r.prototype.coordToPoint=function(e,t){t=t||[];var n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,A){var l=s-this.cx,u=A-this.cy,c=l*l+u*u,f=this.r,h=this.r0;return f!==h&&c-o<=f*f&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(e,t,n){var a=hM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=hM(t);return a===this?this.pointToData(n):null},r}();function hM(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const Fhe=Dhe;function Qhe(r,e,t){var n=e.get("center"),a=hr(e,t).refContainer;r.cx=Be(n[0],a.width)+a.x,r.cy=Be(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:ge(s)||(s=[0,s]);var A=[Be(s[0],o),Be(s[1],o)];i.inverse?i.setExtent(A[1],A[0]):i.setExtent(A[0],A[1])}function Uhe(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var A=s.getData();F(dp(A,"radius"),function(l){a.scale.unionExtentFromData(A,l)}),F(dp(A,"angle"),function(l){n.scale.unionExtentFromData(A,l)})}}),Pl(n.scale,n.model),Pl(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Phe(r){return r.mainType==="angleAxis"}function vM(r,e){var t;if(r.type=e.get("type"),r.scale=Gg(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Phe(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var khe={dimensions:f3,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new Fhe(a+"");i.update=Uhe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),A=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");vM(o,A),vM(s,l),Qhe(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",zt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}};const Rhe=khe;var Ohe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Cv(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function bv(r){var e=r.getRadiusAxis();return e.inverse?0:1}function dM(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Hhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),A=a.getMinorTicksCoords(),l=me(a.getViewLabels(),function(u){u=De(u);var c=a.scale,f=c.type==="ordinal"?c.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(f),u});dM(l),dM(s),F(Ohe,function(u){t.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Nhe[u](this.group,t,i,s,A,o,l)},this)}},e.type="angleAxis",e}(pA),Nhe={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),A=Math.PI/180,l=s.getExtent(),u=bv(t),c=u?0:1,f,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[c]===0?f=new lA[h]({shape:{cx:t.cx,cy:t.cy,r:i[u],startAngle:-l[0]*A,endAngle:-l[1]*A,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new Eg({shape:{cx:t.cx,cy:t.cy,r:i[u],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),A=i[bv(t)],l=me(n,function(u){return new lr({shape:Cv(t,[A,A+s],u.coord)})});r.add(zn(l,{style:Re(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),A=(o.get("inside")?-1:1)*s.get("length"),l=i[bv(t)],u=[],c=0;cg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[v]){var B=s[v];Oe(B)&&B.textStyle&&(h=new ot(B.textStyle,A,A.ecModel))}var C=new nt({silent:Di.isLabelSilent(e),style:Ct(h,{x:p[0],y:p[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:m,verticalAlign:w})});if(r.add(C),Pi({el:C,componentModel:e,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return C.isTruncated},value:c.rawLabel,tickIndex:f}}),u){var b=Di.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=c.rawLabel,Ve(C).eventData=b}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),A=s.get("color"),l=0;A=A instanceof Array?A:[A];for(var u=[],c=0;c=0?"p":"n",R=x;B&&(n[u][T]||(n[u][T]={p:x,n:x}),R=n[u][T][M]);var P=void 0,E=void 0,k=void 0,D=void 0;if(v.dim==="radius"){var U=v.dataToCoord(L)-x,O=A.dataToCoord(T);Math.abs(U)=D})}}})}function Yhe(r){var e={};F(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),A=v3(o,s),l=s.getExtent(),u=s.type==="category"?s.getBandWidth():Math.abs(l[1]-l[0])/i.count(),c=e[A]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=c.stacks;e[A]=c;var h=h3(n);f[h]||c.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var v=Be(n.get("barWidth"),u),d=Be(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!f[h].width&&(v=Math.min(c.remainedWidth,v),f[h].width=v,c.remainedWidth-=v),d&&(f[h].maxWidth=d),p!=null&&(c.gap=p),g!=null&&(c.categoryGap=g)});var t={};return F(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=Be(n.categoryGap,o),A=Be(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,c=(l-s)/(u+(u-1)*A);c=Math.max(c,0),F(i,function(d,p){var g=d.maxWidth;g&&g=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=pM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=pM(t);return a===this?this.pointToData(n):null},r}();function pM(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function sve(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new ove(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",zt).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var Ave={create:sve,dimensions:p3};const lve=Ave;var gM=["x","y"],uve=["width","height"],cve=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,A=s.coordinateSystem,l=N0(A,1-Up(s)),u=A.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var f=Mx(i),h=fve[c](s,u,l);h.style=f,t.graphicKey=h.type,t.pointer=h}var v=UB(a);A3(n,t,v,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=UB(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Dx(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,A=Up(o),l=N0(s,A),u=[t.x,t.y];u[A]+=n[A],u[A]=Math.min(l[1],u[A]),u[A]=Math.max(l[0],u[A]);var c=N0(s,1-A),f=(c[1]+c[0])/2,h=[f,f];return h[A]=u[A],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(Ex),fve={line:function(r,e,t){var n=Fx([e,t[0]],[e,t[1]],Up(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:l3([e-n/2,t[0]],[n,a],Up(r))}}};function Up(r){return r.isHorizontal()?0:1}function N0(r,e){var t=r.getRect();return[t[gM[e]],t[gM[e]]+t[uve[e]]]}const hve=cve;var vve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Nt);function dve(r){We(Xf),pA.registerAxisPointerClass("SingleAxisPointer",hve),r.registerComponentView(vve),r.registerComponentView(nve),r.registerComponentModel(H0),Ol(r,"single",H0,H0.defaultOption),r.registerCoordinateSystem("single",lve)}var pve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=cA(t);r.prototype.init.apply(this,arguments),yM(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),yM(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:le.color.axisLine,width:1,type:"solid"}},itemStyle:{color:le.color.neutral00,borderWidth:1,borderColor:le.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:le.size.s,color:le.color.secondary},monthLabel:{show:!0,position:"start",margin:le.size.s,align:"center",formatter:null,color:le.color.secondary},yearLabel:{show:!0,position:null,margin:le.size.xl,formatter:null,color:le.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(et);function yM(r,e){var t=r.cellSize,n;ge(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=me([0,1],function(i){return kj(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});ei(r,e,{type:"box",ignoreSize:a})}const gve=pve;var yve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),A=o.getOrient(),l=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,A,i),this._renderYearText(t,s,A,i),this._renderMonthText(t,l,A,i),this._renderWeekText(t,l,s,A,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),A=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToCalendarLayout([l],!1).tl,c=new Xe({shape:{x:u[0],y:u[1],width:s,height:A},cursor:"default",style:o});a.add(c)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,A=t.getModel(["splitLine","lineStyle"]).getLineStyle(),l=t.get(["splitLine","show"]),u=A.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,f=0;c.time<=n.end.time;f++){v(c.formatedDate),f===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var p=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),l&&o._drawSplitline(p,A,i)}l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,a),A,i),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,a),A,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Wr({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],A=0;A<7;A++){var l=i.getNextNDay(o.time,A),u=i.dataToCalendarLayout([l.time],!1);s[2*l.day]=u.tl,s[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return Ce(t)&&t?Mj(t,n):Me(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],A=n[1],l=["center","bottom"];i==="bottom"?(A+=o,l=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,l=["center","top"]):A-=o;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:s,y:A,style:{align:l[0],verticalAlign:l[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),A=o.get("position");A||(A=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,f=a==="horizontal"?0:1,h={top:[u,l[f][1]],bottom:[u,l[1-f][1]],left:[l[1-f][0],c],right:[l[f][0],c]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=o.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new nt({z2:30,style:Ct(o,{text:g}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,h[A],a,A,s)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",A="top",l=t[0],u=t[1];return a==="horizontal"?(u=u+o,n&&(s="center"),i==="start"&&(A="bottom")):(l=l+o,n&&(A="middle"),i==="start"&&(s="right")),{x:l,y:u,align:s,verticalAlign:A}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),A=o.get("margin"),l=o.get("position"),u=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Ce(s))&&(s&&(n=D1(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=l==="start"?0:1,h=a==="horizontal"?0:1;A=l==="start"?-A:A;for(var v=u==="center",d=o.get("silent"),p=0;p=i.start.time&&a.times.end.time&&t.reverse(),t},r.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 a=Math.floor(t[1].time/V0)-Math.floor(t[0].time/V0)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var A=i.getDate();if(A!==s)for(var l=i.getTime()-t[1].time>0?1:-1;(A=i.getDate())!==s&&(i.getTime()-t[1].time)*l>0;)a-=l,i.setDate(A-l);var u=Math.floor((a+t[0].day+6)/7),c=n?-u+1:u-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Of({targetModel:i,coordSysType:"calendar",coordSysProvider:IO})}),n},r.dimensions=["time","value"],r}();function G0(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const Bve=wve;function Cve(r){r.registerComponentModel(gve),r.registerComponentView(mve),r.registerCoordinateSystem("calendar",Bve)}var pi={level:1,leaf:2,nonLeaf:3},xi={none:0,all:1,body:2,corner:3};function PB(r,e,t){var n=e[Ge[t]].getCell(r);return!n&&qe(r)&&r<0&&(n=e[Ge[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function g3(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function y3(r,e,t,n,a){mM(r[0],e,a,t,n,0),mM(r[1],e,a,t,n,1)}function mM(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=ge(o)?o:[o],A=s.length,l=!!t;if(A>=1?(wM(r,e,s,l,a,i,0),A>1&&wM(r,e,s,l,a,i,A-1)):r[0]=r[1]=NaN,l){var u=-a[Ge[1-i]].getLocatorCount(i),c=a[Ge[i]].getLocatorCount(i)-1;t===xi.body?u=Wt(0,u):t===xi.corner&&(c=xn(-1,c)),c=e[0]&&r[0]<=e[1]}function bM(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function _ve(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function xM(r,e,t,n){var a=PB(e[n][0],t,n),i=PB(e[n][1],t,n);r[Ge[n]]=r[rr[n]]=NaN,a&&i&&(r[Ge[n]]=a.xy,r[rr[n]]=i.xy+i.wh-a.xy)}function Hu(r,e,t,n){return r[Ge[e]]=t,r[Ge[1-e]]=n,r}function Sve(r){return r&&(r.type===pi.leaf||r.type===pi.nonLeaf)?r:null}function Pp(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var _M=function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=Tve(e);var n=t.get("data",!0);n!=null&&!ge(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),A();return;function s(l,u,c){var f=0;return l&&F(l,function(h,v){var d;Ce(h)?d={value:h}:Oe(h)?(d=h,h.value!=null&&!Ce(h.value)&&(d={value:null})):d={value:null};var p={type:pi.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:u,id:new ke,span:Hu(new ke,t.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:t,rect:Pp()};o++,(i[u]||(i[u]=[])).push(p),a[c]||(a[c]={type:pi.level,xy:NaN,wh:NaN,option:null,id:new ke,dim:t});var g=s(d.children,u,c+1),y=Math.max(1,g);p.span[Ge[t.dimIdx]]=y,f+=y,u+=y}),f}function A(){for(var l=[];n.length=1,m=t[Ge[n]],w=i.getLocatorCount(n)-1,B=new wo;for(o.resetLayoutIterator(B,n);B.next();)C(B.item);for(i.resetLayoutIterator(B,n);B.next();)C(B.item);function C(b){zr(b.wh)&&(b.wh=g),b.xy=m,b.id[Ge[n]]===w&&!y&&(b.wh=t[Ge[n]]+t[rr[n]]-b.xy),m+=b.wh}}function DM(r,e){for(var t=e[Ge[r]].resetCellIterator();t.next();){var n=t.item;kp(n.rect,r,n.id,n.span,e),kp(n.rect,1-r,n.id,n.span,e),n.type===pi.nonLeaf&&(n.xy=n.rect[Ge[r]],n.wh=n.rect[rr[r]])}}function FM(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;kp(a,0,i,n,e),kp(a,1,i,n,e)}})}function kp(r,e,t,n,a){r[rr[e]]=0;var i=t[Ge[e]],o=i<0?a[Ge[1-e]]:a[Ge[e]],s=o.getUnitLayoutInfo(e,t[Ge[e]]);if(r[Ge[e]]=s.xy,r[rr[e]]=s.wh,n[Ge[e]]>1){var A=o.getUnitLayoutInfo(e,t[Ge[e]]+n[Ge[e]]-1);r[rr[e]]=A.xy+A.wh-s.xy}}function Vve(r,e,t){var n=jd(r,t[rr[e]]);return RB(n,t[rr[e]])}function RB(r,e){return Math.max(Math.min(r,Le(e,1/0)),0)}function K0(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var Lr={inBody:1,inCorner:2,outside:3},Da={x:null,y:null,point:[]};function QM(r,e,t,n,a){var i=t[Ge[e]],o=t[Ge[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),A=i.getUnitLayoutInfo(e,0),l=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),u=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,c=r.point[e]=n[e];if(!A&&!u){r[Ge[e]]=Lr.outside;return}if(a===xi.body){A?(r[Ge[e]]=Lr.inBody,c=xn(s.xy+s.wh,Wt(A.xy,c)),r.point[e]=c):r[Ge[e]]=Lr.outside;return}else if(a===xi.corner){u?(r[Ge[e]]=Lr.inCorner,c=xn(u.xy+u.wh,Wt(l.xy,c)),r.point[e]=c):r[Ge[e]]=Lr.outside;return}var f=A?A.xy:u?u.xy+u.wh:NaN,h=l?l.xy:f,v=s?s.xy+s.wh:f;if(cv){if(!a){r[Ge[e]]=Lr.outside;return}c=v}r.point[e]=c,r[Ge[e]]=f<=c&&c<=v?Lr.inBody:h<=c&&c<=f?Lr.inCorner:Lr.outside}function UM(r,e,t,n){var a=1-t;if(r[Ge[t]]!==Lr.outside)for(n[Ge[t]].resetCellIterator($0);$0.next();){var i=$0.item;if(kM(r.point[t],i.rect,t)&&kM(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[Ge[a]];return}}}function PM(r,e,t,n){if(r[Ge[t]]!==Lr.outside){var a=r[Ge[t]]===Lr.inCorner?n[Ge[1-t]]:n[Ge[t]];for(a.resetLayoutIterator(Iv,t);Iv.next();)if(Gve(r.point[t],Iv.item)){e[t]=Iv.item.id[Ge[t]];return}}}function Gve(r,e){return e.xy<=r&&r<=e.xy+e.wh}function kM(r,e,t){return e[Ge[t]]<=r&&r<=e[Ge[t]]+e[rr[t]]}const zve=Nve;function $ve(r){r.registerComponentModel(Dve),r.registerComponentView(Hve),r.registerCoordinateSystem("matrix",zve)}function Kve(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RM(r,e){var t;return F(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function Wve(r,e,t){var n=ve({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(Ke(a,n,!0),ei(a,n,{ignoreSize:!0}),FO(t,a),Lv(t,a),Lv(t,a,"shape"),Lv(t,a,"style"),Lv(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var w3=["transition","enterFrom","leaveTo"],Xve=w3.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Lv(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?w3:Xve,a=0;a=0;u--){var c=a[u],f=Ar(c.id,null),h=f!=null?o.get(f):null;if(h){var v=h.parent,g=Hn(v),y=v===i?{width:s,height:A}:{width:g.width,height:g.height},m={},w=kg(h,c,y,null,{hv:c.hv,boundingMode:c.bounding},m);if(!Hn(h).isNew&&w){for(var B=c.transition,C={},b=0;b=0)?C[_]=x:h[_]=x}at(h,C,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){bd(a,Hn(a).option,n,t._lastGraphicModel)}),this._elMap=Ie()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Nt);function OB(r){var e=Se(OM,r)?OM[r]:rp(r),t=new e({});return Hn(t).type=r,t}function HM(r,e,t,n){var a=OB(t);return e.add(a),n.set(r,a),Hn(a).id=r,Hn(a).isNew=!0,a}function bd(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){bd(i,e,t,n)}),qg(r,e,n),t.removeKey(Hn(r).id))}function NM(r,e,t,n){r.isGroup||F([["cursor",jn.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];Se(e,i)?r[i]=Le(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),F(je(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=Me(i)?i:null}}),Se(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Jve(r){return r=ve({},r),F(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LO),function(e){delete r[e]}),r}function qve(r,e,t){var n=Ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function ede(r){r.registerComponentModel(Zve),r.registerComponentView(jve),r.registerPreprocessor(function(e){var t=e.graphic;ge(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var VM=["x","y","radius","angle","single"],tde=["cartesian2d","polar","singleAxis"];function rde(r){var e=r.get("coordinateSystem");return $e(tde,e)>=0}function fo(r){return r+"Axis"}function nde(r,e){var t=Ie(),n=[],a=Ie();r.eachComponent({mainType:"dataZoom",query:e},function(u){a.get(u.uid)||s(u)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(u){!a.get(u.uid)&&A(u)&&(s(u),i=!0)}function s(u){a.set(u.uid,!0),n.push(u),l(u)}function A(u){var c=!1;return u.eachTargetAxis(function(f,h){var v=t.get(f);v&&v[h]&&(c=!0)}),c}function l(u){u.eachTargetAxis(function(c,f){(t.get(c)||t.set(c,[]))[f]=!0})}return n}function B3(r){var e=r.ecModel,t={infoList:[],infoMap:Ie()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(fo(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,A=t.infoMap.get(s);A||(A={model:o,axisModels:[]},t.infoList.push(A),t.infoMap.set(s,A)),A.axisModels.push(i)}}}),t}var W0=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),ade=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=GM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=GM(t);Ke(this.option,t,!0),Ke(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Ie(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return F(VM,function(a){var i=this.getReferringComponents(fo(a),nY);if(i.specified){n=!0;var o=new W0;F(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});A(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});A(s,"single")}function A(l,u){var c=l[0];if(c){var f=new W0;if(f.add(c.componentIndex),t.set(u,f),i=!1,u==="x"||u==="y"){var h=c.getReferringComponents("grid",zt).models[0];h&&F(l,function(v){c.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",zt).models[0]&&f.add(v.componentIndex)})}}}i&&F(VM,function(l){if(i){var u=a.findComponents({mainType:fo(l),filter:function(f){return f.get("type",!0)==="category"}});if(u[0]){var c=new W0;c.add(u[0].componentIndex),t.set(l,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");F([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,A=t[i[1]]!=null;s&&!A?n[o]="percent":!s&&A?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(fo(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){F(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(fo(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;F(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(m&&!w&&!B)return!0;m&&(p=!0),w&&(v=!0),B&&(d=!0)}return p&&v&&d})}else sl(u,function(h){if(i==="empty")A.setData(l=l.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,l.selectRange(v)}});sl(u,function(h){l.setApproximateExtent(o,h)})}});function s(A){return A>=o[0]&&A<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;sl(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ct(n[0]+o,n,[0,100],!0):i!=null&&(o=ct(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=qk(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function cde(r,e,t){var n=[1/0,-1/0];sl(t,function(o){Ste(n,o.getData(),e)});var a=r.getAxisModel(),i=p4(a.axis.scale,a,n).calculate();return[i.min,i.max]}const fde=ude;var hde={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var A=r.getComponent(fo(o),s);a(o,s,A,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new fde(a,i,s,r),t.push(o.__dzAxisProxy))});var n=Ie();return F(t,function(a){F(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const vde=hde;function dde(r){r.registerAction("dataZoom",function(e,t){var n=nde(t,e);F(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var $M=!1;function Hx(r){$M||($M=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,vde),dde(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function pde(r){r.registerComponentModel(ode),r.registerComponentView(lde),Hx(r)}var Gn=function(){function r(){}return r}(),C3={};function Al(r,e){C3[r]=e}function b3(r){return C3[r]}var gde=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;F(this.option.feature,function(n,a){var i=b3(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ke(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:le.color.border,borderRadius:0,borderWidth:0,padding:le.size.m,itemSize:15,itemGap:le.size.s,showTitle:!0,iconStyle:{borderColor:le.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:le.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(et);const yde=gde;function x3(r,e){var t=kf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Xe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var mde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),A=t.get("orient")==="vertical",l=t.get("feature")||{},u=this._features||(this._features={}),c=[];F(l,function(y,m){c.push(m)}),new Mi(this._featureNames||[],c).add(f).update(f).remove(ze(f,null)).execute(),this._featureNames=c;function f(y,m){var w=c[y],B=c[m],C=l[w],b=new ot(C,t,t.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===w&&(C.title=i.newTitle),w&&!B){if(wde(w))_={onclick:b.option.onclick,featureName:w};else{var x=b3(w);if(!x)return;_=new x}u[w]=_}else if(_=u[B],!_)return;_.uid=tu("toolbox-feature"),_.model=b,_.ecModel=n,_.api=a;var S=_ instanceof Gn;if(!w&&B){S&&_.dispose&&_.dispose(n,a);return}if(!b.get("show")||S&&_.unusable){S&&_.remove&&_.remove(n,a);return}h(b,_,w),b.setIconStatus=function(I,L){var T=this.option,M=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[I]=L,M[I]&&(L==="emphasis"?Li:Ei)(M[I])},_ instanceof Gn&&_.render&&_.render(b,n,a,i)}function h(y,m,w){var B=y.getModel("iconStyle"),C=y.getModel(["emphasis","iconStyle"]),b=m instanceof Gn&&m.getIcons?m.getIcons():y.get("icon"),_=y.get("title")||{},x,S;Ce(b)?(x={},x[w]=b):x=b,Ce(_)?(S={},S[w]=_):S=_;var I=y.iconPaths={};F(x,function(L,T){var M=Pf(L,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(B.getItemStyle());var R=M.ensureState("emphasis");R.style=C.getItemStyle();var P=new nt({style:{text:S[T],align:C.get("textAlign"),borderRadius:C.get("textBorderRadius"),padding:C.get("textPadding"),fill:null,font:ab({fontStyle:C.get("textFontStyle"),fontFamily:C.get("textFontFamily"),fontSize:C.get("textFontSize"),fontWeight:C.get("textFontWeight")},n)},ignore:!0});M.setTextContent(P),Pi({el:M,componentModel:t,itemName:T,formatterParamsExtra:{title:S[T]}}),M.__title=S[T],M.on("mouseover",function(){var E=C.getItemStyle(),k=A?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:C.get("textFill")||E.fill||E.stroke||le.color.neutral99,backgroundColor:C.get("textBackgroundColor")}),M.setTextConfig({position:C.get("textPosition")||k}),P.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",T])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(y.get(["iconStatus",T])==="emphasis"?Li:Ei)(M),o.add(M),M.on("click",be(m.onclick,m,n,a,T)),I[T]=M})}var v=hr(t,a).refContainer,d=t.getBoxLayoutParams(),p=t.get("padding"),g=Ut(d,v,p);$s(t.get("orient"),o,t.get("itemGap"),g.width,g.height),kg(o,d,v,p),o.add(x3(o.getBoundingRect(),t)),A||o.eachChild(function(y){var m=y.__title,w=y.ensureState("emphasis"),B=w.textConfig||(w.textConfig={}),C=y.getTextContent(),b=C&&C.ensureState("emphasis");if(b&&!Me(b)&&m){var _=b.style||(b.style={}),x=Bg(m,nt.makeFont(_)),S=y.x+o.x,I=y.y+o.y+s,L=!1;I+x.height>a.getHeight()&&(B.position="top",L=!0);var T=L?-5-x.height:s+10;S+x.width/2>a.getWidth()?(B.position=["100%",T],_.align="right"):S-x.width/2<0&&(B.position=[0,T],_.align="left")}})},e.prototype.updateView=function(t,n,a,i){F(this._features,function(o){o instanceof Gn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){F(this._features,function(a){a instanceof Gn&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){F(this._features,function(a){a instanceof Gn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Nt);function wde(r){return r.indexOf("my")===0}const Bde=mde;var Cde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",A=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||le.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=st.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+s,u.target="_blank",u.href=A;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var f=A.split(","),h=f[0].indexOf("base64")>-1,v=o?decodeURIComponent(f[1]):f[1];h&&(v=window.atob(v));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,B=w.document;B.open("image/svg+xml","replace"),B.write(v),B.close(),w.focus(),B.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var C=a.get("lang"),b='',_=window.open();_.document.write(b),_.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:le.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Gn);const bde=Cde;var KM="__ec_magicType_stack__",xde=[["line","bar"],["stack"]],_de=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return F(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(WM[a]){var s={series:[]},A=function(c){var f=c.subType,h=c.id,v=WM[a](f,h,c,i);v&&(Re(v,c.option),s.series.push(v));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=c.getReferringComponents(y,zt).models[0],w=m.componentIndex;s[y]=s[y]||[];for(var B=0;B<=w;B++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=a==="bar"}}};F(xde,function(c){$e(c,a)>=0&&F(c,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},A);var l,u=a;a==="stack"&&(l=Ke({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:l,featureName:"magicType"})}},e}(Gn),WM={line:function(r,e,t,n){if(r==="bar")return Ke({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ke({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===KM;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ke({id:e,stack:a?"":KM},n.get(["option","stack"])||{},!0)}};ai({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const Sde=_de;var ey=new Array(60).join("-"),Gl=" ";function Tde(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function Ide(r){var e=[];return F(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(me(t.series,function(h){return h.name})),A=[a.model.getCategories()];F(t.series,function(h){var v=h.getRawData();A.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var l=[s.join(Gl)],u=0;u=0)return!0}var HB=new RegExp("["+Gl+"]+","g");function Dde(r){for(var e=r.split(/\n+/g),t=Rp(e.shift()).split(HB),n=[],a=me(t,function(A){return{name:A,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var A=s.getPercentRange();t[0][a]={dataZoomId:a,start:A[0],end:A[1]}}}}),t.push(e)}function Ode(r){var e=Nx(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return _3(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Hde(r){S3(r).snapshots=null}function Nde(r){return Nx(r).length}function Nx(r){var e=S3(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Vde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){Hde(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Gn);ai({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const Gde=Vde;var zde=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],$de=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=XM(t,e);F(Kde,function(o,s){(!n||!n.include||$e(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=X0[n.brushType](0,i,a);n.__rangeOffset={offset:JM[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){F(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&F(i.coordSyses,function(o){var s=X0[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){F(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=X0[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?JM[n.brushType](i.values,o.offset,Wde(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return me(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:E5(a),isTargetByCursor:D5(a,e,n.coordSysModel),getLinearBrushOtherExtent:M5(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&$e(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=XM(t,e),i=0;ir[1]&&r.reverse(),r}function XM(r,e){return Bl(r,e,{includeMainTypes:zde})}var Kde={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Ie(),o={},s={};!t&&!n&&!a||(F(t,function(A){var l=A.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),F(n,function(A){var l=A.axis.grid.model;i.set(l.id,l),s[l.id]=!0}),F(a,function(A){i.set(A.id,A),o[A.id]=!0,s[A.id]=!0}),i.each(function(A){var l=A.coordinateSystem,u=[];F(l.getCartesians(),function(c,f){($e(t,c.getAxis("x").model)>=0||$e(n,c.getAxis("y").model)>=0)&&u.push(c)}),e.push({panelId:"grid--"+A.id,gridModel:A,coordSysModel:A,coordSys:u[0],coordSyses:u,getPanelRect:ZM.grid,xAxisDeclared:o[A.id],yAxisDeclared:s[A.id]})}))},geo:function(r,e){F(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:ZM.geo})})}},YM=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],ZM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(zs(r)),e}},X0={lineX:ze(jM,0),lineY:ze(jM,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[NB([a[0],i[0]]),NB([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=me(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function jM(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=NB(me([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var JM={lineX:ze(qM,0),lineY:ze(qM,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return me(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function qM(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function Wde(r,e){var t=eD(r),n=eD(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function eD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Vx=$de;var VB=F,Xde=J9("toolbox-dataZoom_"),Yde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new gx(a.getZr()),this._brushController.on("brush",be(this._onBrush,this)).mount()),Jde(t,n,this,i,a),jde(t,n)},e.prototype.onclick=function(t,n,a){Zde[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Vx(Gx(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(l,u,c){if(c.type==="cartesian2d"){var f=l.brushType;f==="rect"?(s("x",c,u[0]),s("y",c,u[1])):s({lineX:"x",lineY:"y"}[f],c,u)}}),Rde(i,a),this._dispatchZoomAction(a);function s(l,u,c){var f=u.getAxis(l),h=f.model,v=A(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Mo(0,c.slice(),f.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:c[0],endValue:c[1]})}function A(l,u,c){var f;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var n=[];VB(t,function(a,i){n.push(De(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:le.color.backgroundTint}};return n},e}(Gn),Zde={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ode(this.ecModel))}};function Gx(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function jde(r,e){r.setIconStatus("back",Nde(e)>1?"emphasis":"normal")}function Jde(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Vx(Gx(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(A){return A.xAxisDeclared&&!A.yAxisDeclared?"lineX":!A.xAxisDeclared&&A.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}zj("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Gx(n),o=Bl(r,i);VB(o.xAxisModels,function(A){return s(A,"xAxis","xAxisIndex")}),VB(o.yAxisModels,function(A){return s(A,"yAxis","yAxisIndex")});function s(A,l,u){var c=A.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Xde+l+c};f[u]=c,a.push(f)}return a});const qde=Yde;function epe(r){r.registerComponentModel(yde),r.registerComponentView(Bde),Al("saveAsImage",bde),Al("magicType",Sde),Al("dataView",kde),Al("dataZoom",qde),Al("restore",Gde),We(pde)}var tpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.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:le.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:le.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:le.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:le.color.tertiary,fontSize:14}},e}(et);const rpe=tpe;function T3(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function I3(r){if(st.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t-1?(s+="top:50%",A+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(s+="left:50%",A+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,c=o+a,f=c*Math.abs(Math.cos(u))+c*Math.abs(Math.sin(u)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+A+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function lpe(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(st.transformSupported?""+zx+a:",left"+a+",top"+a)),ipe+":"+i}function tD(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!st.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=st.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+zx+":"+o+";":[["top",0],["left",0],[L3,o]]}function upe(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Le(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,A=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+A+"px "+o+"px "+i),F(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function cpe(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),A=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=hH(r,"html"),h=l+"px "+u+"px "+s+"px "+A;return a.push("box-shadow:"+h),e&&i>0&&a.push(lpe(i,t,n)),o&&a.push("background-color:"+o),F(["width","color","radius"],function(v){var d="border-"+v,p=xO(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(upe(c)),f!=null&&a.push("padding:"+kf(f).join("px ")+"px"),a.join(";")+";"}function rD(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&h7(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var fpe=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(Ce(i)?document.querySelector(i):El(i)?i:Me(i)&&i(e.getDom()));rD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(A){if(A=A||window.event,!s._enterable){var l=a.handler,u=a.painter.getViewportRoot();kn(u,A,!0),l.dispatch("mousemove",A)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=ape(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.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")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=ope+cpe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+tD(i[0],i[1],!0)+("border-color:"+rA(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ce(i)&&n.get("trigger")==="item"&&!T3(n)&&(s=Ape(n,a,i)),Ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ge(e)||(e=[e]);for(var A=0;A=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||st.node||!a.getDom())){var o=iD(i,a);this._ticket="";var s=i.dataByCoordSys,A=Bpe(i,n,a);if(A){var l=A.el.getBoundingRect().clone();l.applyTransform(A.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:A.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=ppe;u.x=i.x,u.y=i.y,u.update(),Ve(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var c=c3(i,n),f=c.point[0],h=c.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,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(iD(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,A=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||A==null)){var l=n.getSeriesByIndex(o);if(l){var u=l.getData(),c=Vu([u.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=Ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var A,l;Qs(a,function(u){if(u.tooltipDisabled)return A=l=null,!0;A||l||(Ve(u).dataIndex!=null?A=u:Ve(u).tooltipConfig!=null&&(l=u))},!0),A?this._showSeriesItemTooltip(t,A,n):l?this._showComponentItemTooltip(t,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=be(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Vu([n.tooltipOption],i),A=this._renderMode,l=[],u=nr("section",{blocks:[],noHeader:!0}),c=[],f=new Im;F(t,function(y){F(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),B=m.value;if(!(!w||B==null)){var C=s3(B,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),b=nr("section",{header:C,noHeader:!Xn(C),sortBlocks:!0,blocks:[]});u.blocks.push(b),F(m.seriesDataIndices,function(_){var x=a.getSeriesByIndex(_.seriesIndex),S=_.dataIndexInside,I=x.getDataParams(S);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=vp(w.axis,{value:B}),I.axisValueLabel=C,I.marker=f.makeTooltipMarker("item",rA(I.color),A);var L=yI(x.formatTooltip(S,!0,null)),T=L.frag;if(T){var M=Vu([x],i).get("valueFormatter");b.blocks.push(M?ve({valueFormatter:M},T):T)}L.text&&c.push(L.text),l.push(I)}})}})}),u.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),d=xI(u,f,A,v,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var p=A==="richText"?` `:"
",g=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Ve(n),s=o.seriesIndex,A=i.getSeriesByIndex(s),l=o.dataModel||A,u=o.dataIndex,c=o.dataType,f=l.getData(c),h=this._renderMode,v=t.positionDefault,d=Vu([f.getItemModel(u),l,A&&(A.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,c),y=new Im;g.marker=y.makeTooltipMarker("item",rA(g.color),h);var m=yI(l.formatTooltip(u,!1,c)),w=d.get("order"),B=d.get("valueFormatter"),C=m.frag,b=C?xI(B?ve({valueFormatter:B},C):C,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,_="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,_,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:f.getRawIndex(u),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Ve(n),s=o.tooltipConfig,A=s.option||{},l=A.encodeHTMLContent;if(Ce(A)){var u=A;A={content:u,formatter:u},l=!0}l&&i&&A.content&&(A=De(A),A.content=Vr(A.content));var c=[A],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&c.push(f),c.push({formatter:A.content});var h=t.positionDefault,v=Vu(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new Im;this._showOrMove(v,function(){var y=De(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,t.offsetX,t.offsetY,t.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,A,l,u){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var f=t.get("formatter");A=A||t.get("position");var h=n,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=v.color;if(f)if(Ce(f)){var p=t.ecModel.get("useUTC"),g=ge(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=f,y&&(h=Pg(g.axisValue,h,p)),h=_O(h,a,!0)}else if(Me(f)){var m=be(function(w,B){w===this._ticket&&(c.setContent(B,u,t,d,A),this._updatePosition(t,A,o,s,c,a,l))},this);this._ticket=i,h=f(a,i,m)}else h=f;c.setContent(h,u,t,d,A),c.show(t,d),this._updatePosition(t,A,o,s,c,a,l)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||ge(n))return{color:i||o};if(!ge(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,A){var l=this._api.getWidth(),u=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),v=A&&A.getBoundingRect().clone();if(A&&v.applyTransform(A.transform),Me(n)&&(n=n([a,i],s,o.el,v,{viewSize:[l,u],contentSize:c.slice()})),ge(n))a=Be(n[0],l),i=Be(n[1],u);else if(Oe(n)){var d=n;d.width=c[0],d.height=c[1];var p=Ut(d,{width:l,height:u});a=p.x,i=p.y,f=null,h=null}else if(Ce(n)&&A){var g=wpe(n,v,c,t.get("borderWidth"));a=g[0],i=g[1]}else{var g=ype(a,i,o,l,u,f?null:20,h?null:20);a=g[0],i=g[1]}if(f&&(a-=oD(f)?c[0]/2:f==="right"?c[0]:0),h&&(i-=oD(h)?c[1]/2:h==="bottom"?c[1]:0),T3(t)){var g=mpe(a,i,o,l,u);a=g[0],i=g[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&F(a,function(s,A){var l=s.dataByAxis||[],u=t[A]||{},c=u.dataByAxis||[];o=o&&l.length===c.length,o&&F(l,function(f,h){var v=c[h]||{},d=f.seriesDataIndices||[],p=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&d.length===p.length,o&&F(d,function(g,y){var m=p[y];o=o&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&F(f.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){st.node||!n.getDom()||(sf(this,"_updatePosition"),this._tooltipContent.dispose(),QB("itemTooltip",n))},e.type="tooltip",e}(Nt);function Vu(r,e,t){var n=e.ecModel,a;t?(a=new ot(t,n,n),a=new ot(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ot&&(o=o.get("tooltip",!0)),Ce(o)&&(o={formatter:o}),o&&(a=new ot(o,a,n)))}return a}function iD(r,e){return r.dispatchAction||be(e.dispatchAction,e)}function ype(r,e,t,n,a,i,o){var s=t.getSize(),A=s[0],l=s[1];return i!=null&&(r+A+i+2>n?r-=A+i:r+=i),o!=null&&(e+l+o>a?e-=l+o:e+=o),[r,e]}function mpe(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function wpe(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,A=0,l=e.width,u=e.height;switch(r){case"inside":s=e.x+l/2-a/2,A=e.y+u/2-i/2;break;case"top":s=e.x+l/2-a/2,A=e.y-i-o;break;case"bottom":s=e.x+l/2-a/2,A=e.y+u+o;break;case"left":s=e.x-a-o,A=e.y+u/2-i/2;break;case"right":s=e.x+l+o,A=e.y+u/2-i/2}return[s,A]}function oD(r){return r==="center"||r==="middle"}function Bpe(r,e,t){var n=VC(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=jl(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),A;if(s.group.traverse(function(l){var u=Ve(l).tooltipConfig;if(u&&u.name===r.name)return A=l,!0}),A)return{componentMainType:a,componentIndex:o.componentIndex,el:A}}}}const Cpe=gpe;function bpe(r){We(Xf),r.registerComponentModel(rpe),r.registerComponentView(Cpe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var xpe=["rect","polygon","keep","clear"];function _pe(r,e){var t=gt(r?r.brush:[]);if(t.length){var n=[];F(t,function(A){var l=A.hasOwnProperty("toolbox")?A.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;ge(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Spe(s),e&&!s.length&&s.push.apply(s,xpe)}}function Spe(r){var e={};F(r,function(t){e[t]=1}),r.length=0,F(e,function(t,n){r.push(n)})}var sD=F;function AD(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function GB(r,e,t){var n={};return sD(e,function(i){var o=n[i]=a();sD(r[i],function(s,A){if(Qr.isValidType(A)){var l={type:A,visual:s};t&&t(l,i),o[A]=new Qr(l),A==="opacity"&&(l=De(l),l.type="colorAlpha",o.__hidden.__alphaForOpacity=new Qr(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function M3(r,e,t){var n;F(t,function(a){e.hasOwnProperty(a)&&AD(e[a])&&(n=!0)}),n&&F(t,function(a){e.hasOwnProperty(a)&&AD(e[a])?r[a]=De(e[a]):delete r[a]})}function Tpe(r,e,t,n,a,i){var o={};F(r,function(c){var f=Qr.prepareVisualTypes(e[c]);o[c]=f});var s;function A(c){return Sb(t,s,c)}function l(c,f){bH(t,s,c,f)}i==null?t.each(u):t.each([i],u);function u(c,f){s=i==null?c:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(a,c),d=e[v],p=o[v],g=0,y=p.length;ge[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&hD(e)}};function hD(r){return new Ne(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Upe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new gx(n.getZr())).on("brush",be(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){D3(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:De(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:De(a),$from:n})},e.type="brush",e}(Nt);const Ppe=Upe;var kpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&M3(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=me(t,function(n){return vD(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=vD(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:le.color.backgroundTint,borderColor:le.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:le.color.disabled},e}(et);function vD(r,e){return Ke({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ot(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const Rpe=kpe;var Ope=["rect","polygon","lineX","lineY","keep","clear"],Hpe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(A){i=A.brushType,o=A.brushOption.brushMode||"single",s=s||!!A.areas.length}),this._brushType=i,this._brushMode=o,F(t.get("type",!0),function(A){t.setIconStatus(A,(A==="keep"?o==="multiple":A==="clear"?s:A===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return F(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:Ope.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:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(Gn);const Npe=Hpe;function Vpe(r){r.registerComponentView(Ppe),r.registerComponentModel(Rpe),r.registerPreprocessor(_pe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Epe),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),Al("brush",Npe)}var Gpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:le.size.m,backgroundColor:le.color.transparent,borderColor:le.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:le.color.primary},subtextStyle:{fontSize:12,color:le.color.quaternary}},e}(et),zpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),A=t.get("textAlign"),l=Le(t.get("textBaseline"),t.get("textVerticalAlign")),u=new nt({style:Ct(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),f=t.get("subtext"),h=new nt({style:Ct(s,{text:f,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){ip(v,"_"+t.get("target"))}),d&&h.on("click",function(){ip(d,"_"+t.get("subtarget"))}),Ve(u).eventData=Ve(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),f&&i.add(h);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=hr(t,a),w=Ut(y,m.refContainer,t.get("padding"));A||(A=t.get("left")||t.get("right"),A==="middle"&&(A="center"),A==="right"?w.x+=w.width:A==="center"&&(w.x+=w.width/2)),l||(l=t.get("top")||t.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?w.y+=w.height:l==="middle"&&(w.y+=w.height/2),l=l||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var B={align:A,verticalAlign:l};u.setStyle(B),h.setStyle(B),g=i.getBoundingRect();var C=w.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var _=new Xe({shape:{x:g.x-C[3],y:g.y-C[0],width:g.width+C[1]+C[3],height:g.height+C[0]+C[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(Nt);function $pe(r){r.registerComponentModel(Gpe),r.registerComponentView(zpe)}var Kpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],F(n,function(l,u){var c=Ar(Zl(l),""),f;Oe(l)?(f=De(l),f.value=u):f=u,o.push(f),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",A=this._data=new tn([{name:"value",type:s}],this);A.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:le.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:le.color.secondary},data:[]},e}(et);const dD=Kpe;var F3=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Ro(dD.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:le.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:le.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:le.color.tertiary},itemStyle:{color:le.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:le.color.accent50,borderColor:le.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:le.color.accent50,borderColor:le.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:le.color.accent60},itemStyle:{color:le.color.accent60,borderColor:le.color.accent60},controlStyle:{color:le.color.accent70,borderColor:le.color.accent70}},progress:{lineStyle:{color:le.color.accent30},itemStyle:{color:le.color.accent40}},data:[]}),e}(dD);ir(F3,Og.prototype);const Wpe=F3;var Xpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Nt);const Ype=Xpe;var Zpe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Ba);const jpe=Zpe;var Z0=Math.PI,pD=Ye(),Jpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),A=this._axis=this._createAxis(i,t);t.formatTooltip=function(l){var u=A.scale.getLabel({value:l});return nr("nameValue",{noName:!0,value:u})},F(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,o,A,t)},this),this._renderAxisLabel(i,s,A,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=ege(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},l={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:Z0/2},c=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),v=h?f.get("itemSize"):0,d=h?f.get("itemGap"):0,p=v+d,g=t.get(["label","rotate"])||0;g=g*Z0/180;var y,m,w,B=f.get("position",!0),C=h&&f.get("showPlayBtn",!0),b=h&&f.get("showPrevBtn",!0),_=h&&f.get("showNextBtn",!0),x=0,S=c;B==="left"||B==="bottom"?(C&&(y=[0,0],x+=p),b&&(m=[x,0],x+=p),_&&(w=[S-v,0],S-=p)):(C&&(y=[S-v,0],S-=p),b&&(m=[0,0],x+=p),_&&(w=[S-v,0],S-=p));var I=[x,S];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||A[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=xr(),A=o.x,l=o.y+o.height;ja(s,s,[-A,-l]),Uo(s,s,-Z0/2),ja(s,s,[A,l]),o=o.clone(),o.applyTransform(s)}var u=y(o),c=y(a.getBoundingRect()),f=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=t.labelPosOpt;if(d==null||Ce(d)){var p=d==="+"?0:1;m(h,c,u,1,p),m(v,f,u,1,1-p)}else{var p=d>=0?0:1;m(h,c,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=t.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,B,C,b,_){w[b]+=C[b][_]-B[b][_]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=qpe(n,i);o.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var A=new jpe("value",o,t.axisExtent,i);return A.model=n,A},e.prototype._createGroup=function(t){var n=this[t]=new Fe;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new lr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ve({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var A=this._progressLine=new lr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Re({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(A)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),A=a.scale.getTicks();this._tickSymbols=[],F(A,function(l){var u=a.dataToCoord(l.value),c=s.getItemModel(l.value),f=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),v=c.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:be(o._changeTimeline,o,l.value)},p=gD(c,f,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),Gs(p);var g=Ve(p);c.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(p)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var A=i.getData(),l=a.getViewLabels();this._tickLabels=[],F(l,function(u){var c=u.tickValue,f=A.getItemModel(c),h=f.getModel("label"),v=f.getModel(["emphasis","label"]),d=f.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new nt({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:be(o._changeTimeline,o,c),silent:!1,style:Ct(h,{text:u.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Ct(v),g.ensureState("progress").style=Ct(d),n.add(g),Gs(g),pD(g).dataIndex=c,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,A=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);f(t.nextBtnPosition,"next",be(this._changeTimeline,this,c?"-":"+")),f(t.prevBtnPosition,"prev",be(this._changeTimeline,this,c?"+":"-")),f(t.playPosition,u?"stop":"play",be(this._handlePlayClick,this,!u),!0);function f(h,v,d,p){if(h){var g=da(Le(i.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],m=tge(i,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:A,onclick:d});m.ensureState("emphasis").style=l,n.add(m),Gs(m)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),A=o.getItemModel(s).getModel("checkpointStyle"),l=this,u={onCreate:function(c){c.draggable=!0,c.drift=be(l._handlePointerDrag,l),c.ondragend=be(l._handlePointerDragend,l),yD(c,l._progressLine,s,a,i,!0)},onUpdate:function(c){yD(c,l._progressLine,s,a,i)}};this._currentPointer=gD(A,A,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Yn(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(s[o]=+s[o].toFixed(v)),[s,h]}var Fv={min:ze(Dv,"min"),max:ze(Dv,"max"),average:ze(Dv,"average"),median:ze(Dv,"median")};function bf(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!lge(e)&&!ge(e.coord)&&ge(a)){var i=U3(e,t,n,r);if(e=De(e),e.type&&Fv[e.type]&&i.baseAxis&&i.valueAxis){var o=$e(a,i.baseAxis.dim),s=$e(a,i.valueAxis.dim),A=Fv[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=A[0],e.value=A[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ge(a)){e.coord=[];var l=r.getBaseAxis();if(l&&e.type&&Fv[e.type]){var u=n.getOtherAxis(l);u&&(e.value=Op(t,t.mapDimension(u.dim),e.type))}}else for(var c=e.coord,f=0;f<2;f++)Fv[c[f]]&&(c[f]=Op(t,t.mapDimension(a[f]),c[f]));return e}}function U3(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(uge(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function uge(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xf(r,e){return r&&r.containData&&e.coord&&!$B(e)?r.containData(e.coord):!0}function cge(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!$B(e)&&!$B(t)?r.containZone(e.coord,t.coord):!0}function P3(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Co(o,e[i])}:function(t,n,a,i){return Co(t.value,e[i])}}function Op(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var j0=Ye(),fge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Ie()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){j0(s).keep=!1}),n.eachSeries(function(s){var A=Qi.getMarkerModelFromSeries(s,i.type);A&&i.renderSeries(s,A,n,a)}),o.each(function(s){!j0(s).keep&&i.group.remove(s.group)}),hge(n,o,this.type)},e.prototype.markKeep=function(t){j0(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;F(t,function(i){var o=Qi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(A){A&&(n?MR(A):ZC(A))})}})},e.type="marker",e}(Nt);function hge(r,e,t){r.eachSeries(function(n){var a=Qi.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=tA(a),s=o.z,A=o.zlevel;Qg(i.group,s,A)}})}const Kx=fge;function wD(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var A=r.getItemModel(s),l=A.get("relativeTo")==="coordinate",u=l?o?o.width:0:a,c=l?o?o.height:0:i,f=l&&o?o.x:0,h=l&&o?o.y:0,v,d=Be(A.get("x"),u)+f,p=Be(A.get("y"),c)+h;if(!isNaN(d)&&!isNaN(p))v=[d,p];else if(e.getMarkerPosition)v=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var g=r.get(n.dimensions[0],s),y=r.get(n.dimensions[1],s);v=n.dataToPoint([g,y])}isNaN(d)||(v[0]=d),isNaN(p)||(v[1]=p),r.setItemLayout(s,v)})}var vge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markPoint");o&&(wD(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,new zf),c=dge(o,t,n);n.setData(c),wD(n.getData(),t,i),c.each(function(f){var h=c.getItemModel(f),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Me(v)||Me(d)||Me(p)||Me(g)){var m=n.getRawValue(f),w=n.getDataParams(f);Me(v)&&(v=v(m,w)),Me(d)&&(d=d(m,w)),Me(p)&&(p=p(m,w)),Me(g)&&(g=g(m,w))}var B=h.getModel("itemStyle").getItemStyle(),C=h.get("z2"),b=Hf(A,"color");B.fill||(B.fill=b),c.setItemVisual(f,{z2:Le(C,0),symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:B})}),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl(function(f){f.traverse(function(h){Ve(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(Kx);function dge(r,e,t){var n;r?n=me(r&&r.dimensions,function(s){var A=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return ve(ve({},A),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,t),i=me(t.get("data"),ze(bf,e));r&&(i=ft(i,ze(xf,r)));var o=P3(!!r,n);return a.initData(i,null,o),a}const pge=vge;function gge(r){r.registerComponentModel(Age),r.registerComponentView(pge),r.registerPreprocessor(function(e){$x(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var yge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.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"},e}(Qi);const mge=yge;var Qv=Ye(),wge=function(r,e,t,n){var a=r.getData(),i;if(ge(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,A=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),A=Fr(n.yAxis,n.xAxis);else{var l=U3(n,a,e,r);s=l.valueAxis;var u=e4(a,l.valueDataDim);A=Op(a,u,o)}var c=s.dim==="x"?0:1,f=1-c,h=De(n),v={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,v.coord[f]=1/0;var d=t.get("precision");d>=0&&qe(A)&&(A=+A.toFixed(Math.min(d,20))),h.coord[c]=v.coord[c]=A,i=[h,v,{type:o,valueIndex:n.valueIndex,value:A}]}else i=[]}var p=[bf(r,i[0]),bf(r,i[1]),ve({},i[2])];return p[2].type=p[2].type||null,Ke(p[2],p[0]),Ke(p[2],p[1]),p};function Hp(r){return!isNaN(r)&&!isFinite(r)}function BD(r,e,t,n){var a=1-r,i=n.dimensions[r];return Hp(e[a])&&Hp(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function Bge(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(BD(1,t,n,r)||BD(0,t,n,r)))return!0}return xf(r,e[0])&&xf(r,e[1])}function J0(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,A=Be(o.get("x"),a.getWidth()),l=Be(o.get("y"),a.getHeight());if(!isNaN(A)&&!isNaN(l))s=[A,l];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var u=i.dimensions,c=r.get(u[0],e),f=r.get(u[1],e);s=i.dataToPoint([c,f])}if(Eo(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;Hp(r.get(u[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):Hp(r.get(u[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(A)||(s[0]=A),isNaN(l)||(s[1]=l)}r.setItemLayout(e,s)}var Cge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),A=Qv(o).from,l=Qv(o).to;A.each(function(u){J0(A,u,!0,i,a),J0(l,u,!1,i,a)}),s.each(function(u){s.setItemLayout(u,[A.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,new ux);this.group.add(u.group);var c=bge(o,t,n),f=c.from,h=c.to,v=c.line;Qv(n).from=f,Qv(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");ge(d)||(d=[d,d]),ge(p)||(p=[p,p]),ge(g)||(g=[g,g]),ge(y)||(y=[y,y]),c.from.each(function(w){m(f,w,!0),m(h,w,!1)}),v.each(function(w){var B=v.getItemModel(w),C=B.getModel("lineStyle").getLineStyle();v.setItemLayout(w,[f.getItemLayout(w),h.getItemLayout(w)]);var b=B.get("z2");C.stroke==null&&(C.stroke=f.getItemVisual(w,"style").fill),v.setItemVisual(w,{z2:Le(b,0),fromSymbolKeepAspect:f.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(w,"symbolOffset"),fromSymbolRotate:f.getItemVisual(w,"symbolRotate"),fromSymbolSize:f.getItemVisual(w,"symbolSize"),fromSymbol:f.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:C})}),u.updateData(v),c.line.eachItemGraphicEl(function(w){Ve(w).dataModel=n,w.traverse(function(B){Ve(B).dataModel=n})});function m(w,B,C){var b=w.getItemModel(B);J0(w,B,C,t,i);var _=b.getModel("itemStyle").getItemStyle();_.fill==null&&(_.fill=Hf(A,"color")),w.setItemVisual(B,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:Le(b.get("symbolOffset",!0),y[C?0:1]),symbolRotate:Le(b.get("symbolRotate",!0),g[C?0:1]),symbolSize:Le(b.get("symbolSize"),p[C?0:1]),symbol:Le(b.get("symbol",!0),d[C?0:1]),style:_})}this.markKeep(u),u.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(Kx);function bge(r,e,t){var n;r?n=me(r&&r.dimensions,function(l){var u=e.getData().getDimensionInfo(e.getData().mapDimension(l))||{};return ve(ve({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,t),i=new tn(n,t),o=new tn([],t),s=me(t.get("data"),ze(wge,e,r,t));r&&(s=ft(s,ze(Bge,r)));var A=P3(!!r,n);return a.initData(me(s,function(l){return l[0]}),null,A),i.initData(me(s,function(l){return l[1]}),null,A),o.initData(me(s,function(l){return l[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const xge=Cge;function _ge(r){r.registerComponentModel(mge),r.registerComponentView(xge),r.registerPreprocessor(function(e){$x(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Sge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Qi);const Tge=Sge;var Uv=Ye(),Ige=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=bf(r,a),s=bf(r,i),A=o.coord,l=s.coord;A[0]=Fr(A[0],-1/0),A[1]=Fr(A[1],-1/0),l[0]=Fr(l[0],1/0),l[1]=Fr(l[1],1/0);var u=EC([{},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 Np(r){return!isNaN(r)&&!isFinite(r)}function CD(r,e,t,n){var a=1-r;return Np(e[a])&&Np(t[a])}function Lge(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Eo(r,"cartesian2d")?t&&n&&(CD(1,t,n)||CD(0,t,n))?!0:cge(r,a,i):xf(r,a)||xf(r,i)}function bD(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,A=Be(o.get(t[0]),a.getWidth()),l=Be(o.get(t[1]),a.getHeight());if(!isNaN(A)&&!isNaN(l))s=[A,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],e),c=r.getValues(["x1","y1"],e),f=i.clampData(u),h=i.clampData(c),v=[];t[0]==="x0"?v[0]=f[0]>h[0]?c[0]:u[0]:v[0]=f[0]>h[0]?u[0]:c[0],t[1]==="y0"?v[1]=f[1]>h[1]?c[1]:u[1]:v[1]=f[1]>h[1]?u[1]:c[1],s=n.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),p=r.get(t[1],e),g=[d,p];i.clampData&&i.clampData(g,g),s=i.dataToPoint(g,!0)}if(Eo(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(t[0],e),p=r.get(t[1],e);Np(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):Np(p)&&(s[1]=m.toGlobalCoord(m.getExtent()[t[1]==="y0"?0:1]))}isNaN(A)||(s[0]=A),isNaN(l)||(s[1]=l)}return s}var xD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ege=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(A){var l=me(xD,function(c){return bD(s,A,c,i,a)});s.setItemLayout(A,l);var u=s.getItemGraphicEl(A);u.setShape("points",l)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,{group:new Fe});this.group.add(u.group),this.markKeep(u);var c=Mge(o,t,n);n.setData(c),c.each(function(f){var h=me(xD,function(S){return bD(c,f,S,t,i)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(c.get("x0",f)),v.parse(c.get("x1",f))],m=[d.parse(c.get("y0",f)),d.parse(c.get("y1",f))];Yn(y),Yn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:le.size.m,align:"auto",backgroundColor:le.color.transparent,borderColor:le.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:le.color.disabled,inactiveBorderColor:le.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:le.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:le.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:le.color.tertiary,borderWidth:1,borderColor:le.color.border},emphasis:{selectorLabel:{show:!0,color:le.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(et);const KB=Uge;var jA=ze,WB=F,Pv=Fe,Pge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Pv),this.group.add(this._selectorGroup=new Pv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var A=t.get("selector",!0),l=t.get("selectorPosition",!0);A&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,A,s,l);var u=hr(t,a).refContainer,c=t.getBoxLayoutParams(),f=t.get("padding"),h=Ut(c,u,f),v=this.layoutInner(t,o,h,i,A,l),d=Ut(Re({width:v.width,height:v.height},c),u,f);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=x3(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,A){var l=this.getContentGroup(),u=Ie(),c=n.get("selectedMode"),f=n.get("triggerEvent"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),WB(n.getData(),function(v,d){var p=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var y=new Pv;y.newline=!0,l.add(y);return}var m=a.getSeriesByName(g)[0];if(!u.get(g))if(m){var w=m.getData(),B=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),b=w.getVisual("style"),_=this._createItem(m,g,d,v,n,t,B,b,C,c,i);_.on("click",jA(_D,g,null,i,h)).on("mouseover",jA(XB,m.name,null,i,h)).on("mouseout",jA(YB,m.name,null,i,h)),a.ssr&&_.eachChild(function(x){var S=Ve(x);S.seriesIndex=m.seriesIndex,S.dataIndex=d,S.ssrType="legend"}),f&&_.eachChild(function(x){p.packEventData(x,n,m,d,g)}),u.set(g,!0)}else a.eachRawSeries(function(x){var S=this;if(!u.get(g)&&x.legendVisualProvider){var I=x.legendVisualProvider;if(!I.containName(g))return;var L=I.indexOfName(g),T=I.getItemVisual(L,"style"),M=I.getItemVisual(L,"legendIcon"),R=hn(T.fill);R&&R[3]===0&&(R[3]=.2,T=ve(ve({},T),{fill:Wa(R,"rgba")}));var P=this._createItem(x,g,d,v,n,t,{},T,M,c,i);P.on("click",jA(_D,null,g,i,h)).on("mouseover",jA(XB,null,g,i,h)).on("mouseout",jA(YB,null,g,i,h)),a.ssr&&P.eachChild(function(E){var k=Ve(E);k.seriesIndex=x.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),f&&P.eachChild(function(E){S.packEventData(E,n,x,d,g)}),u.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,A)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Ve(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();WB(t,function(l){var u=l.type,c=new nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var f=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);yr(c,{normal:f,emphasis:h},{defaultText:l.title}),Gs(c)})},e.prototype._createItem=function(t,n,a,i,o,s,A,l,u,c,f){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),p=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=kge(u,i,A,l,h,p,f),B=new Pv,C=i.getModel("textStyle");if(Me(t.getLegendIcon)&&(!m||m==="inherit"))B.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var b=m==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;B.add(Rge({itemWidth:v,itemHeight:d,icon:u,iconRotate:b,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var _=s==="left"?v+5:-5,x=s,S=o.get("formatter"),I=n;Ce(S)&&S?I=S.replace("{name}",n??""):Me(S)&&(I=S(n));var L=p?C.getTextColor():i.get("inactiveColor");B.add(new nt({style:Ct(C,{text:I,x:_,y:d/2,fill:L,align:x,verticalAlign:"middle"},{inheritColor:L})}));var T=new Xe({shape:B.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&Pi({el:T,componentModel:o,itemName:n,itemTooltipOption:M.option}),B.add(T),B.eachChild(function(R){R.silent=!0}),T.silent=!c,this.getContentGroup().add(B),Gs(B),B.__legendDataIndex=a,B},e.prototype.layoutInner=function(t,n,a,i,o,s){var A=this.getContentGroup(),l=this.getSelectorGroup();$s(t.get("orient"),A,t.get("itemGap"),a.width,a.height);var u=A.getBoundingRect(),c=[-u.x,-u.y];if(l.markRedraw(),A.markRedraw(),o){$s("horizontal",l,t.get("selectorItemGap",!0));var f=l.getBoundingRect(),h=[-f.x,-f.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=u[p]+v:c[d]+=f[p]+v,h[1-d]+=u[g]/2-f[g]/2,l.x=h[0],l.y=h[1],A.x=c[0],A.y=c[1];var m={x:0,y:0};return m[p]=u[p]+v+f[p],m[g]=Math.max(u[g],f[g]),m[y]=Math.min(0,f[y]+h[1-d]),m}else return A.x=c[0],A.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Nt);function kge(r,e,t,n,a,i,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),WB(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var A=e.getModel("itemStyle"),l=A.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=A.getShallow("decal");l.decal=!c||c==="inherit"?n.decal:Ul(c,o),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:t).opacity),s(l,n);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=e.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Rge(r){var e=r.icon||"roundRect",t=ar(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=le.color.neutral00,t.style.lineWidth=2),t}function _D(r,e,t,n){YB(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),XB(r,e,t,n)}function k3(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;na[o],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=Le(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var w=t.get("pageButtonPosition",!0);w==="end"?y[i]+=a[o]-v[o]:g[i]+=v[o]+m}y[1-i]+=h[s]/2-v[s]/2,u.setPosition(p),c.setPosition(g),f.setPosition(y);var B={x:0,y:0};if(B[o]=d?a[o]:h[o],B[s]=Math.max(h[s],v[s]),B[A]=Math.min(0,v[A]+y[1-i]),c.__rectSize=a[o],d){var C={x:0,y:0};C[o]=Math.max(a[o]-v[o]-m,0),C[s]=B[s],c.setClipPath(new Xe({shape:C})),c.__rectSize=C[o]}else f.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&at(u,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),B},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;F(["pagePrev","pageNext"],function(u){var c=u+"DataIndex",f=n[c]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,A=s!=null?s+1:0,l=n.pageCount;i&&o&&i.setStyle("text",Ce(o)?o.replace("{current}",A==null?"":A+"").replace("{total}",l==null?"":l+""):o({current:A,total:l}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=q0[o],A=ew[o],l=this._findTargetItemIndex(n),u=a.children(),c=u[l],f=u.length,h=f?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=w(c);v.contentPosition[o]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=f;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!B(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!B(y,m.s))&&g.i=b&&C.s<=b+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var A=o.__legendDataIndex;i==null&&A!=null&&(i=s),A===t&&(n=s)}),n??i},e.type="legend.scroll",e}(R3);const zge=Gge;function $ge(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function Kge(r){We(O3),r.registerComponentModel(Vge),r.registerComponentView(zge),$ge(r)}function Wge(r){We(O3),We(Kge)}var Xge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Ro(Cf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Cf);const Yge=Xge;var Wx=Ye();function Zge(r,e,t){Wx(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function jge(r,e){for(var t=Wx(r).coordSysRecordMap,n=t.keys(),a=0;ai[a+n]&&(n=l),o=o&&A.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function rye(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Wx(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=Ie());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=B3(i);F(o.infoList,function(s){var A=s.model.uid,l=a.get(A)||a.set(A,Jge(t,s.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=Ie());u.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,A=i.dataZoomInfoMap;if(A){var l=A.keys()[0];l!=null&&(s=A.get(l))}if(!s){H3(a,i);return}var u=tye(A,i,t);o.enable(u.controlType,u.opt),au(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var nye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Zge(a,t,{pan:be(tw.pan,this),zoom:be(tw.zoom,this),scrollMove:be(tw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){jge(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ox),tw={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=rw[e](null,[n.originX,n.originY],o,t,r),A=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-A)*l+A,i[1]=(i[1]-A)*l+A;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Mo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:LD(function(r,e,t,n,a,i){var o=rw[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:LD(function(r,e,t,n,a,i){var o=rw[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function LD(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var A=r(o,s,e,t,n,a);if(Mo(A,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var rw={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,A=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=A[1]-A[0],o.pixelStart=A[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const aye=nye;function N3(r){Hx(r),r.registerComponentModel(Yge),r.registerComponentView(aye),rye(r)}var iye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ro(Cf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:le.color.accent10,borderRadius:0,backgroundColor:le.color.transparent,dataBackground:{lineStyle:{color:le.color.accent30,width:.5},areaStyle:{color:le.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:le.color.accent40,width:.5},areaStyle:{color:le.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:le.color.neutral00,borderColor:le.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:le.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:le.color.tertiary},brushSelect:!0,brushStyle:{color:le.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:le.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Cf);const oye=iye;var $u=Xe,sye=1,nw=30,Aye=7,Ku="horizontal",ED="vertical",lye=5,uye=["line","bar","candlestick","scatter"],cye={easing:"cubicOut",duration:100,delay:0},fye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=be(this._onBrush,this),this._onBrushEnd=be(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),au(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()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){sf(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?Aye:0,o=hr(t,n).refContainer,s=this._findCoordRect(),A=t.get("defaultLocationEdgeGap",!0)||0,l=this._orient===Ku?{right:o.width-s.x-s.width,top:o.height-nw-A-i,width:s.width,height:nw}:{right:A,top:s.y,width:nw,height:s.height},u=cA(t.option);F(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Ut(u,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ED&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,A=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Ku&&!o?{scaleY:A?1:-1,scaleX:1}:a===Ku&&o?{scaleY:A?1:-1,scaleX:-1}:a===ED&&!o?{scaleY:A?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:A?-1:1,scaleX:-1,rotation:Math.PI/2});var l=t.getBoundingRect([s]);t.x=n.x-l.x,t.y=n.y-l.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new $u({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new $u({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:be(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),A=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(A==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||A!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(t.thisDim),f=o.getDataExtent(A),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),m=n[0]/(c[1]-c[0]),w=t.thisAxis.type==="time",B=-y,C=Math.round(o.count()/n[0]),b;o.each([t.thisDim,A],function(L,T,M){if(C>0&&M%C){w||(B+=y);return}B=w?(+L-c[0])*m:B+y;var R=T==null||isNaN(T)||T==="",P=R?0:ct(T,f,v,!0);R&&!b&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&b&&(p.push([B,0]),g.push([B,0])),R||(p.push([B,P]),g.push([B,P])),b=R}),l=this._shadowPolygonPts=p,u=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=A,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function x(L){var T=_.getModel(L?"selectedDataBackground":"dataBackground"),M=new Fe,R=new an({shape:{points:l},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Wr({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(R),M.add(P),M}for(var S=0;S<3;S++){var I=x(S===1);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var A=t.getAxisProxy(o,s).getTargetSeriesModels();F(A,function(l){if(!a&&!(n!==!0&&$e(uye,l.get("type"))<0)){var u=i.getComponent(fo(o),s).axis,c=hye(o),f,h=l.coordinateSystem;c!=null&&h.getOtherAxis&&(f=h.getOtherAxis(u).inverse),c=l.getData().mapDimension(c);var v=l.getData().mapDimension(o);a={thisAxis:u,series:l,thisDim:v,otherDim:c,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,A=this.dataZoomModel,l=this.api,u=A.get("borderRadius")||0,c=A.get("brushSelect"),f=n.filler=new $u({silent:c,style:{fill:A.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new $u({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:u},style:{stroke:A.get("dataBackgroundColor")||A.get("borderColor"),lineWidth:sye,fill:le.color.transparent}})),F([0,1],function(m){var w=A.get("handleIcon");!Ap[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var B=ar(w,-1,0,2,2,null,!0);B.attr({cursor:vye(this._orient),draggable:!0,drift:be(this._onDragMove,this,m),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1),z2:5});var C=B.getBoundingRect(),b=A.get("handleSize");this._handleHeight=Be(b,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,B.setStyle(A.getModel("handleStyle").getItemStyle()),B.style.strokeNoScale=!0,B.rectHover=!0,B.ensureState("emphasis").style=A.getModel(["emphasis","handleStyle"]).getItemStyle(),Gs(B);var _=A.get("handleColor");_!=null&&(B.style.fill=_),o.add(a[m]=B);var x=A.getModel("textStyle"),S=A.get("handleLabel")||{},I=S.show||!1;t.add(i[m]=new nt({silent:!0,invisible:!I,style:Ct(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=f;if(c){var v=Be(A.get("moveHandleSize"),s[1]),d=n.moveHandle=new Xe({style:A.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=ar(A.get("moveHandleIcon"),-p/2,-p/2,p,p,le.color.neutral00,!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=A.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Xe({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:be(this._onDragMove,this,"all"),ondragstart:be(this._showDataInfo,this,!0),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(t[0],[0,100],n,!0),ct(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),A=[0,100];Mo(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?ct(s.minSpan,A,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,A,o,!0):null);var l=this._range,u=this._range=Yn([ct(i[0],o,A,!0),ct(i[1],o,A,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Yn(a.slice()),o=this._size;F([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var A=n.dataShadowSegs,l=[0,i[0],i[1],o[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ke(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],A=this._handleEnds=[a.x,a.x+a.width],l=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Mo(0,A,o,0,l.minSpan!=null?ct(l.minSpan,s,o,!0):null,l.maxSpan!=null?ct(l.maxSpan,s,o,!0):null),this._range=Yn([ct(A[0],o,s,!0),ct(A[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ti(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new $u({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,A=this._displayables.sliderGroup,l=A.transformCoordToLocal(t,n),u=A.transformCoordToLocal(s.x,s.y),c=this._size;l[0]=Math.max(Math.min(c[0],l[0]),0),o.setShape({x:u[0],y:0,width:l[0]-u[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?cye:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=B3(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Ox);function hye(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function vye(r){return r==="vertical"?"ns-resize":"ew-resize"}const dye=fye;function V3(r){r.registerComponentModel(oye),r.registerComponentView(dye),Hx(r)}function pye(r){We(N3),We(V3)}var gye={get:function(r,e,t){var n=De((yye[r]||{})[e]);return t&&ge(n)?n[n.length-1]:n}},yye={color:{active:["#006edd","#e0ffff"],inactive:[le.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]}};const G3=gye;var MD=Qr.mapVisual,mye=Qr.eachVisual,wye=ge,DD=F,Bye=Yn,Cye=ct,bye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&M3(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=be(t,this),this.controllerVisuals=GB(this.option.controller,n,t),this.targetVisuals=GB(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,n=this.option.seriesIndex;n==null&&t==null&&(n="all");var a=jl(this.ecModel,"series",{index:n,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return me(a,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,n){F(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,A=i.formatter,l;a=a||["<",">"],ge(t)&&(t=t.slice(),l=!0);var u=n?t:l?[c(t[0]),c(t[1])]:c(t);if(Ce(A))return A.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(Me(A))return l?A(t[0],t[1]):A(t);if(l)return t[0]===s[0]?a[0]+" "+u[1]:t[1]===s[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function c(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=Bye([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ke(i,a),Ke(o,a);var s=this.isCategory();A.call(this,i),A.call(this,o),l.call(this,i,"inRange","outOfRange"),u.call(this,o);function A(c){wye(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function l(c,f,h){var v=c[f],d=c[h];v&&!d&&(d=c[h]={},DD(v,function(p,g){if(Qr.isValidType(g)){var y=G3.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(c){var f=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";DD(this.stateList,function(g){var y=this.itemSize,m=c[g];m||(m=c[g]={color:s?v:[v]}),m.symbol==null&&(m.symbol=f&&De(f)||(s?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&De(h)||(s?y[0]:[y[0],y[0]])),m.symbol=MD(m.symbol,function(C){return C==="none"?p:C});var w=m.symbolSize;if(w!=null){var B=-1/0;mye(w,function(C){C>B&&(B=C)}),m.symbolSize=MD(w,function(C){return Cye(C,[0,B],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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:le.color.transparent,borderColor:le.color.borderTint,contentColor:le.color.theme[0],inactiveColor:le.color.disabled,borderWidth:0,padding:le.size.m,textGap:10,precision:0,textStyle:{color:le.color.secondary}},e}(et);const Vp=bye;var FD=[20,140],xye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=FD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=FD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):ge(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),F(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Yn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,A){t[0]<=s&&s<=t[1]&&i.push(A)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=QD(this,"outOfRange",this.getExtent()),a=QD(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:t(h,v)})}for(var s=0,A=0,l=a.length,u=n.length;At[1])break;i.push({color:this.getControllerVisual(A,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Fe(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,A=i.itemSize,l=i.getExtent(),u=this._applyTransform("left",a.mainGroup);Tye([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=t[c];var h=Ua(t[c],[0,A[1]],l,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/A[0],f.x=A[0]-v/2;var d=ua(a.handleLabelPoints[c],zs(f,this.group));if(this._orient==="horizontal"){var p=u==="left"||u==="top"?(A[0]-v)/2:(A[0]-v)/-2;d[1]+=p}s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),A=o.itemSize,l=[0,A[1]],u=this._shapes,c=u.indicator;if(c){c.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),v=this.getControllerVisual(t,"symbolSize"),d=Ua(t,s,l,!0),p=A[0]-v/2,g={x:c.x,y:c.y};c.y=d,c.x=p;var y=ua(u.indicatorLabelPoint,zs(c,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),B=this._orient,C=B==="horizontal";m.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:C?w:"middle",align:C?"center":w});var b={x:p,y:d,style:{fill:h}},_={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(b,x),m.animateTo(_,x)}else c.attr(b),m.attr(_);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var I=0;Io[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(u,c[1],"< ",A):c[1]===1/0?this._showIndicator(u,c[0],"> ",A):this._showIndicator(u,u,"≈ ",A));var f=this._hoverLinkDataIndices,h=[];(n||RD(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var v=tY(f,h);this._dispatchHighDown("downplay",xd(v[0],a)),this._dispatchHighDown("highlight",xd(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Qs(t.target,function(A){var l=Ve(A);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Pye(r,e,t,n){for(var a=e.targetVisuals[n],i=Qr.prepareVisualTypes(a),o={color:Hf(r.getData(),"color")},s=0,A=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Fye,Qye),F(Uye,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(kye))}function W3(r){r.registerComponentModel(_ye),r.registerComponentView(Dye),K3(r)}var Rye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Oye[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=De(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=me(this._pieceList,function(A){return A=De(A),s!=="inRange"&&(A.visual=null),A}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Qr.listVisualTypes(),i=this.isCategory();F(t.pieces,function(s){F(a,function(A){s.hasOwnProperty(A)&&(n[A]=1)})}),F(n,function(s,A){var l=!1;F(this.stateList,function(u){l=l||o(t,u,A)||o(t.target,u,A)},this),!l&&F(this.stateList,function(u){(t[u]||(t[u]={}))[A]=G3.get(A,u==="inRange"?"active":"inactive",i)})},this);function o(s,A,l){return s&&s[A]&&s[A].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,F(i,function(A,l){var u=this.getSelectedMapKey(A);o.hasOwnProperty(u)||(o[u]=!0)},this),a.selectedMode==="single"){var s=!1;F(i,function(A,l){var u=this.getSelectedMapKey(A);o[u]&&(s?o[u]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=De(t)},e.prototype.getValueState=function(t){var n=Qr.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(A,l){var u=Qr.findPieceIndex(A,a);u===t&&o.push(l)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(u,c){var f=i.getRepresentValue({interval:u});c||(c=i.getValueState(f));var h=t(f,c);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var A=s[0].interval[0];A!==-1/0&&s.unshift({interval:[-1/0,A]}),A=s[s.length-1].interval[1],A!==1/0&&s.push({interval:[A,1/0]})}var l=-1/0;return F(s,function(u){var c=u.interval;c&&(c[0]>l&&o([l,c[0]],"outOfRange"),o(c.slice()),l=c[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Ro(Vp.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}),e}(Vp),Oye={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function VD(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const Hye=Rye;var Nye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,A=this._getViewData(),l=A.endsText,u=Fr(n.get("showLabel",!0),!l),c=!n.get("selectedMode");l&&this._renderEndsText(t,l[0],s,u,o),F(A.viewPieceList,function(f){var h=f.piece,v=new Fe;v.onclick=be(this._onItemClick,this,h),this._enableHoverLink(v,f.indexInModelPieceList);var d=n.getRepresentValue(h);if(this._createItemSymbol(v,d,[0,0,s[0],s[1]],c),u){var p=this.visualMapModel.getValueState(d),g=i.get("align")||o;v.add(new nt({style:Ct(i,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:Le(i.get("opacity"),p==="outOfRange"?.5:1)}),silent:c}))}t.add(v)},this),l&&this._renderEndsText(t,l[1],s,u,o),$s(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:xd(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return $3(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Fe,A=this.visualMapModel.textStyleModel;s.add(new nt({style:Ct(A,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=me(t.getPieceList(),function(s,A){return{piece:s,indexInModelPieceList:A}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=ar(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=De(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,F(o,function(A,l){o[l]=l===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(z3);const Vye=Nye;function X3(r){r.registerComponentModel(Hye),r.registerComponentView(Vye),K3(r)}function Gye(r){We(W3),We(X3)}var zye=function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.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:sO(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r}(),$ye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new zye(this);if(this._target=null,this.ecModel.eachSeries(function(a){fE(a,null)}),this.shouldShow()){var n=this.getTarget();fE(n.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:le.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:le.color.neutral30,borderColor:le.color.neutral40,opacity:.3},z:10},e}(et),Kye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new yA),!this._isEnabled()){this._clear();return}this._renderVersion=a.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||le.color.neutral00);var A=hr(t,a).refContainer,l=Ut(EO(t,!0),A),u=s.lineWidth||0,c=this._contentRect=eA(l.clone(),u/2,!0,!0),f=new Fe;i.add(f),f.setClipPath(new Xe({shape:c.plain()}));var h=this._targetGroup=new Fe;f.add(h);var v=l.plain();v.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Xe({style:s,shape:v,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),p=d.getShallow("borderRadius",!0);f.add(this._windowRect=new Xe({shape:{x:0,y:0,width:0,height:0,r:p},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),zD(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),zD(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,a.setBoundingRect(s.x,s.y,s.width,s.height);var A=Ut({left:"center",top:"center",aspect:s.width/s.height},i);a.setViewRect(A.x,A.y,A.width,A.height),o.attr(a.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=va([],t.targetTrans),a=Ka([],this._coordSys.transform,n);this._transThisToTarget=va([],a);var i=t.viewportRect;i?i=i.clone():i=new Ne(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(Re({r:s},i))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new gA(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,A){return n._contentRect.contain(s,A)}}}),i.off("pan").off("zoom").on("pan",be(this._onPan,this)).on("zoom",be(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Yt([],[t.oldX,t.oldY],n),i=Yt([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(GD(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Yt([],[t.originX,t.originY],n);this._api.dispatchAction(GD(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var n=t.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(Nt);function GD(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,ve(n,e),n}function zD(r,e){var t=tA(r);Qg(e.group,t.z,t.zlevel)}function Wye(r){r.registerComponentModel($ye),r.registerComponentView(Kye)}var Xye={label:{enabled:!0},decal:{show:!1}},$D=Ye(),Yye={};function Zye(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=De(Xye);Ke(n.label,r.getLocaleModel().get("aria"),!1),Ke(t.option,n,!1),a(),i();function a(){var l=t.getModel("decal"),u=l.get("show");if(u){var c=Ie();r.eachSeries(function(f){if(!f.isColorBySeries()){var h=c.get(f.type);h||(h={},c.set(f.type,h)),$D(f).scope=h}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(Me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var y=R1(f.ecModel,f.name,Yye,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=f.getRawData(),d={},p=$D(f).scope;h.each(function(B){var C=h.getRawIndex(B);d[C]=B});var g=v.count();v.each(function(B){var C=d[B],b=v.getName(B)||B+"",_=R1(f.ecModel,b,p,g),x=h.getItemVisual(C,"decal");h.setItemVisual(C,"decal",w(x,_))})}function w(B,C){var b=B?ve(ve({},C),B):C;return b.dirty=!0,b}})}}function i(){var l=e.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=Re(c.option,u),!!c.get("enabled")){if(l.setAttribute("role","img"),c.get("description")){l.setAttribute("aria-label",c.get("description"));return}var f=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,d=Math.min(f,v),p;if(!(f<1)){var g=s();if(g){var y=c.get(["general","withTitle"]);p=o(y,{title:g})}else p=c.get(["general","withoutTitle"]);var m=[],w=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(w,{seriesCount:f}),r.eachSeries(function(_,x){if(x1?c.get(["series","multiple",L]):c.get(["series","single",L]),S=o(S,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:A(_.subType)});var T=_.getData();if(T.count()>h){var M=c.get(["data","partialData"]);S+=o(M,{displayCnt:h})}else S+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),E=c.get(["data","excludeDimensionId"]),k=[],D=0;D":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qye=function(){function r(e){var t=this._condVal=Ce(e)?new RegExp(e):n7(e)?e:null;if(t==null){var n="";At(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return Ce(t)?this._condVal.test(e):qe(t)?this._condVal.test(e+""):!1},r}(),eme=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),tme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&n.push(a),a=[T,M]}function u(T,M,R,P){pl(T,R)&&pl(M,P)||a.push(T,M,R,P,R,P)}function c(T,M,R,P,E,k){var D=Math.abs(M-T),U=Math.tan(D/4)*4/3,O=M_:I<_;I+=S){var L=x?Math.max(I+S,_):Math.min(I+S,_);c(I,L,m,w,B,C)}break;case Fa.R:s=i=e[p++],A=o=e[p++],f=s+e[p++],h=A+e[p++],l(f,A),u(f,A,f,h),u(f,h,s,h),u(s,h,s,A),u(s,A,f,A);break;case Fa.Z:a&&u(i,o,s,A),i=s,o=A;break}}return a&&a.length>2&&n.push(a),n}function jB(r,e,t,n,a,i,o,s,A,l){if(pl(r,t)&&pl(e,n)&&pl(a,o)&&pl(i,s)){A.push(o,s);return}var u=2/l,c=u*u,f=o-r,h=s-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var d=t-r,p=n-e,g=a-o,y=i-s,m=d*d+p*p,w=g*g+y*y;if(m=0&&_=0){A.push(o,s);return}var x=[],S=[];So(r,t,a,o,.5,x),So(e,n,i,s,.5,S),jB(x[0],S[0],x[1],S[1],x[2],S[2],x[3],S[3],A,l),jB(x[4],S[4],x[5],S[5],x[6],S[6],x[7],S[7],A,l)}function dme(r,e){var t=ZB(r),n=[];e=e||1;for(var a=0;a0)for(var l=0;lMath.abs(l),c=Z3([A,l],u?0:1,e),f=(u?s:l)/c.length,h=0;ha,o=Z3([n,a],i?0:1,e),s=i?"width":"height",A=i?"height":"width",l=i?"x":"y",u=i?"y":"x",c=r[s]/o.length,f=0;f1?null:new ke(d*A+r,d*l+e)}function yme(r,e,t){var n=new ke;ke.sub(n,t,e),n.normalize();var a=new ke;ke.sub(a,r,e);var i=a.dot(n);return i}function qA(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function mme(r,e,t){for(var n=r.length,a=[],i=0;io?(l.x=u.x=s+i/2,l.y=A,u.y=A+o):(l.y=u.y=A+o/2,l.x=s,u.x=s+i),mme(e,l,u)}function Gp(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);Gp(r,i[0],a,n),Gp(r,i[1],t-a,n)}return n}function wme(r,e){for(var t=[],n=0;n0)for(var B=n/t,C=-n/2;C<=n/2;C+=B){for(var b=Math.sin(C),_=Math.cos(C),x=0,m=0;m0;l/=2){var u=0,c=0;(r&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),c===0&&(u===1&&(r=l-1-r,e=l-1-e),A=r,r=e,e=A)}return s}function Kp(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=me(r,function(s){var A=s.getBoundingRect(),l=s.getComputedTransform(),u=A.x+A.width/2+(l?l[4]:0),c=A.y+A.height/2+(l?l[5]:0);return e=Math.min(u,e),t=Math.min(c,t),n=Math.max(u,n),a=Math.max(c,a),[u,c]}),o=me(i,function(s,A){return{cp:s,z:Lme(s[0],s[1],e,t,n,a),path:r[A]}});return o.sort(function(s,A){return s.z-A.z}).map(function(s){return s.path})}function q3(r){return bme(r.path,r.count)}function JB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Eme(r,e,t){var n=[];function a(B){for(var C=0;C=0;a--)if(!t[a].many.length){var A=t[s].many;if(A.length<=1)if(s)s=0;else return t;var i=A.length,l=Math.ceil(i/2);t[a].many=A.slice(l,i),t[s].many=A.slice(0,l),s++}return t}var Dme={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),A=Object.assign({setToFinal:!0},o),l,u;eF(r)&&(l=r,u=e),eF(e)&&(l=e,u=r);function c(g,y,m,w,B){var C=g.many,b=g.one;if(C.length===1&&!B){var _=y?C[0]:b,x=y?b:C[0];if(zp(_))c({many:[_],one:x},!0,m,w,!0);else{var S=s?Re({delay:s(m,w)},A):A;Yx(_,x,S),i(_,x,_,x,S)}}else for(var I=Re({dividePath:Dme[t],individualDelay:s&&function(E,k,D,U){return s(E+m,w)}},A),L=y?Eme(C,b,I):Mme(b,C,I),T=L.fromIndividuals,M=L.toIndividuals,R=T.length,P=0;Pe.length,h=l?tF(u,l):tF(f?e:r,[f?r:e]),v=0,d=0;deV))for(var i=n.getIndices(),o=0;o0&&C.group.traverse(function(_){_ instanceof Ze&&!_.animators.length&&_.animateFrom({style:{opacity:0}},b)})})}function oF(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function sF(r){return ge(r)?r.sort().join(","):r}function eo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ome(r,e){var t=Ie(),n=Ie(),a=Ie();return F(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],A=r.oldData[o],l=oF(i),u=sF(l);n.set(u,{dataGroupId:s,data:A}),ge(l)&&F(l,function(c){a.set(c,{key:u,dataGroupId:s,data:A})})}),F(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),A=oF(i),l=sF(A),u=n.get(l);if(u)t.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:eo(u.data),data:u.data}],newSeries:[{dataGroupId:o,divide:eo(s),data:s}]});else if(ge(A)){var c=[];F(A,function(v){var d=n.get(v);d.data&&c.push({dataGroupId:d.dataGroupId,divide:eo(d.data),data:d.data})}),c.length&&t.set(l,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:eo(s)}]})}else{var f=a.get(A);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:eo(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:eo(s)})}}}}),t}function AF(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:eo(e.oldData[s]),groupIdDim:o.dimension})}),F(gt(r.to),function(o){var s=AF(t.updatedSeries,o);if(s>=0){var A=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:A,divide:eo(A),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&tV(a,i,n)}function Nme(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){F(gt(n.seriesTransition),function(a){F(gt(a.to),function(i){for(var o=n.updatedSeries,s=0;so.vmin?t+=o.vmin-n+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-n,n=o.vmax,a=!1;break}t+=o.vmin-n+o.gapReal,n=o.vmax}return a&&(t+=e-n),t},r.prototype.unelapse=function(e){for(var t=lF,n=uF,a=!0,i=0,o=0;oA?i=s.vmin+(e-A)/(l-A)*(s.vmax-s.vmin):i=n+e-t,n=s.vmax,a=!1;break}t=l,n=s.vmax}return a&&(i=n+e-t),i},r}();function Gme(){return new Vme}var lF=0,uF=0;function zme(r,e){var t=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};F(r.breaks,function(s){var A=s.gapParsed;A.type==="tpPrct"&&(t+=A.val);var l=Zx(s,e);if(l){var u=l.vmin!==s.vmin,c=l.vmax!==s.vmax,f=l.vmax-l.vmin;if(!(u&&c))if(u||c){var h=u?"S":"E";i[h][A.type].has=!0,i[h][A.type].span=f,i[h][A.type].inExtFrac=f/(s.vmax-s.vmin),i[h][A.type].val=A.val}else n[A.type].span+=f,n[A.type].val+=A.val}});var o=t*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));F(r.breaks,function(s){var A=s.gapParsed;A.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*A.val/t:0),A.type==="tpAbs"&&(s.gapReal=A.val),s.gapReal==null&&(s.gapReal=0)})}function $me(r,e,t,n,a,i){r!=="no"&&F(t,function(o){var s=Zx(o,i);if(s)for(var A=e.length-1;A>=0;A--){var l=e[A],u=n(l),c=a*3/4;u>s.vmin-c&&ue[0]&&t=0&&o<1-1e-5}F(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:De(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var A=!1;if(Ce(o.gap)){var l=Xn(o.gap);if(l.match(/%$/)){var u=parseFloat(l)/100;a(u)||(u=0),s.gapParsed.type="tpPrct",s.gapParsed.val=u,A=!0}}if(!A){var c=e(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&F(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var f=s.vmax;s.vmax=s.vmin,s.vmin=f}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return F(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:n.filter(function(o){return!!o})}}function jx(r,e){return eC(e)===eC(r)}function eC(r){return r.start+"_\0_"+r.end}function Wme(r,e,t){var n=[];F(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),F(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var A=iA(n,function(l){return jx(e(r[l[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});A&&A.push(o)}});var a=[];return F(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function Xme(r,e,t,n){var a,i;if(r.break){var o=r.break.parsedBreak,s=iA(t,function(c){return jx(c.breakOption,r.break.parsedBreak.breakOption)}),A=n(Math.pow(e,o.vmin),s.vmin),l=n(Math.pow(e,o.vmax),s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?er(Math.pow(e,o.vmin+o.gapParsed.val))-A:o.gapParsed.val};a={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:A,vmax:l,gapParsed:u,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:a}}function Yme(r,e,t){var n={noNegative:!0},a=qB(r,t,n),i=qB(r,t,n),o=Math.log(e);return i.breaks=me(i.breaks,function(s){var A=Math.log(s.vmin)/o,l=Math.log(s.vmax)/o,u={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-A:s.gapParsed.val};return{vmin:A,vmax:l,gapParsed:u,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:a,parsedLogged:i}}var Zme={vmin:"start",vmax:"end"};function jme(r,e){return e&&(r=r||{},r.break={type:Zme[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function Jme(){Bj({createScaleBreakContext:Gme,pruneTicksByBreak:$me,addBreaksToTicks:Kme,parseAxisBreakOption:qB,identifyAxisBreak:jx,serializeAxisBreakIdentifier:eC,retrieveAxisBreakPairs:Wme,getTicksLogTransformBreak:Xme,logarithmicParseBreaksFromOption:Yme,makeAxisLabelFormatterParamBreak:jme})}var cF=Ye();function qme(r,e){var t=iA(r,function(n){return tr().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function e0e(r){F(r,function(e){return e.shouldRemove=!0})}function t0e(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function r0e(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!tr())return;var o=tr().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(x){return x.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),A=s.get("zigzagAmplitude"),l=s.get("zigzagMinSpan"),u=s.get("zigzagMaxSpan");l=Math.max(2,l||0),u=Math.max(l,u||0);var c=s.get("expandOnClick"),f=s.get("zigzagZ"),h=s.getModel("itemStyle"),v=h.getItemStyle(),d=v.stroke,p=v.lineWidth,g=v.lineDash,y=v.fill,m=new Fe({ignoreModelZ:!0}),w=i.isHorizontal(),B=cF(e).visualList||(cF(e).visualList=[]);e0e(B);for(var C=function(x){var S=o[x][0].break.parsedBreak,I=[];I[0]=i.toGlobalCoord(i.dataToCoord(S.vmin,!0)),I[1]=i.toGlobalCoord(i.dataToCoord(S.vmax,!0)),I[1]=k;ye&&(X=k);var re=[],W=[];re[P]=I,W[P]=L,!ne&&!ye&&(re[P]+=G?-A:A,W[P]-=G?A:-A),re[E]=X,W[E]=X,U.push(re),O.push(W);var ee=void 0;if(tey[1]&&y.reverse(),{coordPair:y,brkId:tr().serializeAxisBreakIdentifier(g.breakOption)}});A.sort(function(p,g){return p.coordPair[0]-g.coordPair[0]});for(var l=o[0],u=null,c=0;c=0?A[0].width:A[1].width),f=(c+u.x)/2-l.x,h=Math.min(f,f-u.x),v=Math.max(f,f-u.x),d=v<0?v:h>0?h:0;s=(f-d)/u.x}var p=new ke,g=new ke;ke.scale(p,n,-s),ke.scale(g,n,1-s),nB(t[0],p),nB(t[1],g)}function i0e(r,e){var t={breaks:[]};return F(e.breaks,function(n){if(n){var a=iA(r.get("breaks",!0),function(s){return tr().identifyAxisBreak(s,n)});if(a){var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===Kg?!0:i===yN?!1:i===mN?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function o0e(){vae({adjustBreakLabelPair:a0e,buildAxisBreakLine:n0e,rectCoordBuildBreakAxis:r0e,updateModelAxisBreak:i0e})}function s0e(r){Cae(r),Jme(),o0e()}function A0e(){Gae(l0e)}function l0e(r,e){F(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=u0e(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function u0e(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof ff?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=ou(r),A,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;u{n=[];for(var s=0;st.length-1&&(A=t.length-1);var l={name:e.names[s],type:"line",symbol:"none",color:t[A]+")",smooth:!0,areaStyle:{normal:{color:new AA(0,0,0,1,[{offset:0,color:t[A]+", 0.3)"},{offset:.8,color:t[A]+", 0)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},data:e.value[s]};n.push(l)}},i=()=>({tooltip:{trigger:"axis"},grid:{top:"0%",width:"90%",height:"80%"},xAxis:{type:"category",data:e.lineX,nameTextStyle:{color:"#fff"},axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:14}}},yAxis:{name:e.unit,type:"value",nameTextStyle:{padding:[0,0,0,30]},axisLabel:{formatter:"{value}",textStyle:{color:"rgb(0,253,255,0.6)"}},splitLine:{lineStyle:{color:"rgb(23,255,243,0.3)"}},axisLine:{lineStyle:{color:"rgb(0,253,255,0.6)"}}},series:n});St(()=>{o(),setInterval(()=>{o()},1e4)});function o(){fa.get("/orderStats/month").then(s=>{s.pop(),e.lineX=s.map(l=>l.month),e.value[0]=s.map(l=>l.amount),e.value[1]=s.map(l=>l.count),a();var A=zH(document.getElementById("chart-line"));A.setOption(i())})}return(s,A)=>(he(),de("div",c0e))}}),h0e={data(){return{}},props:{title:{type:String,default:()=>""}},created(){},mounted(){},methods:{}};const v0e={key:0,class:"item_title"},d0e={class:"title-inner"};function p0e(r,e,t,n,a,i){const o=ho("dv-border-box-13");return he(),Sd(o,{class:"lr_titles"},{default:Mr(()=>[t.title!==""?(he(),de("div",v0e,[e[0]||(e[0]=ae("div",{class:"zuo"},null,-1)),ae("span",d0e,"   "+Dt(t.title)+"   ",1),e[1]||(e[1]=ae("div",{class:"you"},null,-1))])):pt("",!0),ae("div",{class:nC(t.title!==""?"item_title_content":"item_title_content_def")},[Ft(r.$slots,"default",{},void 0,!0)],2)]),_:3})}const Wp=Wl(h0e,[["render",p0e],["__scopeId","data-v-6288be16"]]),g0e={class:"left"},y0e={style:{height:"100%"}},m0e={style:{height:"22%"}},w0e={class:"left_dzinfo"},B0e={class:"left_dzinfo_view"},C0e={class:"left_dzinfo_view"},b0e={class:"left_dzinfo_view"},x0e={class:"left_dzinfo_view"},_0e={class:"left_dzinfo_view"},S0e={class:"left_dzinfo_view"},T0e={style:{width:"100%","margin-top":"20px",height:"28%"}},I0e={style:{width:"100%","margin-top":"20px",height:"28%"}},L0e=vt({__name:"left",setup(r){let e=Ee({});St(()=>{t(),setInterval(()=>{t()},15e3)});function t(){fa("/orderStats/total").then(n=>{e.value={...e.value,...n}}),fa("/deviceStats/total").then(n=>{e.value={...e.value,...n}})}return(n,a)=>{const i=ho("dv-digital-flop"),o=ho("dv-border-box8"),s=ho("dv-border-box10");return he(),de("div",g0e,[ae("div",y0e,[a[6]||(a[6]=ae("div",{style:{height:"8%"}},null,-1)),ae("div",m0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[ae("div",w0e,[ae("div",B0e,[se(i,{config:{number:[0+(Q(e).deviceTotal||0)],animationFrame:200}},null,8,["config"]),a[0]||(a[0]=ae("div",null,"总电桩数",-1))]),ae("div",C0e,[se(i,{config:{number:[0+(Q(e).gunTotal||0)],animationFrame:200}},null,8,["config"]),a[1]||(a[1]=ae("div",null,"总端口数",-1))]),ae("div",b0e,[se(i,{config:{number:[0+(Q(e).alertTotal||0)],animationFrame:200,style:{fill:"#ff4d4f"}}},null,8,["config"]),a[2]||(a[2]=ae("div",null,"总报警数",-1))]),ae("div",x0e,[se(i,{config:{number:[0+(Q(e).onlineDeviceTotal||0)],animationFrame:200}},null,8,["config"]),a[3]||(a[3]=ae("div",null,"在线电桩数",-1))]),ae("div",_0e,[se(i,{config:{number:[0+(Q(e).onlineGunTotal||0)],animationFrame:200}},null,8,["config"]),a[4]||(a[4]=ae("div",null,"在线端口数",-1))]),ae("div",S0e,[se(i,{config:{number:[0+(Q(e).useTotal||0)],animationFrame:200}},null,8,["config"]),a[5]||(a[5]=ae("div",null,"使用中",-1))])])]),_:1})]),_:1})]),ae("div",T0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",style:{"padding-top":"15px"},title:"订单数据趋势"},{default:Mr(()=>[se(f0e)]),_:1})]),_:1})]),_:1})]),ae("div",I0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",style:{"padding-top":"15px"},title:"实时消费记录"},{default:Mr(()=>[se(NX)]),_:1})]),_:1})]),_:1})])])])}}});const E0e=Wl(L0e,[["__scopeId","data-v-570ebe1d"]]),M0e={data(){return{gatewayno:"",config:{showValue:!0,data:[],labelNum:0,unit:"元"}}},created(){this.getData(),setInterval(()=>{this.getData()},1e4)},mounted(){},methods:{getData(){fa.get("/station/list").then(r=>{r.sort((t,n)=>n.amount-t.amount);var e=[];r.map((t,n)=>{e.push({value:t.amount,name:t.name})}),this.config.data=e})}}};const D0e={class:"right_bottom"};function F0e(r,e,t,n,a,i){const o=ho("dv-scroll-ranking-board");return he(),de("div",D0e,[se(o,{config:a.config,style:{width:"100%",height:"100%"}},null,8,["config"])])}const Q0e=Wl(M0e,[["render",F0e],["__scopeId","data-v-fcfd5141"]]),U0e={id:"chart-circleChat",style:{width:"100%",height:"225px"}},P0e=vt({__name:"rightBottom",setup(r){var e=(n,a)=>({color:["#EAEA26","#906BF9","#FE5656","#01E17E","#3DD1F9","#FFAD05"],grid:{left:-100,top:50,bottom:10,right:10,containLabel:!0},tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{type:"scroll",orient:"vartical",top:"center",right:"15",itemWidth:16,itemHeight:8,itemGap:16,textStyle:{color:"#A3E2F4",fontSize:12,fontWeight:0},data:n},polar:{},angleAxis:{interval:1,type:"category",data:[],z:10,axisLine:{show:!1,lineStyle:{color:"#0B4A6B",width:1,type:"solid"}},axisLabel:{interval:0,show:!0,color:"#0B4A6B",margin:8,fontSize:16}},radiusAxis:{min:40,max:120,interval:20,axisLine:{show:!1,lineStyle:{color:"#0B3E5E",width:1,type:"solid"}},axisLabel:{formatter:"{value} %",show:!1,padding:[0,0,20,0],color:"#0B3E5E",fontSize:16},splitLine:{lineStyle:{color:"#0B3E5E",width:2,type:"solid"}}},calculable:!0,series:[{type:"pie",radius:["5%","10%"],hoverAnimation:!1,labelLine:{normal:{show:!1,length:30,length2:55},emphasis:{show:!1}},data:[{name:"",value:0,itemStyle:{normal:{color:"#0B4A6B"}}}]},{type:"pie",radius:["90%","95%"],hoverAnimation:!1,labelLine:{normal:{show:!1,length:30,length2:55},emphasis:{show:!1}},name:"",data:[{name:"",value:0,itemStyle:{normal:{color:"#0B4A6B"}}}]},{stack:"a",type:"pie",radius:["20%","80%"],roseType:"area",zlevel:10,label:{normal:{show:!0,formatter:"{c}",textStyle:{fontSize:12},position:"outside"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,length2:55},emphasis:{show:!1}},data:a}]});St(()=>{t(),setInterval(()=>{t()},1e4)});function t(){fa.get("/cityStats/rechargeRatio").then(n=>{var a=n.map(s=>s.cityName),i=n.map(s=>({name:s.cityName,value:s.amountRatio})),o=zH(document.getElementById("chart-circleChat"));o.setOption(e(a,i))})}return(n,a)=>(he(),de("div",U0e))}}),k0e={class:"center_note"},R0e={style:{width:"100%","margin-top":"20px",height:"30%"}},O0e={style:{width:"100%","margin-top":"20px",height:"38%"}},H0e=vt({__name:"right",setup(r){const e=Ee(2026);return Ee({yearAmount:[],yearCount:[]}),St(()=>{e.value=new Date().getFullYear(),setInterval(()=>{e.value=new Date().getFullYear()},1e4)}),(t,n)=>{const a=ho("dv-border-box8"),i=ho("dv-border-box10");return he(),de("div",k0e,[n[0]||(n[0]=ae("div",{style:{height:"18%"}},null,-1)),ae("div",R0e,[se(i,null,{default:Mr(()=>[se(a,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",title:"充值市场比例",style:{"padding-top":"15px"}},{default:Mr(()=>[se(P0e)]),_:1})]),_:1})]),_:1})]),ae("div",O0e,[se(i,null,{default:Mr(()=>[se(a,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",title:"充电站收入排行",style:{"padding-top":"15px"}},{default:Mr(()=>[se(Q0e)]),_:1})]),_:1})]),_:1})])])}}});const N0e=Wl(H0e,[["__scopeId","data-v-cb176171"]]),V0e={class:"center_note"},G0e={class:"center_note_count"},z0e={class:"center_note_count_view",style:{}},$0e={class:"center_note_count_view_top"},K0e={class:"center_note_count_view_bottom center_note_count_view_bgc"},W0e={class:"center_note_count_view"},X0e={class:"center_note_count_view_top"},Y0e={class:"center_note_count_view_bottom"},Z0e=vt({__name:"center",setup(r){const e=Ee(2026);let t=Ee({yearAmount:[],yearCount:[]});St(()=>{n(),e.value=new Date().getFullYear(),setInterval(()=>{n(),e.value=new Date().getFullYear()},1e4)});function n(){fa("/orderStats/total").then(a=>{a.yearAmount=String(a.yearAmount).split(""),a.yearCount=String(a.yearCount).split(""),t.value={...t.value,...a}}),fa("/deviceStats/total").then(a=>{t.value={...t.value,...a}})}return(a,i)=>(he(),de("div",V0e,[ae("div",G0e,[ae("div",z0e,[ae("div",$0e,[(he(!0),de(lt,null,dt(8-Q(t).yearCount.length>0?8-Q(t).yearCount.length:0,o=>(he(),de("div",{key:o},"0"))),128)),(he(!0),de(lt,null,dt(Q(t).yearCount,(o,s)=>(he(),de("div",{key:s},Dt(o),1))),128))]),ae("div",K0e,Dt(e.value)+"年即途充电站消费订单数 ",1)]),ae("div",W0e,[ae("div",X0e,[(he(!0),de(lt,null,dt(10-Q(t).yearAmount.length>0?12-Q(t).yearAmount.length:0,o=>(he(),de("div",{key:o},"0 "))),128)),(he(!0),de(lt,null,dt(Q(t).yearAmount,(o,s)=>(he(),de("div",{key:s},Dt(o),1))),128))]),ae("div",Y0e,Dt(e.value)+"年即途充电站消费总金额 ",1)])])]))}});const j0e=Wl(Z0e,[["__scopeId","data-v-2ac0ead4"]]),J0e={id:"app"},q0e={style:{position:"fixed",top:"0",left:"0",width:"100%"}},ewe={key:0},twe=vt({__name:"App",setup(r){const e=Ee(null);let t=null;const n=Ee(new Date().toLocaleTimeString()),a=Ee({});function i(s,A=10){if(A>=s.length)return[...s];const l=[],u=new Set;for(;l.length{if(o().then(async s=>{const A=await vk({url:`https://devapi.qweather.com/v7/weather/now?location=${s.longitude},${s.latitude}&key=fd9afe7f4325414c809baef7e86b907c`,method:"GET"});a.value=A.data.now}),e.value){const s=await fa.get("/cityStats/list");t=new NW({dom:e.value,data:i(s)}),setInterval(async()=>{try{t==null||t.updateEarthData(i(s))}catch(A){console.error("Failed to update earth data:",A)}},1e4)}setInterval(()=>{n.value=new Date().toLocaleTimeString()},1e3)});function o(){return new Promise((s,A)=>{if(!navigator.geolocation){A(new Error("浏览器不支持地理定位"));return}navigator.geolocation.getCurrentPosition(l=>{s({latitude:l.coords.latitude,longitude:l.coords.longitude,accuracy:l.coords.accuracy})},l=>{let u="获取位置失败";switch(l.code){case l.PERMISSION_DENIED:u="用户拒绝授权";break;case l.POSITION_UNAVAILABLE:u="位置不可用";break;case l.TIMEOUT:u="请求超时";break}A(new Error(u))},{enableHighAccuracy:!0,timeout:1e4,maximumAge:6e4})})}return Qo(()=>{t&&(t.destroy(),t=null)}),jp.init({dh:1080,dw:1920,el:"body",resize:!0}),(s,A)=>(he(),de("div",J0e,[ae("div",q0e,[A[0]||(A[0]=ae("img",{src:OV,style:{width:"100%",height:"55px"}},null,-1)),A[1]||(A[1]=ae("img",{src:HV,style:{width:"500px",height:"100px",position:"absolute",left:"400px",animation:"light-go-503410de 3s ease-in-out infinite forwards"}},null,-1)),(he(),de("div",{style:{position:"absolute",right:"30px",top:"5px",color:"#3060F7","font-size":"20px",display:"flex","align-items":"center"},key:n.value},[a.value.text?(he(),de("span",ewe,[ae("i",{class:nC(`qi-${a.value.icon}`)},null,2),uw("   丨   "+Dt(a.value.text)+"   丨   "+Dt(a.value.windDir)+"   丨   "+Dt(a.value.temp)+"°c   丨  ",1)])):pt("",!0),uw(" "+Dt(n.value)+"   ",1)])),A[2]||(A[2]=ae("img",{src:NV,style:{position:"absolute",left:"5%",top:"5px"},alt:""},null,-1))]),se(E0e,{style:{position:"fixed",top:"3%",left:"30px"}}),se(j0e),se(N0e,{style:{position:"fixed",top:"3%",right:"30px"}}),A[4]||(A[4]=ae("div",{style:{position:"fixed",top:"25%",right:"26%"}},[ae("img",{src:VV,style:{width:"100%",height:"10px",position:"absolute",left:"-3%",animation:"light-go-5034104 3s ease-in-out infinite forwards"}}),ae("img",{style:{width:"80%"},src:GV,alt:""})],-1)),ae("div",null,[A[3]||(A[3]=ae("div",{id:"html2canvas",style:{position:"absolute",left:"-9999px",top:"-9999px"}},null,-1)),ae("div",{ref_key:"earthContainer",ref:e,id:"earth-container",style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},null,512)])]))}});var rV=(r=>(r.transparent="rgba(0,0,0,0)",r.black="#000000",r.silver="#C0C0C0",r.gray="#808080",r.white="#FFFFFF",r.maroon="#800000",r.red="#FF0000",r.purple="#800080",r.fuchsia="#FF00FF",r.green="#008000",r.lime="#00FF00",r.olive="#808000",r.yellow="#FFFF00",r.navy="#000080",r.blue="#0000FF",r.teal="#008080",r.aqua="#00FFFF",r.aliceblue="#f0f8ff",r.antiquewhite="#faebd7",r.aquamarine="#7fffd4",r.azure="#f0ffff",r.beige="#f5f5dc",r.bisque="#ffe4c4",r.blanchedalmond="#ffebcd",r.blueviolet="#8a2be2",r.brown="#a52a2a",r.burlywood="#deb887",r.cadetblue="#5f9ea0",r.chartreuse="#7fff00",r.chocolate="#d2691e",r.coral="#ff7f50",r.cornflowerblue="#6495ed",r.cornsilk="#fff8dc",r.crimson="#dc143c",r.cyan="#00ffff",r.darkblue="#00008b",r.darkcyan="#008b8b",r.darkgoldenrod="#b8860b",r.darkgray="#a9a9a9",r.darkgreen="#006400",r.darkgrey="#a9a9a9",r.darkkhaki="#bdb76b",r.darkmagenta="#8b008b",r.darkolivegreen="#556b2f",r.darkorange="#ff8c00",r.darkorchid="#9932cc",r.darkred="#8b0000",r.darksalmon="#e9967a",r.darkseagreen="#8fbc8f",r.darkslateblue="#483d8b",r.darkslategray="#2f4f4f",r.darkslategrey="#2f4f4f",r.darkturquoise="#00ced1",r.darkviolet="#9400d3",r.deeppink="#ff1493",r.deepskyblue="#00bfff",r.dimgray="#696969",r.dimgrey="#696969",r.dodgerblue="#1e90ff",r.firebrick="#b22222",r.floralwhite="#fffaf0",r.forestgreen="#228b22",r.gainsboro="#dcdcdc",r.ghostwhite="#f8f8ff",r.gold="#ffd700",r.goldenrod="#daa520",r.greenyellow="#adff2f",r.grey="#808080",r.honeydew="#f0fff0",r.hotpink="#ff69b4",r.indianred="#cd5c5c",r.indigo="#4b0082",r.ivory="#fffff0",r.khaki="#f0e68c",r.lavender="#e6e6fa",r.lavenderblush="#fff0f5",r.lawngreen="#7cfc00",r.lemonchiffon="#fffacd",r.lightblue="#add8e6",r.lightcoral="#f08080",r.lightcyan="#e0ffff",r.lightgoldenrodyellow="#fafad2",r.lightgray="#d3d3d3",r.lightgreen="#90ee90",r.lightgrey="#d3d3d3",r.lightpink="#ffb6c1",r.lightsalmon="#ffa07a",r.lightseagreen="#20b2aa",r.lightskyblue="#87cefa",r.lightslategray="#778899",r.lightslategrey="#778899",r.lightsteelblue="#b0c4de",r.lightyellow="#ffffe0",r.limegreen="#32cd32",r.linen="#faf0e6",r.magenta="#ff00ff",r.mediumaquamarine="#66cdaa",r.mediumblue="#0000cd",r.mediumorchid="#ba55d3",r.mediumpurple="#9370db",r.mediumseagreen="#3cb371",r.mediumslateblue="#7b68ee",r.mediumspringgreen="#00fa9a",r.mediumturquoise="#48d1cc",r.mediumvioletred="#c71585",r.midnightblue="#191970",r.mintcream="#f5fffa",r.mistyrose="#ffe4e1",r.moccasin="#ffe4b5",r.navajowhite="#ffdead",r.oldlace="#fdf5e6",r.olivedrab="#6b8e23",r.orange="#ffa500",r.orangered="#ff4500",r.orchid="#da70d6",r.palegoldenrod="#eee8aa",r.palegreen="#98fb98",r.paleturquoise="#afeeee",r.palevioletred="#db7093",r.papayawhip="#ffefd5",r.peachpuff="#ffdab9",r.peru="#cd853f",r.pink="#ffc0cb",r.plum="#dda0dd",r.powderblue="#b0e0e6",r.rosybrown="#bc8f8f",r.royalblue="#4169e1",r.saddlebrown="#8b4513",r.salmon="#fa8072",r.sandybrown="#f4a460",r.seagreen="#2e8b57",r.seashell="#fff5ee",r.sienna="#a0522d",r.skyblue="#87ceeb",r.slateblue="#6a5acd",r.slategray="#708090",r.snow="#fffafa",r.springgreen="#00ff7f",r.steelblue="#4682b4",r.tan="#d2b48c",r.thistle="#d8bfd8",r.tomato="#ff6347",r.turquoise="#40e0d0",r.violet="#ee82ee",r.wheat="#f5deb3",r.whitesmoke="#f5f5f5",r.yellowgreen="#9acd32",r))(rV||{});function ty(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(r))}function rwe(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^(rgb\(|RGB\()/.test(r))}function nV(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^(rgba|RGBA)/.test(r))}function aV(r){return/^(rgb|rgba|RGB|RGBA)/.test(r)}function nwe(r){return rV[r]}function iV(r){if(ty(r)||aV(r))return r;const e=nwe(r);if(!e)throw new Error(`Color: Invalid Input of ${r}`);return e}function awe(r){r=r.replace("#",""),r.length===3&&(r=Array.from(r).map(t=>t+t).join(""));const e=r.split("");return new Array(3).fill(0).map((t,n)=>parseInt(`0x${e[n*2]}${e[n*2+1]}`))}function iwe(r){return r.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(e=>parseInt(e))}function Yf(r){const e=iV(r).toLowerCase();return ty(e)?awe(e):iwe(e)}function oV(r){const e=iV(r);return nV(e)?Number(e.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function Jx(r){const e=Yf(r);return e&&[...e,oV(r)]}function owe(r,e){const t=Yf(r);return typeof e=="number"?`rgba(${t.join(",")},${e})`:`rgb(${t.join(",")})`}function swe(r){if(ty(r))return r;const e=Yf(r),t=n=>Number(n).toString(16).padStart(2,"0");return`#${e.map(t).join("")}`}function ry(r){if(!Array.isArray(r))throw new Error(`getColorFromRgbValue: ${r} is not an array`);const{length:e}=r;if(e!==3&&e!==4)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(e===3?"rgb(":"rgba(")+r.join(",")+")"}function Awe(r,e=0){let t=Jx(r);return t=t.map((n,a)=>a===3?n:n-Math.ceil(2.55*e)).map(n=>n<0?0:n),ry(t)}function tC(r,e=0){let t=Jx(r);return t=t.map((n,a)=>a===3?n:n+Math.ceil(2.55*e)).map(n=>n>255?255:n),ry(t)}function br(r,e=100){const t=Yf(r);return ry([...t,e/100])}const lwe=Object.freeze(Object.defineProperty({__proto__:null,darken:Awe,fade:br,getColorFromRgbValue:ry,getOpacity:oV,getRgbValue:Yf,getRgbaValue:Jx,isHex:ty,isRgb:rwe,isRgbOrRgba:aV,isRgba:nV,lighten:tC,toHex:swe,toRgb:owe},Symbol.toStringTag,{value:"Module"})),Oo=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},uwe={},cwe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function fwe(r,e){return he(),de("svg",cwe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,0 L0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19",class:"dv-button-svg-line"})],-1)]))}const hwe=Oo(uwe,[["render",fwe]]),vwe={},dwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function pwe(r,e){return he(),de("svg",dwe,e[0]||(e[0]=[Zp('',1)]))}const gwe=Oo(vwe,[["render",pwe]]),ywe={},mwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function wwe(r,e){return he(),de("svg",mwe,e[0]||(e[0]=[Zp('',1)]))}const Bwe=Oo(ywe,[["render",wwe]]),Cwe={},bwe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function xwe(r,e){return he(),de("svg",bwe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L0,0",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),ae("path",{"data-type":"polyline",d:"M184.1,0 L0,0 L0,34.7",class:"dv-button-svg-line"})],-1)]))}const _we=Oo(Cwe,[["render",xwe]]),Swe={},Twe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Iwe(r,e){return he(),de("svg",Twe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L15,0 L0,15",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),ae("path",{"data-type":"polyline",d:"M183,0 L15,0 L0,15 L0,34",class:"dv-button-svg-line"})],-1)]))}const Lwe=Oo(Swe,[["render",Iwe]]),Ewe={},Mwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Dwe(r,e){return he(),de("svg",Mwe,e[0]||(e[0]=[Zp('',1)]))}const Fwe=Oo(Ewe,[["render",Dwe]]),Qwe={class:"dv-button-wrapper"},Uwe={class:"dv-button"},Pwe={class:"dv-button-svg-container"},kwe={class:"dv-button-text"},Rwe=vt({components:{Border1:hwe,Border2:gwe,Border3:Bwe,Border4:_we,Border5:Lwe,Border6:Fwe},__name:"index",props:{color:{default:"#2058c7"},fontColor:{default:""},bg:{type:Boolean,default:!0},border:{default:"Border1"},fontSize:{default:14}},setup(r){Tf(s=>({"108fc75d":Q(o),"45ef2fd4":s.color,fc71f308:Q(n),"6ca41ab4":Q(t),"1faf6725":Q(a),"9aee3820":Q(i)}));const e=r,t=rt(()=>tC(e.color,40)),n=rt(()=>e.fontColor===""?e.color:e.fontColor),a=rt(()=>tC(n.value,40)),i=rt(()=>e.bg?.1:0),o=rt(()=>`${e.fontSize}px`);return(s,A)=>(he(),de("div",Qwe,[ae("button",Uwe,[ae("div",Pwe,[(he(),Sd(wV(s.border)))]),ae("div",kwe,[Ft(s.$slots,"default")])])]))}}),fF={install(r){r.component("DvButton",Rwe)}};function Owe(r){return _V()?(SV(r),!0):!1}function Xp(r){return typeof r=="function"?r():Q(r)}const Hwe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nwe=Object.prototype.toString,Vwe=r=>Nwe.call(r)==="[object Object]",rC=()=>{};function Gwe(r,e){function t(...n){return new Promise((a,i)=>{Promise.resolve(r(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(a).catch(i)})}return t}function zwe(r,e={}){let t,n,a=rC;const i=o=>{clearTimeout(o),a(),a=rC};return o=>{const s=Xp(r),A=Xp(e.maxWait);return t&&i(t),s<=0||A!==void 0&&A<=0?(n&&(i(n),n=null),Promise.resolve(o())):new Promise((l,u)=>{a=e.rejectOnCancel?u:l,A&&!n&&(n=setTimeout(()=>{t&&i(t),n=null,l(o())},A)),t=setTimeout(()=>{n&&i(n),n=null,l(o())},s)})}}function $we(r,e=200,t={}){return Gwe(zwe(e,t),r)}function Kwe(r){var e;const t=Xp(r);return(e=t==null?void 0:t.$el)!=null?e:t}const Wwe=Hwe?window:void 0;function Xwe(...r){let e,t,n,a;if(typeof r[0]=="string"||Array.isArray(r[0])?([t,n,a]=r,e=Wwe):[e,t,n,a]=r,!e)return rC;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),A=Et(()=>[Kwe(e),Xp(a)],([u,c])=>{if(o(),!u)return;const f=Vwe(c)?{...c}:c;i.push(...t.flatMap(h=>n.map(v=>s(u,h,v,f))))},{immediate:!0,flush:"post"}),l=()=>{A(),o()};return Owe(l),l}function _f(r,e){return arguments.length===1?Number.parseInt((Math.random()*r+1).toString(),10):Number.parseInt((Math.random()*(e-r+1)+r).toString(),10)}function Ywe(r,e){const t=window.MutationObserver,n=new t(e);return n.observe(r,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),n}function Yp(r,e){const t=Math.abs(r[0]-e[0]),n=Math.abs(r[1]-e[1]);return Math.sqrt(t*t+n*n)}function tl(r,e,t,n){return[r+Math.cos(n)*t,e+Math.sin(n)*t]}function Zwe(r){return r.filter(e=>typeof e=="number")}function jwe(r){return r=Zwe(r),r.reduce((e,t)=>e+t,0)}function Jwe(r,e){const t=Math.abs(r.x-e.x),n=Math.abs(r.y-e.y);return Math.sqrt(t*t+n*n)}function hF(r){const e=Array.from({length:r.length-1}).fill(0).map((t,n)=>[r[n],r[n+1]]).map(t=>Jwe(t[0],t[1]));return jwe(e)}function qwe(r){return`${r.x},${r.y}`}function vF(r){return r.map(qwe).join(" ")}function Ca(r){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Bt(r,e){for(const t in e){if(r[t]&&typeof r[t]=="object"){Bt(r[t],e[t]);continue}if(typeof e[t]=="object"){r[t]=_t(e[t]);continue}r[t]=e[t]}return r}function _t(r,e){if(!r)return r;const t=Array.isArray(r)?[]:{};if(r&&typeof r=="object")for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(r[n]&&typeof r[n]=="object"?t[n]=_t(r[n]):t[n]=r[n]);return t}function yt(r,e,t){const n=Ee(0),a=Ee(0);let i,o=null,s=null;const A=(h=!0)=>new Promise(v=>{Je(()=>{s=r.value,n.value=r.value?r.value.clientWidth:0,a.value=r.value?r.value.clientHeight:0,r.value?(!n.value||!a.value)&&console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),typeof e=="function"&&h&&e(),v(!0)})}),l=()=>{i=$we(A,200)},u=()=>{o=Ywe(s,i),Xwe(window,"resize",i)},c=()=>{o&&(o.disconnect(),o.takeRecords(),o=null)},f=async()=>{await A(!1),l(),u(),typeof t=="function"&&t()};return St(()=>{f()}),Qo(()=>{c()}),bV(f),xV(c),{width:n,height:a,initWH:A}}const e1e=["width","height"],t1e=["d","fill"],r1e=["fill","x","y"],n1e=["xlink:href","width","height","x","y"],a1e=["fill","x","y"],i1e={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(h=>({"51c9737a":Q(o)}));const e=r,t=Ee(null),{width:n,height:a}=yt(t,A,s),i=It({defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1,sort:!0},mergedConfig:null,column:[]}),o=rt(()=>`${e.config.fontSize?e.config.fontSize:i.defaultConfig.fontSize}px`);Et(()=>e.config,()=>{l()},{deep:!0});function s(){l()}function A(){l()}function l(){u(),c(),f()}function u(){i.mergedConfig=Bt(_t(i.defaultConfig),e.config||{})}function c(){let{data:h}=i.mergedConfig;const{sort:v}=i.mergedConfig;h=_t(h),v&&h.sort(({value:p},{value:g})=>p>g?-1:pp.value));h=h.map(p=>({...p,percent:d===0?0:p.value/d})),i.mergedConfig.data=h}function f(){const{imgSideLength:h,fontSize:v,data:d}=i.mergedConfig,p=d.length,g=n.value/(p+1),y=a.value-h-v-5,m=a.value-v-5;i.column=d.map((w,B)=>{const{percent:C}=w,b=g*(B+1),_=g*B,x=g*(B+2),S=m-y*C,I=y*C*.6+S,L=` M${_}, ${m} Q${b}, ${I} ${b},${S} M${b},${S} Q${b}, ${I} ${x},${m} L${_}, ${m} Z `,T=(m+S)/2+v/2;return{...w,d:L,x:b,y:S,textY:T}})}return(h,v)=>(he(),de("div",{ref_key:"conicalColumnChart",ref:t,class:"dv-conical-column-chart"},[(he(),de("svg",{width:Q(n),height:Q(a)},[(he(!0),de(lt,null,dt(Q(i).column,(d,p)=>(he(),de("g",{key:p},[ae("path",{d:d.d,fill:Q(i).mergedConfig.columnColor},null,8,t1e),ae("text",{fill:Q(i).mergedConfig.textColor,x:d.x,y:Q(a)-4},Dt(d.name),9,r1e),Q(i).mergedConfig.img.length?(he(),de("image",{key:0,"xlink:href":Q(i).mergedConfig.img[p%Q(i).mergedConfig.img.length],width:Q(i).mergedConfig.imgSideLength,height:Q(i).mergedConfig.imgSideLength,x:d.x-Q(i).mergedConfig.imgSideLength/2,y:d.y-Q(i).mergedConfig.imgSideLength},null,8,n1e)):pt("",!0),Q(i).mergedConfig.showValue?(he(),de("text",{key:1,fill:Q(i).mergedConfig.textColor,x:d.x,y:d.textY},Dt(d.value),9,a1e)):pt("",!0)]))),128))],8,e1e))],512))}},dF={install(r){r.component("DvConicalColumnChart",i1e)}},o1e=["id"],s1e=["offset","stop-color"],A1e=["id","x2"],l1e=["offset","stop-color"],u1e=["x","y","rx","ry","stroke-width","stroke","width","height"],c1e=["stroke-width","stroke-dasharray","stroke","points"],f1e=["stroke","fill","x","y"],h1e={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({gradientId1:`percent-pond-gradientId1-${t}`,gradientId2:`percent-pond-gradientId2-${t}`,width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}),i=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p}=a.mergedConfig;return a.width-p}),o=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p}=a.mergedConfig;return a.height-p}),s=rt(()=>{const p=a.height/2;if(!a.mergedConfig)return`0, ${p} 0, ${p}`;const{borderWidth:g,borderGap:y,value:m}=a.mergedConfig,w=(a.width-(g+y)*2)/100*m;return` ${g+y}, ${p} ${g+y+w}, ${p+.001} `}),A=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p,borderGap:g}=a.mergedConfig;return a.height-(p+g)*2}),l=rt(()=>{if(!a.mergedConfig)return[];const{colors:p}=a.mergedConfig,g=100/(p.length-1);return p.map((y,m)=>[g*m,y])}),u=rt(()=>a.mergedConfig&&a.mergedConfig.localGradient?a.gradientId1:a.gradientId2),c=rt(()=>{if(!a.mergedConfig)return"100%";const{value:p}=a.mergedConfig;return`${200-p}%`}),f=rt(()=>{if(!a.mergedConfig)return"";const{value:p,formatter:g}=a.mergedConfig;return g.replace("{value}",p)});Et(()=>e.config,()=>{d()},{deep:!0}),St(()=>{h()});async function h(){await v(),e.config&&d()}async function v(){await Je();const{clientWidth:p,clientHeight:g}=n.value;a.width=p,a.height=g}function d(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config||{})}return(p,g)=>(he(),de("div",{ref_key:"percentPond",ref:n,class:"dv-percent-pond"},[(he(),de("svg",null,[ae("defs",null,[ae("linearGradient",{id:Q(a).gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(he(!0),de(lt,null,dt(Q(l),y=>(he(),de("stop",{key:y[0],offset:`${y[0]}%`,"stop-color":y[1]},null,8,s1e))),128))],8,o1e),ae("linearGradient",{id:Q(a).gradientId2,x1:"0%",y1:"0%",x2:Q(c),y2:"0%"},[(he(!0),de(lt,null,dt(Q(l),y=>(he(),de("stop",{key:y[0],offset:`${y[0]}%`,"stop-color":y[1]},null,8,l1e))),128))],8,A1e)]),ae("rect",{x:Q(a).mergedConfig?Q(a).mergedConfig.borderWidth/2:"0",y:Q(a).mergedConfig?Q(a).mergedConfig.borderWidth/2:"0",rx:Q(a).mergedConfig?Q(a).mergedConfig.borderRadius:"0",ry:Q(a).mergedConfig?Q(a).mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":Q(a).mergedConfig?Q(a).mergedConfig.borderWidth:"0",stroke:`url(#${Q(a).gradientId1})`,width:Q(i)>0?Q(i):0,height:Q(o)>0?Q(o):0},null,8,u1e),ae("polyline",{"stroke-width":Q(A),"stroke-dasharray":Q(a).mergedConfig?Q(a).mergedConfig.lineDash.join(","):"0",stroke:`url(#${Q(u)})`,points:Q(s)},null,8,c1e),ae("text",{stroke:Q(a).mergedConfig?Q(a).mergedConfig.textColor:"#fff",fill:Q(a).mergedConfig?Q(a).mergedConfig.textColor:"#fff",x:Q(a).width/2,y:Q(a).height/2},Dt(Q(f)),9,f1e)]))],512))}},pF={install(r){r.component("DvPercentPond",h1e)}};function sV(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function v1e(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var ny={},AV={exports:{}};(function(r){function e(t){return t&&t.__esModule?t:{default:t}}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(AV);var Vt=AV.exports,gF={},yF={exports:{}},mF={exports:{}},wF={exports:{}},BF;function Xr(){return BF||(BF=1,function(r){function e(t){"@babel/helpers - typeof";return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r.exports.__esModule=!0,r.exports.default=r.exports,e(t)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(wF)),wF.exports}var CF={exports:{}},bF;function d1e(){return bF||(bF=1,function(r){var e=Xr().default;function t(n,a){if(e(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(e(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(CF)),CF.exports}var xF;function p1e(){return xF||(xF=1,function(r){var e=Xr().default,t=d1e();function n(a){var i=t(a,"string");return e(i)=="symbol"?i:String(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(mF)),mF.exports}var _F;function ba(){return _F||(_F=1,function(r){var e=p1e();function t(n,a,i){return a=e(a),a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(yF)),yF.exports}var SF={exports:{}},TF={exports:{}},IF={exports:{}},LF;function lV(){return LF||(LF=1,function(r){function e(t,n){(n==null||n>t.length)&&(n=t.length);for(var a=0,i=new Array(n);a1&&arguments[1]!==void 0?arguments[1]:5,C=w.length-1,b=w[0],_=w[C][2],x=w.slice(1),S=x.map(function(M,R){var P=R===0?b:x[R-1][2];return u.apply(void 0,[P].concat((0,n.default)(M)))}),I=new Array(C).fill(A),L=v(S,I),T=p(L,S,x,B);return T.segmentPoints.push(_),T}function u(w,B,C,b){return function(_){var x=1-_,S=i(x,3),I=i(x,2),L=i(_,3),T=i(_,2);return[w[0]*S+3*B[0]*_*I+3*C[0]*T*x+b[0]*L,w[1]*S+3*B[1]*_*I+3*C[1]*T*x+b[1]*L]}}function c(w,B){var C=(0,t.default)(w,2),b=C[0],_=C[1],x=(0,t.default)(B,2),S=x[0],I=x[1];return a(i(b-S,2)+i(_-I,2))}function f(w){return w.reduce(function(B,C){return B+C},0)}function h(w){return w.map(function(B,C){return new Array(B.length-1).fill(0).map(function(b,_){return c(B[_],B[_+1])})})}function v(w,B){return w.map(function(C,b){var _=1/B[b];return new Array(B[b]).fill("").map(function(x,S){return C(S*_)})})}function d(w,B){return w.map(function(C){return C.map(function(b){return s(b-B)})}).map(function(C){return f(C)}).reduce(function(C,b){return C+b},0)}function p(w,B,C,b){var _=4,x=1,S=function(){var L=w.reduce(function(G,X){return G+X.length},0);w.forEach(function(G,X){return G.push(C[X][2])});var T=h(w),M=T.reduce(function(G,X){return G+X.length},0),R=T.map(function(G){return f(G)}),P=f(R),E=P/M,k=d(T,E);if(k<=b)return"break";L=o(E/b*L*1.1);var D=R.map(function(G){return o(G/P*L)});w=v(B,D),L=w.reduce(function(G,X){return G+X.length},0);var U=JSON.parse(JSON.stringify(w));U.forEach(function(G,X){return G.push(C[X][2])}),T=h(U),M=T.reduce(function(G,X){return G+X.length},0),R=T.map(function(G){return f(G)}),P=f(R),E=P/M;var O=1/L/10;B.forEach(function(G,X){for(var te=D[X],ne=new Array(te).fill("").map(function(H,N){return N/D[X]}),ye=0;ye<_;ye++)for(var re=h([w[X]])[0],W=re.map(function(H){return H-E}),ee=0,oe=0;oe1&&(ne[oe]=1),ne[oe]<0&&(ne[oe]=0),w[X][oe]=G(ne[oe])}}),_*=4,x++};do{var I=S();if(I==="break")break}while(_<=1025);return w=w.reduce(function(L,T){return L.concat(T)},[]),{segmentPoints:w,cycles:x,rounds:_}}function g(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if(typeof B!="number")return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var C=l(w,B),b=C.segmentPoints;return b}function y(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if(typeof B!="number")return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var C=l(w,B),b=C.segmentPoints,_=h([b])[0],x=f(_);return x}var m=g;r.default=m}(NF)),NF}var jF={},JF;function x1e(){return JF||(JF=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(on()),n=e(Sr());function a(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.25,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25;if(!(l instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(l.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var h=l[0],v=l.length-1,d=new Array(v).fill(0).map(function(p,g){return[].concat((0,n.default)(i(l,g,u,c,f)),[l[g+1]])});return u&&o(d,h),d.unshift(l[0]),d}function i(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.25,v=l.length;if(!(v<3||u>=v)){var d=u-1;d<0&&(d=c?v+d:0);var p=u+1;p>=v&&(p=c?p-v:v-1);var g=u+2;g>=v&&(g=c?g-v:v-1);var y=l[d],m=l[u],w=l[p],B=l[g];return[[m[0]+f*(w[0]-y[0]),m[1]+f*(w[1]-y[1])],[w[0]-h*(B[0]-m[0]),w[1]-h*(B[1]-m[1])]]}}function o(l,u){var c=l[0],f=l.slice(-1)[0];return l.push([s(f[1],f[2]),s(c[0],u),u]),l}function s(l,u){var c=(0,t.default)(l,2),f=c[0],h=c[1],v=(0,t.default)(u,2),d=v[0],p=v[1],g=d-f,y=p-h;return[d+g,p+y]}var A=a;r.default=A}(jF)),jF}var qF;function qx(){return qF||(qF=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"bezierCurveToPolyline",{enumerable:!0,get:function(){return t.bezierCurveToPolyline}}),Object.defineProperty(r,"getBezierCurveLength",{enumerable:!0,get:function(){return t.getBezierCurveLength}}),Object.defineProperty(r,"polylineToBezierCurve",{enumerable:!0,get:function(){return n.default}}),r.default=void 0;var t=b1e(),n=e(x1e()),a={bezierCurveToPolyline:t.bezierCurveToPolyline,getBezierCurveLength:t.getBezierCurveLength,polylineToBezierCurve:n.default};r.default=a}(HF)),HF}var eQ={},tQ;function Pr(){return tQ||(tQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.deepClone=f,r.eliminateBlur=h,r.checkPointIsInCircle=v,r.getTwoPointDistance=d,r.checkPointIsInPolygon=p,r.checkPointIsInSector=g,r.checkPointIsNearPolyline=m,r.checkPointIsInRect=w,r.getRotatePointPos=B,r.getScalePointPos=C,r.getTranslatePointPos=b,r.getDistanceBetweenPointAndLine=_,r.getCircleRadianPoint=x,r.getRegularPolygonPoints=S,r.default=void 0;var t=e(Sr()),n=e(on()),a=e(Xr()),i=Math.abs,o=Math.sqrt,s=Math.sin,A=Math.cos,l=Math.max,u=Math.min,c=Math.PI;function f(L){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!L)return L;var M=JSON.parse,R=JSON.stringify;if(!T)return M(R(L));var P=L instanceof Array?[]:{};if(L&&(0,a.default)(L)==="object")for(var E in L)L.hasOwnProperty(E)&&(L[E]&&(0,a.default)(L[E])==="object"?P[E]=f(L[E],!0):P[E]=L[E]);return P}function h(L){return L.map(function(T){var M=(0,n.default)(T,2),R=M[0],P=M[1];return[parseInt(R)+.5,parseInt(P)+.5]})}function v(L,T,M,R){return d(L,[T,M])<=R}function d(L,T){var M=(0,n.default)(L,2),R=M[0],P=M[1],E=(0,n.default)(T,2),k=E[0],D=E[1],U=i(R-k),O=i(P-D);return o(U*U+O*O)}function p(L,T){for(var M=0,R=(0,n.default)(L,2),P=R[0],E=R[1],k=T.length,D=1,U=T[0];D<=k;D++){var O=T[D%k];if(P>u(U[0],O[0])&&P<=l(U[0],O[0])&&E<=l(U[1],O[1])&&U[0]!==O[0]){var G=(P-U[0])*(O[1]-U[1])/(O[0]-U[0])+U[1];(U[1]===O[1]||E<=G)&&M++}U=O}return M%2===1}function g(L,T,M,R,P,E,k){if(!L||d(L,[T,M])>R)return!1;if(!k){var D=f([E,P]),U=(0,n.default)(D,2);P=U[0],E=U[1]}var O=P>E;if(O){var G=[E,P];P=G[0],E=G[1]}var X=E-P;if(X>=c*2)return!0;var te=(0,n.default)(L,2),ne=te[0],ye=te[1],re=x(T,M,R,P),W=(0,n.default)(re,2),ee=W[0],oe=W[1],H=x(T,M,R,E),N=(0,n.default)(H,2),K=N[0],$=N[1],j=[ne-T,ye-M],ie=[ee-T,oe-M],z=[K-T,$-M],q=X>c;if(q){var V=f([z,ie]),Y=(0,n.default)(V,2);ie=Y[0],z=Y[1]}var Z=y(ie,j)&&!y(z,j);return q&&(Z=!Z),O&&(Z=!Z),Z}function y(L,T){var M=(0,n.default)(L,2),R=M[0],P=M[1],E=(0,n.default)(T,2),k=E[0],D=E[1];return-P*k+R*D>0}function m(L,T,M){var R=M/2,P=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O,G-R]}),E=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O,G+R]}),k=[].concat((0,t.default)(P),(0,t.default)(E.reverse()));return p(L,k)}function w(L,T,M,R,P){var E=(0,n.default)(L,2),k=E[0],D=E[1];return!(kT+R||D>M+P)}function B(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1?arguments[1]:void 0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!T)return!1;if(L%360===0)return T;var R=(0,n.default)(T,2),P=R[0],E=R[1],k=(0,n.default)(M,2),D=k[0],U=k[1];return L*=c/180,[(P-D)*A(L)-(E-U)*s(L)+D,(P-D)*s(L)+(E-U)*A(L)+U]}function C(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[1,1],T=arguments.length>1?arguments[1]:void 0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!T)return!1;if(L===1)return T;var R=(0,n.default)(T,2),P=R[0],E=R[1],k=(0,n.default)(M,2),D=k[0],U=k[1],O=(0,n.default)(L,2),G=O[0],X=O[1],te=P-D,ne=E-U;return[te*G+D,ne*X+U]}function b(L,T){if(!L||!T)return!1;var M=(0,n.default)(T,2),R=M[0],P=M[1],E=(0,n.default)(L,2),k=E[0],D=E[1];return[R+k,P+D]}function _(L,T,M){if(!L||!T||!M)return!1;var R=(0,n.default)(L,2),P=R[0],E=R[1],k=(0,n.default)(T,2),D=k[0],U=k[1],O=(0,n.default)(M,2),G=O[0],X=O[1],te=X-U,ne=D-G,ye=U*(G-D)-D*(X-U),re=i(te*P+ne*E+ye),W=o(te*te+ne*ne);return re/W}function x(L,T,M,R){return[L+A(R)*M,T+s(R)*M]}function S(L,T,M,R){var P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:c*-.5,E=c*2/R,k=new Array(R).fill("").map(function(D,U){return U*E+P});return k.map(function(D){return x(L,T,M,D)})}var I={deepClone:f,eliminateBlur:h,checkPointIsInCircle:v,checkPointIsInPolygon:p,checkPointIsInSector:g,checkPointIsNearPolyline:m,getTwoPointDistance:d,getRotatePointPos:B,getScalePointPos:C,getTranslatePointPos:b,getCircleRadianPoint:x,getRegularPolygonPoints:S,getDistanceBetweenPointAndLine:_};r.default=I}(eQ)),eQ}var rQ={},nQ={},aQ;function _1e(){return aQ||(aQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.drawPolylinePath=n,r.drawBezierCurvePath=a,r.default=void 0;var t=e(Sr());function n(o,s){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!o||s.length<2)return!1;A&&o.beginPath(),s.forEach(function(u,c){return u&&(c===0?o.moveTo.apply(o,(0,t.default)(u)):o.lineTo.apply(o,(0,t.default)(u)))}),l&&o.closePath()}function a(o,s){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o||!s)return!1;l&&o.beginPath(),A&&o.moveTo.apply(o,(0,t.default)(A)),s.forEach(function(c){return c&&o.bezierCurveTo.apply(o,(0,t.default)(c[0]).concat((0,t.default)(c[1]),(0,t.default)(c[2])))}),u&&o.closePath()}var i={drawPolylinePath:n,drawBezierCurvePath:a};r.default=i}(nQ)),nQ}var iQ;function e_(){return iQ||(iQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.extendNewGraph=C,r.default=r.text=r.bezierCurve=r.smoothline=r.polyline=r.regPolygon=r.sector=r.arc=r.ring=r.rect=r.ellipse=r.circle=void 0;var t=e(Sr()),n=e(on()),a=e(qx()),i=Pr(),o=_1e(),s=a.default.polylineToBezierCurve,A=a.default.bezierCurveToPolyline,l={shape:{rx:0,ry:0,r:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.r;return typeof x!="number"||typeof S!="number"||typeof I!="number"?(console.error("Circle shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r;x.arc(I,L,T>0?T:.01,0,Math.PI*2),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.r;return(0,i.checkPointIsInCircle)(b,S,I,L)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.circle=l;var u={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.hr,L=_.vr;return typeof x!="number"||typeof S!="number"||typeof I!="number"||typeof L!="number"?(console.error("Ellipse shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.hr,M=S.vr;x.ellipse(I,L,T>0?T:.01,M>0?M:.01,0,0,Math.PI*2),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.hr,T=x.vr,M=Math.max(L,T),R=Math.min(L,T),P=Math.sqrt(M*M-R*R),E=[S-P,I],k=[S+P,I],D=(0,i.getTwoPointDistance)(b,E)+(0,i.getTwoPointDistance)(b,k);return D<=2*M},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.ellipse=u;var c={shape:{x:0,y:0,w:0,h:0},validator:function(b){var _=b.shape,x=_.x,S=_.y,I=_.w,L=_.h;return typeof x!="number"||typeof S!="number"||typeof I!="number"||typeof L!="number"?(console.error("Rect shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.x,L=S.y,T=S.w,M=S.h;x.rect(I,L,T,M),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.x,I=x.y,L=x.w,T=x.h;return(0,i.checkPointIsInRect)(b,S,I,L,T)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.x,L=x.y,T=x.w,M=x.h;S.graphCenter=[I+T/2,L+M/2]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{x:I.x+x,y:I.y+S})}};r.rect=c;var f={shape:{rx:0,ry:0,r:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.r;return typeof x!="number"||typeof S!="number"||typeof I!="number"?(console.error("Ring shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r;x.arc(I,L,T>0?T:.01,0,Math.PI*2),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry,T=x.r,M=S.lineWidth,R=M/2,P=T-R,E=T+R,k=(0,i.getTwoPointDistance)(b,[I,L]);return k>=P&&k<=E},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.ring=f;var h={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(b){var _=b.shape,x=["rx","ry","r","startAngle","endAngle"];return x.find(function(S){return typeof _[S]!="number"})?(console.error("Arc shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r,M=S.startAngle,R=S.endAngle,P=S.clockWise;x.arc(I,L,T>0?T:.001,M,R,!P),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry,T=x.r,M=x.startAngle,R=x.endAngle,P=x.clockWise,E=S.lineWidth,k=E/2,D=T-k,U=T+k;return!(0,i.checkPointIsInSector)(b,I,L,D,M,R,P)&&(0,i.checkPointIsInSector)(b,I,L,U,M,R,P)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.arc=h;var v={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(b){var _=b.shape,x=["rx","ry","r","startAngle","endAngle"];return x.find(function(S){return typeof _[S]!="number"})?(console.error("Sector shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r,M=S.startAngle,R=S.endAngle,P=S.clockWise;x.arc(I,L,T>0?T:.01,M,R,!P),x.lineTo(I,L),x.closePath(),x.stroke(),x.fill()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.r,T=x.startAngle,M=x.endAngle,R=x.clockWise;return(0,i.checkPointIsInSector)(b,S,I,L,T,M,R)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=I.rx,T=I.ry;this.attr("shape",{rx:L+x,ry:T+S})}};r.sector=v;var d={shape:{rx:0,ry:0,r:0,side:0},validator:function(b){var _=b.shape,x=_.side,S=["rx","ry","r","side"];return S.find(function(I){return typeof _[I]!="number"})?(console.error("RegPolygon shape configuration is abnormal!"),!1):x<3?(console.error("RegPolygon at least trigon!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache;x.beginPath();var L=S.rx,T=S.ry,M=S.r,R=S.side;if(!I.points||I.rx!==L||I.ry!==T||I.r!==M||I.side!==R){var P=(0,i.getRegularPolygonPoints)(L,T,M,R);Object.assign(I,{points:P,rx:L,ry:T,r:M,side:R})}var E=I.points;(0,o.drawPolylinePath)(x,E),x.closePath(),x.stroke(),x.fill()},hoverCheck:function(b,_){var x=_.cache,S=x.points;return(0,i.checkPointIsInPolygon)(b,S)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.rx,M=I.ry;L.rx+=x,L.ry+=S,this.attr("shape",{rx:T+x,ry:M+S}),L.points=L.points.map(function(R){var P=(0,n.default)(R,2),E=P[0],k=P[1];return[E+x,k+S]})}};r.regPolygon=d;var p={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("Polyline points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.style.lineWidth;x.beginPath();var L=S.points,T=S.close;I===1&&(L=(0,i.eliminateBlur)(L)),(0,o.drawPolylinePath)(x,L),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.points,L=x.close,T=S.lineWidth;return L?(0,i.checkPointIsInPolygon)(b,I):(0,i.checkPointIsNearPolyline)(b,I,T)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=I.points,T=L.map(function(M){var R=(0,n.default)(M,2),P=R[0],E=R[1];return[P+x,E+S]});this.attr("shape",{points:T})}};r.polyline=p;var g={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("Smoothline points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache,L=S.points,T=S.close;if(!I.points||I.points.toString()!==L.toString()){var M=s(L,T),R=A(M);Object.assign(I,{points:(0,i.deepClone)(L,!0),bezierCurve:M,hoverPoints:R})}var P=I.bezierCurve;x.beginPath(),(0,o.drawBezierCurvePath)(x,P.slice(1),P[0]),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.cache,S=_.shape,I=_.style,L=x.hoverPoints,T=S.close,M=I.lineWidth;return T?(0,i.checkPointIsInPolygon)(b,L):(0,i.checkPointIsNearPolyline)(b,L,M)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.points,M=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]});L.points=M;var R=(0,n.default)(L.bezierCurve[0],2),P=R[0],E=R[1],k=L.bezierCurve.slice(1);L.bezierCurve=[[P+x,E+S]].concat((0,t.default)(k.map(function(D){return D.map(function(U){var O=(0,n.default)(U,2),G=O[0],X=O[1];return[G+x,X+S]})}))),L.hoverPoints=L.hoverPoints.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]}),this.attr("shape",{points:M})}};r.smoothline=g;var y={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("BezierCurve points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache,L=S.points,T=S.close;if(!I.points||I.points.toString()!==L.toString()){var M=A(L,20);Object.assign(I,{points:(0,i.deepClone)(L,!0),hoverPoints:M})}x.beginPath(),(0,o.drawBezierCurvePath)(x,L.slice(1),L[0]),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.cache,S=_.shape,I=_.style,L=x.hoverPoints,T=S.close,M=I.lineWidth;return T?(0,i.checkPointIsInPolygon)(b,L):(0,i.checkPointIsNearPolyline)(b,L,M)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.points,M=(0,n.default)(T[0],2),R=M[0],P=M[1],E=T.slice(1),k=[[R+x,P+S]].concat((0,t.default)(E.map(function(D){return D.map(function(U){var O=(0,n.default)(U,2),G=O[0],X=O[1];return[G+x,X+S]})})));L.points=k,L.hoverPoints=L.hoverPoints.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]}),this.attr("shape",{points:k})}};r.bezierCurve=y;var m={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(b){var _=b.shape,x=_.content,S=_.position,I=_.rowGap;return typeof x!="string"?(console.error("Text content should be a string!"),!1):S instanceof Array?typeof I!="number"?(console.error("Text rowGap should be a number!"),!1):!0:(console.error("Text position should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=S.content,L=S.position,T=S.maxWidth,M=S.rowGap,R=x.textBaseline,P=x.font,E=parseInt(P.replace(/\D/g,"")),k=L,D=(0,n.default)(k,2),U=D[0],O=D[1];I=I.split(` `);var G=I.length,X=E+M,te=G*X-M,ne=0;R==="middle"&&(ne=te/2,O+=E/2),R==="bottom"&&(ne=te,O+=E),L=new Array(G).fill(0).map(function(ye,re){return[U,O+re*X-ne]}),x.beginPath(),I.forEach(function(ye,re){x.fillText.apply(x,[ye].concat((0,t.default)(L[re]),[T])),x.strokeText.apply(x,[ye].concat((0,t.default)(L[re]),[T]))}),x.closePath()},hoverCheck:function(b,_){return _.shape,_.style,!1},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.position;S.graphCenter=(0,t.default)(I)},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=(0,n.default)(I.position,2),T=L[0],M=L[1];this.attr("shape",{position:[T+x,M+S]})}};r.text=m;var w=new Map([["circle",l],["ellipse",u],["rect",c],["ring",f],["arc",h],["sector",v],["regPolygon",d],["polyline",p],["smoothline",g],["bezierCurve",y],["text",m]]),B=w;r.default=B;function C(b,_){if(!b||!_){console.error("ExtendNewGraph Missing Parameters!");return}if(!_.shape){console.error("Required attribute of shape to extendNewGraph!");return}if(!_.validator){console.error("Required function of validator to extendNewGraph!");return}if(!_.draw){console.error("Required function of draw to extendNewGraph!");return}w.set(b,_)}}(rQ)),rQ}var oQ={},sQ={exports:{}},AQ;function S1e(){return AQ||(AQ=1,function(r){var e=Xr().default;function t(){r.exports=t=function(){return a},r.exports.__esModule=!0,r.exports.default=r.exports;var n,a={},i=Object.prototype,o=i.hasOwnProperty,s=Object.defineProperty||function(D,U,O){D[U]=O.value},A=typeof Symbol=="function"?Symbol:{},l=A.iterator||"@@iterator",u=A.asyncIterator||"@@asyncIterator",c=A.toStringTag||"@@toStringTag";function f(D,U,O){return Object.defineProperty(D,U,{value:O,enumerable:!0,configurable:!0,writable:!0}),D[U]}try{f({},"")}catch{f=function(D,U,O){return D[U]=O}}function h(D,U,O,G){var X=U&&U.prototype instanceof w?U:w,te=Object.create(X.prototype),ne=new E(G||[]);return s(te,"_invoke",{value:T(D,O,ne)}),te}function v(D,U,O){try{return{type:"normal",arg:D.call(U,O)}}catch(G){return{type:"throw",arg:G}}}a.wrap=h;var d="suspendedStart",p="suspendedYield",g="executing",y="completed",m={};function w(){}function B(){}function C(){}var b={};f(b,l,function(){return this});var _=Object.getPrototypeOf,x=_&&_(_(k([])));x&&x!==i&&o.call(x,l)&&(b=x);var S=C.prototype=w.prototype=Object.create(b);function I(D){["next","throw","return"].forEach(function(U){f(D,U,function(O){return this._invoke(U,O)})})}function L(D,U){function O(X,te,ne,ye){var re=v(D[X],D,te);if(re.type!=="throw"){var W=re.arg,ee=W.value;return ee&&e(ee)=="object"&&o.call(ee,"__await")?U.resolve(ee.__await).then(function(oe){O("next",oe,ne,ye)},function(oe){O("throw",oe,ne,ye)}):U.resolve(ee).then(function(oe){W.value=oe,ne(W)},function(oe){return O("throw",oe,ne,ye)})}ye(re.arg)}var G;s(this,"_invoke",{value:function(X,te){function ne(){return new U(function(ye,re){O(X,te,ye,re)})}return G=G?G.then(ne,ne):ne()}})}function T(D,U,O){var G=d;return function(X,te){if(G===g)throw new Error("Generator is already running");if(G===y){if(X==="throw")throw te;return{value:n,done:!0}}for(O.method=X,O.arg=te;;){var ne=O.delegate;if(ne){var ye=M(ne,O);if(ye){if(ye===m)continue;return ye}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(G===d)throw G=y,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);G=g;var re=v(D,U,O);if(re.type==="normal"){if(G=O.done?y:p,re.arg===m)continue;return{value:re.arg,done:O.done}}re.type==="throw"&&(G=y,O.method="throw",O.arg=re.arg)}}}function M(D,U){var O=U.method,G=D.iterator[O];if(G===n)return U.delegate=null,O==="throw"&&D.iterator.return&&(U.method="return",U.arg=n,M(D,U),U.method==="throw")||O!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+O+"' method")),m;var X=v(G,D.iterator,U.arg);if(X.type==="throw")return U.method="throw",U.arg=X.arg,U.delegate=null,m;var te=X.arg;return te?te.done?(U[D.resultName]=te.value,U.next=D.nextLoc,U.method!=="return"&&(U.method="next",U.arg=n),U.delegate=null,m):te:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,m)}function R(D){var U={tryLoc:D[0]};1 in D&&(U.catchLoc=D[1]),2 in D&&(U.finallyLoc=D[2],U.afterLoc=D[3]),this.tryEntries.push(U)}function P(D){var U=D.completion||{};U.type="normal",delete U.arg,D.completion=U}function E(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(R,this),this.reset(!0)}function k(D){if(D||D===""){var U=D[l];if(U)return U.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var O=-1,G=function X(){for(;++O=0;--G){var X=this.tryEntries[G],te=X.completion;if(X.tryLoc==="root")return O("end");if(X.tryLoc<=this.prev){var ne=o.call(X,"catchLoc"),ye=o.call(X,"finallyLoc");if(ne&&ye){if(this.prev=0;--O){var G=this.tryEntries[O];if(G.tryLoc<=this.prev&&o.call(G,"finallyLoc")&&this.prev=0;--U){var O=this.tryEntries[U];if(O.finallyLoc===D)return this.complete(O.completion,O.afterLoc),P(O),m}},catch:function(D){for(var U=this.tryEntries.length-1;U>=0;--U){var O=this.tryEntries[U];if(O.tryLoc===D){var G=O.completion;if(G.type==="throw"){var X=G.arg;P(O)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(D,U,O){return this.delegate={iterator:k(D),resultName:U,nextLoc:O},this.method==="next"&&(this.arg=n),m}},a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(sQ)),sQ.exports}var Aw,lQ;function T1e(){if(lQ)return Aw;lQ=1;var r=S1e()();Aw=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}return Aw}var uQ={exports:{}},cQ;function I1e(){return cQ||(cQ=1,function(r){function e(n,a,i,o,s,A,l){try{var u=n[A](l),c=u.value}catch(f){i(f);return}u.done?a(c):Promise.resolve(c).then(o,s)}function t(n){return function(){var a=this,i=arguments;return new Promise(function(o,s){var A=n.apply(a,i);function l(c){e(A,o,s,l,u,"next",c)}function u(c){e(A,o,s,l,u,"throw",c)}l(void 0)})}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(uQ)),uQ.exports}var fQ={},hQ;function L1e(){return hQ||(hQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(Sr()),n=e(Zf()),a=jf,i=Pr(),o=function h(v){(0,n.default)(this,h),this.colorProcessor(v);var d={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,d,v)};r.default=o,o.prototype.colorProcessor=function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=v?a.getColorFromRgbValue:a.getRgbaValue,p=["fill","stroke","shadowColor"],g=Object.keys(h),y=g.filter(function(C){return p.find(function(b){return b===C})});y.forEach(function(C){return h[C]=d(h[C])});var m=h.gradientColor,w=h.colors;if(m&&(h.gradientColor=m.map(function(C){return d(C)})),w){var B=Object.keys(w);B.forEach(function(C){return w[C]=d(w[C])})}},o.prototype.initStyle=function(h){s(h,this),l(h,this),u(h,this)};function s(h,v){h.save();var d=v.graphCenter,p=v.rotate,g=v.scale,y=v.translate;d instanceof Array&&(h.translate.apply(h,(0,t.default)(d)),p&&h.rotate(p*Math.PI/180),g instanceof Array&&h.scale.apply(h,(0,t.default)(g)),y&&h.translate.apply(h,(0,t.default)(y)),h.translate(-d[0],-d[1]))}var A=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function l(h,v){var d=v.fill,p=v.stroke,g=v.shadowColor,y=v.opacity;A.forEach(function(S){(S||typeof S=="number")&&(h[S]=v[S])}),d=(0,t.default)(d),p=(0,t.default)(p),g=(0,t.default)(g),d[3]*=y,p[3]*=y,g[3]*=y,h.fillStyle=(0,a.getColorFromRgbValue)(d),h.strokeStyle=(0,a.getColorFromRgbValue)(p),h.shadowColor=(0,a.getColorFromRgbValue)(g);var m=v.lineDash,w=v.shadowBlur;m&&(m=m.map(function(S){return S>=0?S:0}),h.setLineDash(m)),typeof w=="number"&&(h.shadowBlur=w>0?w:.001);var B=v.fontStyle,C=v.fontVarient,b=v.fontWeight,_=v.fontSize,x=v.fontFamily;h.font=B+" "+C+" "+b+" "+_+"px "+x}function u(h,v){if(c(v)){var d=v.gradientColor,p=v.gradientParams,g=v.gradientType,y=v.gradientWith,m=v.gradientStops,w=v.opacity;d=d.map(function(C){var b=C[3]*w,_=(0,t.default)(C);return _[3]=b,_}),d=d.map(function(C){return(0,a.getColorFromRgbValue)(C)}),m==="auto"&&(m=f(d));var B=h["create".concat(g.slice(0,1).toUpperCase()+g.slice(1),"Gradient")].apply(h,(0,t.default)(p));m.forEach(function(C,b){return B.addColorStop(C,d[b])}),h["".concat(y,"Style")]=B}}function c(h){var v=h.gradientColor,d=h.gradientParams,p=h.gradientType,g=h.gradientWith,y=h.gradientStops;if(!v||!d)return!1;if(v.length===1)return console.warn("The gradient needs to provide at least two colors"),!1;if(p!=="linear"&&p!=="radial")return console.warn("GradientType only supports linear or radial, current value is "+p),!1;var m=d.length;return p==="linear"&&m!==4||p==="radial"&&m!==6?(console.warn("The expected length of gradientParams is "+(p==="linear"?"4":"6")),!1):g!=="fill"&&g!=="stroke"?(console.warn("GradientWith only supports fill or stroke, current value is "+g),!1):y!=="auto"&&!(y instanceof Array)?(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+y),!1):!0}function f(h){var v=1/(h.length-1);return h.map(function(d,p){return v*p})}o.prototype.restoreTransform=function(h){h.restore()},o.prototype.update=function(h){this.colorProcessor(h),Object.assign(this,h)},o.prototype.getStyle=function(){var h=(0,i.deepClone)(this,!0);return this.colorProcessor(h,!0),h}}(fQ)),fQ}var vQ={},dQ={},pQ;function E1e(){return pQ||(pQ=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.easeInOutBounce=r.easeOutBounce=r.easeInBounce=r.easeInOutElastic=r.easeOutElastic=r.easeInElastic=r.easeInOutBack=r.easeOutBack=r.easeInBack=r.easeInOutQuint=r.easeOutQuint=r.easeInQuint=r.easeInOutQuart=r.easeOutQuart=r.easeInQuart=r.easeInOutCubic=r.easeOutCubic=r.easeInCubic=r.easeInOutQuad=r.easeOutQuad=r.easeInQuad=r.easeInOutSine=r.easeOutSine=r.easeInSine=r.linear=void 0;var e=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];r.linear=e;var t=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];r.easeInSine=t;var n=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];r.easeOutSine=n;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];r.easeInOutSine=a;var i=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];r.easeInQuad=i;var o=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];r.easeOutQuad=o;var s=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];r.easeInOutQuad=s;var A=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];r.easeInCubic=A;var l=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];r.easeOutCubic=l;var u=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];r.easeInOutCubic=u;var c=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];r.easeInQuart=c;var f=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];r.easeOutQuart=f;var h=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];r.easeInOutQuart=h;var v=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];r.easeInQuint=v;var d=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];r.easeOutQuint=d;var p=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];r.easeInOutQuint=p;var g=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];r.easeInBack=g;var y=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];r.easeOutBack=y;var m=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];r.easeInOutBack=m;var w=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];r.easeInElastic=w;var B=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];r.easeOutElastic=B;var C=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];r.easeInOutElastic=C;var b=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];r.easeInBounce=b;var _=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];r.easeOutBounce=_;var x=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];r.easeInOutBounce=x;var S=new Map([["linear",e],["easeInSine",t],["easeOutSine",n],["easeInOutSine",a],["easeInQuad",i],["easeOutQuad",o],["easeInOutQuad",s],["easeInCubic",A],["easeOutCubic",l],["easeInOutCubic",u],["easeInQuart",c],["easeOutQuart",f],["easeInOutQuart",h],["easeInQuint",v],["easeOutQuint",d],["easeInOutQuint",p],["easeInBack",g],["easeOutBack",y],["easeInOutBack",m],["easeInElastic",w],["easeOutElastic",B],["easeInOutElastic",C],["easeInBounce",b],["easeOutBounce",_],["easeInOutBounce",x]]);r.default=S}(dQ)),dQ}var gQ;function M1e(){return gQ||(gQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.transition=o,r.injectNewCurve=m,r.default=void 0;var t=e(on()),n=e(Xr()),a=e(E1e()),i="linear";function o(B){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!s.apply(void 0,arguments))return!1;try{var S=A(B),I=l(S,_);return!x||typeof b=="number"?v(C,b,I):y(C,b,I)}catch{return console.warn("Transition parameter may be abnormal!"),[b]}}function s(B){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30;if(!B||C===!1||b===!1||!_)return console.error("transition: Missing Parameters!"),!1;if((0,n.default)(C)!==(0,n.default)(b))return console.error("transition: Inconsistent Status Types!"),!1;var x=(0,n.default)(b);return x==="string"||x==="boolean"||!B.length?(console.error("transition: Unsupported Data Type of State!"),!1):(!a.default.has(B)&&!(B instanceof Array)&&console.warn("transition: Transition curve not found, default curve will be used!"),!0)}function A(B){var C="";return a.default.has(B)?C=a.default.get(B):B instanceof Array?C=B:C=a.default.get(i),C}function l(B,C){var b=1/(C-1),_=new Array(C).fill(0).map(function(S,I){return I*b}),x=_.map(function(S){return u(B,S)});return x}function u(B,C){var b=c(B,C),_=f(b,C);return h(b,_)}function c(B,C){var b=B.length-1,_="",x="";B.findIndex(function(M,R){if(R!==b){_=M,x=B[R+1];var P=_[0][0],E=x[0][0];return C>=P&&C1&&arguments[1]!==void 0?arguments[1]:void 0;if(!f||h===void 0)return!1;var v=(0,a.default)(this[f])==="object";v&&(h=(0,l.deepClone)(h,!0));var d=this.render;f==="style"?this.style.update(h):v?Object.assign(this[f],h):this[f]=h,f==="index"&&d.sortGraphsByIndex(),d.drawAllGraph()},u.prototype.animation=function(){var f=(0,n.default)(t.default.mark(function h(v,d){var p,g,y,m,w,B,C,b,_,x=arguments;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(p=x.length>2&&x[2]!==void 0?x[2]:!1,!(v!=="shape"&&v!=="style")){S.next=4;break}return console.error("Only supported shape and style animation!"),S.abrupt("return");case 4:if(d=(0,l.deepClone)(d,!0),v==="style"&&this.style.colorProcessor(d),g=this[v],y=Object.keys(d),m={},y.forEach(function(I){return m[I]=g[I]}),w=this.animationFrame,B=this.animationCurve,C=this.animationDelay,b=(0,A.default)(B,m,d,w,!0),this.animationRoot.push(g),this.animationKeys.push(y),this.animationFrameState.push(b),!p){S.next=17;break}return S.abrupt("return");case 17:if(!(C>0)){S.next=20;break}return S.next=20,c(C);case 20:return _=this.render,S.abrupt("return",new Promise(function(){var I=(0,n.default)(t.default.mark(function L(T){return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,_.launchAnimation();case 2:T();case 3:case"end":return M.stop()}},L)}));return function(L){return I.apply(this,arguments)}}()));case 22:case"end":return S.stop()}},h,this)}));return function(h,v){return f.apply(this,arguments)}}(),u.prototype.turnNextAnimationFrame=function(f){var h=this.animationDelay,v=this.animationRoot,d=this.animationKeys,p=this.animationFrameState,g=this.animationPause;g||Date.now()-f0&&arguments[0]!==void 0?arguments[0]:{},m=y.name;if(!m){console.error("add Missing parameters!");return}var w=A.default.get(m);if(!w){console.warn("No corresponding graph configuration found!");return}var B=new l.default(w,y);if(B.validator(B))return B.render=this,this.graphs.push(B),this.sortGraphsByIndex(),this.drawAllGraph(),B},f.prototype.sortGraphsByIndex=function(){var y=this.graphs;y.sort(function(m,w){if(m.index>w.index)return 1;if(m.index===w.index)return 0;if(m.index({})},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({gradientId:`water-level-pond-${t}`,defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}),i=rt(()=>{const{shape:m}=a.mergedConfig;return m==="round"?"50%":m==="rect"?"0":m==="roundRect"?"10px":"0"}),o=rt(()=>{const{shape:m}=a.mergedConfig;return m||"rect"});Et(()=>e.config,()=>{a.renderer.delAllGraph(),a.waves=[],setTimeout(l,0)},{deep:!0}),St(()=>{s()}),BV(()=>{a.renderer.delAllGraph(),a.waves=[]});function s(){A(),e.config&&l()}function A(){a.renderer=new cV(n.value)}function l(){u(),c(),f(),h(),y()}function u(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config)}function c(){const{colors:m}=a.mergedConfig,w=100/(m.length-1);a.svgBorderGradient=m.map((B,C)=>[w*C,B])}function f(){const{data:m,formatter:w}=a.mergedConfig;if(!m.length){a.details="";return}const B=Math.max(...m);a.details=w.replace("{value}",B)}function h(){const m=v(),w=p();a.waves=m.map(B=>a.renderer.add({name:"smoothline",animationFrame:300,shape:B,style:w,drawed:g}))}function v(){const{waveNum:m,waveHeight:w,data:B}=a.mergedConfig,[C,b]=a.renderer.area,_=m*4+4,x=C/m/2;return B.map(S=>{let I=Array.from({length:_}).fill(0).map((L,T)=>{const M=C-x*T,R=(1-S/100)*b,P=T%2===0?R:R-w;return[M,P]});return I=I.map(L=>d(L,[x*2,0])),{points:I}})}function d([m,w],[B,C]){return[m+B,w+C]}function p(){const m=a.renderer.area[1];return{gradientColor:a.mergedConfig.colors,gradientType:"linear",gradientParams:[0,0,0,m],gradientWith:"fill",opacity:a.mergedConfig.waveOpacity,translate:[0,0]}}function g({shape:{points:m}},{ctx:w,area:B}){const C=m[0],b=m.slice(-1)[0],_=B[1];w.lineTo(b[0],_),w.lineTo(C[0],_),w.closePath(),w.fill()}async function y(m=1){if(a.animation)return;a.animation=!0;const w=a.renderer.area[0];a.waves.forEach(B=>{B.attr("style",{translate:[0,0]}),B.animation("style",{translate:[w,0]},!0)}),await a.renderer.launchAnimation(),a.animation=!1,a.renderer.graphs.length&&y(m+1)}return(m,w)=>(he(),de("div",Q1e,[Q(a).renderer?(he(),de("svg",U1e,[ae("defs",null,[ae("linearGradient",{id:Q(a).gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[(he(!0),de(lt,null,dt(Q(a).svgBorderGradient,B=>(he(),de("stop",{key:B[0],offset:B[0],"stop-color":B[1]},null,8,k1e))),128))],8,P1e)]),Q(a).renderer?(he(),de("text",{key:0,stroke:`url(#${Q(a).gradientId})`,fill:`url(#${Q(a).gradientId})`,x:Q(a).renderer.area[0]/2+8,y:Q(a).renderer.area[1]/2+8},Dt(Q(a).details),9,R1e)):pt("",!0),!Q(o)||Q(o)==="round"?(he(),de("ellipse",{key:1,cx:Q(a).renderer.area[0]/2+8,cy:Q(a).renderer.area[1]/2+8,rx:Q(a).renderer.area[0]/2+5,ry:Q(a).renderer.area[1]/2+5,stroke:`url(#${Q(a).gradientId})`},null,8,O1e)):(he(),de("rect",{key:2,x:"2",y:"2",rx:Q(o)==="roundRect"?10:0,ry:Q(o)==="roundRect"?10:0,width:Q(a).renderer.area[0]+12,height:Q(a).renderer.area[1]+12,stroke:`url(#${Q(a).gradientId})`},null,8,H1e))])):pt("",!0),ae("canvas",{ref_key:"waterPondLevel",ref:n,style:qt(`border-radius: ${Q(i)};`)},null,4)]))}},wQ={install(r){r.component("DvWaterLevelPond",N1e)}},V1e={},G1e={class:"dv-loading"},z1e={class:"loading-tip"};function $1e(r,e){return he(),de("div",G1e,[e[0]||(e[0]=Zp('',1)),ae("div",z1e,[Ft(r.$slots,"default")])])}const K1e=Oo(V1e,[["render",$1e]]),BQ={install(r){r.component("DvLoading",K1e)}},W1e=["width","height"],X1e=["id"],Y1e=["id"],Z1e=["id","cx","cy"],j1e=["values","dur"],J1e=["dur"],q1e=["id"],eBe=["xlink:href","fill"],tBe=["xlink:href","fill","mask"],rBe=["xlink:href","width","height","x","y"],nBe=["fill","x","y"],aBe=["id","d"],iBe=["xlink:href","stroke-width","stroke"],oBe=["id"],sBe=["r","fill"],ABe=["dur","path"],lBe=["xlink:href","stroke-width","stroke","mask"],uBe=["from","to","dur"],cBe={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,l,A),o=It({unique:Math.random(),flylineGradientId:`flyline-gradient-id-${t}`,haloGradientId:`halo-gradient-id-${t}`,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null});let s;St(()=>{s=PU()}),Et(()=>e.config,()=>{u()},{deep:!0});function A(){u()}function l(){u()}async function u(){c(),f(),h(),await g()}function c(){const m=Bt(_t(o.defaultConfig),e.config||{}),{points:w,lines:B,halo:C,text:b,icon:_,line:x}=m;m.points=w.map(S=>(S.halo=Bt(_t(C),S.halo||{}),S.text=Bt(_t(b),S.text||{}),S.icon=Bt(_t(_),S.icon||{}),S)),m.lines=B.map(S=>Bt(_t(x),S)),o.mergedConfig=m}function f(){const{relative:m,points:w}=o.mergedConfig;o.flylinePoints=w.map((B,C)=>{const{coordinate:[b,_],halo:x,icon:S,text:I}=B;m&&(B.coordinate=[b*a.value,_*i.value]),B.halo.time=_f(...x.duration)/10;const{width:L,height:T}=S;B.icon.x=B.coordinate[0]-L/2,B.icon.y=B.coordinate[1]-T/2;const[M,R]=I.offset;return B.text.x=B.coordinate[0]+M,B.text.y=B.coordinate[1]+R,B.key=`${B.coordinate.toString()}${C}`,B})}function h(){const{points:m,lines:w}=o.mergedConfig;o.flylines=w.map(B=>{const{source:C,target:b,duration:_}=B,x=m.find(({name:R})=>R===C).coordinate,S=m.find(({name:R})=>R===b).coordinate,I=v(x,S).map(R=>R.map(P=>Number.parseFloat(P.toFixed(10)))),L=`M${I[0].toString()} Q${I[1].toString()} ${I[2].toString()}`,T=`path${I.toString()}`,M=_f(..._)/10;return{...B,path:I,key:T,d:L,time:M}})}function v(m,w){const B=d(m,w);return[m,B,w]}function d([m,w],[B,C]){const{curvature:b,k:_}=o.mergedConfig,[x,S]=[(m+B)/2,(w+C)/2],I=Yp([m,w],[B,C])/b,L=I/2;let[T,M]=[x,S];do T+=L,M=p(_,[x,S],T)[1];while(Yp([x,S],[T,M])s.proxy.$refs[m][0].getTotalLength())}function y({offsetX:m,offsetY:w}){if(!e.dev)return;const B=(m/a.value).toFixed(2),C=(w/i.value).toFixed(2);console.warn(`dv-flyline-chart-enhanced DEV: Click Position is [${m}, ${w}] Relative Position is [${B}, ${C}]`)}return(m,w)=>(he(),de("div",{ref_key:"flylineChartEnhanced",ref:n,class:"dv-flyline-chart-enhanced",style:qt(`background-image: url(${Q(o).mergedConfig?Q(o).mergedConfig.bgImgSrc:""})`),onClick:y},[Q(o).flylines.length?(he(),de("svg",{key:0,width:Q(a),height:Q(i)},[ae("defs",null,[ae("radialGradient",{id:Q(o).flylineGradientId,cx:"50%",cy:"50%",r:"50%"},w[0]||(w[0]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,X1e),ae("radialGradient",{id:Q(o).haloGradientId,cx:"50%",cy:"50%",r:"50%"},w[1]||(w[1]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,Y1e)]),(he(!0),de(lt,null,dt(Q(o).flylinePoints,B=>(he(),de("g",{key:B.key+Math.random()},[ae("defs",null,[B.halo.show?(he(),de("circle",{key:0,id:`halo${Q(o).unique}${B.key}`,cx:B.coordinate[0],cy:B.coordinate[1]},[ae("animate",{attributeName:"r",values:`1;${B.halo.radius}`,dur:`${B.halo.time}s`,repeatCount:"indefinite"},null,8,j1e),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${B.halo.time}s`,repeatCount:"indefinite"},null,8,J1e)],8,Z1e)):pt("",!0)]),ae("mask",{id:`mask${Q(o).unique}${B.key}`},[B.halo.show?(he(),de("use",{key:0,"xlink:href":`#halo${Q(o).unique}${B.key}`,fill:`url(#${Q(o).haloGradientId})`},null,8,eBe)):pt("",!0)],8,q1e),B.halo.show?(he(),de("use",{key:0,"xlink:href":`#halo${Q(o).unique}${B.key}`,fill:B.halo.color,mask:`url(#mask${Q(o).unique}${B.key})`},null,8,tBe)):pt("",!0),B.icon.show?(he(),de("image",{key:1,"xlink:href":B.icon.src,width:B.icon.width,height:B.icon.height,x:B.icon.x,y:B.icon.y},null,8,rBe)):pt("",!0),B.text.show?(he(),de("text",{key:2,style:qt(`fontSize:${B.text.fontSize}px;color:${B.text.color}`),fill:B.text.color,x:B.text.x,y:B.text.y},Dt(B.name),13,nBe)):pt("",!0)]))),128)),(he(!0),de(lt,null,dt(Q(o).flylines,(B,C)=>(he(),de("g",{key:B.key+Math.random()},[ae("defs",null,[ae("path",{id:B.key,ref_for:!0,ref:B.key,d:B.d,fill:"transparent"},null,8,aBe)]),ae("use",{"xlink:href":`#${B.key}`,"stroke-width":B.width,stroke:B.orbitColor},null,8,iBe),ae("mask",{id:`mask${Q(o).unique}${B.key}`},[ae("circle",{cx:"0",cy:"0",r:B.radius,fill:`url(#${Q(o).flylineGradientId})`},[ae("animateMotion",{dur:B.time,path:B.d,rotate:"auto",repeatCount:"indefinite"},null,8,ABe)],8,sBe)],8,oBe),Q(o).flylineLengths[C]?(he(),de("use",{key:0,"xlink:href":`#${B.key}`,"stroke-width":B.width,stroke:B.color,mask:`url(#mask${Q(o).unique}${B.key})`},[ae("animate",{attributeName:"stroke-dasharray",from:`0, ${Q(o).flylineLengths[C]}`,to:`${Q(o).flylineLengths[C]}, 0`,dur:B.time,repeatCount:"indefinite"},null,8,uBe)],8,lBe)):pt("",!0)]))),128))],8,W1e)):pt("",!0)],4))}},CQ={install(r){r.component("DvFlylineChartEnhanced",cBe)}},fBe=["width","height"],hBe=["id"],vBe=["id"],dBe=["id","cx","cy"],pBe=["values","dur"],gBe=["dur"],yBe=["xlink:href","width","height","x","y"],mBe=["id"],wBe=["xlink:href","fill"],BBe=["xlink:href","fill","mask"],CBe=["id","d"],bBe=["xlink:href","stroke-width","stroke"],xBe=["xlink:href","stroke-width","stroke","mask"],_Be=["from","to","dur"],SBe=["id"],TBe=["r","fill"],IBe=["dur","path"],LBe=["xlink:href","width","height","x","y"],EBe=["fill","x","y"],MBe={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,l,A),o=It({unique:Math.random(),maskId:`flyline-mask-id-${t}`,maskCircleId:`mask-circle-id-${t}`,gradientId:`gradient-id-${t}`,gradient2Id:`gradient2-id-${t}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]});let s;St(()=>{s=PU()}),Et(()=>e.config,()=>{u()},{deep:!0});function A(){u()}function l(){u()}async function u(){c(),f(),await p(),g(),y()}function c(){const w=Bt(_t(o.defaultConfig),e.config||{}),{points:B}=w;w.points=B.map(C=>Array.isArray(C)?{position:C,text:""}:C),o.mergedConfig=w}function f(){let{centerPoint:w,points:B}=o.mergedConfig;const{relative:C}=o.mergedConfig;B=B.map(({position:b})=>b),C&&(w=[a.value*w[0],i.value*w[1]],B=B.map(([b,_])=>[a.value*b,i.value*_])),o.paths=B.map(b=>h(w,b))}function h(w,B){const C=v(w,B);return[B,C,w]}function v([w,B],[C,b]){const{curvature:_,k:x}=o.mergedConfig,[S,I]=[(w+C)/2,(B+b)/2],L=Yp([w,B],[C,b])/_,T=L/2;let[M,R]=[S,I];do M+=T,R=d(x,[S,I],M)[1];while(Yp([S,I],[M,R])s.proxy.$refs[`path${B}`][0].getTotalLength())}function g(){const{duration:w,points:B}=o.mergedConfig;o.times=B.map(()=>_f(...w)/10)}function y(){const{points:w}=o.mergedConfig;o.texts=w.map(({text:B})=>B)}function m({offsetX:w,offsetY:B}){if(!e.dev)return;const C=(w/a.value).toFixed(2),b=(B/i.value).toFixed(2);console.warn(`dv-flyline-chart DEV: Click Position is [${w}, ${B}] Relative Position is [${C}, ${b}]`)}return(w,B)=>(he(),de("div",{ref_key:"flylineChart",ref:n,class:"dv-flyline-chart",style:qt(`background-image: url(${Q(o).mergedConfig?Q(o).mergedConfig.bgImgUrl:""})`),onClick:m},[Q(o).mergedConfig?(he(),de("svg",{key:0,width:Q(a),height:Q(i)},[ae("defs",null,[ae("radialGradient",{id:Q(o).gradientId,cx:"50%",cy:"50%",r:"50%"},B[0]||(B[0]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,hBe),ae("radialGradient",{id:Q(o).gradient2Id,cx:"50%",cy:"50%",r:"50%"},B[1]||(B[1]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,vBe),Q(o).paths[0]?(he(),de("circle",{key:0,id:`circle${Q(o).paths[0].toString()}`,cx:Q(o).paths[0][2][0],cy:Q(o).paths[0][2][1]},[ae("animate",{attributeName:"r",values:`1;${Q(o).mergedConfig.halo.radius}`,dur:`${Q(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,pBe),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${Q(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,gBe)],8,dBe)):pt("",!0)]),Q(o).paths[0]?(he(),de("image",{key:0,"xlink:href":Q(o).mergedConfig.centerPointImg.url,width:Q(o).mergedConfig.centerPointImg.width,height:Q(o).mergedConfig.centerPointImg.height,x:Q(o).paths[0][2][0]-Q(o).mergedConfig.centerPointImg.width/2,y:Q(o).paths[0][2][1]-Q(o).mergedConfig.centerPointImg.height/2},null,8,yBe)):pt("",!0),ae("mask",{id:`maskhalo${Q(o).paths[0].toString()}`},[Q(o).paths[0]?(he(),de("use",{key:0,"xlink:href":`#circle${Q(o).paths[0].toString()}`,fill:`url(#${Q(o).gradient2Id})`},null,8,wBe)):pt("",!0)],8,mBe),Q(o).paths[0]&&Q(o).mergedConfig.halo.show?(he(),de("use",{key:1,"xlink:href":`#circle${Q(o).paths[0].toString()}`,fill:Q(o).mergedConfig.halo.color,mask:`url(#maskhalo${Q(o).paths[0].toString()})`},null,8,BBe)):pt("",!0),(he(!0),de(lt,null,dt(Q(o).paths,(C,b)=>(he(),de("g",{key:b},[ae("defs",null,[ae("path",{id:`path${C.toString()}`,ref_for:!0,ref:`path${b}`,d:`M${C[0].toString()} Q${C[1].toString()} ${C[2].toString()}`,fill:"transparent"},null,8,CBe)]),ae("use",{"xlink:href":`#path${C.toString()}`,"stroke-width":Q(o).mergedConfig.lineWidth,stroke:Q(o).mergedConfig.orbitColor},null,8,bBe),Q(o).lengths[b]?(he(),de("use",{key:0,"xlink:href":`#path${C.toString()}`,"stroke-width":Q(o).mergedConfig.lineWidth,stroke:Q(o).mergedConfig.flylineColor,mask:`url(#mask${Q(o).unique}${C.toString()})`},[ae("animate",{attributeName:"stroke-dasharray",from:`0, ${Q(o).lengths[b]}`,to:`${Q(o).lengths[b]}, 0`,dur:Q(o).times[b]||0,repeatCount:"indefinite"},null,8,_Be)],8,xBe)):pt("",!0),ae("mask",{id:`mask${Q(o).unique}${C.toString()}`},[ae("circle",{cx:"0",cy:"0",r:Q(o).mergedConfig.flylineRadius,fill:`url(#${Q(o).gradientId})`},[ae("animateMotion",{dur:Q(o).times[b]||0,path:`M${C[0].toString()} Q${C[1].toString()} ${C[2].toString()}`,rotate:"auto",repeatCount:"indefinite"},null,8,IBe)],8,TBe)],8,SBe),ae("image",{"xlink:href":Q(o).mergedConfig.pointsImg.url,width:Q(o).mergedConfig.pointsImg.width,height:Q(o).mergedConfig.pointsImg.height,x:C[0][0]-Q(o).mergedConfig.pointsImg.width/2,y:C[0][1]-Q(o).mergedConfig.pointsImg.height/2},null,8,LBe),ae("text",{style:qt(`fontSize:${Q(o).mergedConfig.text.fontSize}px;`),fill:Q(o).mergedConfig.text.color,x:C[0][0]+Q(o).mergedConfig.text.offset[0],y:C[0][1]+Q(o).mergedConfig.text.offset[1]},Dt(Q(o).texts[b]),13,EBe)]))),128))],8,fBe)):pt("",!0)],4))}},bQ={install(r){r.component("DvFlylineChart",MBe)}},DBe={class:"ranking-info"},FBe={class:"rank"},QBe=["innerHTML"],UBe={class:"ranking-value"},PBe={class:"ranking-column"},kBe={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(y=>({fdc8fe50:Q(o),"442085aa":Q(i),ca44414a:Q(A),"31d0b588":Q(s)}));const e=r,t=Ee(null),{height:n}=yt(t,u,l),a=It({defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null,textColor:"#fff",color:"#1370fb",fontSize:13},mergedConfig:null,rowsData:[],rows:[],heights:[],avgHeight:0,animationIndex:0,animationHandler:"",updater:0});Et(()=>e.config,()=>{g(),c()},{deep:!0});const i=rt(()=>e.config.textColor?e.config.textColor:a.defaultConfig.textColor),o=rt(()=>e.config.color?e.config.color:a.defaultConfig.color),s=rt(()=>br(o.value,50)),A=rt(()=>`${e.config.fontSize?e.config.fontSize:a.defaultConfig.fontSize}px`);Qo(()=>{g()});function l(){c()}function u(){a.mergedConfig&&v(!0)}function c(){f(),h(),v(),p(!0)}function f(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config||{})}function h(){let{data:y}=a.mergedConfig;const{rowNum:m,sort:w}=a.mergedConfig;w&&y.sort(({value:S},{value:I})=>S>I?-1:SS),C=Math.min(...B)||0,b=Math.abs(C),_=(Math.max(...B)||0)+b;y=y.map((S,I)=>({...S,ranking:I+1,percent:(S.value+b)/_*100}));const x=y.length;x>m&&x<2*m&&(y=[...y,...y]),y=y.map((S,I)=>({...S,scroll:I})),a.rowsData=y,a.rows=y}function v(y=!1){const{rowNum:m,data:w}=a.mergedConfig,B=n.value/m;a.avgHeight=B,y||(a.heights=Array.from({length:w.length}).fill(B))}const d=rt(()=>a.mergedConfig.carousel==="single");async function p(y=!1){const{waitTime:m,rowNum:w}=a.mergedConfig,B=a.rowsData.length;if(w>=B)return;const{updater:C}=a;if(y&&(await new Promise(S=>setTimeout(S,m)),C!==a.updater))return;const b=d.value?1:w,_=a.rowsData.slice(a.animationIndex);if(_.push(...a.rowsData.slice(0,a.animationIndex)),a.rows=_.slice(0,d.value?w+1:w*2),a.heights=Array.from({length:B}).fill(a.avgHeight),await new Promise(S=>setTimeout(S,300)),C!==a.updater)return;a.heights.fill(0,0,b),a.animationIndex+=b;const x=a.animationIndex-B;x>=0&&(a.animationIndex=x),a.animationHandler=setTimeout(p,m-300)}function g(){a.updater=(a.updater+1)%999999,a.animationHandler&&clearTimeout(a.animationHandler)}return(y,m)=>(he(),de("div",{ref_key:"scrollRankingBoard",ref:t,class:"dv-scroll-ranking-board"},[(he(!0),de(lt,null,dt(Q(a).rows,(w,B)=>(he(),de("div",{key:w.toString()+w.scroll,class:"row-item",style:qt(`height: ${Q(a).heights[B]}px;`)},[ae("div",DBe,[ae("div",FBe," No."+Dt(w.ranking),1),ae("div",{class:"info-name",innerHTML:w.name},null,8,QBe),ae("div",UBe,Dt(Q(a).mergedConfig.valueFormatter?Q(a).mergedConfig.valueFormatter(w):w.value+Q(a).mergedConfig.unit),1)]),ae("div",PBe,[ae("div",{class:"inside-column",style:qt(`width: ${w.percent}%;`)},m[0]||(m[0]=[ae("div",{class:"shine"},null,-1)]),4)])],4))),128))],512))}},RBe=Oo(kBe,[["__scopeId","data-v-26f5f75f"]]),xQ={install(r){r.component("DvScrollRankingBoard",RBe)}},OBe=["align","innerHTML"],HBe=["align","onClick","onMouseenter","innerHTML"],NBe={__name:"index",props:{config:{type:Object,default:()=>({})}},emits:["mouseover","click","getFirstRow"],setup(r,{expose:e,emit:t}){const n=r,a=t,i=Ee(null),{width:o,height:s}=yt(i,f,c),A=It({defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1});Et(()=>n.config,()=>{B(),h()},{deep:!0}),Qo(()=>{B()}),e({updateRows:C});function l(b,_,x,S){const{ceils:I,rowIndex:L}=x;a("click",{row:I,ceil:S,rowIndex:L,columnIndex:_})}function u(b,_,x,S,I){if(b){const{ceils:L,rowIndex:T}=S;a("mouseover",{row:L,ceil:I,rowIndex:T,columnIndex:x})}A.mergedConfig.hoverPause&&(b?B():w(!0))}function c(){h()}function f(){A.mergedConfig&&(g(),y())}function h(){v(),d(),p(),g(),y(),m(),w(!0)}function v(){A.mergedConfig=Bt(_t(A.defaultConfig),n.config||{})}function d(){let{header:b}=A.mergedConfig;const{index:_,indexHeader:x}=A.mergedConfig;if(!b.length){b=[];return}b=[...b],_&&b.unshift(x),A.header=b}function p(){let{data:b}=A.mergedConfig;const{index:_,headerBGC:x,rowNum:S}=A.mergedConfig;_&&(b=b.map((L,T)=>{L=[...L];const M=`${T+1}`;return L.unshift(M),L})),b=b.map((L,T)=>({ceils:L,rowIndex:T}));const I=b.length;I>S&&I<2*S&&(b=[...b,...b]),b=b.map((L,T)=>({...L,scroll:T})),A.rowsData=b,A.rows=b}function g(){const{columnWidth:b,header:_}=A.mergedConfig,x=b.reduce((T,M)=>T+M,0);let S=0;A.rowsData[0]?S=A.rowsData[0].ceils.length:_.length&&(S=_.length);const I=(o.value-x)/(S-b.length),L=Array.from({length:S}).fill(I);A.widths=Bt(L,b)}function y(b=!1){const{headerHeight:_,rowNum:x,data:S}=A.mergedConfig;let I=s.value;A.header.length&&(I-=_);const L=I/x;A.avgHeight=L,b||(A.heights=Array.from({length:S.length}).fill(L))}function m(){const b=A.header.length,_=Array.from({length:b}).fill("left"),{align:x}=A.mergedConfig;A.aligns=Bt(_,x)}async function w(b=!1){A.needCalc&&(p(),y(),A.needCalc=!1);const{waitTime:_,carousel:x,rowNum:S}=A.mergedConfig,{updater:I}=A,L=A.rowsData.length;if(S>=L||(b&&await new Promise(P=>setTimeout(P,_)),I!==A.updater))return;const T=x==="single"?1:S,M=A.rowsData.slice(A.animationIndex);if(M.push(...A.rowsData.slice(0,A.animationIndex)),A.rows=M.slice(0,x==="page"?S*2:S+1),A.heights=Array.from({length:L}).fill(A.avgHeight),await new Promise(P=>setTimeout(P,300)),I!==A.updater)return;A.heights.splice(0,T,...Array.from({length:T}).fill(0)),A.animationIndex+=T;const R=A.animationIndex-L;R>=0&&(A.animationIndex=R),A.animationHandler=setTimeout(w,_-300),a("getFirstRow",M[1])}function B(){A.updater=(A.updater+1)%999999,A.animationHandler&&clearTimeout(A.animationHandler)}function C(b,_){A.mergedConfig={...A.mergedConfig,data:[...b]},A.needCalc=!0,typeof _=="number"&&(A.animationIndex=_),A.animationHandler||w(!0)}return(b,_)=>(he(),de("div",{ref_key:"scrollBoard",ref:i,class:"dv-scroll-board"},[Q(A).header.length&&Q(A).mergedConfig?(he(),de("div",{key:0,class:"header",style:qt(`background-color: ${Q(A).mergedConfig.headerBGC};`)},[(he(!0),de(lt,null,dt(Q(A).header,(x,S)=>(he(),de("div",{key:`${x}${S}`,class:"header-item",style:qt(` height: ${Q(A).mergedConfig.headerHeight}px; line-height: ${Q(A).mergedConfig.headerHeight}px; width: ${Q(A).widths[S]}px; `),align:Q(A).aligns[S],innerHTML:x},null,12,OBe))),128))],4)):pt("",!0),Q(A).mergedConfig?(he(),de("div",{key:1,class:"rows",style:qt(`height: ${Q(s)-(Q(A).header.length?Q(A).mergedConfig.headerHeight:0)}px;`)},[(he(!0),de(lt,null,dt(Q(A).rows,(x,S)=>(he(),de("div",{key:`${x.toString()}${x.scroll}`,class:"row-item",style:qt(` height: ${Q(A).heights[S]}px; line-height: ${Q(A).heights[S]}px; background-color: ${Q(A).mergedConfig[x.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]}; `)},[(he(!0),de(lt,null,dt(x.ceils,(I,L)=>(he(),de("div",{key:`${I}${S}${L}`,class:"ceil",style:qt(`width: ${Q(A).widths[L]}px;`),align:Q(A).aligns[L],onClick:T=>l(S,L,x,I),onMouseenter:T=>u(!0,S,L,x,I),onMouseleave:_[0]||(_[0]=T=>u(!1)),innerHTML:I},null,44,HBe))),128))],4))),128))],4)):pt("",!0)],512))}},_Q={install(r){r.component("DvScrollBoard",NBe)}};var fV={},SQ={},pn={},TQ;function In(){if(TQ)return pn;TQ=1;var r=Vt;Object.defineProperty(pn,"__esModule",{value:!0}),pn.filterNonNumber=a,pn.deepMerge=i,pn.mulAdd=o,pn.mergeSameStackData=s,pn.getTwoPointDistance=A,pn.getLinearGradientColor=l,pn.getPolylineLength=u,pn.getPointToLineDistance=c,pn.initNeedSeries=f,pn.radianToAngle=h;var e=r(Sr()),t=r(Xr()),n=Pr();function a(v){return v.filter(function(d){return typeof d=="number"})}function i(v,d){for(var p in d){if(v[p]&&(0,t.default)(v[p])==="object"){i(v[p],d[p]);continue}if((0,t.default)(d[p])==="object"){v[p]=(0,n.deepClone)(d[p],!0);continue}v[p]=d[p]}return v}function o(v){return v=a(v),v.reduce(function(d,p){return d+p},0)}function s(v,d){var p=v.stack;if(!p)return(0,e.default)(v.data);var g=d.filter(function(B){var C=B.stack;return C===p}),y=g.findIndex(function(B){var C=B.data;return C===v.data}),m=g.splice(0,y+1).map(function(B){var C=B.data;return C}),w=m[0].length;return new Array(w).fill(0).map(function(B,C){return o(m.map(function(b){return b[C]}))})}function A(v,d){var p=Math.abs(v[0]-d[0]),g=Math.abs(v[1]-d[1]);return Math.sqrt(p*p+g*g)}function l(v,d,p,g){if(!(!v||!d||!p||!g.length)){var y=g;typeof y=="string"&&(y=[g,g]);var m=v.createLinearGradient.apply(v,(0,e.default)(d).concat((0,e.default)(p))),w=1/(y.length-1);return y.forEach(function(B,C){return m.addColorStop(w*C,B)}),m}}function u(v){var d=new Array(v.length-1).fill(0).map(function(g,y){return[v[y],v[y+1]]}),p=d.map(function(g){return A.apply(void 0,(0,e.default)(g))});return o(p)}function c(v,d,p){var g=A(v,d),y=A(v,p),m=A(d,p);return .5*Math.sqrt((g+y+m)*(g+y-m)*(g+m-y)*(y+m-g))/m}function f(v,d,p){return v=v.filter(function(g){var y=g.type;return y===p}),v=v.map(function(g){return i((0,n.deepClone)(d,!0),g)}),v.filter(function(g){var y=g.show;return y})}function h(v){return v/Math.PI*180}return pn}var hV=Vt,VBe=hV(ba()),IQ=hV(Sr()),ay=ny,GBe=e_(),Sf=Pr(),zBe=jf,$Be=In();function LQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function EQ(r){for(var e=1;e0?o:0,A,l,!u);var c=(0,Sf.getCircleRadianPoint)(a,i,s,l).map(function(h){return parseInt(h)+.5}),f=(0,Sf.getCircleRadianPoint)(a,i,o,A).map(function(h){return parseInt(h)+.5});t.lineTo.apply(t,(0,IQ.default)(c)),t.arc(a,i,s>0?s:0,l,A,u),t.lineTo.apply(t,(0,IQ.default)(f)),t.closePath(),t.stroke(),t.fill()}},WBe={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(r){var e=r.shape,t=["rx","ry","r","startAngle","endAngle"];return t.find(function(n){return typeof e[n]!="number"})?(console.error("AgArc shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape,a=e.style,i=a.gradient;i=i.map(function(C){return(0,zBe.getColorFromRgbValue)(C)}),i.length===1&&(i=[i[0],i[0]]);var o=i.length-1,s=n.gradientStartAngle,A=n.gradientEndAngle,l=n.startAngle,u=n.endAngle,c=n.r,f=n.rx,h=n.ry;s===null&&(s=l),A===null&&(A=u);var v=(A-s)/o;v===Math.PI*2&&(v=Math.PI*2-.001);for(var d=0;du&&(w=u,B=!0),t.arc(f,h,c,m,w),t.strokeStyle=y,t.stroke(),B)break}}},XBe={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(r){var e=r.shape,t=e.number,n=e.content,a=e.position;return!(t instanceof Array)||typeof n!="string"||!(a instanceof Array)?(console.error("NumberText shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape,a=n.number,i=n.content,o=n.toFixed,s=n.rowGap,A=n.formatter,l=i.split("{nt}"),u="";l.forEach(function(c,f){var h=a[f];typeof h!="number"&&(h=""),typeof h=="number"&&(h=h.toFixed(o),typeof A=="function"&&(h=A(h))),u+=c+(h||"")}),GBe.text.draw({ctx:t},{shape:EQ(EQ({},n),{},{content:u,rowGap:s})})}},YBe={shape:{x:0,y:0,w:0,h:0},validator:function(r){var e=r.shape,t=e.x,n=e.y,a=e.w,i=e.h;return typeof t!="number"||typeof n!="number"||typeof a!="number"||typeof i!="number"?(console.error("lineIcon shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape;t.beginPath();var a=n.x,i=n.y,o=n.w,s=n.h,A=s/2;t.strokeStyle=t.fillStyle,t.moveTo(a,i+A),t.lineTo(a+o,i+A),t.lineWidth=1,t.stroke(),t.beginPath();var l=A-5*2;l<=0&&(l=3),t.arc(a+o/2,i+A,l,0,Math.PI*2),t.lineWidth=5,t.stroke(),t.fillStyle="#fff",t.fill()},hoverCheck:function(r,e){var t=e.shape,n=t.x,a=t.y,i=t.w,o=t.h;return(0,Sf.checkPointIsInRect)(r,n,a,i,o)},setGraphCenter:function(r,e){var t=e.shape,n=e.style,a=t.x,i=t.y,o=t.w,s=t.h;n.graphCenter=[a+o/2,i+s/2]}};(0,ay.extendNewGraph)("pie",KBe);(0,ay.extendNewGraph)("agArc",WBe);(0,ay.extendNewGraph)("numberText",XBe);(0,ay.extendNewGraph)("lineIcon",YBe);var MQ={},kv={},DQ={},Wu={},FQ;function ZBe(){if(FQ)return Wu;FQ=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.colorConfig=void 0;var r=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];return Wu.colorConfig=r,Wu}var Xu={},QQ;function jBe(){if(QQ)return Xu;QQ=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.gridConfig=void 0;var r={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};return Xu.gridConfig=r,Xu}var vs={},UQ;function JBe(){if(UQ)return vs;UQ=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.yAxisConfig=vs.xAxisConfig=void 0;var r={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};vs.xAxisConfig=r;var e={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};return vs.yAxisConfig=e,vs}var Yu={},PQ;function qBe(){if(PQ)return Yu;PQ=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.titleConfig=void 0;var r={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return Yu.titleConfig=r,Yu}var Zu={},kQ;function eCe(){if(kQ)return Zu;kQ=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.lineConfig=void 0;var r={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return Zu.lineConfig=r,Zu}var ju={},RQ;function tCe(){if(RQ)return ju;RQ=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.barConfig=void 0;var r={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};return ju.barConfig=r,ju}var Ju={},OQ;function vV(){if(OQ)return Ju;OQ=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.pieConfig=void 0;var r={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};return Ju.pieConfig=r,Ju}var qu={},HQ;function rCe(){if(HQ)return qu;HQ=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};return qu.radarAxisConfig=r,qu}var ec={},NQ;function nCe(){if(NQ)return ec;NQ=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.radarConfig=void 0;var r={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};return ec.radarConfig=r,ec}var tc={},VQ;function dV(){if(VQ)return tc;VQ=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.gaugeConfig=void 0;var r={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-(Math.PI/4)*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return tc.gaugeConfig=r,tc}var rc={},GQ;function aCe(){if(GQ)return rc;GQ=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.legendConfig=void 0;var r={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return rc.legendConfig=r,rc}var zQ;function ii(){return zQ||(zQ=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.changeDefaultConfig=v,Object.defineProperty(r,"colorConfig",{enumerable:!0,get:function(){return e.colorConfig}}),Object.defineProperty(r,"gridConfig",{enumerable:!0,get:function(){return t.gridConfig}}),Object.defineProperty(r,"xAxisConfig",{enumerable:!0,get:function(){return n.xAxisConfig}}),Object.defineProperty(r,"yAxisConfig",{enumerable:!0,get:function(){return n.yAxisConfig}}),Object.defineProperty(r,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(r,"lineConfig",{enumerable:!0,get:function(){return i.lineConfig}}),Object.defineProperty(r,"barConfig",{enumerable:!0,get:function(){return o.barConfig}}),Object.defineProperty(r,"pieConfig",{enumerable:!0,get:function(){return s.pieConfig}}),Object.defineProperty(r,"radarAxisConfig",{enumerable:!0,get:function(){return A.radarAxisConfig}}),Object.defineProperty(r,"radarConfig",{enumerable:!0,get:function(){return l.radarConfig}}),Object.defineProperty(r,"gaugeConfig",{enumerable:!0,get:function(){return u.gaugeConfig}}),Object.defineProperty(r,"legendConfig",{enumerable:!0,get:function(){return c.legendConfig}}),r.keys=void 0;var e=ZBe(),t=jBe(),n=JBe(),a=qBe(),i=eCe(),o=tCe(),s=vV(),A=rCe(),l=nCe(),u=dV(),c=aCe(),f=In(),h={colorConfig:e.colorConfig,gridConfig:t.gridConfig,xAxisConfig:n.xAxisConfig,yAxisConfig:n.yAxisConfig,titleConfig:a.titleConfig,lineConfig:i.lineConfig,barConfig:o.barConfig,pieConfig:s.pieConfig,radarAxisConfig:A.radarAxisConfig,radarConfig:l.radarConfig,gaugeConfig:u.gaugeConfig,legendConfig:c.legendConfig};function v(p,g){if(!h["".concat(p,"Config")]){console.warn("Change default config Error - Invalid key!");return}(0,f.deepMerge)(h["".concat(p,"Config")],g)}var d=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];r.keys=d}(DQ)),DQ}var $Q;function iCe(){if($Q)return kv;$Q=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.mergeColor=n;var r=ii(),e=Pr(),t=In();function n(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(0,e.deepClone)(r.colorConfig,!0),s=i.color,A=i.series;if(A||(A=[]),s||(s=[]),i.color=s=(0,t.deepMerge)(o,s),!!A.length){var l=s.length;A.forEach(function(h,v){h.color||(h.color=s[v%l])});var u=A.filter(function(h){var v=h.type;return v==="pie"});u.forEach(function(h){return h.data.forEach(function(v,d){return v.color=s[d%l]})});var c=A.filter(function(h){var v=h.type;return v==="gauge"});c.forEach(function(h){return h.data.forEach(function(v,d){return v.color=s[d%l]})});var f=A.filter(function(h){var v=h.type,d=h.independentColor;return v==="bar"&&d});f.forEach(function(h){h.independentColors||(h.independentColors=s)})}}return kv}var Rv={},rl={},KQ;function oi(){if(KQ)return rl;KQ=1;var r=Vt;Object.defineProperty(rl,"__esModule",{value:!0}),rl.doUpdate=u,rl.Updater=void 0;var e=r(Sr()),t=r(Xr()),n=r(Zf()),a=function c(f,h){(0,n.default)(this,c);var v=f.chart,d=f.key,p=f.getGraphConfig;if(typeof p!="function"){console.warn("Updater need function getGraphConfig!");return}v[d]||(this.graphs=v[d]=[]),Object.assign(this,f),this.update(h)};rl.Updater=a,a.prototype.update=function(c){var f=this,h=this.graphs,v=this.beforeUpdate;if(i(this,c),!!c.length){var d=(0,t.default)(v);c.forEach(function(p,g){d==="function"&&v(h,p,g,f);var y=h[g];y?o(y,p,g,f):A(h,p,g,f)})}};function i(c,f){var h=c.graphs,v=c.chart.render,d=h.length,p=f.length;if(d>p){var g=h.splice(p);g.forEach(function(y){return y.forEach(function(m){return v.delGraph(m)})})}}function o(c,f,h,v){var d=v.getGraphConfig,p=v.chart.render,g=v.beforeChange,y=d(f,v);s(c,y,p),c.forEach(function(m,w){var B=y[w];typeof g=="function"&&g(m,B),l(m,B)})}function s(c,f,h){var v=c.length,d=f.length;if(d>v){var p=c.slice(-1)[0],g=d-v,y=new Array(g).fill(0).map(function(w){return h.clone(p)});c.push.apply(c,(0,e.default)(y))}else if(d0&&arguments[0]!==void 0?arguments[0]:{},f=c.chart,h=c.series,v=c.key,d=c.getGraphConfig,p=c.getStartGraphConfig,g=c.beforeChange,y=c.beforeUpdate,m=c.afterAddGraph;f[v]?f[v].update(h):f[v]=new a({chart:f,key:v,getGraphConfig:d,getStartGraphConfig:p,beforeChange:g,beforeUpdate:y,afterAddGraph:m},h)}return rl}var WQ;function oCe(){if(WQ)return Rv;WQ=1;var r=Vt;Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.title=o;var e=r(on()),t=oi(),n=Pr(),a=ii(),i=In();function o(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[];c.title&&(f[0]=(0,i.deepMerge)((0,n.deepClone)(a.titleConfig,!0),c.title)),(0,t.doUpdate)({chart:u,series:f,key:"title",getGraphConfig:s})}function s(u,c){var f=a.titleConfig.animationCurve,h=a.titleConfig.animationFrame,v=a.titleConfig.rLevel,d=A(u,c),p=l(u);return[{name:"text",index:v,visible:u.show,animationCurve:f,animationFrame:h,shape:d,style:p}]}function A(u,c){var f=u.offset,h=u.text,v=c.chart.gridArea,d=v.x,p=v.y,g=v.w,y=(0,e.default)(f,2),m=y[0],w=y[1];return{content:h,position:[d+g/2+m,p+w]}}function l(u){var c=u.style;return c}return Rv}var Ov={},XQ;function sCe(){if(XQ)return Ov;XQ=1;var r=Vt;Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.grid=l;var e=r(on()),t=r(ba()),n=oi(),a=Pr(),i=ii(),o=In();function s(v,d){var p=Object.keys(v);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(v);d&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(v,y).enumerable})),p.push.apply(p,g)}return p}function A(v){for(var d=1;d1&&arguments[1]!==void 0?arguments[1]:{},p=d.grid;p=(0,o.deepMerge)((0,a.deepClone)(i.gridConfig,!0),p||{}),(0,n.doUpdate)({chart:v,series:[p],key:"grid",getGraphConfig:u})}function u(v,d){var p=v.animationCurve,g=v.animationFrame,y=v.rLevel,m=c(v,d),w=h(v);return d.chart.gridArea=A({},m),[{name:"rect",index:y,animationCurve:p,animationFrame:g,shape:m,style:w}]}function c(v,d){var p=(0,e.default)(d.chart.render.area,2),g=p[0],y=p[1],m=f(v.left,g),w=f(v.right,g),B=f(v.top,y),C=f(v.bottom,y),b=g-m-w,_=y-B-C;return{x:m,y:B,w:b,h:_}}function f(v,d){return typeof v=="number"?v:typeof v!="string"?0:d*parseInt(v)/100}function h(v){var d=v.style;return d}return Ov}var Hv={},YQ;function ACe(){if(YQ)return Hv;YQ=1;var r=Vt;Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.axis=v;var e=r(Xr()),t=r(on()),n=r(ba()),a=r(Sr()),i=oi(),o=ii(),s=In(),A=Pr();function l(V,Y){var Z=Object.keys(V);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(V);Y&&(J=J.filter(function(ue){return Object.getOwnPropertyDescriptor(V,ue).enumerable})),Z.push.apply(Z,J)}return Z}function u(V){for(var Y=1;Y1&&arguments[1]!==void 0?arguments[1]:{},Z=Y.xAxis,J=Y.yAxis,ue=Y.series,fe=[];Z&&J&&ue&&(fe=d(Z,J),fe=p(fe),fe=fe.filter(function(we){var xe=we.show;return xe}),fe=g(fe),fe=y(fe,ue),fe=R(fe),fe=P(fe,V),fe=E(fe),fe=D(fe),fe=U(fe,V)),(0,i.doUpdate)({chart:V,series:fe,key:"axisLine",getGraphConfig:O}),(0,i.doUpdate)({chart:V,series:fe,key:"axisTick",getGraphConfig:te}),(0,i.doUpdate)({chart:V,series:fe,key:"axisLabel",getGraphConfig:re}),(0,i.doUpdate)({chart:V,series:fe,key:"axisName",getGraphConfig:N}),(0,i.doUpdate)({chart:V,series:fe,key:"splitLine",getGraphConfig:ie}),V.axisData=fe}function d(V,Y){var Z=[],J=[];if(V instanceof Array){var ue;(ue=Z).push.apply(ue,(0,a.default)(V))}else Z.push(V);if(Y instanceof Array){var fe;(fe=J).push.apply(fe,(0,a.default)(Y))}else J.push(Y);return Z.splice(2),J.splice(2),Z=Z.map(function(we,xe){return u(u({},we),{},{index:xe,axis:"x"})}),J=J.map(function(we,xe){return u(u({},we),{},{index:xe,axis:"y"})}),[].concat((0,a.default)(Z),(0,a.default)(J))}function p(V){var Y=V.filter(function(J){var ue=J.axis;return ue==="x"}),Z=V.filter(function(J){var ue=J.axis;return ue==="y"});return Y=Y.map(function(J){return(0,s.deepMerge)((0,A.deepClone)(o.xAxisConfig),J)}),Z=Z.map(function(J){return(0,s.deepMerge)((0,A.deepClone)(o.yAxisConfig),J)}),[].concat((0,a.default)(Y),(0,a.default)(Z))}function g(V){var Y=V.filter(function(J){var ue=J.data;return ue==="value"}),Z=V.filter(function(J){var ue=J.data;return ue!=="value"});return Y.forEach(function(J){typeof J.boundaryGap!="boolean"&&(J.boundaryGap=!1)}),Z.forEach(function(J){typeof J.boundaryGap!="boolean"&&(J.boundaryGap=!0)}),[].concat((0,a.default)(Y),(0,a.default)(Z))}function y(V,Y){var Z=V.filter(function(ue){var fe=ue.data;return fe==="value"}),J=V.filter(function(ue){var fe=ue.data;return fe instanceof Array});return Z=m(Z,Y),J=T(J),[].concat((0,a.default)(Z),(0,a.default)(J))}function m(V,Y){return V.map(function(Z){var J=w(Z,Y),ue=b(Z,J),fe=(0,t.default)(ue,2),we=fe[0],xe=fe[1],_e=M(we,xe,Z),Qe=Z.axisLabel.formatter,Ae=[];return we<0&&xe>0?Ae=S(we,xe,_e):Ae=I(we,xe,_e),Ae=Ae.map(function(Te){return parseFloat(Te.toFixed(2))}),u(u({},Z),{},{maxValue:Ae.slice(-1)[0],minValue:Ae[0],label:L(Ae,Qe)})})}function w(V,Y){if(Y=Y.filter(function(we){var xe=we.show,_e=we.type;return!(xe===!1||_e==="pie")}),Y.length===0)return[0,0];var Z=V.index,J=V.axis;Y=C(Y);var ue=J+"Axis",fe=Y.filter(function(we){return we[ue]===Z});return fe.length||(fe=Y),B(fe)}function B(V){if(V){var Y=Math.min.apply(Math,(0,a.default)(V.map(function(J){var ue=J.data;return Math.min.apply(Math,(0,a.default)((0,s.filterNonNumber)(ue)))}))),Z=Math.max.apply(Math,(0,a.default)(V.map(function(J){var ue=J.data;return Math.max.apply(Math,(0,a.default)((0,s.filterNonNumber)(ue)))})));return[Y,Z]}}function C(V){var Y=(0,A.deepClone)(V,!0);return V.forEach(function(Z,J){var ue=(0,s.mergeSameStackData)(Z,V);Y[J].data=ue}),Y}function b(V,Y){var Z=V.min,J=V.max,ue=V.axis,fe=(0,t.default)(Y,2),we=fe[0],xe=fe[1],_e=(0,e.default)(Z),Qe=(0,e.default)(J);if(x(Z)||(Z=c[ue+"AxisConfig"].min,_e="string"),x(J)||(J=c[ue+"AxisConfig"].max,Qe="string"),_e==="string"){Z=parseInt(we-f(we*parseFloat(Z)/100));var Ae=_(Z);Z=parseFloat((Z/Ae-.1).toFixed(1))*Ae}if(Qe==="string"){J=parseInt(xe+f(xe*parseFloat(J)/100));var Te=_(J);J=parseFloat((J/Te+.1).toFixed(1))*Te}return[Z,J]}function _(V){var Y=f(V).toString(),Z=Y.length,J=Y.replace(/0*$/g,"").indexOf("0"),ue=Z-1;return J!==-1&&(ue-=J),h(10,ue)}function x(V){var Y=(0,e.default)(V),Z=Y==="string"&&/^\d+%$/.test(V),J=Y==="number";return Z||J}function S(V,Y,Z){var J=[],ue=[],fe=0,we=0;do J.push(fe-=Z);while(fe>V);do ue.push(we+=Z);while(we1&&(Qe=parseInt(Qe.toString().replace(/\d$/,"0"))),Qe===0&&(Qe=1),typeof ue=="number"&&Qefe?fe:Qe}function R(V){var Y=V.filter(function(J){var ue=J.axis;return ue==="x"}),Z=V.filter(function(J){var ue=J.axis;return ue==="y"});return Y[0]&&!Y[0].position&&(Y[0].position=o.xAxisConfig.position),Y[1]&&!Y[1].position&&(Y[1].position=Y[0].position==="bottom"?"top":"bottom"),Z[0]&&!Z[0].position&&(Z[0].position=o.yAxisConfig.position),Z[1]&&!Z[1].position&&(Z[1].position=Z[0].position==="left"?"right":"left"),[].concat((0,a.default)(Y),(0,a.default)(Z))}function P(V,Y){var Z=Y.gridArea,J=Z.x,ue=Z.y,fe=Z.w,we=Z.h;return V=V.map(function(xe){var _e=xe.position,Qe=[];return _e==="left"?Qe=[[J,ue],[J,ue+we]].reverse():_e==="right"?Qe=[[J+fe,ue],[J+fe,ue+we]].reverse():_e==="top"?Qe=[[J,ue],[J+fe,ue]]:_e==="bottom"&&(Qe=[[J,ue+we],[J+fe,ue+we]]),u(u({},xe),{},{linePosition:Qe})}),V}function E(V,Y){return V.map(function(Z){var J=Z.axis,ue=Z.linePosition,fe=Z.position,we=Z.label,xe=Z.boundaryGap;typeof xe!="boolean"&&(xe=c[J+"AxisConfig"].boundaryGap);var _e=we.length,Qe=(0,t.default)(ue,2),Ae=(0,t.default)(Qe[0],2),Te=Ae[0],it=Ae[1],kt=(0,t.default)(Qe[1],2),vr=kt[0],Yr=kt[1],mA=J==="x"?vr-Te:Yr-it,Ho=mA/(xe?_e:_e-1),Mn=new Array(_e).fill(0).map(function(c_e,Jf){return J==="x"?[Te+Ho*(xe?Jf+.5:Jf),it]:[Te,it+Ho*(xe?Jf+.5:Jf)]}),ea=k(J,xe,fe,Mn,Ho);return u(u({},Z),{},{tickPosition:Mn,tickLinePosition:ea,tickGap:Ho})})}function k(V,Y,Z,J,ue){var fe=V==="x"?1:0,we=5;V==="x"&&Z==="top"&&(we=-5),V==="y"&&Z==="left"&&(we=-5);var xe=J.map(function(_e){var Qe=(0,A.deepClone)(_e);return Qe[fe]+=we,[(0,A.deepClone)(_e),Qe]});return Y&&(fe=V==="x"?0:1,we=ue/2,xe.forEach(function(_e){var Qe=(0,t.default)(_e,2),Ae=Qe[0],Te=Qe[1];Ae[fe]+=we,Te[fe]+=we})),xe}function D(V,Y){return V.map(function(Z){var J=Z.nameGap,ue=Z.nameLocation,fe=Z.position,we=Z.linePosition,xe=(0,t.default)(we,2),_e=xe[0],Qe=xe[1],Ae=(0,a.default)(_e);ue==="end"&&(Ae=(0,a.default)(Qe)),ue==="center"&&(Ae[0]=(_e[0]+Qe[0])/2,Ae[1]=(_e[1]+Qe[1])/2);var Te=0;fe==="top"&&ue==="center"&&(Te=1),fe==="bottom"&&ue==="center"&&(Te=1),fe==="left"&&ue!=="center"&&(Te=1),fe==="right"&&ue!=="center"&&(Te=1);var it=J;return fe==="top"&&ue!=="end"&&(it*=-1),fe==="left"&&ue!=="start"&&(it*=-1),fe==="bottom"&&ue==="start"&&(it*=-1),fe==="right"&&ue==="end"&&(it*=-1),Ae[Te]+=it,u(u({},Z),{},{namePosition:Ae})})}function U(V,Y){var Z=Y.gridArea,J=Z.w,ue=Z.h;return V.map(function(fe){var we=fe.tickLinePosition,xe=fe.position,_e=fe.boundaryGap,Qe=0,Ae=J;(xe==="top"||xe==="bottom")&&(Qe=1),(xe==="top"||xe==="bottom")&&(Ae=ue),(xe==="right"||xe==="bottom")&&(Ae*=-1);var Te=we.map(function(it){var kt=(0,t.default)(it,1),vr=kt[0],Yr=(0,a.default)(vr);return Yr[Qe]+=Ae,[(0,a.default)(vr),Yr]});return _e||Te.shift(),u(u({},fe),{},{splitLinePosition:Te})})}function O(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel;return[{name:"polyline",index:J,visible:V.axisLine.show,animationCurve:Y,animationFrame:Z,shape:G(V),style:X(V)}]}function G(V){var Y=V.linePosition;return{points:Y}}function X(V){return V.axisLine.style}function te(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=ne(V),fe=ye(V);return ue.map(function(we){return{name:"polyline",index:J,visible:V.axisTick.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe}})}function ne(V){var Y=V.tickLinePosition;return Y.map(function(Z){return{points:Z}})}function ye(V){return V.axisTick.style}function re(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=W(V),fe=oe(V,ue);return ue.map(function(we,xe){return{name:"text",index:J,visible:V.axisLabel.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe[xe],setGraphCenter:function(){}}})}function W(V){var Y=V.label,Z=V.tickPosition,J=V.position;return Z.map(function(ue,fe){return{position:ee(ue,J),content:Y[fe].toString()}})}function ee(V,Y){var Z=0,J=10;return(Y==="top"||Y==="bottom")&&(Z=1),(Y==="top"||Y==="left")&&(J=-10),V=(0,A.deepClone)(V),V[Z]+=J,V}function oe(V,Y){var Z=V.position,J=V.axisLabel.style,ue=H(Z);J=(0,s.deepMerge)(ue,J);var fe=Y.map(function(we){var xe=we.position;return u(u({},J),{},{graphCenter:xe})});return fe}function H(V){if(V==="left")return{textAlign:"right",textBaseline:"middle"};if(V==="right")return{textAlign:"left",textBaseline:"middle"};if(V==="top")return{textAlign:"center",textBaseline:"bottom"};if(V==="bottom")return{textAlign:"center",textBaseline:"top"}}function N(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel;return[{name:"text",index:J,animationCurve:Y,animationFrame:Z,shape:K(V),style:$(V)}]}function K(V){var Y=V.name,Z=V.namePosition;return{content:Y,position:Z}}function $(V){var Y=V.nameLocation,Z=V.position,J=V.nameTextStyle,ue=j(Z,Y);return(0,s.deepMerge)(ue,J)}function j(V,Y){if(V==="top"&&Y==="start"||V==="bottom"&&Y==="start"||V==="left"&&Y==="center")return{textAlign:"right",textBaseline:"middle"};if(V==="top"&&Y==="end"||V==="bottom"&&Y==="end"||V==="right"&&Y==="center")return{textAlign:"left",textBaseline:"middle"};if(V==="top"&&Y==="center"||V==="left"&&Y==="end"||V==="right"&&Y==="end")return{textAlign:"center",textBaseline:"bottom"};if(V==="bottom"&&Y==="center"||V==="left"&&Y==="start"||V==="right"&&Y==="start")return{textAlign:"center",textBaseline:"top"}}function ie(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=z(V),fe=q(V);return ue.map(function(we){return{name:"polyline",index:J,visible:V.splitLine.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe}})}function z(V){var Y=V.splitLinePosition;return Y.map(function(Z){return{points:Z}})}function q(V){return V.splitLine.style}return Hv}var Nv={},ZQ;function lCe(){if(ZQ)return Nv;ZQ=1;var r=Vt;Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.line=h;var e=r(Xr()),t=r(on()),n=r(Sr()),a=r(ba()),i=oi(),o=ii(),s=r(qx()),A=In();function l(re,W){var ee=Object.keys(re);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(re);W&&(oe=oe.filter(function(H){return Object.getOwnPropertyDescriptor(re,H).enumerable})),ee.push.apply(ee,oe)}return ee}function u(re){for(var W=1;W1&&arguments[1]!==void 0?arguments[1]:{},ee=W.xAxis,oe=W.yAxis,H=W.series,N=[];ee&&oe&&H&&(N=(0,A.initNeedSeries)(H,o.lineConfig,"line"),N=v(N,re)),(0,i.doUpdate)({chart:re,series:N,key:"lineArea",getGraphConfig:m,getStartGraphConfig:_,beforeUpdate:x,beforeChange:S}),(0,i.doUpdate)({chart:re,series:N,key:"line",getGraphConfig:I,getStartGraphConfig:R,beforeUpdate:x,beforeChange:S}),(0,i.doUpdate)({chart:re,series:N,key:"linePoint",getGraphConfig:P,getStartGraphConfig:D}),(0,i.doUpdate)({chart:re,series:N,key:"lineLabel",getGraphConfig:U})}function v(re,W){var ee=W.axisData;return re.map(function(oe){var H=(0,A.mergeSameStackData)(oe,re);H=d(oe,H);var N=p(oe,ee),K=g(H,N),$=y(N);return u(u({},oe),{},{linePosition:K.filter(function(j){return j}),lineFillBottomPos:$})})}function d(re,W){var ee=re.data;return W.map(function(oe,H){return typeof ee[H]=="number"?oe:null})}function p(re,W){var ee=re.xAxisIndex,oe=re.yAxisIndex,H=W.find(function(K){var $=K.axis,j=K.index;return $==="x"&&j===ee}),N=W.find(function(K){var $=K.axis,j=K.index;return $==="y"&&j===oe});return[H,N]}function g(re,W){var ee=W.findIndex(function(fe){var we=fe.data;return we==="value"}),oe=W[ee],H=W[1-ee],N=oe.linePosition,K=oe.axis,$=H.tickPosition,j=$.length,ie=K==="x"?0:1,z=N[0][ie],q=N[1][ie],V=q-z,Y=oe.maxValue,Z=oe.minValue,J=Y-Z,ue=new Array(j).fill(0).map(function(fe,we){var xe=re[we];if(typeof xe!="number")return null;var _e=(xe-Z)/J;return J===0&&(_e=0),_e*V+z});return ue.map(function(fe,we){if(we>=j||typeof fe!="number")return null;var xe=[fe,$[we][1-ie]];return ie===0||xe.reverse(),xe})}function y(re){var W=re.find(function(q){var V=q.data;return V==="value"}),ee=W.axis,oe=W.linePosition,H=W.minValue,N=W.maxValue,K=ee==="x"?0:1,$=oe[0][K];if(H<0&&N>0){var j=N-H,ie=Math.abs(oe[0][K]-oe[1][K]),z=Math.abs(H)/j*ie;ee==="y"&&(z*=-1),$+=z}return{changeIndex:K,changeValue:$}}function m(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.lineFillBottomPos,H=re.rLevel;return[{name:L(re),index:H,animationCurve:W,animationFrame:ee,visible:re.lineArea.show,lineFillBottomPos:oe,shape:w(re),style:B(re),drawed:b}]}function w(re){var W=re.linePosition;return{points:W}}function B(re){var W=re.lineArea,ee=re.color,oe=W.gradient,H=W.style,N=[H.fill||ee],K=(0,A.deepMerge)(N,oe);K.length===1&&K.push(K[0]);var $=C(re);return H=u(u({},H),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,A.deepMerge)({gradientColor:K,gradientParams:$,gradientType:"linear",gradientWith:"fill"},H)}function C(re){var W=re.lineFillBottomPos,ee=re.linePosition,oe=W.changeIndex,H=W.changeValue,N=ee.map(function(ie){return ie[oe]}),K=Math.max.apply(Math,(0,n.default)(N)),$=Math.min.apply(Math,(0,n.default)(N)),j=K;return oe===1&&(j=$),oe===1?[0,j,0,H]:[j,0,H,0]}function b(re,W){var ee=re.lineFillBottomPos,oe=re.shape,H=W.ctx,N=oe.points,K=ee.changeIndex,$=ee.changeValue,j=(0,n.default)(N[N.length-1]),ie=(0,n.default)(N[0]);j[K]=$,ie[K]=$,H.lineTo.apply(H,(0,n.default)(j)),H.lineTo.apply(H,(0,n.default)(ie)),H.closePath(),H.fill()}function _(re){var W=m(re)[0],ee=u({},W.style);return ee.opacity=0,W.style=ee,[W]}function x(re,W,ee,oe){var H=re[ee];if(H){var N=L(W),K=oe.chart.render,$=H[0].name,j=N!==$;j&&(H.forEach(function(ie){return K.delGraph(ie)}),re[ee]=null)}}function S(re,W){var ee=W.shape.points,oe=re.shape.points,H=oe.length,N=ee.length;if(N>H){var K=oe.slice(-1)[0],$=new Array(N-H).fill(0).map(function(j){return(0,n.default)(K)});oe.push.apply(oe,(0,n.default)($))}else N1&&arguments[1]!==void 0?arguments[1]:!1;if(!W)return(0,A.getPolylineLength)(re);var ee=c(re);return f(ee)}function R(re){var W=re.lineStyle.lineDash,ee=I(re)[0],oe=ee.style.lineDash;return W?oe=[0,0]:oe=(0,n.default)(oe).reverse(),ee.style.lineDash=oe,[ee]}function P(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.rLevel,H=E(re),N=k(re);return H.map(function(K){return{name:"circle",index:oe+2,visible:re.linePoint.show,animationCurve:W,animationFrame:ee,shape:K,style:N}})}function E(re){var W=re.linePosition,ee=re.linePoint.radius;return W.map(function(oe){var H=(0,t.default)(oe,2),N=H[0],K=H[1];return{r:ee,rx:N,ry:K}})}function k(re){var W=re.color,ee=re.linePoint.style;return(0,A.deepMerge)({stroke:W},ee)}function D(re){var W=P(re);return W.forEach(function(ee){ee.shape.r=.1}),W}function U(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.rLevel,H=O(re),N=ye(re);return H.map(function(K,$){return{name:"text",index:oe+3,visible:re.label.show,animationCurve:W,animationFrame:ee,shape:K,style:N}})}function O(re){var W=ne(re),ee=G(re);return W.map(function(oe,H){return{content:oe,position:ee[H]}})}function G(re){var W=re.linePosition,ee=re.lineFillBottomPos,oe=re.label,H=oe.position,N=oe.offset,K=ee.changeIndex,$=ee.changeValue;return W.map(function(j){if(H==="bottom"&&(j=(0,n.default)(j),j[K]=$),H==="center"){var ie=(0,n.default)(j);ie[K]=$,j=te(j,ie)}return X(j,N)})}function X(re,W){var ee=(0,t.default)(re,2),oe=ee[0],H=ee[1],N=(0,t.default)(W,2),K=N[0],$=N[1];return[oe+K,H+$]}function te(re,W){var ee=(0,t.default)(re,2),oe=ee[0],H=ee[1],N=(0,t.default)(W,2),K=N[0],$=N[1];return[(oe+K)/2,(H+$)/2]}function ne(re){var W=re.data,ee=re.label.formatter;if(W=W.filter(function(H){return typeof H=="number"}).map(function(H){return H.toString()}),!ee)return W;var oe=(0,e.default)(ee);return oe==="string"?W.map(function(H){return ee.replace("{value}",H)}):oe==="function"?W.map(function(H,N){return ee({value:H,index:N})}):W}function ye(re){var W=re.color,ee=re.label.style;return(0,A.deepMerge)({fill:W},ee)}return Nv}var Vv={},jQ;function uCe(){if(jQ)return Vv;jQ=1;var r=Vt;Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.bar=c;var e=r(Xr()),t=r(ba()),n=r(on()),a=r(Sr()),i=oi(),o=ii(),s=Pr(),A=In();function l(z,q){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(z);q&&(Y=Y.filter(function(Z){return Object.getOwnPropertyDescriptor(z,Z).enumerable})),V.push.apply(V,Y)}return V}function u(z){for(var q=1;q1&&arguments[1]!==void 0?arguments[1]:{},V=q.xAxis,Y=q.yAxis,Z=q.series,J=[];V&&Y&&Z&&(J=(0,A.initNeedSeries)(Z,o.barConfig,"bar"),J=f(J,z),J=h(J),J=b(J)),(0,i.doUpdate)({chart:z,series:J.slice(-1),key:"backgroundBar",getGraphConfig:M}),J.reverse(),(0,i.doUpdate)({chart:z,series:J,key:"bar",getGraphConfig:k,getStartGraphConfig:ye,beforeUpdate:oe}),(0,i.doUpdate)({chart:z,series:J,key:"barLabel",getGraphConfig:H})}function f(z,q){var V=q.axisData;return z.forEach(function(Y){var Z=Y.xAxisIndex,J=Y.yAxisIndex;typeof Z!="number"&&(Z=0),typeof J!="number"&&(J=0);var ue=V.find(function(_e){var Qe=_e.axis,Ae=_e.index;return"".concat(Qe).concat(Ae)==="x".concat(Z)}),fe=V.find(function(_e){var Qe=_e.axis,Ae=_e.index;return"".concat(Qe).concat(Ae)==="y".concat(J)}),we=[ue,fe],xe=we.findIndex(function(_e){var Qe=_e.data;return Qe==="value"});Y.valueAxis=we[xe],Y.labelAxis=we[1-xe]}),z}function h(z,q){var V=d(z);return V.forEach(function(Y){v(Y),g(Y),y(Y),m(Y),C(Y)}),z}function v(z){var q=p(z);q=q.map(function(Y){return{stack:Y,index:-1}});var V=0;z.forEach(function(Y){var Z=Y.stack;if(!Z)Y.barIndex=V,V++;else{var J=q.find(function(ue){var fe=ue.stack;return fe===Z});J.index===-1&&(J.index=V,V++),Y.barIndex=J.index}})}function d(z){var q=z.map(function(V){var Y=V.labelAxis,Z=Y.axis,J=Y.index;return Z+J});return q=(0,a.default)(new Set(q)),q.map(function(V){return z.filter(function(Y){var Z=Y.labelAxis,J=Z.axis,ue=Z.index;return J+ue===V})})}function p(z){var q=[];return z.forEach(function(V){var Y=V.stack;Y&&q.push(Y)}),(0,a.default)(new Set(q))}function g(z){var q=(0,a.default)(new Set(z.map(function(V){var Y=V.barIndex;return Y}))).length;z.forEach(function(V){return V.barNum=q})}function y(z){var q=z.slice(-1)[0],V=q.barCategoryGap,Y=q.labelAxis.tickGap,Z=0;typeof V=="number"?Z=V:Z=(1-parseInt(V)/100)*Y,z.forEach(function(J){return J.barCategoryWidth=Z})}function m(z){var q=z.slice(-1)[0],V=q.barCategoryWidth,Y=q.barWidth,Z=q.barGap,J=q.barNum,ue=[];typeof Y=="number"||Y!=="auto"?ue=w(V,Y,Z):Y==="auto"&&(ue=B(V,Y,Z,J));var fe=ue,we=(0,n.default)(fe,2),xe=we[0],_e=we[1];z.forEach(function(Qe){Qe.barWidth=xe,Qe.barGap=_e})}function w(z,q,V){var Y=0,Z=0;return typeof q=="number"?Y=q:Y=parseInt(q)/100*z,typeof V=="number"?Z=V:Z=parseInt(V)/100*Y,[Y,Z]}function B(z,q,V,Y){var Z=0,J=0,ue=z/Y;if(typeof V=="number")J=V,Z=ue-J;else{var fe=10+parseInt(V)/10;fe===0?(Z=ue*2,J=-Z):(Z=ue/fe*10,J=ue-Z)}return[Z,J]}function C(z){var q=z.slice(-1)[0],V=q.barGap,Y=q.barWidth,Z=q.barNum,J=(V+Y)*Z-V;z.forEach(function(ue){return ue.barAllWidthAndGap=J})}function b(z,q){return z=x(z),z=_(z),z=I(z),z=L(z),z}function _(z){return z.map(function(q){var V=q.labelAxis,Y=q.barAllWidthAndGap,Z=q.barGap,J=q.barWidth,ue=q.barIndex,fe=V.tickGap,we=V.tickPosition,xe=V.axis,_e=xe==="x"?0:1,Qe=we.map(function(Ae,Te){var it=we[Te][_e]-fe/2,kt=it+(fe-Y)/2;return kt+(ue+.5)*J+ue*Z});return u(u({},q),{},{barLabelAxisPos:Qe})})}function x(z){return z.map(function(q){var V=(0,A.mergeSameStackData)(q,z);V=S(q,V);var Y=q.valueAxis,Z=Y.axis,J=Y.minValue,ue=Y.maxValue,fe=Y.linePosition,we=T(J,ue,J<0?0:J,fe,Z),xe=V.map(function(Qe){return T(J,ue,Qe,fe,Z)}),_e=xe.map(function(Qe){return[we,Qe]});return u(u({},q),{},{barValueAxisPos:_e})})}function S(z,q){var V=z.data;return q.map(function(Y,Z){return typeof V[Z]=="number"?Y:null}).filter(function(Y){return Y!==null})}function I(z){return z.map(function(q){var V=q.barLabelAxisPos,Y=q.data;return Y.forEach(function(Z,J){typeof Z!="number"&&(V[J]=null)}),u(u({},q),{},{barLabelAxisPos:V.filter(function(Z){return Z!==null})})})}function L(z){return z.forEach(function(q){var V=q.data,Y=q.barLabelAxisPos,Z=q.barValueAxisPos,J=V.filter(function(fe){return typeof fe=="number"}).length,ue=Y.length;ue>J&&(Y.splice(J),Z.splice(J))}),z}function T(z,q,V,Y,Z){if(typeof V!="number")return null;var J=q-z,ue=Z==="x"?0:1,fe=Y[1][ue]-Y[0][ue],we=(V-z)/J;J===0&&(we=0);var xe=we*fe;return xe+Y[0][ue]}function M(z){var q=z.animationCurve,V=z.animationFrame,Y=z.rLevel,Z=R(z),J=E(z);return Z.map(function(ue){return{name:"rect",index:Y,visible:z.backgroundBar.show,animationCurve:q,animationFrame:V,shape:ue,style:J}})}function R(z){var q=z.labelAxis,V=z.valueAxis,Y=q.tickPosition,Z=V.axis,J=V.linePosition,ue=P(z),fe=ue/2,we=Z==="x"?0:1,xe=Y.map(function(Te){return Te[1-we]}),_e=[J[0][we],J[1][we]],Qe=_e[0],Ae=_e[1];return xe.map(function(Te){return Z==="x"?{x:Qe,y:Te-fe,w:Ae-Qe,h:ue}:{x:Te-fe,y:Ae,w:ue,h:Qe-Ae}})}function P(z){var q=z.barAllWidthAndGap,V=z.barCategoryWidth,Y=z.backgroundBar,Z=Y.width;return typeof Z=="number"?Z:Z==="auto"?q:parseInt(Z)/100*V}function E(z){return z.backgroundBar.style}function k(z){var q=z.barLabelAxisPos,V=z.animationCurve,Y=z.animationFrame,Z=z.rLevel,J=D(z);return q.map(function(ue,fe){return{name:J,index:Z,animationCurve:V,animationFrame:Y,shape:U(z,fe),style:te(z,fe)}})}function D(z){var q=z.shapeType;return q==="leftEchelon"||q==="rightEchelon"?"polyline":"rect"}function U(z,q){var V=z.shapeType;return V==="leftEchelon"?O(z,q):V==="rightEchelon"?G(z,q):X(z,q)}function O(z,q){var V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=z.barWidth,J=z.echelonOffset,ue=(0,n.default)(V[q],2),fe=ue[0],we=ue[1],xe=Y[q],_e=Z/2,Qe=z.valueAxis.axis,Ae=[];return Qe==="x"?(Ae[0]=[we,xe-_e],Ae[1]=[we,xe+_e],Ae[2]=[fe,xe+_e],Ae[3]=[fe+J,xe-_e],we-fe1&&arguments[1]!==void 0?arguments[1]:{},$=K.series;$||($=[]);var j=(0,A.initNeedSeries)($,o.pieConfig,"pie");j=f(j,N),j=h(j,N),j=d(j),j=y(j),j=B(j),j=b(j),j=x(j),j=S(j),(0,i.doUpdate)({chart:N,series:j,key:"pie",getGraphConfig:P,getStartGraphConfig:E,beforeChange:k}),(0,i.doUpdate)({chart:N,series:j,key:"pieInsideLabel",getGraphConfig:O}),(0,i.doUpdate)({chart:N,series:j,key:"pieOutsideLabelLine",getGraphConfig:te,getStartGraphConfig:ne}),(0,i.doUpdate)({chart:N,series:j,key:"pieOutsideLabel",getGraphConfig:W,getStartGraphConfig:ee})}function f(N,K){var $=K.render.area;return N.forEach(function(j){var ie=j.center;ie=ie.map(function(z,q){return typeof z=="number"?z:parseInt(z)/100*$[q]}),j.center=ie}),N}function h(N,K){var $=Math.min.apply(Math,(0,a.default)(K.render.area))/2;return N.forEach(function(j){var ie=j.radius,z=j.data;ie=v(ie,$),z.forEach(function(q){var V=q.radius;V||(V=ie),V=v(V,$),q.radius=V}),j.radius=ie}),N}function v(N,K){return N instanceof Array||(N=[0,N]),N=N.map(function($){return typeof $=="number"?$:parseInt($)/100*K}),N}function d(N,K){var $=N.filter(function(j){var ie=j.roseType;return ie});return $.forEach(function(j){var ie=j.radius,z=j.data,q=j.roseSort,V=g(j),Y=(0,a.default)(z);z=p(z),z.forEach(function(Z,J){Z.radius[1]=ie[1]-V*J}),q?z.reverse():j.data=Y,j.roseIncrement=V}),N}function p(N){return N.sort(function(K,$){var j=K.value,ie=$.value;if(j===ie)return 0;if(j>ie)return-1;if(j1&&arguments[1]!==void 0?arguments[1]:0,$=N.toString(),j=$.split("."),ie=j[1]||"0",z=ie.slice(0,K);return j[1]=z,parseFloat(j.join("."))}function w(N){return(0,A.mulAdd)(N.map(function(K){var $=K.value;return $}))}function B(N){return N.forEach(function(K){var $=K.startAngle,j=K.data;j.forEach(function(ie,z){var q=C(j,z),V=(0,n.default)(q,2),Y=V[0],Z=V[1];ie.startAngle=$+Y,ie.endAngle=$+Z})}),N}function C(N,K){var $=Math.PI*2,j=N.slice(0,K+1),ie=(0,A.mulAdd)(j.map(function(V){var Y=V.percent;return Y})),z=N[K].percent,q=ie-z;return[$*q/100,$*ie/100]}function b(N){return N.forEach(function(K){var $=K.data;$.forEach(function(j){j.insideLabelPos=_(K,j)})}),N}function _(N,K){var $=N.center,j=K.startAngle,ie=K.endAngle,z=(0,n.default)(K.radius,2),q=z[0],V=z[1],Y=(q+V)/2,Z=(j+ie)/2;return s.getCircleRadianPoint.apply(void 0,(0,a.default)($).concat([Y,Z]))}function x(N){return N.forEach(function(K){var $=K.data,j=K.center;$.forEach(function(ie){var z=ie.startAngle,q=ie.endAngle,V=ie.radius,Y=(z+q)/2,Z=s.getCircleRadianPoint.apply(void 0,(0,a.default)(j).concat([V[1],Y]));ie.edgeCenterPos=Z})}),N}function S(N){return N.forEach(function(K){var $=T(K),j=T(K,!1);$=M($),j=M(j),R($,K),R(j,K,!1)}),N}function I(N){var K=N.outsideLabel.labelLineBendGap,$=L(N);return typeof K!="number"&&(K=parseInt(K)/100*$),K+$}function L(N){var K=N.data,$=K.map(function(j){var ie=(0,n.default)(j.radius,2);ie[0];var z=ie[1];return z});return Math.max.apply(Math,(0,a.default)($))}function T(N){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,$=N.data,j=N.center,ie=j[0];return $.filter(function(z){var q=z.edgeCenterPos,V=q[0];return K?V<=ie:V>ie})}function M(N){return N.sort(function(K,$){var j=(0,n.default)(K.edgeCenterPos,2);j[0];var ie=j[1],z=(0,n.default)($.edgeCenterPos,2);z[0];var q=z[1];if(ie>q)return 1;if(ie2&&arguments[2]!==void 0?arguments[2]:!0,j=K.center,ie=K.outsideLabel,z=I(K);N.forEach(function(q){var V=q.edgeCenterPos,Y=q.startAngle,Z=q.endAngle,J=ie.labelLineEndLength,ue=(Y+Z)/2,fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(j).concat([z,ue])),we=(0,a.default)(fe);we[0]+=J*($?-1:1),q.labelLine=[V,fe,we],q.labelLineLength=(0,A.getPolylineLength)(q.labelLine),q.align={textAlign:"left",textBaseline:"middle"},$&&(q.align.textAlign="right")})}function P(N){var K=N.data,$=N.animationCurve,j=N.animationFrame,ie=N.rLevel;return K.map(function(z,q){return{name:"pie",index:ie,animationCurve:$,animationFrame:j,shape:D(N,q),style:U(N,q)}})}function E(N){var K=N.animationDelayGap,$=N.startAnimationCurve,j=P(N);return j.forEach(function(ie,z){ie.animationCurve=$,ie.animationDelay=z*K,ie.shape.or=ie.shape.ir}),j}function k(N){N.animationDelay=0}function D(N,K){var $=N.center,j=N.data,ie=j[K],z=ie.radius,q=ie.startAngle,V=ie.endAngle;return{startAngle:q,endAngle:V,ir:z[0],or:z[1],rx:$[0],ry:$[1]}}function U(N,K){var $=N.pieStyle,j=N.data,ie=j[K],z=ie.color;return(0,A.deepMerge)({fill:z},$)}function O(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"text",index:ie,visible:N.insideLabel.show,animationCurve:K,animationFrame:$,shape:G(N,q),style:X(N)}})}function G(N,K){var $=N.insideLabel,j=N.data,ie=$.formatter,z=j[K],q=(0,t.default)(ie),V="";return q==="string"&&(V=ie.replace("{name}",z.name),V=V.replace("{percent}",z.percentForLabel),V=V.replace("{value}",z.value)),q==="function"&&(V=ie(z)),{content:V,position:z.insideLabelPos}}function X(N,K){var $=N.insideLabel.style;return $}function te(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"polyline",index:ie,visible:N.outsideLabel.show,animationCurve:K,animationFrame:$,shape:ye(N,q),style:re(N,q)}})}function ne(N){var K=N.data,$=te(N);return $.forEach(function(j,ie){j.style.lineDash=[0,K[ie].labelLineLength]}),$}function ye(N,K){var $=N.data,j=$[K];return{points:j.labelLine}}function re(N,K){var $=N.outsideLabel,j=N.data,ie=$.labelLineStyle,z=j[K].color;return(0,A.deepMerge)({stroke:z,lineDash:[j[K].labelLineLength,0]},ie)}function W(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"text",index:ie,visible:N.outsideLabel.show,animationCurve:K,animationFrame:$,shape:oe(N,q),style:H(N,q)}})}function ee(N){var K=N.data,$=W(N);return $.forEach(function(j,ie){j.shape.position=K[ie].labelLine[1]}),$}function oe(N,K){var $=N.outsideLabel,j=N.data,ie=$.formatter,z=j[K],q=z.labelLine,V=z.name,Y=z.percentForLabel,Z=z.value,J=(0,t.default)(ie),ue="";return J==="string"&&(ue=ie.replace("{name}",V),ue=ue.replace("{percent}",Y),ue=ue.replace("{value}",Z)),J==="function"&&(ue=ie(j[K])),{content:ue,position:q[2]}}function H(N,K){var $=N.outsideLabel,j=N.data,ie=j[K],z=ie.color,q=ie.align,V=$.style;return(0,A.deepMerge)(u({fill:z},q),V)}return Gv}var zv={},qQ;function fCe(){if(qQ)return zv;qQ=1;var r=Vt;Object.defineProperty(zv,"__esModule",{value:!0}),zv.radarAxis=u;var e=r(on()),t=r(ba()),n=r(Sr()),a=oi(),i=ii(),o=Pr(),s=In();function A(E,k){var D=Object.keys(E);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(E);k&&(U=U.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),D.push.apply(D,U)}return D}function l(E){for(var k=1;k1&&arguments[1]!==void 0?arguments[1]:{},D=k.radar,U=[];D&&(U=c(D),U=f(U,E),U=h(U,E),U=v(U),U=d(U),U=p(U),U=[U]);var O=U;U.length&&!U[0].show&&(O=[]),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisSplitArea",getGraphConfig:g,beforeUpdate:w,beforeChange:B}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisSplitLine",getGraphConfig:C,beforeUpdate:x,beforeChange:S}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisLine",getGraphConfig:I}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisLable",getGraphConfig:M}),E.radarAxis=U[0]}function c(E){return(0,s.deepMerge)((0,o.deepClone)(i.radarAxisConfig),E)}function f(E,k){var D=k.render.area,U=E.center;return E.centerPos=U.map(function(O,G){return typeof O=="number"?O:parseInt(O)/100*D[G]}),E}function h(E,k){var D=k.render.area,U=E.splitNum,O=E.radius,G=Math.min.apply(Math,(0,n.default)(D))/2;typeof O!="number"&&(O=parseInt(O)/100*G);var X=O/U;return E.ringRadius=new Array(U).fill(0).map(function(te,ne){return X*(ne+1)}),E.radius=O,E}function v(E){var k=E.indicator,D=E.centerPos,U=E.radius,O=E.startAngle,G=Math.PI*2,X=k.length,te=G/X,ne=new Array(X).fill(0).map(function(ye,re){return te*re+O});return E.axisLineAngles=ne,E.axisLinePosition=ne.map(function(ye){return o.getCircleRadianPoint.apply(void 0,(0,n.default)(D).concat([U,ye]))}),E}function d(E){var k=E.ringRadius,D=k[0]/2;return E.areaRadius=k.map(function(U){return U-D}),E}function p(E){var k=E.axisLineAngles,D=E.centerPos,U=E.radius,O=E.axisLabel;return U+=O.labelGap,E.axisLabelPosition=k.map(function(G){return o.getCircleRadianPoint.apply(void 0,(0,n.default)(D).concat([U,G]))}),E}function g(E){var k=E.areaRadius,D=E.polygon,U=E.animationCurve,O=E.animationFrame,G=E.rLevel,X=D?"regPolygon":"ring";return k.map(function(te,ne){return{name:X,index:G,visible:E.splitArea.show,animationCurve:U,animationFrame:O,shape:y(E,ne),style:m(E,ne)}})}function y(E,k){var D=E.polygon,U=E.areaRadius,O=E.indicator,G=E.centerPos,X=O.length,te={rx:G[0],ry:G[1],r:U[k]};return D&&(te.side=X),te}function m(E,k){var D=E.splitArea,U=E.ringRadius,O=E.axisLineAngles,G=E.polygon,X=E.centerPos,te=D.color,ne=D.style;ne=l({fill:"rgba(0, 0, 0, 0)"},ne);var ye=U[0]-0;if(G){var re=o.getCircleRadianPoint.apply(void 0,(0,n.default)(X).concat([U[0],O[0]])),W=o.getCircleRadianPoint.apply(void 0,(0,n.default)(X).concat([U[0],O[1]]));ye=(0,s.getPointToLineDistance)(X,re,W)}if(ne=(0,s.deepMerge)((0,o.deepClone)(ne,!0),{lineWidth:ye}),!te.length)return ne;var ee=te.length;return(0,s.deepMerge)(ne,{stroke:te[k%ee]})}function w(E,k,D,U){var O=E[D];if(O){var G=U.chart.render,X=k.polygon,te=O[0].name,ne=X?"regPolygon":"ring",ye=ne!==te;ye&&(O.forEach(function(re){return G.delGraph(re)}),E[D]=null)}}function B(E,k){var D=k.shape.side;typeof D=="number"&&(E.shape.side=D)}function C(E){var k=E.ringRadius,D=E.polygon,U=E.animationCurve,O=E.animationFrame,G=E.rLevel,X=D?"regPolygon":"ring";return k.map(function(te,ne){return{name:X,index:G,animationCurve:U,animationFrame:O,visible:E.splitLine.show,shape:b(E,ne),style:_(E,ne)}})}function b(E,k){var D=E.ringRadius,U=E.centerPos,O=E.indicator,G=E.polygon,X={rx:U[0],ry:U[1],r:D[k]},te=O.length;return G&&(X.side=te),X}function _(E,k){var D=E.splitLine,U=D.color,O=D.style;if(O=l({fill:"rgba(0, 0, 0, 0)"},O),!U.length)return O;var G=U.length;return(0,s.deepMerge)(O,{stroke:U[k%G]})}function x(E,k,D,U){var O=E[D];if(O){var G=U.chart.render,X=k.polygon,te=O[0].name,ne=X?"regPolygon":"ring",ye=ne!==te;ye&&(O.forEach(function(re){return G.delGraph(re)}),E[D]=null)}}function S(E,k){var D=k.shape.side;typeof D=="number"&&(E.shape.side=D)}function I(E){var k=E.axisLinePosition,D=E.animationCurve,U=E.animationFrame,O=E.rLevel;return k.map(function(G,X){return{name:"polyline",index:O,visible:E.axisLine.show,animationCurve:D,animationFrame:U,shape:L(E,X),style:T(E,X)}})}function L(E,k){var D=E.centerPos,U=E.axisLinePosition,O=[D,U[k]];return{points:O}}function T(E,k){var D=E.axisLine,U=D.color,O=D.style;if(!U.length)return O;var G=U.length;return(0,s.deepMerge)(O,{stroke:U[k%G]})}function M(E){var k=E.axisLabelPosition,D=E.animationCurve,U=E.animationFrame,O=E.rLevel;return k.map(function(G,X){return{name:"text",index:O,visible:E.axisLabel.show,animationCurve:D,animationFrame:U,shape:R(E,X),style:P(E,X)}})}function R(E,k){var D=E.axisLabelPosition,U=E.indicator;return{content:U[k].name,position:D[k]}}function P(E,k){var D=E.axisLabel,U=(0,e.default)(E.centerPos,2),O=U[0],G=U[1],X=E.axisLabelPosition,te=D.color,ne=D.style,ye=(0,e.default)(X[k],2),re=ye[0],W=ye[1],ee=re>O?"left":"right",oe=W>G?"top":"bottom";if(ne=(0,s.deepMerge)({textAlign:ee,textBaseline:oe},ne),!te.length)return ne;var H=te.length;return(0,s.deepMerge)(ne,{fill:te[k%H]})}return zv}var $v={},eU;function hCe(){if(eU)return $v;eU=1;var r=Vt;Object.defineProperty($v,"__esModule",{value:!0}),$v.radar=f;var e=r(ba()),t=r(Xr()),n=r(on()),a=r(Sr()),i=oi(),o=ii(),s=Pr(),A=jf,l=In();function u(T,M){var R=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);M&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(T,E).enumerable})),R.push.apply(R,P)}return R}function c(T){for(var M=1;M1&&arguments[1]!==void 0?arguments[1]:{},R=M.series;R||(R=[]);var P=(0,l.initNeedSeries)(R,o.radarConfig,"radar");P=h(P,T),P=v(P,T),P=d(P,T),(0,i.doUpdate)({chart:T,series:P,key:"radar",getGraphConfig:p,getStartGraphConfig:g,beforeChange:w}),(0,i.doUpdate)({chart:T,series:P,key:"radarPoint",getGraphConfig:B,getStartGraphConfig:C}),(0,i.doUpdate)({chart:T,series:P,key:"radarLabel",getGraphConfig:x})}function h(T,M){var R=M.radarAxis;if(!R)return[];var P=R.indicator,E=R.axisLineAngles,k=R.radius,D=R.centerPos;return T.forEach(function(U){var O=U.data;U.dataRadius=[],U.radarPosition=P.map(function(G,X){var te=G.max,ne=G.min,ye=O[X];typeof te!="number"&&(te=ye),typeof ne!="number"&&(ne=0),typeof ye!="number"&&(ye=ne);var re=(ye-ne)/(te-ne)*k;return U.dataRadius[X]=re,s.getCircleRadianPoint.apply(void 0,(0,a.default)(D).concat([re,E[X]]))})}),T}function v(T,M){var R=M.radarAxis;if(!R)return[];var P=R.centerPos,E=R.axisLineAngles;return T.forEach(function(k){var D=k.dataRadius,U=k.label,O=U.labelGap;k.labelPosition=D.map(function(G,X){return s.getCircleRadianPoint.apply(void 0,(0,a.default)(P).concat([G+O,E[X]]))})}),T}function d(T,M){var R=M.radarAxis;if(!R)return[];var P=(0,n.default)(R.centerPos,2),E=P[0],k=P[1];return T.forEach(function(D){var U=D.labelPosition,O=U.map(function(G){var X=(0,n.default)(G,2),te=X[0],ne=X[1],ye=te>E?"left":"right",re=ne>k?"top":"bottom";return{textAlign:ye,textBaseline:re}});D.labelAlign=O}),T}function p(T){var M=T.animationCurve,R=T.animationFrame,P=T.rLevel;return[{name:"polyline",index:P,animationCurve:M,animationFrame:R,shape:y(T),style:m(T)}]}function g(T,M){var R=M.chart.radarAxis.centerPos,P=p(T)[0],E=P.shape.points.length,k=new Array(E).fill(0).map(function(D){return(0,a.default)(R)});return P.shape.points=k,[P]}function y(T){var M=T.radarPosition;return{points:M,close:!0}}function m(T){var M=T.radarStyle,R=T.color,P=(0,A.getRgbaValue)(R);P[3]=.5;var E={stroke:R,fill:(0,A.getColorFromRgbValue)(P)};return(0,l.deepMerge)(E,M)}function w(T,M){var R=M.shape,P=T.shape.points,E=P.length,k=R.points.length;if(k>E){var D=P.slice(-1)[0],U=new Array(k-E).fill(0).map(function(O){return(0,a.default)(D)});P.push.apply(P,(0,a.default)(U))}else k1&&arguments[1]!==void 0?arguments[1]:{},K=N.series;K||(K=[]);var $=(0,A.initNeedSeries)(K,o.gaugeConfig,"gauge");$=h($,H),$=v($,H),$=d($,H),$=p($),$=g($),$=y($),$=m($),$=w($),$=B($),$=C($),(0,i.doUpdate)({chart:H,series:$,key:"gaugeAxisTick",getGraphConfig:_}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeAxisLabel",getGraphConfig:I}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeBackgroundArc",getGraphConfig:M,getStartGraphConfig:E}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeArc",getGraphConfig:k,getStartGraphConfig:O,beforeChange:G}),(0,i.doUpdate)({chart:H,series:$,key:"gaugePointer",getGraphConfig:X,getStartGraphConfig:re}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeDetails",getGraphConfig:W})}function h(H,N){var K=N.render.area;return H.forEach(function($){var j=$.center;j=j.map(function(ie,z){return typeof ie=="number"?ie:parseInt(ie)/100*K[z]}),$.center=j}),H}function v(H,N){var K=N.render.area,$=Math.min.apply(Math,(0,a.default)(K))/2;return H.forEach(function(j){var ie=j.radius;typeof ie!="number"&&(ie=parseInt(ie)/100*$),j.radius=ie}),H}function d(H,N){var K=N.render.area,$=Math.min.apply(Math,(0,a.default)(K))/2;return H.forEach(function(j){var ie=j.radius,z=j.data,q=j.arcLineWidth;z.forEach(function(V){var Y=V.radius,Z=V.lineWidth;Y||(Y=ie),typeof Y!="number"&&(Y=parseInt(Y)/100*$),V.radius=Y,Z||(Z=q),V.lineWidth=Z})}),H}function p(H,N){return H.forEach(function(K){var $=K.startAngle,j=K.endAngle,ie=K.data,z=K.min,q=K.max,V=j-$,Y=q-z;ie.forEach(function(Z){var J=Z.value,ue=Math.abs((J-z)/Y*V);Z.startAngle=$,Z.endAngle=$+ue})}),H}function g(H,N){return H.forEach(function(K){var $=K.data;$.forEach(function(j){var ie=j.color,z=j.gradient;(!z||!z.length)&&(z=ie),z instanceof Array||(z=[z]),j.gradient=z})}),H}function y(H,N){return H.forEach(function(K){var $=K.startAngle,j=K.endAngle,ie=K.splitNum,z=K.center,q=K.radius,V=K.arcLineWidth,Y=K.axisTick,Z=Y.tickLength,J=Y.style.lineWidth,ue=j-$,fe=q-V/2,we=fe-Z,xe=ue/(ie-1),_e=2*Math.PI*q*ue/(Math.PI*2),Qe=Math.ceil(J/2)/_e*ue;K.tickAngles=[],K.tickInnerRadius=[],K.tickPosition=new Array(ie).fill(0).map(function(Ae,Te){var it=$+xe*Te;return Te===0&&(it+=Qe),Te===ie-1&&(it-=Qe),K.tickAngles[Te]=it,K.tickInnerRadius[Te]=we,[s.getCircleRadianPoint.apply(void 0,(0,a.default)(z).concat([fe,it])),s.getCircleRadianPoint.apply(void 0,(0,a.default)(z).concat([we,it]))]})}),H}function m(H,N){return H.forEach(function(K){var $=K.center,j=K.tickInnerRadius,ie=K.tickAngles,z=K.axisLabel.labelGap,q=ie.map(function(Y,Z){return s.getCircleRadianPoint.apply(void 0,(0,a.default)($).concat([j[Z]-z,ie[Z]]))}),V=q.map(function(Y){var Z=(0,n.default)(Y,2),J=Z[0],ue=Z[1];return{textAlign:J>$[0]?"right":"left",textBaseline:ue>$[1]?"bottom":"top"}});K.labelPosition=q,K.labelAlign=V}),H}function w(H,N){return H.forEach(function(K){var $=K.axisLabel,j=K.min,ie=K.max,z=K.splitNum,q=$.data,V=$.formatter,Y=(ie-j)/(z-1),Z=new Array(z).fill(0).map(function(ue,fe){return parseInt(j+Y*fe)}),J=(0,t.default)(V);q=(0,A.deepMerge)(Z,q).map(function(ue,fe){var we=ue;return J==="string"&&(we=V.replace("{value}",ue)),J==="function"&&(we=V({value:ue,index:fe})),we}),$.data=q}),H}function B(H,N){return H.forEach(function(K){var $=K.data,j=K.details,ie=K.center,z=j.position,q=j.offset,V=$.map(function(Y){var Z=Y.startAngle,J=Y.endAngle,ue=Y.radius,fe=null;return z==="center"?fe=ie:z==="start"?fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ie).concat([ue,Z])):z==="end"&&(fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ie).concat([ue,J]))),b(fe,q)});K.detailsPosition=V}),H}function C(H,N){return H.forEach(function(K){var $=K.data,j=K.details,ie=j.formatter,z=(0,t.default)(ie),q=$.map(function(V){var Y=V.value;return z==="string"&&(Y=ie.replace("{value}","{nt}"),Y=Y.replace("{name}",V.name)),z==="function"&&(Y=ie(V)),Y.toString()});K.detailsContent=q}),H}function b(H,N){var K=(0,n.default)(H,2),$=K[0],j=K[1],ie=(0,n.default)(N,2),z=ie[0],q=ie[1];return[$+z,j+q]}function _(H){var N=H.tickPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"polyline",index:j,visible:H.axisTick.show,animationCurve:K,animationFrame:$,shape:x(H,z),style:S(H)}})}function x(H,N){var K=H.tickPosition;return{points:K[N]}}function S(H,N){var K=H.axisTick.style;return K}function I(H){var N=H.labelPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"text",index:j,visible:H.axisLabel.show,animationCurve:K,animationFrame:$,shape:L(H,z),style:T(H,z)}})}function L(H,N){var K=H.labelPosition,$=H.axisLabel.data;return{content:$[N].toString(),position:K[N]}}function T(H,N){var K=H.labelAlign,$=H.axisLabel,j=$.style;return(0,A.deepMerge)(c({},K[N]),j)}function M(H){var N=H.animationCurve,K=H.animationFrame,$=H.rLevel;return[{name:"arc",index:$,visible:H.backgroundArc.show,animationCurve:N,animationFrame:K,shape:R(H),style:P(H)}]}function R(H){var N=H.startAngle,K=H.endAngle,$=H.center,j=H.radius;return{rx:$[0],ry:$[1],r:j,startAngle:N,endAngle:K}}function P(H){var N=H.backgroundArc,K=H.arcLineWidth,$=N.style;return(0,A.deepMerge)({lineWidth:K},$)}function E(H){var N=M(H)[0],K=c({},N.shape);return K.endAngle=N.shape.startAngle,N.shape=K,[N]}function k(H){var N=H.data,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"agArc",index:j,animationCurve:K,animationFrame:$,shape:D(H,z),style:U(H,z)}})}function D(H,N){var K=H.data,$=H.center,j=H.endAngle,ie=K[N],z=ie.radius,q=ie.startAngle,V=ie.endAngle,Y=ie.localGradient;return Y&&(j=V),{rx:$[0],ry:$[1],r:z,startAngle:q,endAngle:V,gradientEndAngle:j}}function U(H,N){var K=H.data,$=H.dataItemStyle,j=K[N],ie=j.lineWidth,z=j.gradient;return z=z.map(function(q){return(0,l.getRgbaValue)(q)}),(0,A.deepMerge)({lineWidth:ie,gradient:z},$)}function O(H){var N=k(H);return N.map(function(K){var $=c({},K.shape);$.endAngle=K.shape.startAngle,K.shape=$}),N}function G(H,N){var K=H.style.gradient,$=K.length,j=N.style.gradient.length;if($>j)K.splice(j);else{var ie=K.slice(-1)[0];K.push.apply(K,(0,a.default)(new Array(j-$).fill(0).map(function(z){return(0,a.default)(ie)})))}}function X(H){var N=H.animationCurve,K=H.animationFrame,$=H.center,j=H.rLevel;return[{name:"polyline",index:j,visible:H.pointer.show,animationCurve:N,animationFrame:K,shape:te(H),style:ne(H),setGraphCenter:function(ie,z){z.style.graphCenter=$}}]}function te(H){var N=H.center;return{points:ye(N),close:!0}}function ne(H){var N=H.startAngle,K=H.endAngle,$=H.min,j=H.max,ie=H.data,z=H.pointer,q=H.center,V=z.valueIndex,Y=z.style,Z=ie[V]?ie[V].value:0,J=(Z-$)/(j-$)*(K-N)+N+Math.PI/2;return(0,A.deepMerge)({rotate:(0,A.radianToAngle)(J),scale:[1,1],graphCenter:q},Y)}function ye(H){var N=(0,n.default)(H,2),K=N[0],$=N[1],j=[K,$-40],ie=[K+5,$],z=[K,$+10],q=[K-5,$];return[j,ie,z,q]}function re(H){var N=H.startAngle,K=X(H)[0];return K.style.rotate=(0,A.radianToAngle)(N+Math.PI/2),[K]}function W(H){var N=H.detailsPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel,ie=H.details.show;return N.map(function(z,q){return{name:"numberText",index:j,visible:ie,animationCurve:K,animationFrame:$,shape:ee(H,q),style:oe(H,q)}})}function ee(H,N){var K=H.detailsPosition,$=H.detailsContent,j=H.data,ie=H.details,z=K[N],q=$[N],V=j[N].value,Y=ie.valueToFixed;return{number:[V],content:q,position:z,toFixed:Y}}function oe(H,N){var K=H.details,$=H.data,j=K.style,ie=$[N].color;return(0,A.deepMerge)({fill:ie},j)}return Kv}var Wv={},rU;function dCe(){if(rU)return Wv;rU=1;var r=Vt;Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.legend=A;var e=r(ba()),t=r(on()),n=r(Xr()),a=oi(),i=Pr(),o=ii(),s=In();function A(E){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=k.legend;D?(D=(0,s.deepMerge)((0,i.deepClone)(o.legendConfig,!0),D),D=l(D),D=u(D,k,E),D=c(D,E),D=v(D,E),D=[D]):D=[],(0,a.doUpdate)({chart:E,series:D,key:"legendIcon",getGraphConfig:x}),(0,a.doUpdate)({chart:E,series:D,key:"legendText",getGraphConfig:L})}function l(E){var k=E.data;return E.data=k.map(function(D){var U=(0,n.default)(D);return U==="string"?{name:D}:U==="object"?D:{name:""}}),E}function u(E,k,D){var U=k.series,O=D.legendStatus,G=E.data.filter(function(X){var te=X.name,ne=U.find(function(ye){var re=ye.name;return te===re});return ne?(X.color||(X.color=ne.color),X.icon||(X.icon=ne.type),X):!1});return(!O||O.length!==E.data.length)&&(O=new Array(E.data.length).fill(!0)),G.forEach(function(X,te){return X.status=O[te]}),E.data=G,D.legendStatus=O,E}function c(E,k){var D=k.render.ctx,U=E.data,O=E.textStyle,G=E.textUnselectedStyle;return U.forEach(function(X){var te=X.status,ne=X.name;X.textWidth=f(D,ne,te?O:G)}),E}function f(E,k,D){return E.font=h(D),E.measureText(k).width}function h(E){var k=E.fontFamily,D=E.fontSize;return"".concat(D,"px ").concat(k)}function v(E,k){var D=E.orient;return D==="vertical"?B(E,k):d(E,k),E}function d(E,k){var D=E.iconHeight,U=E.itemGap,O=p(E,k),G=O.map(function(ne){return y(ne,E,k)}),X=m(E,k),te={textAlign:"left",textBaseline:"middle"};O.forEach(function(ne,ye){return ne.forEach(function(re){var W=re.iconPosition,ee=re.textPosition,oe=G[ye],H=X+ye*(U+D);re.iconPosition=w(W,[oe,H]),re.textPosition=w(ee,[oe,H]),re.align=te})})}function p(E,k){var D=E.data,U=E.iconWidth,O=k.render.area[0],G=0,X=[[]];return D.forEach(function(te,ne){var ye=g(G,ne,E),re=ye+U+5+te.textWidth;re>=O&&(G=ne,ye=g(G,ne,E),X.push([])),te.iconPosition=[ye,0],te.textPosition=[ye+U+5,0],X.slice(-1)[0].push(te)}),X}function g(E,k,D){var U=D.data,O=D.iconWidth,G=D.itemGap,X=U.slice(E,k);return(0,s.mulAdd)(X.map(function(te){var ne=te.textWidth;return ne}))+(k-E)*(G+5+O)}function y(E,k,D){var U=k.left,O=k.right,G=k.iconWidth,X=k.itemGap,te=D.render.area[0],ne=E.length,ye=(0,s.mulAdd)(E.map(function(W){var ee=W.textWidth;return ee}))+ne*(5+G)+(ne-1)*X,re=[U,O].findIndex(function(W){return W!=="auto"});return re===-1?(te-ye)/2:re===0?typeof U=="number"?U:parseInt(U)/100*te:(typeof O!="number"&&(O=parseInt(O)/100*te),te-(ye+O))}function m(E,k){var D=E.top,U=E.bottom,O=E.iconHeight,G=k.render.area[1],X=[D,U].findIndex(function(W){return W!=="auto"}),te=O/2;if(X===-1){var ne=k.gridArea,ye=ne.y,re=ne.h;return ye+re+45-te}else return X===0?typeof D=="number"?D-te:parseInt(D)/100*G-te:(typeof U!="number"&&(U=parseInt(U)/100*G),G-U-te)}function w(E,k){var D=(0,t.default)(E,2),U=D[0],O=D[1],G=(0,t.default)(k,2),X=G[0],te=G[1];return[U+X,O+te]}function B(E,k){var D=C(E,k),U=(0,t.default)(D,2),O=U[0],G=U[1],X=b(E,k);_(E,O);var te={textAlign:"left",textBaseline:"middle"};E.data.forEach(function(ne){var ye=ne.textPosition,re=ne.iconPosition;ne.textPosition=w(ye,[G,X]),ne.iconPosition=w(re,[G,X]),ne.align=te})}function C(E,k){var D=E.left,U=E.right,O=k.render.area[0],G=[D,U].findIndex(function(te){return te!=="auto"});if(G===-1)return[!0,O-10];var X=[D,U][G];return typeof X!="number"&&(X=parseInt(X)/100*O),[!!G,X]}function b(E,k){var D=E.iconHeight,U=E.itemGap,O=E.data,G=E.top,X=E.bottom,te=k.render.area[1],ne=O.length,ye=ne*D+(ne-1)*U,re=[G,X].findIndex(function(ee){return ee!=="auto"});if(re===-1)return(te-ye)/2;var W=[G,X][re];return typeof W!="number"&&(W=parseInt(W)/100*te),re===1&&(W=te-W-ye),W}function _(E,k){var D=E.data,U=E.iconWidth,O=E.iconHeight,G=E.itemGap,X=O/2;D.forEach(function(te,ne){var ye=te.textWidth,re=(O+G)*ne+X,W=k?0-U:0,ee=k?W-5-ye:U+5;te.iconPosition=[W,re],te.textPosition=[ee,re]})}function x(E,k){var D=E.data,U=E.selectAble,O=E.animationCurve,G=E.animationFrame,X=E.rLevel;return D.map(function(te,ne){return(0,e.default)({name:te.icon==="line"?"lineIcon":"rect",index:X,visible:E.show,hover:U,click:U,animationCurve:O,animationFrame:G,shape:S(E,ne),style:I(E,ne)},"click",P(E,ne,k))})}function S(E,k){var D=E.data,U=E.iconWidth,O=E.iconHeight,G=(0,t.default)(D[k].iconPosition,2),X=G[0],te=G[1],ne=O/2;return{x:X,y:te-ne,w:U,h:O}}function I(E,k){var D=E.data,U=E.iconStyle,O=E.iconUnselectedStyle,G=D[k],X=G.status,te=G.color,ne=X?U:O;return(0,s.deepMerge)({fill:te},ne)}function L(E,k){var D=E.data,U=E.selectAble,O=E.animationCurve,G=E.animationFrame,X=E.rLevel;return D.map(function(te,ne){return{name:"text",index:X,visible:E.show,hover:U,animationCurve:O,animationFrame:G,hoverRect:R(E,ne),shape:T(E,ne),style:M(E,ne),click:P(E,ne,k)}})}function T(E,k){var D=E.data[k],U=D.textPosition,O=D.name;return{content:O,position:U}}function M(E,k){var D=E.textStyle,U=E.textUnselectedStyle,O=E.data[k],G=O.status,X=O.align,te=G?D:U;return(0,s.deepMerge)((0,i.deepClone)(te,!0),X)}function R(E,k){var D=E.textStyle,U=E.textUnselectedStyle,O=E.data[k],G=O.status,X=(0,t.default)(O.textPosition,2),te=X[0],ne=X[1],ye=O.textWidth,re=G?D:U,W=re.fontSize;return[te,ne-W/2,ye,W]}function P(E,k,D){var U=E.data[k].name;return function(){var O=D.chart,G=O.legendStatus,X=O.option,te=!G[k],ne=X.series.find(function(ye){var re=ye.name;return re===U});ne.show=te,G[k]=te,D.chart.setOption(X)}}return Wv}var nU;function pCe(){return nU||(nU=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"mergeColor",{enumerable:!0,get:function(){return e.mergeColor}}),Object.defineProperty(r,"title",{enumerable:!0,get:function(){return t.title}}),Object.defineProperty(r,"grid",{enumerable:!0,get:function(){return n.grid}}),Object.defineProperty(r,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(r,"line",{enumerable:!0,get:function(){return i.line}}),Object.defineProperty(r,"bar",{enumerable:!0,get:function(){return o.bar}}),Object.defineProperty(r,"pie",{enumerable:!0,get:function(){return s.pie}}),Object.defineProperty(r,"radarAxis",{enumerable:!0,get:function(){return A.radarAxis}}),Object.defineProperty(r,"radar",{enumerable:!0,get:function(){return l.radar}}),Object.defineProperty(r,"gauge",{enumerable:!0,get:function(){return u.gauge}}),Object.defineProperty(r,"legend",{enumerable:!0,get:function(){return c.legend}});var e=iCe(),t=oCe(),n=sCe(),a=ACe(),i=lCe(),o=uCe(),s=cCe(),A=fCe(),l=hCe(),u=vCe(),c=dCe()}(MQ)),MQ}var aU;function gCe(){return aU||(aU=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(Xr()),n=e(Zf()),a=e(ny),i=Pr(),o=pCe(),s=function A(l){if((0,n.default)(this,A),!l)return console.error("Charts Missing parameters!"),!1;var u=l.clientWidth,c=l.clientHeight,f=document.createElement("canvas");f.setAttribute("width",u),f.setAttribute("height",c),l.appendChild(f);var h={container:l,canvas:f,render:new a.default(f),option:null};Object.assign(this,h)};r.default=s,s.prototype.setOption=function(A){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A||(0,t.default)(A)!=="object")return console.error("setOption Missing parameters!"),!1;l&&this.render.graphs.forEach(function(c){return c.animationEnd()});var u=(0,i.deepClone)(A,!0);(0,o.mergeColor)(this,u),(0,o.grid)(this,u),(0,o.axis)(this,u),(0,o.radarAxis)(this,u),(0,o.title)(this,u),(0,o.bar)(this,u),(0,o.line)(this,u),(0,o.pie)(this,u),(0,o.radar)(this,u),(0,o.gauge)(this,u),(0,o.legend)(this,u),this.option=A,this.render.launchAnimation()},s.prototype.resize=function(){var A=this.container,l=this.canvas,u=this.render,c=this.option,f=A.clientWidth,h=A.clientHeight;l.setAttribute("width",f),l.setAttribute("height",h),u.area=[f,h],this.setOption(c)}}(SQ)),SQ}(function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"changeDefaultConfig",{enumerable:!0,get:function(){return n.changeDefaultConfig}}),r.default=void 0;var t=e(gCe()),n=ii(),a=t.default;r.default=a})(fV);const pV=sV(fV),yCe={__name:"index",props:{option:{type:Object,default:()=>({})}},setup(r){const e=r,t=Ee(null),n=Ee(null);let a=It({});yt(n,s,i),Et(()=>e.option,()=>{a&&a.setOption(e.option,!0)},{deep:!0});function i(){o()}function o(){a=new pV(n.value),e.option&&a.setOption(e.option)}function s(){a&&a.resize()}return(A,l)=>(he(),de("div",{ref_key:"chartsContainerRef",ref:t,class:"dv-charts-container"},[ae("div",{ref_key:"chartRef",ref:n,class:"charts-canvas-container"},null,512)],512))}},iU={install(r){r.component("DvCharts",yCe)}},mCe={class:"dv-capsule-chart"},wCe={class:"label-column"},BCe={class:"capsule-container"},CCe={key:0,class:"capsule-item-value"},bCe={class:"unit-label"},xCe={key:0,class:"unit-text"},_Ce={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(A=>({"1b634ae3":Q(a),"63348aba":Q(n)}));const e=r,t=It({defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1,textColor:"#fff",fontSize:12,labelNum:6},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]});Et(()=>e.config,()=>{i()},{deep:!0});const n=rt(()=>`${e.config.fontSize?e.config.fontSize:t.defaultConfig.fontSize}px`),a=rt(()=>e.config.textColor?e.config.textColor:t.defaultConfig.textColor);function i(){o(),s()}function o(){t.mergedConfig=Bt(_t(t.defaultConfig),e.config||{})}function s(){const{data:A,labelNum:l}=t.mergedConfig;if(!A.length||A.length===0){t.labelData=[],t.capsuleLength=[];return}const u=A.map(({value:v})=>v),c=Math.max(...u);t.capsuleValue=u,t.capsuleLength=u.map(v=>c?v/c:0);const f=c/5,h=Array.from(new Set(Array.from({length:l}).fill(0).map((v,d)=>Math.ceil(d*f))));t.labelData=h,t.labelDataLength=Array.from(h).map(v=>c?v/c:0)}return St(()=>{i()}),(A,l)=>(he(),de("div",mCe,[Q(t).mergedConfig?(he(),de(lt,{key:0},[ae("div",wCe,[(he(!0),de(lt,null,dt(Q(t).mergedConfig.data,u=>(he(),de("div",{key:u.name},Dt(u.name),1))),128)),l[0]||(l[0]=ae("div",null," ",-1))]),ae("div",BCe,[(he(!0),de(lt,null,dt(Q(t).capsuleLength,(u,c)=>(he(),de("div",{key:c,class:"capsule-item"},[ae("div",{class:"capsule-item-column",style:qt(`width: ${u*100}%; background-color: ${Q(t).mergedConfig.colors[c%Q(t).mergedConfig.colors.length]};`)},[Q(t).mergedConfig.showValue?(he(),de("div",CCe,Dt(Q(t).capsuleValue[c]),1)):pt("",!0)],4)]))),128)),ae("div",bCe,[(he(!0),de(lt,null,dt(Q(t).labelData,(u,c)=>(he(),de("div",{key:u+c},Dt(u),1))),128))])]),Q(t).mergedConfig.unit?(he(),de("div",xCe,Dt(Q(t).mergedConfig.unit),1)):pt("",!0)],64)):pt("",!0)]))}},oU={install(r){r.component("DvCapsuleChart",_Ce)}},SCe={class:"dv-digital-flop"},gV={__name:"index",props:{config:{type:Object,default:()=>{}}},setup(r){const e=r,t=Ee(null),n=It({renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null});Et(()=>e.config,()=>{u()},{deep:!0}),St(()=>{a()});function a(){i(),o(),s()}function i(){n.renderer=new cV(t.value)}function o(){n.mergedConfig=Bt(_t(n.defaultConfig),e.config||{})}function s(){const f=A(),h=l();n.graph=n.renderer.add({name:"numberText",animationCurve:n.mergedConfig.animationCurve,animationFrame:n.mergedConfig.animationFrame,shape:f,style:h})}function A(){const{number:f,content:h,toFixed:v,textAlign:d,rowGap:p,formatter:g}=n.mergedConfig,[y,m]=n.renderer.area,w=[y/2,m/2];return d==="left"&&(w[0]=0),d==="right"&&(w[0]=y),{number:f,content:h,toFixed:v,position:w,rowGap:p,formatter:g}}function l(){const{style:f,textAlign:h}=n.mergedConfig;return Bt(f,{textAlign:h,textBaseline:"middle"})}function u(){if(n.graph.animationEnd(),o(),!n.graph)return;const{animationCurve:f,animationFrame:h}=n.mergedConfig,v=A(),d=l();c(n.graph,v),n.graph.animationCurve=f,n.graph.animationFrame=h,n.graph.animation("style",d,!0),n.graph.animation("shape",v)}function c(f,h){const v=f.shape.number.length,d=h.number.length;v!==d&&(f.shape.number=h.number)}return(f,h)=>(he(),de("div",SCe,[ae("canvas",{ref_key:"digitalFlop",ref:t},null,512)]))}},TCe={class:"dv-active-ring-chart"},ICe={class:"active-ring-info"},LCe={key:0},ECe={__name:"index",props:{config:{type:Object,default:()=>({})},isDigitalFlop:{type:Boolean,default:!0}},setup(r){Tf(g=>({"18d51787":Q(l)}));const e=r,t=Ee(null),n=It({defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],textColor:"#fff",digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,numToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}),a=rt(()=>{if(!n.mergedConfig)return 0;const{data:g,showOriginValue:y}=n.mergedConfig,m=g.map(({value:B})=>B);let w;if(y)w=m[n.activeIndex];else{const B=m.reduce((C,b)=>C+b,0);w=Number.parseFloat(m[n.activeIndex]/B*100)||0}return w}),i=rt(()=>{if(!n.mergedConfig)return a.value.toFixed(n.defaultConfig.numToFixed);const{numToFixed:g,showOriginValue:y}=n.mergedConfig;return`${y?a.value.toFixed(g):`${a.value.toFixed(g)}%`}`}),o=rt(()=>{if(!n.mergedConfig)return{};const{digitalFlopStyle:g,digitalFlopToFixed:y,showOriginValue:m,digitalFlopUnit:w}=n.mergedConfig;return{content:m?`{nt}${w}`:`{nt}${w||"%"}`,number:[a.value],style:g,toFixed:y}}),s=rt(()=>n.mergedConfig?n.mergedConfig.data[n.activeIndex].name:""),A=rt(()=>n.mergedConfig?`font-size: ${n.mergedConfig.digitalFlopStyle.fontSize}px;`:""),l=rt(()=>e.config.textColor?e.config.textColor:n.defaultConfig.textColor);Et(()=>e.config,()=>{clearTimeout(n.animationHandler),n.activeIndex=0,f(),h()},{deep:!0}),St(()=>{u()}),Qo(()=>{clearTimeout(n.animationHandler)});function u(){c(),f(),h()}function c(){n.chart=new pV(t.value)}function f(){n.mergedConfig=Bt(_t(n.defaultConfig),e.config||{})}function h(){const g=v();n.chart.setOption(g,!0),p()}function v(){const g=d();return n.mergedConfig.data.forEach(y=>{y.radius=g}),{series:[{type:"pie",...n.mergedConfig,outsideLabel:{show:!1}}],color:n.mergedConfig.color}}function d(g=!1){const{radius:y,activeRadius:m,lineWidth:w}=n.mergedConfig,B=Math.min(...n.chart.render.area)/2,C=w/2;let b=g?m:y;typeof b!="number"&&(b=Number.parseInt(b)/100*B);const _=b-C,x=b+C;return[_,x]}function p(){const g=d(),y=d(!0),m=v(),{data:w}=m.series[0];w.forEach((C,b)=>{b===n.activeIndex?C.radius=y:C.radius=g}),n.chart.setOption(m,!0);const{activeTimeGap:B}=m.series[0];n.animationHandler=setTimeout(()=>{n.activeIndex+=1,n.activeIndex>=w.length&&(n.activeIndex=0),p()},B)}return(g,y)=>(he(),de("div",TCe,[ae("div",{ref_key:"activeRingChart",ref:t,class:"active-ring-chart-container"},null,512),ae("div",ICe,[r.isDigitalFlop?(he(),de("div",LCe,[se(gV,{config:Q(o)},null,8,["config"])])):(he(),de("div",{key:1,class:"active-ring-name",style:qt(Q(A))},Dt(Q(i)),5)),ae("div",{class:"active-ring-name",style:qt(Q(A))},Dt(Q(s)),5)])]))}},sU={install(r){r.component("DvActiveRingChart",ECe)}},AU={install(r){r.component("DvDigitalFlop",gV)}},MCe=vt({__name:"index",setup(r){const e=Ee(null),t=It({allWidth:0,scale:0,datavRoot:"",ready:!1});function n(){const{width:s,height:A}=screen;t.allWidth=s,e.value&&(e.value.style.width=`${s}px`,e.value.style.height=`${A}px`)}function a(){const s=document.body.clientWidth;e.value&&(e.value.style.transform=`scale(${s/t.allWidth})`)}function i(){a()}function o(){n(),a(),t.ready=!0}return yt(e,i,o),(s,A)=>(he(),de("div",{id:"dv-full-screen-container",ref_key:"fullScreenContainer",ref:e},[Q(t).ready?Ft(s.$slots,"default",{key:0}):pt("",!0)],512))}}),lU={install(r){r.component("DvFullScreenContainer",MCe)}},DCe=["width","height"],FCe=["fill","x","y","width","height"],QCe=["values","begin"],UCe=["fill","x","y","width","height"],PCe=["values"],kCe=["values"],RCe=["values"],OCe=["values"],HCe=["fill","x","y","height"],NCe=["values"],VCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It([200,50]),a=Ee(4),i=Ee(20),o=Ee(2.5),s=Ee(o.value/2),A=It(["#fff","#0de7c2"]),l=It({mergedColor:[],rects:[],points:[],svgScale:[1,1]});function u(){g()}function c(){g()}const{width:f,height:h}=yt(t,u,c);function v(){const[m,w]=n,B=m/(i.value+1),C=w/(a.value+1),b=Array.from({length:a.value}).fill(0).map((_,x)=>Array.from({length:i.value}).fill(0).map((S,I)=>[B*(I+1),C*(x+1)]));l.points=b.reduce((_,x)=>[..._,...x],[])}function d(){const m=l.points[i.value*2-1],w=l.points[i.value*2-3];l.rects=[m,w]}function p(){const[m,w]=n;l.svgScale=[f.value/m,h.value/w]}function g(){v(),d(),p()}function y(){l.mergedColor=Bt(_t(A),e.color||[])}return Et(()=>e.color,()=>{y()},{deep:!0}),St(()=>{y()}),(m,w)=>(he(),de("div",{ref_key:"dvDecoration1",ref:t,class:"dv-decoration-1"},[(he(),de("svg",{width:`${Q(n)[0]}px`,height:`${Q(n)[1]}px`,style:qt(`transform:scale(${Q(l).svgScale[0]}, ${Q(l).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(l).points,B=>(he(),de(lt,{key:B},[Math.random()>.6?(he(),de("rect",{key:0,fill:Q(l).mergedColor[0],x:B[0]-Q(s),y:B[1]-Q(s),width:Q(o),height:Q(o)},[Math.random()>.6?(he(),de("animate",{key:0,attributeName:"fill",values:`${Q(l).mergedColor[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,QCe)):pt("",!0)],8,FCe)):pt("",!0)],64))),128)),Q(l).rects[0]?(he(),de("rect",{key:0,fill:Q(l).mergedColor[1],x:Q(l).rects[0][0]-Q(o),y:Q(l).rects[0][1]-Q(o),width:Q(o)*2,height:Q(o)*2},[ae("animate",{attributeName:"width",values:`0;${Q(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,PCe),ae("animate",{attributeName:"height",values:`0;${Q(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,kCe),ae("animate",{attributeName:"x",values:`${Q(l).rects[0][0]};${Q(l).rects[0][0]-Q(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,RCe),ae("animate",{attributeName:"y",values:`${Q(l).rects[0][1]};${Q(l).rects[0][1]-Q(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,OCe)],8,UCe)):pt("",!0),Q(l).rects[1]?(he(),de("rect",{key:1,fill:Q(l).mergedColor[1],x:Q(l).rects[1][0]-40,y:Q(l).rects[1][1]-Q(o),width:40,height:Q(o)*2},[w[0]||(w[0]=ae("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null,-1)),ae("animate",{attributeName:"x",values:`${Q(l).rects[1][0]};${Q(l).rects[1][0]-40};${Q(l).rects[1][0]}`,dur:"2s",repeatCount:"indefinite"},null,8,NCe)],8,HCe)):pt("",!0)],12,DCe))],512))}}),uU={install(r){r.component("DvDecoration1",VCe)}},GCe=["width","height"],zCe=["x","y","width","height","fill"],$Ce=["attributeName","to","dur"],KCe=["x","y","fill"],WCe=["attributeName","to","dur"],XCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},setup(r){const e=r,t=Ee(null),n=It({x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]});function a(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}function i(){l()}function o(){l()}const{width:s,height:A}=yt(t,i,o);function l(){e.reverse?(n.w=1,n.h=A.value,n.x=s.value/2,n.y=0):(n.w=s.value,n.h=1,n.x=0,n.y=A.value/2)}return Et(()=>e.color,()=>{a()},{deep:!0}),Et(()=>e.reverse,()=>{l()}),St(()=>{a()}),(u,c)=>(he(),de("div",{ref_key:"decoration2",ref:t,class:"dv-decoration-2"},[(he(),de("svg",{width:`${Q(s)}px`,height:`${Q(A)}px`},[ae("rect",{x:Q(n).x,y:Q(n).y,width:Q(n).w,height:Q(n).h,fill:Q(n).mergedColor[0]},[ae("animate",{attributeName:r.reverse?"height":"width",from:"0",to:r.reverse?Q(A):Q(s),dur:`${r.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,$Ce)],8,zCe),ae("rect",{x:Q(n).x,y:Q(n).y,width:"1",height:"1",fill:Q(n).mergedColor[1]},[ae("animate",{attributeName:r.reverse?"y":"x",from:"0",to:r.reverse?Q(A):Q(s),dur:`${r.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,WCe)],8,KCe)],8,GCe))],512))}}),cU={install(r){r.component("DvDecoration2",XCe)}},YCe=["width","height"],ZCe=["fill","x","y"],jCe=["values","dur","begin"],Xv=7,JCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:Xv,halfPointSideLength:Xv/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]});function a(){const[f,h]=n.svgWH,v=f/(n.rowPoints+1),d=h/(n.rowNum+1),p=Array.from({length:n.rowNum}).fill(0).map((g,y)=>Array.from({length:n.rowPoints}).fill(0).map((m,w)=>[v*(w+1),d*(y+1)]));n.points=p.reduce((g,y)=>[...g,...y],[])}function i(){o()}function o(){a(),u()}function s(){o()}const{width:A,height:l}=yt(t,s,i);function u(){const[f,h]=n.svgWH;n.svgScale=[A.value/f,l.value/h]}function c(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return Et(()=>e.color,()=>{c()},{deep:!0}),St(()=>{c()}),(f,h)=>(he(),de("div",{ref_key:"decoration3",ref:t,class:"dv-decoration-3"},[(he(),de("svg",{width:`${Q(n).svgWH[0]}px`,height:`${Q(n).svgWH[1]}px`,style:qt(`transform:scale(${Q(n).svgScale[0]},${Q(n).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(n).points,v=>(he(),de("rect",{key:v,fill:Q(n).mergedColor[0],x:v[0]-Q(n).halfPointSideLength,y:v[1]-Q(n).halfPointSideLength,width:Xv,height:Xv},[Math.random()>.6?(he(),de("animate",{key:0,attributeName:"fill",values:`${Q(n).mergedColor.join(";")}`,dur:`${Math.random()+1}s`,begin:Math.random()*2,repeatCount:"indefinite"},null,8,jCe)):pt("",!0)],8,ZCe))),128))],12,YCe))],512))}}),fU={install(r){r.component("DvDecoration3",JCe)}},qCe=["width","height"],ebe=["stroke","points"],tbe=["stroke","points"],rbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]});function a(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}const{width:i,height:o}=yt(t);return Et(()=>e.color,()=>{a()},{deep:!0}),St(()=>{a()}),(s,A)=>(he(),de("div",{ref_key:"decoration3",ref:t,class:"dv-decoration-4"},[ae("div",{class:nC(`container ${r.reverse?"reverse":"normal"}`),style:qt(r.reverse?`width:${Q(i)}px;height:5px;animation-duration:${r.dur}s`:`width:5px;height:${Q(o)}px;animation-duration:${r.dur}s`)},[(he(),de("svg",{width:r.reverse?Q(i):5,height:r.reverse?5:Q(o)},[ae("polyline",{stroke:Q(n).mergedColor[0],points:r.reverse?`0, 2.5 ${Q(i)}, 2.5`:`2.5, 0 2.5, ${Q(o)}`},null,8,ebe),ae("polyline",{class:"bold-line",stroke:Q(n).mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:r.reverse?`0, 2.5 ${Q(i)}, 2.5`:`2.5, 0 2.5, ${Q(o)}`},null,8,tbe)],8,qCe))],6)],512))}}),hU={install(r){r.component("DvDecoration4",rbe)}},nbe=["width","height"],abe=["stroke","points"],ibe=["from","to","dur"],obe=["stroke","points"],sbe=["from","to","dur"],Abe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},setup(r){const e=r,t=Ee(null),n=It({line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});function a(){A()}function i(){A()}const{width:o,height:s}=yt(t,i,a);function A(){const u=[{x:0,y:s.value*.2},{x:o.value*.18,y:s.value*.2},{x:o.value*.2,y:s.value*.4},{x:o.value*.25,y:s.value*.4},{x:o.value*.27,y:s.value*.6},{x:o.value*.72,y:s.value*.6},{x:o.value*.75,y:s.value*.4},{x:o.value*.8,y:s.value*.4},{x:o.value*.82,y:s.value*.2},{x:o.value,y:s.value*.2}],c=[{x:o.value*.3,y:s.value*.8},{x:o.value*.7,y:s.value*.8}],f=hF(u),h=hF(c);n.line1Points=vF(u),n.line2Points=vF(c),n.line1Length=f,n.line2Length=h}function l(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return Et(()=>e.color,()=>{l()},{deep:!0}),St(()=>{l()}),(u,c)=>(he(),de("div",{ref_key:"decoration5",ref:t,class:"dv-decoration-5"},[(he(),de("svg",{width:Q(o),height:Q(s)},[ae("polyline",{fill:"transparent",stroke:Q(n).mergedColor[0],"stroke-width":"3",points:Q(n).line1Points},[ae("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${Q(n).line1Length/2}, 0, ${Q(n).line1Length/2}`,to:`0, 0, ${Q(n).line1Length}, 0`,dur:`${r.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,ibe)],8,abe),ae("polyline",{fill:"transparent",stroke:Q(n).mergedColor[1],"stroke-width":"2",points:Q(n).line2Points},[ae("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${Q(n).line2Length/2}, 0, ${Q(n).line2Length/2}`,to:`0, 0, ${Q(n).line2Length}, 0`,dur:`${r.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,sbe)],8,obe)],8,nbe))],512))}}),vU={install(r){r.component("DvDecoration5",Abe)}},lbe=["width","height"],ube=["fill","x","y","height"],cbe=["values","dur"],fbe=["values","dur"],lw=7,hbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:lw,halfRectWidth:lw/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]});Et(()=>e.color,()=>{c()},{deep:!0}),St(()=>{c()});const{width:a,height:i}=yt(t,u,o);function o(){s()}function s(){A(),l()}function A(){const[f,h]=n.svgWH,v=f/(n.rowPoints+1),d=h/(n.rowNum+1),p=Array.from({length:n.rowNum}).fill(0).map((y,m)=>Array.from({length:n.rowPoints}).fill(0).map((w,B)=>[v*(B+1),d*(m+1)]));n.points=p.reduce((y,m)=>[...y,...m],[]);const g=n.heights=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map(()=>Math.random()>.8?_f(.7*h,h):_f(.2*h,.5*h));n.minHeights=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map((y,m)=>g[m]*Math.random()),n.randoms=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map(()=>Math.random()+1.5)}function l(){const[f,h]=n.svgWH;n.svgScale=[a.value/f,i.value/h]}function u(){s()}function c(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(f,h)=>(he(),de("div",{ref_key:"decoration6",ref:t,class:"dv-decoration-6"},[(he(),de("svg",{width:`${Q(n).svgWH[0]}px`,height:`${Q(n).svgWH[1]}px`,style:qt(`transform:scale(${Q(n).svgScale[0]},${Q(n).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(n).points,(v,d)=>(he(),de("rect",{key:d,fill:Q(n).mergedColor[Math.random()>.5?0:1],x:v[0]-Q(n).halfRectWidth,y:v[1]-Q(n).heights[d]/2,width:lw,height:Q(n).heights[d]},[ae("animate",{attributeName:"y",values:`${v[1]-Q(n).minHeights[d]/2};${v[1]-Q(n).heights[d]/2};${v[1]-Q(n).minHeights[d]/2}`,dur:`${Q(n).randoms[d]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,cbe),ae("animate",{attributeName:"height",values:`${Q(n).minHeights[d]};${Q(n).heights[d]};${Q(n).minHeights[d]}`,dur:`${Q(n).randoms[d]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,fbe)],8,ube))),128))],12,lbe))],512))}}),dU={install(r){r.component("DvDecoration6",hbe)}},vbe={class:"dv-decoration-7"},dbe={width:"21px",height:"20px"},pbe=["stroke"],gbe=["stroke"],ybe={width:"21px",height:"20px"},mbe=["stroke"],wbe=["stroke"],Bbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=It({defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]});Et(()=>e.color,()=>{n()},{deep:!0}),St(()=>{n()});function n(){t.mergedColor=Bt(_t(t.defaultColor),e.color||[])}return(a,i)=>(he(),de("div",vbe,[(he(),de("svg",dbe,[ae("polyline",{"stroke-width":"4",fill:"transparent",stroke:Q(t).mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,pbe),ae("polyline",{"stroke-width":"2",fill:"transparent",stroke:Q(t).mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,gbe)])),Ft(a.$slots,"default"),(he(),de("svg",ybe,[ae("polyline",{"stroke-width":"4",fill:"transparent",stroke:Q(t).mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,mbe),ae("polyline",{"stroke-width":"2",fill:"transparent",stroke:Q(t).mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,wbe)]))]))}}),pU={install(r){r.component("DvDecoration7",Bbe)}},Cbe=["width","height"],bbe=["stroke","points"],xbe=["stroke","points"],_be=["stroke","points"],Sbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});Et(()=>e.color,()=>{s()},{deep:!0}),St(()=>{s()});const{width:a,height:i}=yt(t);function o(A){return e.reverse?a.value-A:A}function s(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(A,l)=>(he(),de("div",{ref_key:"decoration8",ref:t,class:"dv-decoration-8"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("polyline",{stroke:Q(n).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(0)}, 0 ${o(30)}, ${Q(i)/2}`},null,8,bbe),ae("polyline",{stroke:Q(n).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(20)}, 0 ${o(50)}, ${Q(i)/2} ${o(Q(a))}, ${Q(i)/2}`},null,8,xbe),ae("polyline",{stroke:Q(n).mergedColor[1],fill:"transparent","stroke-width":"3",points:`${o(0)}, ${Q(i)-3}, ${o(200)}, ${Q(i)-3}`},null,8,_be)],8,Cbe))],512))}}),gU={install(r){r.component("DvDecoration8",Sbe)}},Tbe=["width","height"],Ibe=["id"],Lbe=["stroke"],Ebe=["dur"],Mbe=["stroke"],Dbe=["dur"],Fbe=["stroke"],Qbe=["xlink:href","stroke","fill"],Ube=["dur","begin"],Pbe=["stroke"],kbe={__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({polygonId:`decoration-9-polygon-${t}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]});Et(()=>e.color,()=>{u()},{deep:!0}),St(()=>{u()});const{width:i,height:o}=yt(n,l,s);function s(){A()}function A(){const[c,f]=a.svgWH;a.svgScale=[i.value/c,o.value/f]}function l(){A()}function u(){a.mergedColor=Bt(_t(a.defaultColor),e.color||[])}return(c,f)=>(he(),de("div",{ref_key:"decoration9",ref:n,class:"dv-decoration-9"},[(he(),de("svg",{width:`${Q(a).svgWH[0]}px`,height:`${Q(a).svgWH[1]}px`,style:qt(`transform:scale(${Q(a).svgScale[0]},${Q(a).svgScale[1]});`)},[ae("defs",null,[ae("polygon",{id:Q(a).polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,Ibe)]),ae("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:Q(a).mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${r.dur}s`,repeatCount:"indefinite"},null,8,Ebe)],8,Lbe),ae("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:Q(a).mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${r.dur}s`,repeatCount:"indefinite"},null,8,Dbe)],8,Mbe),ae("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:Q(br)(Q(a).mergedColor[1]||Q(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Fbe),(he(!0),de(lt,null,dt(new Array(20).fill(0),(h,v)=>(he(),de("use",{key:v,"xlink:href":`#${Q(a).polygonId}`,stroke:Q(a).mergedColor[1],fill:Math.random()>.4?"transparent":Q(a).mergedColor[0]},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${r.dur}s`,begin:`${v*r.dur/20}s`,repeatCount:"indefinite"},null,8,Ube)],8,Qbe))),128)),ae("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:Q(br)(Q(a).mergedColor[1]||Q(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Pbe)],12,Tbe)),Ft(c.$slots,"default")],512))}},yU={install(r){r.component("DvDecoration9",kbe)}},Rbe=["width","height"],Obe=["stroke","points"],Hbe=["stroke","points","stroke-dasharray"],Nbe=["id","values","begin"],Vbe=["values","begin"],Gbe=["stroke","points","stroke-dasharray"],zbe=["id","values","begin"],$be=["values","begin"],Kbe=["stroke","points","stroke-dasharray"],Wbe=["id","values","begin"],Xbe=["values","begin"],Ybe=["cy","fill"],Zbe=["id","values","begin"],jbe=["cx","cy","fill"],Jbe=["id","values","begin"],qbe=["values","begin"],exe=["cx","cy","fill"],txe=["id","values","begin"],rxe=["values","begin"],nxe=["cx","cy","fill"],axe=["id","values","begin"],ixe=["values","begin"],oxe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({animationId1:`d10ani1${t}`,animationId2:`d10ani2${t}`,animationId3:`d10ani3${t}`,animationId4:`d10ani4${t}`,animationId5:`d10ani5${t}`,animationId6:`d10ani6${t}`,animationId7:`d10ani7${t}`,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}),{width:i,height:o}=yt(n);Et(()=>e.color,()=>{s()},{deep:!0}),St(()=>{s()});function s(){a.mergedColor=Bt(_t(a.defaultColor),e.color||[])}return(A,l)=>(he(),de("div",{ref_key:"decoration10",ref:n,class:"dv-decoration-10"},[(he(),de("svg",{width:Q(i),height:Q(o)},[ae("polyline",{stroke:Q(a).mergedColor[1],"stroke-width":"2",points:`0, ${Q(o)/2} ${Q(i)}, ${Q(o)/2}`},null,8,Obe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`5, ${Q(o)/2} ${Q(i)*.2-3}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.2}`,fill:"freeze"},[ae("animate",{id:Q(a).animationId2,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.2};${Q(i)*.2}, 0;`,dur:"3s",begin:`${Q(a).animationId1}.end`,fill:"freeze"},null,8,Nbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.2}, 0;0, ${Q(i)*.2}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,Vbe)],8,Hbe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`${Q(i)*.2+3}, ${Q(o)/2} ${Q(i)*.8-3}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.6}`},[ae("animate",{id:Q(a).animationId4,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.6};${Q(i)*.6}, 0`,dur:"3s",begin:`${Q(a).animationId3}.end + 1s`,fill:"freeze"},null,8,zbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.6}, 0;0, ${Q(i)*.6}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,$be)],8,Gbe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`${Q(i)*.8+3}, ${Q(o)/2} ${Q(i)-5}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.2}`},[ae("animate",{id:Q(a).animationId6,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.2};${Q(i)*.2}, 0`,dur:"3s",begin:`${Q(a).animationId5}.end + 1s`,fill:"freeze"},null,8,Wbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.2}, 0;0, ${Q(i)*.3}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,Xbe)],8,Kbe),ae("circle",{cx:"2",cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId1,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`0s;${Q(a).animationId7}.end`,dur:"0.3s",fill:"freeze"},null,8,Zbe)],8,Ybe),ae("circle",{cx:Q(i)*.2,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId3,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId2}.end`,dur:"0.3s",fill:"freeze"},null,8,Jbe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,qbe)],8,jbe),ae("circle",{cx:Q(i)*.8,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId5,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId4}.end`,dur:"0.3s",fill:"freeze"},null,8,txe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,rxe)],8,exe),ae("circle",{cx:Q(i)-2,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId7,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId6}.end`,dur:"0.3s",fill:"freeze"},null,8,axe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,ixe)],8,nxe)],8,Rbe))],512))}}),mU={install(r){r.component("DvDecoration10",oxe)}},sxe=["width","height"],Axe=["fill","stroke"],lxe=["fill","stroke","points"],uxe=["fill","stroke","points"],cxe=["fill","stroke","points"],fxe=["fill","stroke","points"],hxe=["stroke","points"],vxe=["stroke","points"],dxe={class:"decoration-content"},pxe={__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}),{width:a,height:i}=yt(t);Et(()=>e.color,()=>{o()},{deep:!0}),St(()=>{o()});function o(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(s,A)=>(he(),de("div",{ref_key:"decoration11",ref:t,class:"dv-decoration-11"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:"20 10, 25 4, 55 4 60 10"},null,8,Axe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`20 ${Q(i)-10}, 25 ${Q(i)-4}, 55 ${Q(i)-4} 60 ${Q(i)-10}`},null,8,lxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`${Q(a)-20} 10, ${Q(a)-25} 4, ${Q(a)-55} 4 ${Q(a)-60} 10`},null,8,uxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`${Q(a)-20} ${Q(i)-10}, ${Q(a)-25} ${Q(i)-4}, ${Q(a)-55} ${Q(i)-4} ${Q(a)-60} ${Q(i)-10}`},null,8,cxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],20),stroke:Q(n).mergedColor[0],points:` 20 10, 5 ${Q(i)/2} 20 ${Q(i)-10} ${Q(a)-20} ${Q(i)-10} ${Q(a)-5} ${Q(i)/2} ${Q(a)-20} 10 `},null,8,fxe),ae("polyline",{fill:"transparent",stroke:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],70),points:`25 18, 15 ${Q(i)/2} 25 ${Q(i)-18}`},null,8,hxe),ae("polyline",{fill:"transparent",stroke:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],70),points:`${Q(a)-25} 18, ${Q(a)-15} ${Q(i)/2} ${Q(a)-25} ${Q(i)-18}`},null,8,vxe)],8,sxe)),ae("div",dxe,[Ft(s.$slots,"default")])],512))}},wU={install(r){r.component("DvDecoration11",pxe)}},gxe=["width","height"],yxe=["id"],mxe=["stroke","stroke-width","d"],wxe=["id"],Bxe=["stop-color"],Cxe=["r","cx","cy","stroke"],bxe=["cx","cy","fill"],xxe=["values","dur"],_xe=["dur"],Sxe=["cx","cy","fill"],Txe={key:0},Ixe=["points","stroke"],Lxe=["d","stroke"],Exe=["xlink:href"],Mxe=["values","dur"],Dxe={class:"decoration-content"},Fxe={__name:"index",props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,()=>{},p),o=It({gId:`decoration-12-g-${t}`,gradientId:`decoration-12-gradient-${t}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}),s=rt(()=>a.value/2),A=rt(()=>i.value/2);Et(()=>e.color,()=>{u(),f()},{deep:!0});function l(){u(),c(),f(),h(),v(),d()}function u(){o.mergedColor=Bt(_t(o.defaultColor),e.color||[])}function c(){const g=-Math.PI/2,y=o.sectorAngle/o.segment,m=a.value/4;let w=tl(s.value,A.value,m,g);o.pathD=Array.from({length:o.segment}).fill("").map((B,C)=>{const b=tl(s.value,A.value,m,g-(C+1)*y).map(x=>Number.parseFloat(x.toFixed(5))),_=`M${w.join(",")} A${m}, ${m} 0 0 0 ${b.join(",")}`;return w=b,_})}function f(){const g=100/(o.segment-1);o.pathColor=Array.from({length:o.segment}).fill(o.mergedColor[0]).map((y,m)=>br(o.mergedColor[0],100-m*g))}function h(){const g=(a.value/2-o.ringWidth/2)/o.ringNum;o.circleR=Array.from({length:o.ringNum}).fill(0).map((y,m)=>g*(m+1))}function v(){const g=Math.PI/6,y=a.value/2;o.splitLinePoints=Array.from({length:6}).fill("").map((m,w)=>{const B=g*(w+1),C=B+Math.PI,b=tl(s.value,A.value,y,B),_=tl(s.value,A.value,y,C);return`${b.join(",")} ${_.join(",")}`})}function d(){const g=Math.PI/6,y=a.value/2-1;o.arcD=Array.from({length:4}).fill("").map((m,w)=>{const B=g*(3*w+1),C=B+g,b=tl(s.value,A.value,y,B),_=tl(s.value,A.value,y,C);return`M${b.join(",")} A${s.value}, ${A.value} 0 0 1 ${_.join(",")}`})}function p(){l()}return(g,y)=>(he(),de("div",{ref_key:"decoration12",ref:n,class:"dv-decoration-12"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("defs",null,[ae("g",{id:Q(o).gId},[(he(!0),de(lt,null,dt(Q(o).pathD,(m,w)=>(he(),de("path",{key:m,stroke:Q(o).pathColor[w],"stroke-width":Q(a)/2,fill:"transparent",d:m},null,8,mxe))),128))],8,yxe),ae("radialGradient",{id:Q(o).gradientId,cx:"50%",cy:"50%",r:"50%"},[y[0]||(y[0]=ae("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1)),ae("stop",{offset:"100%","stop-color":Q(br)(Q(o).mergedColor[1]||Q(o).defaultColor[1],30),"stop-opacity":"1"},null,8,Bxe)],8,wxe)]),(he(!0),de(lt,null,dt(Q(o).circleR,m=>(he(),de("circle",{key:m,r:m,cx:Q(s),cy:Q(A),stroke:Q(o).mergedColor[1],"stroke-width":.8,fill:"transparent"},null,8,Cxe))),128)),ae("circle",{r:"1",cx:Q(s),cy:Q(A),stroke:"transparent",fill:`url(#${Q(o).gradientId})`},[ae("animate",{attributeName:"r",values:`1;${Q(a)/2}`,dur:`${r.haloDur}s`,repeatCount:"indefinite"},null,8,xxe),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${r.haloDur}s`,repeatCount:"indefinite"},null,8,_xe)],8,bxe),ae("circle",{r:"2",cx:Q(s),cy:Q(A),fill:Q(o).mergedColor[1]},null,8,Sxe),Q(o).showSplitLine?(he(),de("g",Txe,[(he(!0),de(lt,null,dt(Q(o).splitLinePoints,m=>(he(),de("polyline",{key:m,points:m,stroke:Q(o).mergedColor[1],"stroke-width":.5,opacity:"50"},null,8,Ixe))),128))])):pt("",!0),(he(!0),de(lt,null,dt(Q(o).arcD,m=>(he(),de("path",{key:m,d:m,stroke:Q(o).mergedColor[1],"stroke-width":"2.3",fill:"transparent"},null,8,Lxe))),128)),ae("use",{"xlink:href":`#${Q(o).gId}`},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${Q(s)} ${Q(A)};360, ${Q(s)} ${Q(A)}`,dur:`${r.scanDur}s`,repeatCount:"indefinite"},null,8,Mxe)],8,Exe)],8,gxe)),ae("div",Dxe,[Ft(g.$slots,"default")])],512))}},BU={install(r){r.component("DvDecoration12",Fxe)}},Ln={color:{type:Array,default:()=>[]},backgroundColor:{type:String,default:"transparent"}};function En(r,e){return rt(()=>e.value.length===0?r:e.value)}const Qxe=["left-top","right-top","left-bottom","right-bottom"],Uxe=["#4fd2dd","#235fa7"],Pxe=vt({props:Ln,setup(r){const e=Ee(null),t=En(Uxe,_n(r,"color")),{width:n,height:a,initWH:i}=yt(e);return{width:n,height:a,initWH:i,mergedColor:t,borderBox1:e}},render(){const{backgroundColor:r,width:e,height:t,mergedColor:n,$slots:a}=this;return se("div",{ref:"borderBox1",class:"dv-border-box-1"},[se("svg",{class:"dv-border",width:e,height:t},[se("polygon",{fill:r,points:`10, 27 10, ${t-27} 13, ${t-24} 13, ${t-21} 24, ${t-11} 38, ${t-11} 41, ${t-8} 73, ${t-8} 75, ${t-10} 81, ${t-10} 85, ${t-6} ${e-85}, ${t-6} ${e-81}, ${t-10} ${e-75}, ${t-10} ${e-73}, ${t-8} ${e-41}, ${t-8} ${e-38}, ${t-11} ${e-10}, ${t-27} ${e-10}, 27 ${e-13}, 25 ${e-13}, 21 ${e-24}, 11 ${e-38}, 11 ${e-41}, 8 ${e-73}, 8 ${e-75}, 10 ${e-81}, 10 ${e-85}, 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24`},null)]),Qxe.map(i=>se("svg",{key:i,width:"150px",height:"150px",class:`${i} dv-border`},[se("polygon",{fill:n[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"},[se("animate",{attributeName:"fill",values:`${n[0]};${n[1]};${n[0]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{fill:n[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"},[se("animate",{attributeName:"fill",values:`${n[1]};${n[0]};${n[1]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{fill:n[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"},[se("animate",{attributeName:"fill",values:`${n[0]};${n[1]};transparent`,dur:"1s",begin:"0s",repeatCount:"indefinite"},null)])])),se("div",{class:"border-box-content"},[Ft(a,"default")])])}}),CU={install(r){r.component("DvBorderBox1",Pxe)}},kxe=["#fff","rgba(255, 255, 255, 0.6)"],Rxe=vt({props:Ln,setup(r){const e=Ee(null),t=En(kxe,_n(r,"color")),{width:n,height:a,initWH:i}=yt(e);return{width:n,height:a,initWH:i,mergedColor:t,borderBox2:e}},render(){const{$slots:r,backgroundColor:e,width:t,height:n,mergedColor:a}=this;return se("div",{ref:"borderBox2",class:"dv-border-box-2"},[se("svg",{class:"dv-border-svg-container",width:t,height:n},[se("polygon",{fill:e,points:` 7, 7 ${t-7}, 7 ${t-7}, ${n-7} 7, ${n-7} `},null),se("polyline",{stroke:a[0],points:`2, 2 ${t-2} ,2 ${t-2}, ${n-2} 2, ${n-2} 2, 2`},null),se("polyline",{stroke:a[1],points:`6, 6 ${t-6}, 6 ${t-6}, ${n-6} 6, ${n-6} 6, 6`},null),se("circle",{fill:a[0],cx:"11",cy:"11",r:"1"},null),se("circle",{fill:a[0],cx:t-11,cy:"11",r:"1"},null),se("circle",{fill:a[0],cx:t-11,cy:n-11,r:"1"},null),se("circle",{fill:a[0],cx:"11",cy:n-11,r:"1"},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),bU={install(r){r.component("DvBorderBox2",Rxe)}},Oxe=["#2862b7","#2862b7"],Hxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Oxe,_n(r,"color"));return{width:t,height:n,mergedColor:i,initWH:a,borderBox3:e}},render(){const{$slots:r,width:e,height:t,backgroundColor:n,mergedColor:a}=this;return se("div",{ref:"borderBox3",class:"dv-border-box-3"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:n,points:` 23, 23 ${e-24}, 23 ${e-24}, ${t-24} 23, ${t-24} `},null),se("polyline",{class:"dv-bb3-line1",stroke:a[0],points:`4, 4 ${e-22} ,4 ${e-22}, ${t-22} 4, ${t-22} 4, 4`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`10, 10 ${e-16}, 10 ${e-16}, ${t-16} 10, ${t-16} 10, 10`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`16, 16 ${e-10}, 16 ${e-10}, ${t-10} 16, ${t-10} 16, 16`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`22, 22 ${e-4}, 22 ${e-4}, ${t-4} 22, ${t-4} 22, 22`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),xU={install(r){r.component("DvBorderBox3",Hxe)}},Nxe={...Ln,reverse:{type:Boolean,default:!1}},Vxe=["red","rgba(0,0,255,0.8)"],Gxe=vt({props:Nxe,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Vxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox4:e}},render(){const{$slots:r,backgroundColor:e,reverse:t,width:n,height:a,mergedColor:i}=this;return se("div",{ref:"borderBox4",class:"dv-border-box-4"},[se("svg",{class:`dv-border-svg-container ${t&&"dv-reverse"}`,width:n,height:a},[se("polygon",{fill:e,points:` ${n-15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24 16, 42 16, ${a-32} 41, ${a-7} ${n-15}, ${a-7} `},null),se("polyline",{class:"dv-bb4-line-1",stroke:i[0],points:`145, ${a-5} 40, ${a-5} 10, ${a-35} 10, 40 40, 5 150, 5 170, 20 ${n-15}, 20`},null),se("polyline",{stroke:i[1],class:"dv-bb4-line-2",points:`245, ${a-1} 36, ${a-1} 14, ${a-23} 14, ${a-100}`},null),se("polyline",{class:"dv-bb4-line-3",stroke:i[0],points:`7, ${a-40} 7, ${a-75}`},null),se("polyline",{class:"dv-bb4-line-4",stroke:i[0],points:"28, 24 13, 41 13, 64"},null),se("polyline",{class:"dv-bb4-line-5",stroke:i[0],points:"5, 45 5, 140"},null),se("polyline",{class:"dv-bb4-line-6",stroke:i[1],points:"14, 75 14, 180"},null),se("polyline",{class:"dv-bb4-line-7",stroke:i[1],points:"55, 11 147, 11 167, 26 250, 26"},null),se("polyline",{class:"dv-bb4-line-8",stroke:i[1],points:"158, 5 173, 16"},null),se("polyline",{class:"dv-bb4-line-9",stroke:i[0],points:`200, 17 ${n-10}, 17`},null),se("polyline",{class:"dv-bb4-line-10",stroke:i[1],points:`385, 17 ${n-10}, 17`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),_U={install(r){r.component("DvBorderBox4",Gxe)}},zxe={...Ln,reverse:{type:Boolean,default:!1}},$xe=["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],Kxe=vt({props:zxe,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En($xe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox5:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a,reverse:i}=this;return se("div",{ref:"borderBox5",class:"dv-border-box-5"},[se("svg",{class:`dv-border-svg-container ${i&&"dv-reverse"}`,width:e,height:t},[se("polygon",{fill:a,points:` 10, 22 ${e-22}, 22 ${e-22}, ${t-86} ${e-84}, ${t-24} 10, ${t-24} `},null),se("polyline",{class:"dv-bb5-line-1",stroke:n[0],points:`8, 5 ${e-5}, 5 ${e-5}, ${t-100} ${e-100}, ${t-5} 8, ${t-5} 8, 5`},null),se("polyline",{class:"dv-bb5-line-2",stroke:n[1],points:`3, 5 ${e-20}, 5 ${e-20}, ${t-60} ${e-74}, ${t-5} 3, ${t-5} 3, 5`},null),se("polyline",{class:"dv-bb5-line-3",stroke:n[1],points:`50, 13 ${e-35}, 13`},null),se("polyline",{class:"dv-bb5-line-4",stroke:n[1],points:`15, 20 ${e-35}, 20`},null),se("polyline",{class:"dv-bb5-line-5",stroke:n[1],points:`15, ${t-20} ${e-110}, ${t-20}`},null),se("polyline",{class:"dv-bb5-line-6",stroke:n[1],points:`15, ${t-13} ${e-110}, ${t-13}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),SU={install(r){r.component("DvBorderBox5",Kxe)}},Wxe=["rgba(255, 255, 255, 0.35)","gray"],Xxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Wxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox6:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox6",class:"dv-border-box-6"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:a,points:` 9, 7 ${e-9}, 7 ${e-9}, ${t-7} 9, ${t-7} `},null),se("circle",{fill:n[1],cx:"5",cy:"5",r:"2"},null),se("circle",{fill:n[1],cx:e-5,cy:"5",r:"2"},null),se("circle",{fill:n[1],cx:e-5,cy:t-5,r:"2"},null),se("circle",{fill:n[1],cx:"5",cy:t-5,r:"2"},null),se("polyline",{stroke:n[0],points:`10, 4 ${e-10}, 4`},null),se("polyline",{stroke:n[0],points:`10, ${t-4} ${e-10}, ${t-4}`},null),se("polyline",{stroke:n[0],points:`5, 70 5, ${t-70}`},null),se("polyline",{stroke:n[0],points:`${e-5}, 70 ${e-5}, ${t-70}`},null),se("polyline",{stroke:n[0],points:"3, 10, 3, 50"},null),se("polyline",{stroke:n[0],points:"7, 30 7, 80"},null),se("polyline",{stroke:n[0],points:`${e-3}, 10 ${e-3}, 50`},null),se("polyline",{stroke:n[0],points:`${e-7}, 30 ${e-7}, 80`},null),se("polyline",{stroke:n[0],points:`3, ${t-10} 3, ${t-50}`},null),se("polyline",{stroke:n[0],points:`7, ${t-30} 7, ${t-80}`},null),se("polyline",{stroke:n[0],points:`${e-3}, ${t-10} ${e-3}, ${t-50}`},null),se("polyline",{stroke:n[0],points:`${e-7}, ${t-30} ${e-7}, ${t-80}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),TU={install(r){r.component("DvBorderBox6",Xxe)}},Yxe=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],Zxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Yxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox7:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox7",class:"dv-border-box-7",style:`box-shadow: inset 0 0 40px ${n[0]}; border: 1px solid ${n[0]}; background-color: ${a}`},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:"0, 25 0, 0 25, 0"},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`${e-25}, 0 ${e}, 0 ${e}, 25`},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`${e-25}, ${t} ${e}, ${t} ${e}, ${t-25}`},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`0, ${t-25} 0, ${t} 25, ${t}`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:"0, 10 0, 0 10, 0"},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`${e-10}, 0 ${e}, 0 ${e}, 10`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`${e-10}, ${t} ${e}, ${t} ${e}, ${t-10}`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`0, ${t-10} 0, ${t} 10, ${t}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),IU={install(r){r.component("DvBorderBox7",Zxe)}},jxe={...Ln,reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},Jxe=["#235fa7","#4fd2dd"],qxe=vt({props:jxe,setup(r){const e=Ca(),t=Ee(null),n=It({path:`border-box-8-path-${e}`,gradient:`border-box-8-gradient-${e}`,mask:`border-box-8-mask-${e}`}),{width:a,height:i,initWH:o}=yt(t),s=rt(()=>(a.value+i.value-5)*2),A=rt(()=>r.reverse?`M 2.5, 2.5 L 2.5, ${i.value-2.5} L ${a.value-2.5}, ${i.value-2.5} L ${a.value-2.5}, 2.5 L 2.5, 2.5`:`M2.5, 2.5 L${a.value-2.5}, 2.5 L${a.value-2.5}, ${i.value-2.5} L2.5, ${i.value-2.5} L2.5, 2.5`),l=En(Jxe,_n(r,"color"));return{width:a,height:i,initWH:o,state:n,mergedColor:l,pathD:A,length:s,borderBox8:t}},render(){const{$slots:r,width:e,height:t,state:n,mergedColor:a,pathD:i,length:o,backgroundColor:s,dur:A}=this;return se("div",{ref:"borderBox8",class:"dv-border-box-8"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("path",{id:n.path,d:i,fill:"transparent"},null),se("radialGradient",{id:n.gradient,cx:"50%",cy:"50%",r:"50%"},[se("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null),se("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null)]),se("mask",{id:n.mask},[se("circle",{cx:"0",cy:"0",r:"150",fill:`url(#${n.gradient})`},[CV("animateMotion",{dur:`${A}s`,path:i,rotate:"auto",repeatCount:"indefinite"})])])]),se("polygon",{fill:s,points:`5, 5 ${e-5}, 5 ${e-5} ${t-5} 5, ${t-5}`},null),se("use",{stroke:a[0],"stroke-width":"1","xlink:href":`#${n.path}`},null),se("use",{stroke:a[1],"stroke-width":"3","xlink:href":`#${n.path}`,mask:`url(#${n.mask})`},[se("animate",{attributeName:"stroke-dasharray",from:`0, ${o}`,to:`${o}, 0`,dur:`${A}s`,repeatCount:"indefinite"},null)])]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),LU={install(r){r.component("DvBorderBox8",qxe)}},e_e=["#11eefd","#0078d2"],t_e=vt({props:Ln,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=It({gradientId:`border-box-9-gradient-${e}`,maskId:`border-box-9-mask-${e}`}),s=En(e_e,_n(r,"color"));return{width:n,height:a,initWH:i,state:o,mergedColor:s,borderBox9:t}},render(){const{$slots:r,width:e,height:t,state:n,mergedColor:a,backgroundColor:i}=this;return se("div",{ref:"borderBox9",class:"dv-border-box-9"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("linearGradient",{id:n.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[se("animate",{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),se("animate",{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),se("stop",{offset:"0%","stop-color":a[0]},[se("animate",{attributeName:"stop-color",values:`${a[0]};${a[1]};${a[0]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)]),se("stop",{offset:"100%","stop-color":a[1]},[se("animate",{attributeName:"stop-color",values:`${a[1]};${a[0]};${a[1]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)])]),se("mask",{id:n.maskId},[se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${t*.4} 8, 3, ${e*.4+7}, 3`},null),se("polyline",{fill:"#fff",points:`8, ${t*.15} 8, 3, ${e*.1+7}, 3 ${e*.1}, 8 14, 8 14, ${t*.15-7} `},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${e*.5}, 3 ${e-3}, 3, ${e-3}, ${t*.25}`},null),se("polyline",{fill:"#fff",points:` ${e*.52}, 3 ${e*.58}, 3 ${e*.58-7}, 9 ${e*.52+7}, 9 `},null),se("polyline",{fill:"#fff",points:` ${e*.9}, 3 ${e-3}, 3 ${e-3}, ${t*.1} ${e-9}, ${t*.1-7} ${e-9}, 9 ${e*.9+7}, 9 `},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${t*.5} 8, ${t-3} ${e*.3+7}, ${t-3}`},null),se("polyline",{fill:"#fff",points:` 8, ${t*.55} 8, ${t*.7} 2, ${t*.7-7} 2, ${t*.55+7} `},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${e*.35}, ${t-3} ${e-3}, ${t-3} ${e-3}, ${t*.35}`},null),se("polyline",{fill:"#fff",points:` ${e*.92}, ${t-3} ${e-3}, ${t-3} ${e-3}, ${t*.8} ${e-9}, ${t*.8+7} ${e-9}, ${t-9} ${e*.92+7}, ${t-9} `},null)])]),se("polygon",{fill:i,points:` 15, 9 ${e*.1+1}, 9 ${e*.1+4}, 6 ${e*.52+2}, 6 ${e*.52+6}, 10 ${e*.58-7}, 10 ${e*.58-2}, 6 ${e*.9+2}, 6 ${e*.9+6}, 10 ${e-10}, 10 ${e-10}, ${t*.1-6} ${e-6}, ${t*.1-1} ${e-6}, ${t*.8+1} ${e-10}, ${t*.8+6} ${e-10}, ${t-10} ${e*.92+7}, ${t-10} ${e*.92+2}, ${t-6} 11, ${t-6} 11, ${t*.15-2} 15, ${t*.15-7} `},null),se("rect",{x:"0",y:"0",width:e,height:t,fill:`url(#${n.gradientId})`,mask:`url(#${n.maskId})`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),EU={install(r){r.component("DvBorderBox9",t_e)}},r_e=["left-top","right-top","left-bottom","right-bottom"],n_e=["#1d48c4","#d3e1f8"],a_e=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(n_e,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox10:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox10",class:"dv-border-box-10",style:`box-shadow: inset 0 0 25px 3px ${n[0]}`},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:a,points:` 4, 0 ${e-4}, 0 ${e}, 4 ${e}, ${t-4} ${e-4}, ${t} 4, ${t} 0, ${t-4} 0, 4 `},null)]),r_e.map(i=>se("svg",{width:"150px",height:"150px",class:`${i} dv-border-svg-container`},[se("polygon",{fill:n[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"},null)])),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),MU={install(r){r.component("DvBorderBox10",a_e)}},i_e={...Ln,title:{type:String,default:""},titleWidth:{type:Number,default:250},animate:{type:Boolean,default:!0}},DU=["#8aaafb","#1f33a2"],o_e=vt({props:i_e,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=Ee(`border-box-11-filterId-${e}`),s=En(DU,_n(r,"color"));return{width:n,height:a,initWH:i,filterId:o,mergedColor:s,borderBox11:t}},render(){const{$slots:r,width:e,height:t,filterId:n,mergedColor:a,backgroundColor:i,title:o,titleWidth:s,animate:A}=this;return se("div",{ref:"borderBox11",class:"dv-border-box-11"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("filter",{id:n,height:"150%",width:"150%",x:"-25%",y:"-25%"},[se("feMorphology",{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"},null),se("feGaussianBlur",{in:"thicken",stdDeviation:"3",result:"blurred"},null),se("feFlood",{"flood-color":a[1],result:"glowColor"},null),se("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),se("feMerge",null,[se("feMergeNode",{in:"softGlowColored"},null),se("feMergeNode",{in:"SourceGraphic"},null)])])]),se("polygon",{fill:i,points:` 20, 32 ${e*.5-s/2}, 32 ${e*.5-s/2+20}, 53 ${e*.5+s/2-20}, 53 ${e*.5+s/2}, 32 ${e-20}, 32 ${e-8}, 48 ${e-8}, ${t-25} ${e-20}, ${t-8} 20, ${t-8} 8, ${t-25} 8, 50 `},null),se("polyline",{stroke:a[0],filter:`url(#${n})`,points:` ${(e-s)/2}, 30 20, 30 7, 50 7, ${50+(t-167)/2} 13, ${55+(t-167)/2} 13, ${135+(t-167)/2} 7, ${140+(t-167)/2} 7, ${t-27} 20, ${t-7} ${e-20}, ${t-7} ${e-7}, ${t-27} ${e-7}, ${140+(t-167)/2} ${e-13}, ${135+(t-167)/2} ${e-13}, ${55+(t-167)/2} ${e-7}, ${50+(t-167)/2} ${e-7}, 50 ${e-20}, 30 ${(e+s)/2}, 30 ${(e+s)/2-20}, 7 ${(e-s)/2+20}, 7 ${(e-s)/2}, 30 ${(e-s)/2+20}, 52 ${(e+s)/2-20}, 52 ${(e+s)/2}, 30 `},null),se("polygon",{stroke:a[0],fill:"transparent",points:` ${(e+s)/2-5}, 30 ${(e+s)/2-21}, 11 ${(e+s)/2-27}, 11 ${(e+s)/2-8}, 34 `},null),se("polygon",{stroke:a[0],fill:"transparent",points:` ${(e-s)/2+5}, 30 ${(e-s)/2+22}, 49 ${(e-s)/2+28}, 49 ${(e-s)/2+8}, 26 `},null),se("polygon",{stroke:a[0],fill:br(a[1]||DU[1],30),filter:`url(#${n})`,points:` ${(e+s)/2-11}, 37 ${(e+s)/2-32}, 11 ${(e-s)/2+23}, 11 ${(e-s)/2+11}, 23 ${(e-s)/2+33}, 49 ${(e+s)/2-22}, 49 `},null),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"1",points:` ${(e-s)/2-10}, 37 ${(e-s)/2-31}, 37 ${(e-s)/2-25}, 46 ${(e-s)/2-4}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.7",points:` ${(e-s)/2-40}, 37 ${(e-s)/2-61}, 37 ${(e-s)/2-55}, 46 ${(e-s)/2-34}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.5",points:` ${(e-s)/2-70}, 37 ${(e-s)/2-91}, 37 ${(e-s)/2-85}, 46 ${(e-s)/2-64}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"1",points:` ${(e+s)/2+30}, 37 ${(e+s)/2+9}, 37 ${(e+s)/2+3}, 46 ${(e+s)/2+24}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.7",points:` ${(e+s)/2+60}, 37 ${(e+s)/2+39}, 37 ${(e+s)/2+33}, 46 ${(e+s)/2+54}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.5",points:` ${(e+s)/2+90}, 37 ${(e+s)/2+69}, 37 ${(e+s)/2+63}, 46 ${(e+s)/2+84}, 46 `},[A&&se("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("text",{class:"dv-border-box-11-title",x:`${e/2}`,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},[o]),se("polygon",{fill:a[0],filter:`url(#${n})`,points:` 7, ${53+(t-167)/2} 11, ${57+(t-167)/2} 11, ${133+(t-167)/2} 7, ${137+(t-167)/2} `},null),se("polygon",{fill:a[0],filter:`url(#${n})`,points:` ${e-7}, ${53+(t-167)/2} ${e-11}, ${57+(t-167)/2} ${e-11}, ${133+(t-167)/2} ${e-7}, ${137+(t-167)/2} `},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),FU={install(r){r.component("DvBorderBox11",o_e)}},nc=["#2e6099","#7ce7fd"],s_e=vt({props:Ln,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=Ee(`borderr-box-12-filterId-${e}`),s=En(nc,_n(r,"color"));return{width:n,height:a,filterId:o,mergedColor:s,initWH:i,borderBox12:t}},render(){const{$slots:r,width:e,height:t,filterId:n,mergedColor:a,backgroundColor:i}=this;return se("div",{ref:"borderBox12",class:"dv-border-box-12"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("filter",{id:n,height:"150%",width:"150%",x:"-25%",y:"-25%"},[se("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null),se("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null),se("feFlood",{"flood-color":br(a[1]||nc[1],70),result:"glowColor"},[se("animate",{attributeName:"flood-color",values:` ${br(a[1]||nc[1],70)}; ${br(a[1]||nc[1],30)}; ${br(a[1]||nc[1],70)}; `,dur:"3s",begin:"0s",repeatCount:"indefinite"},null)]),se("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),se("feMerge",null,[se("feMergeNode",{in:"softGlowColored"},null),se("feMergeNode",{in:"SourceGraphic"},null)])])]),e&&t&&se("path",{fill:i,"stroke-width":"2",stroke:a[0],d:` M15 5 L ${e-15} 5 Q ${e-5} 5, ${e-5} 15 L ${e-5} ${t-15} Q ${e-5} ${t-5}, ${e-15} ${t-5} L 15, ${t-5} Q 5 ${t-5} 5 ${t-15} L 5 15 Q 5 5 15 5 `},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:`M ${e-20} 5 L ${e-15} 5 Q ${e-5} 5 ${e-5} 15 L ${e-5} 20`},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:` M ${e-20} ${t-5} L ${e-15} ${t-5} Q ${e-5} ${t-5} ${e-5} ${t-15} L ${e-5} ${t-20} `},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:` M 20 ${t-5} L 15 ${t-5} Q 5 ${t-5} 5 ${t-15} L 5 ${t-20} `},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),QU={install(r){r.component("DvBorderBox12",s_e)}},A_e=["#6586ec","#2cf7fe"],l_e=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(A_e,_n(r,"color"));return{width:t,height:n,mergedColor:i,initWH:a,borderBox13:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox13",class:"dv-border-box-13"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("path",{fill:a,stroke:n[0],d:` M 5 20 L 5 10 L 12 3 L 60 3 L 68 10 L ${e-20} 10 L ${e-5} 25 L ${e-5} ${t-5} L 20 ${t-5} L 5 ${t-20} L 5 20 `},null),se("path",{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:n[0],d:"M 16 9 L 61 9"},null),se("path",{fill:"transparent",stroke:n[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"},null),se("path",{fill:"transparent",stroke:n[1],d:`M ${e-5} ${t-30} L ${e-5} ${t-5} L ${e-30} ${t-5}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),UU={install(r){r.component("DvBorderBox13",l_e)}},u_e={install(r){var e,t,n,a,i,o,s,A,l,u,c,f,h,v,d,p,g,y,m,w,B,C,b,_,x,S,I,L,T,M,R,P,E,k,D,U,O,G,X;(e=fF.install)==null||e.call(fF,r),(t=dF.install)==null||t.call(dF,r),(n=pF.install)==null||n.call(pF,r),(a=wQ.install)==null||a.call(wQ,r),(i=BQ.install)==null||i.call(BQ,r),(o=CQ.install)==null||o.call(CQ,r),(s=bQ.install)==null||s.call(bQ,r),(A=xQ.install)==null||A.call(xQ,r),(l=_Q.install)==null||l.call(_Q,r),(u=iU.install)==null||u.call(iU,r),(c=oU.install)==null||c.call(oU,r),(f=sU.install)==null||f.call(sU,r),(h=AU.install)==null||h.call(AU,r),(v=lU.install)==null||v.call(lU,r),(d=uU.install)==null||d.call(uU,r),(p=cU.install)==null||p.call(cU,r),(g=fU.install)==null||g.call(fU,r),(y=hU.install)==null||y.call(hU,r),(m=vU.install)==null||m.call(vU,r),(w=dU.install)==null||w.call(dU,r),(B=pU.install)==null||B.call(pU,r),(C=gU.install)==null||C.call(gU,r),(b=yU.install)==null||b.call(yU,r),(_=mU.install)==null||_.call(mU,r),(x=wU.install)==null||x.call(wU,r),(S=BU.install)==null||S.call(BU,r),(I=CU.install)==null||I.call(CU,r),(L=bU.install)==null||L.call(bU,r),(T=xU.install)==null||T.call(xU,r),(M=_U.install)==null||M.call(_U,r),(R=SU.install)==null||R.call(SU,r),(P=TU.install)==null||P.call(TU,r),(E=IU.install)==null||E.call(IU,r),(k=LU.install)==null||k.call(LU,r),(D=EU.install)==null||D.call(EU,r),(U=MU.install)==null||U.call(MU,r),(O=FU.install)==null||O.call(FU,r),(G=QU.install)==null||G.call(QU,r),(X=UU.install)==null||X.call(UU,r)}},t_=TV(twe);t_.use(u_e);t_.use(LX);t_.mount("#app");