mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
84 lines
1.2 MiB
84 lines
1.2 MiB
var pa=Object.defineProperty;var va=(r,t,o)=>t in r?pa(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var er=(r,t,o)=>(va(r,typeof t!="symbol"?t+"":t,o),o);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const h of l)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&s(v)}).observe(document,{childList:!0,subtree:!0});function o(l){const h={};return l.integrity&&(h.integrity=l.integrity),l.referrerPolicy&&(h.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?h.credentials="include":l.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(l){if(l.ep)return;l.ep=!0;const h=o(l);fetch(l.href,h)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function getAugmentedNamespace(r){if(r.__esModule)return r;var t=r.default;if(typeof t=="function"){var o=function s(){if(this instanceof s){var l=[null];l.push.apply(l,arguments);var h=Function.bind.apply(t,l);return new h}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var l=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,l.get?l:{enumerable:!0,get:function(){return r[s]}})}),o}var zhCn={};(function(r){Object.defineProperty(r,"__esModule",{value:!0});var t={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};r.default=t})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en={};(function(r){Object.defineProperty(r,"__esModule",{value:!0});var t={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};r.default=t})(en);const enLocale=getDefaultExportFromCjs(en);var ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=(r,t)=>{for(var o in t)ot(r,o,{get:t[o],enumerable:!0})},rt$1=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Rt(t))!Dt.call(r,l)&&l!==o&&ot(r,l,{get:()=>t[l],enumerable:!(s=kt(t,l))||s.enumerable});return r},G=(r,t,o)=>(rt$1(r,t,"default"),o&&rt$1(o,t,"default"));function it(r){let t=r.split(","),o=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),l=s.length,h=new Uint8Array(l);for(;l--;)h[l]=s.charCodeAt(l);return new Blob([h],{type:o})}function at(r,t,o){return new Promise((s,l)=>{let h=document.createElement("CANVAS"),v=h.getContext("2d"),x=new Image;x.crossOrigin="",x.onload=function(){if(!h||!v)return l();h.height=x.height,h.width=x.width,v.drawImage(x,0,0);let T=h.toDataURL(t||"image/png",o);h=null,s(T)},x.src=r})}var It=Object.prototype.toString;function L$1(r,t){return It.call(r)===`[object ${t}]`}function N(r){return r!==null&&L$1(r,"Object")}function k(r){return typeof r<"u"}function lt$1(r){return!k(r)}function ft(r){return r===null}function Pt(r){return ft(r)||lt$1(r)}function Ut(r){return J(r)||S(r)?r.length===0:r instanceof Map||r instanceof Set?r.size===0:N(r)?Object.keys(r).length===0:!1}function P$2(r){return!!(Ut(r)||Pt(r))}function pt(r){return L$1(r,"Number")}function S(r){return L$1(r,"String")}function ut(r){return typeof r=="function"}function Ae(r){return L$1(r,"Boolean")}function J(r){return r&&Array.isArray(r)}var K=typeof window>"u",Q=!K;function dt(r){let t="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(t,"ig").test(r)}function Ue(r){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test(r)}var j$3=(r,t)=>!!(r!=null&&r.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))),qe=(r,t,o)=>{j$3(r,t)||(r.className+=" "+t),o&&!j$3(r,o)&&(r.className+=" "+o)},Xe=(r,t,o)=>{if(j$3(r,t)){let s=new RegExp("(\\s|^)"+t+"(\\s|$)");r.className=r.className.replace(s," ").trim()}if(o&&j$3(r,o)){let s=new RegExp("(\\s|^)"+o+"(\\s|$)");r.className=r.className.replace(s," ").trim()}},Ve=(r,t,o)=>{let s=o||document.body,{className:l}=s,h=l.replace(t,"").trim().split(/\s+/).join(" ");s.className=r?`${h} ${t}`:h},Bt=Object.prototype.toString;function Nt(r,t){return r&&r.hasOwnProperty?r.hasOwnProperty(t):!1}function jt(r,t,o){if(r)if(r.forEach)r.forEach(t,o);else for(let s=0,l=r.length;s<l;s++)t.call(o,r[s],s,r)}function Ht(r,t,o){if(r)for(let s in r)Nt(r,s)&&t.call(o,r[s],s,r)}function tt(r,t){let o=r.__proto__.constructor;return t?new o(t):new o}function H$1(r,t){return t?et(r,t):r}function et(r,t){if(r)switch(Bt.call(r)){case"[object Object]":{let o=Object.create(r.__proto__);return Ht(r,function(s,l){o[l]=H$1(s,t)}),o}case"[object Date]":case"[object RegExp]":return tt(r,r.valueOf());case"[object Array]":case"[object Arguments]":{let o=[];return jt(r,function(s){o.push(H$1(s,t))}),o}case"[object Set]":{let o=tt(r);return o.forEach(function(s){o.add(H$1(s,t))}),o}case"[object Map]":{let o=tt(r);return o.forEach(function(s){o.set(H$1(s,t))}),o}}return r}function Je(r,t){return r&&et(r,t)}function Ke(r){return r&&et(r,!0)}var tn=r=>{let t=(r==null?void 0:r.type)??"rgb",o=(r==null?void 0:r.num)??0;if(o===0)switch(t){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(t){case"rgb":let s=[];for(let v=0;v<o;v++)s.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return s;case"hex":let l=[];for(let v=0;v<o;v++)l.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return l;case"hsl":let h=[];for(let v=0;v<o;v++)h.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return h}},D=(r=20)=>new Promise(t=>setTimeout(t,r)),Et=(r,t=200,o=!1)=>{let s,l=t,h;return function(){s&&clearTimeout(s),o?(s||r.call(h,...arguments),s=setTimeout(()=>s=null,l)):s=setTimeout(()=>r.call(h,...arguments),l)}},Sn=(r,t=1e3)=>{let o;return function(){o||(o=setTimeout(()=>{r.call(void 0,...arguments),o=null},t))}},Ln=()=>{let r=navigator.userAgent.toLowerCase(),t=r.match(/midp/i)=="midp",o=r.match(/ucweb/i)=="ucweb",s=r.match(/android/i)=="android",l=r.match(/iphone os/i)=="iphone os",h=r.match(/windows ce/i)=="windows ce",v=r.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",x=r.match(/windows mobile/i)=="windows mobile";return t||o||s||l||h||v||x},Tt=(r,t="_blank")=>{let o=document.createElement("a");o.setAttribute("href",r),o.setAttribute("target",t),o.setAttribute("rel","noreferrer noopener"),o.setAttribute("id","external");let s=document.getElementById("external");s&&document.body.removeChild(s),document.body.appendChild(o),o.click(),o.remove()};function In(r,t,o,s){at(r).then(l=>{zt(l,t,o,s)})}function zt(r,t,o,s){let l=it(r);_t(l,t,o,s)}function _t(r,t,o,s){let l=typeof s<"u"?[s,r]:[r],h=new Blob(l,{type:o||"application/octet-stream"}),v=window.URL.createObjectURL(h),x=document.createElement("a");x.style.display="none",x.href=v,x.setAttribute("download",t),typeof x.download>"u"&&x.setAttribute("target","_blank"),document.body.appendChild(x),x.click(),document.body.removeChild(x),window.URL.revokeObjectURL(v)}function Pn(r,t,o="_self"){let s=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,l=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(s||l){let h=document.createElement("a");if(h.href=r,h.target=o,h.download!==void 0&&(h.download=t||r.substring(r.lastIndexOf("/")+1,r.length)),document.createEvent){let v=document.createEvent("MouseEvents");return v.initEvent("click",!0,!0),h.dispatchEvent(v),!0}}return r.indexOf("?")===-1&&(r+="?download"),Tt(r,o),!0}function Wt(r,t){if(!r||!t||r.length!==t.length)return!1;for(let o of Object.keys(r))if(!Mt(r[o],t[o]))return!1;return!0}function qt(r,t){if(!r||!t)return!1;let{length:o}=r;if(o!==t.length)return!1;for(let s=0;s<o;s++)if(!Mt(r[s],t[s]))return!1;return!0}function Mt(r,t){let o=Object.prototype.toString.call(r);return o!==Object.prototype.toString.call(t)?!1:o==="[object Object]"?Wt(r,t):o==="[object Array]"?qt(r,t):o==="[object Function]"?r===t?!0:r.toString()===t.toString():r===t}var Hn=(r,t)=>{if(r.install=o=>{for(let s of[r,...Object.values(t??{})])o.component(s.name,s)},t)for(let[o,s]of Object.entries(t))r[o]=s;return r},U=class{constructor(r){er(this,"storage");this.storage=r}setItem(r,t){P$2(this.storage)||this.storage.setItem(r,JSON.stringify(t))}getItem(r){if(!P$2(this.storage))return JSON.parse(this.storage.getItem(r))}removeItem(r){P$2(this.storage)||this.storage.removeItem(r)}clear(){P$2(this.storage)||this.storage.clear()}},q=class extends U{constructor(r){super(r)}},Kn=()=>Q?new q(window.localStorage):new q(""),Qn=()=>Q?new U(window.sessionStorage):new U("");function Xt(r,t){return S(t)?r.substring(0,r.indexOf(t)):""}function fr(r){if(!dt(r))return console.error(`${r}不符合超链接规范`),{};let t=r.indexOf("?"),o=r.slice(t+1).split("&"),s={};for(let l=0;l<o.length;l++)s[o[l].split("=")[0]]=o[l].split("=")[1];return s}function br(r,t){return r.every(o=>t.some(s=>s===o))}var yr=(...r)=>[...r].reduce((t,o)=>t.filter(s=>o.includes(s)));function wr(r,t){let o=[];for(let s of r)s[t]&&o.push(s[t]);return Array.from(new Set(o))}var i={};$t$1(i,{Vue:()=>Vue});G(i,Vue);var ee=["class","style"],ne=/^on[A-Z]/;function re(r){return Object.keys(r).map(t=>[t,r[t]])}function vr(r={}){let t=(0,i.getCurrentInstance)();if(!t)return{};let{excludeListeners:o=!1,excludeKeys:s=[]}=r,l=(0,i.shallowRef)({}),h=s.concat(ee);return t.attrs=(0,i.reactive)(t.attrs),(0,i.watchEffect)(()=>{let v=re(t.attrs).reduce((x,[T,w])=>(!h.includes(T)&&!(o&&ne.test(T))&&(x[T]=w),x),{});l.value=v}),l}function O(r){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)(r)}var Br=()=>{let r=(0,i.ref)(!1),t,o=()=>{r.value=document.documentElement.classList.contains("dark")};return O(()=>{t.takeRecords(),t.disconnect()}),(0,i.onBeforeMount)(()=>{o(),t=new MutationObserver(o),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:r}};function Ct(){let{appContext:{config:{globalProperties:r}}}=(0,i.getCurrentInstance)();return r}var Zr=(r,t)=>{let o=(t==null?void 0:t.theme)??(0,i.ref)("default"),s=(t==null?void 0:t.tooltipId)??"tooltipElement",l=Ct().$echarts,h=null,v=(0,i.ref)({}),x=(0,i.ref)(),T=(0,i.computed)(()=>o.value!=="dark"?v.value:{backgroundColor:"transparent",...v.value});function w(me){let _e=(0,i.unref)(r);!_e||!(0,i.unref)(_e)||(h=l.init(_e,me))}function C(me,..._e){var ye;if(v.value=me,x.value=_e,((ye=(0,i.unref)(r))==null?void 0:ye.offsetHeight)===0){D().then(()=>C((0,i.unref)(T),..._e));return}(0,i.nextTick)(()=>{D().then(()=>{!h&&w(o.value),(me.clear??!0)&&M(),h==null||h.setOption((0,i.unref)(T)),_e&&_e.map(Se=>{(Se==null?void 0:Se.type)!=="zrender"&&typeof(Se==null?void 0:Se.callback)=="function"&&(h==null||h.on(Se==null?void 0:Se.name,Se!=null&&Se.query?Se==null?void 0:Se.query:"",Te=>{Se==null||Se.callback(Te)})),(Se==null?void 0:Se.type)==="zrender"&&typeof(Se==null?void 0:Se.callback)=="function"&&(h==null||h.getZr().on(Se==null?void 0:Se.name,Te=>{Te.target||(Se==null||Se.callback(Te))}))}),me!=null&&me.addTooltip&&le(me.addTooltip)})})}function M(){h&&h.clear()}function V(){h.resize()}function z(me){let _e=(me==null?void 0:me.type)??"default",ye=(me==null?void 0:me.opts)??{};h.showLoading(_e,ye)}function F(){h.hideLoading()}function B(me){h.appendData(me)}function W(){return h.getWidth()}function Y(){return h.getHeight()}function Z(){return h||w(o.value),h}function X(){return h.getDom()}function te(){return h.getOption()}function oe(me){return h.getDataURL(me)}function ae(me){return h.getConnectedDataURL(me)}function le(me){if(!me)return;let _e=document.querySelector("html");if(!document.getElementById(s)){let Te=document.createElement("div");Te.setAttribute("id",s),Te.style.display="block",_e.appendChild(Te)}let ye=document.querySelector(`#${s}`),Se=Te=>{if((Te==null?void 0:Te.targetType)!=="axisLabel")return;let we=`
|
||
padding: 5px;
|
||
font-size: 12px;
|
||
display: inline;
|
||
border-radius: 4px;
|
||
position: absolute;
|
||
background-color: #303133;
|
||
z-index: 99999;color: #fff;
|
||
box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px;
|
||
`;ye.style.cssText=we,ye.innerHTML=Te==null?void 0:Te.value,_e.onmousemove=Ee=>{let Ce=Ee.pageX-10,ke=Ee.pageY+15;ye.style.top=ke+"px",ye.style.left=Ce+"px"}};h==null||h.on("mouseover",Te=>{(me==="x"&&Te.componentType=="xAxis"||me==="y"&&Te.componentType=="yAxis"||me.toString()==="true"&&Te.componentType.includes("Axis"))&&Se(Te)}),h==null||h.on("mouseout",()=>{_e.onmousemove=null,ye.style.cssText="display:none"})}(0,i.watch)(()=>o.value,me=>{h&&(h.dispose(),w(me),C(v.value,...x.value))});function he(){var me;!h||D(((me=v.value)==null?void 0:me.delay)??300).then(()=>{V()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",he)})}),O(()=>{var me;window.removeEventListener("resize",he),h&&(h.dispose(),h=null,(me=document.querySelector(`#${s}`))==null||me.remove())}),{echarts:l,clear:M,resize:V,getDom:X,getWidth:W,getOption:te,getHeight:Y,addTooltip:le,getDataURL:oe,setOptions:C,appendData:B,getInstance:Z,showLoading:z,hideLoading:F,getConnectedDataURL:ae}},se=Symbol("watermark-dom"),oo=(r=(0,i.ref)(document.body))=>{let t=se.toString(),o=(0,i.shallowRef)(),s=()=>{let M=(0,i.unref)(o);o.value=void 0;let V=(0,i.unref)(r);!V||M&&V.removeChild(M)};function l(M,V){let z=document.createElement("canvas"),F=(V==null?void 0:V.width)??250,B=(V==null?void 0:V.height)??100;Object.assign(z,{width:F,height:B});let W=z.getContext("2d");if(W){if(W.rotate(((V==null?void 0:V.rotate)??-10*Math.PI)/120),W.font=(V==null?void 0:V.font)??"15px Reggae One",(V==null?void 0:V.gradient)&&J(V==null?void 0:V.gradient)){let Y=W.createLinearGradient(0,0,F,0);V==null||V.gradient.forEach(Z=>{Y.addColorStop(Z.value,Z.color)}),W.fillStyle=Y}else W.fillStyle=(V==null?void 0:V.fillStyle)??"rgba(0, 0, 0, 0.15)";if(W.textAlign="left",W.textBaseline="middle",V!=null&&V.globalAlpha&&(W.globalAlpha=V.globalAlpha),V==null?void 0:V.shadowConfig){let{shadowConfig:Y}=V;W.shadowBlur=Y[0],W.shadowColor=(Y==null?void 0:Y[1])??"#000000",W.shadowOffsetX=(Y==null?void 0:Y[2])??0,W.shadowOffsetY=(Y==null?void 0:Y[3])??0}W.fillText(M,F/((V==null?void 0:V.fillTextWidth)??20),B/((V==null?void 0:V.fillTextHeight)??2))}return z.toDataURL("image/png")}function h(M={}){let V=(0,i.unref)(o);!V||(k(M.width)&&(V.style.width=`${M.width}px`),k(M.height)&&(V.style.height=`${M.height}px`),k(M.str)&&(V.style.background=`url(${l(M.str,M.attr)}) left top repeat`))}let v=Et(()=>{let M=(0,i.unref)(r);if(!M)return;let{clientHeight:V,clientWidth:z}=M;h({height:V,width:z})}),x=(M,V)=>{var Y;if((0,i.unref)(o))return h({str:M,attr:V}),t;let z=document.createElement("div");o.value=z,z.id=t,z.style.pointerEvents="none",z.style.top="0px",z.style.left="0px",z.style.position="absolute",z.style.zIndex=(V==null?void 0:V.zIndex)??"100000";let F=(0,i.unref)(r);if(!F)return t;let{clientHeight:B,clientWidth:W}=F;return h({str:M,width:W,height:B,attr:V}),(Y=F==null?void 0:F.style)!=null&&Y.position||(F.style.position="relative"),F.appendChild(z),t};function T(M,{str:V,attr:z}){M[0].removedNodes[0]&&M[0].removedNodes[0].id===t&&(o.value=void 0,x(V,z))}function w(M,V){let z={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(F=>T(F,{str:M,attr:V})).observe((0,i.unref)(r),z)}function C(M,V){x(M,V),window.addEventListener("resize",v),V!=null&&V.forever&&w(M,V),(0,i.getCurrentInstance)()&&s&&s()}return O(()=>{window.removeEventListener("resize",v)}),{clear:s,setWatermark:C}};const _hoisted_1$1={key:1},_sfc_main$1=Vue.defineComponent({__name:"index",setup(r){const t=Vue.computed(()=>l=>{var h;return((h=l==null?void 0:l.footerButtons)==null?void 0:h.length)>0?l.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:v,index:x}})=>{closeDialog(v,x,{command:"cancel"})}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:v,index:x}})=>{closeDialog(v,x,{command:"sure"})}}]});function o(l,h,v){if(h!=null&&h[l]&&ut(h==null?void 0:h[l]))return h==null?void 0:h[l]({options:h,index:v})}function s(l,h,v={command:"close"}){closeDialog(l,h,v),o("close",l,h)}return(l,h)=>{const v=Vue.resolveComponent("el-button"),x=Vue.resolveComponent("el-dialog");return Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(dialogStore),(T,w)=>(Vue.openBlock(),Vue.createBlock(x,Vue.mergeProps({key:w},T,{modelValue:T.visible,"onUpdate:modelValue":C=>T.visible=C,onOpened:C=>o("open",T,w),onClose:C=>s(T,w),onOpenAutoFocus:C=>o("openAutoFocus",T,w),onCloseAutoFocus:C=>o("closeAutoFocus",T,w)}),Vue.createSlots({default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(T.contentRenderer({options:T,index:w})),Vue.mergeProps(T==null?void 0:T.props,{onClose:C=>s(T,w,C)}),null,16,["onClose"]))]),_:2},[T!=null&&T.headerRenderer?{name:"header",fn:Vue.withCtx(({close:C,titleId:M,titleClass:V})=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(T==null?void 0:T.headerRenderer({close:C,titleId:M,titleClass:V}))))]),key:"0"}:void 0,T!=null&&T.hideFooter?void 0:{name:"footer",fn:Vue.withCtx(()=>[T!=null&&T.footerRenderer?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(T==null?void 0:T.footerRenderer({options:T,index:w})),{key:0})):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$1,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(t)(T),(C,M)=>(Vue.openBlock(),Vue.createBlock(v,Vue.mergeProps({key:M},C,{onClick:V=>C.btnClick({dialog:{options:T,index:w},button:{btn:C,index:M}})}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(C==null?void 0:C.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","onOpened","onClose","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1(r){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(r),!0):!1}function toValue(r){return typeof r=="function"?r():VueDemi.unref(r)}const isClient$1=typeof window<"u",noop$2=()=>{},isIOS=getIsIOS();function getIsIOS(){var r;return isClient$1&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(r,t){function o(...s){return new Promise((l,h)=>{Promise.resolve(r(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(l).catch(h)})}return o}function debounceFilter(r,t={}){let o,s,l=noop$2;const h=x=>{clearTimeout(x),l(),l=noop$2};return x=>{const T=toValue(r),w=toValue(t.maxWait);return o&&h(o),T<=0||w!==void 0&&w<=0?(s&&(h(s),s=null),Promise.resolve(x())):new Promise((C,M)=>{l=t.rejectOnCancel?M:C,w&&!s&&(s=setTimeout(()=>{o&&h(o),s=null,C(x())},w)),o=setTimeout(()=>{s&&h(s),s=null,C(x())},T)})}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function useDebounceFn(r,t=200,o={}){return createFilterWrapper(debounceFilter(t,o),r)}function tryOnMounted(r,t=!0){VueDemi.getCurrentInstance()?VueDemi.onMounted(r):t?r():VueDemi.nextTick(r)}function tryOnUnmounted$1(r){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(r)}function useIntervalFn(r,t=1e3,o={}){const{immediate:s=!0,immediateCallback:l=!1}=o;let h=null;const v=VueDemi.ref(!1);function x(){h&&(clearInterval(h),h=null)}function T(){v.value=!1,x()}function w(){const C=toValue(t);C<=0||(v.value=!0,l&&r(),x(),h=setInterval(r,C))}if(s&&isClient$1&&w(),VueDemi.isRef(t)||typeof t=="function"){const C=VueDemi.watch(t,()=>{v.value&&isClient$1&&w()});tryOnScopeDispose$1(C)}return tryOnScopeDispose$1(T),{isActive:v,pause:T,resume:w}}function useTimeoutFn(r,t,o={}){const{immediate:s=!0}=o,l=VueDemi.ref(!1);let h=null;function v(){h&&(clearTimeout(h),h=null)}function x(){l.value=!1,v()}function T(...w){v(),l.value=!0,h=setTimeout(()=>{l.value=!1,h=null,r(...w)},toValue(t))}return s&&(l.value=!0,isClient$1&&T()),tryOnScopeDispose$1(x),{isPending:VueDemi.readonly(l),start:T,stop:x}}const dialogStore=Vue.ref([]),addDialog=r=>{const t=()=>dialogStore.value.push(Object.assign(r,{visible:!0}));r!=null&&r.openDelay?useTimeoutFn(()=>{t()},r.openDelay):t()},closeDialog=(r,t,o)=>{dialogStore.value.splice(t,1),r.closeCallBack&&r.closeCallBack({options:r,index:t,args:o})},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=Vue.defineComponent({name:"app",components:{[ElementPlus.ElConfigProvider.name]:ElementPlus.ElConfigProvider,ReDialog},computed:{currentLocale(){var r;return((r=this.$storage.locale)==null?void 0:r.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=(r,t)=>{const o=r.__vccOpts||r;for(const[s,l]of t)o[s]=l;return o};function _sfc_render(r,t,o,s,l,h){const v=Vue.resolveComponent("router-view"),x=Vue.resolveComponent("ReDialog"),T=Vue.resolveComponent("el-config-provider");return Vue.openBlock(),Vue.createBlock(T,{locale:r.currentLocale},{default:Vue.withCtx(()=>[Vue.createVNode(v),Vue.createVNode(x)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function(r){return"/vue-pure-admin/"+r},seen={},__vitePreload=function(t,o,s){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(h=>{if(h=assetsURL(h),h in seen)return;seen[h]=!0;const v=h.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(!!s)for(let C=l.length-1;C>=0;C--){const M=l[C];if(M.href===h&&(!v||M.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${x}`))return;const w=document.createElement("link");if(w.rel=v?"stylesheet":scriptRel,v||(w.as="script",w.crossOrigin=""),w.href=h,document.head.appendChild(w),v)return new Promise((C,M)=>{w.addEventListener("load",C),w.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${h}`)))})})).then(()=>t())},resource$1={buttons:{hsLoginOut:r=>{const{normalize:t}=r;return t(["LoginOut"])},hsfullscreen:r=>{const{normalize:t}=r;return t(["FullScreen"])},hsexitfullscreen:r=>{const{normalize:t}=r;return t(["ExitFullscreen"])},hsrefreshRoute:r=>{const{normalize:t}=r;return t(["RefreshRoute"])},hslogin:r=>{const{normalize:t}=r;return t(["Login"])},hsadd:r=>{const{normalize:t}=r;return t(["Add"])},hsmark:r=>{const{normalize:t}=r;return t(["Mark/Cancel"])},hssave:r=>{const{normalize:t}=r;return t(["Save"])},hssearch:r=>{const{normalize:t}=r;return t(["Search"])},hsexpendAll:r=>{const{normalize:t}=r;return t(["Expand All"])},hscollapseAll:r=>{const{normalize:t}=r;return t(["Collapse All"])},hssystemSet:r=>{const{normalize:t}=r;return t(["Open ProjectConfig"])},hsdelete:r=>{const{normalize:t}=r;return t(["Delete"])},hsreload:r=>{const{normalize:t}=r;return t(["Reload"])},hscloseCurrentTab:r=>{const{normalize:t}=r;return t(["Close CurrentTab"])},hscloseLeftTabs:r=>{const{normalize:t}=r;return t(["Close LeftTabs"])},hscloseRightTabs:r=>{const{normalize:t}=r;return t(["Close RightTabs"])},hscloseOtherTabs:r=>{const{normalize:t}=r;return t(["Close OtherTabs"])},hscloseAllTabs:r=>{const{normalize:t}=r;return t(["Close AllTabs"])},hswholeFullScreen:r=>{const{normalize:t}=r;return t(["FullScreen"])},hswholeExitFullScreen:r=>{const{normalize:t}=r;return t(["ExitFull"])},hscontentFullScreen:r=>{const{normalize:t}=r;return t(["Content FullScreen"])},hscontentExitFullScreen:r=>{const{normalize:t}=r;return t(["Content ExitFullScreen"])}},menus:{hshome:r=>{const{normalize:t}=r;return t(["Home"])},hslogin:r=>{const{normalize:t}=r;return t(["Login"])},hsempty:r=>{const{normalize:t}=r;return t(["Empty Page"])},hssysManagement:r=>{const{normalize:t}=r;return t(["System Manage"])},hsUser:r=>{const{normalize:t}=r;return t(["User Manage"])},hsRole:r=>{const{normalize:t}=r;return t(["Role Manage"])},hsDept:r=>{const{normalize:t}=r;return t(["Dept Manage"])},hseditor:r=>{const{normalize:t}=r;return t(["Editor"])},hsabnormal:r=>{const{normalize:t}=r;return t(["Abnormal Page"])},hsfourZeroFour:r=>{const{normalize:t}=r;return t(["404"])},hsfourZeroOne:r=>{const{normalize:t}=r;return t(["403"])},hsFive:r=>{const{normalize:t}=r;return t(["500"])},hscomponents:r=>{const{normalize:t}=r;return t(["Components"])},hsdialog:r=>{const{normalize:t}=r;return t(["Dialog Components"])},hsmessage:r=>{const{normalize:t}=r;return t(["Message Tips Components"])},hsvideo:r=>{const{normalize:t}=r;return t(["Video Components"])},hsmap:r=>{const{normalize:t}=r;return t(["Map Components"])},hsdraggable:r=>{const{normalize:t}=r;return t(["Draggable Components"])},hssplitPane:r=>{const{normalize:t}=r;return t(["Split Pane"])},hsbutton:r=>{const{normalize:t}=r;return t(["Button Components"])},hscropping:r=>{const{normalize:t}=r;return t(["Picture Cropping"])},hscountTo:r=>{const{normalize:t}=r;return t(["Digital Animation"])},hsselector:r=>{const{normalize:t}=r;return t(["Selector Components"])},hsflowChart:r=>{const{normalize:t}=r;return t(["Flow Chart"])},hsseamless:r=>{const{normalize:t}=r;return t(["Seamless Scroll"])},hscontextmenu:r=>{const{normalize:t}=r;return t(["Context Menu"])},hstypeit:r=>{const{normalize:t}=r;return t(["Typeit Components"])},hsjsoneditor:r=>{const{normalize:t}=r;return t(["JSON Editor"])},hsmenus:r=>{const{normalize:t}=r;return t(["MultiLevel Menu"])},hsmenu1:r=>{const{normalize:t}=r;return t(["Menu1"])},"hsmenu1-1":r=>{const{normalize:t}=r;return t(["Menu1-1"])},"hsmenu1-2":r=>{const{normalize:t}=r;return t(["Menu1-2"])},"hsmenu1-2-1":r=>{const{normalize:t}=r;return t(["Menu1-2-1"])},"hsmenu1-2-2":r=>{const{normalize:t}=r;return t(["Menu1-2-2"])},"hsmenu1-3":r=>{const{normalize:t}=r;return t(["Menu1-3"])},hsmenu2:r=>{const{normalize:t}=r;return t(["Menu2"])},permission:r=>{const{normalize:t}=r;return t(["Permission Manage"])},permissionPage:r=>{const{normalize:t}=r;return t(["Page Permission"])},permissionButton:r=>{const{normalize:t}=r;return t(["Button Permission"])},hstabs:r=>{const{normalize:t}=r;return t(["Tabs Operate"])},hsguide:r=>{const{normalize:t}=r;return t(["Guide"])},hsAble:r=>{const{normalize:t}=r;return t(["Able"])},hsMenuTree:r=>{const{normalize:t}=r;return t(["Menu Tree"])},hsWatermark:r=>{const{normalize:t}=r;return t(["Water Mark"])},hsPrint:r=>{const{normalize:t}=r;return t(["Print"])},hsDownload:r=>{const{normalize:t}=r;return t(["Download"])},hsExternalPage:r=>{const{normalize:t}=r;return t(["External Page"])},hsPureDocument:r=>{const{normalize:t}=r;return t(["Pure Doc(Embedded)"])},externalLink:r=>{const{normalize:t}=r;return t(["Pure Doc(External)"])},hsEpDocument:r=>{const{normalize:t}=r;return t(["Element Plus Doc(Embedded)"])},hsVueDocument:r=>{const{normalize:t}=r;return t(["Vue3 Doc(Embedded)"])},hsViteDocument:r=>{const{normalize:t}=r;return t(["Vite Doc(Embedded)"])},hsPiniaDocument:r=>{const{normalize:t}=r;return t(["Pinia Doc(Embedded)"])},hsRouterDocument:r=>{const{normalize:t}=r;return t(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:r=>{const{normalize:t}=r;return t(["Tailwindcss Doc(Embedded)"])},hsAbout:r=>{const{normalize:t}=r;return t(["About"])},hsResult:r=>{const{normalize:t}=r;return t(["Result Page"])},hsSuccess:r=>{const{normalize:t}=r;return t(["Success Page"])},hsFail:r=>{const{normalize:t}=r;return t(["Fail Page"])},hsIconSelect:r=>{const{normalize:t}=r;return t(["Icon Select"])},hsTimeline:r=>{const{normalize:t}=r;return t(["Time Line"])},hsLineTree:r=>{const{normalize:t}=r;return t(["LineTree"])},hsList:r=>{const{normalize:t}=r;return t(["List Page"])},hsListCard:r=>{const{normalize:t}=r;return t(["Card List Page"])},hsDebounce:r=>{const{normalize:t}=r;return t(["Debounce & Throttle"])},hsFormDesign:r=>{const{normalize:t}=r;return t(["Form Design"])},hsBarcode:r=>{const{normalize:t}=r;return t(["Barcode"])},hsQrcode:r=>{const{normalize:t}=r;return t(["Qrcode"])},hsCascader:r=>{const{normalize:t}=r;return t(["Area Cascader"])},hsSwiper:r=>{const{normalize:t}=r;return t(["Swiper Plugin"])},hsVirtualList:r=>{const{normalize:t}=r;return t(["Virtual List"])},hsPdf:r=>{const{normalize:t}=r;return t(["PDF Preview"])},hsExecl:r=>{const{normalize:t}=r;return t(["Export Excel"])},hsInfiniteScroll:r=>{const{normalize:t}=r;return t(["Table Infinite Scroll"])},hsdanmaku:r=>{const{normalize:t}=r;return t(["Danmaku Components"])},hsPureTableBase:r=>{const{normalize:t}=r;return t(["Base Usage"])},hsPureTableHigh:r=>{const{normalize:t}=r;return t(["High Usage"])},hsTree:r=>{const{normalize:t}=r;return t(["Big Data Tree"])},hsMenuoverflow:r=>{const{normalize:t}=r;return t(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:r=>{const{normalize:t}=r;return t(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:r=>{const{normalize:t}=r;return t(["Loading..."])}},login:{username:r=>{const{normalize:t}=r;return t(["Username"])},password:r=>{const{normalize:t}=r;return t(["Password"])},verifyCode:r=>{const{normalize:t}=r;return t(["VerifyCode"])},remember:r=>{const{normalize:t}=r;return t(["Remember Password"])},sure:r=>{const{normalize:t}=r;return t(["Sure Password"])},forget:r=>{const{normalize:t}=r;return t(["Forget Password?"])},login:r=>{const{normalize:t}=r;return t(["Login"])},thirdLogin:r=>{const{normalize:t}=r;return t(["Third Login"])},phoneLogin:r=>{const{normalize:t}=r;return t(["Phone Login"])},qRCodeLogin:r=>{const{normalize:t}=r;return t(["QRCode Login"])},register:r=>{const{normalize:t}=r;return t(["Register"])},weChatLogin:r=>{const{normalize:t}=r;return t(["WeChat Login"])},alipayLogin:r=>{const{normalize:t}=r;return t(["Alipay Login"])},qqLogin:r=>{const{normalize:t}=r;return t(["QQ Login"])},weiboLogin:r=>{const{normalize:t}=r;return t(["Weibo Login"])},phone:r=>{const{normalize:t}=r;return t(["Phone"])},smsVerifyCode:r=>{const{normalize:t}=r;return t(["SMS VerifyCode"])},back:r=>{const{normalize:t}=r;return t(["Back"])},test:r=>{const{normalize:t}=r;return t(["Mock Test"])},tip:r=>{const{normalize:t}=r;return t(['After scanning the code, click "Confirm" to complete the login'])},definite:r=>{const{normalize:t}=r;return t(["Definite"])},loginSuccess:r=>{const{normalize:t}=r;return t(["Login Success"])},registerSuccess:r=>{const{normalize:t}=r;return t(["Regist Success"])},tickPrivacy:r=>{const{normalize:t}=r;return t(["Please tick Privacy Policy"])},readAccept:r=>{const{normalize:t}=r;return t(["I have read it carefully and accept"])},privacyPolicy:r=>{const{normalize:t}=r;return t(["Privacy Policy"])},getVerifyCode:r=>{const{normalize:t}=r;return t(["Get VerifyCode"])},info:r=>{const{normalize:t}=r;return t(["Seconds"])},usernameReg:r=>{const{normalize:t}=r;return t(["Please enter username"])},passwordReg:r=>{const{normalize:t}=r;return t(["Please enter password"])},verifyCodeReg:r=>{const{normalize:t}=r;return t(["Please enter verify code"])},verifyCodeCorrectReg:r=>{const{normalize:t}=r;return t(["Please enter correct verify code"])},verifyCodeSixReg:r=>{const{normalize:t}=r;return t(["Please enter a 6-digit verify code"])},phoneReg:r=>{const{normalize:t}=r;return t(["Please enter the phone"])},phoneCorrectReg:r=>{const{normalize:t}=r;return t(["Please enter the correct phone number format"])},passwordRuleReg:r=>{const{normalize:t}=r;return t(["The password format should be any combination of 8-18 digits"])},passwordSureReg:r=>{const{normalize:t}=r;return t(["Please enter confirm password"])},passwordDifferentReg:r=>{const{normalize:t}=r;return t(["The two passwords do not match!"])},passwordUpdateReg:r=>{const{normalize:t}=r;return t(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:r=>{const{normalize:t}=r;return t(["退出系统"])},hsfullscreen:r=>{const{normalize:t}=r;return t(["全屏"])},hsexitfullscreen:r=>{const{normalize:t}=r;return t(["退出全屏"])},hsrefreshRoute:r=>{const{normalize:t}=r;return t(["刷新路由"])},hslogin:r=>{const{normalize:t}=r;return t(["登录"])},hsadd:r=>{const{normalize:t}=r;return t(["新增"])},hsmark:r=>{const{normalize:t}=r;return t(["标记/取消"])},hssave:r=>{const{normalize:t}=r;return t(["保存"])},hssearch:r=>{const{normalize:t}=r;return t(["搜索"])},hsexpendAll:r=>{const{normalize:t}=r;return t(["全部展开"])},hscollapseAll:r=>{const{normalize:t}=r;return t(["全部折叠"])},hssystemSet:r=>{const{normalize:t}=r;return t(["打开项目配置"])},hsdelete:r=>{const{normalize:t}=r;return t(["删除"])},hsreload:r=>{const{normalize:t}=r;return t(["重新加载"])},hscloseCurrentTab:r=>{const{normalize:t}=r;return t(["关闭当前标签页"])},hscloseLeftTabs:r=>{const{normalize:t}=r;return t(["关闭左侧标签页"])},hscloseRightTabs:r=>{const{normalize:t}=r;return t(["关闭右侧标签页"])},hscloseOtherTabs:r=>{const{normalize:t}=r;return t(["关闭其他标签页"])},hscloseAllTabs:r=>{const{normalize:t}=r;return t(["关闭全部标签页"])},hswholeFullScreen:r=>{const{normalize:t}=r;return t(["全屏"])},hswholeExitFullScreen:r=>{const{normalize:t}=r;return t(["退出全屏"])},hscontentFullScreen:r=>{const{normalize:t}=r;return t(["内容区全屏"])},hscontentExitFullScreen:r=>{const{normalize:t}=r;return t(["内容区退出全屏"])}},menus:{hshome:r=>{const{normalize:t}=r;return t(["首页"])},hslogin:r=>{const{normalize:t}=r;return t(["登录"])},hsempty:r=>{const{normalize:t}=r;return t(["无Layout页"])},hssysManagement:r=>{const{normalize:t}=r;return t(["系统管理"])},hsUser:r=>{const{normalize:t}=r;return t(["用户管理"])},hsRole:r=>{const{normalize:t}=r;return t(["角色管理"])},hsDept:r=>{const{normalize:t}=r;return t(["部门管理"])},hseditor:r=>{const{normalize:t}=r;return t(["编辑器"])},hsabnormal:r=>{const{normalize:t}=r;return t(["异常页面"])},hsfourZeroFour:r=>{const{normalize:t}=r;return t(["404"])},hsfourZeroOne:r=>{const{normalize:t}=r;return t(["403"])},hsFive:r=>{const{normalize:t}=r;return t(["500"])},hscomponents:r=>{const{normalize:t}=r;return t(["组件"])},hsdialog:r=>{const{normalize:t}=r;return t(["函数式弹框组件"])},hsmessage:r=>{const{normalize:t}=r;return t(["消息提示组件"])},hsvideo:r=>{const{normalize:t}=r;return t(["视频组件"])},hsmap:r=>{const{normalize:t}=r;return t(["地图组件"])},hsdraggable:r=>{const{normalize:t}=r;return t(["拖拽组件"])},hssplitPane:r=>{const{normalize:t}=r;return t(["切割面板"])},hsbutton:r=>{const{normalize:t}=r;return t(["按钮组件"])},hscropping:r=>{const{normalize:t}=r;return t(["图片裁剪"])},hscountTo:r=>{const{normalize:t}=r;return t(["数字动画"])},hsselector:r=>{const{normalize:t}=r;return t(["选择器组件"])},hsflowChart:r=>{const{normalize:t}=r;return t(["流程图"])},hsseamless:r=>{const{normalize:t}=r;return t(["无缝滚动"])},hscontextmenu:r=>{const{normalize:t}=r;return t(["右键菜单"])},hstypeit:r=>{const{normalize:t}=r;return t(["打字机组件"])},hsjsoneditor:r=>{const{normalize:t}=r;return t(["JSON编辑器"])},hsmenus:r=>{const{normalize:t}=r;return t(["多级菜单"])},hsmenu1:r=>{const{normalize:t}=r;return t(["菜单1"])},"hsmenu1-1":r=>{const{normalize:t}=r;return t(["菜单1-1"])},"hsmenu1-2":r=>{const{normalize:t}=r;return t(["菜单1-2"])},"hsmenu1-2-1":r=>{const{normalize:t}=r;return t(["菜单1-2-1"])},"hsmenu1-2-2":r=>{const{normalize:t}=r;return t(["菜单1-2-2"])},"hsmenu1-3":r=>{const{normalize:t}=r;return t(["菜单1-3"])},hsmenu2:r=>{const{normalize:t}=r;return t(["菜单2"])},permission:r=>{const{normalize:t}=r;return t(["权限管理"])},permissionPage:r=>{const{normalize:t}=r;return t(["页面权限"])},permissionButton:r=>{const{normalize:t}=r;return t(["按钮权限"])},hstabs:r=>{const{normalize:t}=r;return t(["标签页操作"])},hsguide:r=>{const{normalize:t}=r;return t(["引导页"])},hsAble:r=>{const{normalize:t}=r;return t(["功能"])},hsMenuTree:r=>{const{normalize:t}=r;return t(["菜单树结构"])},hsWatermark:r=>{const{normalize:t}=r;return t(["水印"])},hsPrint:r=>{const{normalize:t}=r;return t(["打印"])},hsDownload:r=>{const{normalize:t}=r;return t(["下载"])},hsExternalPage:r=>{const{normalize:t}=r;return t(["外部页面"])},hsPureDocument:r=>{const{normalize:t}=r;return t(["平台文档(内嵌)"])},externalLink:r=>{const{normalize:t}=r;return t(["平台文档(外链)"])},hsEpDocument:r=>{const{normalize:t}=r;return t(["Element Plus 文档(内嵌)"])},hsVueDocument:r=>{const{normalize:t}=r;return t(["Vue3 文档(内嵌)"])},hsViteDocument:r=>{const{normalize:t}=r;return t(["Vite 文档(内嵌)"])},hsPiniaDocument:r=>{const{normalize:t}=r;return t(["Pinia 文档(内嵌)"])},hsRouterDocument:r=>{const{normalize:t}=r;return t(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:r=>{const{normalize:t}=r;return t(["Tailwindcss 文档(内嵌)"])},hsAbout:r=>{const{normalize:t}=r;return t(["关于"])},hsResult:r=>{const{normalize:t}=r;return t(["结果页面"])},hsSuccess:r=>{const{normalize:t}=r;return t(["成功页面"])},hsFail:r=>{const{normalize:t}=r;return t(["失败页面"])},hsIconSelect:r=>{const{normalize:t}=r;return t(["图标选择器"])},hsTimeline:r=>{const{normalize:t}=r;return t(["时间线"])},hsLineTree:r=>{const{normalize:t}=r;return t(["树形连接线"])},hsList:r=>{const{normalize:t}=r;return t(["列表页"])},hsListCard:r=>{const{normalize:t}=r;return t(["卡片列表页"])},hsDebounce:r=>{const{normalize:t}=r;return t(["防抖节流"])},hsFormDesign:r=>{const{normalize:t}=r;return t(["表单设计器"])},hsBarcode:r=>{const{normalize:t}=r;return t(["条形码"])},hsQrcode:r=>{const{normalize:t}=r;return t(["二维码"])},hsCascader:r=>{const{normalize:t}=r;return t(["区域级联选择器"])},hsSwiper:r=>{const{normalize:t}=r;return t(["Swiper插件"])},hsVirtualList:r=>{const{normalize:t}=r;return t(["虚拟列表"])},hsPdf:r=>{const{normalize:t}=r;return t(["PDF预览"])},hsExecl:r=>{const{normalize:t}=r;return t(["导出Excel"])},hsInfiniteScroll:r=>{const{normalize:t}=r;return t(["表格无限滚动"])},hsdanmaku:r=>{const{normalize:t}=r;return t(["弹幕组件"])},hsPureTableBase:r=>{const{normalize:t}=r;return t(["基础用法(23个示例)"])},hsPureTableHigh:r=>{const{normalize:t}=r;return t(["高级用法(10个示例)"])},hsTree:r=>{const{normalize:t}=r;return t(["大数据树业务组件"])},hsMenuoverflow:r=>{const{normalize:t}=r;return t(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:r=>{const{normalize:t}=r;return t(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:r=>{const{normalize:t}=r;return t(["加载中..."])}},login:{username:r=>{const{normalize:t}=r;return t(["账号"])},password:r=>{const{normalize:t}=r;return t(["密码"])},verifyCode:r=>{const{normalize:t}=r;return t(["验证码"])},remember:r=>{const{normalize:t}=r;return t(["记住密码"])},sure:r=>{const{normalize:t}=r;return t(["确认密码"])},forget:r=>{const{normalize:t}=r;return t(["忘记密码?"])},login:r=>{const{normalize:t}=r;return t(["登录"])},thirdLogin:r=>{const{normalize:t}=r;return t(["第三方登录"])},phoneLogin:r=>{const{normalize:t}=r;return t(["手机登录"])},qRCodeLogin:r=>{const{normalize:t}=r;return t(["二维码登录"])},register:r=>{const{normalize:t}=r;return t(["注册"])},weChatLogin:r=>{const{normalize:t}=r;return t(["微信登录"])},alipayLogin:r=>{const{normalize:t}=r;return t(["支付宝登录"])},qqLogin:r=>{const{normalize:t}=r;return t(["QQ登录"])},weiboLogin:r=>{const{normalize:t}=r;return t(["微博登录"])},phone:r=>{const{normalize:t}=r;return t(["手机号码"])},smsVerifyCode:r=>{const{normalize:t}=r;return t(["短信验证码"])},back:r=>{const{normalize:t}=r;return t(["返回"])},test:r=>{const{normalize:t}=r;return t(["模拟测试"])},tip:r=>{const{normalize:t}=r;return t(['扫码后点击"确认",即可完成登录'])},definite:r=>{const{normalize:t}=r;return t(["确定"])},loginSuccess:r=>{const{normalize:t}=r;return t(["登录成功"])},registerSuccess:r=>{const{normalize:t}=r;return t(["注册成功"])},tickPrivacy:r=>{const{normalize:t}=r;return t(["请勾选隐私政策"])},readAccept:r=>{const{normalize:t}=r;return t(["我已仔细阅读并接受"])},privacyPolicy:r=>{const{normalize:t}=r;return t(["《隐私政策》"])},getVerifyCode:r=>{const{normalize:t}=r;return t(["获取验证码"])},info:r=>{const{normalize:t}=r;return t(["秒后重新获取"])},usernameReg:r=>{const{normalize:t}=r;return t(["请输入账号"])},passwordReg:r=>{const{normalize:t}=r;return t(["请输入密码"])},verifyCodeReg:r=>{const{normalize:t}=r;return t(["请输入验证码"])},verifyCodeCorrectReg:r=>{const{normalize:t}=r;return t(["请输入正确的验证码"])},verifyCodeSixReg:r=>{const{normalize:t}=r;return t(["请输入6位数字验证码"])},phoneReg:r=>{const{normalize:t}=r;return t(["请输入手机号码"])},phoneCorrectReg:r=>{const{normalize:t}=r;return t(["请输入正确的手机号码格式"])},passwordRuleReg:r=>{const{normalize:t}=r;return t(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:r=>{const{normalize:t}=r;return t(["请输入确认密码"])},passwordDifferentReg:r=>{const{normalize:t}=r;return t(["两次密码不一致!"])},passwordUpdateReg:r=>{const{normalize:t}=r;return t(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=r=>{config=Object.assign(config,r)},getConfig=r=>{if(typeof r=="string"){const t=r.split(".");if(t&&t.length){let o=config;return t.forEach(s=>{o&&typeof o[s]<"u"?o=o[s]:o=null}),o}}return config},getServerConfig=async r=>(r.config.globalProperties.$config=getConfig(),axios({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:t})=>{let o=r.config.globalProperties.$config;return r&&o&&typeof t=="object"&&(o=Object.assign(o,t),r.config.globalProperties.$config=o,setConfig(o)),o}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n(r="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([t,o])=>[t.match(/([A-Za-z0-9-_]+)\./i)[1],o.default]))[r]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n(r=""){var o;if(!r)return"";if(typeof r=="object"){const s=i18n.global.locale;return r[s==null?void 0:s.value]}const t=(o=r.match(/(\S*)\./))==null?void 0:o[1];return t&&Object.keys(siphonI18n("zh-CN")).includes(t)||!t&&Object.keys(siphonI18n("zh-CN")).includes(r)?i18n.global.t.call(i18n.global.locale,r):r}const $t=r=>r;var _n;const i18n=VueI18n.createI18n({legacy:!1,locale:((_n=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:_n.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n(r){r.use(i18n)}const home$1=0,doc=1,utils$7=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-a40946e1.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-b9ca165f.js"),["static/js/print-b9ca165f.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-07562c79.js","static/js/app-192cbc12.js","static/css/print-902c41a7.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-575c9e3d.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-be12b6d2.js"),["static/js/icon-select-be12b6d2.js","static/css/icon-select-7ef59eba.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-c2663787.js"),["static/js/timeline-c2663787.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-de3262c6.js","static/js/iphone-89710f1a.js","static/css/timeline-c123aae6.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-cde6e9c3.js"),["static/js/menu-tree-cde6e9c3.js","static/js/hooks-de3262c6.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-e5149242.js"),["static/js/line-tree-e5149242.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-dc2b36c5.js"),["static/js/debounce-dc2b36c5.js","static/js/message-dec00bee.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-1823dc18.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-aecc81f8.js"),["static/js/qrcode-aecc81f8.js","static/js/message-dec00bee.js","static/js/index-1ff2ca57.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-15f42514.js"),["static/js/cascader-15f42514.js","static/css/cascader-ae7f96ca.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-b9ce6f96.js"),["static/js/swiper-b9ce6f96.js","static/css/swiper-03d590fd.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-dfa0802e.js"),["static/js/index-dfa0802e.js","static/js/vertical-4e26d554.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-7f3e022b.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-1c857519.js"),["static/js/pdf-1c857519.js","static/js/_vue_commonjs-external-c09696f7.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-73c5d3aa.js"),["static/js/execl-73c5d3aa.js","static/js/xlsx-e927f539.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-de545fb4.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index-2789ad00.js"),["static/js/index-2789ad00.js","static/js/columns-242b1d7d.js","static/css/index-e5f71e09.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/video",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"Dialog",component:()=>__vitePreload(()=>import("./index-bb03eccb.js"),["static/js/index-bb03eccb.js","static/js/message-dec00bee.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index-8196a8b4.js"),["static/js/index-8196a8b4.js","static/js/message-dec00bee.js","static/js/hooks-de3262c6.js","static/js/check-f53d8364.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/video",name:"Video",component:()=>__vitePreload(()=>import("./index-8e9ac6ac.js"),["static/js/index-8e9ac6ac.js","static/js/hooks-de3262c6.js","static/css/index-59eab90d.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"Map",component:()=>__vitePreload(()=>import("./index-9e4240c7.js"),["static/js/index-9e4240c7.js","static/css/index-e12979b9.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-d8723966.js"),["static/js/index-d8723966.js","static/js/sortable.esm-679e0872.js","static/js/app-192cbc12.js","static/js/hooks-de3262c6.js","static/css/index-c7e143d9.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-4f035bf2.js"),["static/js/index-4f035bf2.js","static/css/index-f95fd44a.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"Button",component:()=>__vitePreload(()=>import("./index-7c54bb82.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-1e1ad6ba.js"),["static/js/index-1e1ad6ba.js","static/css/index-24b6d788.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-46a3c1b8.js"),["static/js/index-46a3c1b8.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-5929767e.js"),["static/js/index-5929767e.js","static/css/index-8df9cf0e.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-3ce12767.js"),["static/js/index-3ce12767.js","static/js/index-6a2fa405.js","static/css/index-ac8e5189.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-10a65157.js"),["static/js/index-10a65157.js","static/js/basic-b271fef1.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-fa666a70.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-a2c233c4.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-fa805b3e.js"),["static/js/index-fa805b3e.js","static/js/index-771e958b.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-d26fa825.js"),["static/js/index-d26fa825.js","static/js/styles-7b77e826.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-690b37b8.js"),["static/js/index-690b37b8.js","static/css/index-14392f45.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index-f51c7b06.js"),["static/js/index-f51c7b06.js","static/js/hooks-de3262c6.js","static/js/edit-542ce8b5.js","static/css/index-f38a3df6.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403-5411bf68.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-5f176003.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-5e36d1a6.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index-d6830dfe.js"),["static/js/index-d6830dfe.js","static/js/hooks-de3262c6.js","static/js/styles-7b77e826.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-c1aa8fdf.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView-7ce333a6.js"),["static/js/frameView-7ce333a6.js","static/css/frameView-9583c80e.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index-875aaabd.js"),["static/js/index-875aaabd.js","static/css/index-38ef32bb.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index-2f023452.js"),["static/js/index-2f023452.js","static/js/menu-a4fe64fb.js","static/js/edit-542ce8b5.js","static/js/set-up-729eb907.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-5ed3e7aa.js","static/js/app-192cbc12.js","static/js/epTheme-075c1f8e.js","static/js/hooks-de3262c6.js","static/js/index-6a2fa405.js","static/js/search-4b9e88d3.js","static/js/check-f53d8364.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/index-51a3b4f7.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index-08c4e9bb.js").then(r=>r.w),["static/js/index-08c4e9bb.js","static/js/Bar.vue_vue_type_script_setup_true_lang-2f216bc1.js","static/js/app-192cbc12.js","static/js/Pie.vue_vue_type_script_setup_true_lang-fa06143e.js","static/js/Line.vue_vue_type_script_setup_true_lang-07562c79.js","static/js/index-771e958b.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/css/index-bb2c7a9c.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index-d7e7fc73.js"),["static/js/index-d7e7fc73.js","static/js/Card-1453ea2f.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-a09d2cee.css","static/js/message-dec00bee.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-2416215c.js","static/js/hooks-de3262c6.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index-96168880.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index-58bf469d.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index-e9aee1db.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index-ea1c0155.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index-bd6fc9b5.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-40deae61.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView-7ce333a6.js"),["static/js/frameView-7ce333a6.js","static/css/frameView-9583c80e.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=Vue.createElementVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=Vue.createElementVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3(r,t){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-7ce333a6.js"),["static/js/frameView-7ce333a6.js","static/css/frameView-9583c80e.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView-7ce333a6.js"),["static/js/frameView-7ce333a6.js","static/css/frameView-9583c80e.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success-36fc75db.js"),["static/js/success-36fc75db.js","static/css/success-ced4dbdf.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-2c69ea47.js"),["static/js/fail-2c69ea47.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-d0b963c5.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index-10d8e1c7.js"),["static/js/index-10d8e1c7.js","static/js/list-ea55314b.js","static/js/base.vue_vue_type_script_setup_true_lang-92f59c9e.js","static/js/data-1b43d725.js","static/js/stripe.vue_vue_type_script_setup_true_lang-6db4ff88.js","static/js/border.vue_vue_type_script_setup_true_lang-c5266962.js","static/js/status.vue_vue_type_style_index_0_lang-860d1e1b.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-dc9f2eaa.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-91093283.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-583b4da6.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-17651f34.js","static/js/radio.vue_vue_type_script_setup_true_lang-154906c7.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-7c3526ca.js","static/js/sortable.vue_vue_type_script_setup_true_lang-993344dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd70069.js","static/js/columns-3b9a5d82.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-280bd93e.js","static/js/columns-e2ecfc76.js","static/js/expand.vue_vue_type_script_setup_true_lang-96a332c8.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-a6cfa4d8.js","static/js/layout.vue_vue_type_script_setup_true_lang-c5523fe1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c57a4ec4.js","static/css/index-1561da6c.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-f55a3558.js"),["static/js/high-f55a3558.js","static/js/list-2fb9b7a0.js","static/js/index.vue_vue_type_script_setup_true_lang-0b48457b.js","static/js/columns-4bed3739.js","static/js/data-08e736ac.js","static/js/index.vue_vue_type_script_setup_true_lang-d37bf124.js","static/js/columns-6e6ad718.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-d5de096b.js","static/js/columns-366a25cc.js","static/js/index.vue_vue_type_script_setup_true_lang-cf4d8f02.js","static/js/columns-130886dc.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-dd23e371.js","static/js/columns-9ad5c3f8.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-9a0c6d98.js","static/js/columns-d1910dc8.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-c82121e4.js","static/js/columns-3acd59b5.js","static/js/index.vue_vue_type_script_setup_true_lang-2fc54e88.js","static/js/columns-063d6134.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-6ec50b45.js","static/js/columns-879b5f0b.js","static/js/index-6a2fa405.js","static/js/index.vue_vue_type_script_setup_true_lang-6e8727bf.js","static/js/index.vue_vue_type_script_setup_true_lang-5dec2b96.js","static/js/columns-6d119596.js","static/js/index.vue_vue_type_script_setup_true_lang-b1a433a9.js","static/js/columns-2a733416.js","static/css/high-3e0dece5.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$1(r){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)r[s]=o[s]}return r}var defaultConverter={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$2(r,t){function o(l,h,v){if(!(typeof document>"u")){v=assign$1({},t,v),typeof v.expires=="number"&&(v.expires=new Date(Date.now()+v.expires*864e5)),v.expires&&(v.expires=v.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var x="";for(var T in v)v[T]&&(x+="; "+T,v[T]!==!0&&(x+="="+v[T].split(";")[0]));return document.cookie=l+"="+r.write(h,l)+x}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var h=document.cookie?document.cookie.split("; "):[],v={},x=0;x<h.length;x++){var T=h[x].split("="),w=T.slice(1).join("=");try{var C=decodeURIComponent(T[0]);if(v[C]=r.read(w,C),l===C)break}catch{}}return l?v[l]:v}}return Object.create({set:o,get:s,remove:function(l,h){o(l,"",assign$1({},h,{expires:-1}))},withAttributes:function(l){return init$2(this.converter,assign$1({},this.attributes,l))},withConverter:function(l){return init$2(assign$1({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(r)}})}var api=init$2(defaultConverter,{path:"/"});const store=Pinia.createPinia();function setupStore(r){r.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var l=42;t[o]=l;for(o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var h=Object.getOwnPropertySymbols(t);if(h.length!==1||h[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(t,o);if(v.value!==l||v.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(t){var o=this;if(typeof o!="function"||toStr$1.call(o)!==funcType)throw new TypeError(ERROR_MESSAGE+o);for(var s=slice$1.call(arguments,1),l,h=function(){if(this instanceof l){var C=o.apply(this,s.concat(slice$1.call(arguments)));return Object(C)===C?C:this}else return o.apply(t,s.concat(slice$1.call(arguments)))},v=Math.max(0,o.length-s.length),x=[],T=0;T<v;T++)x.push("$"+T);if(l=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this,arguments); }")(h),o.prototype){var w=function(){};w.prototype=o.prototype,l.prototype=new w,w.prototype=null}return l},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(r){try{return $Function('"use strict"; return ('+r+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(r){return r.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch(r){var errorProto=getProto(getProto(r));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function r(t){var o;if(t==="%AsyncFunction%")o=getEvalledConstructor("async function () {}");else if(t==="%GeneratorFunction%")o=getEvalledConstructor("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=getEvalledConstructor("async function* () {}");else if(t==="%AsyncGenerator%"){var s=r("%AsyncGeneratorFunction%");s&&(o=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var l=r("%AsyncGenerator%");l&&(o=getProto(l.prototype))}return INTRINSICS[t]=o,o},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(t){var o=$strSlice(t,0,1),s=$strSlice(t,-1);if(o==="%"&&s!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(s==="%"&&o!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var l=[];return $replace$1(t,rePropName,function(h,v,x,T){l[l.length]=x?$replace$1(T,reEscapeChar,"$1"):v||h}),l},getBaseIntrinsic=function(t,o){var s=t,l;if(hasOwn$2(LEGACY_ALIASES,s)&&(l=LEGACY_ALIASES[s],s="%"+l[0]+"%"),hasOwn$2(INTRINSICS,s)){var h=INTRINSICS[s];if(h===needsEval&&(h=doEval(s)),typeof h>"u"&&!o)throw new $TypeError$1("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:l,name:s,value:h}}throw new $SyntaxError("intrinsic "+t+" does not exist!")},getIntrinsic=function(t,o){if(typeof t!="string"||t.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,t)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=stringToPath(t),l=s.length>0?s[0]:"",h=getBaseIntrinsic("%"+l+"%",o),v=h.name,x=h.value,T=!1,w=h.alias;w&&(l=w[0],$spliceApply(s,$concat$1([0,1],w)));for(var C=1,M=!0;C<s.length;C+=1){var V=s[C],z=$strSlice(V,0,1),F=$strSlice(V,-1);if((z==='"'||z==="'"||z==="`"||F==='"'||F==="'"||F==="`")&&z!==F)throw new $SyntaxError("property names with quotes must have matching quotes");if((V==="constructor"||!M)&&(T=!0),l+="."+V,v="%"+l+"%",hasOwn$2(INTRINSICS,v))x=INTRINSICS[v];else if(x!=null){if(!(V in x)){if(!o)throw new $TypeError$1("base intrinsic for "+t+" exists, but the property is not available.");return}if($gOPD&&C+1>=s.length){var B=$gOPD(x,V);M=!!B,M&&"get"in B&&!("originalValue"in B.get)?x=B.get:x=x[V]}else M=hasOwn$2(x,V),x=x[V];M&&!T&&(INTRINSICS[v]=x)}}return x},callBind$1={exports:{}};(function(r){var t=functionBind,o=getIntrinsic,s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),h=o("%Reflect.apply%",!0)||t.call(l,s),v=o("%Object.getOwnPropertyDescriptor%",!0),x=o("%Object.defineProperty%",!0),T=o("%Math.max%");if(x)try{x({},"a",{value:1})}catch{x=null}r.exports=function(M){var V=h(t,l,arguments);if(v&&x){var z=v(V,"length");z.configurable&&x(V,"length",{value:1+T(0,M.length-(arguments.length-1))})}return V};var w=function(){return h(t,s,arguments)};x?x(r.exports,"apply",{value:w}):r.exports.apply=w})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(t,o){var s=GetIntrinsic$1(t,!!o);return typeof s=="function"&&$indexOf(t,".prototype.")>-1?callBind(s):s};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function addNumericSeparator(r,t){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||$test.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var s=r<0?-$floor(-r):$floor(r);if(s!==r){var l=String(s),h=$slice.call(t,l.length+1);return $replace.call(l,o,"$&_")+"."+$replace.call($replace.call(h,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,o,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function r(t,o,s,l){var h=o||{};if(has$4(h,"quoteStyle")&&h.quoteStyle!=="single"&&h.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(h,"maxStringLength")&&(typeof h.maxStringLength=="number"?h.maxStringLength<0&&h.maxStringLength!==1/0:h.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=has$4(h,"customInspect")?h.customInspect:!0;if(typeof v!="boolean"&&v!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(h,"indent")&&h.indent!==null&&h.indent!==" "&&!(parseInt(h.indent,10)===h.indent&&h.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(h,"numericSeparator")&&typeof h.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=h.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return inspectString(t,h);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var T=String(t);return x?addNumericSeparator(t,T):T}if(typeof t=="bigint"){var w=String(t)+"n";return x?addNumericSeparator(t,w):w}var C=typeof h.depth>"u"?5:h.depth;if(typeof s>"u"&&(s=0),s>=C&&C>0&&typeof t=="object")return isArray$6(t)?"[Array]":"[Object]";var M=getIndent(h,s);if(typeof l>"u")l=[];else if(indexOf$1(l,t)>=0)return"[Circular]";function V(Te,we,Ee){if(we&&(l=$arrSlice.call(l),l.push(we)),Ee){var Ce={depth:h.depth};return has$4(h,"quoteStyle")&&(Ce.quoteStyle=h.quoteStyle),r(Te,Ce,s+1,l)}return r(Te,h,s+1,l)}if(typeof t=="function"&&!isRegExp$2(t)){var z=nameOf(t),F=arrObjKeys(t,V);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(F.length>0?" { "+$join.call(F,", ")+" }":"")}if(isSymbol(t)){var B=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t=="object"&&!hasShammedSymbols?markBoxed(B):B}if(isElement$1(t)){for(var W="<"+$toLowerCase.call(String(t.nodeName)),Y=t.attributes||[],Z=0;Z<Y.length;Z++)W+=" "+Y[Z].name+"="+wrapQuotes(quote(Y[Z].value),"double",h);return W+=">",t.childNodes&&t.childNodes.length&&(W+="..."),W+="</"+$toLowerCase.call(String(t.nodeName))+">",W}if(isArray$6(t)){if(t.length===0)return"[]";var X=arrObjKeys(t,V);return M&&!singleLineValues(X)?"["+indentedJoin(X,M)+"]":"[ "+$join.call(X,", ")+" ]"}if(isError(t)){var te=arrObjKeys(t,V);return!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")?"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+V(t.cause),te),", ")+" }":te.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(te,", ")+" }"}if(typeof t=="object"&&v){if(inspectSymbol&&typeof t[inspectSymbol]=="function"&&utilInspect)return utilInspect(t,{depth:C-s});if(v!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(isMap(t)){var oe=[];return mapForEach&&mapForEach.call(t,function(Te,we){oe.push(V(we,t,!0)+" => "+V(Te,t))}),collectionOf("Map",mapSize.call(t),oe,M)}if(isSet(t)){var ae=[];return setForEach&&setForEach.call(t,function(Te){ae.push(V(Te,t))}),collectionOf("Set",setSize.call(t),ae,M)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$2(t))return markBoxed(V(Number(t)));if(isBigInt(t))return markBoxed(V(bigIntValueOf.call(t)));if(isBoolean(t))return markBoxed(booleanValueOf.call(t));if(isString$3(t))return markBoxed(V(String(t)));if(!isDate(t)&&!isRegExp$2(t)){var le=arrObjKeys(t,V),he=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,me=t instanceof Object?"":"null prototype",_e=!he&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):me?"Object":"",ye=he||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Se=ye+(_e||me?"["+$join.call($concat.call([],_e||[],me||[]),": ")+"] ":"");return le.length===0?Se+"{}":M?Se+"{"+indentedJoin(le,M)+"}":Se+"{ "+$join.call(le,", ")+" }"}return String(t)};function wrapQuotes(r,t,o){var s=(o.quoteStyle||t)==="double"?'"':"'";return s+r+s}function quote(r){return $replace.call(String(r),/"/g,""")}function isArray$6(r){return toStr(r)==="[object Array]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isDate(r){return toStr(r)==="[object Date]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isRegExp$2(r){return toStr(r)==="[object RegExp]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isError(r){return toStr(r)==="[object Error]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isString$3(r){return toStr(r)==="[object String]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isNumber$2(r){return toStr(r)==="[object Number]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isBoolean(r){return toStr(r)==="[object Boolean]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isSymbol(r){if(hasShammedSymbols)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!symToString)return!1;try{return symToString.call(r),!0}catch{}return!1}function isBigInt(r){if(!r||typeof r!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(r),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(r){return r in this};function has$4(r,t){return hasOwn$1.call(r,t)}function toStr(r){return objectToString.call(r)}function nameOf(r){if(r.name)return r.name;var t=$match.call(functionToString.call(r),/^function\s*([\w$]+)/);return t?t[1]:null}function indexOf$1(r,t){if(r.indexOf)return r.indexOf(t);for(var o=0,s=r.length;o<s;o++)if(r[o]===t)return o;return-1}function isMap(r){if(!mapSize||!r||typeof r!="object")return!1;try{mapSize.call(r);try{setSize.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function isWeakMap(r){if(!weakMapHas||!r||typeof r!="object")return!1;try{weakMapHas.call(r,weakMapHas);try{weakSetHas.call(r,weakSetHas)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function isWeakRef(r){if(!weakRefDeref||!r||typeof r!="object")return!1;try{return weakRefDeref.call(r),!0}catch{}return!1}function isSet(r){if(!setSize||!r||typeof r!="object")return!1;try{setSize.call(r);try{mapSize.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function isWeakSet(r){if(!weakSetHas||!r||typeof r!="object")return!1;try{weakSetHas.call(r,weakSetHas);try{weakMapHas.call(r,weakMapHas)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function isElement$1(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function inspectString(r,t){if(r.length>t.maxStringLength){var o=r.length-t.maxStringLength,s="... "+o+" more character"+(o>1?"s":"");return inspectString($slice.call(r,0,t.maxStringLength),t)+s}var l=$replace.call($replace.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(l,"single",t)}function lowbyte(r){var t=r.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(r){return"Object("+r+")"}function weakCollectionOf(r){return r+" { ? }"}function collectionOf(r,t,o,s){var l=s?indentedJoin(o,s):$join.call(o,", ");return r+" ("+t+") {"+l+"}"}function singleLineValues(r){for(var t=0;t<r.length;t++)if(indexOf$1(r[t],`
|
||
`)>=0)return!1;return!0}function getIndent(r,t){var o;if(r.indent===" ")o=" ";else if(typeof r.indent=="number"&&r.indent>0)o=$join.call(Array(r.indent+1)," ");else return null;return{base:o,prev:$join.call(Array(t+1),o)}}function indentedJoin(r,t){if(r.length===0)return"";var o=`
|
||
`+t.prev+t.base;return o+$join.call(r,","+o)+`
|
||
`+t.prev}function arrObjKeys(r,t){var o=isArray$6(r),s=[];if(o){s.length=r.length;for(var l=0;l<r.length;l++)s[l]=has$4(r,l)?t(r[l],r):""}var h=typeof gOPS=="function"?gOPS(r):[],v;if(hasShammedSymbols){v={};for(var x=0;x<h.length;x++)v["$"+h[x]]=h[x]}for(var T in r)has$4(r,T)&&(o&&String(Number(T))===T&&T<r.length||hasShammedSymbols&&v["$"+T]instanceof Symbol||($test.call(/[^\w$]/,T)?s.push(t(T,r)+": "+t(r[T],r)):s.push(T+": "+t(r[T],r))));if(typeof gOPS=="function")for(var w=0;w<h.length;w++)isEnumerable.call(r,h[w])&&s.push("["+t(h[w])+"]: "+t(r[h[w]],r));return s}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(r,t){for(var o=r,s;(s=o.next)!==null;o=s)if(s.key===t)return o.next=s.next,s.next=r.next,r.next=s,s},listGet=function(r,t){var o=listGetNode(r,t);return o&&o.value},listSet=function(r,t,o){var s=listGetNode(r,t);s?s.value=o:r.next={key:t,next:r.next,value:o}},listHas=function(r,t){return!!listGetNode(r,t)},sideChannel=function(){var t,o,s,l={assert:function(h){if(!l.has(h))throw new $TypeError("Side channel does not contain "+inspect(h))},get:function(h){if($WeakMap&&h&&(typeof h=="object"||typeof h=="function")){if(t)return $weakMapGet(t,h)}else if($Map){if(o)return $mapGet(o,h)}else if(s)return listGet(s,h)},has:function(h){if($WeakMap&&h&&(typeof h=="object"||typeof h=="function")){if(t)return $weakMapHas(t,h)}else if($Map){if(o)return $mapHas(o,h)}else if(s)return listHas(s,h);return!1},set:function(h,v){$WeakMap&&h&&(typeof h=="object"||typeof h=="function")?(t||(t=new $WeakMap),$weakMapSet(t,h,v)):$Map?(o||(o=new $Map),$mapSet(o,h,v)):(s||(s={key:{},next:null}),listSet(s,h,v))}};return l},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(r){return replace.call(r,percentTwenties,"+")},RFC3986:function(r){return String(r)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$3=Object.prototype.hasOwnProperty,isArray$5=Array.isArray,hexTable=function(){for(var r=[],t=0;t<256;++t)r.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return r}(),compactQueue=function(t){for(;t.length>1;){var o=t.pop(),s=o.obj[o.prop];if(isArray$5(s)){for(var l=[],h=0;h<s.length;++h)typeof s[h]<"u"&&l.push(s[h]);o.obj[o.prop]=l}}},arrayToObject=function(t,o){for(var s=o&&o.plainObjects?Object.create(null):{},l=0;l<t.length;++l)typeof t[l]<"u"&&(s[l]=t[l]);return s},merge$1=function r(t,o,s){if(!o)return t;if(typeof o!="object"){if(isArray$5(t))t.push(o);else if(t&&typeof t=="object")(s&&(s.plainObjects||s.allowPrototypes)||!has$3.call(Object.prototype,o))&&(t[o]=!0);else return[t,o];return t}if(!t||typeof t!="object")return[t].concat(o);var l=t;return isArray$5(t)&&!isArray$5(o)&&(l=arrayToObject(t,s)),isArray$5(t)&&isArray$5(o)?(o.forEach(function(h,v){if(has$3.call(t,v)){var x=t[v];x&&typeof x=="object"&&h&&typeof h=="object"?t[v]=r(x,h,s):t.push(h)}else t[v]=h}),t):Object.keys(o).reduce(function(h,v){var x=o[v];return has$3.call(h,v)?h[v]=r(h[v],x,s):h[v]=x,h},l)},assign=function(t,o){return Object.keys(o).reduce(function(s,l){return s[l]=o[l],s},t)},decode$1=function(r,t,o){var s=r.replace(/\+/g," ");if(o==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},encode=function(t,o,s,l,h){if(t.length===0)return t;var v=t;if(typeof t=="symbol"?v=Symbol.prototype.toString.call(t):typeof t!="string"&&(v=String(t)),s==="iso-8859-1")return escape(v).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var x="",T=0;T<v.length;++T){var w=v.charCodeAt(T);if(w===45||w===46||w===95||w===126||w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||h===formats$2.RFC1738&&(w===40||w===41)){x+=v.charAt(T);continue}if(w<128){x=x+hexTable[w];continue}if(w<2048){x=x+(hexTable[192|w>>6]+hexTable[128|w&63]);continue}if(w<55296||w>=57344){x=x+(hexTable[224|w>>12]+hexTable[128|w>>6&63]+hexTable[128|w&63]);continue}T+=1,w=65536+((w&1023)<<10|v.charCodeAt(T)&1023),x+=hexTable[240|w>>18]+hexTable[128|w>>12&63]+hexTable[128|w>>6&63]+hexTable[128|w&63]}return x},compact=function(t){for(var o=[{obj:{o:t},prop:"o"}],s=[],l=0;l<o.length;++l)for(var h=o[l],v=h.obj[h.prop],x=Object.keys(v),T=0;T<x.length;++T){var w=x[T],C=v[w];typeof C=="object"&&C!==null&&s.indexOf(C)===-1&&(o.push({obj:v,prop:w}),s.push(C))}return compactQueue(o),t},isRegExp$1=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},isBuffer=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},combine=function(t,o){return[].concat(t,o)},maybeMap=function(t,o){if(isArray$5(t)){for(var s=[],l=0;l<t.length;l+=1)s.push(o(t[l]));return s}return o(t)},utils$6={arrayToObject,assign,combine,compact,decode:decode$1,encode,isBuffer,isRegExp:isRegExp$1,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$5=utils$6,formats$1=formats$3,has$2=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,o){return t+"["+o+"]"},repeat:function(t){return t}},isArray$4=Array.isArray,push$1=Array.prototype.push,pushToArray=function(r,t){push$1.apply(r,isArray$4(t)?t:[t])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$5.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(t){return toISO.call(t)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},sentinel={},stringify$2=function r(t,o,s,l,h,v,x,T,w,C,M,V,z,F,B,W){for(var Y=t,Z=W,X=0,te=!1;(Z=Z.get(sentinel))!==void 0&&!te;){var oe=Z.get(t);if(X+=1,typeof oe<"u"){if(oe===X)throw new RangeError("Cyclic object value");te=!0}typeof Z.get(sentinel)>"u"&&(X=0)}if(typeof T=="function"?Y=T(o,Y):Y instanceof Date?Y=M(Y):s==="comma"&&isArray$4(Y)&&(Y=utils$5.maybeMap(Y,function(Ce){return Ce instanceof Date?M(Ce):Ce})),Y===null){if(h)return x&&!F?x(o,defaults$2.encoder,B,"key",V):o;Y=""}if(isNonNullishPrimitive(Y)||utils$5.isBuffer(Y)){if(x){var ae=F?o:x(o,defaults$2.encoder,B,"key",V);return[z(ae)+"="+z(x(Y,defaults$2.encoder,B,"value",V))]}return[z(o)+"="+z(String(Y))]}var le=[];if(typeof Y>"u")return le;var he;if(s==="comma"&&isArray$4(Y))F&&x&&(Y=utils$5.maybeMap(Y,x)),he=[{value:Y.length>0?Y.join(",")||null:void 0}];else if(isArray$4(T))he=T;else{var me=Object.keys(Y);he=w?me.sort(w):me}for(var _e=l&&isArray$4(Y)&&Y.length===1?o+"[]":o,ye=0;ye<he.length;++ye){var Se=he[ye],Te=typeof Se=="object"&&typeof Se.value<"u"?Se.value:Y[Se];if(!(v&&Te===null)){var we=isArray$4(Y)?typeof s=="function"?s(_e,Se):_e:_e+(C?"."+Se:"["+Se+"]");W.set(t,X);var Ee=getSideChannel();Ee.set(sentinel,W),pushToArray(le,r(Te,we,s,l,h,v,s==="comma"&&F&&isArray$4(Y)?null:x,T,w,C,M,V,z,F,B,Ee))}}return le},normalizeStringifyOptions=function(t){if(!t)return defaults$2;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=t.charset||defaults$2.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=formats$1.default;if(typeof t.format<"u"){if(!has$2.call(formats$1.formatters,t.format))throw new TypeError("Unknown format option provided.");s=t.format}var l=formats$1.formatters[s],h=defaults$2.filter;return(typeof t.filter=="function"||isArray$4(t.filter))&&(h=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof t.allowDots>"u"?defaults$2.allowDots:!!t.allowDots,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof t.delimiter>"u"?defaults$2.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:defaults$2.encode,encoder:typeof t.encoder=="function"?t.encoder:defaults$2.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:h,format:s,formatter:l,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:defaults$2.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:defaults$2.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(r,t){var o=r,s=normalizeStringifyOptions(t),l,h;typeof s.filter=="function"?(h=s.filter,o=h("",o)):isArray$4(s.filter)&&(h=s.filter,l=h);var v=[];if(typeof o!="object"||o===null)return"";var x;t&&t.arrayFormat in arrayPrefixGenerators?x=t.arrayFormat:t&&"indices"in t?x=t.indices?"indices":"repeat":x="indices";var T=arrayPrefixGenerators[x];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var w=T==="comma"&&t&&t.commaRoundTrip;l||(l=Object.keys(o)),s.sort&&l.sort(s.sort);for(var C=getSideChannel(),M=0;M<l.length;++M){var V=l[M];s.skipNulls&&o[V]===null||pushToArray(v,stringify$2(o[V],V,T,w,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,C))}var z=v.join(s.delimiter),F=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?F+="utf8=%26%2310003%3B&":F+="utf8=%E2%9C%93&"),z.length>0?F+z:""},utils$4=utils$6,has$1=Object.prototype.hasOwnProperty,isArray$3=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(r){return r.replace(/&#(\d+);/g,function(t,o){return String.fromCharCode(parseInt(o,10))})},parseArrayValue=function(r,t){return r&&typeof r=="string"&&t.comma&&r.indexOf(",")>-1?r.split(","):r},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(t,o){var s={},l=o.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=o.parameterLimit===1/0?void 0:o.parameterLimit,v=l.split(o.delimiter,h),x=-1,T,w=o.charset;if(o.charsetSentinel)for(T=0;T<v.length;++T)v[T].indexOf("utf8=")===0&&(v[T]===charsetSentinel?w="utf-8":v[T]===isoSentinel&&(w="iso-8859-1"),x=T,T=v.length);for(T=0;T<v.length;++T)if(T!==x){var C=v[T],M=C.indexOf("]="),V=M===-1?C.indexOf("="):M+1,z,F;V===-1?(z=o.decoder(C,defaults$1.decoder,w,"key"),F=o.strictNullHandling?null:""):(z=o.decoder(C.slice(0,V),defaults$1.decoder,w,"key"),F=utils$4.maybeMap(parseArrayValue(C.slice(V+1),o),function(B){return o.decoder(B,defaults$1.decoder,w,"value")})),F&&o.interpretNumericEntities&&w==="iso-8859-1"&&(F=interpretNumericEntities(F)),C.indexOf("[]=")>-1&&(F=isArray$3(F)?[F]:F),has$1.call(s,z)?s[z]=utils$4.combine(s[z],F):s[z]=F}return s},parseObject=function(r,t,o,s){for(var l=s?t:parseArrayValue(t,o),h=r.length-1;h>=0;--h){var v,x=r[h];if(x==="[]"&&o.parseArrays)v=[].concat(l);else{v=o.plainObjects?Object.create(null):{};var T=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,w=parseInt(T,10);!o.parseArrays&&T===""?v={0:l}:!isNaN(w)&&x!==T&&String(w)===T&&w>=0&&o.parseArrays&&w<=o.arrayLimit?(v=[],v[w]=l):T!=="__proto__"&&(v[T]=l)}l=v}return l},parseKeys=function(t,o,s,l){if(t){var h=s.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,v=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,T=s.depth>0&&v.exec(h),w=T?h.slice(0,T.index):h,C=[];if(w){if(!s.plainObjects&&has$1.call(Object.prototype,w)&&!s.allowPrototypes)return;C.push(w)}for(var M=0;s.depth>0&&(T=x.exec(h))!==null&&M<s.depth;){if(M+=1,!s.plainObjects&&has$1.call(Object.prototype,T[1].slice(1,-1))&&!s.allowPrototypes)return;C.push(T[1])}return T&&C.push("["+h.slice(T.index)+"]"),parseObject(C,o,s,l)}},normalizeParseOptions=function(t){if(!t)return defaults$1;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=typeof t.charset>"u"?defaults$1.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?defaults$1.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:defaults$1.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:defaults$1.arrayLimit,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults$1.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:defaults$1.comma,decoder:typeof t.decoder=="function"?t.decoder:defaults$1.decoder,delimiter:typeof t.delimiter=="string"||utils$4.isRegExp(t.delimiter)?t.delimiter:defaults$1.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:defaults$1.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:defaults$1.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function(r,t){var o=normalizeParseOptions(t);if(r===""||r===null||typeof r>"u")return o.plainObjects?Object.create(null):{};for(var s=typeof r=="string"?parseValues(r,o):r,l=o.plainObjects?Object.create(null):{},h=Object.keys(s),v=0;v<h.length;++v){var x=h[v],T=parseKeys(x,s[x],o,typeof r=="string");l=utils$4.merge(l,T,o)}return o.allowSparse===!0?l:utils$4.compact(l)},stringify$1=stringify_1,parse$3=parse$4,formats=formats$3,lib={formats,parse:parse$3,stringify:stringify$1},nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT */(function(r,t){(function(o,s){r.exports=s()})(commonjsGlobal,function(){var o={};o.version="0.2.0";var s=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};o.configure=function(F){var B,W;for(B in F)W=F[B],W!==void 0&&F.hasOwnProperty(B)&&(s[B]=W);return this},o.status=null,o.set=function(F){var B=o.isStarted();F=l(F,s.minimum,1),o.status=F===1?null:F;var W=o.render(!B),Y=W.querySelector(s.barSelector),Z=s.speed,X=s.easing;return W.offsetWidth,x(function(te){s.positionUsing===""&&(s.positionUsing=o.getPositioningCSS()),T(Y,v(F,Z,X)),F===1?(T(W,{transition:"none",opacity:1}),W.offsetWidth,setTimeout(function(){T(W,{transition:"all "+Z+"ms linear",opacity:0}),setTimeout(function(){o.remove(),te()},Z)},Z)):setTimeout(te,Z)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var F=function(){setTimeout(function(){o.status&&(o.trickle(),F())},s.trickleSpeed)};return s.trickle&&F(),this},o.done=function(F){return!F&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(F){var B=o.status;return B?(typeof F!="number"&&(F=(1-B)*l(Math.random()*B,.1,.95)),B=l(B+F,0,.994),o.set(B)):o.start()},o.trickle=function(){return o.inc(Math.random()*s.trickleRate)},function(){var F=0,B=0;o.promise=function(W){return!W||W.state()==="resolved"?this:(B===0&&o.start(),F++,B++,W.always(function(){B--,B===0?(F=0,o.done()):o.set((F-B)/F)}),this)}}(),o.render=function(F){if(o.isRendered())return document.getElementById("nprogress");C(document.documentElement,"nprogress-busy");var B=document.createElement("div");B.id="nprogress",B.innerHTML=s.template;var W=B.querySelector(s.barSelector),Y=F?"-100":h(o.status||0),Z=document.querySelector(s.parent),X;return T(W,{transition:"all 0 linear",transform:"translate3d("+Y+"%,0,0)"}),s.showSpinner||(X=B.querySelector(s.spinnerSelector),X&&z(X)),Z!=document.body&&C(Z,"nprogress-custom-parent"),Z.appendChild(B),B},o.remove=function(){M(document.documentElement,"nprogress-busy"),M(document.querySelector(s.parent),"nprogress-custom-parent");var F=document.getElementById("nprogress");F&&z(F)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var F=document.body.style,B="WebkitTransform"in F?"Webkit":"MozTransform"in F?"Moz":"msTransform"in F?"ms":"OTransform"in F?"O":"";return B+"Perspective"in F?"translate3d":B+"Transform"in F?"translate":"margin"};function l(F,B,W){return F<B?B:F>W?W:F}function h(F){return(-1+F)*100}function v(F,B,W){var Y;return s.positionUsing==="translate3d"?Y={transform:"translate3d("+h(F)+"%,0,0)"}:s.positionUsing==="translate"?Y={transform:"translate("+h(F)+"%,0)"}:Y={"margin-left":h(F)+"%"},Y.transition="all "+B+"ms "+W,Y}var x=function(){var F=[];function B(){var W=F.shift();W&&W(B)}return function(W){F.push(W),F.length==1&&B()}}(),T=function(){var F=["Webkit","O","Moz","ms"],B={};function W(te){return te.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(oe,ae){return ae.toUpperCase()})}function Y(te){var oe=document.body.style;if(te in oe)return te;for(var ae=F.length,le=te.charAt(0).toUpperCase()+te.slice(1),he;ae--;)if(he=F[ae]+le,he in oe)return he;return te}function Z(te){return te=W(te),B[te]||(B[te]=Y(te))}function X(te,oe,ae){oe=Z(oe),te.style[oe]=ae}return function(te,oe){var ae=arguments,le,he;if(ae.length==2)for(le in oe)he=oe[le],he!==void 0&&oe.hasOwnProperty(le)&&X(te,le,he);else X(te,ae[1],ae[2])}}();function w(F,B){var W=typeof F=="string"?F:V(F);return W.indexOf(" "+B+" ")>=0}function C(F,B){var W=V(F),Y=W+B;w(W,B)||(F.className=Y.substring(1))}function M(F,B){var W=V(F),Y;w(F,B)&&(Y=W.replace(" "+B+" "," "),F.className=Y.substring(1,Y.length-1))}function V(F){return(" "+(F.className||"")+" ").replace(/\s+/gi," ")}function z(F){F&&F.parentNode&&F.parentNode.removeChild(F)}return o})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},At=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(t){return new Promise(o=>{At.requests.push(s=>{t.headers.Authorization=formatToken(s),o(t)})})}httpInterceptorsRequest(){At.axiosInstance.interceptors.request.use(async t=>(NProgress.start(),typeof t.beforeRequestCallback=="function"?(t.beforeRequestCallback(t),t):At.initConfig.beforeRequestCallback?(At.initConfig.beforeRequestCallback(t),t):["/refreshToken","/login"].some(s=>t.url.indexOf(s)>-1)?t:new Promise(s=>{const l=getToken();if(l){const h=new Date().getTime();parseInt(l.expires)-h<=0?(At.isRefreshing||(At.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:l.refreshToken}).then(x=>{const T=x.data.accessToken;t.headers.Authorization=formatToken(T),At.requests.forEach(w=>w(T)),At.requests=[]}).finally(()=>{At.isRefreshing=!1})),s(At.retryOriginalRequest(t))):(t.headers.Authorization=formatToken(l.accessToken),s(t))}else s(t)})),t=>Promise.reject(t))}httpInterceptorsResponse(){At.axiosInstance.interceptors.response.use(o=>{const s=o.config;return NProgress.done(),typeof s.beforeResponseCallback=="function"?(s.beforeResponseCallback(o),o.data):(At.initConfig.beforeResponseCallback&&At.initConfig.beforeResponseCallback(o),o.data)},o=>{const s=o;return s.isCancelRequest=axios.isCancel(s),NProgress.done(),Promise.reject(s)})}request(t,o,s,l){const h={method:t,url:o,...s,...l};return new Promise((v,x)=>{At.axiosInstance.request(h).then(T=>{v(T)}).catch(T=>{x(T)})})}post(t,o,s){return this.request("post",t,o,s)}get(t,o,s){return this.request("get",t,o,s)}};let PureHttp=At;er(PureHttp,"requests",[]),er(PureHttp,"isRefreshing",!1),er(PureHttp,"initConfig",{}),er(PureHttp,"axiosInstance",axios.create(defaultConfig$1));const http=new PureHttp,getLogin=r=>http.request("post","/login",{data:r}),refreshTokenApi=r=>http.request("post","/refreshToken",{data:r}),useMultiTagsStore=Pinia.defineStore({id:"pure-multiTags",state:()=>{var r,t;return{multiTags:(r=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&r.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(t=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:t.multiTagsCache}},getters:{getMultiTagsCache(r){return r.multiTagsCache}},actions:{multiTagsCacheChange(r){this.multiTagsCache=r,r?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache(r){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,r)},handleTags(r,t,o){var s,l,h,v,x;switch(r){case"equal":this.multiTags=t,this.tagsCache(this.multiTags);break;case"push":{const T=t;if((s=T==null?void 0:T.meta)!=null&&s.hiddenTag||dt(T==null?void 0:T.name)||((l=T==null?void 0:T.meta)==null?void 0:l.title.length)===0||Ae((h=T==null?void 0:T.meta)==null?void 0:h.showLink)&&!((v=T==null?void 0:T.meta)!=null&&v.showLink))return;const w=T.path,C=this.multiTags.some(F=>F.path===w),M=this.multiTags.some(F=>Mt(F==null?void 0:F.query,T==null?void 0:T.query)),V=this.multiTags.some(F=>Mt(F==null?void 0:F.params,T==null?void 0:T.params));if(C&&M&&V)return;const z=((x=T==null?void 0:T.meta)==null?void 0:x.dynamicLevel)??-1;if(z>0&&this.multiTags.filter(F=>(F==null?void 0:F.path)===w).length>=z){const F=this.multiTags.findIndex(B=>(B==null?void 0:B.path)===w);F!==-1&&this.multiTags.splice(F,1)}this.multiTags.push(t),this.tagsCache(this.multiTags)}break;case"splice":if(o)this.multiTags.splice(o==null?void 0:o.startIndex,o==null?void 0:o.length);else{const T=this.multiTags.findIndex(w=>w.path===t);if(T===-1)return;this.multiTags.splice(T,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=Pinia.defineStore({id:"pure-user",state:()=>{var r,t;return{username:((r=Qn().getItem(sessionKey))==null?void 0:r.username)??"",roles:((t=Qn().getItem(sessionKey))==null?void 0:t.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME(r){this.username=r},SET_ROLES(r){this.roles=r},SET_VERIFYCODE(r){this.verifyCode=r},SET_CURRENTPAGE(r){this.currentPage=r},async loginByUsername(r){return new Promise((t,o)=>{getLogin(r).then(s=>{s&&(setToken(s.data),t(s))}).catch(s=>{o(s)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken(r){return new Promise((t,o)=>{refreshTokenApi(r).then(s=>{s&&(setToken(s.data),t(s))}).catch(s=>{o(s)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):Qn().getItem(sessionKey)}function setToken(r){var v,x;let t=0;const{accessToken:o,refreshToken:s}=r;t=new Date(r.expires).getTime();const l=JSON.stringify({accessToken:o,expires:t});t>0?api.set(TokenKey,l,{expires:(t-Date.now())/864e5}):api.set(TokenKey,l);function h(T,w){useUserStoreHook().SET_USERNAME(T),useUserStoreHook().SET_ROLES(w),Qn().setItem(sessionKey,{refreshToken:s,expires:t,username:T,roles:w})}if(r.username&&r.roles){const{username:T,roles:w}=r;h(T,w)}else{const T=((v=Qn().getItem(sessionKey))==null?void 0:v.username)??"",w=((x=Qn().getItem(sessionKey))==null?void 0:x.roles)??[];h(T,w)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=r=>"Bearer "+r;(function(){const r=fr(location.href),t=["username","roles","accessToken"],o=t.length;if(Object.keys(r).length!==o)return;let s=[],l=0;for(;l<o;)Object.keys(r).includes(t[l])&&s.length<=o?s.push(t[l]):s=[],l++;if(s.length===o){removeToken(),setToken(r),delete r.roles,delete r.accessToken;const h=`${location.origin}${location.pathname}${Xt(location.hash,"?")}?${JSON.stringify(r).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(h)}else return})();const extractPathList=r=>{if(!Array.isArray(r))return console.warn("tree must be an array"),[];if(!r||r.length===0)return[];const t=[];for(const o of r)o.children&&o.children.length>0&&extractPathList(o.children),t.push(o.uniqueId);return t},deleteChildren=(r,t=[])=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];for(const[o,s]of r.entries())s.children&&s.children.length===1&&delete s.children,s.id=o,s.parentId=t.length?t[t.length-1]:null,s.pathList=[...t,s.id],s.uniqueId=s.pathList.length>1?s.pathList.join("-"):s.pathList[0],s.children&&s.children.length>0&&deleteChildren(s.children,s.pathList);return r},buildHierarchyTree=(r,t=[])=>{if(!Array.isArray(r))return console.warn("tree must be an array"),[];if(!r||r.length===0)return[];for(const[o,s]of r.entries())s.id=o,s.parentId=t.length?t[t.length-1]:null,s.pathList=[...t,s.id],s.children&&s.children.length>0&&buildHierarchyTree(s.children,s.pathList);return r},getNodeByUniqueId=(r,t)=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];const o=r.find(l=>l.uniqueId===t);if(o)return o;const s=r.filter(l=>l.children).map(l=>l.children).flat(1);return getNodeByUniqueId(s,t)},appendFieldByUniqueId=(r,t,o)=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];for(const s of r){const l=s.children&&s.children.length>0;s.uniqueId===t&&Object.prototype.toString.call(o)==="[object Object]"&&Object.assign(s,o),l&&appendFieldByUniqueId(s.children,t,o)}return r},handleTree=(r,t,o,s)=>{if(!Array.isArray(r))return console.warn("data must be an array"),[];const l={id:t||"id",parentId:o||"parentId",childrenList:s||"children"},h={},v={},x=[];for(const w of r){const C=w[l.parentId];h[C]==null&&(h[C]=[]),v[w[l.id]]=w,h[C].push(w)}for(const w of r){const C=w[l.parentId];v[C]==null&&x.push(w)}for(const w of x)T(w);function T(w){if(h[w[l.id]]!==null&&(w[l.childrenList]=h[w[l.id]]),w[l.childrenList])for(const C of w[l.childrenList])T(C)}return x},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-7ce333a6.js"),["static/js/frameView-7ce333a6.js","static/css/frameView-9583c80e.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-1823dc18.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-15f42514.js"),["static/js/cascader-15f42514.js","static/css/cascader-ae7f96ca.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-dc2b36c5.js"),["static/js/debounce-dc2b36c5.js","static/js/message-dec00bee.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-575c9e3d.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-73c5d3aa.js"),["static/js/execl-73c5d3aa.js","static/js/xlsx-e927f539.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-be12b6d2.js"),["static/js/icon-select-be12b6d2.js","static/css/icon-select-7ef59eba.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-de545fb4.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-e5149242.js"),["static/js/line-tree-e5149242.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-cde6e9c3.js"),["static/js/menu-tree-cde6e9c3.js","static/js/hooks-de3262c6.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-1c857519.js"),["static/js/pdf-1c857519.js","static/js/_vue_commonjs-external-c09696f7.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-b9ca165f.js"),["static/js/print-b9ca165f.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-07562c79.js","static/js/app-192cbc12.js","static/css/print-902c41a7.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-aecc81f8.js"),["static/js/qrcode-aecc81f8.js","static/js/message-dec00bee.js","static/js/index-1ff2ca57.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-b9ce6f96.js"),["static/js/swiper-b9ce6f96.js","static/css/swiper-03d590fd.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-c2663787.js"),["static/js/timeline-c2663787.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-de3262c6.js","static/js/iphone-89710f1a.js","static/css/timeline-c123aae6.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-7f3e022b.js"),["static/js/horizontal-7f3e022b.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-dfa0802e.js"),["static/js/index-dfa0802e.js","static/js/vertical-4e26d554.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-7f3e022b.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-4e26d554.js"),["static/js/vertical-4e26d554.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-a40946e1.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-242b1d7d.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-2789ad00.js"),["static/js/index-2789ad00.js","static/js/columns-242b1d7d.js","static/css/index-e5f71e09.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-7c54bb82.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-b271fef1.js"),["static/js/basic-b271fef1.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-10a65157.js"),["static/js/index-10a65157.js","static/js/basic-b271fef1.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-fa666a70.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-a2c233c4.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-a2c233c4.js"),["static/js/menuDynamic-a2c233c4.js","static/js/index.esm-ba027bbc.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-fa666a70.js"),["static/js/menuGroup-fa666a70.js","static/js/index.esm-ba027bbc.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-46a3c1b8.js"),["static/js/index-46a3c1b8.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-1e1ad6ba.js"),["static/js/index-1e1ad6ba.js","static/css/index-24b6d788.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-690b37b8.js"),["static/js/index-690b37b8.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-bb03eccb.js"),["static/js/index-bb03eccb.js","static/js/message-dec00bee.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-d8723966.js"),["static/js/index-d8723966.js","static/js/sortable.esm-679e0872.js","static/js/app-192cbc12.js","static/js/hooks-de3262c6.js","static/css/index-c7e143d9.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-d26fa825.js"),["static/js/index-d26fa825.js","static/js/styles-7b77e826.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-9e4240c7.js"),["static/js/index-9e4240c7.js","static/css/index-e12979b9.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-8196a8b4.js"),["static/js/index-8196a8b4.js","static/js/message-dec00bee.js","static/js/hooks-de3262c6.js","static/js/check-f53d8364.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-3ce12767.js"),["static/js/index-3ce12767.js","static/js/index-6a2fa405.js","static/css/index-ac8e5189.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-5929767e.js"),["static/js/index-5929767e.js","static/css/index-8df9cf0e.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-4f035bf2.js"),["static/js/index-4f035bf2.js","static/css/index-f95fd44a.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-fa805b3e.js"),["static/js/index-fa805b3e.js","static/js/index-771e958b.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-8e9ac6ac.js"),["static/js/index-8e9ac6ac.js","static/js/hooks-de3262c6.js","static/css/index-59eab90d.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-f51c7b06.js"),["static/js/index-f51c7b06.js","static/js/hooks-de3262c6.js","static/js/edit-542ce8b5.js","static/css/index-f38a3df6.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-1bca3418.js"),["static/js/index-1bca3418.js","static/css/index-31fa040a.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-5411bf68.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-5f176003.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-5e36d1a6.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-d6830dfe.js"),["static/js/index-d6830dfe.js","static/js/hooks-de3262c6.js","static/js/styles-7b77e826.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-c1aa8fdf.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-875aaabd.js"),["static/js/index-875aaabd.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-1453ea2f.js"),["static/js/Card-1453ea2f.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-a09d2cee.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-c4ae2cf3.js"),["static/js/DialogForm-c4ae2cf3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-2416215c.js","static/js/message-dec00bee.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-d7e7fc73.js"),["static/js/index-d7e7fc73.js","static/js/Card-1453ea2f.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-a09d2cee.css","static/js/message-dec00bee.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-2416215c.js","static/js/hooks-de3262c6.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-3e235d08.js"),["static/js/phone-3e235d08.js","static/js/phone.vue_vue_type_script_setup_true_lang-d58445f2.js","static/js/motion-a9ba222e.js","static/js/message-dec00bee.js","static/js/verifyCode-7b8558cd.js","static/js/hooks-de3262c6.js","static/js/iphone-89710f1a.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-9e4ccdc9.js"),["static/js/qrCode-9e4ccdc9.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-87eec25e.js","static/js/motion-a9ba222e.js","static/js/index-1ff2ca57.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-55fab5ab.js"),["static/js/regist-55fab5ab.js","static/js/regist.vue_vue_type_script_setup_true_lang-4d8911c9.js","static/js/motion-a9ba222e.js","static/js/message-dec00bee.js","static/js/verifyCode-7b8558cd.js","static/js/hooks-de3262c6.js","static/js/lock-fill-c966ff17.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-622a7ce6.js"),["static/js/update-622a7ce6.js","static/js/update.vue_vue_type_script_setup_true_lang-876839ff.js","static/js/motion-a9ba222e.js","static/js/message-dec00bee.js","static/js/verifyCode-7b8558cd.js","static/js/hooks-de3262c6.js","static/js/lock-fill-c966ff17.js","static/js/iphone-89710f1a.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-093658ec.js"),["static/js/index-093658ec.js","static/js/motion-a9ba222e.js","static/js/message-dec00bee.js","static/js/verifyCode-7b8558cd.js","static/js/phone.vue_vue_type_script_setup_true_lang-d58445f2.js","static/js/hooks-de3262c6.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-87eec25e.js","static/js/index-1ff2ca57.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-4d8911c9.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-876839ff.js","static/js/dark-5ed3e7aa.js","static/js/app-192cbc12.js","static/js/epTheme-075c1f8e.js","static/js/check-f53d8364.js","static/css/index-e89ae4a0.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-96168880.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-58bf469d.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-e9aee1db.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-ea1c0155.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-bd6fc9b5.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-40deae61.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-004ad114.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-8f5a095a.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-117d45b5.js"),["static/js/base-117d45b5.js","static/js/base.vue_vue_type_script_setup_true_lang-92f59c9e.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-8cd0120d.js"),["static/js/border-8cd0120d.js","static/js/border.vue_vue_type_script_setup_true_lang-c5266962.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-3b9a5d82.js"),["static/js/columns-3b9a5d82.js","static/js/message-dec00bee.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-cbc6713e.js"),["static/js/index-cbc6713e.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd70069.js","static/js/columns-3b9a5d82.js","static/js/message-dec00bee.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-26cee5e5.js"),["static/js/customIndex-26cee5e5.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-a6cfa4d8.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-d9629667.js"),["static/js/expand-d9629667.js","static/js/expand.vue_vue_type_script_setup_true_lang-96a332c8.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-ad96158d.js"),["static/js/filters-ad96158d.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-db91859b.js"),["static/js/fixColumn-db91859b.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-91093283.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-bce2def1.js"),["static/js/fixHeader-bce2def1.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-dc9f2eaa.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-13579355.js"),["static/js/fluidHeight-13579355.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-583b4da6.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-37a10428.js"),["static/js/groupHeader-37a10428.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-17651f34.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-e2ecfc76.js"),["static/js/columns-e2ecfc76.js","static/js/message-dec00bee.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-b2c97691.js"),["static/js/index-b2c97691.js","static/js/index.vue_vue_type_script_setup_true_lang-280bd93e.js","static/js/columns-e2ecfc76.js","static/js/message-dec00bee.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-49784673.js"),["static/js/imgPreview-49784673.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c57a4ec4.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-55dda932.js"),["static/js/layout-55dda932.js","static/js/layout.vue_vue_type_script_setup_true_lang-c5523fe1.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-ea55314b.js"),["static/js/list-ea55314b.js","static/js/base.vue_vue_type_script_setup_true_lang-92f59c9e.js","static/js/data-1b43d725.js","static/js/stripe.vue_vue_type_script_setup_true_lang-6db4ff88.js","static/js/border.vue_vue_type_script_setup_true_lang-c5266962.js","static/js/status.vue_vue_type_style_index_0_lang-860d1e1b.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-dc9f2eaa.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-91093283.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-583b4da6.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-17651f34.js","static/js/radio.vue_vue_type_script_setup_true_lang-154906c7.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-7c3526ca.js","static/js/sortable.vue_vue_type_script_setup_true_lang-993344dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd70069.js","static/js/columns-3b9a5d82.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-280bd93e.js","static/js/columns-e2ecfc76.js","static/js/expand.vue_vue_type_script_setup_true_lang-96a332c8.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-a6cfa4d8.js","static/js/layout.vue_vue_type_script_setup_true_lang-c5523fe1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c57a4ec4.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-98ffa0d0.js"),["static/js/merge-98ffa0d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-2092353a.js"),["static/js/multipleChoice-2092353a.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-7c3526ca.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-b89c4de9.js"),["static/js/nestProp-b89c4de9.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-1736d550.js"),["static/js/radio-1736d550.js","static/js/radio.vue_vue_type_script_setup_true_lang-154906c7.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-cf021025.js"),["static/js/sortable-cf021025.js","static/js/sortable.vue_vue_type_script_setup_true_lang-993344dd.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-0b1449cd.js"),["static/js/status-0b1449cd.js","static/js/status.vue_vue_type_style_index_0_lang-860d1e1b.js","static/js/data-1b43d725.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-3089ae43.js"),["static/js/stripe-3089ae43.js","static/js/stripe.vue_vue_type_script_setup_true_lang-6db4ff88.js","static/js/data-1b43d725.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-3752b049.js"),["static/js/totalRow-3752b049.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-16e86dfe.js"),["static/js/tree-16e86dfe.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-f55a3558.js"),["static/js/high-f55a3558.js","static/js/list-2fb9b7a0.js","static/js/index.vue_vue_type_script_setup_true_lang-0b48457b.js","static/js/columns-4bed3739.js","static/js/data-08e736ac.js","static/js/index.vue_vue_type_script_setup_true_lang-d37bf124.js","static/js/columns-6e6ad718.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-d5de096b.js","static/js/columns-366a25cc.js","static/js/index.vue_vue_type_script_setup_true_lang-cf4d8f02.js","static/js/columns-130886dc.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-dd23e371.js","static/js/columns-9ad5c3f8.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-9a0c6d98.js","static/js/columns-d1910dc8.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-c82121e4.js","static/js/columns-3acd59b5.js","static/js/index.vue_vue_type_script_setup_true_lang-2fc54e88.js","static/js/columns-063d6134.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-6ec50b45.js","static/js/columns-879b5f0b.js","static/js/index-6a2fa405.js","static/js/index.vue_vue_type_script_setup_true_lang-6e8727bf.js","static/js/index.vue_vue_type_script_setup_true_lang-5dec2b96.js","static/js/columns-6d119596.js","static/js/index.vue_vue_type_script_setup_true_lang-b1a433a9.js","static/js/columns-2a733416.js","static/css/high-3e0dece5.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-130886dc.js"),["static/js/columns-130886dc.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-615c4116.js"),["static/js/index-615c4116.js","static/js/index.vue_vue_type_script_setup_true_lang-cf4d8f02.js","static/js/columns-130886dc.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-366a25cc.js"),["static/js/columns-366a25cc.js","static/js/sortable.esm-679e0872.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-56ba7a04.js"),["static/js/index-56ba7a04.js","static/js/index.vue_vue_type_script_setup_true_lang-d5de096b.js","static/js/columns-366a25cc.js","static/js/sortable.esm-679e0872.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-6e6ad718.js"),["static/js/columns-6e6ad718.js","static/js/sortable.esm-679e0872.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-090a2bdd.js"),["static/js/index-090a2bdd.js","static/js/index.vue_vue_type_script_setup_true_lang-d37bf124.js","static/js/columns-6e6ad718.js","static/js/sortable.esm-679e0872.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-879b5f0b.js"),["static/js/columns-879b5f0b.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js","static/js/index-6a2fa405.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-99b9a59e.js"),["static/js/index-99b9a59e.js","static/js/index.vue_vue_type_script_setup_true_lang-6ec50b45.js","static/js/columns-879b5f0b.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js","static/js/index-6a2fa405.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-d1910dc8.js"),["static/js/columns-d1910dc8.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-df8a7f61.js"),["static/js/index-df8a7f61.js","static/js/index.vue_vue_type_script_setup_true_lang-9a0c6d98.js","static/js/columns-d1910dc8.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-9ad5c3f8.js"),["static/js/columns-9ad5c3f8.js","static/js/xlsx-e927f539.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-3a14102c.js"),["static/js/index-3a14102c.js","static/js/index.vue_vue_type_script_setup_true_lang-dd23e371.js","static/js/columns-9ad5c3f8.js","static/js/xlsx-e927f539.js","static/js/data-08e736ac.js","static/js/message-dec00bee.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-2fb9b7a0.js"),["static/js/list-2fb9b7a0.js","static/js/index.vue_vue_type_script_setup_true_lang-0b48457b.js","static/js/columns-4bed3739.js","static/js/data-08e736ac.js","static/js/index.vue_vue_type_script_setup_true_lang-d37bf124.js","static/js/columns-6e6ad718.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-d5de096b.js","static/js/columns-366a25cc.js","static/js/index.vue_vue_type_script_setup_true_lang-cf4d8f02.js","static/js/columns-130886dc.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-dd23e371.js","static/js/columns-9ad5c3f8.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-9a0c6d98.js","static/js/columns-d1910dc8.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-c82121e4.js","static/js/columns-3acd59b5.js","static/js/index.vue_vue_type_script_setup_true_lang-2fc54e88.js","static/js/columns-063d6134.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-6ec50b45.js","static/js/columns-879b5f0b.js","static/js/index-6a2fa405.js","static/js/index.vue_vue_type_script_setup_true_lang-6e8727bf.js","static/js/index.vue_vue_type_script_setup_true_lang-5dec2b96.js","static/js/columns-6d119596.js","static/js/index.vue_vue_type_script_setup_true_lang-b1a433a9.js","static/js/columns-2a733416.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-4bed3739.js"),["static/js/columns-4bed3739.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-f18df73d.js"),["static/js/index-f18df73d.js","static/js/index.vue_vue_type_script_setup_true_lang-0b48457b.js","static/js/columns-4bed3739.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-063d6134.js"),["static/js/columns-063d6134.js","static/js/print-a6e42845.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-b7a00da7.js"),["static/js/index-b7a00da7.js","static/js/index.vue_vue_type_script_setup_true_lang-2fc54e88.js","static/js/columns-063d6134.js","static/js/print-a6e42845.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-3dffcc83.js"),["static/js/index-3dffcc83.js","static/js/index.vue_vue_type_script_setup_true_lang-6e8727bf.js","static/js/index.vue_vue_type_script_setup_true_lang-5dec2b96.js","static/js/columns-6d119596.js","static/js/message-dec00bee.js","static/js/data-08e736ac.js","static/js/index.vue_vue_type_script_setup_true_lang-b1a433a9.js","static/js/columns-2a733416.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-2a733416.js"),["static/js/columns-2a733416.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-b8585a40.js"),["static/js/index-b8585a40.js","static/js/index.vue_vue_type_script_setup_true_lang-b1a433a9.js","static/js/columns-2a733416.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-6d119596.js"),["static/js/columns-6d119596.js","static/js/message-dec00bee.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-e6d768ae.js"),["static/js/index-e6d768ae.js","static/js/index.vue_vue_type_script_setup_true_lang-5dec2b96.js","static/js/columns-6d119596.js","static/js/message-dec00bee.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-3acd59b5.js"),["static/js/columns-3acd59b5.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-f9923d40.js"),["static/js/index-f9923d40.js","static/js/index.vue_vue_type_script_setup_true_lang-c82121e4.js","static/js/columns-3acd59b5.js","static/js/data-08e736ac.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-10d8e1c7.js"),["static/js/index-10d8e1c7.js","static/js/list-ea55314b.js","static/js/base.vue_vue_type_script_setup_true_lang-92f59c9e.js","static/js/data-1b43d725.js","static/js/stripe.vue_vue_type_script_setup_true_lang-6db4ff88.js","static/js/border.vue_vue_type_script_setup_true_lang-c5266962.js","static/js/status.vue_vue_type_style_index_0_lang-860d1e1b.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-dc9f2eaa.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-91093283.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-583b4da6.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-17651f34.js","static/js/radio.vue_vue_type_script_setup_true_lang-154906c7.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-7c3526ca.js","static/js/sortable.vue_vue_type_script_setup_true_lang-993344dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd70069.js","static/js/columns-3b9a5d82.js","static/js/message-dec00bee.js","static/js/index.vue_vue_type_script_setup_true_lang-280bd93e.js","static/js/columns-e2ecfc76.js","static/js/expand.vue_vue_type_script_setup_true_lang-96a332c8.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-a6cfa4d8.js","static/js/layout.vue_vue_type_script_setup_true_lang-c5523fe1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-c57a4ec4.js","static/css/index-1561da6c.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-feb8cdc1.js"),["static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-2c69ea47.js"),["static/js/fail-2c69ea47.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-d0b963c5.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-36fc75db.js"),["static/js/success-36fc75db.js","static/css/success-ced4dbdf.css"]),"/src/views/system/dept/hook.tsx":()=>__vitePreload(()=>import("./hook-34dbfaf1.js"),["static/js/hook-34dbfaf1.js","static/js/system-805e509f.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-93bd68a5.js"),["static/js/index-93bd68a5.js","static/js/hook-34dbfaf1.js","static/js/system-805e509f.js","static/js/refresh-277a4167.js","static/js/epTheme-075c1f8e.js","static/js/hooks-de3262c6.js","static/js/edit-pen-37b5ced2.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),"/src/views/system/role/hook.tsx":()=>__vitePreload(()=>import("./hook-bac77a40.js"),["static/js/hook-bac77a40.js","static/js/message-dec00bee.js","static/js/system-805e509f.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-f81f3f68.js"),["static/js/index-f81f3f68.js","static/js/hook-bac77a40.js","static/js/message-dec00bee.js","static/js/system-805e509f.js","static/js/refresh-277a4167.js","static/js/epTheme-075c1f8e.js","static/js/hooks-de3262c6.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/search-4b9e88d3.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-438b436c.js","static/css/index-8cb31d6e.css"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-6026851f.js"),["static/js/hook-6026851f.js","static/js/message-dec00bee.js","static/js/system-805e509f.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-3cc89b8c.js"),["static/js/index-3cc89b8c.js","static/js/tree-4aa80192.js","static/js/system-805e509f.js","static/js/hooks-de3262c6.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-4b9e88d3.js","static/js/more-2-fill-4bb0933c.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-6026851f.js","static/js/message-dec00bee.js","static/js/refresh-277a4167.js","static/js/epTheme-075c1f8e.js","static/js/admin-line-92b9acda.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-438b436c.js","static/css/index-8ab170b8.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-4aa80192.js"),["static/js/tree-4aa80192.js","static/js/system-805e509f.js","static/js/hooks-de3262c6.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-4b9e88d3.js","static/js/more-2-fill-4bb0933c.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-0a27e198.js"),["static/js/index-0a27e198.js","static/js/hooks-568d9648.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-b5a741ae.js"),["static/js/params-detail-b5a741ae.js","static/js/hooks-568d9648.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-2db0a943.js"),["static/js/query-detail-2db0a943.js","static/js/hooks-568d9648.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-51111be3.js"),["static/js/Bar-51111be3.js","static/js/Bar.vue_vue_type_script_setup_true_lang-2f216bc1.js","static/js/app-192cbc12.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-04649e33.js"),["static/js/Github-04649e33.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/index-771e958b.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-62add382.js"),["static/js/Line-62add382.js","static/js/Line.vue_vue_type_script_setup_true_lang-07562c79.js","static/js/app-192cbc12.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-fe8725ea.js"),["static/js/Pie-fe8725ea.js","static/js/Pie.vue_vue_type_script_setup_true_lang-fa06143e.js","static/js/app-192cbc12.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-d84895c5.js"),["static/js/columns-d84895c5.js","static/js/index-771e958b.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-08c4e9bb.js").then(r=>r.w),["static/js/index-08c4e9bb.js","static/js/Bar.vue_vue_type_script_setup_true_lang-2f216bc1.js","static/js/app-192cbc12.js","static/js/Pie.vue_vue_type_script_setup_true_lang-fa06143e.js","static/js/Line.vue_vue_type_script_setup_true_lang-07562c79.js","static/js/index-771e958b.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/css/index-bb2c7a9c.css"])});function handRank(r){const{name:t,path:o,parentId:s,meta:l}=r;return P$2(s)?!!(P$2(l==null?void 0:l.rank)||(l==null?void 0:l.rank)===0&&t!=="Home"&&o!=="/"):!1}function ascending(r){return r.forEach((t,o)=>{handRank(t)&&(t.meta.rank=o+2)}),r.sort((t,o)=>(t==null?void 0:t.meta.rank)-(o==null?void 0:o.meta.rank))}function filterTree(r){const t=Ke(r).filter(o=>{var s;return((s=o.meta)==null?void 0:s.showLink)!==!1});return t.forEach(o=>o.children&&(o.children=filterTree(o.children))),t}function filterChildrenTree(r){const t=Ke(r).filter(o=>{var s;return((s=o==null?void 0:o.children)==null?void 0:s.length)!==0});return t.forEach(o=>o.children&&(o.children=filterTree(o.children))),t}function isOneOfArray(r,t){return Array.isArray(r)&&Array.isArray(t)?yr(r,t).length>0:!0}function filterNoPermissionTree(r){var s;const t=((s=Qn().getItem(sessionKey))==null?void 0:s.roles)??[],o=Ke(r).filter(l=>{var h;return isOneOfArray((h=l.meta)==null?void 0:h.roles,t)});return o.forEach(l=>l.children&&(l.children=filterNoPermissionTree(l.children))),filterChildrenTree(o)}function getParentPaths(r,t,o="path"){function s(l,h,v){for(let x=0;x<l.length;x++){const T=l[x];if(T[o]===h)return v;if(!(!T.children||!T.children.length)){if(v.push(T.path),s(T.children,h,v).length)return v;v.pop()}}return[]}return s(t,r,[])}function findRouteByPath(r,t){let o=t.find(s=>s.path==r);if(o)return Vue.isProxy(o)?Vue.toRaw(o):o;for(let s=0;s<t.length;s++)if(t[s].children instanceof Array&&t[s].children.length>0&&(o=findRouteByPath(r,t[s].children),o))return Vue.isProxy(o)?Vue.toRaw(o):o;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes(r){r.length===0||formatFlatteningRoutes(addAsyncRoutes(r)).map(t=>{if(router.options.routes[0].children.findIndex(o=>o.path===t.path)===-1){router.options.routes[0].children.push(t),ascending(router.options.routes[0].children),router.hasRoute(t==null?void 0:t.name)||router.addRoute(t);const o=router.getRoutes().find(s=>s.path==="/");router.addRoute(o)}}),usePermissionStoreHook().handleWholeMenus(r),addPathMatch()}function initRouter(){var r;if((r=getConfig())!=null&&r.CachingAsyncRoutes){const t="async-routes",o=Qn().getItem(t);return o&&(o==null?void 0:o.length)>0?new Promise(s=>{handleAsyncRoutes(o),s(router)}):new Promise(s=>{getAsyncRoutes().then(({data:l})=>{handleAsyncRoutes(Ke(l)),Qn().setItem(t,l),s(router)})})}else return new Promise(t=>{getAsyncRoutes().then(({data:o})=>{handleAsyncRoutes(Ke(o)),t(router)})})}function formatFlatteningRoutes(r){if(r.length===0)return r;let t=buildHierarchyTree(r);for(let o=0;o<t.length;o++)t[o].children&&(t=t.slice(0,o+1).concat(t[o].children,t.slice(o+1)));return t}function formatTwoStageRoutes(r){if(r.length===0)return r;const t=[];return r.forEach(o=>{var s;o.path==="/"?t.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(s=t[0])==null||s.children.push({...o})}),t}function handleAliveRoute({name:r},t){switch(t){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:r});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:r});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:r}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:r})},100)}}function addAsyncRoutes(r){if(!r||!r.length)return;const t=Object.keys(modulesRoutes);return r.forEach(o=>{var s;if(o.meta.backstage=!0,o!=null&&o.children&&o.children.length&&!o.redirect&&(o.redirect=o.children[0].path),o!=null&&o.children&&o.children.length&&!o.name&&(o.name=o.children[0].name+"Parent"),(s=o.meta)!=null&&s.frameSrc)o.component=IFrame;else{const l=o!=null&&o.component?t.findIndex(h=>h.includes(o.component)):t.findIndex(h=>h.includes(o.path));o.component=modulesRoutes[t[l]]}o!=null&&o.children&&o.children.length&&addAsyncRoutes(o.children)}),r}function getHistoryMode(r){const t=r.split(","),o=t[0],s=t[1];if(t.length===1){if(o==="hash")return VueRouter.createWebHashHistory("");if(o==="h5")return VueRouter.createWebHistory("")}else if(t.length===2){if(o==="hash")return VueRouter.createWebHashHistory(s);if(o==="h5")return VueRouter.createWebHistory(s)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth(r){if(!r)return!1;const t=getAuths();return t?!!(S(r)?t.includes(r):br(r,t)):!1}function getTopMenu(r=!1){var o;const t=(o=usePermissionStoreHook().wholeMenus[0])==null?void 0:o.children[0];return r&&useMultiTagsStoreHook().handleTags("push",t),t}const usePermissionStore=Pinia.defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus(r){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat(r))))},cacheOperate({mode:r,name:t}){switch(r){case"add":this.cachePageList.push(t);break;case"delete":const o=this.cachePageList.findIndex(s=>s===t);o!==-1&&this.cachePageList.splice(o,1);break}(()=>{let o=this.cachePageList.length;const s=wr(useMultiTagsStoreHook().multiTags,"name");for(;o>0;)s.findIndex(l=>l===this.cachePageList[o-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[o-1]),1),o--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-2f023452.js"),["static/js/index-2f023452.js","static/js/menu-a4fe64fb.js","static/js/edit-542ce8b5.js","static/js/set-up-729eb907.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-5ed3e7aa.js","static/js/app-192cbc12.js","static/js/epTheme-075c1f8e.js","static/js/hooks-de3262c6.js","static/js/index-6a2fa405.js","static/js/search-4b9e88d3.js","static/js/check-f53d8364.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/index-51a3b4f7.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-093658ec.js"),["static/js/index-093658ec.js","static/js/motion-a9ba222e.js","static/js/message-dec00bee.js","static/js/verifyCode-7b8558cd.js","static/js/phone.vue_vue_type_script_setup_true_lang-d58445f2.js","static/js/hooks-de3262c6.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-87eec25e.js","static/js/index-1ff2ca57.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-4d8911c9.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-876839ff.js","static/js/dark-5ed3e7aa.js","static/js/app-192cbc12.js","static/js/epTheme-075c1f8e.js","static/js/check-f53d8364.js","static/css/index-e89ae4a0.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect-212aca22.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-1bca3418.js"),["static/js/index-1bca3418.js","static/css/index-31fa040a.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach(r=>{routes.push(modules$1[r].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))),constantMenus=ascending(routes).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map(r=>remainingRouter[r].path),router=VueRouter.createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior(r,t,o){return new Promise(s=>{if(o)return o;if(t.meta.saveSrollTop){const l=document.documentElement.scrollTop||document.body.scrollTop;s({left:0,top:l})}})}});function resetRouter(){router.getRoutes().forEach(r=>{const{name:t,meta:o}=r;t&&router.hasRoute(t)&&(o!=null&&o.backstage)&&(router.removeRoute(t),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach((r,t,o)=>{var v,x,T;(v=r.meta)!=null&&v.keepAlive&&(handleAliveRoute(r,"add"),(t.name===void 0||t.name==="Redirect")&&handleAliveRoute(r));const s=Qn().getItem(sessionKey);NProgress.start();const l=dt(r==null?void 0:r.name);l||r.matched.some(w=>{if(!w.meta.title)return"";const C=getConfig().Title;C?document.title=`${transformI18n(w.meta.title)} | ${C}`:document.title=transformI18n(w.meta.title)});function h(){whiteList.includes(r.fullPath)?o(t.fullPath):o()}s?((x=r.meta)!=null&&x.roles&&!isOneOfArray((T=r.meta)==null?void 0:T.roles,s==null?void 0:s.roles)&&o({path:"/error/403"}),VITE_HIDE_HOME==="true"&&r.fullPath==="/welcome"&&o({path:"/error/404"}),t!=null&&t.name?l?(Tt(r==null?void 0:r.name),NProgress.done()):h():(usePermissionStoreHook().wholeMenus.length===0&&r.path!=="/login"&&initRouter().then(w=>{var C;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:M}=r,V=findRouteByPath(M,w.options.routes[0].children);getTopMenu(!0),V&&((C=V.meta)!=null&&C.title)&&useMultiTagsStoreHook().handleTags("push",{path:V.path,name:V.name,meta:V.meta})}w.push(r.fullPath)}),h())):r.path!=="/login"?whiteList.indexOf(r.path)!==-1?o():o({path:"/login"}):o()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=r=>typeof r=="number",isString$2=r=>typeof r=="string",isObject$4=r=>toString.call(r)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function tryOnScopeDispose(r){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(r),!0):!1}function tryOnUnmounted(r){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(r)}function unrefElement(r){var t;const o=VueDemi.unref(r);return(t=o==null?void 0:o.$el)!=null?t:o}const defaultWindow=isClient?window:void 0;function useEventListener(...r){let t,o,s,l;if(isString$2(r[0])?([o,s,l]=r,t=defaultWindow):[t,o,s,l]=r,!t)return noop$1;let h=noop$1;const v=VueDemi.watch(()=>unrefElement(t),T=>{h(),T&&(T.addEventListener(o,s,l),h=()=>{T.removeEventListener(o,s,l),h=noop$1})},{immediate:!0,flush:"post"}),x=()=>{v(),h()};return tryOnScopeDispose(x),x}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver(r,t,o={}){const{root:s,rootMargin:l="0px",threshold:h=.1,window:v=defaultWindow}=o,x=v&&"IntersectionObserver"in v;let T=noop$1;const w=x?VueDemi.watch(()=>({el:unrefElement(r),root:unrefElement(s)}),({el:M,root:V})=>{if(T(),!M)return;const z=new IntersectionObserver(t,{root:V,rootMargin:l,threshold:h});z.observe(M),T=()=>{z.disconnect(),T=noop$1}},{immediate:!0,flush:"post"}):noop$1,C=()=>{T(),w()};return tryOnScopeDispose(C),{isSupported:x,stop:C}}var SwipeDirection;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?r=>window.requestAnimationFrame(r):r=>setTimeout(()=>r(getCurrentTime()),defaultTimestep);function createRenderStep(r){let t=[],o=[],s=0,l=!1,h=!1;const v=new WeakSet,x={schedule:(T,w=!1,C=!1)=>{const M=C&&l,V=M?t:o;return w&&v.add(T),V.indexOf(T)===-1&&(V.push(T),M&&l&&(s=t.length)),T},cancel:T=>{const w=o.indexOf(T);w!==-1&&o.splice(w,1),v.delete(T)},process:T=>{if(l){h=!0;return}if(l=!0,[t,o]=[o,t],o.length=0,s=t.length,s)for(let w=0;w<s;w++){const C=t[w];C(T),v.has(C)&&(x.schedule(C),r())}l=!1,h&&(h=!1,x.process(T))}};return x}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce((r,t)=>(r[t]=createRenderStep(()=>runNextFrame=!0),r),{}),sync=stepsOrder.reduce((r,t)=>{const o=steps[t];return r[t]=(s,l=!1,h=!1)=>(runNextFrame||startLoop(),o.schedule(s,l,h)),r},{}),cancelSync=stepsOrder.reduce((r,t)=>(r[t]=steps[t].cancel,r),{});stepsOrder.reduce((r,t)=>(r[t]=()=>steps[t].process(frame),r),{});const processStep=r=>steps[r].process(frame),processFrame=r=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(r-frame.timestamp,maxElapsed),1),frame.timestamp=r,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(r,t){var o={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&t.indexOf(s)<0&&(o[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(r);l<s.length;l++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(r,s[l])&&(o[s[l]]=r[s[l]]);return o}var warning=function(){},invariant=function(){};const clamp$2=(r,t,o)=>Math.min(Math.max(o,r),t),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:r=800,bounce:t=.25,velocity:o=0,mass:s=1}){let l,h;warning(r<=maxDuration*1e3);let v=1-t;v=clamp$2(minDamping,maxDamping,v),r=clamp$2(minDuration,maxDuration,r/1e3),v<1?(l=w=>{const C=w*v,M=C*r,V=C-o,z=calcAngularFreq(w,v),F=Math.exp(-M);return safeMin-V/z*F},h=w=>{const M=w*v*r,V=M*o+o,z=Math.pow(v,2)*Math.pow(w,2)*r,F=Math.exp(-M),B=calcAngularFreq(Math.pow(w,2),v);return(-l(w)+safeMin>0?-1:1)*((V-z)*F)/B}):(l=w=>{const C=Math.exp(-w*r),M=(w-o)*r+1;return-safeMin+C*M},h=w=>{const C=Math.exp(-w*r),M=(o-w)*(r*r);return C*M});const x=5/r,T=approximateRoot(l,h,x);if(r=r*1e3,isNaN(T))return{stiffness:100,damping:10,duration:r};{const w=Math.pow(T,2)*s;return{stiffness:w,damping:v*2*Math.sqrt(s*w),duration:r}}}const rootIterations=12;function approximateRoot(r,t,o){let s=o;for(let l=1;l<rootIterations;l++)s=s-r(s)/t(s);return s}function calcAngularFreq(r,t){return r*Math.sqrt(1-t*t)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(r,t){return t.some(o=>r[o]!==void 0)}function getSpringOptions(r){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},r);if(!isSpringType(r,physicsKeys)&&isSpringType(r,durationKeys)){const o=findSpring(r);t=Object.assign(Object.assign(Object.assign({},t),o),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function spring(r){var{from:t=0,to:o=1,restSpeed:s=2,restDelta:l}=r,h=__rest(r,["from","to","restSpeed","restDelta"]);const v={done:!1,value:t};let{stiffness:x,damping:T,mass:w,velocity:C,duration:M,isResolvedFromDuration:V}=getSpringOptions(h),z=zero,F=zero;function B(){const W=C?-(C/1e3):0,Y=o-t,Z=T/(2*Math.sqrt(x*w)),X=Math.sqrt(x/w)/1e3;if(l===void 0&&(l=Math.min(Math.abs(o-t)/100,.4)),Z<1){const te=calcAngularFreq(X,Z);z=oe=>{const ae=Math.exp(-Z*X*oe);return o-ae*((W+Z*X*Y)/te*Math.sin(te*oe)+Y*Math.cos(te*oe))},F=oe=>{const ae=Math.exp(-Z*X*oe);return Z*X*ae*(Math.sin(te*oe)*(W+Z*X*Y)/te+Y*Math.cos(te*oe))-ae*(Math.cos(te*oe)*(W+Z*X*Y)-te*Y*Math.sin(te*oe))}}else if(Z===1)z=te=>o-Math.exp(-X*te)*(Y+(W+X*Y)*te);else{const te=X*Math.sqrt(Z*Z-1);z=oe=>{const ae=Math.exp(-Z*X*oe),le=Math.min(te*oe,300);return o-ae*((W+Z*X*Y)*Math.sinh(le)+te*Y*Math.cosh(le))/te}}}return B(),{next:W=>{const Y=z(W);if(V)v.done=W>=M;else{const Z=F(W)*1e3,X=Math.abs(Z)<=s,te=Math.abs(o-Y)<=l;v.done=X&&te}return v.value=v.done?o:Y,v},flipTarget:()=>{C=-C,[t,o]=[o,t],B()}}}spring.needsInterpolation=(r,t)=>typeof r=="string"||typeof t=="string";const zero=r=>0,progress=(r,t,o)=>{const s=t-r;return s===0?1:(o-r)/s},mix=(r,t,o)=>-o*r+o*t+r,clamp$1=(r,t)=>o=>Math.max(Math.min(o,t),r),sanitize=r=>r%1?Number(r.toFixed(5)):r,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(r){return typeof r=="string"}const number$1={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=r=>({test:t=>isString$1(t)&&t.endsWith(r)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${r}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:r=>percent.parse(r)/100,transform:r=>percent.transform(r*100)}),isColorString=(r,t)=>o=>!!(isString$1(o)&&singleColorRegex.test(o)&&o.startsWith(r)||t&&Object.prototype.hasOwnProperty.call(o,t)),splitColor=(r,t,o)=>s=>{if(!isString$1(s))return s;const[l,h,v,x]=s.match(floatRegex);return{[r]:parseFloat(l),[t]:parseFloat(h),[o]:parseFloat(v),alpha:x!==void 0?parseFloat(x):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:r,saturation:t,lightness:o,alpha:s=1})=>"hsla("+Math.round(r)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(o))+", "+sanitize(alpha.transform(s))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:r=>Math.round(clampRgbUnit(r))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:r,green:t,blue:o,alpha:s=1})=>"rgba("+rgbUnit.transform(r)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(o)+", "+sanitize(alpha.transform(s))+")"};function parseHex(r){let t="",o="",s="",l="";return r.length>5?(t=r.substr(1,2),o=r.substr(3,2),s=r.substr(5,2),l=r.substr(7,2)):(t=r.substr(1,1),o=r.substr(2,1),s=r.substr(3,1),l=r.substr(4,1),t+=t,o+=o,s+=s,l+=l),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:r=>rgba.test(r)||hex.test(r)||hsla.test(r),parse:r=>rgba.test(r)?rgba.parse(r):hsla.test(r)?hsla.parse(r):hex.parse(r),transform:r=>isString$1(r)?r:r.hasOwnProperty("red")?rgba.transform(r):hsla.transform(r)},colorToken="${c}",numberToken="${n}";function test(r){var t,o,s,l;return isNaN(r)&&isString$1(r)&&((o=(t=r.match(floatRegex))===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0)+((l=(s=r.match(colorRegex))===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}function analyse$1(r){typeof r=="number"&&(r=`${r}`);const t=[];let o=0;const s=r.match(colorRegex);s&&(o=s.length,r=r.replace(colorRegex,colorToken),t.push(...s.map(color$1.parse)));const l=r.match(floatRegex);return l&&(r=r.replace(floatRegex,numberToken),t.push(...l.map(number$1.parse))),{values:t,numColors:o,tokenised:r}}function parse$2(r){return analyse$1(r).values}function createTransformer(r){const{values:t,numColors:o,tokenised:s}=analyse$1(r),l=t.length;return h=>{let v=s;for(let x=0;x<l;x++)v=v.replace(x<o?colorToken:numberToken,x<o?color$1.transform(h[x]):sanitize(h[x]));return v}}const convertNumbersToZero=r=>typeof r=="number"?0:r;function getAnimatableNone$1(r){const t=parse$2(r);return createTransformer(r)(t.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(r){let[t,o]=r.slice(0,-1).split("(");if(t==="drop-shadow")return r;const[s]=o.match(floatRegex)||[];if(!s)return r;const l=o.replace(s,"");let h=maxDefaults.has(t)?1:0;return s!==o&&(h*=100),t+"("+h+l+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:r=>{const t=r.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):r}});function hueToRgb(r,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(t-r)*6*o:o<1/2?t:o<2/3?r+(t-r)*(2/3-o)*6:r}function hslaToRgba({hue:r,saturation:t,lightness:o,alpha:s}){r/=360,t/=100,o/=100;let l=0,h=0,v=0;if(!t)l=h=v=o;else{const x=o<.5?o*(1+t):o+t-o*t,T=2*o-x;l=hueToRgb(T,x,r+1/3),h=hueToRgb(T,x,r),v=hueToRgb(T,x,r-1/3)}return{red:Math.round(l*255),green:Math.round(h*255),blue:Math.round(v*255),alpha:s}}const mixLinearColor=(r,t,o)=>{const s=r*r,l=t*t;return Math.sqrt(Math.max(0,o*(l-s)+s))},colorTypes=[hex,rgba,hsla],getColorType=r=>colorTypes.find(t=>t.test(r)),mixColor=(r,t)=>{let o=getColorType(r),s=getColorType(t),l=o.parse(r),h=s.parse(t);o===hsla&&(l=hslaToRgba(l),o=rgba),s===hsla&&(h=hslaToRgba(h),s=rgba);const v=Object.assign({},l);return x=>{for(const T in v)T!=="alpha"&&(v[T]=mixLinearColor(l[T],h[T],x));return v.alpha=mix(l.alpha,h.alpha,x),o.transform(v)}},isNum=r=>typeof r=="number",combineFunctions=(r,t)=>o=>t(r(o)),pipe=(...r)=>r.reduce(combineFunctions);function getMixer(r,t){return isNum(r)?o=>mix(r,t,o):color$1.test(r)?mixColor(r,t):mixComplex(r,t)}const mixArray=(r,t)=>{const o=[...r],s=o.length,l=r.map((h,v)=>getMixer(h,t[v]));return h=>{for(let v=0;v<s;v++)o[v]=l[v](h);return o}},mixObject=(r,t)=>{const o=Object.assign(Object.assign({},r),t),s={};for(const l in o)r[l]!==void 0&&t[l]!==void 0&&(s[l]=getMixer(r[l],t[l]));return l=>{for(const h in s)o[h]=s[h](l);return o}};function analyse(r){const t=complex.parse(r),o=t.length;let s=0,l=0,h=0;for(let v=0;v<o;v++)s||typeof t[v]=="number"?s++:t[v].hue!==void 0?h++:l++;return{parsed:t,numNumbers:s,numRGB:l,numHSL:h}}const mixComplex=(r,t)=>{const o=complex.createTransformer(t),s=analyse(r),l=analyse(t);return s.numHSL===l.numHSL&&s.numRGB===l.numRGB&&s.numNumbers>=l.numNumbers?pipe(mixArray(s.parsed,l.parsed),o):v=>`${v>0?t:r}`},mixNumber=(r,t)=>o=>mix(r,t,o);function detectMixerFactory(r){if(typeof r=="number")return mixNumber;if(typeof r=="string")return color$1.test(r)?mixColor:mixComplex;if(Array.isArray(r))return mixArray;if(typeof r=="object")return mixObject}function createMixers(r,t,o){const s=[],l=o||detectMixerFactory(r[0]),h=r.length-1;for(let v=0;v<h;v++){let x=l(r[v],r[v+1]);if(t){const T=Array.isArray(t)?t[v]:t;x=pipe(T,x)}s.push(x)}return s}function fastInterpolate([r,t],[o]){return s=>o(progress(r,t,s))}function slowInterpolate(r,t){const o=r.length,s=o-1;return l=>{let h=0,v=!1;if(l<=r[0]?v=!0:l>=r[s]&&(h=s-1,v=!0),!v){let T=1;for(;T<o&&!(r[T]>l||T===s);T++);h=T-1}const x=progress(r[h],r[h+1],l);return t[h](x)}}function interpolate(r,t,{clamp:o=!0,ease:s,mixer:l}={}){const h=r.length;invariant(h===t.length),invariant(!s||!Array.isArray(s)||s.length===h-1),r[0]>r[h-1]&&(r=[].concat(r),t=[].concat(t),r.reverse(),t.reverse());const v=createMixers(t,s,l),x=h===2?fastInterpolate(r,v):slowInterpolate(r,v);return o?T=>x(clamp$2(r[0],r[h-1],T)):x}const reverseEasing=r=>t=>1-r(1-t),mirrorEasing=r=>t=>t<=.5?r(2*t)/2:(2-r(2*(1-t)))/2,createExpoIn=r=>t=>Math.pow(t,r),createBackIn=r=>t=>t*t*((r+1)*t-r),createAnticipate=r=>{const t=createBackIn(r);return o=>(o*=2)<1?.5*t(o):.5*(2-Math.pow(2,-10*(o-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=r=>r,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=r=>1-Math.sin(Math.acos(r)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=r=>{if(r===1||r===0)return r;const t=r*r;return r<BOUNCE_FIRST_THRESHOLD?7.5625*t:r<BOUNCE_SECOND_THRESHOLD?9.075*t-9.9*r+3.4:r<BOUNCE_THIRD_THRESHOLD?ca*t-cb*r+cc:10.8*r*r-20.52*r+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=r=>r<.5?.5*(1-bounceOut(1-r*2)):.5*bounceOut(r*2-1)+.5;function defaultEasing(r,t){return r.map(()=>t||easeInOut).splice(0,r.length-1)}function defaultOffset(r){const t=r.length;return r.map((o,s)=>s!==0?s/(t-1):0)}function convertOffsetToTimes(r,t){return r.map(o=>o*t)}function keyframes$1({from:r=0,to:t=1,ease:o,offset:s,duration:l=300}){const h={done:!1,value:r},v=Array.isArray(t)?t:[r,t],x=convertOffsetToTimes(s&&s.length===v.length?s:defaultOffset(v),l);function T(){return interpolate(x,v,{ease:Array.isArray(o)?o:defaultEasing(v,o)})}let w=T();return{next:C=>(h.value=w(C),h.done=C>=l,h),flipTarget:()=>{v.reverse(),w=T()}}}function decay({velocity:r=0,from:t=0,power:o=.8,timeConstant:s=350,restDelta:l=.5,modifyTarget:h}){const v={done:!1,value:t};let x=o*r;const T=t+x,w=h===void 0?T:h(T);return w!==T&&(x=w-t),{next:C=>{const M=-x*Math.exp(-C/s);return v.done=!(M>l||M<-l),v.value=v.done?w:w+M,v},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(r){if(Array.isArray(r.to))return keyframes$1;if(types[r.type])return types[r.type];const t=new Set(Object.keys(r));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?keyframes$1:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?spring:keyframes$1}function loopElapsed(r,t,o=0){return r-t-o}function reverseElapsed(r,t,o=0,s=!0){return s?loopElapsed(t+-r,t,o):t-(r-t)+o}function hasRepeatDelayElapsed(r,t,o,s){return s?r>=t+o:r<=-o}const framesync=r=>{const t=({delta:o})=>r(o);return{start:()=>sync.update(t,!0),stop:()=>cancelSync.update(t)}};function animate(r){var t,o,{from:s,autoplay:l=!0,driver:h=framesync,elapsed:v=0,repeat:x=0,repeatType:T="loop",repeatDelay:w=0,onPlay:C,onStop:M,onComplete:V,onRepeat:z,onUpdate:F}=r,B=__rest(r,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:W}=B,Y,Z=0,X=B.duration,te,oe=!1,ae=!0,le;const he=detectAnimationFromOptions(B);!((o=(t=he).needsInterpolation)===null||o===void 0)&&o.call(t,s,W)&&(le=interpolate([0,100],[s,W],{clamp:!1}),s=0,W=100);const me=he(Object.assign(Object.assign({},B),{from:s,to:W}));function _e(){Z++,T==="reverse"?(ae=Z%2===0,v=reverseElapsed(v,X,w,ae)):(v=loopElapsed(v,X,w),T==="mirror"&&me.flipTarget()),oe=!1,z&&z()}function ye(){Y.stop(),V&&V()}function Se(we){if(ae||(we=-we),v+=we,!oe){const Ee=me.next(Math.max(0,v));te=Ee.value,le&&(te=le(te)),oe=ae?Ee.done:v<=0}F==null||F(te),oe&&(Z===0&&(X??(X=v)),Z<x?hasRepeatDelayElapsed(v,X,w,ae)&&_e():ye())}function Te(){C==null||C(),Y=h(Se),Y.start()}return l&&Te(),{stop:()=>{M==null||M(),Y.stop()}}}function velocityPerSecond(r,t){return t?r*(1e3/t):0}function inertia({from:r=0,velocity:t=0,min:o,max:s,power:l=.8,timeConstant:h=750,bounceStiffness:v=500,bounceDamping:x=10,restDelta:T=1,modifyTarget:w,driver:C,onUpdate:M,onComplete:V,onStop:z}){let F;function B(X){return o!==void 0&&X<o||s!==void 0&&X>s}function W(X){return o===void 0?s:s===void 0||Math.abs(o-X)<Math.abs(s-X)?o:s}function Y(X){F==null||F.stop(),F=animate(Object.assign(Object.assign({},X),{driver:C,onUpdate:te=>{var oe;M==null||M(te),(oe=X.onUpdate)===null||oe===void 0||oe.call(X,te)},onComplete:V,onStop:z}))}function Z(X){Y(Object.assign({type:"spring",stiffness:v,damping:x,restDelta:T},X))}if(B(r))Z({from:r,velocity:t,to:W(r)});else{let X=l*t+r;typeof w<"u"&&(X=w(X));const te=W(X),oe=te===o?-1:1;let ae,le;const he=me=>{ae=le,le=me,t=velocityPerSecond(me-ae,getFrameData().delta),(oe===1&&me>te||oe===-1&&me<te)&&Z({from:me,to:te,velocity:t})};Y({type:"decay",from:r,velocity:t,timeConstant:h,power:l,restDelta:T,modifyTarget:w,onUpdate:B(X)?he:void 0})}return{stop:()=>F==null?void 0:F.stop()}}const a=(r,t)=>1-3*t+3*r,b=(r,t)=>3*t-6*r,c$2=r=>3*r,calcBezier=(r,t,o)=>((a(t,o)*r+b(t,o))*r+c$2(t))*r,getSlope=(r,t,o)=>3*a(t,o)*r*r+2*b(t,o)*r+c$2(t),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(r,t,o,s,l){let h,v,x=0;do v=t+(o-t)/2,h=calcBezier(v,s,l)-r,h>0?o=v:t=v;while(Math.abs(h)>subdivisionPrecision&&++x<subdivisionMaxIterations);return v}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate(r,t,o,s){for(let l=0;l<newtonIterations;++l){const h=getSlope(t,o,s);if(h===0)return t;const v=calcBezier(t,o,s)-r;t-=v/h}return t}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier(r,t,o,s){if(r===t&&o===s)return linear;const l=new Float32Array(kSplineTableSize);for(let v=0;v<kSplineTableSize;++v)l[v]=calcBezier(v*kSampleStepSize,r,o);function h(v){let x=0,T=1;const w=kSplineTableSize-1;for(;T!==w&&l[T]<=v;++T)x+=kSampleStepSize;--T;const C=(v-l[T])/(l[T+1]-l[T]),M=x+C*kSampleStepSize,V=getSlope(M,r,o);return V>=newtonMinSlope?newtonRaphsonIterate(v,M,r,o):V===0?M:binarySubdivide(v,x,x+kSampleStepSize,r,o)}return v=>v===0||v===1?v:calcBezier(h(v),t,s)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,o,s){if(this.subscriptions.size)for(const l of this.subscriptions)l(t,o,s)}clear(){this.subscriptions.clear()}}const isFloat=r=>!isNaN(parseFloat(r));class MotionValue{constructor(t){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=o=>{this.prev=this.current,this.current=o;const{delta:s,timestamp:l}=getFrameData();this.lastUpdated!==l&&(this.timeDelta=s,this.lastUpdated=l),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:o})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),o!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=t,this.canTrackVelocity=isFloat(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(o=>{const{stop:s}=t(o);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue(r){return new MotionValue(r)}const{isArray:isArray$2}=Array;function useMotionValues(){const r=VueDemi.ref({}),t=s=>{const l=h=>{r.value[h]&&(r.value[h].stop(),r.value[h].destroy(),VueDemi.del(r.value,h))};s?isArray$2(s)?s.forEach(l):l(s):Object.keys(r.value).forEach(l)},o=(s,l,h)=>{if(r.value[s])return r.value[s];const v=getMotionValue(l);return v.onChange(x=>{VueDemi.set(h,s,x)}),VueDemi.set(r.value,s,v),v};return tryOnUnmounted(t),{motionValues:r,get:o,stop:t}}const isKeyframesTarget=r=>Array.isArray(r),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=r=>({type:"spring",stiffness:550,damping:r===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=r=>({type:"keyframes",duration:800,values:r}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=(r,t)=>{let o;return isKeyframesTarget(t)?o=keyframes:o=defaultTransitions[r]||defaultTransitions.default,{to:t,...o(t)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=r=>valueTypes[r],getValueAsType=(r,t)=>t&&typeof r=="number"&&t.transform?t.transform(r):r;function getAnimatableNone(r,t){let o=getValueType(r);return o!==filter$1&&(o=complex),o.getAnimatableNone?o.getAnimatableNone(t):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=r=>{if(Array.isArray(r)){const[t,o,s,l]=r;return cubicBezier(t,o,s,l)}else if(typeof r=="string")return easingLookup[r];return r},isEasingArray=r=>Array.isArray(r)&&typeof r[0]!="number",isAnimatable=(r,t)=>r==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&complex.test(t)&&!t.startsWith("url("));function hydrateKeyframes(r){return Array.isArray(r.to)&&r.to[0]===null&&(r.to=[...r.to],r.to[0]=r.from),r}function convertTransitionToAnimationOptions({ease:r,times:t,delay:o,...s}){const l={...s};return t&&(l.offset=t),r&&(l.ease=isEasingArray(r)?r.map(easingDefinitionToFunction):easingDefinitionToFunction(r)),o&&(l.elapsed=-o),l}function getPopmotionAnimationOptions(r,t,o){return Array.isArray(t.to)&&(r.duration||(r.duration=800)),hydrateKeyframes(t),isTransitionDefined(r)||(r={...r,...getDefaultTransition(o,t.to)}),{...t,...convertTransitionToAnimationOptions(r)}}function isTransitionDefined({delay:r,repeat:t,repeatType:o,repeatDelay:s,from:l,...h}){return!!Object.keys(h).length}function getValueTransition(r,t){return r[t]||r.default||r}function getAnimation(r,t,o,s,l){const h=getValueTransition(s,r);let v=h.from===null||h.from===void 0?t.get():h.from;const x=isAnimatable(r,o);v==="none"&&x&&typeof o=="string"&&(v=getAnimatableNone(r,o));const T=isAnimatable(r,v);function w(M){const V={from:v,to:o,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:z=>t.set(z)};return h.type==="inertia"||h.type==="decay"?inertia({...V,...h}):animate({...getPopmotionAnimationOptions(h,V,r),onUpdate:z=>{V.onUpdate(z),h.onUpdate&&h.onUpdate(z)},onComplete:()=>{s.onComplete&&s.onComplete(),l&&l(),M&&M()}})}function C(M){return t.set(o),s.onComplete&&s.onComplete(),l&&l(),M&&M(),{stop:()=>{}}}return!T||!x||h.type===!1?C:w}function useMotionTransitions(){const{motionValues:r,stop:t,get:o}=useMotionValues();return{motionValues:r,stop:t,push:(l,h,v,x={},T)=>{const w=v[l],C=o(l,w,v);if(x&&x.immediate){C.set(h);return}const M=getAnimation(l,C,h,x,T);C.start(M)}}}function useMotionControls(r,t={},{motionValues:o,push:s,stop:l}=useMotionTransitions()){const h=VueDemi.unref(t),v=VueDemi.ref(!1),x=VueDemi.watch(o,V=>{v.value=Object.values(V).filter(z=>z.isAnimating()).length>0},{immediate:!0,deep:!0}),T=V=>{if(!h||!h[V])throw new Error(`The variant ${V} does not exist.`);return h[V]},w=V=>(typeof V=="string"&&(V=T(V)),Promise.all(Object.entries(V).map(([z,F])=>{if(z!=="transition")return new Promise(B=>{s(z,F,r,V.transition||getDefaultTransition(z,V[z]),B)})}).filter(Boolean)));return{isAnimating:v,apply:w,set:V=>{const z=isObject$4(V)?V:T(V);Object.entries(z).forEach(([F,B])=>{F!=="transition"&&s(F,B,r,{immediate:!0})})},stopTransitions:()=>{x(),l()},leave:async V=>{let z;if(h&&(h.leave&&(z=h.leave),!h.leave&&h.initial&&(z=h.initial)),!z){V();return}await w(z),V()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:r,state:t,variants:o,apply:s}){const l=VueDemi.unref(o),h=[],v=(...F)=>{const B=useEventListener.apply(null,F);return h.push(B),B},x=VueDemi.ref(!1),T=VueDemi.ref(!1),w=VueDemi.ref(!1),C=VueDemi.computed(()=>{let F=[];return l&&(l.hovered&&(F=[...F,...Object.keys(l.hovered)]),l.tapped&&(F=[...F,...Object.keys(l.tapped)]),l.focused&&(F=[...F,...Object.keys(l.focused)])),F}),M=VueDemi.computed(()=>{const F={};Object.assign(F,t.value),x.value&&l.hovered&&Object.assign(F,l.hovered),T.value&&l.tapped&&Object.assign(F,l.tapped),w.value&&l.focused&&Object.assign(F,l.focused);for(const B in F)C.value.includes(B)||delete F[B];return F});l.hovered&&(v(r,"mouseenter",()=>{x.value=!0}),v(r,"mouseleave",()=>{x.value=!1,T.value=!1}),v(r,"mouseout",()=>{x.value=!1,T.value=!1})),l.tapped&&(supportsMouseEvents()&&(v(r,"mousedown",()=>{T.value=!0}),v(r,"mouseup",()=>{T.value=!1})),supportsPointerEvents()&&(v(r,"pointerdown",()=>{T.value=!0}),v(r,"pointerup",()=>{T.value=!1})),supportsTouchEvents()&&(v(r,"touchstart",()=>{T.value=!0}),v(r,"touchend",()=>{T.value=!1}))),l.focused&&(v(r,"focus",()=>{w.value=!0}),v(r,"blur",()=>{w.value=!1}));const V=VueDemi.watch(M,s);return{stop:()=>{h.forEach(F=>F()),V()}}}function registerLifeCycleHooks({set:r,target:t,variants:o,variant:s}){const l=VueDemi.unref(o);return{stop:VueDemi.watch(()=>t,()=>{l&&(l.initial&&r("initial"),l.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:r,apply:t}){return{stop:VueDemi.watch(r,s=>{s&&t(s)},{immediate:!0})}}function registerVisibilityHooks({target:r,variants:t,variant:o}){const s=VueDemi.unref(t);let l=noop$1;if(s&&(s.visible||s.visibleOnce)){const{stop:h}=useIntersectionObserver(r,([{isIntersecting:v}])=>{s.visible?v?o.value="visible":o.value="initial":s.visibleOnce&&(v?o.value!=="visibleOnce"&&(o.value="visibleOnce"):o.value||(o.value="initial"))});l=h}return{stop:l}}function useMotionFeatures(r,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const o=VueDemi.ref([]);if(t.lifeCycleHooks){const{stop:l}=registerLifeCycleHooks(r);o.value.push(l)}if(t.syncVariants){const{stop:l}=registerVariantsSync(r);o.value.push(l)}if(t.visibilityHooks){const{stop:l}=registerVisibilityHooks(r);o.value.push(l)}if(t.eventListeners){const{stop:l}=registerEventListeners(r);o.value.push(l)}const s=()=>o.value.forEach(l=>l());return tryOnUnmounted(s),{stop:s}}function reactiveStyle(r={}){const t=VueDemi.reactive({...r}),o=VueDemi.ref({});return VueDemi.watch(t,()=>{const s={};for(const[l,h]of Object.entries(t)){const v=getValueType(l),x=getValueAsType(h,v);s[l]=x}o.value=s},{immediate:!0,deep:!0}),{state:t,style:o}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach(r=>{transformAxes.forEach(t=>{const o=r+t;transformProps.push(o)})});const transformPropSet=new Set(transformProps);function isTransformProp(r){return transformPropSet.has(r)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(r){return transformOriginProps.has(r)}function splitValues(r){const t={},o={};return Object.entries(r).forEach(([s,l])=>{isTransformProp(s)||isTransformOriginProp(s)?t[s]=l:o[s]=l}),{transform:t,style:o}}function useElementStyle(r,t){let o,s;const{state:l,style:h}=reactiveStyle(),v=VueDemi.watch(()=>unrefElement(r),w=>{if(w){s=w;for(const C of Object.keys(valueTypes))w.style[C]===null||w.style[C]===""||isTransformProp(C)||isTransformOriginProp(C)||VueDemi.set(l,C,w.style[C]);o&&Object.entries(o).forEach(([C,M])=>VueDemi.set(w.style,C,M)),t&&t(l)}},{immediate:!0}),x=VueDemi.watch(h,w=>{if(!s){o=w;return}for(const C in w)VueDemi.set(s.style,C,w[C])},{immediate:!0});return{style:l,stop:()=>{s=void 0,o=void 0,v(),x()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(r={},t=!0){const o=VueDemi.reactive({...r}),s=VueDemi.ref("");return VueDemi.watch(o,l=>{let h="",v=!1;if(t&&(l.x||l.y||l.z)){const x=[l.x||0,l.y||0,l.z||0].map(px.transform).join(",");h+=`translate3d(${x}) `,v=!0}for(const[x,T]of Object.entries(l)){if(t&&(x==="x"||x==="y"||x==="z"))continue;const w=getValueType(x),C=getValueAsType(T,w);h+=`${translateAlias[x]||x}(${C}) `}t&&!v&&(h+="translateZ(0px) "),s.value=h.trim()},{immediate:!0,deep:!0}),{state:o,transform:s}}function parseTransform(r){const t=r.trim().split(/\) |\)/);if(t.length===1)return{};const o=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,l)=>{if(!l)return s;const[h,v]=l.split("("),T=v.split(",").map(C=>o(C.endsWith(")")?C.replace(")",""):C.trim())),w=T.length===1?T[0]:T;return{...s,[h]:w}},{})}function stateFromTransform(r,t){Object.entries(parseTransform(t)).forEach(([o,s])=>{s=parseFloat(s);const l=["x","y","z"];if(o==="translate3d"){if(s===0){l.forEach(h=>{VueDemi.set(r,h,0)});return}s.forEach((h,v)=>{VueDemi.set(r,l[v],h)});return}if(o==="translateX"){VueDemi.set(r,"x",s);return}if(o==="translateY"){VueDemi.set(r,"y",s);return}if(o==="translateZ"){VueDemi.set(r,"z",s);return}VueDemi.set(r,o,s)})}function useElementTransform(r,t){let o,s;const{state:l,transform:h}=reactiveTransform(),v=VueDemi.watch(()=>unrefElement(r),w=>{w&&(s=w,w.style.transform&&stateFromTransform(l,w.style.transform),o&&(w.style.transform=o),t&&t(l))},{immediate:!0}),x=VueDemi.watch(h,w=>{if(!s){o=w;return}s.style.transform=w},{immediate:!0});return{transform:l,stop:()=>{o=void 0,s=void 0,v(),x()}}}function useMotionProperties(r,t){const o=VueDemi.reactive({}),s=M=>{Object.entries(M).forEach(([V,z])=>{VueDemi.set(o,V,z)})},{style:l,stop:h}=useElementStyle(r,s),{transform:v,stop:x}=useElementTransform(r,s),T=VueDemi.watch(o,M=>{Object.entries(M).forEach(([V,z])=>{const F=isTransformProp(V)?v:l;F[V]&&F[V]===z||VueDemi.set(F,V,z)})},{immediate:!0,deep:!0}),w=VueDemi.watch(()=>unrefElement(r),M=>{M&&t&&s(t)},{immediate:!0});return{motionProperties:o,style:l,transform:v,stop:()=>{h(),x(),T(),w()}}}function useMotionVariants(r={}){const t=VueDemi.unref(r),o=VueDemi.ref();return{state:VueDemi.computed(()=>{if(o.value)return t[o.value]}),variant:o}}function useMotion(r,t={},o){const{motionProperties:s,stop:l}=useMotionProperties(r),{variant:h,state:v}=useMotionVariants(t),x=useMotionControls(s,t),T={target:r,variant:h,variants:t,state:v,motionProperties:s,...x,stop:(C=!1)=>{}},{stop:w}=useMotionFeatures(T,o);return T.stop=(C=!1)=>{const M=()=>{T.stopTransitions(),l(),w()};if(!C&&t.value&&t.value.leave){const V=VueDemi.watch(T.isAnimating,z=>{z||(V(),M())})}else M()},tryOnUnmounted(()=>T.stop()),T}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=(r,t)=>{const o=r.props?r.props:r.data&&r.data.attrs?r.data.attrs:{};o&&(o.variants&&isObject$4(o.variants)&&(t.value={...t.value,...o.variants}),directivePropsKeys.forEach(s=>{if(s==="delay"){if(o&&o[s]&&isNumber$1(o[s])){const l=o[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={...t.value.enter.transition,delay:l}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={...t.value.visible.transition,delay:l}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={...t.value.visibleOnce.transition,delay:l}))}return}s==="visible-once"&&(s="visibleOnce"),o&&o[s]&&isObject$4(o[s])&&(t.value[s]=o[s])}))},directive=r=>{const t=(s,l,h)=>{const v=l.value&&typeof l.value=="string"?l.value:h.key;v&&motionState[v]&&motionState[v].stop();const x=VueDemi.ref(r||{});typeof l.value=="object"&&(x.value=l.value),resolveVariants(h,x);const T=useMotion(s,x);s.motionInstance=T,v&&VueDemi.set(motionState,v,T)},o=s=>{s.motionInstance&&s.motionInstance.stop()};return{created:t,unmounted:o,bind:t,unbind:o,getSSRProps(s,l){const{initial:h}=s.value||l.props||{};if(!h||Object.keys(h).length===0)return;const{transform:v,style:x}=splitValues(h),{transform:T}=reactiveTransform(v),{style:w}=reactiveStyle(x);return T.value&&(w.value.transform=T.value),{style:w.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify(r){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",o="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return r.toString().replace(/[A-Z]/g,l=>`-${l}`).toLowerCase().replace(/\s+/g,"-").replace(s,l=>o.charAt(t.indexOf(l))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(r,t){if(r.directive("motion",directive()),!t||t&&!t.excludePresets)for(const o in presets){const s=presets[o];r.directive(`motion-${slugify(o)}`,directive(s))}if(t&&t.directives)for(const o in t.directives){const s=t.directives[o];!s.initial&&__DEV__&&console.warn(`Your directive v-motion-${o} is missing initial variant!`),r.directive(`motion-${o}`,directive(s))}}};/*! *****************************************************************************
|
||
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 extendStatics=function(r,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])},extendStatics(r,t)};function __extends(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(r,t);function o(){this.constructor=r}r.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var Browser=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Env=function(){function r(){this.browser=new Browser,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}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(r,t){var o=t.browser,s=r.match(/Firefox\/([\d.]+)/),l=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),h=r.match(/Edge?\/([\d.]+)/),v=/micromessenger/i.test(r);s&&(o.firefox=!0,o.version=s[1]),l&&(o.ie=!0,o.version=l[1]),h&&(o.edge=!0,o.version=h[1],o.newEdge=+h[1].split(".")[0]>18),v&&(o.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,t.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&+o.version>=11),t.domSupported=typeof document<"u";var x=document.documentElement.style;t.transform3dSupported=(o.ie&&"transition"in x||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in x)&&!("OTransition"in x),t.transformSupported=t.transform3dSupported||o.ie&&+o.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(r){var t={};if(typeof JSON>"u")return t;for(var o=0;o<r.length;o++){var s=String.fromCharCode(o+32),l=(r.charCodeAt(o)-OFFSET)/SCALE;t[s]=l}return t}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(o,s){if(!r){var l=platformApi.createCanvas();r=l&&l.getContext("2d")}if(r)return t!==s&&(t=r.font=s||DEFAULT_FONT),r.measureText(o);o=o||"",s=s||DEFAULT_FONT;var h=/(\d+)px/.exec(s),v=h&&+h[1]||DEFAULT_FONT_SIZE,x=0;if(s.indexOf("mono")>=0)x=v*o.length;else for(var T=0;T<o.length;T++){var w=DEFAULT_TEXT_WIDTH_MAP[o[T]];x+=w==null?v:w*v}return{width:x}}}(),loadImage:function(r,t,o){var s=new Image;return s.onload=t,s.onerror=o,s.src=r,s}};function setPlatformAPI(r){for(var t in platformApi)r[t]&&(platformApi[t]=r[t])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function clone$3(r){if(r==null||typeof r!="object")return r;var t=r,o=objToString.call(r);if(o==="[object Array]"){if(!isPrimitive(r)){t=[];for(var s=0,l=r.length;s<l;s++)t[s]=clone$3(r[s])}}else if(TYPED_ARRAY[o]){if(!isPrimitive(r)){var h=r.constructor;if(h.from)t=h.from(r);else{t=new h(r.length);for(var s=0,l=r.length;s<l;s++)t[s]=r[s]}}}else if(!BUILTIN_OBJECT[o]&&!isPrimitive(r)&&!isDom(r)){t={};for(var v in r)r.hasOwnProperty(v)&&v!==protoKey&&(t[v]=clone$3(r[v]))}return t}function merge(r,t,o){if(!isObject$3(t)||!isObject$3(r))return o?clone$3(t):r;for(var s in t)if(t.hasOwnProperty(s)&&s!==protoKey){var l=r[s],h=t[s];isObject$3(h)&&isObject$3(l)&&!isArray$1(h)&&!isArray$1(l)&&!isDom(h)&&!isDom(l)&&!isBuiltInObject(h)&&!isBuiltInObject(l)&&!isPrimitive(h)&&!isPrimitive(l)?merge(l,h,o):(o||!(s in r))&&(r[s]=clone$3(t[s]))}return r}function mergeAll(r,t){for(var o=r[0],s=1,l=r.length;s<l;s++)o=merge(o,r[s],t);return o}function extend(r,t){if(Object.assign)Object.assign(r,t);else for(var o in t)t.hasOwnProperty(o)&&o!==protoKey&&(r[o]=t[o]);return r}function defaults(r,t,o){for(var s=keys(t),l=0;l<s.length;l++){var h=s[l];(o?t[h]!=null:r[h]==null)&&(r[h]=t[h])}return r}var createCanvas=platformApi.createCanvas;function indexOf(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var o=0,s=r.length;o<s;o++)if(r[o]===t)return o}return-1}function inherits(r,t){var o=r.prototype;function s(){}s.prototype=t.prototype,r.prototype=new s;for(var l in o)o.hasOwnProperty(l)&&(r.prototype[l]=o[l]);r.prototype.constructor=r,r.superClass=t}function mixin(r,t,o){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var s=Object.getOwnPropertyNames(t),l=0;l<s.length;l++){var h=s[l];h!=="constructor"&&(o?t[h]!=null:r[h]==null)&&(r[h]=t[h])}else defaults(r,t,o)}function isArrayLike(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function each$c(r,t,o){if(r&&t)if(r.forEach&&r.forEach===nativeForEach)r.forEach(t,o);else if(r.length===+r.length)for(var s=0,l=r.length;s<l;s++)t.call(o,r[s],s,r);else for(var h in r)r.hasOwnProperty(h)&&t.call(o,r[h],h,r)}function map$2(r,t,o){if(!r)return[];if(!t)return slice(r);if(r.map&&r.map===nativeMap)return r.map(t,o);for(var s=[],l=0,h=r.length;l<h;l++)s.push(t.call(o,r[l],l,r));return s}function reduce(r,t,o,s){if(r&&t){for(var l=0,h=r.length;l<h;l++)o=t.call(s,o,r[l],l,r);return o}}function filter(r,t,o){if(!r)return[];if(!t)return slice(r);if(r.filter&&r.filter===nativeFilter)return r.filter(t,o);for(var s=[],l=0,h=r.length;l<h;l++)t.call(o,r[l],l,r)&&s.push(r[l]);return s}function find(r,t,o){if(r&&t){for(var s=0,l=r.length;s<l;s++)if(t.call(o,r[s],s,r))return r[s]}}function keys(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var o in r)r.hasOwnProperty(o)&&t.push(o);return t}function bindPolyfill(r,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return function(){return r.apply(t,o.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1(r){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return function(){return r.apply(this,t.concat(nativeSlice.call(arguments)))}}function isArray$1(r){return Array.isArray?Array.isArray(r):objToString.call(r)==="[object Array]"}function isFunction(r){return typeof r=="function"}function isString(r){return typeof r=="string"}function isStringSafe(r){return objToString.call(r)==="[object String]"}function isNumber(r){return typeof r=="number"}function isObject$3(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function isBuiltInObject(r){return!!BUILTIN_OBJECT[objToString.call(r)]}function isTypedArray(r){return!!TYPED_ARRAY[objToString.call(r)]}function isDom(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function isGradientObject(r){return r.colorStops!=null}function isImagePatternObject(r){return r.image!=null}function isRegExp(r){return objToString.call(r)==="[object RegExp]"}function eqNaN(r){return r!==r}function retrieve(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var o=0,s=r.length;o<s;o++)if(r[o]!=null)return r[o]}function retrieve2(r,t){return r??t}function retrieve3(r,t,o){return r??t??o}function slice(r){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return nativeSlice.apply(r,t)}function normalizeCssArray$1(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function assert(r,t){if(!r)throw new Error(t)}function trim$1(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive(r){r[primitiveKey]=!0}function isPrimitive(r){return r[primitiveKey]}var MapPolyfill=function(){function r(){this.data={}}return r.prototype.delete=function(t){var o=this.has(t);return o&&delete this.data[t],o},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,o){return this.data[t]=o,this},r.prototype.keys=function(){return keys(this.data)},r.prototype.forEach=function(t){var o=this.data;for(var s in o)o.hasOwnProperty(s)&&t(o[s],s)},r}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function r(t){var o=isArray$1(t);this.data=maybeNativeMap();var s=this;t instanceof r?t.each(l):t&&each$c(t,l);function l(h,v){o?s.set(h,v):s.set(v,h)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,o){return this.data.set(t,o),o},r.prototype.each=function(t,o){this.data.forEach(function(s,l){t.call(o,s,l)})},r.prototype.keys=function(){var t=this.data.keys();return isNativeMapSupported?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function createHashMap(r){return new HashMap(r)}function concatArray(r,t){for(var o=new r.constructor(r.length+t.length),s=0;s<r.length;s++)o[s]=r[s];for(var l=r.length,s=0;s<t.length;s++)o[s+l]=t[s];return o}function createObject(r,t){var o;if(Object.create)o=Object.create(r);else{var s=function(){};s.prototype=r,o=new s}return t&&extend(o,t),o}function disableUserSelect(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function hasOwn(r,t){return r.hasOwnProperty(t)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function copy$1(r,t){return r[0]=t[0],r[1]=t[1],r}function clone$2(r){return[r[0],r[1]]}function set$1(r,t,o){return r[0]=t,r[1]=o,r}function add(r,t,o){return r[0]=t[0]+o[0],r[1]=t[1]+o[1],r}function scaleAndAdd(r,t,o,s){return r[0]=t[0]+o[0]*s,r[1]=t[1]+o[1]*s,r}function sub(r,t,o){return r[0]=t[0]-o[0],r[1]=t[1]-o[1],r}function len(r){return Math.sqrt(lenSquare(r))}var length=len;function lenSquare(r){return r[0]*r[0]+r[1]*r[1]}var lengthSquare=lenSquare;function mul$1(r,t,o){return r[0]=t[0]*o[0],r[1]=t[1]*o[1],r}function div(r,t,o){return r[0]=t[0]/o[0],r[1]=t[1]/o[1],r}function dot(r,t){return r[0]*t[0]+r[1]*t[1]}function scale$2(r,t,o){return r[0]=t[0]*o,r[1]=t[1]*o,r}function normalize$1(r,t){var o=len(t);return o===0?(r[0]=0,r[1]=0):(r[0]=t[0]/o,r[1]=t[1]/o),r}function distance(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var dist$1=distance;function distanceSquare(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var distSquare=distanceSquare;function negate(r,t){return r[0]=-t[0],r[1]=-t[1],r}function lerp$1(r,t,o,s){return r[0]=t[0]+s*(o[0]-t[0]),r[1]=t[1]+s*(o[1]-t[1]),r}function applyTransform$1(r,t,o){var s=t[0],l=t[1];return r[0]=o[0]*s+o[2]*l+o[4],r[1]=o[1]*s+o[3]*l+o[5],r}function min$1(r,t,o){return r[0]=Math.min(t[0],o[0]),r[1]=Math.min(t[1],o[1]),r}function max$1(r,t,o){return r[0]=Math.max(t[0],o[0]),r[1]=Math.max(t[1],o[1]),r}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function r(t,o){this.target=t,this.topTarget=o&&o.topTarget}return r}(),Draggable=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var o=t.target;o&&!o.draggable;)o=o.parent||o.__hostTarget;o&&(this._draggingTarget=o,o.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Param(o,t),"dragstart",t.event))},r.prototype._drag=function(t){var o=this._draggingTarget;if(o){var s=t.offsetX,l=t.offsetY,h=s-this._x,v=l-this._y;this._x=s,this._y=l,o.drift(h,v,t),this.handler.dispatchToElement(new Param(o,t),"drag",t.event);var x=this.handler.findHover(s,l,o).target,T=this._dropTarget;this._dropTarget=x,o!==x&&(T&&x!==T&&this.handler.dispatchToElement(new Param(T,t),"dragleave",t.event),x&&x!==T&&this.handler.dispatchToElement(new Param(x,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var o=this._draggingTarget;o&&(o.dragging=!1),this.handler.dispatchToElement(new Param(o,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const Draggable$1=Draggable;var Eventful=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,o,s,l){this._$handlers||(this._$handlers={});var h=this._$handlers;if(typeof o=="function"&&(l=s,s=o,o=null),!s||!t)return this;var v=this._$eventProcessor;o!=null&&v&&v.normalizeQuery&&(o=v.normalizeQuery(o)),h[t]||(h[t]=[]);for(var x=0;x<h[t].length;x++)if(h[t][x].h===s)return this;var T={h:s,query:o,ctx:l||this,callAtLast:s.zrEventfulCallAtLast},w=h[t].length-1,C=h[t][w];return C&&C.callAtLast?h[t].splice(w,0,T):h[t].push(T),this},r.prototype.isSilent=function(t){var o=this._$handlers;return!o||!o[t]||!o[t].length},r.prototype.off=function(t,o){var s=this._$handlers;if(!s)return this;if(!t)return this._$handlers={},this;if(o){if(s[t]){for(var l=[],h=0,v=s[t].length;h<v;h++)s[t][h].h!==o&&l.push(s[t][h]);s[t]=l}s[t]&&s[t].length===0&&delete s[t]}else delete s[t];return this},r.prototype.trigger=function(t){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],h=this._$eventProcessor;if(l)for(var v=o.length,x=l.length,T=0;T<x;T++){var w=l[T];if(!(h&&h.filter&&w.query!=null&&!h.filter(t,w.query)))switch(v){case 0:w.h.call(w.ctx);break;case 1:w.h.call(w.ctx,o[0]);break;case 2:w.h.call(w.ctx,o[0],o[1]);break;default:w.h.apply(w.ctx,o);break}}return h&&h.afterTrigger&&h.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],h=this._$eventProcessor;if(l)for(var v=o.length,x=o[v-1],T=l.length,w=0;w<T;w++){var C=l[w];if(!(h&&h.filter&&C.query!=null&&!h.filter(t,C.query)))switch(v){case 0:C.h.call(x);break;case 1:C.h.call(x,o[0]);break;case 2:C.h.call(x,o[0],o[1]);break;default:C.h.apply(x,o.slice(1,v-1));break}}return h&&h.afterTrigger&&h.afterTrigger(t),this},r}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant(r,t,o,s,l,h){var v=s+"-"+l,x=r.length;if(h.hasOwnProperty(v))return h[v];if(t===1){var T=Math.round(Math.log((1<<x)-1&~l)/LN2);return r[o][T]}for(var w=s|1<<o,C=o+1;s&1<<C;)C++;for(var M=0,V=0,z=0;V<x;V++){var F=1<<V;F&l||(M+=(z%2?-1:1)*r[o][V]*determinant(r,t-1,C,w,l|F,h),z++)}return h[v]=M,M}function buildTransformer(r,t){var o=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],s={},l=determinant(o,8,0,0,0,s);if(l!==0){for(var h=[],v=0;v<8;v++)for(var x=0;x<8;x++)h[x]==null&&(h[x]=0),h[x]+=((v+x)%2?-1:1)*determinant(o,7,v===0?1:0,1<<v,1<<x,s)/l*t[v];return function(T,w,C){var M=w*h[6]+C*h[7]+1;T[0]=(w*h[0]+C*h[1]+h[2])/M,T[1]=(w*h[3]+C*h[4]+h[5])/M}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(r,t,o,s,l){return transformCoordWithViewport(_calcOut$1,t,s,l,!0)&&transformCoordWithViewport(r,o,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(r,t,o,s,l){if(t.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(t)){var h=t[EVENT_SAVED_PROP]||(t[EVENT_SAVED_PROP]={}),v=prepareCoordMarkers(t,h),x=preparePointerTransformer(v,h,l);if(x)return x(r,o,s),!0}return!1}function prepareCoordMarkers(r,t){var o=t.markers;if(o)return o;o=t.markers=[];for(var s=["left","right"],l=["top","bottom"],h=0;h<4;h++){var v=document.createElement("div"),x=v.style,T=h%2,w=(h>>1)%2;x.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[T]+":0",l[w]+":0",s[1-T]+":auto",l[1-w]+":auto",""].join("!important;"),r.appendChild(v),o.push(v)}return o}function preparePointerTransformer(r,t,o){for(var s=o?"invTrans":"trans",l=t[s],h=t.srcCoords,v=[],x=[],T=!0,w=0;w<4;w++){var C=r[w].getBoundingClientRect(),M=2*w,V=C.left,z=C.top;v.push(V,z),T=T&&h&&V===h[M]&&z===h[M+1],x.push(r[w].offsetLeft,r[w].offsetTop)}return T&&l?l:(t.srcCoords=v,t[s]=o?buildTransformer(x,v):buildTransformer(v,x))}function isCanvasEl(r){return r.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(r){return r==null?"":(r+"").replace(replaceReg,function(t,o){return replaceMap[o]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(r,t,o,s){return o=o||{},s?calculateZrXY(r,t,o):firefoxNotSupportOffsetXY&&t.layerX!=null&&t.layerX!==t.offsetX?(o.zrX=t.layerX,o.zrY=t.layerY):t.offsetX!=null?(o.zrX=t.offsetX,o.zrY=t.offsetY):calculateZrXY(r,t,o),o}function calculateZrXY(r,t,o){if(env$1.domSupported&&r.getBoundingClientRect){var s=t.clientX,l=t.clientY;if(isCanvasEl(r)){var h=r.getBoundingClientRect();o.zrX=s-h.left,o.zrY=l-h.top;return}else if(transformCoordWithViewport(_calcOut,r,s,l)){o.zrX=_calcOut[0],o.zrY=_calcOut[1];return}}o.zrX=o.zrY=0}function getNativeEvent(r){return r||window.event}function normalizeEvent(r,t,o){if(t=getNativeEvent(t),t.zrX!=null)return t;var s=t.type,l=s&&s.indexOf("touch")>=0;if(l){var v=s!=="touchend"?t.targetTouches[0]:t.changedTouches[0];v&&clientToLocal(r,v,t,o)}else{clientToLocal(r,t,t,o);var h=getWheelDeltaMayPolyfill(t);t.zrDelta=h?h/120:-(t.detail||0)/3}var x=t.button;return t.which==null&&x!==void 0&&MOUSE_EVENT_REG.test(t.type)&&(t.which=x&1?1:x&2?3:x&4?2:0),t}function getWheelDeltaMayPolyfill(r){var t=r.wheelDelta;if(t)return t;var o=r.deltaX,s=r.deltaY;if(o==null||s==null)return t;var l=Math.abs(s!==0?s:o),h=s>0?-1:s<0?1:o>0?-1:1;return 3*l*h}function addEventListener(r,t,o,s){r.addEventListener(t,o,s)}function removeEventListener(r,t,o,s){r.removeEventListener(t,o,s)}var stop=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(r){return r.which===2||r.which===3}var GestureMgr=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,o,s){return this._doTrack(t,o,s),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,o,s){var l=t.touches;if(l){for(var h={points:[],touches:[],target:o,event:t},v=0,x=l.length;v<x;v++){var T=l[v],w=clientToLocal(s,T,{});h.points.push([w.zrX,w.zrY]),h.touches.push(T)}this._track.push(h)}},r.prototype._recognize=function(t){for(var o in recognizers)if(recognizers.hasOwnProperty(o)){var s=recognizers[o](this._track,t);if(s)return s}},r}();function dist(r){var t=r[1][0]-r[0][0],o=r[1][1]-r[0][1];return Math.sqrt(t*t+o*o)}function center(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var recognizers={pinch:function(r,t){var o=r.length;if(o){var s=(r[o-1]||{}).points,l=(r[o-2]||{}).points||s;if(l&&l.length>1&&s&&s.length>1){var h=dist(s)/dist(l);!isFinite(h)&&(h=1),t.pinchScale=h;var v=center(s);return t.pinchX=v[0],t.pinchY=v[1],{type:"pinch",target:r[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function copy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function mul(r,t,o){var s=t[0]*o[0]+t[2]*o[1],l=t[1]*o[0]+t[3]*o[1],h=t[0]*o[2]+t[2]*o[3],v=t[1]*o[2]+t[3]*o[3],x=t[0]*o[4]+t[2]*o[5]+t[4],T=t[1]*o[4]+t[3]*o[5]+t[5];return r[0]=s,r[1]=l,r[2]=h,r[3]=v,r[4]=x,r[5]=T,r}function translate(r,t,o){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+o[0],r[5]=t[5]+o[1],r}function rotate(r,t,o){var s=t[0],l=t[2],h=t[4],v=t[1],x=t[3],T=t[5],w=Math.sin(o),C=Math.cos(o);return r[0]=s*C+v*w,r[1]=-s*w+v*C,r[2]=l*C+x*w,r[3]=-l*w+C*x,r[4]=C*h+w*T,r[5]=C*T-w*h,r}function scale$1(r,t,o){var s=o[0],l=o[1];return r[0]=t[0]*s,r[1]=t[1]*l,r[2]=t[2]*s,r[3]=t[3]*l,r[4]=t[4]*s,r[5]=t[5]*l,r}function invert(r,t){var o=t[0],s=t[2],l=t[4],h=t[1],v=t[3],x=t[5],T=o*v-h*s;return T?(T=1/T,r[0]=v*T,r[1]=-h*T,r[2]=-s*T,r[3]=o*T,r[4]=(s*x-v*l)*T,r[5]=(h*l-o*x)*T,r):null}function clone$1(r){var t=create();return copy(t,r),t}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function r(t,o){this.x=t||0,this.y=o||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,o){return this.x=t,this.y=o,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,o){this.x+=t.x*o,this.y+=t.y*o},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var o=this.x-t.x,s=this.y-t.y;return Math.sqrt(o*o+s*s)},r.prototype.distanceSquare=function(t){var o=this.x-t.x,s=this.y-t.y;return o*o+s*s},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var o=this.x,s=this.y;return this.x=t[0]*o+t[2]*s+t[4],this.y=t[1]*o+t[3]*s+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,o,s){t.x=o,t.y=s},r.copy=function(t,o){t.x=o.x,t.y=o.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,o){return t.x*o.x+t.y*o.y},r.add=function(t,o,s){t.x=o.x+s.x,t.y=o.y+s.y},r.sub=function(t,o,s){t.x=o.x-s.x,t.y=o.y-s.y},r.scale=function(t,o,s){t.x=o.x*s,t.y=o.y*s},r.scaleAndAdd=function(t,o,s,l){t.x=o.x+s.x*l,t.y=o.y+s.y*l},r.lerp=function(t,o,s,l){var h=1-l;t.x=h*o.x+l*s.x,t.y=h*o.y+l*s.y},r}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function r(t,o,s,l){s<0&&(t=t+s,s=-s),l<0&&(o=o+l,l=-l),this.x=t,this.y=o,this.width=s,this.height=l}return r.prototype.union=function(t){var o=mathMin$8(t.x,this.x),s=mathMin$8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(t.x+t.width,this.x+this.width)-o:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(t.y+t.height,this.y+this.height)-s:this.height=t.height,this.x=o,this.y=s},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var o=this,s=t.width/o.width,l=t.height/o.height,h=create();return translate(h,h,[-o.x,-o.y]),scale$1(h,h,[s,l]),translate(h,h,[t.x,t.y]),h},r.prototype.intersect=function(t,o){if(!t)return!1;t instanceof r||(t=r.create(t));var s=this,l=s.x,h=s.x+s.width,v=s.y,x=s.y+s.height,T=t.x,w=t.x+t.width,C=t.y,M=t.y+t.height,V=!(h<T||w<l||x<C||M<v);if(o){var z=1/0,F=0,B=Math.abs(h-T),W=Math.abs(w-l),Y=Math.abs(x-C),Z=Math.abs(M-v),X=Math.min(B,W),te=Math.min(Y,Z);h<T||w<l?X>F&&(F=X,B<W?Point$1.set(maxTv$1,-B,0):Point$1.set(maxTv$1,W,0)):X<z&&(z=X,B<W?Point$1.set(minTv$1,B,0):Point$1.set(minTv$1,-W,0)),x<C||M<v?te>F&&(F=te,Y<Z?Point$1.set(maxTv$1,0,-Y):Point$1.set(maxTv$1,0,Z)):X<z&&(z=X,Y<Z?Point$1.set(minTv$1,0,Y):Point$1.set(minTv$1,0,-Z))}return o&&Point$1.copy(o,V?minTv$1:maxTv$1),V},r.prototype.contain=function(t,o){var s=this;return t>=s.x&&t<=s.x+s.width&&o>=s.y&&o<=s.y+s.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,o){t.x=o.x,t.y=o.y,t.width=o.width,t.height=o.height},r.applyTransform=function(t,o,s){if(!s){t!==o&&r.copy(t,o);return}if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var l=s[0],h=s[3],v=s[4],x=s[5];t.x=o.x*l+v,t.y=o.y*h+x,t.width=o.width*l,t.height=o.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lt.x=lb.x=o.x,lt.y=rt.y=o.y,rb.x=rt.x=o.x+o.width,rb.y=lb.y=o.y+o.height,lt.transform(s),rt.transform(s),rb.transform(s),lb.transform(s),t.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),t.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var T=mathMax$8(lt.x,rb.x,lb.x,rt.x),w=mathMax$8(lt.y,rb.y,lb.y,rt.y);t.width=T-t.x,t.height=w-t.y},r}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(r,t,o){return{type:r,event:o,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:o.zrX,offsetY:o.zrY,gestureEvent:o.gestureEvent,pinchX:o.pinchX,pinchY:o.pinchY,pinchScale:o.pinchScale,wheelDelta:o.zrDelta,zrByTouch:o.zrByTouch,which:o.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.handler=null,o}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Eventful$1),HoveredResult=function(){function r(t,o){this.x=t,this.y=o}return r}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(r){__extends(t,r);function t(o,s,l,h,v){var x=r.call(this)||this;return x._hovered=new HoveredResult(0,0),x.storage=o,x.painter=s,x.painterRoot=h,x._pointerSize=v,l=l||new EmptyProxy,x.proxy=null,x.setHandlerProxy(l),x._draggingMgr=new Draggable$1(x),x}return t.prototype.setHandlerProxy=function(o){this.proxy&&this.proxy.dispose(),o&&(each$c(handlerNames,function(s){o.on&&o.on(s,this[s],this)},this),o.handler=this),this.proxy=o},t.prototype.mousemove=function(o){var s=o.zrX,l=o.zrY,h=isOutsideBoundary(this,s,l),v=this._hovered,x=v.target;x&&!x.__zr&&(v=this.findHover(v.x,v.y),x=v.target);var T=this._hovered=h?new HoveredResult(s,l):this.findHover(s,l),w=T.target,C=this.proxy;C.setCursor&&C.setCursor(w?w.cursor:"default"),x&&w!==x&&this.dispatchToElement(v,"mouseout",o),this.dispatchToElement(T,"mousemove",o),w&&w!==x&&this.dispatchToElement(T,"mouseover",o)},t.prototype.mouseout=function(o){var s=o.zrEventControl;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",o),s!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:o})},t.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},t.prototype.dispatch=function(o,s){var l=this[o];l&&l.call(this,s)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(o){var s=this.proxy;s.setCursor&&s.setCursor(o)},t.prototype.dispatchToElement=function(o,s,l){o=o||{};var h=o.target;if(!(h&&h.silent)){for(var v="on"+s,x=makeEventPacket(s,o,l);h&&(h[v]&&(x.cancelBubble=!!h[v].call(h,x)),h.trigger(s,x),h=h.__hostTarget?h.__hostTarget:h.parent,!x.cancelBubble););x.cancelBubble||(this.trigger(s,x),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(T){typeof T[v]=="function"&&T[v].call(T,x),T.trigger&&T.trigger(s,x)}))}},t.prototype.findHover=function(o,s,l){var h=this.storage.getDisplayList(),v=new HoveredResult(o,s);if(setHoverTarget(h,v,o,s,l),this._pointerSize&&!v.target){for(var x=[],T=this._pointerSize,w=T/2,C=new BoundingRect$1(o-w,s-w,T,T),M=h.length-1;M>=0;M--){var V=h[M];V!==l&&!V.ignore&&!V.ignoreCoarsePointer&&(!V.parent||!V.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(V.getBoundingRect()),V.transform&&tmpRect$1.applyTransform(V.transform),tmpRect$1.intersect(C)&&x.push(V))}if(x.length)for(var z=4,F=Math.PI/12,B=Math.PI*2,W=0;W<w;W+=z)for(var Y=0;Y<B;Y+=F){var Z=o+W*Math.cos(Y),X=s+W*Math.sin(Y);if(setHoverTarget(x,v,Z,X,l),v.target)return v}}return v},t.prototype.processGesture=function(o,s){this._gestureMgr||(this._gestureMgr=new GestureMgr);var l=this._gestureMgr;s==="start"&&l.clear();var h=l.recognize(o,this.findHover(o.zrX,o.zrY,null).target,this.proxy.dom);if(s==="end"&&l.clear(),h){var v=h.type;o.gestureEvent=v;var x=new HoveredResult;x.target=h.target,this.dispatchToElement(x,v,h.event)}},t}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Handler.prototype[r]=function(t){var o=t.zrX,s=t.zrY,l=isOutsideBoundary(this,o,s),h,v;if((r!=="mouseup"||!l)&&(h=this.findHover(o,s),v=h.target),r==="mousedown")this._downEl=v,this._downPoint=[t.zrX,t.zrY],this._upEl=v;else if(r==="mouseup")this._upEl=v;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,r,t)}});function isHover(r,t,o){if(r[r.rectHover?"rectContain":"contain"](t,o)){for(var s=r,l=void 0,h=!1;s;){if(s.ignoreClip&&(h=!0),!h){var v=s.getClipPath();if(v&&!v.contain(t,o))return!1;s.silent&&(l=!0)}var x=s.__hostTarget;s=x||s.parent}return l?SILENT:!0}return!1}function setHoverTarget(r,t,o,s,l){for(var h=r.length-1;h>=0;h--){var v=r[h],x=void 0;if(v!==l&&!v.ignore&&(x=isHover(v,o,s))&&(!t.topTarget&&(t.topTarget=v),x!==SILENT)){t.target=v;break}}}function isOutsideBoundary(r,t,o){var s=r.painter;return t<0||t>s.getWidth()||o<0||o>s.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(r){for(var t=0;r>=DEFAULT_MIN_MERGE;)t|=r&1,r>>=1;return r+t}function makeAscendingRun(r,t,o,s){var l=t+1;if(l===o)return 1;if(s(r[l++],r[t])<0){for(;l<o&&s(r[l],r[l-1])<0;)l++;reverseRun(r,t,l)}else for(;l<o&&s(r[l],r[l-1])>=0;)l++;return l-t}function reverseRun(r,t,o){for(o--;t<o;){var s=r[t];r[t++]=r[o],r[o--]=s}}function binaryInsertionSort(r,t,o,s,l){for(s===t&&s++;s<o;s++){for(var h=r[s],v=t,x=s,T;v<x;)T=v+x>>>1,l(h,r[T])<0?x=T:v=T+1;var w=s-v;switch(w){case 3:r[v+3]=r[v+2];case 2:r[v+2]=r[v+1];case 1:r[v+1]=r[v];break;default:for(;w>0;)r[v+w]=r[v+w-1],w--}r[v]=h}}function gallopLeft(r,t,o,s,l,h){var v=0,x=0,T=1;if(h(r,t[o+l])>0){for(x=s-l;T<x&&h(r,t[o+l+T])>0;)v=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x),v+=l,T+=l}else{for(x=l+1;T<x&&h(r,t[o+l-T])<=0;)v=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x);var w=v;v=l-T,T=l-w}for(v++;v<T;){var C=v+(T-v>>>1);h(r,t[o+C])>0?v=C+1:T=C}return T}function gallopRight(r,t,o,s,l,h){var v=0,x=0,T=1;if(h(r,t[o+l])<0){for(x=l+1;T<x&&h(r,t[o+l-T])<0;)v=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x);var w=v;v=l-T,T=l-w}else{for(x=s-l;T<x&&h(r,t[o+l+T])>=0;)v=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x),v+=l,T+=l}for(v++;v<T;){var C=v+(T-v>>>1);h(r,t[o+C])<0?T=C:v=C+1}return T}function TimSort(r,t){var o=DEFAULT_MIN_GALLOPING,s,l,h=0;r.length;var v=[];s=[],l=[];function x(z,F){s[h]=z,l[h]=F,h+=1}function T(){for(;h>1;){var z=h-2;if(z>=1&&l[z-1]<=l[z]+l[z+1]||z>=2&&l[z-2]<=l[z]+l[z-1])l[z-1]<l[z+1]&&z--;else if(l[z]>l[z+1])break;C(z)}}function w(){for(;h>1;){var z=h-2;z>0&&l[z-1]<l[z+1]&&z--,C(z)}}function C(z){var F=s[z],B=l[z],W=s[z+1],Y=l[z+1];l[z]=B+Y,z===h-3&&(s[z+1]=s[z+2],l[z+1]=l[z+2]),h--;var Z=gallopRight(r[W],r,F,B,0,t);F+=Z,B-=Z,B!==0&&(Y=gallopLeft(r[F+B-1],r,W,Y,Y-1,t),Y!==0&&(B<=Y?M(F,B,W,Y):V(F,B,W,Y)))}function M(z,F,B,W){var Y=0;for(Y=0;Y<F;Y++)v[Y]=r[z+Y];var Z=0,X=B,te=z;if(r[te++]=r[X++],--W===0){for(Y=0;Y<F;Y++)r[te+Y]=v[Z+Y];return}if(F===1){for(Y=0;Y<W;Y++)r[te+Y]=r[X+Y];r[te+W]=v[Z];return}for(var oe=o,ae,le,he;;){ae=0,le=0,he=!1;do if(t(r[X],v[Z])<0){if(r[te++]=r[X++],le++,ae=0,--W===0){he=!0;break}}else if(r[te++]=v[Z++],ae++,le=0,--F===1){he=!0;break}while((ae|le)<oe);if(he)break;do{if(ae=gallopRight(r[X],v,Z,F,0,t),ae!==0){for(Y=0;Y<ae;Y++)r[te+Y]=v[Z+Y];if(te+=ae,Z+=ae,F-=ae,F<=1){he=!0;break}}if(r[te++]=r[X++],--W===0){he=!0;break}if(le=gallopLeft(v[Z],r,X,W,0,t),le!==0){for(Y=0;Y<le;Y++)r[te+Y]=r[X+Y];if(te+=le,X+=le,W-=le,W===0){he=!0;break}}if(r[te++]=v[Z++],--F===1){he=!0;break}oe--}while(ae>=DEFAULT_MIN_GALLOPING||le>=DEFAULT_MIN_GALLOPING);if(he)break;oe<0&&(oe=0),oe+=2}if(o=oe,o<1&&(o=1),F===1){for(Y=0;Y<W;Y++)r[te+Y]=r[X+Y];r[te+W]=v[Z]}else{if(F===0)throw new Error;for(Y=0;Y<F;Y++)r[te+Y]=v[Z+Y]}}function V(z,F,B,W){var Y=0;for(Y=0;Y<W;Y++)v[Y]=r[B+Y];var Z=z+F-1,X=W-1,te=B+W-1,oe=0,ae=0;if(r[te--]=r[Z--],--F===0){for(oe=te-(W-1),Y=0;Y<W;Y++)r[oe+Y]=v[Y];return}if(W===1){for(te-=F,Z-=F,ae=te+1,oe=Z+1,Y=F-1;Y>=0;Y--)r[ae+Y]=r[oe+Y];r[te]=v[X];return}for(var le=o;;){var he=0,me=0,_e=!1;do if(t(v[X],r[Z])<0){if(r[te--]=r[Z--],he++,me=0,--F===0){_e=!0;break}}else if(r[te--]=v[X--],me++,he=0,--W===1){_e=!0;break}while((he|me)<le);if(_e)break;do{if(he=F-gallopRight(v[X],r,z,F,F-1,t),he!==0){for(te-=he,Z-=he,F-=he,ae=te+1,oe=Z+1,Y=he-1;Y>=0;Y--)r[ae+Y]=r[oe+Y];if(F===0){_e=!0;break}}if(r[te--]=v[X--],--W===1){_e=!0;break}if(me=W-gallopLeft(r[Z],v,0,W,W-1,t),me!==0){for(te-=me,X-=me,W-=me,ae=te+1,oe=X+1,Y=0;Y<me;Y++)r[ae+Y]=v[oe+Y];if(W<=1){_e=!0;break}}if(r[te--]=r[Z--],--F===0){_e=!0;break}le--}while(he>=DEFAULT_MIN_GALLOPING||me>=DEFAULT_MIN_GALLOPING);if(_e)break;le<0&&(le=0),le+=2}if(o=le,o<1&&(o=1),W===1){for(te-=F,Z-=F,ae=te+1,oe=Z+1,Y=F-1;Y>=0;Y--)r[ae+Y]=r[oe+Y];r[te]=v[X]}else{if(W===0)throw new Error;for(oe=te-(W-1),Y=0;Y<W;Y++)r[oe+Y]=v[Y]}}return{mergeRuns:T,forceMergeRuns:w,pushRun:x}}function sort(r,t,o,s){o||(o=0),s||(s=r.length);var l=s-o;if(!(l<2)){var h=0;if(l<DEFAULT_MIN_MERGE){h=makeAscendingRun(r,o,s,t),binaryInsertionSort(r,o,s,o+h,t);return}var v=TimSort(r,t),x=minRunLength(l);do{if(h=makeAscendingRun(r,o,s,t),h<x){var T=l;T>x&&(T=x),binaryInsertionSort(r,o,o+T,o+h,t),h=T}v.pushRun(o,h),v.mergeRuns(),l-=h,o+=h}while(l!==0);v.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Storage=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return r.prototype.traverse=function(t,o){for(var s=0;s<this._roots.length;s++)this._roots[s].traverse(t,o)},r.prototype.getDisplayList=function(t,o){o=o||!1;var s=this._displayList;return(t||!s.length)&&this.updateDisplayList(o),s},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var o=this._roots,s=this._displayList,l=0,h=o.length;l<h;l++)this._updateAndAddDisplayable(o[l],null,t);s.length=this._displayListLen,sort(s,shapeCompareFunc)},r.prototype._updateAndAddDisplayable=function(t,o,s){if(!(t.ignore&&!s)){t.beforeUpdate(),t.update(),t.afterUpdate();var l=t.getClipPath();if(t.ignoreClip)o=null;else if(l){o?o=o.slice():o=[];for(var h=l,v=t;h;)h.parent=v,h.updateTransform(),o.push(h),v=h,h=h.getClipPath()}if(t.childrenRef){for(var x=t.childrenRef(),T=0;T<x.length;T++){var w=x[T];t.__dirty&&(w.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(w,o,s)}t.__dirty=0}else{var C=t;o&&o.length?C.__clipPaths=o:C.__clipPaths&&C.__clipPaths.length>0&&(C.__clipPaths=[]),isNaN(C.z)&&(logInvalidZError(),C.z=0),isNaN(C.z2)&&(logInvalidZError(),C.z2=0),isNaN(C.zlevel)&&(logInvalidZError(),C.zlevel=0),this._displayList[this._displayListLen++]=C}var M=t.getDecalElement&&t.getDecalElement();M&&this._updateAndAddDisplayable(M,o,s);var V=t.getTextGuideLine();V&&this._updateAndAddDisplayable(V,o,s);var z=t.getTextContent();z&&this._updateAndAddDisplayable(z,o,s)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var o=0,s=t.length;o<s;o++)this.delRoot(t[o]);return}var l=indexOf(this._roots,t);l>=0&&this._roots.splice(l,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 Storage$1=Storage;var requestAnimationFrame;requestAnimationFrame=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const requestAnimationFrame$1=requestAnimationFrame;var easingFuncs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),-(o*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)))},elasticOut:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),o*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/s)+1)},elasticInOut:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),(r*=2)<1?-.5*(o*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)):o*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-easingFuncs.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?easingFuncs.bounceIn(r*2)*.5:easingFuncs.bounceOut(r*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(r){return r>-EPSILON$3&&r<EPSILON$3}function isNotAroundZero$1(r){return r>EPSILON$3||r<-EPSILON$3}function cubicAt(r,t,o,s,l){var h=1-l;return h*h*(h*r+3*l*t)+l*l*(l*s+3*h*o)}function cubicDerivativeAt(r,t,o,s,l){var h=1-l;return 3*(((t-r)*h+2*(o-t)*l)*h+(s-o)*l*l)}function cubicRootAt(r,t,o,s,l,h){var v=s+3*(t-o)-r,x=3*(o-t*2+r),T=3*(t-r),w=r-l,C=x*x-3*v*T,M=x*T-9*v*w,V=T*T-3*x*w,z=0;if(isAroundZero(C)&&isAroundZero(M))if(isAroundZero(x))h[0]=0;else{var F=-T/x;F>=0&&F<=1&&(h[z++]=F)}else{var B=M*M-4*C*V;if(isAroundZero(B)){var W=M/C,F=-x/v+W,Y=-W/2;F>=0&&F<=1&&(h[z++]=F),Y>=0&&Y<=1&&(h[z++]=Y)}else if(B>0){var Z=mathSqrt$3(B),X=C*x+1.5*v*(-M+Z),te=C*x+1.5*v*(-M-Z);X<0?X=-mathPow$2(-X,ONE_THIRD):X=mathPow$2(X,ONE_THIRD),te<0?te=-mathPow$2(-te,ONE_THIRD):te=mathPow$2(te,ONE_THIRD);var F=(-x-(X+te))/(3*v);F>=0&&F<=1&&(h[z++]=F)}else{var oe=(2*C*x-3*v*M)/(2*mathSqrt$3(C*C*C)),ae=Math.acos(oe)/3,le=mathSqrt$3(C),he=Math.cos(ae),F=(-x-2*le*he)/(3*v),Y=(-x+le*(he+THREE_SQRT*Math.sin(ae)))/(3*v),me=(-x+le*(he-THREE_SQRT*Math.sin(ae)))/(3*v);F>=0&&F<=1&&(h[z++]=F),Y>=0&&Y<=1&&(h[z++]=Y),me>=0&&me<=1&&(h[z++]=me)}}return z}function cubicExtrema(r,t,o,s,l){var h=6*o-12*t+6*r,v=9*t+3*s-3*r-9*o,x=3*t-3*r,T=0;if(isAroundZero(v)){if(isNotAroundZero$1(h)){var w=-x/h;w>=0&&w<=1&&(l[T++]=w)}}else{var C=h*h-4*v*x;if(isAroundZero(C))l[0]=-h/(2*v);else if(C>0){var M=mathSqrt$3(C),w=(-h+M)/(2*v),V=(-h-M)/(2*v);w>=0&&w<=1&&(l[T++]=w),V>=0&&V<=1&&(l[T++]=V)}}return T}function cubicSubdivide(r,t,o,s,l,h){var v=(t-r)*l+r,x=(o-t)*l+t,T=(s-o)*l+o,w=(x-v)*l+v,C=(T-x)*l+x,M=(C-w)*l+w;h[0]=r,h[1]=v,h[2]=w,h[3]=M,h[4]=M,h[5]=C,h[6]=T,h[7]=s}function cubicProjectPoint(r,t,o,s,l,h,v,x,T,w,C){var M,V=.005,z=1/0,F,B,W,Y;_v0[0]=T,_v0[1]=w;for(var Z=0;Z<1;Z+=.05)_v1[0]=cubicAt(r,o,l,v,Z),_v1[1]=cubicAt(t,s,h,x,Z),W=distSquare(_v0,_v1),W<z&&(M=Z,z=W);z=1/0;for(var X=0;X<32&&!(V<EPSILON_NUMERIC);X++)F=M-V,B=M+V,_v1[0]=cubicAt(r,o,l,v,F),_v1[1]=cubicAt(t,s,h,x,F),W=distSquare(_v1,_v0),F>=0&&W<z?(M=F,z=W):(_v2[0]=cubicAt(r,o,l,v,B),_v2[1]=cubicAt(t,s,h,x,B),Y=distSquare(_v2,_v0),B<=1&&Y<z?(M=B,z=Y):V*=.5);return C&&(C[0]=cubicAt(r,o,l,v,M),C[1]=cubicAt(t,s,h,x,M)),mathSqrt$3(z)}function cubicLength(r,t,o,s,l,h,v,x,T){for(var w=r,C=t,M=0,V=1/T,z=1;z<=T;z++){var F=z*V,B=cubicAt(r,o,l,v,F),W=cubicAt(t,s,h,x,F),Y=B-w,Z=W-C;M+=Math.sqrt(Y*Y+Z*Z),w=B,C=W}return M}function quadraticAt(r,t,o,s){var l=1-s;return l*(l*r+2*s*t)+s*s*o}function quadraticDerivativeAt(r,t,o,s){return 2*((1-s)*(t-r)+s*(o-t))}function quadraticRootAt(r,t,o,s,l){var h=r-2*t+o,v=2*(t-r),x=r-s,T=0;if(isAroundZero(h)){if(isNotAroundZero$1(v)){var w=-x/v;w>=0&&w<=1&&(l[T++]=w)}}else{var C=v*v-4*h*x;if(isAroundZero(C)){var w=-v/(2*h);w>=0&&w<=1&&(l[T++]=w)}else if(C>0){var M=mathSqrt$3(C),w=(-v+M)/(2*h),V=(-v-M)/(2*h);w>=0&&w<=1&&(l[T++]=w),V>=0&&V<=1&&(l[T++]=V)}}return T}function quadraticExtremum(r,t,o){var s=r+o-2*t;return s===0?.5:(r-t)/s}function quadraticSubdivide(r,t,o,s,l){var h=(t-r)*s+r,v=(o-t)*s+t,x=(v-h)*s+h;l[0]=r,l[1]=h,l[2]=x,l[3]=x,l[4]=v,l[5]=o}function quadraticProjectPoint(r,t,o,s,l,h,v,x,T){var w,C=.005,M=1/0;_v0[0]=v,_v0[1]=x;for(var V=0;V<1;V+=.05){_v1[0]=quadraticAt(r,o,l,V),_v1[1]=quadraticAt(t,s,h,V);var z=distSquare(_v0,_v1);z<M&&(w=V,M=z)}M=1/0;for(var F=0;F<32&&!(C<EPSILON_NUMERIC);F++){var B=w-C,W=w+C;_v1[0]=quadraticAt(r,o,l,B),_v1[1]=quadraticAt(t,s,h,B);var z=distSquare(_v1,_v0);if(B>=0&&z<M)w=B,M=z;else{_v2[0]=quadraticAt(r,o,l,W),_v2[1]=quadraticAt(t,s,h,W);var Y=distSquare(_v2,_v0);W<=1&&Y<M?(w=W,M=Y):C*=.5}}return T&&(T[0]=quadraticAt(r,o,l,w),T[1]=quadraticAt(t,s,h,w)),mathSqrt$3(M)}function quadraticLength(r,t,o,s,l,h,v){for(var x=r,T=t,w=0,C=1/v,M=1;M<=v;M++){var V=M*C,z=quadraticAt(r,o,l,V),F=quadraticAt(t,s,h,V),B=z-x,W=F-T;w+=Math.sqrt(B*B+W*W),x=z,T=F}return w}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(r){var t=r&®exp.exec(r);if(t){var o=t[1].split(","),s=+trim$1(o[0]),l=+trim$1(o[1]),h=+trim$1(o[2]),v=+trim$1(o[3]);if(isNaN(s+l+h+v))return;var x=[];return function(T){return T<=0?0:T>=1?1:cubicRootAt(0,s,h,1,T,x)&&cubicAt(0,l,v,1,x[0])}}}var Clip=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||noop,this.ondestroy=t.ondestroy||noop,this.onrestart=t.onrestart||noop,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,o){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=o;return}var s=this._life,l=t-this._startTime-this._pausedTime,h=l/s;h<0&&(h=0),h=Math.min(h,1);var v=this.easingFunc,x=v?v(h):h;if(this.onframe(x),h===1)if(this.loop){var T=l%s;this._startTime=t-T,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=isFunction(t)?t:easingFuncs$1[t]||createCubicEasingFunc(t)},r}();const Clip$1=Clip;var Entry=function(){function r(t){this.value=t}return r}(),LinkedList=function(){function r(){this._len=0}return r.prototype.insert=function(t){var o=new Entry(t);return this.insertEntry(o),o},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var o=t.prev,s=t.next;o?o.next=s:this.head=s,s?s.prev=o:this.tail=o,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),LRU=function(){function r(t){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,o){var s=this._list,l=this._map,h=null;if(l[t]==null){var v=s.len(),x=this._lastRemovedEntry;if(v>=this._maxSize&&v>0){var T=s.head;s.remove(T),delete l[T.key],h=T.value,this._lastRemovedEntry=T}x?x.value=o:x=new Entry(o),x.key=t,s.insertEntry(x),l[t]=x}return h},r.prototype.get=function(t){var o=this._map[t],s=this._list;if(o!=null)return o!==s.tail&&(s.remove(o),s.insertEntry(o)),o.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const LRU$1=LRU;var kCSSColorTable={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 clampCssByte(r){return r=Math.round(r),r<0?0:r>255?255:r}function clampCssAngle(r){return r=Math.round(r),r<0?0:r>360?360:r}function clampCssFloat(r){return r<0?0:r>1?1:r}function parseCssInt(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssByte(parseFloat(t)/100*255):clampCssByte(parseInt(t,10))}function parseCssFloat(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssFloat(parseFloat(t)/100):clampCssFloat(parseFloat(t))}function cssHueToRgb(r,t,o){return o<0?o+=1:o>1&&(o-=1),o*6<1?r+(t-r)*o*6:o*2<1?t:o*3<2?r+(t-r)*(2/3-o)*6:r}function lerpNumber(r,t,o){return r+(t-r)*o}function setRgba(r,t,o,s,l){return r[0]=t,r[1]=o,r[2]=s,r[3]=l,r}function copyRgba(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(r,t){lastRemovedArr&©Rgba(lastRemovedArr,t),lastRemovedArr=colorCache.put(r,lastRemovedArr||t.slice())}function parse$1(r,t){if(r){t=t||[];var o=colorCache.get(r);if(o)return copyRgba(t,o);r=r+"";var s=r.replace(/ /g,"").toLowerCase();if(s in kCSSColorTable)return copyRgba(t,kCSSColorTable[s]),putToCache(r,t),t;var l=s.length;if(s.charAt(0)==="#"){if(l===4||l===5){var h=parseInt(s.slice(1,4),16);if(!(h>=0&&h<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,(h&3840)>>4|(h&3840)>>8,h&240|(h&240)>>4,h&15|(h&15)<<4,l===5?parseInt(s.slice(4),16)/15:1),putToCache(r,t),t}else if(l===7||l===9){var h=parseInt(s.slice(1,7),16);if(!(h>=0&&h<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,(h&16711680)>>16,(h&65280)>>8,h&255,l===9?parseInt(s.slice(7),16)/255:1),putToCache(r,t),t}return}var v=s.indexOf("("),x=s.indexOf(")");if(v!==-1&&x+1===l){var T=s.substr(0,v),w=s.substr(v+1,x-(v+1)).split(","),C=1;switch(T){case"rgba":if(w.length!==4)return w.length===3?setRgba(t,+w[0],+w[1],+w[2],1):setRgba(t,0,0,0,1);C=parseCssFloat(w.pop());case"rgb":if(w.length>=3)return setRgba(t,parseCssInt(w[0]),parseCssInt(w[1]),parseCssInt(w[2]),w.length===3?C:parseCssFloat(w[3])),putToCache(r,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(w.length!==4){setRgba(t,0,0,0,1);return}return w[3]=parseCssFloat(w[3]),hsla2rgba(w,t),putToCache(r,t),t;case"hsl":if(w.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(w,t),putToCache(r,t),t;default:return}}setRgba(t,0,0,0,1)}}function hsla2rgba(r,t){var o=(parseFloat(r[0])%360+360)%360/360,s=parseCssFloat(r[1]),l=parseCssFloat(r[2]),h=l<=.5?l*(s+1):l+s-l*s,v=l*2-h;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(v,h,o+1/3)*255),clampCssByte(cssHueToRgb(v,h,o)*255),clampCssByte(cssHueToRgb(v,h,o-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function rgba2hsla(r){if(r){var t=r[0]/255,o=r[1]/255,s=r[2]/255,l=Math.min(t,o,s),h=Math.max(t,o,s),v=h-l,x=(h+l)/2,T,w;if(v===0)T=0,w=0;else{x<.5?w=v/(h+l):w=v/(2-h-l);var C=((h-t)/6+v/2)/v,M=((h-o)/6+v/2)/v,V=((h-s)/6+v/2)/v;t===h?T=V-M:o===h?T=1/3+C-V:s===h&&(T=2/3+M-C),T<0&&(T+=1),T>1&&(T-=1)}var z=[T*360,w,x];return r[3]!=null&&z.push(r[3]),z}}function lift(r,t){var o=parse$1(r);if(o){for(var s=0;s<3;s++)t<0?o[s]=o[s]*(1-t)|0:o[s]=(255-o[s])*t+o[s]|0,o[s]>255?o[s]=255:o[s]<0&&(o[s]=0);return stringify(o,o.length===4?"rgba":"rgb")}}function toHex(r){var t=parse$1(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function fastLerp(r,t,o){if(!(!(t&&t.length)||!(r>=0&&r<=1))){o=o||[];var s=r*(t.length-1),l=Math.floor(s),h=Math.ceil(s),v=t[l],x=t[h],T=s-l;return o[0]=clampCssByte(lerpNumber(v[0],x[0],T)),o[1]=clampCssByte(lerpNumber(v[1],x[1],T)),o[2]=clampCssByte(lerpNumber(v[2],x[2],T)),o[3]=clampCssFloat(lerpNumber(v[3],x[3],T)),o}}var fastMapToColor=fastLerp;function lerp(r,t,o){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var s=r*(t.length-1),l=Math.floor(s),h=Math.ceil(s),v=parse$1(t[l]),x=parse$1(t[h]),T=s-l,w=stringify([clampCssByte(lerpNumber(v[0],x[0],T)),clampCssByte(lerpNumber(v[1],x[1],T)),clampCssByte(lerpNumber(v[2],x[2],T)),clampCssFloat(lerpNumber(v[3],x[3],T))],"rgba");return o?{color:w,leftIndex:l,rightIndex:h,value:s}:w}}var mapToColor=lerp;function modifyHSL(r,t,o,s){var l=parse$1(r);if(r)return l=rgba2hsla(l),t!=null&&(l[0]=clampCssAngle(t)),o!=null&&(l[1]=parseCssFloat(o)),s!=null&&(l[2]=parseCssFloat(s)),stringify(hsla2rgba(l),"rgba")}function modifyAlpha(r,t){var o=parse$1(r);if(o&&t!=null)return o[3]=clampCssFloat(t),stringify(o,"rgba")}function stringify(r,t){if(!(!r||!r.length)){var o=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(o+=","+r[3]),t+"("+o+")"}}function lum(r,t){var o=parse$1(r);return o?(.299*o[0]+.587*o[1]+.114*o[2])*o[3]/255+(1-o[3])*t:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient(r){return r.type==="linear"}function isRadialGradient(r){return r.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(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}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(r,t,o){return(t-r)*o+r}function interpolate1DArray(r,t,o,s){for(var l=t.length,h=0;h<l;h++)r[h]=interpolateNumber$1(t[h],o[h],s);return r}function interpolate2DArray(r,t,o,s){for(var l=t.length,h=l&&t[0].length,v=0;v<l;v++){r[v]||(r[v]=[]);for(var x=0;x<h;x++)r[v][x]=interpolateNumber$1(t[v][x],o[v][x],s)}return r}function add1DArray(r,t,o,s){for(var l=t.length,h=0;h<l;h++)r[h]=t[h]+o[h]*s;return r}function add2DArray(r,t,o,s){for(var l=t.length,h=l&&t[0].length,v=0;v<l;v++){r[v]||(r[v]=[]);for(var x=0;x<h;x++)r[v][x]=t[v][x]+o[v][x]*s}return r}function fillColorStops(r,t){for(var o=r.length,s=t.length,l=o>s?t:r,h=Math.min(o,s),v=l[h-1]||{color:[0,0,0,0],offset:0},x=h;x<Math.max(o,s);x++)l.push({offset:v.offset,color:v.color.slice()})}function fillArray(r,t,o){var s=r,l=t;if(!(!s.push||!l.push)){var h=s.length,v=l.length;if(h!==v){var x=h>v;if(x)s.length=v;else for(var T=h;T<v;T++)s.push(o===1?l[T]:arraySlice.call(l[T]))}for(var w=s[0]&&s[0].length,T=0;T<s.length;T++)if(o===1)isNaN(s[T])&&(s[T]=l[T]);else for(var C=0;C<w;C++)isNaN(s[T][C])&&(s[T][C]=l[T][C])}}function cloneValue(r){if(isArrayLike(r)){var t=r.length;if(isArrayLike(r[0])){for(var o=[],s=0;s<t;s++)o.push(arraySlice.call(r[s]));return o}return arraySlice.call(r)}return r}function rgba2String(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function guessArrayDim(r){return isArrayLike(r&&r[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType(r){return r===VALUE_TYPE_LINEAR_GRADIENT||r===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType(r){return r===VALUE_TYPE_1D_ARRAY||r===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,o,s){this._needsSort=!0;var l=this.keyframes,h=l.length,v=!1,x=VALUE_TYPE_UNKOWN,T=o;if(isArrayLike(o)){var w=guessArrayDim(o);x=w,(w===1&&!isNumber(o[0])||w===2&&!isNumber(o[0][0]))&&(v=!0)}else if(isNumber(o)&&!eqNaN(o))x=VALUE_TYPE_NUMBER;else if(isString(o))if(!isNaN(+o))x=VALUE_TYPE_NUMBER;else{var C=parse$1(o);C&&(T=C,x=VALUE_TYPE_COLOR)}else if(isGradientObject(o)){var M=extend({},T);M.colorStops=map$2(o.colorStops,function(z){return{offset:z.offset,color:parse$1(z.color)}}),isLinearGradient(o)?x=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(o)&&(x=VALUE_TYPE_RADIAL_GRADIENT),T=M}h===0?this.valType=x:(x!==this.valType||x===VALUE_TYPE_UNKOWN)&&(v=!0),this.discrete=this.discrete||v;var V={time:t,value:T,rawValue:o,percent:0};return s&&(V.easing=s,V.easingFunc=isFunction(s)?s:easingFuncs$1[s]||createCubicEasingFunc(s)),l.push(V),V},r.prototype.prepare=function(t,o){var s=this.keyframes;this._needsSort&&s.sort(function(B,W){return B.time-W.time});for(var l=this.valType,h=s.length,v=s[h-1],x=this.discrete,T=isArrayValueType(l),w=isGradientValueType(l),C=0;C<h;C++){var M=s[C],V=M.value,z=v.value;M.percent=M.time/t,x||(T&&C!==h-1?fillArray(V,z,l):w&&fillColorStops(V.colorStops,z.colorStops))}if(!x&&l!==VALUE_TYPE_RADIAL_GRADIENT&&o&&this.needsAnimate()&&o.needsAnimate()&&l===o.valType&&!o._finished){this._additiveTrack=o;for(var F=s[0].value,C=0;C<h;C++)l===VALUE_TYPE_NUMBER?s[C].additiveValue=s[C].value-F:l===VALUE_TYPE_COLOR?s[C].additiveValue=add1DArray([],s[C].value,F,-1):isArrayValueType(l)&&(s[C].additiveValue=l===VALUE_TYPE_1D_ARRAY?add1DArray([],s[C].value,F,-1):add2DArray([],s[C].value,F,-1))}},r.prototype.step=function(t,o){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var s=this._additiveTrack!=null,l=s?"additiveValue":"value",h=this.valType,v=this.keyframes,x=v.length,T=this.propName,w=h===VALUE_TYPE_COLOR,C,M=this._lastFr,V=Math.min,z,F;if(x===1)z=F=v[0];else{if(o<0)C=0;else if(o<this._lastFrP){var B=V(M+1,x-1);for(C=B;C>=0&&!(v[C].percent<=o);C--);C=V(C,x-2)}else{for(C=M;C<x&&!(v[C].percent>o);C++);C=V(C-1,x-2)}F=v[C+1],z=v[C]}if(z&&F){this._lastFr=C,this._lastFrP=o;var W=F.percent-z.percent,Y=W===0?1:V((o-z.percent)/W,1);F.easingFunc&&(Y=F.easingFunc(Y));var Z=s?this._additiveValue:w?tmpRgba:t[T];if((isArrayValueType(h)||w)&&!Z&&(Z=this._additiveValue=[]),this.discrete)t[T]=Y<1?z.rawValue:F.rawValue;else if(isArrayValueType(h))h===VALUE_TYPE_1D_ARRAY?interpolate1DArray(Z,z[l],F[l],Y):interpolate2DArray(Z,z[l],F[l],Y);else if(isGradientValueType(h)){var X=z[l],te=F[l],oe=h===VALUE_TYPE_LINEAR_GRADIENT;t[T]={type:oe?"linear":"radial",x:interpolateNumber$1(X.x,te.x,Y),y:interpolateNumber$1(X.y,te.y,Y),colorStops:map$2(X.colorStops,function(le,he){var me=te.colorStops[he];return{offset:interpolateNumber$1(le.offset,me.offset,Y),color:rgba2String(interpolate1DArray([],le.color,me.color,Y))}}),global:te.global},oe?(t[T].x2=interpolateNumber$1(X.x2,te.x2,Y),t[T].y2=interpolateNumber$1(X.y2,te.y2,Y)):t[T].r=interpolateNumber$1(X.r,te.r,Y)}else if(w)interpolate1DArray(Z,z[l],F[l],Y),s||(t[T]=rgba2String(Z));else{var ae=interpolateNumber$1(z[l],F[l],Y);s?this._additiveValue=ae:t[T]=ae}s&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var o=this.valType,s=this.propName,l=this._additiveValue;o===VALUE_TYPE_NUMBER?t[s]=t[s]+l:o===VALUE_TYPE_COLOR?(parse$1(t[s],tmpRgba),add1DArray(tmpRgba,tmpRgba,l,1),t[s]=rgba2String(tmpRgba)):o===VALUE_TYPE_1D_ARRAY?add1DArray(t[s],t[s],l,1):o===VALUE_TYPE_2D_ARRAY&&add2DArray(t[s],t[s],l,1)},r}(),Animator=function(){function r(t,o,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=o,o&&l){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,o,s){return this.whenWithKeys(t,o,keys(o),s)},r.prototype.whenWithKeys=function(t,o,s,l){for(var h=this._tracks,v=0;v<s.length;v++){var x=s[v],T=h[x];if(!T){T=h[x]=new Track(x);var w=void 0,C=this._getAdditiveTrack(x);if(C){var M=C.keyframes,V=M[M.length-1];w=V&&V.value,C.valType===VALUE_TYPE_COLOR&&w&&(w=rgba2String(w))}else w=this._target[x];if(w==null)continue;t>0&&T.addKeyframe(0,cloneValue(w),l),this._trackKeys.push(x)}T.addKeyframe(t,cloneValue(o[x]),l)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var o=t.length,s=0;s<o;s++)t[s].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,o=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,o)for(var s=0;s<o.length;s++)o[s].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,o=this._trackKeys,s=0;s<o.length;s++)t[o[s]].setFinished()},r.prototype._getAdditiveTrack=function(t){var o,s=this._additiveAnimators;if(s)for(var l=0;l<s.length;l++){var h=s[l].getTrack(t);h&&(o=h)}return o},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var o=this,s=[],l=this._maxTime||0,h=0;h<this._trackKeys.length;h++){var v=this._trackKeys[h],x=this._tracks[v],T=this._getAdditiveTrack(v),w=x.keyframes,C=w.length;if(x.prepare(l,T),x.needsAnimate())if(!this._allowDiscrete&&x.discrete){var M=w[C-1];M&&(o._target[x.propName]=M.rawValue),x.setFinished()}else s.push(x)}if(s.length||this._force){var V=new Clip$1({life:l,loop:this._loop,delay:this._delay||0,onframe:function(z){o._started=2;var F=o._additiveAnimators;if(F){for(var B=!1,W=0;W<F.length;W++)if(F[W]._clip){B=!0;break}B||(o._additiveAnimators=null)}for(var W=0;W<s.length;W++)s[W].step(o._target,z);var Y=o._onframeCbs;if(Y)for(var W=0;W<Y.length;W++)Y[W](o._target,z)},ondestroy:function(){o._doneCallback()}});this._clip=V,this.animation&&this.animation.addClip(V),t&&V.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var o=this._clip;t&&o.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return map$2(this._trackKeys,function(o){return t._tracks[o]})},r.prototype.stopTracks=function(t,o){if(!t.length||!this._clip)return!0;for(var s=this._tracks,l=this._trackKeys,h=0;h<t.length;h++){var v=s[t[h]];v&&!v.isFinished()&&(o?v.step(this._target,1):this._started===1&&v.step(this._target,0),v.setFinished())}for(var x=!0,h=0;h<l.length;h++)if(!s[l[h]].isFinished()){x=!1;break}return x&&this._abortedCallback(),x},r.prototype.saveTo=function(t,o,s){if(t){o=o||this._trackKeys;for(var l=0;l<o.length;l++){var h=o[l],v=this._tracks[h];if(!(!v||v.isFinished())){var x=v.keyframes,T=x[s?0:x.length-1];T&&(t[h]=cloneValue(T.rawValue))}}}},r.prototype.__changeFinalValue=function(t,o){o=o||keys(t);for(var s=0;s<o.length;s++){var l=o[s],h=this._tracks[l];if(h){var v=h.keyframes;if(v.length>1){var x=v.pop();h.addKeyframe(x.time,t[l]),h.prepare(this._maxTime,h.getAdditiveTrack())}}}},r}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,o=o||{},s.stage=o.stage||{},s}return t.prototype.addClip=function(o){o.animation&&this.removeClip(o),this._head?(this._tail.next=o,o.prev=this._tail,o.next=null,this._tail=o):this._head=this._tail=o,o.animation=this},t.prototype.addAnimator=function(o){o.animation=this;var s=o.getClip();s&&this.addClip(s)},t.prototype.removeClip=function(o){if(o.animation){var s=o.prev,l=o.next;s?s.next=l:this._head=l,l?l.prev=s:this._tail=s,o.next=o.prev=o.animation=null}},t.prototype.removeAnimator=function(o){var s=o.getClip();s&&this.removeClip(s),o.animation=null},t.prototype.update=function(o){for(var s=getTime()-this._pausedTime,l=s-this._time,h=this._head;h;){var v=h.next,x=h.step(s,l);x&&(h.ondestroy(),this.removeClip(h)),h=v}this._time=s,o||(this.trigger("frame",l),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var o=this;this._running=!0;function s(){o._running&&(requestAnimationFrame$1(s),!o._paused&&o.update())}requestAnimationFrame$1(s)},t.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var o=this._head;o;){var s=o.next;o.prev=o.next=o.animation=null,o=s}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(o,s){s=s||{},this.start();var l=new Animator$1(o,s.loop);return this.addAnimator(l),l},t}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],o={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},s=map$2(r,function(l){var h=l.replace("mouse","pointer");return o.hasOwnProperty(h)?h:l});return{mouse:r,touch:t,pointer:s}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(r){var t=r.pointerType;return t==="pen"||t==="touch"}function setTouchTimer(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 markTouch(r){r&&(r.zrByTouch=!0)}function normalizeGlobalEvent(r,t){return normalizeEvent(r.dom,new FakeGlobalEvent(r,t),!0)}function isLocalEl(r,t){for(var o=t,s=!1;o&&o.nodeType!==9&&!(s=o.domBelongToZr||o!==t&&o===r.painterRoot);)o=o.parentNode;return s}var FakeGlobalEvent=function(){function r(t,o){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=o.type,this.target=this.currentTarget=t.dom,this.pointerType=o.pointerType,this.clientX=o.clientX,this.clientY=o.clientY}return r}(),localDOMHandlers={mousedown:function(r){r=normalizeEvent(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=normalizeEvent(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=normalizeEvent(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=normalizeEvent(this.dom,r);var t=r.toElement||r.relatedTarget;isLocalEl(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wheelEventSupported=!0,r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wheelEventSupported||(r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),localDOMHandlers.mousemove.call(this,r),localDOMHandlers.mousedown.call(this,r)},touchmove:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"change"),localDOMHandlers.mousemove.call(this,r)},touchend:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"end"),localDOMHandlers.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,r)},pointerdown:function(r){localDOMHandlers.mousedown.call(this,r)},pointermove:function(r){isPointerFromTouch(r)||localDOMHandlers.mousemove.call(this,r)},pointerup:function(r){localDOMHandlers.mouseup.call(this,r)},pointerout:function(r){isPointerFromTouch(r)||localDOMHandlers.mouseout.call(this,r)}};each$c(["click","dblclick","contextmenu"],function(r){localDOMHandlers[r]=function(t){t=normalizeEvent(this.dom,t),this.trigger(r,t)}});var globalDOMHandlers={pointermove:function(r){isPointerFromTouch(r)||globalDOMHandlers.mousemove.call(this,r)},pointerup:function(r){globalDOMHandlers.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function mountLocalDOMEventListeners(r,t){var o=t.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(s){mountSingleDOMEventListener(t,s,function(l){o[s].call(r,l)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(s){mountSingleDOMEventListener(t,s,function(l){o[s].call(r,l),setTouchTimer(t)})}),each$c(localNativeListenerNames.mouse,function(s){mountSingleDOMEventListener(t,s,function(l){l=getNativeEvent(l),t.touching||o[s].call(r,l)})}))}function mountGlobalDOMEventListeners(r,t){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,o):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,o);function o(s){function l(h){h=getNativeEvent(h),isLocalEl(r,h.target)||(h=normalizeGlobalEvent(r,h),t.domHandlers[s].call(r,h))}mountSingleDOMEventListener(t,s,l,{capture:!0})}}function mountSingleDOMEventListener(r,t,o,s){r.mounted[t]=o,r.listenerOpts[t]=s,addEventListener(r.domTarget,t,o,s)}function unmountDOMEventListeners(r){var t=r.mounted;for(var o in t)t.hasOwnProperty(o)&&removeEventListener(r.domTarget,o,t[o],r.listenerOpts[o]);r.mounted={}}var DOMHandlerScope=function(){function r(t,o){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=o}return r}(),HandlerDomProxy=function(r){__extends(t,r);function t(o,s){var l=r.call(this)||this;return l.__pointerCapturing=!1,l.dom=o,l.painterRoot=s,l._localHandlerScope=new DOMHandlerScope(o,localDOMHandlers),globalEventSupported&&(l._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(l,l._localHandlerScope),l}return t.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},t.prototype.setCursor=function(o){this.dom.style&&(this.dom.style.cursor=o||"default")},t.prototype.__togglePointerCapture=function(o){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+o){this.__pointerCapturing=o;var s=this._globalHandlerScope;o?mountGlobalDOMEventListeners(this,s):unmountDOMEventListeners(s)}},t}(Eventful$1);const HandlerProxy=HandlerDomProxy;var dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero(r){return r>EPSILON$2||r<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,o=this.needLocalTransform(),s=this.transform;if(!(o||t)){s&&mIdentity(s);return}s=s||create(),o?this.getLocalTransform(s):mIdentity(s),t&&(o?mul(s,t,s):copy(s,t)),this.transform=s,this._resolveGlobalScaleRatio(s)},r.prototype._resolveGlobalScaleRatio=function(t){var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(scaleTmp);var s=scaleTmp[0]<0?-1:1,l=scaleTmp[1]<0?-1:1,h=((scaleTmp[0]-s)*o+s)/scaleTmp[0]||0,v=((scaleTmp[1]-l)*o+l)/scaleTmp[1]||0;t[0]*=h,t[1]*=h,t[2]*=v,t[3]*=v}this.invTransform=this.invTransform||create(),invert(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,o=[];t;)o.push(t),t=t.parent;for(;t=o.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var o=t[0]*t[0]+t[1]*t[1],s=t[2]*t[2]+t[3]*t[3],l=Math.atan2(t[1],t[0]),h=Math.PI/2+l-Math.atan2(t[3],t[2]);s=Math.sqrt(s)*Math.cos(h),o=Math.sqrt(o),this.skewX=h,this.skewY=0,this.rotation=-l,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=s,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,o=this.transform;t&&t.transform&&(mul(tmpTransform,t.invTransform,o),o=tmpTransform);var s=this.originX,l=this.originY;(s||l)&&(originTransform[4]=s,originTransform[5]=l,mul(tmpTransform,o,originTransform),tmpTransform[4]-=s,tmpTransform[5]-=l,o=tmpTransform),this.setLocalTransform(o)}},r.prototype.getGlobalScale=function(t){var o=this.transform;return t=t||[],o?(t[0]=Math.sqrt(o[0]*o[0]+o[1]*o[1]),t[1]=Math.sqrt(o[2]*o[2]+o[3]*o[3]),o[0]<0&&(t[0]=-t[0]),o[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,o){var s=[t,o],l=this.invTransform;return l&&applyTransform$1(s,s,l),s},r.prototype.transformCoordToGlobal=function(t,o){var s=[t,o],l=this.transform;return l&&applyTransform$1(s,s,l),s},r.prototype.getLineScale=function(){var t=this.transform;return t&&abs(t[0]-1)>1e-10&&abs(t[3]-1)>1e-10?Math.sqrt(abs(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){copyTransform(this,t)},r.getLocalTransform=function(t,o){o=o||[];var s=t.originX||0,l=t.originY||0,h=t.scaleX,v=t.scaleY,x=t.anchorX,T=t.anchorY,w=t.rotation||0,C=t.x,M=t.y,V=t.skewX?Math.tan(t.skewX):0,z=t.skewY?Math.tan(-t.skewY):0;if(s||l||x||T){var F=s+x,B=l+T;o[4]=-F*h-V*B*v,o[5]=-B*v-z*F*h}else o[4]=o[5]=0;return o[0]=h,o[3]=v,o[1]=z*h,o[2]=V*v,w&&rotate(o,o,w),o[4]+=s+C,o[5]+=l+M,o},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(r,t){for(var o=0;o<TRANSFORMABLE_PROPS.length;o++){var s=TRANSFORMABLE_PROPS[o];r[s]=t[s]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth(r,t){t=t||DEFAULT_FONT;var o=textWidthCache[t];o||(o=textWidthCache[t]=new LRU$1(500));var s=o.get(r);return s==null&&(s=platformApi.measureText(r,t).width,o.put(r,s)),s}function innerGetBoundingRect(r,t,o,s){var l=getWidth(r,t),h=getLineHeight(t),v=adjustTextX(0,l,o),x=adjustTextY(0,h,s),T=new BoundingRect$1(v,x,l,h);return T}function getBoundingRect(r,t,o,s){var l=((r||"")+"").split(`
|
||
`),h=l.length;if(h===1)return innerGetBoundingRect(l[0],t,o,s);for(var v=new BoundingRect$1(0,0,0,0),x=0;x<l.length;x++){var T=innerGetBoundingRect(l[x],t,o,s);x===0?v.copy(T):v.union(T)}return v}function adjustTextX(r,t,o){return o==="right"?r-=t:o==="center"&&(r-=t/2),r}function adjustTextY(r,t,o){return o==="middle"?r-=t/2:o==="bottom"&&(r-=t),r}function getLineHeight(r){return getWidth("国",r)}function parsePercent$1(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function calculateTextPosition(r,t,o){var s=t.position||"inside",l=t.distance!=null?t.distance:5,h=o.height,v=o.width,x=h/2,T=o.x,w=o.y,C="left",M="top";if(s instanceof Array)T+=parsePercent$1(s[0],o.width),w+=parsePercent$1(s[1],o.height),C=null,M=null;else switch(s){case"left":T-=l,w+=x,C="right",M="middle";break;case"right":T+=l+v,w+=x,M="middle";break;case"top":T+=v/2,w-=l,C="center",M="bottom";break;case"bottom":T+=v/2,w+=h+l,C="center";break;case"inside":T+=v/2,w+=x,C="center",M="middle";break;case"insideLeft":T+=l,w+=x,M="middle";break;case"insideRight":T+=v-l,w+=x,C="right",M="middle";break;case"insideTop":T+=v/2,w+=l,C="center";break;case"insideBottom":T+=v/2,w+=h-l,C="center",M="bottom";break;case"insideTopLeft":T+=l,w+=l;break;case"insideTopRight":T+=v-l,w+=l,C="right";break;case"insideBottomLeft":T+=l,w+=h-l,M="bottom";break;case"insideBottomRight":T+=v-l,w+=h-l,C="right",M="bottom";break}return r=r||{},r.x=T,r.y=w,r.align=C,r.verticalAlign=M,r}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(r,t){return r[t]=!0,r},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element=function(){function r(t){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,o,s){switch(this.draggable){case"horizontal":o=0;break;case"vertical":t=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=t,l[5]+=o,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var o=this._textContent;if(o&&(!o.ignore||t)){this.textConfig||(this.textConfig={});var s=this.textConfig,l=s.local,h=o.innerTransformable,v=void 0,x=void 0,T=!1;h.parent=l?this:null;var w=!1;if(h.copyTransform(o),s.position!=null){var C=tmpBoundingRect;s.layoutRect?C.copy(s.layoutRect):C.copy(this.getBoundingRect()),l||C.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,s,C):calculateTextPosition(tmpTextPosCalcRes,s,C),h.x=tmpTextPosCalcRes.x,h.y=tmpTextPosCalcRes.y,v=tmpTextPosCalcRes.align,x=tmpTextPosCalcRes.verticalAlign;var M=s.origin;if(M&&s.rotation!=null){var V=void 0,z=void 0;M==="center"?(V=C.width*.5,z=C.height*.5):(V=parsePercent$1(M[0],C.width),z=parsePercent$1(M[1],C.height)),w=!0,h.originX=-h.x+V+(l?0:C.x),h.originY=-h.y+z+(l?0:C.y)}}s.rotation!=null&&(h.rotation=s.rotation);var F=s.offset;F&&(h.x+=F[0],h.y+=F[1],w||(h.originX=-F[0],h.originY=-F[1]));var B=s.inside==null?typeof s.position=="string"&&s.position.indexOf("inside")>=0:s.inside,W=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),Y=void 0,Z=void 0,X=void 0;B&&this.canBeInsideText()?(Y=s.insideFill,Z=s.insideStroke,(Y==null||Y==="auto")&&(Y=this.getInsideTextFill()),(Z==null||Z==="auto")&&(Z=this.getInsideTextStroke(Y),X=!0)):(Y=s.outsideFill,Z=s.outsideStroke,(Y==null||Y==="auto")&&(Y=this.getOutsideFill()),(Z==null||Z==="auto")&&(Z=this.getOutsideStroke(Y),X=!0)),Y=Y||"#000",(Y!==W.fill||Z!==W.stroke||X!==W.autoStroke||v!==W.align||x!==W.verticalAlign)&&(T=!0,W.fill=Y,W.stroke=Z,W.autoStroke=X,W.align=v,W.verticalAlign=x,o.setDefaultTextStyle(W)),o.__dirty|=REDRAW_BIT,T&&o.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},r.prototype.getOutsideStroke=function(t){var o=this.__zr&&this.__zr.getBackgroundColor(),s=typeof o=="string"&&parse$1(o);s||(s=[255,255,255,1]);for(var l=s[3],h=this.__zr.isDarkMode(),v=0;v<3;v++)s[v]=s[v]*l+(h?0:255)*(1-l);return s[3]=1,stringify(s,"rgba")},r.prototype.traverse=function(t,o){},r.prototype.attrKV=function(t,o){t==="textConfig"?this.setTextConfig(o):t==="textContent"?this.setTextContent(o):t==="clipPath"?this.setClipPath(o):t==="extra"?(this.extra=this.extra||{},extend(this.extra,o)):this[t]=o},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,o){if(typeof t=="string")this.attrKV(t,o);else if(isObject$3(t))for(var s=t,l=keys(s),h=0;h<l.length;h++){var v=l[h];this.attrKV(v,t[v])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var o=this._normalState,s=0;s<this.animators.length;s++){var l=this.animators[s],h=l.__fromStateTransition;if(!(l.getLoop()||h&&h!==PRESERVED_NORMAL_STATE)){var v=l.targetName,x=v?o[v]:o;l.saveTo(x)}}},r.prototype._innerSaveToNormal=function(t){var o=this._normalState;o||(o=this._normalState={}),t.textConfig&&!o.textConfig&&(o.textConfig=this.textConfig),this._savePrimaryToNormal(t,o,PRIMARY_STATES_KEYS$1)},r.prototype._savePrimaryToNormal=function(t,o,s){for(var l=0;l<s.length;l++){var h=s[l];t[h]!=null&&!(h in o)&&(o[h]=this[h])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var o=this.states;return o[t]||(o[t]={}),o[t]},r.prototype.clearStates=function(t){this.useState(PRESERVED_NORMAL_STATE,!1,t)},r.prototype.useState=function(t,o,s,l){var h=t===PRESERVED_NORMAL_STATE,v=this.hasState();if(!(!v&&h)){var x=this.currentStates,T=this.stateTransition;if(!(indexOf(x,t)>=0&&(o||x.length===1))){var w;if(this.stateProxy&&!h&&(w=this.stateProxy(t)),w||(w=this.states&&this.states[t]),!w&&!h){logError("State "+t+" not exists.");return}h||this.saveCurrentToNormalState(w);var C=!!(w&&w.hoverLayer||l);C&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,w,this._normalState,o,!s&&!this.__inHover&&T&&T.duration>0,T);var M=this._textContent,V=this._textGuide;return M&&M.useState(t,o,s,C),V&&V.useState(t,o,s,C),h?(this.currentStates=[],this._normalState={}):o?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!C&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),w}}},r.prototype.useStates=function(t,o,s){if(!t.length)this.clearStates();else{var l=[],h=this.currentStates,v=t.length,x=v===h.length;if(x){for(var T=0;T<v;T++)if(t[T]!==h[T]){x=!1;break}}if(x)return;for(var T=0;T<v;T++){var w=t[T],C=void 0;this.stateProxy&&(C=this.stateProxy(w,t)),C||(C=this.states[w]),C&&l.push(C)}var M=l[v-1],V=!!(M&&M.hoverLayer||s);V&&this._toggleHoverLayerFlag(!0);var z=this._mergeStates(l),F=this.stateTransition;this.saveCurrentToNormalState(z),this._applyStateObj(t.join(","),z,this._normalState,!1,!o&&!this.__inHover&&F&&F.duration>0,F);var B=this._textContent,W=this._textGuide;B&&B.useStates(t,o,V),W&&W.useStates(t,o,V),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!V&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var o=this.animators[t];o.targetName&&o.changeTarget(this[o.targetName])}},r.prototype.removeState=function(t){var o=indexOf(this.currentStates,t);if(o>=0){var s=this.currentStates.slice();s.splice(o,1),this.useStates(s)}},r.prototype.replaceState=function(t,o,s){var l=this.currentStates.slice(),h=indexOf(l,t),v=indexOf(l,o)>=0;h>=0?v?l.splice(h,1):l[h]=o:s&&!v&&l.push(o),this.useStates(l)},r.prototype.toggleState=function(t,o){o?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var o={},s,l=0;l<t.length;l++){var h=t[l];extend(o,h),h.textConfig&&(s=s||{},extend(s,h.textConfig))}return s&&(o.textConfig=s),o},r.prototype._applyStateObj=function(t,o,s,l,h,v){var x=!(o&&l);o&&o.textConfig?(this.textConfig=extend({},l?this.textConfig:s.textConfig),extend(this.textConfig,o.textConfig)):x&&s.textConfig&&(this.textConfig=s.textConfig);for(var T={},w=!1,C=0;C<PRIMARY_STATES_KEYS$1.length;C++){var M=PRIMARY_STATES_KEYS$1[C],V=h&&DEFAULT_ANIMATABLE_MAP[M];o&&o[M]!=null?V?(w=!0,T[M]=o[M]):this[M]=o[M]:x&&s[M]!=null&&(V?(w=!0,T[M]=s[M]):this[M]=s[M])}if(!h)for(var C=0;C<this.animators.length;C++){var z=this.animators[C],F=z.targetName;z.getLoop()||z.__changeFinalValue(F?(o||s)[F]:o||s)}w&&this._transitionState(t,T,v)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var o=this.__zr;o&&t.addSelfToZr(o),t.__zr=o,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var o=this._textContent;o!==t&&(o&&o!==t&&this.removeTextContent(),t.innerTransformable=new Transformable$1,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),extend(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var o=this._textContent,s=this._textGuide;o&&(o.__inHover=t),s&&(s.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var o=this.animators;if(o)for(var s=0;s<o.length;s++)t.animation.addAnimator(o[s]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var o=this.animators;if(o)for(var s=0;s<o.length;s++)t.animation.removeAnimator(o[s]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,o,s){var l=t?this[t]:this,h=new Animator$1(l,o,s);return t&&(h.targetName=t),this.addAnimator(h,t),h},r.prototype.addAnimator=function(t,o){var s=this.__zr,l=this;t.during(function(){l.updateDuringAnimation(o)}).done(function(){var h=l.animators,v=indexOf(h,t);v>=0&&h.splice(v,1)}),this.animators.push(t),s&&s.animation.addAnimator(t),s&&s.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,o){for(var s=this.animators,l=s.length,h=[],v=0;v<l;v++){var x=s[v];!t||t===x.scope?x.stop(o):h.push(x)}return this.animators=h,this},r.prototype.animateTo=function(t,o,s){animateTo(this,t,o,s)},r.prototype.animateFrom=function(t,o,s){animateTo(this,t,o,s,!0)},r.prototype._transitionState=function(t,o,s,l){for(var h=animateTo(this,o,s,l),v=0;v<h.length;v++)h[v].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=REDRAW_BIT;function o(s,l,h,v){Object.defineProperty(t,s,{get:function(){if(!this[l]){var T=this[l]=[];x(this,T)}return this[l]},set:function(T){this[h]=T[0],this[v]=T[1],this[l]=T,x(this,T)}});function x(T,w){Object.defineProperty(w,0,{get:function(){return T[h]},set:function(C){T[h]=C}}),Object.defineProperty(w,1,{get:function(){return T[v]},set:function(C){T[v]=C}})}}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),r}();mixin(Element,Eventful$1);mixin(Element,Transformable$1);function animateTo(r,t,o,s,l){o=o||{};var h=[];animateToShallow(r,"",r,t,o,s,h,l);var v=h.length,x=!1,T=o.done,w=o.aborted,C=function(){x=!0,v--,v<=0&&(x?T&&T():w&&w())},M=function(){v--,v<=0&&(x?T&&T():w&&w())};v||T&&T(),h.length>0&&o.during&&h[0].during(function(F,B){o.during(B)});for(var V=0;V<h.length;V++){var z=h[V];C&&z.done(C),M&&z.aborted(M),o.force&&z.duration(o.duration),z.start(o.easing)}return h}function copyArrShallow(r,t,o){for(var s=0;s<o;s++)r[s]=t[s]}function is2DArray(r){return isArrayLike(r[0])}function copyValue(r,t,o){if(isArrayLike(t[o]))if(isArrayLike(r[o])||(r[o]=[]),isTypedArray(t[o])){var s=t[o].length;r[o].length!==s&&(r[o]=new t[o].constructor(s),copyArrShallow(r[o],t[o],s))}else{var l=t[o],h=r[o],v=l.length;if(is2DArray(l))for(var x=l[0].length,T=0;T<v;T++)h[T]?copyArrShallow(h[T],l[T],x):h[T]=Array.prototype.slice.call(l[T]);else copyArrShallow(h,l,v);h.length=l.length}else r[o]=t[o]}function isValueSame(r,t){return r===t||isArrayLike(r)&&isArrayLike(t)&&is1DArraySame(r,t)}function is1DArraySame(r,t){var o=r.length;if(o!==t.length)return!1;for(var s=0;s<o;s++)if(r[s]!==t[s])return!1;return!0}function animateToShallow(r,t,o,s,l,h,v,x){for(var T=keys(s),w=l.duration,C=l.delay,M=l.additive,V=l.setToFinal,z=!isObject$3(h),F=r.animators,B=[],W=0;W<T.length;W++){var Y=T[W],Z=s[Y];if(Z!=null&&o[Y]!=null&&(z||h[Y]))if(isObject$3(Z)&&!isArrayLike(Z)&&!isGradientObject(Z)){if(t){x||(o[Y]=Z,r.updateDuringAnimation(t));continue}animateToShallow(r,Y,o[Y],Z,l,h&&h[Y],v,x)}else B.push(Y);else x||(o[Y]=Z,r.updateDuringAnimation(t),B.push(Y))}var X=B.length;if(!M&&X)for(var te=0;te<F.length;te++){var oe=F[te];if(oe.targetName===t){var ae=oe.stopTracks(B);if(ae){var le=indexOf(F,oe);F.splice(le,1)}}}if(l.force||(B=filter(B,function(ye){return!isValueSame(s[ye],o[ye])}),X=B.length),X>0||l.force&&!v.length){var he=void 0,me=void 0,_e=void 0;if(x){me={},V&&(he={});for(var te=0;te<X;te++){var Y=B[te];me[Y]=o[Y],V?he[Y]=s[Y]:o[Y]=s[Y]}}else if(V){_e={};for(var te=0;te<X;te++){var Y=B[te];_e[Y]=cloneValue(o[Y]),copyValue(o,s,Y)}}var oe=new Animator$1(o,!1,!1,M?filter(F,function(Se){return Se.targetName===t}):null);oe.targetName=t,l.scope&&(oe.scope=l.scope),V&&he&&oe.whenWithKeys(0,he,B),_e&&oe.whenWithKeys(0,_e,B),oe.whenWithKeys(w??500,x?me:s,B).delay(C||0),r.addAnimator(oe,t),v.push(oe)}}const Element$1=Element;var Group$2=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s.isGroup=!0,s._children=[],s.attr(o),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(o){return this._children[o]},t.prototype.childOfName=function(o){for(var s=this._children,l=0;l<s.length;l++)if(s[l].name===o)return s[l]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(o){return o&&o!==this&&o.parent!==this&&(this._children.push(o),this._doAdd(o)),this},t.prototype.addBefore=function(o,s){if(o&&o!==this&&o.parent!==this&&s&&s.parent===this){var l=this._children,h=l.indexOf(s);h>=0&&(l.splice(h,0,o),this._doAdd(o))}return this},t.prototype.replace=function(o,s){var l=indexOf(this._children,o);return l>=0&&this.replaceAt(s,l),this},t.prototype.replaceAt=function(o,s){var l=this._children,h=l[s];if(o&&o!==this&&o.parent!==this&&o!==h){l[s]=o,h.parent=null;var v=this.__zr;v&&h.removeSelfFromZr(v),this._doAdd(o)}return this},t.prototype._doAdd=function(o){o.parent&&o.parent.remove(o),o.parent=this;var s=this.__zr;s&&s!==o.__zr&&o.addSelfToZr(s),s&&s.refresh()},t.prototype.remove=function(o){var s=this.__zr,l=this._children,h=indexOf(l,o);return h<0?this:(l.splice(h,1),o.parent=null,s&&o.removeSelfFromZr(s),s&&s.refresh(),this)},t.prototype.removeAll=function(){for(var o=this._children,s=this.__zr,l=0;l<o.length;l++){var h=o[l];s&&h.removeSelfFromZr(s),h.parent=null}return o.length=0,this},t.prototype.eachChild=function(o,s){for(var l=this._children,h=0;h<l.length;h++){var v=l[h];o.call(s,v,h)}return this},t.prototype.traverse=function(o,s){for(var l=0;l<this._children.length;l++){var h=this._children[l],v=o.call(s,h);h.isGroup&&!v&&h.traverse(o,s)}return this},t.prototype.addSelfToZr=function(o){r.prototype.addSelfToZr.call(this,o);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.addSelfToZr(o)}},t.prototype.removeSelfFromZr=function(o){r.prototype.removeSelfFromZr.call(this,o);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.removeSelfFromZr(o)}},t.prototype.getBoundingRect=function(o){for(var s=new BoundingRect$1(0,0,0,0),l=o||this._children,h=[],v=null,x=0;x<l.length;x++){var T=l[x];if(!(T.ignore||T.invisible)){var w=T.getBoundingRect(),C=T.getLocalTransform(h);C?(BoundingRect$1.applyTransform(s,w,C),v=v||s.clone(),v.union(s)):(v=v||w.clone(),v.union(w))}}return v||s},t}(Element$1);Group$2.prototype.type="group";const Group$3=Group$2;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var painterCtors={},instances$1={};function delInstance(r){delete instances$1[r]}function isDarkMode(r){if(!r)return!1;if(typeof r=="string")return lum(r,1)<DARK_MODE_THRESHOLD;if(r.colorStops){for(var t=r.colorStops,o=0,s=t.length,l=0;l<s;l++)o+=lum(t[l].color,1);return o/=s,o<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function r(t,o,s){var l=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,s=s||{},this.dom=o,this.id=t;var h=new Storage$1,v=s.renderer||"canvas";painterCtors[v]||(v=keys(painterCtors)[0]),s.useDirtyRect=s.useDirtyRect==null?!1:s.useDirtyRect;var x=new painterCtors[v](o,h,s,t),T=s.ssr||x.ssrOnly;this.storage=h,this.painter=x;var w=!env$1.node&&!env$1.worker&&!T?new HandlerProxy(x.getViewportRoot(),x.root):null,C=s.useCoarsePointer,M=C==null||C==="auto"?env$1.touchEventsSupported:!!C,V=44,z;M&&(z=retrieve2(s.pointerSize,V)),this.handler=new Handler$1(h,x,w,x.root,z),this.animation=new Animation$1({stage:{update:T?null:function(){return l._flush(!0)}}}),T||this.animation.start()}return r.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,o){this.painter.configLayer&&this.painter.configLayer(t,o),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=isDarkMode(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var o,s=getTime();this._needsRefresh&&(o=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(o=!0,this.refreshHoverImmediately());var l=getTime();o?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:l-s})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,o){return this.handler.findHover(t,o)},r.prototype.on=function(t,o,s){return this.handler.on(t,o,s),this},r.prototype.off=function(t,o){this.handler.off(t,o)},r.prototype.trigger=function(t,o){this.handler.trigger(t,o)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),o=0;o<t.length;o++)t[o]instanceof Group$3&&t[o].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},r}();function init$1(r,t){var o=new ZRender(guid(),r,t);return instances$1[o.id]=o,o}function dispose$1(r){r.dispose()}function disposeAll(){for(var r in instances$1)instances$1.hasOwnProperty(r)&&instances$1[r].dispose();instances$1={}}function getInstance(r){return instances$1[r]}function registerPainter(r,t){painterCtors[r]=t}var version$1="5.4.3";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(r){return r.replace(/^\s+|\s+$/g,"")}function linearMap$2(r,t,o,s){var l=t[0],h=t[1],v=o[0],x=o[1],T=h-l,w=x-v;if(T===0)return w===0?v:(v+x)/2;if(s)if(T>0){if(r<=l)return v;if(r>=h)return x}else{if(r>=l)return v;if(r<=h)return x}else{if(r===l)return v;if(r===h)return x}return(r-l)/T*w+v}function parsePercent(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return isString(r)?_trim(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function round$1(r,t,o){return t==null&&(t=10),t=Math.min(Math.max(0,t),ROUND_SUPPORTED_PRECISION_MAX),r=(+r).toFixed(t),o?r:+r}function asc$2(r){return r.sort(function(t,o){return t-o}),r}function getPrecision(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,o=0;o<15;o++,t*=10)if(Math.round(r*t)/t===r)return o}return getPrecisionSafe(r)}function getPrecisionSafe(r){var t=r.toString().toLowerCase(),o=t.indexOf("e"),s=o>0?+t.slice(o+1):0,l=o>0?o:t.length,h=t.indexOf("."),v=h<0?0:l-1-h;return Math.max(0,v-s)}function getPixelPrecision(r,t){var o=Math.log,s=Math.LN10,l=Math.floor(o(r[1]-r[0])/s),h=Math.round(o(Math.abs(t[1]-t[0]))/s),v=Math.min(Math.max(-l+h,0),20);return isFinite(v)?v:20}function getPercentWithPrecision(r,t,o){if(!r[t])return 0;var s=getPercentSeats(r,o);return s[t]||0}function getPercentSeats(r,t){var o=reduce(r,function(z,F){return z+(isNaN(F)?0:F)},0);if(o===0)return[];for(var s=Math.pow(10,t),l=map$2(r,function(z){return(isNaN(z)?0:z)/o*s*100}),h=s*100,v=map$2(l,function(z){return Math.floor(z)}),x=reduce(v,function(z,F){return z+F},0),T=map$2(l,function(z,F){return z-v[F]});x<h;){for(var w=Number.NEGATIVE_INFINITY,C=null,M=0,V=T.length;M<V;++M)T[M]>w&&(w=T[M],C=M);++v[C],T[C]=0,++x}return map$2(v,function(z){return z/s})}function addSafe(r,t){var o=Math.max(getPrecision(r),getPrecision(t)),s=r+t;return o>ROUND_SUPPORTED_PRECISION_MAX?s:round$1(s,o)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(r){var t=Math.PI*2;return(r%t+t)%t}function isRadianAroundZero(r){return r>-RADIAN_EPSILON&&r<RADIAN_EPSILON}var TIME_REG=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function parseDate(r){if(r instanceof Date)return r;if(isString(r)){var t=TIME_REG.exec(r);if(!t)return new Date(NaN);if(t[8]){var o=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(o-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,o,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function quantity(r){return Math.pow(10,quantityExponent(r))}function quantityExponent(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function nice(r,t){var o=quantityExponent(r),s=Math.pow(10,o),l=r/s,h;return t?l<1.5?h=1:l<2.5?h=2:l<4?h=3:l<7?h=5:h=10:l<1?h=1:l<2?h=2:l<3?h=3:l<5?h=5:h=10,r=h*s,o>=-20?+r.toFixed(o<0?-o:0):r}function quantile(r,t){var o=(r.length-1)*t+1,s=Math.floor(o),l=+r[s-1],h=o-s;return h?l+h*(r[s]-l):l}function reformIntervals(r){r.sort(function(T,w){return x(T,w,0)?-1:1});for(var t=-1/0,o=1,s=0;s<r.length;){for(var l=r[s].interval,h=r[s].close,v=0;v<2;v++)l[v]<=t&&(l[v]=t,h[v]=v?1:1-o),t=l[v],o=h[v];l[0]===l[1]&&h[0]*h[1]!==1?r.splice(s,1):s++}return r;function x(T,w,C){return T.interval[C]<w.interval[C]||T.interval[C]===w.interval[C]&&(T.close[C]-w.close[C]===(C?-1:1)||!C&&x(T,w,1))}}function numericToNumber(r){var t=parseFloat(r);return t==r&&(t!==0||!isString(r)||r.indexOf("x")<=0)?t:NaN}function isNumeric(r){return!isNaN(numericToNumber(r))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor(r,t){return t===0?r:getGreatestCommonDividor(t,r%t)}function getLeastCommonMultiple(r,t){return r==null?t:t==null?r:r*t/getGreatestCommonDividor(r,t)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog(r,t,o){if(hasConsole){if(o){if(storedLogs[t])return;storedLogs[t]=!0}console[r](ECHARTS_PREFIX+t)}}function warn(r,t){outputLog("warn",r,t)}function throwError(r){throw new Error(r)}function interpolateNumber(r,t,o){return(t-r)*o+r}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray(r){return r instanceof Array?r:r==null?[]:[r]}function defaultEmphasis(r,t,o){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var s=0,l=o.length;s<l;s++){var h=o[s];!r.emphasis[t].hasOwnProperty(h)&&r[t].hasOwnProperty(h)&&(r.emphasis[t][h]=r[t][h])}}}var TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function getDataItemValue(r){return isObject$3(r)&&!isArray$1(r)&&!(r instanceof Date)?r.value:r}function isDataItemOption(r){return isObject$3(r)&&!(r instanceof Array)}function mappingToExists(r,t,o){var s=o==="normalMerge",l=o==="replaceMerge",h=o==="replaceAll";r=r||[],t=(t||[]).slice();var v=createHashMap();each$c(t,function(T,w){if(!isObject$3(T)){t[w]=null;return}});var x=prepareResult(r,v,o);return(s||l)&&mappingById(x,r,v,t),s&&mappingByName(x,t),s||l?mappingByIndex(x,t,l):h&&mappingInReplaceAllMode(x,t),makeIdAndName(x),x}function prepareResult(r,t,o){var s=[];if(o==="replaceAll")return s;for(var l=0;l<r.length;l++){var h=r[l];h&&h.id!=null&&t.set(h.id,l),s.push({existing:o==="replaceMerge"||isComponentIdInternal(h)?null:h,newOption:null,keyInfo:null,brandNew:null})}return s}function mappingById(r,t,o,s){each$c(s,function(l,h){if(!(!l||l.id==null)){var v=makeComparableKey(l.id),x=o.get(v);if(x!=null){var T=r[x];assert(!T.newOption,'Duplicated option on id "'+v+'".'),T.newOption=l,T.existing=t[x],s[h]=null}}})}function mappingByName(r,t){each$c(t,function(o,s){if(!(!o||o.name==null))for(var l=0;l<r.length;l++){var h=r[l].existing;if(!r[l].newOption&&h&&(h.id==null||o.id==null)&&!isComponentIdInternal(o)&&!isComponentIdInternal(h)&&keyExistAndEqual("name",h,o)){r[l].newOption=o,t[s]=null;return}}})}function mappingByIndex(r,t,o){each$c(t,function(s){if(s){for(var l,h=0;(l=r[h])&&(l.newOption||isComponentIdInternal(l.existing)||l.existing&&s.id!=null&&!keyExistAndEqual("id",s,l.existing));)h++;l?(l.newOption=s,l.brandNew=o):r.push({newOption:s,brandNew:o,existing:null,keyInfo:null}),h++}})}function mappingInReplaceAllMode(r,t){each$c(t,function(o){r.push({newOption:o,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(r){var t=createHashMap();each$c(r,function(o){var s=o.existing;s&&t.set(s.id,o)}),each$c(r,function(o){var s=o.newOption;assert(!s||s.id==null||!t.get(s.id)||t.get(s.id)===o,"id duplicates: "+(s&&s.id)),s&&s.id!=null&&t.set(s.id,o),!o.keyInfo&&(o.keyInfo={})}),each$c(r,function(o,s){var l=o.existing,h=o.newOption,v=o.keyInfo;if(isObject$3(h)){if(v.name=h.name!=null?makeComparableKey(h.name):l?l.name:DUMMY_COMPONENT_NAME_PREFIX+s,l)v.id=makeComparableKey(l.id);else if(h.id!=null)v.id=makeComparableKey(h.id);else{var x=0;do v.id="\0"+v.name+"\0"+x++;while(t.get(v.id))}t.set(v.id,o)}})}function keyExistAndEqual(r,t,o){var s=convertOptionIdName(t[r],null),l=convertOptionIdName(o[r],null);return s!=null&&l!=null&&s===l}function makeComparableKey(r){return convertOptionIdName(r,"")}function convertOptionIdName(r,t){return r==null?t:isString(r)?r:isNumber(r)||isStringSafe(r)?r+"":t}function isNameSpecified(r){var t=r.name;return!!(t&&t.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal(r){return r&&r.id!=null&&makeComparableKey(r.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId(r){return INTERNAL_COMPONENT_ID_PREFIX+r}function setComponentTypeToKeyInfo(r,t,o){each$c(r,function(s){var l=s.newOption;isObject$3(l)&&(s.keyInfo.mainType=t,s.keyInfo.subType=determineSubType(t,l,s.existing,o))})}function determineSubType(r,t,o,s){var l=t.type?t.type:o?o.subType:s.determineSubType(r,t);return l}function compressBatches(r,t){var o={},s={};return l(r||[],o),l(t||[],s,o),[h(o),h(s)];function l(v,x,T){for(var w=0,C=v.length;w<C;w++){var M=convertOptionIdName(v[w].seriesId,null);if(M==null)return;for(var V=normalizeToArray(v[w].dataIndex),z=T&&T[M],F=0,B=V.length;F<B;F++){var W=V[F];z&&z[W]?z[W]=null:(x[M]||(x[M]={}))[W]=1}}}function h(v,x){var T=[];for(var w in v)if(v.hasOwnProperty(w)&&v[w]!=null)if(x)T.push(+w);else{var C=h(v[w],!0);C.length&&T.push({seriesId:w,dataIndex:C})}return T}}function queryDataIndex(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return isArray$1(t.dataIndex)?map$2(t.dataIndex,function(o){return r.indexOfRawIndex(o)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return isArray$1(t.name)?map$2(t.name,function(o){return r.indexOfName(o)}):r.indexOfName(t.name)}function makeInner(){var r="__ec_inner_"+innerUniqueIndex++;return function(t){return t[r]||(t[r]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1(r,t,o){var s=preParseFinder(t,o),l=s.mainTypeSpecified,h=s.queryOptionMap,v=s.others,x=v,T=o?o.defaultMainType:null;return!l&&T&&h.set(T,{}),h.each(function(w,C){var M=queryReferringComponents(r,C,w,{useDefault:T===C,enableAll:o&&o.enableAll!=null?o.enableAll:!0,enableNone:o&&o.enableNone!=null?o.enableNone:!0});x[C+"Models"]=M.models,x[C+"Model"]=M.models[0]}),x}function preParseFinder(r,t){var o;if(isString(r)){var s={};s[r+"Index"]=0,o=s}else o=r;var l=createHashMap(),h={},v=!1;return each$c(o,function(x,T){if(T==="dataIndex"||T==="dataIndexInside"){h[T]=x;return}var w=T.match(/^(\w+)(Index|Id|Name)$/)||[],C=w[1],M=(w[2]||"").toLowerCase();if(!(!C||!M||t&&t.includeMainTypes&&indexOf(t.includeMainTypes,C)<0)){v=v||!!C;var V=l.get(C)||l.set(C,{});V[M]=x}}),{mainTypeSpecified:v,queryOptionMap:l,others:h}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents(r,t,o,s){s=s||SINGLE_REFERRING;var l=o.index,h=o.id,v=o.name,x={models:null,specified:l!=null||h!=null||v!=null};if(!x.specified){var T=void 0;return x.models=s.useDefault&&(T=r.getComponent(t))?[T]:[],x}return l==="none"||l===!1?(assert(s.enableNone,'`"none"` or `false` is not a valid value on index option.'),x.models=[],x):(l==="all"&&(assert(s.enableAll,'`"all"` is not a valid value on index option.'),l=h=v=null),x.models=r.queryComponents({mainType:t,index:l,id:h,name:v}),x)}function setAttribute(r,t,o){r.setAttribute?r.setAttribute(t,o):r[t]=o}function getAttribute(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function getTooltipRenderMode(r){return r==="auto"?env$1.domSupported?"html":"richText":r||"html"}function interpolateRawValues(r,t,o,s,l){var h=t==null||t==="auto";if(s==null)return s;if(isNumber(s)){var v=interpolateNumber(o||0,s,l);return round$1(v,h?Math.max(getPrecision(o||0),getPrecision(s)):t)}else{if(isString(s))return l<1?o:s;for(var x=[],T=o,w=s,C=Math.max(T?T.length:0,w.length),M=0;M<C;++M){var V=r.getDimensionInfo(M);if(V&&V.type==="ordinal")x[M]=(l<1&&T?T:w)[M];else{var z=T&&T[M]?T[M]:0,F=w[M],v=interpolateNumber(z,F,l);x[M]=round$1(v,h?Math.max(getPrecision(z),getPrecision(F)):t)}}return x}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType(r){var t={main:"",sub:""};if(r){var o=r.split(TYPE_DELIMITER);t.main=o[0]||"",t.sub=o[1]||""}return t}function checkClassType(r){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function isExtendedClass(r){return!!(r&&r[IS_EXTENDED_CLASS])}function enableClassExtend(r,t){r.$constructor=r,r.extend=function(o){var s=this,l;return isESClass(s)?l=function(h){__extends(v,h);function v(){return h.apply(this,arguments)||this}return v}(s):(l=function(){(o.$constructor||s).apply(this,arguments)},inherits(l,this)),extend(l.prototype,o),l[IS_EXTENDED_CLASS]=!0,l.extend=this.extend,l.superCall=superCall,l.superApply=superApply,l.superClass=s,l}}function isESClass(r){return isFunction(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function mountExtend(r,t){r.extend=t.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck(r){var t=["__\0is_clz",classBase++].join("_");r.prototype[t]=!0,r.isInstance=function(o){return!!(o&&o[t])}}function superCall(r,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return this.superClass.prototype[t].apply(r,o)}function superApply(r,t,o){return this.superClass.prototype[t].apply(r,o)}function enableClassManagement(r){var t={};r.registerClass=function(s){var l=s.type||s.prototype.type;if(l){checkClassType(l),s.prototype.type=l;var h=parseClassType(l);if(!h.sub)t[h.main]=s;else if(h.sub!==IS_CONTAINER){var v=o(h);v[h.sub]=s}}return s},r.getClass=function(s,l,h){var v=t[s];if(v&&v[IS_CONTAINER]&&(v=l?v[l]:null),h&&!v)throw new Error(l?"Component "+s+"."+(l||"")+" is used but not imported.":s+".type should be specified.");return v},r.getClassesByMainType=function(s){var l=parseClassType(s),h=[],v=t[l.main];return v&&v[IS_CONTAINER]?each$c(v,function(x,T){T!==IS_CONTAINER&&h.push(x)}):h.push(v),h},r.hasClass=function(s){var l=parseClassType(s);return!!t[l.main]},r.getAllClassMainTypes=function(){var s=[];return each$c(t,function(l,h){s.push(h)}),s},r.hasSubTypes=function(s){var l=parseClassType(s),h=t[l.main];return h&&h[IS_CONTAINER]};function o(s){var l=t[s.main];return(!l||!l[IS_CONTAINER])&&(l=t[s.main]={},l[IS_CONTAINER]=!0),l}}function makeStyleMapper(r,t){for(var o=0;o<r.length;o++)r[o][1]||(r[o][1]=r[o][0]);return t=t||!1,function(s,l,h){for(var v={},x=0;x<r.length;x++){var T=r[x][1];if(!(l&&indexOf(l,T)>=0||h&&indexOf(h,T)<0)){var w=s.getShallow(T,t);w!=null&&(v[r[x][0]]=w)}}return v}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function r(){}return r.prototype.getAreaStyle=function(t,o){return getAreaStyle(this,t,o)},r}(),globalImageCache=new LRU$1(50);function findExistImage(r){if(typeof r=="string"){var t=globalImageCache.get(r);return t&&t.image}else return r}function createOrUpdateImage(r,t,o,s,l){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!o)return t;var h=globalImageCache.get(r),v={hostEl:o,cb:s,cbPayload:l};return h?(t=h.image,!isImageReady(t)&&h.pending.push(v)):(t=platformApi.loadImage(r,imageOnLoad,imageOnLoad),t.__zrImageSrc=r,globalImageCache.put(r,t.__cachedImgObj={image:t,pending:[v]})),t}else return r;else return t}function imageOnLoad(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var o=r.pending[t],s=o.cb;s&&s(this,o.cbPayload),o.hostEl.dirty()}r.pending.length=0}function isImageReady(r){return r&&r.width&&r.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText(r,t,o,s,l){if(!t)return"";var h=(r+"").split(`
|
||
`);l=prepareTruncateOptions(t,o,s,l);for(var v=0,x=h.length;v<x;v++)h[v]=truncateSingleLine(h[v],l);return h.join(`
|
||
`)}function prepareTruncateOptions(r,t,o,s){s=s||{};var l=extend({},s);l.font=t,o=retrieve2(o,"..."),l.maxIterations=retrieve2(s.maxIterations,2);var h=l.minChar=retrieve2(s.minChar,0);l.cnCharWidth=getWidth("国",t);var v=l.ascCharWidth=getWidth("a",t);l.placeholder=retrieve2(s.placeholder,"");for(var x=r=Math.max(0,r-1),T=0;T<h&&x>=v;T++)x-=v;var w=getWidth(o,t);return w>x&&(o="",w=0),x=r-w,l.ellipsis=o,l.ellipsisWidth=w,l.contentWidth=x,l.containerWidth=r,l}function truncateSingleLine(r,t){var o=t.containerWidth,s=t.font,l=t.contentWidth;if(!o)return"";var h=getWidth(r,s);if(h<=o)return r;for(var v=0;;v++){if(h<=l||v>=t.maxIterations){r+=t.ellipsis;break}var x=v===0?estimateLength(r,l,t.ascCharWidth,t.cnCharWidth):h>0?Math.floor(r.length*l/h):0;r=r.substr(0,x),h=getWidth(r,s)}return r===""&&(r=t.placeholder),r}function estimateLength(r,t,o,s){for(var l=0,h=0,v=r.length;h<v&&l<t;h++){var x=r.charCodeAt(h);l+=0<=x&&x<=127?o:s}return h}function parsePlainText(r,t){r!=null&&(r+="");var o=t.overflow,s=t.padding,l=t.font,h=o==="truncate",v=getLineHeight(l),x=retrieve2(t.lineHeight,v),T=!!t.backgroundColor,w=t.lineOverflow==="truncate",C=t.width,M;C!=null&&(o==="break"||o==="breakAll")?M=r?wrapText(r,t.font,C,o==="breakAll",0).lines:[]:M=r?r.split(`
|
||
`):[];var V=M.length*x,z=retrieve2(t.height,V);if(V>z&&w){var F=Math.floor(z/x);M=M.slice(0,F)}if(r&&h&&C!=null)for(var B=prepareTruncateOptions(C,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),W=0;W<M.length;W++)M[W]=truncateSingleLine(M[W],B);for(var Y=z,Z=0,W=0;W<M.length;W++)Z=Math.max(getWidth(M[W],l),Z);C==null&&(C=Z);var X=Z;return s&&(Y+=s[0]+s[2],X+=s[1]+s[3],C+=s[1]+s[3]),T&&(X=C),{lines:M,height:z,outerWidth:X,outerHeight:Y,lineHeight:x,calculatedLineHeight:v,contentWidth:Z,contentHeight:V,width:C}}var RichTextToken=function(){function r(){}return r}(),RichTextLine=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),RichTextContentBlock=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function parseRichText(r,t){var o=new RichTextContentBlock;if(r!=null&&(r+=""),!r)return o;for(var s=t.width,l=t.height,h=t.overflow,v=(h==="break"||h==="breakAll")&&s!=null?{width:s,accumWidth:0,breakAll:h==="breakAll"}:null,x=STYLE_REG.lastIndex=0,T;(T=STYLE_REG.exec(r))!=null;){var w=T.index;w>x&&pushTokens(o,r.substring(x,w),t,v),pushTokens(o,T[2],t,v,T[1]),x=STYLE_REG.lastIndex}x<r.length&&pushTokens(o,r.substring(x,r.length),t,v);var C=[],M=0,V=0,z=t.padding,F=h==="truncate",B=t.lineOverflow==="truncate";function W(Me,Ie,$e){Me.width=Ie,Me.lineHeight=$e,M+=$e,V=Math.max(V,Ie)}e:for(var Y=0;Y<o.lines.length;Y++){for(var Z=o.lines[Y],X=0,te=0,oe=0;oe<Z.tokens.length;oe++){var ae=Z.tokens[oe],le=ae.styleName&&t.rich[ae.styleName]||{},he=ae.textPadding=le.padding,me=he?he[1]+he[3]:0,_e=ae.font=le.font||t.font;ae.contentHeight=getLineHeight(_e);var ye=retrieve2(le.height,ae.contentHeight);if(ae.innerHeight=ye,he&&(ye+=he[0]+he[2]),ae.height=ye,ae.lineHeight=retrieve3(le.lineHeight,t.lineHeight,ye),ae.align=le&&le.align||t.align,ae.verticalAlign=le&&le.verticalAlign||"middle",B&&l!=null&&M+ae.lineHeight>l){oe>0?(Z.tokens=Z.tokens.slice(0,oe),W(Z,te,X),o.lines=o.lines.slice(0,Y+1)):o.lines=o.lines.slice(0,Y);break e}var Se=le.width,Te=Se==null||Se==="auto";if(typeof Se=="string"&&Se.charAt(Se.length-1)==="%")ae.percentWidth=Se,C.push(ae),ae.contentWidth=getWidth(ae.text,_e);else{if(Te){var we=le.backgroundColor,Ee=we&&we.image;Ee&&(Ee=findExistImage(Ee),isImageReady(Ee)&&(ae.width=Math.max(ae.width,Ee.width*ye/Ee.height)))}var Ce=F&&s!=null?s-te:null;Ce!=null&&Ce<ae.width?!Te||Ce<me?(ae.text="",ae.width=ae.contentWidth=0):(ae.text=truncateText(ae.text,Ce-me,_e,t.ellipsis,{minChar:t.truncateMinChar}),ae.width=ae.contentWidth=getWidth(ae.text,_e)):ae.contentWidth=getWidth(ae.text,_e)}ae.width+=me,te+=ae.width,le&&(X=Math.max(X,ae.lineHeight))}W(Z,te,X)}o.outerWidth=o.width=retrieve2(s,V),o.outerHeight=o.height=retrieve2(l,M),o.contentHeight=M,o.contentWidth=V,z&&(o.outerWidth+=z[1]+z[3],o.outerHeight+=z[0]+z[2]);for(var Y=0;Y<C.length;Y++){var ae=C[Y],ke=ae.percentWidth;ae.width=parseInt(ke,10)/100*o.width}return o}function pushTokens(r,t,o,s,l){var h=t==="",v=l&&o.rich[l]||{},x=r.lines,T=v.font||o.font,w=!1,C,M;if(s){var V=v.padding,z=V?V[1]+V[3]:0;if(v.width!=null&&v.width!=="auto"){var F=parsePercent$1(v.width,s.width)+z;x.length>0&&F+s.accumWidth>s.width&&(C=t.split(`
|
||
`),w=!0),s.accumWidth=F}else{var B=wrapText(t,T,s.width,s.breakAll,s.accumWidth);s.accumWidth=B.accumWidth+z,M=B.linesWidths,C=B.lines}}else C=t.split(`
|
||
`);for(var W=0;W<C.length;W++){var Y=C[W],Z=new RichTextToken;if(Z.styleName=l,Z.text=Y,Z.isLineHolder=!Y&&!h,typeof v.width=="number"?Z.width=v.width:Z.width=M?M[W]:getWidth(Y,T),!W&&!w){var X=(x[x.length-1]||(x[0]=new RichTextLine)).tokens,te=X.length;te===1&&X[0].isLineHolder?X[0]=Z:(Y||!te||h)&&X.push(Z)}else x.push(new RichTextLine([Z]))}}function isAlphabeticLetter(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function isWordBreakChar(r){return isAlphabeticLetter(r)?!!breakCharMap[r]:!0}function wrapText(r,t,o,s,l){for(var h=[],v=[],x="",T="",w=0,C=0,M=0;M<r.length;M++){var V=r.charAt(M);if(V===`
|
||
`){T&&(x+=T,C+=w),h.push(x),v.push(C),x="",T="",w=0,C=0;continue}var z=getWidth(V,t),F=s?!1:!isWordBreakChar(V);if(h.length?C+z>o:l+C+z>o){C?(x||T)&&(F?(x||(x=T,T="",w=0,C=w),h.push(x),v.push(C-w),T+=V,w+=z,x="",C=w):(T&&(x+=T,T="",w=0),h.push(x),v.push(C),x=V,C=z)):F?(h.push(T),v.push(w),T=V,w=z):(h.push(V),v.push(z));continue}C+=z,F?(T+=V,w+=z):(T&&(x+=T,T="",w=0),x+=V)}return!h.length&&!x&&(x=r,T="",w=0),T&&(x+=T),x&&(h.push(x),v.push(C)),h.length===1&&(C+=l),{accumWidth:C,lines:h,linesWidths:v}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype._init=function(o){for(var s=keys(o),l=0;l<s.length;l++){var h=s[l];h==="style"?this.useStyle(o[h]):r.prototype.attrKV.call(this,h,o[h])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(o,s,l,h){var v=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,o,s)||v&&!v[0]&&!v[3])return!1;if(l&&this.__clipPaths){for(var x=0;x<this.__clipPaths.length;++x)if(this.__clipPaths[x].isZeroArea())return!1}if(h&&this.parent)for(var T=this.parent;T;){if(T.ignore)return!1;T=T.parent}return!0},t.prototype.contain=function(o,s){return this.rectContain(o,s)},t.prototype.traverse=function(o,s){o.call(s,this)},t.prototype.rectContain=function(o,s){var l=this.transformCoordToLocal(o,s),h=this.getBoundingRect();return h.contain(l[0],l[1])},t.prototype.getPaintRect=function(){var o=this._paintRect;if(!this._paintRect||this.__dirty){var s=this.transform,l=this.getBoundingRect(),h=this.style,v=h.shadowBlur||0,x=h.shadowOffsetX||0,T=h.shadowOffsetY||0;o=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),s?BoundingRect$1.applyTransform(o,l,s):o.copy(l),(v||x||T)&&(o.width+=v*2+Math.abs(x),o.height+=v*2+Math.abs(T),o.x=Math.min(o.x,o.x+x-v),o.y=Math.min(o.y,o.y+T-v));var w=this.dirtyRectTolerance;o.isZero()||(o.x=Math.floor(o.x-w),o.y=Math.floor(o.y-w),o.width=Math.ceil(o.width+1+w*2),o.height=Math.ceil(o.height+1+w*2))}return o},t.prototype.setPrevPaintRect=function(o){o?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(o)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(o){return this.animate("style",o)},t.prototype.updateDuringAnimation=function(o){o==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(o,s){o!=="style"?r.prototype.attrKV.call(this,o,s):this.style?this.setStyle(s):this.useStyle(s)},t.prototype.setStyle=function(o,s){return typeof o=="string"?this.style[o]=s:extend(this.style,o),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(o){o||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},t.prototype.createStyle=function(o){return createObject(DEFAULT_COMMON_STYLE,o)},t.prototype.useStyle=function(o){o[STYLE_MAGIC_KEY]||(o=this.createStyle(o)),this.__inHover?this.__hoverStyle=o:this.style=o,this.dirtyStyle()},t.prototype.isStyleObject=function(o){return o[STYLE_MAGIC_KEY]},t.prototype._innerSaveToNormal=function(o){r.prototype._innerSaveToNormal.call(this,o);var s=this._normalState;o.style&&!s.style&&(s.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(o,s,PRIMARY_STATES_KEYS)},t.prototype._applyStateObj=function(o,s,l,h,v,x){r.prototype._applyStateObj.call(this,o,s,l,h,v,x);var T=!(s&&h),w;if(s&&s.style?v?h?w=s.style:(w=this._mergeStyle(this.createStyle(),l.style),this._mergeStyle(w,s.style)):(w=this._mergeStyle(this.createStyle(),h?this.style:l.style),this._mergeStyle(w,s.style)):T&&(w=l.style),w)if(v){var C=this.style;if(this.style=this.createStyle(T?{}:C),T)for(var M=keys(C),V=0;V<M.length;V++){var z=M[V];z in w&&(w[z]=w[z],this.style[z]=C[z])}for(var F=keys(w),V=0;V<F.length;V++){var z=F[V];this.style[z]=this.style[z]}this._transitionState(o,{style:w},x,this.getAnimationStyleProps())}else this.useStyle(w);for(var B=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,V=0;V<B.length;V++){var z=B[V];s&&s[z]!=null?this[z]=s[z]:T&&l[z]!=null&&(this[z]=l[z])}},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,h=0;h<o.length;h++){var v=o[h];v.style&&(l=l||{},this._mergeStyle(l,v.style))}return l&&(s.style=l),s},t.prototype._mergeStyle=function(o,s){return extend(o,s),o},t.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},t.initDefaultProps=function(){var o=t.prototype;o.type="displayable",o.invisible=!1,o.z=0,o.z2=0,o.zlevel=0,o.culling=!1,o.cursor="pointer",o.rectHover=!1,o.incremental=!1,o._rect=null,o.dirtyRectTolerance=0,o.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),t}(Element$1),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled(r,t,o){return tmpRect.copy(r.getBoundingRect()),r.transform&&tmpRect.applyTransform(r.transform),viewRect.width=t,viewRect.height=o,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine(r,t,o,s,l,h){l[0]=mathMin$7(r,o),l[1]=mathMin$7(t,s),h[0]=mathMax$7(r,o),h[1]=mathMax$7(t,s)}var xDim=[],yDim=[];function fromCubic(r,t,o,s,l,h,v,x,T,w){var C=cubicExtrema,M=cubicAt,V=C(r,o,l,v,xDim);T[0]=1/0,T[1]=1/0,w[0]=-1/0,w[1]=-1/0;for(var z=0;z<V;z++){var F=M(r,o,l,v,xDim[z]);T[0]=mathMin$7(F,T[0]),w[0]=mathMax$7(F,w[0])}V=C(t,s,h,x,yDim);for(var z=0;z<V;z++){var B=M(t,s,h,x,yDim[z]);T[1]=mathMin$7(B,T[1]),w[1]=mathMax$7(B,w[1])}T[0]=mathMin$7(r,T[0]),w[0]=mathMax$7(r,w[0]),T[0]=mathMin$7(v,T[0]),w[0]=mathMax$7(v,w[0]),T[1]=mathMin$7(t,T[1]),w[1]=mathMax$7(t,w[1]),T[1]=mathMin$7(x,T[1]),w[1]=mathMax$7(x,w[1])}function fromQuadratic(r,t,o,s,l,h,v,x){var T=quadraticExtremum,w=quadraticAt,C=mathMax$7(mathMin$7(T(r,o,l),1),0),M=mathMax$7(mathMin$7(T(t,s,h),1),0),V=w(r,o,l,C),z=w(t,s,h,M);v[0]=mathMin$7(r,l,V),v[1]=mathMin$7(t,h,z),x[0]=mathMax$7(r,l,V),x[1]=mathMax$7(t,h,z)}function fromArc(r,t,o,s,l,h,v,x,T){var w=min$1,C=max$1,M=Math.abs(l-h);if(M%PI2$6<1e-4&&M>1e-4){x[0]=r-o,x[1]=t-s,T[0]=r+o,T[1]=t+s;return}if(start[0]=mathCos$3(l)*o+r,start[1]=mathSin$3(l)*s+t,end[0]=mathCos$3(h)*o+r,end[1]=mathSin$3(h)*s+t,w(x,start,end),C(T,start,end),l=l%PI2$6,l<0&&(l=l+PI2$6),h=h%PI2$6,h<0&&(h=h+PI2$6),l>h&&!v?h+=PI2$6:l<h&&v&&(l+=PI2$6),v){var V=h;h=l,l=V}for(var z=0;z<h;z+=Math.PI/2)z>l&&(extremity[0]=mathCos$3(z)*o+r,extremity[1]=mathSin$3(z)*s+t,w(x,extremity,x),C(T,extremity,T))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(r){var t=Math.round(r/PI$4*1e8)/1e8;return t%2*PI$4}function normalizeArcAngles(r,t){var o=modPI2(r[0]);o<0&&(o+=PI2$5);var s=o-r[0],l=r[1];l+=s,!t&&l-o>=PI2$5?l=o+PI2$5:t&&o-l>=PI2$5?l=o-PI2$5:!t&&o>l?l=o+(PI2$5-modPI2(o-l)):t&&o<l&&(l=o-(PI2$5-modPI2(l-o))),r[0]=o,r[1]=l}var PathProxy=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,o,s){s=s||0,s>0&&(this._ux=mathAbs$1(s/devicePixelRatio/t)||0,this._uy=mathAbs$1(s/devicePixelRatio/o)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,o){return this._drawPendingPt(),this.addData(CMD$2.M,t,o),this._ctx&&this._ctx.moveTo(t,o),this._x0=t,this._y0=o,this._xi=t,this._yi=o,this},r.prototype.lineTo=function(t,o){var s=mathAbs$1(t-this._xi),l=mathAbs$1(o-this._yi),h=s>this._ux||l>this._uy;if(this.addData(CMD$2.L,t,o),this._ctx&&h&&this._ctx.lineTo(t,o),h)this._xi=t,this._yi=o,this._pendingPtDist=0;else{var v=s*s+l*l;v>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=o,this._pendingPtDist=v)}return this},r.prototype.bezierCurveTo=function(t,o,s,l,h,v){return this._drawPendingPt(),this.addData(CMD$2.C,t,o,s,l,h,v),this._ctx&&this._ctx.bezierCurveTo(t,o,s,l,h,v),this._xi=h,this._yi=v,this},r.prototype.quadraticCurveTo=function(t,o,s,l){return this._drawPendingPt(),this.addData(CMD$2.Q,t,o,s,l),this._ctx&&this._ctx.quadraticCurveTo(t,o,s,l),this._xi=s,this._yi=l,this},r.prototype.arc=function(t,o,s,l,h,v){this._drawPendingPt(),tmpAngles[0]=l,tmpAngles[1]=h,normalizeArcAngles(tmpAngles,v),l=tmpAngles[0],h=tmpAngles[1];var x=h-l;return this.addData(CMD$2.A,t,o,s,s,l,x,0,v?0:1),this._ctx&&this._ctx.arc(t,o,s,l,h,v),this._xi=mathCos$2(h)*s+t,this._yi=mathSin$2(h)*s+o,this},r.prototype.arcTo=function(t,o,s,l,h){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,o,s,l,h),this},r.prototype.rect=function(t,o,s,l){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,o,s,l),this.addData(CMD$2.R,t,o,s,l),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var t=this._ctx,o=this._x0,s=this._y0;return t&&t.closePath(),this._xi=o,this._yi=s,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var o=t.length;!(this.data&&this.data.length===o)&&hasTypedArray&&(this.data=new Float32Array(o));for(var s=0;s<o;s++)this.data[s]=t[s];this._len=o},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var o=t.length,s=0,l=this._len,h=0;h<o;h++)s+=t[h].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(l+s));for(var h=0;h<o;h++)for(var v=t[h].data,x=0;x<v.length;x++)this.data[l++]=v[x];this._len=l},r.prototype.addData=function(t,o,s,l,h,v,x,T,w){if(this._saveData){var C=this.data;this._len+arguments.length>C.length&&(this._expandData(),C=this.data);for(var M=0;M<arguments.length;M++)C[this._len++]=arguments[M]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],o=0;o<this._len;o++)t[o]=this.data[o];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var t=this.data,o=0,s=0,l=0,h=0,v;for(v=0;v<this._len;){var x=t[v++],T=v===1;switch(T&&(o=t[v],s=t[v+1],l=o,h=s),x){case CMD$2.M:o=l=t[v++],s=h=t[v++],min2[0]=l,min2[1]=h,max2[0]=l,max2[1]=h;break;case CMD$2.L:fromLine(o,s,t[v],t[v+1],min2,max2),o=t[v++],s=t[v++];break;case CMD$2.C:fromCubic(o,s,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],min2,max2),o=t[v++],s=t[v++];break;case CMD$2.Q:fromQuadratic(o,s,t[v++],t[v++],t[v],t[v+1],min2,max2),o=t[v++],s=t[v++];break;case CMD$2.A:var w=t[v++],C=t[v++],M=t[v++],V=t[v++],z=t[v++],F=t[v++]+z;v+=1;var B=!t[v++];T&&(l=mathCos$2(z)*M+w,h=mathSin$2(z)*V+C),fromArc(w,C,M,V,z,F,B,min2,max2),o=mathCos$2(F)*M+w,s=mathSin$2(F)*V+C;break;case CMD$2.R:l=o=t[v++],h=s=t[v++];var W=t[v++],Y=t[v++];fromLine(l,h,l+W,h+Y,min2,max2);break;case CMD$2.Z:o=l,s=h;break}min$1(min,min,min2),max$1(max,max,max2)}return v===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},r.prototype._calculateLength=function(){var t=this.data,o=this._len,s=this._ux,l=this._uy,h=0,v=0,x=0,T=0;this._pathSegLen||(this._pathSegLen=[]);for(var w=this._pathSegLen,C=0,M=0,V=0;V<o;){var z=t[V++],F=V===1;F&&(h=t[V],v=t[V+1],x=h,T=v);var B=-1;switch(z){case CMD$2.M:h=x=t[V++],v=T=t[V++];break;case CMD$2.L:{var W=t[V++],Y=t[V++],Z=W-h,X=Y-v;(mathAbs$1(Z)>s||mathAbs$1(X)>l||V===o-1)&&(B=Math.sqrt(Z*Z+X*X),h=W,v=Y);break}case CMD$2.C:{var te=t[V++],oe=t[V++],W=t[V++],Y=t[V++],ae=t[V++],le=t[V++];B=cubicLength(h,v,te,oe,W,Y,ae,le,10),h=ae,v=le;break}case CMD$2.Q:{var te=t[V++],oe=t[V++],W=t[V++],Y=t[V++];B=quadraticLength(h,v,te,oe,W,Y,10),h=W,v=Y;break}case CMD$2.A:var he=t[V++],me=t[V++],_e=t[V++],ye=t[V++],Se=t[V++],Te=t[V++],we=Te+Se;V+=1,t[V++],F&&(x=mathCos$2(Se)*_e+he,T=mathSin$2(Se)*ye+me),B=mathMax$6(_e,ye)*mathMin$6(PI2$5,Math.abs(Te)),h=mathCos$2(we)*_e+he,v=mathSin$2(we)*ye+me;break;case CMD$2.R:{x=h=t[V++],T=v=t[V++];var Ee=t[V++],Ce=t[V++];B=Ee*2+Ce*2;break}case CMD$2.Z:{var Z=x-h,X=T-v;B=Math.sqrt(Z*Z+X*X),h=x,v=T;break}}B>=0&&(w[M++]=B,C+=B)}return this._pathLen=C,C},r.prototype.rebuildPath=function(t,o){var s=this.data,l=this._ux,h=this._uy,v=this._len,x,T,w,C,M,V,z=o<1,F,B,W=0,Y=0,Z,X=0,te,oe;if(!(z&&(this._pathSegLen||this._calculateLength(),F=this._pathSegLen,B=this._pathLen,Z=o*B,!Z)))e:for(var ae=0;ae<v;){var le=s[ae++],he=ae===1;switch(he&&(w=s[ae],C=s[ae+1],x=w,T=C),le!==CMD$2.L&&X>0&&(t.lineTo(te,oe),X=0),le){case CMD$2.M:x=w=s[ae++],T=C=s[ae++],t.moveTo(w,C);break;case CMD$2.L:{M=s[ae++],V=s[ae++];var me=mathAbs$1(M-w),_e=mathAbs$1(V-C);if(me>l||_e>h){if(z){var ye=F[Y++];if(W+ye>Z){var Se=(Z-W)/ye;t.lineTo(w*(1-Se)+M*Se,C*(1-Se)+V*Se);break e}W+=ye}t.lineTo(M,V),w=M,C=V,X=0}else{var Te=me*me+_e*_e;Te>X&&(te=M,oe=V,X=Te)}break}case CMD$2.C:{var we=s[ae++],Ee=s[ae++],Ce=s[ae++],ke=s[ae++],Me=s[ae++],Ie=s[ae++];if(z){var ye=F[Y++];if(W+ye>Z){var Se=(Z-W)/ye;cubicSubdivide(w,we,Ce,Me,Se,tmpOutX),cubicSubdivide(C,Ee,ke,Ie,Se,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}W+=ye}t.bezierCurveTo(we,Ee,Ce,ke,Me,Ie),w=Me,C=Ie;break}case CMD$2.Q:{var we=s[ae++],Ee=s[ae++],Ce=s[ae++],ke=s[ae++];if(z){var ye=F[Y++];if(W+ye>Z){var Se=(Z-W)/ye;quadraticSubdivide(w,we,Ce,Se,tmpOutX),quadraticSubdivide(C,Ee,ke,Se,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}W+=ye}t.quadraticCurveTo(we,Ee,Ce,ke),w=Ce,C=ke;break}case CMD$2.A:var $e=s[ae++],Ge=s[ae++],He=s[ae++],We=s[ae++],Ze=s[ae++],ct=s[ae++],Qe=s[ae++],mt=!s[ae++],ht=He>We?He:We,De=mathAbs$1(He-We)>.001,ze=Ze+ct,Oe=!1;if(z){var ye=F[Y++];W+ye>Z&&(ze=Ze+ct*(Z-W)/ye,Oe=!0),W+=ye}if(De&&t.ellipse?t.ellipse($e,Ge,He,We,Qe,Ze,ze,mt):t.arc($e,Ge,ht,Ze,ze,mt),Oe)break e;he&&(x=mathCos$2(Ze)*He+$e,T=mathSin$2(Ze)*We+Ge),w=mathCos$2(ze)*He+$e,C=mathSin$2(ze)*We+Ge;break;case CMD$2.R:x=w=s[ae],T=C=s[ae+1],M=s[ae++],V=s[ae++];var Be=s[ae++],gt=s[ae++];if(z){var ye=F[Y++];if(W+ye>Z){var st=Z-W;t.moveTo(M,V),t.lineTo(M+mathMin$6(st,Be),V),st-=Be,st>0&&t.lineTo(M+Be,V+mathMin$6(st,gt)),st-=gt,st>0&&t.lineTo(M+mathMax$6(Be-st,0),V+gt),st-=Be,st>0&&t.lineTo(M,V+mathMax$6(gt-st,0));break e}W+=ye}t.rect(M,V,Be,gt);break;case CMD$2.Z:if(z){var ye=F[Y++];if(W+ye>Z){var Se=(Z-W)/ye;t.lineTo(w*(1-Se)+x*Se,C*(1-Se)+T*Se);break e}W+=ye}t.closePath(),w=x,C=T}}},r.prototype.clone=function(){var t=new r,o=this.data;return t.data=o.slice?o.slice():Array.prototype.slice.call(o),t._len=this._len,t},r.CMD=CMD$2,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const PathProxy$1=PathProxy;function containStroke$4(r,t,o,s,l,h,v){if(l===0)return!1;var x=l,T=0,w=r;if(v>t+x&&v>s+x||v<t-x&&v<s-x||h>r+x&&h>o+x||h<r-x&&h<o-x)return!1;if(r!==o)T=(t-s)/(r-o),w=(r*s-o*t)/(r-o);else return Math.abs(h-r)<=x/2;var C=T*h-v+w,M=C*C/(T*T+1);return M<=x/2*x/2}function containStroke$3(r,t,o,s,l,h,v,x,T,w,C){if(T===0)return!1;var M=T;if(C>t+M&&C>s+M&&C>h+M&&C>x+M||C<t-M&&C<s-M&&C<h-M&&C<x-M||w>r+M&&w>o+M&&w>l+M&&w>v+M||w<r-M&&w<o-M&&w<l-M&&w<v-M)return!1;var V=cubicProjectPoint(r,t,o,s,l,h,v,x,w,C,null);return V<=M/2}function containStroke$2(r,t,o,s,l,h,v,x,T){if(v===0)return!1;var w=v;if(T>t+w&&T>s+w&&T>h+w||T<t-w&&T<s-w&&T<h-w||x>r+w&&x>o+w&&x>l+w||x<r-w&&x<o-w&&x<l-w)return!1;var C=quadraticProjectPoint(r,t,o,s,l,h,x,T,null);return C<=w/2}var PI2$4=Math.PI*2;function normalizeRadian(r){return r%=PI2$4,r<0&&(r+=PI2$4),r}var PI2$3=Math.PI*2;function containStroke$1(r,t,o,s,l,h,v,x,T){if(v===0)return!1;var w=v;x-=r,T-=t;var C=Math.sqrt(x*x+T*T);if(C-w>o||C+w<o)return!1;if(Math.abs(s-l)%PI2$3<1e-4)return!0;if(h){var M=s;s=normalizeRadian(l),l=normalizeRadian(M)}else s=normalizeRadian(s),l=normalizeRadian(l);s>l&&(l+=PI2$3);var V=Math.atan2(T,x);return V<0&&(V+=PI2$3),V>=s&&V<=l||V+PI2$3>=s&&V+PI2$3<=l}function windingLine(r,t,o,s,l,h){if(h>t&&h>s||h<t&&h<s||s===t)return 0;var v=(h-t)/(s-t),x=s<t?1:-1;(v===1||v===0)&&(x=s<t?.5:-.5);var T=v*(o-r)+r;return T===l?1/0:T>l?x:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(r,t){return Math.abs(r-t)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var r=extrema[0];extrema[0]=extrema[1],extrema[1]=r}function windingCubic(r,t,o,s,l,h,v,x,T,w){if(w>t&&w>s&&w>h&&w>x||w<t&&w<s&&w<h&&w<x)return 0;var C=cubicRootAt(t,s,h,x,w,roots);if(C===0)return 0;for(var M=0,V=-1,z=void 0,F=void 0,B=0;B<C;B++){var W=roots[B],Y=W===0||W===1?.5:1,Z=cubicAt(r,o,l,v,W);Z<T||(V<0&&(V=cubicExtrema(t,s,h,x,extrema),extrema[1]<extrema[0]&&V>1&&swapExtrema(),z=cubicAt(t,s,h,x,extrema[0]),V>1&&(F=cubicAt(t,s,h,x,extrema[1]))),V===2?W<extrema[0]?M+=z<t?Y:-Y:W<extrema[1]?M+=F<z?Y:-Y:M+=x<F?Y:-Y:W<extrema[0]?M+=z<t?Y:-Y:M+=x<z?Y:-Y)}return M}function windingQuadratic(r,t,o,s,l,h,v,x){if(x>t&&x>s&&x>h||x<t&&x<s&&x<h)return 0;var T=quadraticRootAt(t,s,h,x,roots);if(T===0)return 0;var w=quadraticExtremum(t,s,h);if(w>=0&&w<=1){for(var C=0,M=quadraticAt(t,s,h,w),V=0;V<T;V++){var z=roots[V]===0||roots[V]===1?.5:1,F=quadraticAt(r,o,l,roots[V]);F<v||(roots[V]<w?C+=M<t?z:-z:C+=h<M?z:-z)}return C}else{var z=roots[0]===0||roots[0]===1?.5:1,F=quadraticAt(r,o,l,roots[0]);return F<v?0:h<t?z:-z}}function windingArc(r,t,o,s,l,h,v,x){if(x-=t,x>o||x<-o)return 0;var T=Math.sqrt(o*o-x*x);roots[0]=-T,roots[1]=T;var w=Math.abs(s-l);if(w<1e-4)return 0;if(w>=PI2$2-1e-4){s=0,l=PI2$2;var C=h?1:-1;return v>=roots[0]+r&&v<=roots[1]+r?C:0}if(s>l){var M=s;s=l,l=M}s<0&&(s+=PI2$2,l+=PI2$2);for(var V=0,z=0;z<2;z++){var F=roots[z];if(F+r>v){var B=Math.atan2(x,F),C=h?1:-1;B<0&&(B=PI2$2+B),(B>=s&&B<=l||B+PI2$2>=s&&B+PI2$2<=l)&&(B>Math.PI/2&&B<Math.PI*1.5&&(C=-C),V+=C)}}return V}function containPath(r,t,o,s,l){for(var h=r.data,v=r.len(),x=0,T=0,w=0,C=0,M=0,V,z,F=0;F<v;){var B=h[F++],W=F===1;switch(B===CMD$1.M&&F>1&&(o||(x+=windingLine(T,w,C,M,s,l))),W&&(T=h[F],w=h[F+1],C=T,M=w),B){case CMD$1.M:C=h[F++],M=h[F++],T=C,w=M;break;case CMD$1.L:if(o){if(containStroke$4(T,w,h[F],h[F+1],t,s,l))return!0}else x+=windingLine(T,w,h[F],h[F+1],s,l)||0;T=h[F++],w=h[F++];break;case CMD$1.C:if(o){if(containStroke$3(T,w,h[F++],h[F++],h[F++],h[F++],h[F],h[F+1],t,s,l))return!0}else x+=windingCubic(T,w,h[F++],h[F++],h[F++],h[F++],h[F],h[F+1],s,l)||0;T=h[F++],w=h[F++];break;case CMD$1.Q:if(o){if(containStroke$2(T,w,h[F++],h[F++],h[F],h[F+1],t,s,l))return!0}else x+=windingQuadratic(T,w,h[F++],h[F++],h[F],h[F+1],s,l)||0;T=h[F++],w=h[F++];break;case CMD$1.A:var Y=h[F++],Z=h[F++],X=h[F++],te=h[F++],oe=h[F++],ae=h[F++];F+=1;var le=!!(1-h[F++]);V=Math.cos(oe)*X+Y,z=Math.sin(oe)*te+Z,W?(C=V,M=z):x+=windingLine(T,w,V,z,s,l);var he=(s-Y)*te/X+Y;if(o){if(containStroke$1(Y,Z,te,oe,oe+ae,le,t,he,l))return!0}else x+=windingArc(Y,Z,te,oe,oe+ae,le,he,l);T=Math.cos(oe+ae)*X+Y,w=Math.sin(oe+ae)*te+Z;break;case CMD$1.R:C=T=h[F++],M=w=h[F++];var me=h[F++],_e=h[F++];if(V=C+me,z=M+_e,o){if(containStroke$4(C,M,V,M,t,s,l)||containStroke$4(V,M,V,z,t,s,l)||containStroke$4(V,z,C,z,t,s,l)||containStroke$4(C,z,C,M,t,s,l))return!0}else x+=windingLine(V,M,V,z,s,l),x+=windingLine(C,z,C,M,s,l);break;case CMD$1.Z:if(o){if(containStroke$4(T,w,C,M,t,s,l))return!0}else x+=windingLine(T,w,C,M,s,l);T=C,w=M;break}}return!o&&!isAroundEqual$1(w,M)&&(x+=windingLine(T,w,C,M,s,l)||0),x!==0}function contain$2(r,t,o){return containPath(r,0,!1,t,o)}function containStroke(r,t,o,s){return containPath(r,t,!0,o,s)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.update=function(){var o=this;r.prototype.update.call(this);var s=this.style;if(s.decal){var l=this._decalEl=this._decalEl||new t;l.buildPath===t.prototype.buildPath&&(l.buildPath=function(T){o.buildPath(T,o.shape)}),l.silent=!0;var h=l.style;for(var v in s)h[v]!==s[v]&&(h[v]=s[v]);h.fill=s.fill?s.decal:null,h.decal=null,h.shadowColor=null,s.strokeFirst&&(h.stroke=null);for(var x=0;x<pathCopyParams.length;++x)l[pathCopyParams[x]]=this[pathCopyParams[x]];l.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(o){var s=keys(o);this.shape=this.getDefaultShape();var l=this.getDefaultStyle();l&&this.useStyle(l);for(var h=0;h<s.length;h++){var v=s[h],x=o[v];v==="style"?this.style?extend(this.style,x):this.useStyle(x):v==="shape"?extend(this.shape,x):r.prototype.attrKV.call(this,v,x)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var o=this.style.fill;if(o!=="none"){if(isString(o)){var s=lum(o,0);return s>.5?DARK_LABEL_COLOR:s>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(o)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(o){var s=this.style.fill;if(isString(s)){var l=this.__zr,h=!!(l&&l.isDarkMode()),v=lum(o,0)<DARK_MODE_THRESHOLD;if(h===v)return s}},t.prototype.buildPath=function(o,s,l){},t.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},t.prototype.getUpdatedPathProxy=function(o){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,o),this.path},t.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},t.prototype.hasStroke=function(){var o=this.style,s=o.stroke;return!(s==null||s==="none"||!(o.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style,s=o.fill;return s!=null&&s!=="none"},t.prototype.getBoundingRect=function(){var o=this._rect,s=this.style,l=!o;if(l){var h=!1;this.path||(h=!0,this.createPathProxy());var v=this.path;(h||this.__dirty&SHAPE_CHANGED_BIT)&&(v.beginPath(),this.buildPath(v,this.shape,!1),this.pathUpdated()),o=v.getBoundingRect()}if(this._rect=o,this.hasStroke()&&this.path&&this.path.len()>0){var x=this._rectStroke||(this._rectStroke=o.clone());if(this.__dirty||l){x.copy(o);var T=s.strokeNoScale?this.getLineScale():1,w=s.lineWidth;if(!this.hasFill()){var C=this.strokeContainThreshold;w=Math.max(w,C??4)}T>1e-10&&(x.width+=w/T,x.height+=w/T,x.x-=w/T/2,x.y-=w/T/2)}return x}return o},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),h=this.getBoundingRect(),v=this.style;if(o=l[0],s=l[1],h.contain(o,s)){var x=this.path;if(this.hasStroke()){var T=v.lineWidth,w=v.strokeNoScale?this.getLineScale():1;if(w>1e-10&&(this.hasFill()||(T=Math.max(T,this.strokeContainThreshold)),containStroke(x,T/w,o,s)))return!0}if(this.hasFill())return contain$2(x,o,s)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(o){return this.animate("shape",o)},t.prototype.updateDuringAnimation=function(o){o==="style"?this.dirtyStyle():o==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(o,s){o==="shape"?this.setShape(s):r.prototype.attrKV.call(this,o,s)},t.prototype.setShape=function(o,s){var l=this.shape;return l||(l=this.shape={}),typeof o=="string"?l[o]=s:extend(l,o),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(o){return createObject(DEFAULT_PATH_STYLE,o)},t.prototype._innerSaveToNormal=function(o){r.prototype._innerSaveToNormal.call(this,o);var s=this._normalState;o.shape&&!s.shape&&(s.shape=extend({},this.shape))},t.prototype._applyStateObj=function(o,s,l,h,v,x){r.prototype._applyStateObj.call(this,o,s,l,h,v,x);var T=!(s&&h),w;if(s&&s.shape?v?h?w=s.shape:(w=extend({},l.shape),extend(w,s.shape)):(w=extend({},h?this.shape:l.shape),extend(w,s.shape)):T&&(w=l.shape),w)if(v){this.shape=extend({},this.shape);for(var C={},M=keys(w),V=0;V<M.length;V++){var z=M[V];typeof w[z]=="object"?this.shape[z]=w[z]:C[z]=w[z]}this._transitionState(o,{shape:C},x)}else this.shape=w,this.dirtyShape()},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,h=0;h<o.length;h++){var v=o[h];v.shape&&(l=l||{},this._mergeStyle(l,v.shape))}return l&&(s.shape=l),s},t.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},t.prototype.isZeroArea=function(){return!1},t.extend=function(o){var s=function(h){__extends(v,h);function v(x){var T=h.call(this,x)||this;return o.init&&o.init.call(T,x),T}return v.prototype.getDefaultStyle=function(){return clone$3(o.style)},v.prototype.getDefaultShape=function(){return clone$3(o.shape)},v}(t);for(var l in o)typeof o[l]=="function"&&(s.prototype[l]=o[l]);return s},t.initDefaultProps=function(){var o=t.prototype;o.type="path",o.strokeContainThreshold=5,o.segmentIgnoreThreshold=0,o.subPixelOptimize=!1,o.autoBatch=!1,o.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),t}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var o=this.style,s=o.stroke;return s!=null&&s!=="none"&&o.lineWidth>0},t.prototype.hasFill=function(){var o=this.style,s=o.fill;return s!=null&&s!=="none"},t.prototype.createStyle=function(o){return createObject(DEFAULT_TSPAN_STYLE,o)},t.prototype.setBoundingRect=function(o){this._rect=o},t.prototype.getBoundingRect=function(){var o=this.style;if(!this._rect){var s=o.text;s!=null?s+="":s="";var l=getBoundingRect(s,o.font,o.textAlign,o.textBaseline);if(l.x+=o.x||0,l.y+=o.y||0,this.hasStroke()){var h=o.lineWidth;l.x-=h/2,l.y-=h/2,l.width+=h,l.height+=h}this._rect=l}return this._rect},t.initDefaultProps=function(){var o=t.prototype;o.dirtyRectTolerance=10}(),t}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ZRImage=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(o){return createObject(DEFAULT_IMAGE_STYLE,o)},t.prototype._getSize=function(o){var s=this.style,l=s[o];if(l!=null)return l;var h=isImageLike(s.image)?s.image:this.__image;if(!h)return 0;var v=o==="width"?"height":"width",x=s[v];return x==null?h[o]:h[o]/h[v]*x},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},t.prototype.getBoundingRect=function(){var o=this.style;return this._rect||(this._rect=new BoundingRect$1(o.x||0,o.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(r,t){var o=t.x,s=t.y,l=t.width,h=t.height,v=t.r,x,T,w,C;l<0&&(o=o+l,l=-l),h<0&&(s=s+h,h=-h),typeof v=="number"?x=T=w=C=v:v instanceof Array?v.length===1?x=T=w=C=v[0]:v.length===2?(x=w=v[0],T=C=v[1]):v.length===3?(x=v[0],T=C=v[1],w=v[2]):(x=v[0],T=v[1],w=v[2],C=v[3]):x=T=w=C=0;var M;x+T>l&&(M=x+T,x*=l/M,T*=l/M),w+C>l&&(M=w+C,w*=l/M,C*=l/M),T+w>h&&(M=T+w,T*=h/M,w*=h/M),x+C>h&&(M=x+C,x*=h/M,C*=h/M),r.moveTo(o+x,s),r.lineTo(o+l-T,s),T!==0&&r.arc(o+l-T,s+T,T,-Math.PI/2,0),r.lineTo(o+l,s+h-w),w!==0&&r.arc(o+l-w,s+h-w,w,0,Math.PI/2),r.lineTo(o+C,s+h),C!==0&&r.arc(o+C,s+h-C,C,Math.PI/2,Math.PI),r.lineTo(o,s+x),x!==0&&r.arc(o+x,s+x,x,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(r,t,o){if(t){var s=t.x1,l=t.x2,h=t.y1,v=t.y2;r.x1=s,r.x2=l,r.y1=h,r.y2=v;var x=o&&o.lineWidth;return x&&(round(s*2)===round(l*2)&&(r.x1=r.x2=subPixelOptimize$1(s,x,!0)),round(h*2)===round(v*2)&&(r.y1=r.y2=subPixelOptimize$1(h,x,!0))),r}}function subPixelOptimizeRect$1(r,t,o){if(t){var s=t.x,l=t.y,h=t.width,v=t.height;r.x=s,r.y=l,r.width=h,r.height=v;var x=o&&o.lineWidth;return x&&(r.x=subPixelOptimize$1(s,x,!0),r.y=subPixelOptimize$1(l,x,!0),r.width=Math.max(subPixelOptimize$1(s+h,x,!1)-r.x,h===0?0:1),r.height=Math.max(subPixelOptimize$1(l+v,x,!1)-r.y,v===0?0:1)),r}}function subPixelOptimize$1(r,t,o){if(!t)return r;var s=round(r*2);return(s+round(t))%2===0?s/2:(s+(o?1:-1))/2}var RectShape=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),subPixelOptimizeOutputShape$1={},Rect$1=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new RectShape},t.prototype.buildPath=function(o,s){var l,h,v,x;if(this.subPixelOptimize){var T=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,s,this.style);l=T.x,h=T.y,v=T.width,x=T.height,T.r=s.r,s=T}else l=s.x,h=s.y,v=s.width,x=s.height;s.r?buildPath$2(o,s):o.rect(l,h,v,x)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({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},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=DEFAULT_RICH_TEXT_COLOR,s.attr(o),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var o=0;o<this._children.length;o++){var s=this._children[o];s.zlevel=this.zlevel,s.z=this.z,s.z2=this.z2,s.culling=this.culling,s.cursor=this.cursor,s.invisible=this.invisible}},t.prototype.updateTransform=function(){var o=this.innerTransformable;o?(o.updateTransform(),o.transform&&(this.transform=o.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(o){var s=this.innerTransformable;return s?s.getLocalTransform(o):r.prototype.getLocalTransform.call(this,o)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(o){r.prototype.addSelfToZr.call(this,o);for(var s=0;s<this._children.length;s++)this._children[s].__zr=o},t.prototype.removeSelfFromZr=function(o){r.prototype.removeSelfFromZr.call(this,o);for(var s=0;s<this._children.length;s++)this._children[s].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var o=new BoundingRect$1(0,0,0,0),s=this._children,l=[],h=null,v=0;v<s.length;v++){var x=s[v],T=x.getBoundingRect(),w=x.getLocalTransform(l);w?(o.copy(T),o.applyTransform(w),h=h||o.clone(),h.union(o)):(h=h||T.clone(),h.union(T))}this._rect=h||o}return this._rect},t.prototype.setDefaultTextStyle=function(o){this._defaultStyle=o||DEFAULT_RICH_TEXT_COLOR},t.prototype.setTextContent=function(o){},t.prototype._mergeStyle=function(o,s){if(!s)return o;var l=s.rich,h=o.rich||l&&{};return extend(o,s),l&&h?(this._mergeRich(h,l),o.rich=h):h&&(o.rich=h),o},t.prototype._mergeRich=function(o,s){for(var l=keys(s),h=0;h<l.length;h++){var v=l[h];o[v]=o[v]||{},extend(o[v],s[v])}},t.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},t.prototype._getOrCreateChild=function(o){var s=this._children[this._childCursor];return(!s||!(s instanceof o))&&(s=new o),this._children[this._childCursor++]=s,s.__zr=this.__zr,s.parent=this,s},t.prototype._updatePlainTexts=function(){var o=this.style,s=o.font||DEFAULT_FONT,l=o.padding,h=getStyleText(o),v=parsePlainText(h,o),x=needDrawBackground(o),T=!!o.backgroundColor,w=v.outerHeight,C=v.outerWidth,M=v.contentWidth,V=v.lines,z=v.lineHeight,F=this._defaultStyle,B=o.x||0,W=o.y||0,Y=o.align||F.align||"left",Z=o.verticalAlign||F.verticalAlign||"top",X=B,te=adjustTextY(W,v.contentHeight,Z);if(x||l){var oe=adjustTextX(B,C,Y),ae=adjustTextY(W,w,Z);x&&this._renderBackground(o,o,oe,ae,C,w)}te+=z/2,l&&(X=getTextXForPadding(B,Y,l),Z==="top"?te+=l[0]:Z==="bottom"&&(te-=l[2]));for(var le=0,he=!1,me=getFill("fill"in o?o.fill:(he=!0,F.fill)),_e=getStroke("stroke"in o?o.stroke:!T&&(!F.autoStroke||he)?(le=DEFAULT_STROKE_LINE_WIDTH,F.stroke):null),ye=o.textShadowBlur>0,Se=o.width!=null&&(o.overflow==="truncate"||o.overflow==="break"||o.overflow==="breakAll"),Te=v.calculatedLineHeight,we=0;we<V.length;we++){var Ee=this._getOrCreateChild(TSpan$1),Ce=Ee.createStyle();Ee.useStyle(Ce),Ce.text=V[we],Ce.x=X,Ce.y=te,Y&&(Ce.textAlign=Y),Ce.textBaseline="middle",Ce.opacity=o.opacity,Ce.strokeFirst=!0,ye&&(Ce.shadowBlur=o.textShadowBlur||0,Ce.shadowColor=o.textShadowColor||"transparent",Ce.shadowOffsetX=o.textShadowOffsetX||0,Ce.shadowOffsetY=o.textShadowOffsetY||0),Ce.stroke=_e,Ce.fill=me,_e&&(Ce.lineWidth=o.lineWidth||le,Ce.lineDash=o.lineDash,Ce.lineDashOffset=o.lineDashOffset||0),Ce.font=s,setSeparateFont(Ce,o),te+=z,Se&&Ee.setBoundingRect(new BoundingRect$1(adjustTextX(Ce.x,o.width,Ce.textAlign),adjustTextY(Ce.y,Te,Ce.textBaseline),M,Te))}},t.prototype._updateRichTexts=function(){var o=this.style,s=getStyleText(o),l=parseRichText(s,o),h=l.width,v=l.outerWidth,x=l.outerHeight,T=o.padding,w=o.x||0,C=o.y||0,M=this._defaultStyle,V=o.align||M.align,z=o.verticalAlign||M.verticalAlign,F=adjustTextX(w,v,V),B=adjustTextY(C,x,z),W=F,Y=B;T&&(W+=T[3],Y+=T[0]);var Z=W+h;needDrawBackground(o)&&this._renderBackground(o,o,F,B,v,x);for(var X=!!o.backgroundColor,te=0;te<l.lines.length;te++){for(var oe=l.lines[te],ae=oe.tokens,le=ae.length,he=oe.lineHeight,me=oe.width,_e=0,ye=W,Se=Z,Te=le-1,we=void 0;_e<le&&(we=ae[_e],!we.align||we.align==="left");)this._placeToken(we,o,he,Y,ye,"left",X),me-=we.width,ye+=we.width,_e++;for(;Te>=0&&(we=ae[Te],we.align==="right");)this._placeToken(we,o,he,Y,Se,"right",X),me-=we.width,Se-=we.width,Te--;for(ye+=(h-(ye-W)-(Z-Se)-me)/2;_e<=Te;)we=ae[_e],this._placeToken(we,o,he,Y,ye+we.width/2,"center",X),ye+=we.width,_e++;Y+=he}},t.prototype._placeToken=function(o,s,l,h,v,x,T){var w=s.rich[o.styleName]||{};w.text=o.text;var C=o.verticalAlign,M=h+l/2;C==="top"?M=h+o.height/2:C==="bottom"&&(M=h+l-o.height/2);var V=!o.isLineHolder&&needDrawBackground(w);V&&this._renderBackground(w,s,x==="right"?v-o.width:x==="center"?v-o.width/2:v,M-o.height/2,o.width,o.height);var z=!!w.backgroundColor,F=o.textPadding;F&&(v=getTextXForPadding(v,x,F),M-=o.height/2-F[0]-o.innerHeight/2);var B=this._getOrCreateChild(TSpan$1),W=B.createStyle();B.useStyle(W);var Y=this._defaultStyle,Z=!1,X=0,te=getFill("fill"in w?w.fill:"fill"in s?s.fill:(Z=!0,Y.fill)),oe=getStroke("stroke"in w?w.stroke:"stroke"in s?s.stroke:!z&&!T&&(!Y.autoStroke||Z)?(X=DEFAULT_STROKE_LINE_WIDTH,Y.stroke):null),ae=w.textShadowBlur>0||s.textShadowBlur>0;W.text=o.text,W.x=v,W.y=M,ae&&(W.shadowBlur=w.textShadowBlur||s.textShadowBlur||0,W.shadowColor=w.textShadowColor||s.textShadowColor||"transparent",W.shadowOffsetX=w.textShadowOffsetX||s.textShadowOffsetX||0,W.shadowOffsetY=w.textShadowOffsetY||s.textShadowOffsetY||0),W.textAlign=x,W.textBaseline="middle",W.font=o.font||DEFAULT_FONT,W.opacity=retrieve3(w.opacity,s.opacity,1),setSeparateFont(W,w),oe&&(W.lineWidth=retrieve3(w.lineWidth,s.lineWidth,X),W.lineDash=retrieve2(w.lineDash,s.lineDash),W.lineDashOffset=s.lineDashOffset||0,W.stroke=oe),te&&(W.fill=te);var le=o.contentWidth,he=o.contentHeight;B.setBoundingRect(new BoundingRect$1(adjustTextX(W.x,le,W.textAlign),adjustTextY(W.y,he,W.textBaseline),le,he))},t.prototype._renderBackground=function(o,s,l,h,v,x){var T=o.backgroundColor,w=o.borderWidth,C=o.borderColor,M=T&&T.image,V=T&&!M,z=o.borderRadius,F=this,B,W;if(V||o.lineHeight||w&&C){B=this._getOrCreateChild(Rect$2),B.useStyle(B.createStyle()),B.style.fill=null;var Y=B.shape;Y.x=l,Y.y=h,Y.width=v,Y.height=x,Y.r=z,B.dirtyShape()}if(V){var Z=B.style;Z.fill=T||null,Z.fillOpacity=retrieve2(o.fillOpacity,1)}else if(M){W=this._getOrCreateChild(ZRImage$1),W.onload=function(){F.dirtyStyle()};var X=W.style;X.image=T.image,X.x=l,X.y=h,X.width=v,X.height=x}if(w&&C){var Z=B.style;Z.lineWidth=w,Z.stroke=C,Z.strokeOpacity=retrieve2(o.strokeOpacity,1),Z.lineDash=o.borderDash,Z.lineDashOffset=o.borderDashOffset||0,B.strokeContainThreshold=0,B.hasFill()&&B.hasStroke()&&(Z.strokeFirst=!0,Z.lineWidth*=2)}var te=(B||W).style;te.shadowBlur=o.shadowBlur||0,te.shadowColor=o.shadowColor||"transparent",te.shadowOffsetX=o.shadowOffsetX||0,te.shadowOffsetY=o.shadowOffsetY||0,te.opacity=retrieve3(o.opacity,s.opacity,1)},t.makeFont=function(o){var s="";return hasSeparateFont(o)&&(s=[o.fontStyle,o.fontWeight,parseFontSize(o.fontSize),o.fontFamily||"sans-serif"].join(" ")),s&&trim$1(s)||o.textFont||o.font},t}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?DEFAULT_FONT_SIZE+"px":r+"px"}function setSeparateFont(r,t){for(var o=0;o<FONT_PARTS.length;o++){var s=FONT_PARTS[o],l=t[s];l!=null&&(r[s]=l)}}function hasSeparateFont(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function normalizeTextStyle(r){return normalizeStyle(r),each$c(r.rich,normalizeStyle),r}function normalizeStyle(r){if(r){r.font=ZRText.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||VALID_TEXT_ALIGN[t]?t:"left";var o=r.verticalAlign;o==="center"&&(o="middle"),r.verticalAlign=o==null||VALID_TEXT_VERTICAL_ALIGN[o]?o:"top";var s=r.padding;s&&(r.padding=normalizeCssArray$1(r.padding))}}function getStroke(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function getFill(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function getTextXForPadding(r,t,o){return t==="right"?r-o[1]:t==="center"?r+o[3]/2-o[1]/2:r+o[3]}function getStyleText(r){var t=r.text;return t!=null&&(t+=""),t}function needDrawBackground(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function(r,t,o,s){if(s){var l=getECData(s);l.dataIndex=o,l.dataType=t,l.seriesIndex=r,s.type==="group"&&s.traverse(function(h){var v=getECData(h);v.seriesIndex=r,v.dataIndex=o,v.dataType=t})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke(r){return r!=null&&r!=="none"}var liftedColorCache=new LRU$1(100);function liftColor(r){if(isString(r)){var t=liftedColorCache.get(r);return t||(t=lift(r,-.1),liftedColorCache.put(r,t)),t}else if(isGradientObject(r)){var o=extend({},r);return o.colorStops=map$2(r.colorStops,function(s){return{offset:s.offset,color:lift(s.color,-.1)}}),o}return r}function doChangeHoverState(r,t,o){r.onHoverStateChange&&(r.hoverState||0)!==o&&r.onHoverStateChange(t),r.hoverState=o}function singleEnterEmphasis(r){doChangeHoverState(r,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis(r){r.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState(r,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur(r){doChangeHoverState(r,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur(r){r.hoverState===HOVER_STATE_BLUR&&doChangeHoverState(r,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect(r){r.selected=!0}function singleLeaveSelect(r){r.selected=!1}function updateElementState(r,t,o){t(r,o)}function traverseUpdateState(r,t,o){updateElementState(r,t,o),r.isGroup&&r.traverse(function(s){updateElementState(s,t,o)})}function setStatesFlag(r,t){switch(t){case"emphasis":r.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":r.hoverState=HOVER_STATE_NORMAL;break;case"blur":r.hoverState=HOVER_STATE_BLUR;break;case"select":r.selected=!0}}function getFromStateStyle(r,t,o,s){for(var l=r.style,h={},v=0;v<t.length;v++){var x=t[v],T=l[x];h[x]=T??(s&&s[x])}for(var v=0;v<r.animators.length;v++){var w=r.animators[v];w.__fromStateTransition&&w.__fromStateTransition.indexOf(o)<0&&w.targetName==="style"&&w.saveTo(h,t)}return h}function createEmphasisDefaultState(r,t,o,s){var l=o&&indexOf(o,"select")>=0,h=!1;if(r instanceof Path$1){var v=getSavedStates(r),x=l&&v.selectFill||v.normalFill,T=l&&v.selectStroke||v.normalStroke;if(hasFillOrStroke(x)||hasFillOrStroke(T)){s=s||{};var w=s.style||{};w.fill==="inherit"?(h=!0,s=extend({},s),w=extend({},w),w.fill=x):!hasFillOrStroke(w.fill)&&hasFillOrStroke(x)?(h=!0,s=extend({},s),w=extend({},w),w.fill=liftColor(x)):!hasFillOrStroke(w.stroke)&&hasFillOrStroke(T)&&(h||(s=extend({},s),w=extend({},w)),w.stroke=liftColor(T)),s.style=w}}if(s&&s.z2==null){h||(s=extend({},s));var C=r.z2EmphasisLift;s.z2=r.z2+(C??Z2_EMPHASIS_LIFT)}return s}function createSelectDefaultState(r,t,o){if(o&&o.z2==null){o=extend({},o);var s=r.z2SelectLift;o.z2=r.z2+(s??Z2_SELECT_LIFT)}return o}function createBlurDefaultState(r,t,o){var s=indexOf(r.currentStates,t)>=0,l=r.style.opacity,h=s?null:getFromStateStyle(r,["opacity"],t,{opacity:1});o=o||{};var v=o.style||{};return v.opacity==null&&(o=extend({},o),v=extend({opacity:s?l:h.opacity*.1},v),o.style=v),o}function elementStateProxy(r,t){var o=this.states[r];if(this.style){if(r==="emphasis")return createEmphasisDefaultState(this,r,t,o);if(r==="blur")return createBlurDefaultState(this,r,o);if(r==="select")return createSelectDefaultState(this,r,o)}return o}function setDefaultStateProxy(r){r.stateProxy=elementStateProxy;var t=r.getTextContent(),o=r.getTextGuideLine();t&&(t.stateProxy=elementStateProxy),o&&(o.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleLeaveEmphasis)}function enterEmphasis(r,t){r.__highByOuter|=1<<(t||0),traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasis(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&traverseUpdateState(r,singleLeaveEmphasis)}function enterBlur(r){traverseUpdateState(r,singleEnterBlur)}function leaveBlur(r){traverseUpdateState(r,singleLeaveBlur)}function enterSelect(r){traverseUpdateState(r,singleEnterSelect)}function leaveSelect(r){traverseUpdateState(r,singleLeaveSelect)}function shouldSilent(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function allLeaveBlur(r){var t=r.getModel(),o=[],s=[];t.eachComponent(function(l,h){var v=getComponentStates(h),x=l==="series",T=x?r.getViewOfSeriesModel(h):r.getViewOfComponentModel(h);!x&&s.push(T),v.isBlured&&(T.group.traverse(function(w){singleLeaveBlur(w)}),x&&o.push(h)),v.isBlured=!1}),each$c(s,function(l){l&&l.toggleBlurSeries&&l.toggleBlurSeries(o,!1,t)})}function blurSeries(r,t,o,s){var l=s.getModel();o=o||"coordinateSystem";function h(w,C){for(var M=0;M<C.length;M++){var V=w.getItemGraphicEl(C[M]);V&&leaveBlur(V)}}if(r!=null&&!(!t||t==="none")){var v=l.getSeriesByIndex(r),x=v.coordinateSystem;x&&x.master&&(x=x.master);var T=[];l.eachSeries(function(w){var C=v===w,M=w.coordinateSystem;M&&M.master&&(M=M.master);var V=M&&x?M===x:C;if(!(o==="series"&&!C||o==="coordinateSystem"&&!V||t==="series"&&C)){var z=s.getViewOfSeriesModel(w);if(z.group.traverse(function(W){singleEnterBlur(W)}),isArrayLike(t))h(w.getData(),t);else if(isObject$3(t))for(var F=keys(t),B=0;B<F.length;B++)h(w.getData(F[B]),t[F[B]]);T.push(w),getComponentStates(w).isBlured=!0}}),l.eachComponent(function(w,C){if(w!=="series"){var M=s.getViewOfComponentModel(C);M&&M.toggleBlurSeries&&M.toggleBlurSeries(T,!0,l)}})}}function blurComponent(r,t,o){if(!(r==null||t==null)){var s=o.getModel().getComponent(r,t);if(s){getComponentStates(s).isBlured=!0;var l=o.getViewOfComponentModel(s);!l||!l.focusBlurEnabled||l.group.traverse(function(h){singleEnterBlur(h)})}}}function blurSeriesFromHighlightPayload(r,t,o){var s=r.seriesIndex,l=r.getData(t.dataType);if(l){var h=queryDataIndex(l,t);h=(isArray$1(h)?h[0]:h)||0;var v=l.getItemGraphicEl(h);if(!v)for(var x=l.count(),T=0;!v&&T<x;)v=l.getItemGraphicEl(T++);if(v){var w=getECData(v);blurSeries(s,w.focus,w.blurScope,o)}else{var C=r.get(["emphasis","focus"]),M=r.get(["emphasis","blurScope"]);C!=null&&blurSeries(s,C,M,o)}}}function findComponentHighDownDispatchers(r,t,o,s){var l={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||o==null)return l;var h=s.getModel().getComponent(r,t);if(!h)return l;var v=s.getViewOfComponentModel(h);if(!v||!v.findHighDownDispatchers)return l;for(var x=v.findHighDownDispatchers(o),T,w=0;w<x.length;w++)if(getECData(x[w]).focus==="self"){T=!0;break}return{focusSelf:T,dispatchers:x}}function handleGlobalMouseOverForHighDown(r,t,o){var s=getECData(r),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,o),h=l.dispatchers,v=l.focusSelf;h?(v&&blurComponent(s.componentMainType,s.componentIndex,o),each$c(h,function(x){return enterEmphasisWhenMouseOver(x,t)})):(blurSeries(s.seriesIndex,s.focus,s.blurScope,o),s.focus==="self"&&blurComponent(s.componentMainType,s.componentIndex,o),enterEmphasisWhenMouseOver(r,t))}function handleGlobalMouseOutForHighDown(r,t,o){allLeaveBlur(o);var s=getECData(r),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,o).dispatchers;l?each$c(l,function(h){return leaveEmphasisWhenMouseOut(h,t)}):leaveEmphasisWhenMouseOut(r,t)}function toggleSelectionFromPayload(r,t,o){if(isSelectChangePayload(t)){var s=t.dataType,l=r.getData(s),h=queryDataIndex(l,t);isArray$1(h)||(h=[h]),r[t.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":t.type===SELECT_ACTION_TYPE?"select":"unselect"](h,s)}}function updateSeriesElementSelection(r){var t=r.getAllData();each$c(t,function(o){var s=o.data,l=o.type;s.eachItemGraphicEl(function(h,v){r.isSelected(v,l)?enterSelect(h):leaveSelect(h)})})}function getAllSelectedIndices(r){var t=[];return r.eachSeries(function(o){var s=o.getAllData();each$c(s,function(l){l.data;var h=l.type,v=o.getSelectedDataIndices();if(v.length>0){var x={dataIndex:v,seriesIndex:o.seriesIndex};h!=null&&(x.dataType=h),t.push(x)}})}),t}function enableHoverEmphasis(r,t,o){setAsHighDownDispatcher(r,!0),traverseUpdateState(r,setDefaultStateProxy),enableHoverFocus(r,t,o)}function disableHoverEmphasis(r){setAsHighDownDispatcher(r,!1)}function toggleHoverEmphasis(r,t,o,s){s?disableHoverEmphasis(r):enableHoverEmphasis(r,t,o)}function enableHoverFocus(r,t,o){var s=getECData(r);t!=null?(s.focus=t,s.blurScope=o):s.focus&&(s.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(r,t,o,s){o=o||"itemStyle";for(var l=0;l<OTHER_STATES.length;l++){var h=OTHER_STATES[l],v=t.getModel([h,o]),x=r.ensureState(h);x.style=s?s(v):v[defaultStyleGetterMap[o]]()}}function setAsHighDownDispatcher(r,t){var o=t===!1,s=r;r.highDownSilentOnTouch&&(s.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!o||s.__highDownDispatcher)&&(s.__highByOuter=s.__highByOuter||0,s.__highDownDispatcher=!o)}function isHighDownDispatcher(r){return!!(r&&r.__highDownDispatcher)}function getHighlightDigit(r){var t=_highlightKeyMap[r];return t==null&&_highlightNextDigit<=32&&(t=_highlightKeyMap[r]=_highlightNextDigit++),t}function isSelectChangePayload(r){var t=r.type;return t===SELECT_ACTION_TYPE||t===UNSELECT_ACTION_TYPE||t===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload(r){var t=r.type;return t===HIGHLIGHT_ACTION_TYPE||t===DOWNPLAY_ACTION_TYPE}function savePathStates(r){var t=getSavedStates(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var o=r.states.select||{};t.selectFill=o.style&&o.style.fill||null,t.selectStroke=o.style&&o.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(r,t){if(t){var o=r.data,s=r.len(),l,h,v,x,T,w,C=CMD.M,M=CMD.C,V=CMD.L,z=CMD.R,F=CMD.A,B=CMD.Q;for(v=0,x=0;v<s;){switch(l=o[v++],x=v,h=0,l){case C:h=1;break;case V:h=1;break;case M:h=3;break;case B:h=2;break;case F:var W=t[4],Y=t[5],Z=mathSqrt$2(t[0]*t[0]+t[1]*t[1]),X=mathSqrt$2(t[2]*t[2]+t[3]*t[3]),te=mathAtan2(-t[1]/X,t[0]/Z);o[v]*=Z,o[v++]+=W,o[v]*=X,o[v++]+=Y,o[v++]*=Z,o[v++]*=X,o[v++]+=te,o[v++]+=te,v+=2,x=v;break;case z:w[0]=o[v++],w[1]=o[v++],applyTransform$1(w,w,t),o[x++]=w[0],o[x++]=w[1],w[0]+=o[v++],w[1]+=o[v++],applyTransform$1(w,w,t),o[x++]=w[0],o[x++]=w[1]}for(T=0;T<h;T++){var oe=points[T];oe[0]=o[v++],oe[1]=o[v++],applyTransform$1(oe,oe,t),o[x++]=oe[0],o[x++]=oe[1]}}r.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vRatio(r,t){return(r[0]*t[0]+r[1]*t[1])/(vMag(r)*vMag(t))}function vAngle(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(vRatio(r,t))}function processArc(r,t,o,s,l,h,v,x,T,w,C){var M=T*(PI$3/180),V=mathCos$1(M)*(r-o)/2+mathSin$1(M)*(t-s)/2,z=-1*mathSin$1(M)*(r-o)/2+mathCos$1(M)*(t-s)/2,F=V*V/(v*v)+z*z/(x*x);F>1&&(v*=mathSqrt$1(F),x*=mathSqrt$1(F));var B=(l===h?-1:1)*mathSqrt$1((v*v*(x*x)-v*v*(z*z)-x*x*(V*V))/(v*v*(z*z)+x*x*(V*V)))||0,W=B*v*z/x,Y=B*-x*V/v,Z=(r+o)/2+mathCos$1(M)*W-mathSin$1(M)*Y,X=(t+s)/2+mathSin$1(M)*W+mathCos$1(M)*Y,te=vAngle([1,0],[(V-W)/v,(z-Y)/x]),oe=[(V-W)/v,(z-Y)/x],ae=[(-1*V-W)/v,(-1*z-Y)/x],le=vAngle(oe,ae);if(vRatio(oe,ae)<=-1&&(le=PI$3),vRatio(oe,ae)>=1&&(le=0),le<0){var he=Math.round(le/PI$3*1e6)/1e6;le=PI$3*2+he%2*PI$3}C.addData(w,Z,X,v,x,te,le,M,h)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(r){var t=new PathProxy$1;if(!r)return t;var o=0,s=0,l=o,h=s,v,x=PathProxy$1.CMD,T=r.match(commandReg);if(!T)return t;for(var w=0;w<T.length;w++){for(var C=T[w],M=C.charAt(0),V=void 0,z=C.match(numberReg)||[],F=z.length,B=0;B<F;B++)z[B]=parseFloat(z[B]);for(var W=0;W<F;){var Y=void 0,Z=void 0,X=void 0,te=void 0,oe=void 0,ae=void 0,le=void 0,he=o,me=s,_e=void 0,ye=void 0;switch(M){case"l":o+=z[W++],s+=z[W++],V=x.L,t.addData(V,o,s);break;case"L":o=z[W++],s=z[W++],V=x.L,t.addData(V,o,s);break;case"m":o+=z[W++],s+=z[W++],V=x.M,t.addData(V,o,s),l=o,h=s,M="l";break;case"M":o=z[W++],s=z[W++],V=x.M,t.addData(V,o,s),l=o,h=s,M="L";break;case"h":o+=z[W++],V=x.L,t.addData(V,o,s);break;case"H":o=z[W++],V=x.L,t.addData(V,o,s);break;case"v":s+=z[W++],V=x.L,t.addData(V,o,s);break;case"V":s=z[W++],V=x.L,t.addData(V,o,s);break;case"C":V=x.C,t.addData(V,z[W++],z[W++],z[W++],z[W++],z[W++],z[W++]),o=z[W-2],s=z[W-1];break;case"c":V=x.C,t.addData(V,z[W++]+o,z[W++]+s,z[W++]+o,z[W++]+s,z[W++]+o,z[W++]+s),o+=z[W-2],s+=z[W-1];break;case"S":Y=o,Z=s,_e=t.len(),ye=t.data,v===x.C&&(Y+=o-ye[_e-4],Z+=s-ye[_e-3]),V=x.C,he=z[W++],me=z[W++],o=z[W++],s=z[W++],t.addData(V,Y,Z,he,me,o,s);break;case"s":Y=o,Z=s,_e=t.len(),ye=t.data,v===x.C&&(Y+=o-ye[_e-4],Z+=s-ye[_e-3]),V=x.C,he=o+z[W++],me=s+z[W++],o+=z[W++],s+=z[W++],t.addData(V,Y,Z,he,me,o,s);break;case"Q":he=z[W++],me=z[W++],o=z[W++],s=z[W++],V=x.Q,t.addData(V,he,me,o,s);break;case"q":he=z[W++]+o,me=z[W++]+s,o+=z[W++],s+=z[W++],V=x.Q,t.addData(V,he,me,o,s);break;case"T":Y=o,Z=s,_e=t.len(),ye=t.data,v===x.Q&&(Y+=o-ye[_e-4],Z+=s-ye[_e-3]),o=z[W++],s=z[W++],V=x.Q,t.addData(V,Y,Z,o,s);break;case"t":Y=o,Z=s,_e=t.len(),ye=t.data,v===x.Q&&(Y+=o-ye[_e-4],Z+=s-ye[_e-3]),o+=z[W++],s+=z[W++],V=x.Q,t.addData(V,Y,Z,o,s);break;case"A":X=z[W++],te=z[W++],oe=z[W++],ae=z[W++],le=z[W++],he=o,me=s,o=z[W++],s=z[W++],V=x.A,processArc(he,me,o,s,ae,le,X,te,oe,V,t);break;case"a":X=z[W++],te=z[W++],oe=z[W++],ae=z[W++],le=z[W++],he=o,me=s,o+=z[W++],s+=z[W++],V=x.A,processArc(he,me,o,s,ae,le,X,te,oe,V,t);break}}(M==="z"||M==="Z")&&(V=x.Z,t.addData(V),o=l,s=h),v=V}return t.toStatic(),t}var SVGPath=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(o){},t}(Path$1);function isPathProxy(r){return r.setData!=null}function createPathOptions(r,t){var o=createPathProxyFromString(r),s=extend({},t);return s.buildPath=function(l){if(isPathProxy(l)){l.setData(o.data);var h=l.getContext();h&&l.rebuildPath(h,1)}else{var h=l;o.rebuildPath(h,1)}},s.applyTransform=function(l){transformPath(o,l),this.dirtyShape()},s}function createFromString(r,t){return new SVGPath(createPathOptions(r,t))}function extendFromString(r,t){var o=createPathOptions(r,t),s=function(l){__extends(h,l);function h(v){var x=l.call(this,v)||this;return x.applyTransform=o.applyTransform,x.buildPath=o.buildPath,x}return h}(SVGPath);return s}function mergePath$1(r,t){for(var o=[],s=r.length,l=0;l<s;l++){var h=r[l];o.push(h.getUpdatedPathProxy(!0))}var v=new Path$1(t);return v.createPathProxy(),v.buildPath=function(x){if(isPathProxy(x)){x.appendPath(o);var T=x.getContext();T&&x.rebuildPath(T,1)}},v}var CircleShape=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Circle=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new CircleShape},t.prototype.buildPath=function(o,s){o.moveTo(s.cx+s.r,s.cy),o.arc(s.cx,s.cy,s.r,0,Math.PI*2)},t}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Ellipse=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new EllipseShape},t.prototype.buildPath=function(o,s){var l=.5522848,h=s.cx,v=s.cy,x=s.rx,T=s.ry,w=x*l,C=T*l;o.moveTo(h-x,v),o.bezierCurveTo(h-x,v-C,h-w,v-T,h,v-T),o.bezierCurveTo(h+w,v-T,h+x,v-C,h+x,v),o.bezierCurveTo(h+x,v+C,h+w,v+T,h,v+T),o.bezierCurveTo(h-w,v+T,h-x,v+C,h-x,v),o.closePath()},t}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect(r,t,o,s,l,h,v,x){var T=o-r,w=s-t,C=v-l,M=x-h,V=M*T-C*w;if(!(V*V<e))return V=(C*(t-h)-M*(r-l))/V,[r+V*T,t+V*w]}function computeCornerTangents(r,t,o,s,l,h,v){var x=r-o,T=t-s,w=(v?h:-h)/mathSqrt(x*x+T*T),C=w*T,M=-w*x,V=r+C,z=t+M,F=o+C,B=s+M,W=(V+F)/2,Y=(z+B)/2,Z=F-V,X=B-z,te=Z*Z+X*X,oe=l-h,ae=V*B-F*z,le=(X<0?-1:1)*mathSqrt(mathMax$5(0,oe*oe*te-ae*ae)),he=(ae*X-Z*le)/te,me=(-ae*Z-X*le)/te,_e=(ae*X+Z*le)/te,ye=(-ae*Z+X*le)/te,Se=he-W,Te=me-Y,we=_e-W,Ee=ye-Y;return Se*Se+Te*Te>we*we+Ee*Ee&&(he=_e,me=ye),{cx:he,cy:me,x0:-C,y0:-M,x1:he*(l/oe-1),y1:me*(l/oe-1)}}function normalizeCornerRadius(r){var t;if(isArray$1(r)){var o=r.length;if(!o)return r;o===1?t=[r[0],r[0],0,0]:o===2?t=[r[0],r[0],r[1],r[1]]:o===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function buildPath$1(r,t){var o,s=mathMax$5(t.r,0),l=mathMax$5(t.r0||0,0),h=s>0,v=l>0;if(!(!h&&!v)){if(h||(s=l,l=0),l>s){var x=s;s=l,l=x}var T=t.startAngle,w=t.endAngle;if(!(isNaN(T)||isNaN(w))){var C=t.cx,M=t.cy,V=!!t.clockwise,z=mathAbs(w-T),F=z>PI2$1&&z%PI2$1;if(F>e&&(z=F),!(s>e))r.moveTo(C,M);else if(z>PI2$1-e)r.moveTo(C+s*mathCos(T),M+s*mathSin(T)),r.arc(C,M,s,T,w,!V),l>e&&(r.moveTo(C+l*mathCos(w),M+l*mathSin(w)),r.arc(C,M,l,w,T,V));else{var B=void 0,W=void 0,Y=void 0,Z=void 0,X=void 0,te=void 0,oe=void 0,ae=void 0,le=void 0,he=void 0,me=void 0,_e=void 0,ye=void 0,Se=void 0,Te=void 0,we=void 0,Ee=s*mathCos(T),Ce=s*mathSin(T),ke=l*mathCos(w),Me=l*mathSin(w),Ie=z>e;if(Ie){var $e=t.cornerRadius;$e&&(o=normalizeCornerRadius($e),B=o[0],W=o[1],Y=o[2],Z=o[3]);var Ge=mathAbs(s-l)/2;if(X=mathMin$5(Ge,Y),te=mathMin$5(Ge,Z),oe=mathMin$5(Ge,B),ae=mathMin$5(Ge,W),me=le=mathMax$5(X,te),_e=he=mathMax$5(oe,ae),(le>e||he>e)&&(ye=s*mathCos(w),Se=s*mathSin(w),Te=l*mathCos(T),we=l*mathSin(T),z<PI$2)){var He=intersect(Ee,Ce,Te,we,ye,Se,ke,Me);if(He){var We=Ee-He[0],Ze=Ce-He[1],ct=ye-He[0],Qe=Se-He[1],mt=1/mathSin(mathACos((We*ct+Ze*Qe)/(mathSqrt(We*We+Ze*Ze)*mathSqrt(ct*ct+Qe*Qe)))/2),ht=mathSqrt(He[0]*He[0]+He[1]*He[1]);me=mathMin$5(le,(s-ht)/(mt+1)),_e=mathMin$5(he,(l-ht)/(mt-1))}}}if(!Ie)r.moveTo(C+Ee,M+Ce);else if(me>e){var De=mathMin$5(Y,me),ze=mathMin$5(Z,me),Oe=computeCornerTangents(Te,we,Ee,Ce,s,De,V),Be=computeCornerTangents(ye,Se,ke,Me,s,ze,V);r.moveTo(C+Oe.cx+Oe.x0,M+Oe.cy+Oe.y0),me<le&&De===ze?r.arc(C+Oe.cx,M+Oe.cy,me,mathATan2(Oe.y0,Oe.x0),mathATan2(Be.y0,Be.x0),!V):(De>0&&r.arc(C+Oe.cx,M+Oe.cy,De,mathATan2(Oe.y0,Oe.x0),mathATan2(Oe.y1,Oe.x1),!V),r.arc(C,M,s,mathATan2(Oe.cy+Oe.y1,Oe.cx+Oe.x1),mathATan2(Be.cy+Be.y1,Be.cx+Be.x1),!V),ze>0&&r.arc(C+Be.cx,M+Be.cy,ze,mathATan2(Be.y1,Be.x1),mathATan2(Be.y0,Be.x0),!V))}else r.moveTo(C+Ee,M+Ce),r.arc(C,M,s,T,w,!V);if(!(l>e)||!Ie)r.lineTo(C+ke,M+Me);else if(_e>e){var De=mathMin$5(B,_e),ze=mathMin$5(W,_e),Oe=computeCornerTangents(ke,Me,ye,Se,l,-ze,V),Be=computeCornerTangents(Ee,Ce,Te,we,l,-De,V);r.lineTo(C+Oe.cx+Oe.x0,M+Oe.cy+Oe.y0),_e<he&&De===ze?r.arc(C+Oe.cx,M+Oe.cy,_e,mathATan2(Oe.y0,Oe.x0),mathATan2(Be.y0,Be.x0),!V):(ze>0&&r.arc(C+Oe.cx,M+Oe.cy,ze,mathATan2(Oe.y0,Oe.x0),mathATan2(Oe.y1,Oe.x1),!V),r.arc(C,M,l,mathATan2(Oe.cy+Oe.y1,Oe.cx+Oe.x1),mathATan2(Be.cy+Be.y1,Be.cx+Be.x1),V),De>0&&r.arc(C+Be.cx,M+Be.cy,De,mathATan2(Be.y1,Be.x1),mathATan2(Be.y0,Be.x0),!V))}else r.lineTo(C+ke,M+Me),r.arc(C,M,l,w,T,V)}r.closePath()}}}var SectorShape=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}(),Sector=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new SectorShape},t.prototype.buildPath=function(o,s){buildPath$1(o,s)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ring=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new RingShape},t.prototype.buildPath=function(o,s){var l=s.cx,h=s.cy,v=Math.PI*2;o.moveTo(l+s.r,h),o.arc(l,h,s.r,0,v,!1),o.moveTo(l+s.r0,h),o.arc(l,h,s.r0,0,v,!0)},t}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(r,t,o,s){var l=[],h=[],v=[],x=[],T,w,C,M;if(s){C=[1/0,1/0],M=[-1/0,-1/0];for(var V=0,z=r.length;V<z;V++)min$1(C,C,r[V]),max$1(M,M,r[V]);min$1(C,C,s[0]),max$1(M,M,s[1])}for(var V=0,z=r.length;V<z;V++){var F=r[V];if(o)T=r[V?V-1:z-1],w=r[(V+1)%z];else if(V===0||V===z-1){l.push(clone$2(r[V]));continue}else T=r[V-1],w=r[V+1];sub(h,w,T),scale$2(h,h,t);var B=distance(F,T),W=distance(F,w),Y=B+W;Y!==0&&(B/=Y,W/=Y),scale$2(v,h,-B),scale$2(x,h,W);var Z=add([],F,v),X=add([],F,x);s&&(max$1(Z,Z,C),min$1(Z,Z,M),max$1(X,X,C),min$1(X,X,M)),l.push(Z),l.push(X)}return o&&l.push(l.shift()),l}function buildPath(r,t,o){var s=t.smooth,l=t.points;if(l&&l.length>=2){if(s){var h=smoothBezier(l,s,o,t.smoothConstraint);r.moveTo(l[0][0],l[0][1]);for(var v=l.length,x=0;x<(o?v:v-1);x++){var T=h[x*2],w=h[x*2+1],C=l[(x+1)%v];r.bezierCurveTo(T[0],T[1],w[0],w[1],C[0],C[1])}}else{r.moveTo(l[0][0],l[0][1]);for(var x=1,M=l.length;x<M;x++)r.lineTo(l[x][0],l[x][1])}o&&r.closePath()}}var PolygonShape=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Polygon=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new PolygonShape},t.prototype.buildPath=function(o,s){buildPath(o,s,!0)},t}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Polyline=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PolylineShape},t.prototype.buildPath=function(o,s){buildPath(o,s,!1)},t}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Line=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LineShape},t.prototype.buildPath=function(o,s){var l,h,v,x;if(this.subPixelOptimize){var T=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,s,this.style);l=T.x1,h=T.y1,v=T.x2,x=T.y2}else l=s.x1,h=s.y1,v=s.x2,x=s.y2;var w=s.percent;w!==0&&(o.moveTo(l,h),w<1&&(v=l*(1-w)+v*w,x=h*(1-w)+x*w),o.lineTo(v,x))},t.prototype.pointAt=function(o){var s=this.shape;return[s.x1*(1-o)+s.x2*o,s.y1*(1-o)+s.y2*o]},t}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function someVectorAt(r,t,o){var s=r.cpx2,l=r.cpy2;return s!=null||l!=null?[(o?cubicDerivativeAt:cubicAt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(o?cubicDerivativeAt:cubicAt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(o?quadraticDerivativeAt:quadraticAt)(r.x1,r.cpx1,r.x2,t),(o?quadraticDerivativeAt:quadraticAt)(r.y1,r.cpy1,r.y2,t)]}var BezierCurve=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BezierCurveShape},t.prototype.buildPath=function(o,s){var l=s.x1,h=s.y1,v=s.x2,x=s.y2,T=s.cpx1,w=s.cpy1,C=s.cpx2,M=s.cpy2,V=s.percent;V!==0&&(o.moveTo(l,h),C==null||M==null?(V<1&&(quadraticSubdivide(l,T,v,V,out),T=out[1],v=out[2],quadraticSubdivide(h,w,x,V,out),w=out[1],x=out[2]),o.quadraticCurveTo(T,w,v,x)):(V<1&&(cubicSubdivide(l,T,C,v,V,out),T=out[1],C=out[2],v=out[3],cubicSubdivide(h,w,M,x,V,out),w=out[1],M=out[2],x=out[3]),o.bezierCurveTo(T,w,C,M,v,x)))},t.prototype.pointAt=function(o){return someVectorAt(this.shape,o,!1)},t.prototype.tangentAt=function(o){var s=someVectorAt(this.shape,o,!0);return normalize$1(s,s)},t}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Arc=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ArcShape},t.prototype.buildPath=function(o,s){var l=s.cx,h=s.cy,v=Math.max(s.r,0),x=s.startAngle,T=s.endAngle,w=s.clockwise,C=Math.cos(x),M=Math.sin(x);o.moveTo(C*v+l,M*v+h),o.arc(l,h,v,x,T,!w)},t}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="compound",o}return t.prototype._updatePathDirty=function(){for(var o=this.shape.paths,s=this.shapeChanged(),l=0;l<o.length;l++)s=s||o[l].shapeChanged();s&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var o=this.shape.paths||[],s=this.getGlobalScale(),l=0;l<o.length;l++)o[l].path||o[l].createPathProxy(),o[l].path.setScale(s[0],s[1],o[l].segmentIgnoreThreshold)},t.prototype.buildPath=function(o,s){for(var l=s.paths||[],h=0;h<l.length;h++)l[h].buildPath(o,l[h].shape,!0)},t.prototype.afterBrush=function(){for(var o=this.shape.paths||[],s=0;s<o.length;s++)o[s].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},t}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,o){this.colorStops.push({offset:t,color:o})},r}();const Gradient$1=Gradient;var LinearGradient=function(r){__extends(t,r);function t(o,s,l,h,v,x){var T=r.call(this,v)||this;return T.x=o??0,T.y=s??0,T.x2=l??1,T.y2=h??0,T.type="linear",T.global=x||!1,T}return t}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function(r){__extends(t,r);function t(o,s,l,h,v){var x=r.call(this,h)||this;return x.x=o??.5,x.y=s??.5,x.r=l??.5,x.type="radial",x.global=v||!1,x}return t}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function r(t,o){this._corners=[],this._axes=[],this._origin=[0,0];for(var s=0;s<4;s++)this._corners[s]=new Point$1;for(var s=0;s<2;s++)this._axes[s]=new Point$1;t&&this.fromBoundingRect(t,o)}return r.prototype.fromBoundingRect=function(t,o){var s=this._corners,l=this._axes,h=t.x,v=t.y,x=h+t.width,T=v+t.height;if(s[0].set(h,v),s[1].set(x,v),s[2].set(x,T),s[3].set(h,T),o)for(var w=0;w<4;w++)s[w].transform(o);Point$1.sub(l[0],s[1],s[0]),Point$1.sub(l[1],s[3],s[0]),l[0].normalize(),l[1].normalize();for(var w=0;w<2;w++)this._origin[w]=l[w].dot(s[0])},r.prototype.intersect=function(t,o){var s=!0,l=!o;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,t,minTv,maxTv,l,1)&&(s=!1,l)||!this._intersectCheckOneSide(t,this,minTv,maxTv,l,-1)&&(s=!1,l)||l||Point$1.copy(o,s?minTv:maxTv),s},r.prototype._intersectCheckOneSide=function(t,o,s,l,h,v){for(var x=!0,T=0;T<2;T++){var w=this._axes[T];if(this._getProjMinMaxOnAxis(T,t._corners,extent),this._getProjMinMaxOnAxis(T,o._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(x=!1,h)return x;var C=Math.abs(extent2[0]-extent[1]),M=Math.abs(extent[0]-extent2[1]);Math.min(C,M)>l.len()&&(C<M?Point$1.scale(l,w,-C*v):Point$1.scale(l,w,M*v))}else if(s){var C=Math.abs(extent2[0]-extent[1]),M=Math.abs(extent[0]-extent2[1]);Math.min(C,M)<s.len()&&(C<M?Point$1.scale(s,w,C*v):Point$1.scale(s,w,-M*v))}}return x},r.prototype._getProjMinMaxOnAxis=function(t,o,s){for(var l=this._axes[t],h=this._origin,v=o[0].dot(l)+h[t],x=v,T=v,w=1;w<o.length;w++){var C=o[w].dot(l)+h[t];x=Math.min(C,x),T=Math.max(C,T)}s[0]=x,s[1]=T},r}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.notClear=!0,o.incremental=!0,o._displayables=[],o._temporaryDisplayables=[],o._cursor=0,o}return t.prototype.traverse=function(o,s){o.call(s,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(o,s){s?this._temporaryDisplayables.push(o):this._displayables.push(o),this.markRedraw()},t.prototype.addDisplayables=function(o,s){s=s||!1;for(var l=0;l<o.length;l++)this.addDisplayable(o[l],s)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(o){for(var s=this._cursor;s<this._displayables.length;s++)o&&o(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)o&&o(this._temporaryDisplayables[s])},t.prototype.update=function(){this.updateTransform();for(var o=this._cursor;o<this._displayables.length;o++){var s=this._displayables[o];s.parent=this,s.update(),s.parent=null}for(var o=0;o<this._temporaryDisplayables.length;o++){var s=this._temporaryDisplayables[o];s.parent=this,s.update(),s.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var o=new BoundingRect$1(1/0,1/0,-1/0,-1/0),s=0;s<this._displayables.length;s++){var l=this._displayables[s],h=l.getBoundingRect().clone();l.needLocalTransform()&&h.applyTransform(l.getLocalTransform(m$2)),o.union(h)}this._rect=o}return this._rect},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),h=this.getBoundingRect();if(h.contain(l[0],l[1]))for(var v=0;v<this._displayables.length;v++){var x=this._displayables[v];if(x.contain(o,s))return!0}return!1},t}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig(r,t,o,s,l){var h;if(t&&t.ecModel){var v=t.ecModel.getUpdatePayload();h=v&&v.animation}var x=t&&t.isAnimationEnabled(),T=r==="update";if(x){var w=void 0,C=void 0,M=void 0;s?(w=retrieve2(s.duration,200),C=retrieve2(s.easing,"cubicOut"),M=0):(w=t.getShallow(T?"animationDurationUpdate":"animationDuration"),C=t.getShallow(T?"animationEasingUpdate":"animationEasing"),M=t.getShallow(T?"animationDelayUpdate":"animationDelay")),h&&(h.duration!=null&&(w=h.duration),h.easing!=null&&(C=h.easing),h.delay!=null&&(M=h.delay)),isFunction(M)&&(M=M(o,l)),isFunction(w)&&(w=w(o));var V={duration:w||0,delay:M,easing:C};return V}else return null}function animateOrSetProps(r,t,o,s,l,h,v){var x=!1,T;isFunction(l)?(v=h,h=l,l=null):isObject$3(l)&&(h=l.cb,v=l.during,x=l.isFrom,T=l.removeOpt,l=l.dataIndex);var w=r==="leave";w||t.stopAnimation("leave");var C=getAnimationConfig(r,s,l,w?T||{}:null,s&&s.getAnimationDelayParams?s.getAnimationDelayParams(t,l):null);if(C&&C.duration>0){var M=C.duration,V=C.delay,z=C.easing,F={duration:M,delay:V||0,easing:z,done:h,force:!!h||!!v,setToFinal:!w,scope:r,during:v};x?t.animateFrom(o,F):t.animateTo(o,F)}else t.stopAnimation(),!x&&t.attr(o),v&&v(1),h&&h()}function updateProps$1(r,t,o,s,l,h){animateOrSetProps("update",r,t,o,s,l,h)}function initProps(r,t,o,s,l,h){animateOrSetProps("enter",r,t,o,s,l,h)}function isElementRemoved(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var o=r.animators[t];if(o.scope==="leave")return!0}return!1}function removeElement(r,t,o,s,l,h){isElementRemoved(r)||animateOrSetProps("leave",r,t,o,s,l,h)}function fadeOutDisplayable(r,t,o,s){r.removeTextContent(),r.removeTextGuideLine(),removeElement(r,{style:{opacity:0}},t,o,s)}function removeElementWithFadeOut(r,t,o){function s(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(l){l.isGroup||fadeOutDisplayable(l,t,o,s)}):fadeOutDisplayable(r,t,o,s)}function saveOldStyle(r){transitionStore(r).oldStyle=r.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape(r){return Path$1.extend(r)}var extendPathFromString=extendFromString;function extendPath(r,t){return extendPathFromString(r,t)}function registerShape(r,t){_customShapeMap[r]=t}function getShapeClass(r){if(_customShapeMap.hasOwnProperty(r))return _customShapeMap[r]}function makePath(r,t,o,s){var l=createFromString(r,t);return o&&(s==="center"&&(o=centerGraphic(o,l.getBoundingRect())),resizePath(l,o)),l}function makeImage(r,t,o){var s=new ZRImage$1({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(l){if(o==="center"){var h={width:l.width,height:l.height};s.setStyle(centerGraphic(t,h))}}});return s}function centerGraphic(r,t){var o=t.width/t.height,s=r.height*o,l;s<=r.width?l=r.height:(s=r.width,l=s/o);var h=r.x+r.width/2,v=r.y+r.height/2;return{x:h-s/2,y:v-l/2,width:s,height:l}}var mergePath=mergePath$1;function resizePath(r,t){if(r.applyTransform){var o=r.getBoundingRect(),s=o.calculateTransform(t);r.applyTransform(s)}}function subPixelOptimizeLine(r,t){return subPixelOptimizeLine$1(r,r,{lineWidth:t}),r}function subPixelOptimizeRect(r){return subPixelOptimizeRect$1(r.shape,r.shape,r.style),r}var subPixelOptimize=subPixelOptimize$1;function getTransform$1(r,t){for(var o=identity([]);r&&r!==t;)mul(o,r.getLocalTransform(),o),r=r.parent;return o}function applyTransform(r,t,o){return t&&!isArrayLike(t)&&(t=Transformable$1.getLocalTransform(t)),o&&(t=invert([],t)),applyTransform$1([],r,t)}function transformDirection(r,t,o){var s=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),l=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),h=[r==="left"?-s:r==="right"?s:0,r==="top"?-l:r==="bottom"?l:0];return h=applyTransform(h,t,o),Math.abs(h[0])>Math.abs(h[1])?h[0]>0?"right":"left":h[1]>0?"bottom":"top"}function isNotGroup(r){return!r.isGroup}function isPath(r){return r.shape!=null}function groupTransition(r,t,o){if(!r||!t)return;function s(v){var x={};return v.traverse(function(T){isNotGroup(T)&&T.anid&&(x[T.anid]=T)}),x}function l(v){var x={x:v.x,y:v.y,rotation:v.rotation};return isPath(v)&&(x.shape=extend({},v.shape)),x}var h=s(r);t.traverse(function(v){if(isNotGroup(v)&&v.anid){var x=h[v.anid];if(x){var T=l(v);v.attr(l(x)),updateProps$1(v,T,o,getECData(v).dataIndex)}}})}function clipPointsByRect(r,t){return map$2(r,function(o){var s=o[0];s=mathMax$4(s,t.x),s=mathMin$4(s,t.x+t.width);var l=o[1];return l=mathMax$4(l,t.y),l=mathMin$4(l,t.y+t.height),[s,l]})}function clipRectByRect(r,t){var o=mathMax$4(r.x,t.x),s=mathMin$4(r.x+r.width,t.x+t.width),l=mathMax$4(r.y,t.y),h=mathMin$4(r.y+r.height,t.y+t.height);if(s>=o&&h>=l)return{x:o,y:l,width:s-o,height:h-l}}function createIcon(r,t,o){var s=extend({rectHover:!0},t),l=s.style={strokeNoScale:!0};if(o=o||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(l.image=r.slice(8),defaults(l,o),new ZRImage$1(s)):makePath(r.replace("path://",""),s,o,"center")}function linePolygonIntersect(r,t,o,s,l){for(var h=0,v=l[l.length-1];h<l.length;h++){var x=l[h];if(lineLineIntersect(r,t,o,s,x[0],x[1],v[0],v[1]))return!0;v=x}}function lineLineIntersect(r,t,o,s,l,h,v,x){var T=o-r,w=s-t,C=v-l,M=x-h,V=crossProduct2d(C,M,T,w);if(nearZero(V))return!1;var z=r-l,F=t-h,B=crossProduct2d(z,F,T,w)/V;if(B<0||B>1)return!1;var W=crossProduct2d(z,F,C,M)/V;return!(W<0||W>1)}function crossProduct2d(r,t,o,s){return r*s-o*t}function nearZero(r){return r<=1e-6&&r>=-1e-6}function setTooltipConfig(r){var t=r.itemTooltipOption,o=r.componentModel,s=r.itemName,l=isString(t)?{formatter:t}:t,h=o.mainType,v=o.componentIndex,x={componentType:h,name:s,$vars:["name"]};x[h+"Index"]=v;var T=r.formatterParamsExtra;T&&each$c(keys(T),function(C){hasOwn(x,C)||(x[C]=T[C],x.$vars.push(C))});var w=getECData(r.el);w.componentMainType=h,w.componentIndex=v,w.tooltipConfig={name:s,option:defaults({content:s,formatterParams:x},l)}}function traverseElement(r,t){var o;r.isGroup&&(o=t(r)),o||r.traverse(t)}function traverseElements(r,t){if(r)if(isArray$1(r))for(var o=0;o<r.length;o++)traverseElement(r[o],t);else traverseElement(r,t)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText(r,t){for(var o=0;o<SPECIAL_STATES.length;o++){var s=SPECIAL_STATES[o],l=t[s],h=r.ensureState(s);h.style=h.style||{},h.style.text=l}var v=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(v,!0)}function getLabelText(r,t,o){var s=r.labelFetcher,l=r.labelDataIndex,h=r.labelDimIndex,v=t.normal,x;s&&(x=s.getFormattedLabel(l,"normal",null,h,v&&v.get("formatter"),o!=null?{interpolatedValue:o}:null)),x==null&&(x=isFunction(r.defaultText)?r.defaultText(l,r,o):r.defaultText);for(var T={normal:x},w=0;w<SPECIAL_STATES.length;w++){var C=SPECIAL_STATES[w],M=t[C];T[C]=retrieve2(s?s.getFormattedLabel(l,C,null,h,M&&M.get("formatter")):null,x)}return T}function setLabelStyle(r,t,o,s){o=o||EMPTY_OBJ;for(var l=r instanceof ZRText$1,h=!1,v=0;v<DISPLAY_STATES.length;v++){var x=t[DISPLAY_STATES[v]];if(x&&x.getShallow("show")){h=!0;break}}var T=l?r:r.getTextContent();if(h){l||(T||(T=new ZRText$1,r.setTextContent(T)),r.stateProxy&&(T.stateProxy=r.stateProxy));var w=getLabelText(o,t),C=t.normal,M=!!C.getShallow("show"),V=createTextStyle$1(C,s&&s.normal,o,!1,!l);V.text=w.normal,l||r.setTextConfig(createTextConfig(C,o,!1));for(var v=0;v<SPECIAL_STATES.length;v++){var z=SPECIAL_STATES[v],x=t[z];if(x){var F=T.ensureState(z),B=!!retrieve2(x.getShallow("show"),M);if(B!==M&&(F.ignore=!B),F.style=createTextStyle$1(x,s&&s[z],o,!0,!l),F.style.text=w[z],!l){var W=r.ensureState(z);W.textConfig=createTextConfig(x,o,!0)}}}T.silent=!!C.getShallow("silent"),T.style.x!=null&&(V.x=T.style.x),T.style.y!=null&&(V.y=T.style.y),T.ignore=!M,T.useStyle(V),T.dirty(),o.enableTextSetter&&(labelInner(T).setLabelText=function(Y){var Z=getLabelText(o,t,Y);setLabelText(T,Z)})}else T&&(T.ignore=!0);r.dirty()}function getLabelStatesModels(r,t){t=t||"label";for(var o={normal:r.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];o[l]=r.getModel([l,t])}return o}function createTextStyle$1(r,t,o,s,l){var h={};return setTextStyleCommon(h,r,o,s,l),t&&extend(h,t),h}function createTextConfig(r,t,o){t=t||{};var s={},l,h=r.getShallow("rotate"),v=retrieve2(r.getShallow("distance"),o?null:5),x=r.getShallow("offset");return l=r.getShallow("position")||(o?null:"inside"),l==="outside"&&(l=t.defaultOutsidePosition||"top"),l!=null&&(s.position=l),x!=null&&(s.offset=x),h!=null&&(h*=Math.PI/180,s.rotation=h),v!=null&&(s.distance=v),s.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",s}function setTextStyleCommon(r,t,o,s,l){o=o||EMPTY_OBJ;var h=t.ecModel,v=h&&h.option.textStyle,x=getRichItemNames(t),T;if(x){T={};for(var w in x)if(x.hasOwnProperty(w)){var C=t.getModel(["rich",w]);setTokenTextStyle(T[w]={},C,v,o,s,l,!1,!0)}}T&&(r.rich=T);var M=t.get("overflow");M&&(r.overflow=M);var V=t.get("minMargin");V!=null&&(r.margin=V),setTokenTextStyle(r,t,v,o,s,l,!0,!1)}function getRichItemNames(r){for(var t;r&&r!==r.ecModel;){var o=(r.option||EMPTY_OBJ).rich;if(o){t=t||{};for(var s=keys(o),l=0;l<s.length;l++){var h=s[l];t[h]=1}}r=r.parentModel}return t}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(r,t,o,s,l,h,v,x){o=!l&&o||EMPTY_OBJ;var T=s&&s.inheritColor,w=t.getShallow("color"),C=t.getShallow("textBorderColor"),M=retrieve2(t.getShallow("opacity"),o.opacity);(w==="inherit"||w==="auto")&&(T?w=T:w=null),(C==="inherit"||C==="auto")&&(T?C=T:C=null),h||(w=w||o.color,C=C||o.textBorderColor),w!=null&&(r.fill=w),C!=null&&(r.stroke=C);var V=retrieve2(t.getShallow("textBorderWidth"),o.textBorderWidth);V!=null&&(r.lineWidth=V);var z=retrieve2(t.getShallow("textBorderType"),o.textBorderType);z!=null&&(r.lineDash=z);var F=retrieve2(t.getShallow("textBorderDashOffset"),o.textBorderDashOffset);F!=null&&(r.lineDashOffset=F),!l&&M==null&&!x&&(M=s&&s.defaultOpacity),M!=null&&(r.opacity=M),!l&&!h&&r.fill==null&&s.inheritColor&&(r.fill=s.inheritColor);for(var B=0;B<TEXT_PROPS_WITH_GLOBAL.length;B++){var W=TEXT_PROPS_WITH_GLOBAL[B],Y=retrieve2(t.getShallow(W),o[W]);Y!=null&&(r[W]=Y)}for(var B=0;B<TEXT_PROPS_SELF.length;B++){var W=TEXT_PROPS_SELF[B],Y=t.getShallow(W);Y!=null&&(r[W]=Y)}if(r.verticalAlign==null){var Z=t.getShallow("baseline");Z!=null&&(r.verticalAlign=Z)}if(!v||!s.disableBox){for(var B=0;B<TEXT_PROPS_BOX.length;B++){var W=TEXT_PROPS_BOX[B],Y=t.getShallow(W);Y!=null&&(r[W]=Y)}var X=t.getShallow("borderType");X!=null&&(r.borderDash=X),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&T&&(r.backgroundColor=T),(r.borderColor==="auto"||r.borderColor==="inherit")&&T&&(r.borderColor=T)}}function getFont(r,t){var o=t&&t.getModel("textStyle");return trim$1([r.fontStyle||o&&o.getShallow("fontStyle")||"",r.fontWeight||o&&o.getShallow("fontWeight")||"",(r.fontSize||o&&o.getShallow("fontSize")||12)+"px",r.fontFamily||o&&o.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation(r,t,o,s){if(r){var l=labelInner(r);l.prevValue=l.value,l.value=o;var h=t.normal;l.valueAnimation=h.get("valueAnimation"),l.valueAnimation&&(l.precision=h.get("precision"),l.defaultInterpolatedText=s,l.statesModels=t)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function r(){}return r.prototype.getTextColor=function(t){var o=this.ecModel;return this.getShallow("color")||(!t&&o?o.get(PATH_COLOR):null)},r.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var o={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},s=0;s<textStyleParams.length;s++)o[textStyleParams[s]]=this.getShallow(textStyleParams[s]);return tmpText.useStyle(o),tmpText.update(),tmpText.getBoundingRect()},r}();const TextStyleMixin$1=TextStyleMixin;var LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function r(){}return r.prototype.getLineStyle=function(t){return getLineStyle(this,t)},r}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function r(){}return r.prototype.getItemStyle=function(t,o){return getItemStyle(this,t,o)},r}(),Model=function(){function r(t,o,s){this.parentModel=o,this.ecModel=s,this.option=t}return r.prototype.init=function(t,o,s){},r.prototype.mergeOption=function(t,o){merge(this.option,t,!0)},r.prototype.get=function(t,o){return t==null?this.option:this._doGet(this.parsePath(t),!o&&this.parentModel)},r.prototype.getShallow=function(t,o){var s=this.option,l=s==null?s:s[t];if(l==null&&!o){var h=this.parentModel;h&&(l=h.getShallow(t))}return l},r.prototype.getModel=function(t,o){var s=t!=null,l=s?this.parsePath(t):null,h=s?this._doGet(l):this.option;return o=o||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(l)),new r(h,o,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(clone$3(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,o){var s=this.option;if(!t)return s;for(var l=0;l<t.length&&!(t[l]&&(s=s&&typeof s=="object"?s[t[l]]:null,s==null));l++);return s==null&&o&&(s=o._doGet(this.resolveParentPath(t),o.parentModel)),s},r}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID(r){return[r||"",base++].join("_")}function enableSubTypeDefaulter(r){var t={};r.registerSubTypeDefaulter=function(o,s){var l=parseClassType(o);t[l.main]=s},r.determineSubType=function(o,s){var l=s.type;if(!l){var h=parseClassType(o).main;r.hasSubTypes(o)&&t[h]&&(l=t[h](s))}return l}}function enableTopologicalTravel(r,t){r.topologicalTravel=function(h,v,x,T){if(!h.length)return;var w=o(v),C=w.graph,M=w.noEntryList,V={};for(each$c(h,function(Z){V[Z]=!0});M.length;){var z=M.pop(),F=C[z],B=!!V[z];B&&(x.call(T,z,F.originalDeps.slice()),delete V[z]),each$c(F.successor,B?Y:W)}each$c(V,function(){var Z="";throw new Error(Z)});function W(Z){C[Z].entryCount--,C[Z].entryCount===0&&M.push(Z)}function Y(Z){V[Z]=!0,W(Z)}};function o(h){var v={},x=[];return each$c(h,function(T){var w=s(v,T),C=w.originalDeps=t(T),M=l(C,h);w.entryCount=M.length,w.entryCount===0&&x.push(T),each$c(M,function(V){indexOf(w.predecessor,V)<0&&w.predecessor.push(V);var z=s(v,V);indexOf(z.successor,V)<0&&z.successor.push(T)})}),{graph:v,noEntryList:x}}function s(h,v){return h[v]||(h[v]={predecessor:[],successor:[]}),h[v]}function l(h,v){var x=[];return each$c(h,function(T){indexOf(v,T)>=0&&x.push(T)}),x}}function inheritDefaultOption(r,t){return merge(merge({},r,!0),t,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(r,t){r=r.toUpperCase(),localeModels[r]=new Model$1(t),localeStorage[r]=t}function createLocaleObject(r){if(isString(r)){var t=localeStorage[r.toUpperCase()]||{};return r===LOCALE_ZH||r===LOCALE_EN?clone$3(t):merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(r),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(r){return localeModels[r]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(r,t){return r+="","0000".substr(0,t-r.length)+r}function getPrimaryTimeUnit(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 isPrimaryTimeUnit(r){return r===getPrimaryTimeUnit(r)}function getDefaultFormatPrecisionOfInterval(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(r,t,o,s){var l=parseDate(r),h=l[fullYearGetterName(o)](),v=l[monthGetterName(o)]()+1,x=Math.floor((v-1)/3)+1,T=l[dateGetterName(o)](),w=l["get"+(o?"UTC":"")+"Day"](),C=l[hoursGetterName(o)](),M=(C-1)%12+1,V=l[minutesGetterName(o)](),z=l[secondsGetterName(o)](),F=l[millisecondsGetterName(o)](),B=s instanceof Model$1?s:getLocaleModel(s||SYSTEM_LANG)||getDefaultLocaleModel(),W=B.getModel("time"),Y=W.get("month"),Z=W.get("monthAbbr"),X=W.get("dayOfWeek"),te=W.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,h+"").replace(/{yy}/g,h%100+"").replace(/{Q}/g,x+"").replace(/{MMMM}/g,Y[v-1]).replace(/{MMM}/g,Z[v-1]).replace(/{MM}/g,pad(v,2)).replace(/{M}/g,v+"").replace(/{dd}/g,pad(T,2)).replace(/{d}/g,T+"").replace(/{eeee}/g,X[w]).replace(/{ee}/g,te[w]).replace(/{e}/g,w+"").replace(/{HH}/g,pad(C,2)).replace(/{H}/g,C+"").replace(/{hh}/g,pad(M+"",2)).replace(/{h}/g,M+"").replace(/{mm}/g,pad(V,2)).replace(/{m}/g,V+"").replace(/{ss}/g,pad(z,2)).replace(/{s}/g,z+"").replace(/{SSS}/g,pad(F,3)).replace(/{S}/g,F+"")}function leveledFormat(r,t,o,s,l){var h=null;if(isString(o))h=o;else if(isFunction(o))h=o(r.value,t,{level:r.level});else{var v=extend({},defaultLeveledFormatter);if(r.level>0)for(var x=0;x<primaryTimeUnits.length;++x)v[primaryTimeUnits[x]]="{primary|"+v[primaryTimeUnits[x]]+"}";var T=o?o.inherit===!1?o:defaults(o,v):v,w=getUnitFromValue(r.value,l);if(T[w])h=T[w];else if(T.inherit){for(var C=timeUnits.indexOf(w),x=C-1;x>=0;--x)if(T[w]){h=T[w];break}h=h||v.none}if(isArray$1(h)){var M=r.level==null?0:r.level>=0?r.level:h.length+r.level;M=Math.min(M,h.length-1),h=h[M]}}return format$1(new Date(r.value),h,l,s)}function getUnitFromValue(r,t){var o=parseDate(r),s=o[monthGetterName(t)]()+1,l=o[dateGetterName(t)](),h=o[hoursGetterName(t)](),v=o[minutesGetterName(t)](),x=o[secondsGetterName(t)](),T=o[millisecondsGetterName(t)](),w=T===0,C=w&&x===0,M=C&&v===0,V=M&&h===0,z=V&&l===1,F=z&&s===1;return F?"year":z?"month":V?"day":M?"hour":C?"minute":w?"second":"millisecond"}function getUnitValue(r,t,o){var s=isNumber(r)?parseDate(r):r;switch(t=t||getUnitFromValue(r,o),t){case"year":return s[fullYearGetterName(o)]();case"half-year":return s[monthGetterName(o)]()>=6?1:0;case"quarter":return Math.floor((s[monthGetterName(o)]()+1)/4);case"month":return s[monthGetterName(o)]();case"day":return s[dateGetterName(o)]();case"half-day":return s[hoursGetterName(o)]()/24;case"hour":return s[hoursGetterName(o)]();case"minute":return s[minutesGetterName(o)]();case"second":return s[secondsGetterName(o)]();case"millisecond":return s[millisecondsGetterName(o)]()}}function fullYearGetterName(r){return r?"getUTCFullYear":"getFullYear"}function monthGetterName(r){return r?"getUTCMonth":"getMonth"}function dateGetterName(r){return r?"getUTCDate":"getDate"}function hoursGetterName(r){return r?"getUTCHours":"getHours"}function minutesGetterName(r){return r?"getUTCMinutes":"getMinutes"}function secondsGetterName(r){return r?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(r){return r?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(r){return r?"setUTCFullYear":"setFullYear"}function monthSetterName(r){return r?"setUTCMonth":"setMonth"}function dateSetterName(r){return r?"setUTCDate":"setDate"}function hoursSetterName(r){return r?"setUTCHours":"setHours"}function minutesSetterName(r){return r?"setUTCMinutes":"setMinutes"}function secondsSetterName(r){return r?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(r){return r?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(r,t,o,s,l,h,v,x){var T=new ZRText$1({style:{text:r,font:t,align:o,verticalAlign:s,padding:l,rich:h,overflow:v?"truncate":null,lineHeight:x}});return T.getBoundingRect()}function addCommas(r){if(!isNumeric(r))return isString(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function toCamelCase(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(o,s){return s.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(r,t,o){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(C){return C&&trim$1(C)?C:"-"}function h(C){return!!(C!=null&&!isNaN(C)&&isFinite(C))}var v=t==="time",x=r instanceof Date;if(v||x){var T=v?parseDate(r):r;if(isNaN(+T)){if(x)return"-"}else return format$1(T,s,o)}if(t==="ordinal")return isStringSafe(r)?l(r):isNumber(r)&&h(r)?r+"":"-";var w=numericToNumber(r);return h(w)?addCommas(w):isStringSafe(r)?l(r):typeof r=="boolean"?r+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(r,t){return"{"+r+(t??"")+"}"};function formatTpl(r,t,o){isArray$1(t)||(t=[t]);var s=t.length;if(!s)return"";for(var l=t[0].$vars||[],h=0;h<l.length;h++){var v=TPL_VAR_ALIAS[h];r=r.replace(wrapVar(v),wrapVar(v,0))}for(var x=0;x<s;x++)for(var T=0;T<l.length;T++){var w=t[x][l[T]];r=r.replace(wrapVar(TPL_VAR_ALIAS[T],x),o?encodeHTML(w):w)}return r}function getTooltipMarker(r,t){var o=isString(r)?{color:r,extraCssText:t}:r||{},s=o.color,l=o.type;t=o.extraCssText;var h=o.renderMode||"html";if(!s)return"";if(h==="html")return l==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>';var v=o.markerId||"markerX";return{renderMode:h,content:"{"+v+"|} ",style:l==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}}function formatTime(r,t,o){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
|
||
yyyy`);var s=parseDate(t),l=o?"getUTC":"get",h=s[l+"FullYear"](),v=s[l+"Month"]()+1,x=s[l+"Date"](),T=s[l+"Hours"](),w=s[l+"Minutes"](),C=s[l+"Seconds"](),M=s[l+"Milliseconds"]();return r=r.replace("MM",pad(v,2)).replace("M",v).replace("yyyy",h).replace("yy",pad(h%100+"",2)).replace("dd",pad(x,2)).replace("d",x).replace("hh",pad(T,2)).replace("h",T).replace("mm",pad(w,2)).replace("m",w).replace("ss",pad(C,2)).replace("s",C).replace("SSS",pad(M,3)),r}function capitalFirst(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function convertToColorString(r,t){return t=t||"transparent",isString(r)?r:isObject$3(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function windowOpen(r,t){if(t==="_blank"||t==="blank"){var o=window.open();o.opener=null,o.location.href=r}else window.open(r,t)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(r,t,o,s,l){var h=0,v=0;s==null&&(s=1/0),l==null&&(l=1/0);var x=0;t.eachChild(function(T,w){var C=T.getBoundingRect(),M=t.childAt(w+1),V=M&&M.getBoundingRect(),z,F;if(r==="horizontal"){var B=C.width+(V?-V.x+C.x:0);z=h+B,z>s||T.newline?(h=0,z=B,v+=x+o,x=C.height):x=Math.max(x,C.height)}else{var W=C.height+(V?-V.y+C.y:0);F=v+W,F>l||T.newline?(h+=x+o,v=0,F=W,x=C.width):x=Math.max(x,C.width)}T.newline||(T.x=h,T.y=v,T.markRedraw(),r==="horizontal"?h=z+o:v=F+o)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(r,t,o){o=normalizeCssArray(o||0);var s=t.width,l=t.height,h=parsePercent(r.left,s),v=parsePercent(r.top,l),x=parsePercent(r.right,s),T=parsePercent(r.bottom,l),w=parsePercent(r.width,s),C=parsePercent(r.height,l),M=o[2]+o[0],V=o[1]+o[3],z=r.aspect;switch(isNaN(w)&&(w=s-x-V-h),isNaN(C)&&(C=l-T-M-v),z!=null&&(isNaN(w)&&isNaN(C)&&(z>s/l?w=s*.8:C=l*.8),isNaN(w)&&(w=z*C),isNaN(C)&&(C=w/z)),isNaN(h)&&(h=s-x-w-V),isNaN(v)&&(v=l-T-C-M),r.left||r.right){case"center":h=s/2-w/2-o[3];break;case"right":h=s-w-V;break}switch(r.top||r.bottom){case"middle":case"center":v=l/2-C/2-o[0];break;case"bottom":v=l-C-M;break}h=h||0,v=v||0,isNaN(w)&&(w=s-V-h-(x||0)),isNaN(C)&&(C=l-M-v-(T||0));var F=new BoundingRect$1(h+o[3],v+o[0],w,C);return F.margin=o,F}function positionElement(r,t,o,s,l,h){var v=!l||!l.hv||l.hv[0],x=!l||!l.hv||l.hv[1],T=l&&l.boundingMode||"all";if(h=h||r,h.x=r.x,h.y=r.y,!v&&!x)return!1;var w;if(T==="raw")w=r.type==="group"?new BoundingRect$1(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(w=r.getBoundingRect(),r.needLocalTransform()){var C=r.getLocalTransform();w=w.clone(),w.applyTransform(C)}var M=getLayoutRect(defaults({width:w.width,height:w.height},t),o,s),V=v?M.x-w.x:0,z=x?M.y-w.y:0;return T==="raw"?(h.x=V,h.y=z):(h.x+=V,h.y+=z),h===r&&r.markRedraw(),!0}function fetchLayoutMode(r){var t=r.layoutMode||r.constructor.layoutMode;return isObject$3(t)?t:t?{type:t}:null}function mergeLayoutParam(r,t,o){var s=o&&o.ignoreSize;!isArray$1(s)&&(s=[s,s]);var l=v(HV_NAMES[0],0),h=v(HV_NAMES[1],1);w(HV_NAMES[0],r,l),w(HV_NAMES[1],r,h);function v(C,M){var V={},z=0,F={},B=0,W=2;if(each$b(C,function(X){F[X]=r[X]}),each$b(C,function(X){x(t,X)&&(V[X]=F[X]=t[X]),T(V,X)&&z++,T(F,X)&&B++}),s[M])return T(t,C[1])?F[C[2]]=null:T(t,C[2])&&(F[C[1]]=null),F;if(B===W||!z)return F;if(z>=W)return V;for(var Y=0;Y<C.length;Y++){var Z=C[Y];if(!x(V,Z)&&x(r,Z)){V[Z]=r[Z];break}}return V}function x(C,M){return C.hasOwnProperty(M)}function T(C,M){return C[M]!=null&&C[M]!=="auto"}function w(C,M,V){each$b(C,function(z){M[z]=V[z]})}}function getLayoutParams(r){return copyLayoutParams({},r)}function copyLayoutParams(r,t){return t&&r&&each$b(LOCATION_PARAMS,function(o){t.hasOwnProperty(o)&&(r[o]=t[o])}),r}var inner$c=makeInner(),ComponentModel=function(r){__extends(t,r);function t(o,s,l){var h=r.call(this,o,s,l)||this;return h.uid=getUID("ec_cpt_model"),h}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),h=l?getLayoutParams(o):{},v=s.getTheme();merge(o,v.get(this.mainType)),merge(o,this.getDefaultOption()),l&&mergeLayoutParam(o,h,l)},t.prototype.mergeOption=function(o,s){merge(this.option,o,!0);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,o,l)},t.prototype.optionUpdated=function(o,s){},t.prototype.getDefaultOption=function(){var o=this.constructor;if(!isExtendedClass(o))return o.defaultOption;var s=inner$c(this);if(!s.defaultOption){for(var l=[],h=o;h;){var v=h.prototype.defaultOption;v&&l.push(v),h=h.superClass}for(var x={},T=l.length-1;T>=0;T--)x=merge(x,l[T],!0);s.defaultOption=x}return s.defaultOption},t.prototype.getReferringComponents=function(o,s){var l=o+"Index",h=o+"Id";return queryReferringComponents(this.ecModel,o,{index:this.get(l,!0),id:this.get(h,!0)},s)},t.prototype.getBoxLayoutParams=function(){var o=this;return{left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(o){this.option.zlevel=o},t.protoInitialize=function(){var o=t.prototype;o.type="component",o.id="",o.name="",o.mainType="",o.subType="",o.componentIndex=0}(),t}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(r){var t=[];return each$c(ComponentModel.getClassesByMainType(r),function(o){t=t.concat(o.dependencies||o.prototype.dependencies||[])}),t=map$2(t,function(o){return parseClassType(o).main}),r!=="dataset"&&indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.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 VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(r){innerGlobalModel(r).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(r,t,o){var s={},l=querySeriesUpstreamDatasetModel(t);if(!l||!r)return s;var h=[],v=[],x=t.ecModel,T=innerGlobalModel(x).datasetMap,w=l.uid+"_"+o.seriesLayoutBy,C,M;r=r.slice(),each$c(r,function(B,W){var Y=isObject$3(B)?B:r[W]={name:B};Y.type==="ordinal"&&C==null&&(C=W,M=F(Y)),s[Y.name]=[]});var V=T.get(w)||T.set(w,{categoryWayDim:M,valueWayDim:0});each$c(r,function(B,W){var Y=B.name,Z=F(B);if(C==null){var X=V.valueWayDim;z(s[Y],X,Z),z(v,X,Z),V.valueWayDim+=Z}else if(C===W)z(s[Y],0,Z),z(h,0,Z);else{var X=V.categoryWayDim;z(s[Y],X,Z),z(v,X,Z),V.categoryWayDim+=Z}});function z(B,W,Y){for(var Z=0;Z<Y;Z++)B.push(W+Z)}function F(B){var W=B.dimsDef;return W?W.length:1}return h.length&&(s.itemName=h),v.length&&(s.seriesName=v),s}function makeSeriesEncodeForNameBased(r,t,o){var s={},l=querySeriesUpstreamDatasetModel(r);if(!l)return s;var h=t.sourceFormat,v=t.dimensionsDefine,x;(h===SOURCE_FORMAT_OBJECT_ROWS||h===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(v,function(C,M){(isObject$3(C)?C.name:C)==="name"&&(x=M)});var T=function(){for(var C={},M={},V=[],z=0,F=Math.min(5,o);z<F;z++){var B=doGuessOrdinal(t.data,h,t.seriesLayoutBy,v,t.startIndex,z);V.push(B);var W=B===BE_ORDINAL.Not;if(W&&C.v==null&&z!==x&&(C.v=z),(C.n==null||C.n===C.v||!W&&V[C.n]===BE_ORDINAL.Not)&&(C.n=z),Y(C)&&V[C.n]!==BE_ORDINAL.Not)return C;W||(B===BE_ORDINAL.Might&&M.v==null&&z!==x&&(M.v=z),(M.n==null||M.n===M.v)&&(M.n=z))}function Y(Z){return Z.v!=null&&Z.n!=null}return Y(C)?C:Y(M)?M:null}();if(T){s.value=[T.v];var w=x??T.n;s.itemName=[w],s.seriesName=[w]}return s}function querySeriesUpstreamDatasetModel(r){var t=r.get("data",!0);if(!t)return queryReferringComponents(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:queryReferringComponents(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal(r,t){return doGuessOrdinal(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function doGuessOrdinal(r,t,o,s,l,h){var v,x=5;if(isTypedArray(r))return BE_ORDINAL.Not;var T,w;if(s){var C=s[h];isObject$3(C)?(T=C.name,w=C.type):isString(C)&&(T=C)}if(w!=null)return w==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(t===SOURCE_FORMAT_ARRAY_ROWS){var M=r;if(o===SERIES_LAYOUT_BY_ROW){for(var V=M[h],z=0;z<(V||[]).length&&z<x;z++)if((v=te(V[l+z]))!=null)return v}else for(var z=0;z<M.length&&z<x;z++){var F=M[l+z];if(F&&(v=te(F[h]))!=null)return v}}else if(t===SOURCE_FORMAT_OBJECT_ROWS){var B=r;if(!T)return BE_ORDINAL.Not;for(var z=0;z<B.length&&z<x;z++){var W=B[z];if(W&&(v=te(W[T]))!=null)return v}}else if(t===SOURCE_FORMAT_KEYED_COLUMNS){var Y=r;if(!T)return BE_ORDINAL.Not;var V=Y[T];if(!V||isTypedArray(V))return BE_ORDINAL.Not;for(var z=0;z<V.length&&z<x;z++)if((v=te(V[z]))!=null)return v}else if(t===SOURCE_FORMAT_ORIGINAL)for(var Z=r,z=0;z<Z.length&&z<x;z++){var W=Z[z],X=getDataItemValue(W);if(!isArray$1(X))return BE_ORDINAL.Not;if((v=te(X[h]))!=null)return v}function te(oe){var ae=isString(oe);if(oe!=null&&isFinite(oe)&&oe!=="")return ae?BE_ORDINAL.Might:BE_ORDINAL.Not;if(ae&&oe!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator(r,t){assert(internalOptionCreatorMap.get(r)==null&&t),internalOptionCreatorMap.set(r,t)}function concatInternalOptions(r,t,o){var s=internalOptionCreatorMap.get(t);if(!s)return o;var l=s(r);return l?o.concat(l):o}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function r(){}return r.prototype.getColorFromPalette=function(t,o,s){var l=normalizeToArray(this.get("color",!0)),h=this.get("colorLayer",!0);return getFromPalette(this,innerColor,l,h,t,o,s)},r.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},r}();function getNearestPalette(r,t){for(var o=r.length,s=0;s<o;s++)if(r[s].length>t)return r[s];return r[o-1]}function getFromPalette(r,t,o,s,l,h,v){h=h||r;var x=t(h),T=x.paletteIdx||0,w=x.paletteNameMap=x.paletteNameMap||{};if(w.hasOwnProperty(l))return w[l];var C=v==null||!s?o:getNearestPalette(s,v);if(C=C||o,!(!C||!C.length)){var M=C[T];return l&&(w[l]=M),x.paletteIdx=(T+1)%C.length,M}}function clearPalette(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(o,s,l,h,v,x){h=h||{},this.option=null,this._theme=new Model$1(h),this._locale=new Model$1(v),this._optionManager=x},t.prototype.setOption=function(o,s,l){var h=normalizeSetOptionInput(s);this._optionManager.setOption(o,l,h),this._resetOption(null,h)},t.prototype.resetOption=function(o,s){return this._resetOption(o,normalizeSetOptionInput(s))},t.prototype._resetOption=function(o,s){var l=!1,h=this._optionManager;if(!o||o==="recreate"){var v=h.mountOption(o==="recreate");!this.option||o==="recreate"?initBase(this,v):(this.restoreData(),this._mergeOption(v,s)),l=!0}if((o==="timeline"||o==="media")&&this.restoreData(),!o||o==="recreate"||o==="timeline"){var x=h.getTimelineOption(this);x&&(l=!0,this._mergeOption(x,s))}if(!o||o==="recreate"||o==="media"){var T=h.getMediaOption(this);T.length&&each$c(T,function(w){l=!0,this._mergeOption(w,s)},this)}return l},t.prototype.mergeOption=function(o){this._mergeOption(o,null)},t.prototype._mergeOption=function(o,s){var l=this.option,h=this._componentsMap,v=this._componentsCount,x=[],T=createHashMap(),w=s&&s.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(o,function(M,V){M!=null&&(ComponentModel$1.hasClass(V)?V&&(x.push(V),T.set(V,!0)):l[V]=l[V]==null?clone$3(M):merge(l[V],M,!0))}),w&&w.each(function(M,V){ComponentModel$1.hasClass(V)&&!T.get(V)&&(x.push(V),T.set(V,!0))}),ComponentModel$1.topologicalTravel(x,ComponentModel$1.getAllClassMainTypes(),C,this);function C(M){var V=concatInternalOptions(this,M,normalizeToArray(o[M])),z=h.get(M),F=z?w&&w.get(M)?"replaceMerge":"normalMerge":"replaceAll",B=mappingToExists(z,V,F);setComponentTypeToKeyInfo(B,M,ComponentModel$1),l[M]=null,h.set(M,null),v.set(M,0);var W=[],Y=[],Z=0,X;each$c(B,function(te,oe){var ae=te.existing,le=te.newOption;if(!le)ae&&(ae.mergeOption({},this),ae.optionUpdated({},!1));else{var he=M==="series",me=ComponentModel$1.getClass(M,te.keyInfo.subType,!he);if(!me)return;if(M==="tooltip"){if(X)return;X=!0}if(ae&&ae.constructor===me)ae.name=te.keyInfo.name,ae.mergeOption(le,this),ae.optionUpdated(le,!1);else{var _e=extend({componentIndex:oe},te.keyInfo);ae=new me(le,this,this,_e),extend(ae,_e),te.brandNew&&(ae.__requireNewView=!0),ae.init(le,this,this),ae.optionUpdated(null,!0)}}ae?(W.push(ae.option),Y.push(ae),Z++):(W.push(void 0),Y.push(void 0))},this),l[M]=W,h.set(M,Y),v.set(M,Z),M==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},t.prototype.getOption=function(){var o=clone$3(this.option);return each$c(o,function(s,l){if(ComponentModel$1.hasClass(l)){for(var h=normalizeToArray(s),v=h.length,x=!1,T=v-1;T>=0;T--)h[T]&&!isComponentIdInternal(h[T])?x=!0:(h[T]=null,!x&&v--);h.length=v,o[l]=h}}),delete o[OPTION_INNER_KEY],o},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(o){this._payload=o},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(o,s){var l=this._componentsMap.get(o);if(l){var h=l[s||0];if(h)return h;if(s==null){for(var v=0;v<l.length;v++)if(l[v])return l[v]}}},t.prototype.queryComponents=function(o){var s=o.mainType;if(!s)return[];var l=o.index,h=o.id,v=o.name,x=this._componentsMap.get(s);if(!x||!x.length)return[];var T;return l!=null?(T=[],each$c(normalizeToArray(l),function(w){x[w]&&T.push(x[w])})):h!=null?T=queryByIdOrName("id",h,x):v!=null?T=queryByIdOrName("name",v,x):T=filter(x,function(w){return!!w}),filterBySubType(T,o)},t.prototype.findComponents=function(o){var s=o.query,l=o.mainType,h=x(s),v=h?this.queryComponents(h):filter(this._componentsMap.get(l),function(w){return!!w});return T(filterBySubType(v,o));function x(w){var C=l+"Index",M=l+"Id",V=l+"Name";return w&&(w[C]!=null||w[M]!=null||w[V]!=null)?{mainType:l,index:w[C],id:w[M],name:w[V]}:null}function T(w){return o.filter?filter(w,o.filter):w}},t.prototype.eachComponent=function(o,s,l){var h=this._componentsMap;if(isFunction(o)){var v=s,x=o;h.each(function(M,V){for(var z=0;M&&z<M.length;z++){var F=M[z];F&&x.call(v,V,F,F.componentIndex)}})}else for(var T=isString(o)?h.get(o):isObject$3(o)?this.findComponents(o):null,w=0;T&&w<T.length;w++){var C=T[w];C&&s.call(l,C,C.componentIndex)}},t.prototype.getSeriesByName=function(o){var s=convertOptionIdName(o,null);return filter(this._componentsMap.get("series"),function(l){return!!l&&s!=null&&l.name===s})},t.prototype.getSeriesByIndex=function(o){return this._componentsMap.get("series")[o]},t.prototype.getSeriesByType=function(o){return filter(this._componentsMap.get("series"),function(s){return!!s&&s.subType===o})},t.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(o){return!!o})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(o,s){assertSeriesInitialized(this),each$c(this._seriesIndices,function(l){var h=this._componentsMap.get("series")[l];o.call(s,h,l)},this)},t.prototype.eachRawSeries=function(o,s){each$c(this._componentsMap.get("series"),function(l){l&&o.call(s,l,l.componentIndex)})},t.prototype.eachSeriesByType=function(o,s,l){assertSeriesInitialized(this),each$c(this._seriesIndices,function(h){var v=this._componentsMap.get("series")[h];v.subType===o&&s.call(l,v,h)},this)},t.prototype.eachRawSeriesByType=function(o,s,l){return each$c(this.getSeriesByType(o),s,l)},t.prototype.isSeriesFiltered=function(o){return assertSeriesInitialized(this),this._seriesIndicesMap.get(o.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(o,s){assertSeriesInitialized(this);var l=[];each$c(this._seriesIndices,function(h){var v=this._componentsMap.get("series")[h];o.call(s,v,h)&&l.push(h)},this),this._seriesIndices=l,this._seriesIndicesMap=createHashMap(l)},t.prototype.restoreData=function(o){reCreateSeriesIndices(this);var s=this._componentsMap,l=[];s.each(function(h,v){ComponentModel$1.hasClass(v)&&l.push(v)}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),function(h){each$c(s.get(h),function(v){v&&(h!=="series"||!isNotTargetSeries(v,o))&&v.restoreData()})})},t.internalField=function(){reCreateSeriesIndices=function(o){var s=o._seriesIndices=[];each$c(o._componentsMap.get("series"),function(l){l&&s.push(l.componentIndex)}),o._seriesIndicesMap=createHashMap(s)},assertSeriesInitialized=function(o){},initBase=function(o,s){o.option={},o.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,o._componentsMap=createHashMap({series:[]}),o._componentsCount=createHashMap();var l=s.aria;isObject$3(l)&&l.enabled==null&&(l.enabled=!0),mergeTheme(s,o._theme.option),merge(s,globalDefault,!1),o._mergeOption(s,null)}}(),t}(Model$1);function isNotTargetSeries(r,t){if(t){var o=t.seriesIndex,s=t.seriesId,l=t.seriesName;return o!=null&&r.componentIndex!==o||s!=null&&r.id!==s||l!=null&&r.name!==l}}function mergeTheme(r,t){var o=r.color&&!r.colorLayer;each$c(t,function(s,l){l==="colorLayer"&&o||ComponentModel$1.hasClass(l)||(typeof s=="object"?r[l]=r[l]?merge(r[l],s,!1):clone$3(s):r[l]==null&&(r[l]=s))})}function queryByIdOrName(r,t,o){if(isArray$1(t)){var s=createHashMap();return each$c(t,function(h){if(h!=null){var v=convertOptionIdName(h,null);v!=null&&s.set(h,!0)}}),filter(o,function(h){return h&&s.get(h[r])})}else{var l=convertOptionIdName(t,null);return filter(o,function(h){return h&&l!=null&&h[r]===l})}}function filterBySubType(r,t){return t.hasOwnProperty("subType")?filter(r,function(o){return o&&o.subType===t.subType}):r}function normalizeSetOptionInput(r){var t=createHashMap();return r&&each$c(normalizeToArray(r.replaceMerge),function(o){t.set(o,!0)}),{replaceMergeMainTypeMap:t}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function r(t){each$c(availableMethods,function(o){this[o]=bind$1(t[o],t)},this)}return r}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,o){var s=[];each$c(coordinateSystemCreators,function(l,h){var v=l.create(t,o);s=s.concat(v||[])}),this._coordinateSystems=s},r.prototype.update=function(t,o){each$c(this._coordinateSystems,function(s){s.update&&s.update(t,o)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,o){coordinateSystemCreators[t]=o},r.get=function(t){return coordinateSystemCreators[t]},r}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,o,s){t&&(each$c(normalizeToArray(t.series),function(v){v&&v.data&&isTypedArray(v.data)&&setAsPrimitive(v.data)}),each$c(normalizeToArray(t.dataset),function(v){v&&v.source&&isTypedArray(v.source)&&setAsPrimitive(v.source)})),t=clone$3(t);var l=this._optionBackup,h=parseRawOption(t,o,!l);this._newBaseOption=h.baseOption,l?(h.timelineOptions.length&&(l.timelineOptions=h.timelineOptions),h.mediaList.length&&(l.mediaList=h.mediaList),h.mediaDefault&&(l.mediaDefault=h.mediaDefault)):this._optionBackup=h},r.prototype.mountOption=function(t){var o=this._optionBackup;return this._timelineOptions=o.timelineOptions,this._mediaList=o.mediaList,this._mediaDefault=o.mediaDefault,this._currentMediaIndices=[],clone$3(t?o.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var o,s=this._timelineOptions;if(s.length){var l=t.getComponent("timeline");l&&(o=clone$3(s[l.getCurrentIndex()]))}return o},r.prototype.getMediaOption=function(t){var o=this._api.getWidth(),s=this._api.getHeight(),l=this._mediaList,h=this._mediaDefault,v=[],x=[];if(!l.length&&!h)return x;for(var T=0,w=l.length;T<w;T++)applyMediaQuery(l[T].query,o,s)&&v.push(T);return!v.length&&h&&(v=[-1]),v.length&&!indicesEquals(v,this._currentMediaIndices)&&(x=map$2(v,function(C){return clone$3(C===-1?h.option:l[C].option)})),this._currentMediaIndices=v,x},r}();function parseRawOption(r,t,o){var s=[],l,h,v=r.baseOption,x=r.timeline,T=r.options,w=r.media,C=!!r.media,M=!!(T||x||v&&v.timeline);v?(h=v,h.timeline||(h.timeline=x)):((M||C)&&(r.options=r.media=null),h=r),C&&isArray$1(w)&&each$c(w,function(z){z&&z.option&&(z.query?s.push(z):l||(l=z))}),V(h),each$c(T,function(z){return V(z)}),each$c(s,function(z){return V(z.option)});function V(z){each$c(t,function(F){F(z,o)})}return{baseOption:h,timelineOptions:T||[],mediaDefault:l,mediaList:s}}function applyMediaQuery(r,t,o){var s={width:t,height:o,aspectratio:t/o},l=!0;return each$c(r,function(h,v){var x=v.match(QUERY_REG);if(!(!x||!x[1]||!x[2])){var T=x[1],w=x[2].toLowerCase();compare(s[w],h,T)||(l=!1)}}),l}function compare(r,t,o){return o==="min"?r>=t:o==="max"?r<=t:r===t}function indicesEquals(r,t){return r.join(",")===t.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(r){var t=r&&r.itemStyle;if(t)for(var o=0,s=POSSIBLE_STYLES.length;o<s;o++){var l=POSSIBLE_STYLES[o],h=t.normal,v=t.emphasis;h&&h[l]&&(r[l]=r[l]||{},r[l].normal?merge(r[l].normal,h[l]):r[l].normal=h[l],h[l]=null),v&&v[l]&&(r[l]=r[l]||{},r[l].emphasis?merge(r[l].emphasis,v[l]):r[l].emphasis=v[l],v[l]=null)}}function convertNormalEmphasis(r,t,o){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var s=r[t].normal,l=r[t].emphasis;s&&(o?(r[t].normal=r[t].emphasis=null,defaults(r[t],s)):r[t]=s),l&&(r.emphasis=r.emphasis||{},r.emphasis[t]=l,l.focus&&(r.emphasis.focus=l.focus),l.blurScope&&(r.emphasis.blurScope=l.blurScope))}}function removeEC3NormalStatus(r){convertNormalEmphasis(r,"itemStyle"),convertNormalEmphasis(r,"lineStyle"),convertNormalEmphasis(r,"areaStyle"),convertNormalEmphasis(r,"label"),convertNormalEmphasis(r,"labelLine"),convertNormalEmphasis(r,"upperLabel"),convertNormalEmphasis(r,"edgeLabel")}function compatTextStyle(r,t){var o=isObject$2(r)&&r[t],s=isObject$2(o)&&o.textStyle;if(s)for(var l=0,h=TEXT_STYLE_OPTIONS.length;l<h;l++){var v=TEXT_STYLE_OPTIONS[l];s.hasOwnProperty(v)&&(o[v]=s[v])}}function compatEC3CommonStyles(r){r&&(removeEC3NormalStatus(r),compatTextStyle(r,"label"),r.emphasis&&compatTextStyle(r.emphasis,"label"))}function processSeries(r){if(isObject$2(r)){compatEC2ItemStyle(r),removeEC3NormalStatus(r),compatTextStyle(r,"label"),compatTextStyle(r,"upperLabel"),compatTextStyle(r,"edgeLabel"),r.emphasis&&(compatTextStyle(r.emphasis,"label"),compatTextStyle(r.emphasis,"upperLabel"),compatTextStyle(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(compatEC2ItemStyle(t),compatEC3CommonStyles(t));var o=r.markLine;o&&(compatEC2ItemStyle(o),compatEC3CommonStyles(o));var s=r.markArea;s&&compatEC3CommonStyles(s);var l=r.data;if(r.type==="graph"){l=l||r.nodes;var h=r.links||r.edges;if(h&&!isTypedArray(h))for(var v=0;v<h.length;v++)compatEC3CommonStyles(h[v]);each$c(r.categories,function(w){removeEC3NormalStatus(w)})}if(l&&!isTypedArray(l))for(var v=0;v<l.length;v++)compatEC3CommonStyles(l[v]);if(t=r.markPoint,t&&t.data)for(var x=t.data,v=0;v<x.length;v++)compatEC3CommonStyles(x[v]);if(o=r.markLine,o&&o.data)for(var T=o.data,v=0;v<T.length;v++)isArray$1(T[v])?(compatEC3CommonStyles(T[v][0]),compatEC3CommonStyles(T[v][1])):compatEC3CommonStyles(T[v]);r.type==="gauge"?(compatTextStyle(r,"axisLabel"),compatTextStyle(r,"title"),compatTextStyle(r,"detail")):r.type==="treemap"?(convertNormalEmphasis(r.breadcrumb,"itemStyle"),each$c(r.levels,function(w){removeEC3NormalStatus(w)})):r.type==="tree"&&removeEC3NormalStatus(r.leaves)}}function toArr(r){return isArray$1(r)?r:r?[r]:[]}function toObj(r){return(isArray$1(r)?r[0]:r)||{}}function globalCompatStyle(r,t){each$a(toArr(r.series),function(s){isObject$2(s)&&processSeries(s)});var o=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&o.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(o,function(s){each$a(toArr(r[s]),function(l){l&&(compatTextStyle(l,"axisLabel"),compatTextStyle(l.axisPointer,"label"))})}),each$a(toArr(r.parallel),function(s){var l=s&&s.parallelAxisDefault;compatTextStyle(l,"axisLabel"),compatTextStyle(l&&l.axisPointer,"label")}),each$a(toArr(r.calendar),function(s){convertNormalEmphasis(s,"itemStyle"),compatTextStyle(s,"dayLabel"),compatTextStyle(s,"monthLabel"),compatTextStyle(s,"yearLabel")}),each$a(toArr(r.radar),function(s){compatTextStyle(s,"name"),s.name&&s.axisName==null&&(s.axisName=s.name,delete s.name),s.nameGap!=null&&s.axisNameGap==null&&(s.axisNameGap=s.nameGap,delete s.nameGap)}),each$a(toArr(r.geo),function(s){isObject$2(s)&&(compatEC3CommonStyles(s),each$a(toArr(s.regions),function(l){compatEC3CommonStyles(l)}))}),each$a(toArr(r.timeline),function(s){compatEC3CommonStyles(s),convertNormalEmphasis(s,"label"),convertNormalEmphasis(s,"itemStyle"),convertNormalEmphasis(s,"controlStyle",!0);var l=s.data;isArray$1(l)&&each$c(l,function(h){isObject$3(h)&&(convertNormalEmphasis(h,"label"),convertNormalEmphasis(h,"itemStyle"))})}),each$a(toArr(r.toolbox),function(s){convertNormalEmphasis(s,"iconStyle"),each$a(s.feature,function(l){convertNormalEmphasis(l,"iconStyle")})}),compatTextStyle(toObj(r.axisPointer),"label"),compatTextStyle(toObj(r.tooltip).axisPointer,"label")}function get(r,t){for(var o=t.split(","),s=r,l=0;l<o.length&&(s=s&&s[o[l]],s!=null);l++);return s}function set(r,t,o,s){for(var l=t.split(","),h=r,v,x=0;x<l.length-1;x++)v=l[x],h[v]==null&&(h[v]={}),h=h[v];(s||h[l[x]]==null)&&(h[l[x]]=o)}function compatLayoutProperties(r){r&&each$c(LAYOUT_PROPERTIES,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle(r){var t=r&&r.itemStyle;if(t)for(var o=0;o<BAR_ITEM_STYLE_MAP.length;o++){var s=BAR_ITEM_STYLE_MAP[o][1],l=BAR_ITEM_STYLE_MAP[o][0];t[s]!=null&&(t[l]=t[s])}}function compatPieLabel(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function compatSunburstState(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function compatGraphFocus(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function traverseTree(r,t){if(r)for(var o=0;o<r.length;o++)t(r[o]),r[o]&&traverseTree(r[o].children,t)}function globalBackwardCompat(r,t){globalCompatStyle(r,t),r.series=normalizeToArray(r.series),each$c(r.series,function(o){if(isObject$3(o)){var s=o.type;if(s==="line")o.clipOverflow!=null&&(o.clip=o.clipOverflow);else if(s==="pie"||s==="gauge"){o.clockWise!=null&&(o.clockwise=o.clockWise),compatPieLabel(o.label);var l=o.data;if(l&&!isTypedArray(l))for(var h=0;h<l.length;h++)compatPieLabel(l[h]);o.hoverOffset!=null&&(o.emphasis=o.emphasis||{},(o.emphasis.scaleSize=null)&&(o.emphasis.scaleSize=o.hoverOffset))}else if(s==="gauge"){var v=get(o,"pointer.color");v!=null&&set(o,"itemStyle.color",v)}else if(s==="bar"){compatBarItemStyle(o),compatBarItemStyle(o.backgroundStyle),compatBarItemStyle(o.emphasis);var l=o.data;if(l&&!isTypedArray(l))for(var h=0;h<l.length;h++)typeof l[h]=="object"&&(compatBarItemStyle(l[h]),compatBarItemStyle(l[h]&&l[h].emphasis))}else if(s==="sunburst"){var x=o.highlightPolicy;x&&(o.emphasis=o.emphasis||{},o.emphasis.focus||(o.emphasis.focus=x)),compatSunburstState(o),traverseTree(o.data,compatSunburstState)}else s==="graph"||s==="sankey"?compatGraphFocus(o):s==="map"&&(o.mapType&&!o.map&&(o.map=o.mapType),o.mapLocation&&defaults(o,o.mapLocation));o.hoverAnimation!=null&&(o.emphasis=o.emphasis||{},o.emphasis&&o.emphasis.scale==null&&(o.emphasis.scale=o.hoverAnimation)),compatLayoutProperties(o)}}),r.dataRange&&(r.visualMap=r.dataRange),each$c(COMPATITABLE_COMPONENTS,function(o){var s=r[o];s&&(isArray$1(s)||(s=[s]),each$c(s,function(l){compatLayoutProperties(l)}))})}function dataStack$1(r){var t=createHashMap();r.eachSeries(function(o){var s=o.get("stack");if(s){var l=t.get(s)||t.set(s,[]),h=o.getData(),v={stackResultDimension:h.getCalculationInfo("stackResultDimension"),stackedOverDimension:h.getCalculationInfo("stackedOverDimension"),stackedDimension:h.getCalculationInfo("stackedDimension"),stackedByDimension:h.getCalculationInfo("stackedByDimension"),isStackedByIndex:h.getCalculationInfo("isStackedByIndex"),data:h,seriesModel:o};if(!v.stackedDimension||!(v.isStackedByIndex||v.stackedByDimension))return;l.length&&h.setCalculationInfo("stackedOnSeries",l[l.length-1].seriesModel),l.push(v)}}),t.each(calculateStack)}function calculateStack(r){each$c(r,function(t,o){var s=[],l=[NaN,NaN],h=[t.stackResultDimension,t.stackedOverDimension],v=t.data,x=t.isStackedByIndex,T=t.seriesModel.get("stackStrategy")||"samesign";v.modify(h,function(w,C,M){var V=v.get(t.stackedDimension,M);if(isNaN(V))return l;var z,F;x?F=v.getRawIndex(M):z=v.get(t.stackedByDimension,M);for(var B=NaN,W=o-1;W>=0;W--){var Y=r[W];if(x||(F=Y.data.rawIndexOf(Y.stackedByDimension,z)),F>=0){var Z=Y.data.getByRawIndex(Y.stackResultDimension,F);if(T==="all"||T==="positive"&&Z>0||T==="negative"&&Z<0||T==="samesign"&&V>=0&&Z>0||T==="samesign"&&V<=0&&Z<0){V=addSafe(V,Z),B=Z;break}}}return s[0]=V,s[1]=B,s})})}var SourceImpl=function(){function r(t){this.data=t.data||(t.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var o=this.dimensionsDefine=t.dimensionsDefine;if(o)for(var s=0;s<o.length;s++){var l=o[s];l.type==null&&guessOrdinal(this,s)===BE_ORDINAL.Must&&(l.type="ordinal")}}return r}();function isSourceInstance(r){return r instanceof SourceImpl}function createSource(r,t,o){o=o||detectSourceFormat(r);var s=t.seriesLayoutBy,l=determineSourceDimensions(r,o,s,t.sourceHeader,t.dimensions),h=new SourceImpl({data:r,sourceFormat:o,seriesLayoutBy:s,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:clone$3(t)});return h}function createSourceFromSeriesDataOption(r){return new SourceImpl({data:r,sourceFormat:isTypedArray(r)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(r){return new SourceImpl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:clone$3(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function detectSourceFormat(r){var t=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(r))t=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1(r)){r.length===0&&(t=SOURCE_FORMAT_ARRAY_ROWS);for(var o=0,s=r.length;o<s;o++){var l=r[o];if(l!=null){if(isArray$1(l)){t=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(l)){t=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3(r)){for(var h in r)if(hasOwn(r,h)&&isArrayLike(r[h])){t=SOURCE_FORMAT_KEYED_COLUMNS;break}}return t}function determineSourceDimensions(r,t,o,s,l){var h,v;if(!r)return{dimensionsDefine:normalizeDimensionsOption(l),startIndex:v,dimensionsDetectedCount:h};if(t===SOURCE_FORMAT_ARRAY_ROWS){var x=r;s==="auto"||s==null?arrayRowsTravelFirst(function(w){w!=null&&w!=="-"&&(isString(w)?v==null&&(v=1):v=0)},o,x,10):v=isNumber(s)?s:s?1:0,!l&&v===1&&(l=[],arrayRowsTravelFirst(function(w,C){l[C]=w!=null?w+"":""},o,x,1/0)),h=l?l.length:o===SERIES_LAYOUT_BY_ROW?x.length:x[0]?x[0].length:null}else if(t===SOURCE_FORMAT_OBJECT_ROWS)l||(l=objectRowsCollectDimensions(r));else if(t===SOURCE_FORMAT_KEYED_COLUMNS)l||(l=[],each$c(r,function(w,C){l.push(C)}));else if(t===SOURCE_FORMAT_ORIGINAL){var T=getDataItemValue(r[0]);h=isArray$1(T)&&T.length||1}return{startIndex:v,dimensionsDefine:normalizeDimensionsOption(l),dimensionsDetectedCount:h}}function objectRowsCollectDimensions(r){for(var t=0,o;t<r.length&&!(o=r[t++]););if(o)return keys(o)}function normalizeDimensionsOption(r){if(r){var t=createHashMap();return map$2(r,function(o,s){o=isObject$3(o)?o:{name:o};var l={name:o.name,displayName:o.displayName,type:o.type};if(l.name==null)return l;l.name+="",l.displayName==null&&(l.displayName=l.name);var h=t.get(l.name);return h?l.name+="-"+h.count++:t.set(l.name,{count:1}),l})}}function arrayRowsTravelFirst(r,t,o,s){if(t===SERIES_LAYOUT_BY_ROW)for(var l=0;l<o.length&&l<s;l++)r(o[l]?o[l][0]:null,l);else for(var h=o[0]||[],l=0;l<h.length&&l<s;l++)r(h[l],l)}function shouldRetrieveDataByName(r){var t=r.sourceFormat;return t===SOURCE_FORMAT_OBJECT_ROWS||t===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function r(t,o){var s=isSourceInstance(t)?t:createSourceFromSeriesDataOption(t);this._source=s;var l=this._data=s.data;s.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=o,this._data=l),mountMethods(this,l,s)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,o){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;mountMethods=function(v,x,T){var w=T.sourceFormat,C=T.seriesLayoutBy,M=T.startIndex,V=T.dimensionsDefine,z=providerMethods[getMethodMapKey(w,C)];if(extend(v,z),w===SOURCE_FORMAT_TYPED_ARRAY)v.getItem=o,v.count=l,v.fillStorage=s;else{var F=getRawSourceItemGetter(w,C);v.getItem=bind$1(F,null,x,M,V);var B=getRawSourceDataCounter(w,C);v.count=bind$1(B,null,x,M,V)}};var o=function(v,x){v=v-this._offset,x=x||[];for(var T=this._data,w=this._dimSize,C=w*v,M=0;M<w;M++)x[M]=T[C+M];return x},s=function(v,x,T,w){for(var C=this._data,M=this._dimSize,V=0;V<M;V++){for(var z=w[V],F=z[0]==null?1/0:z[0],B=z[1]==null?-1/0:z[1],W=x-v,Y=T[V],Z=0;Z<W;Z++){var X=C[Z*M+V];Y[v+Z]=X,X<F&&(F=X),X>B&&(B=X)}z[0]=F,z[1]=B}},l=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(t={},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:h},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:h},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(v){var x=this._data;each$c(v,function(T,w){for(var C=x[w]||(x[w]=[]),M=0;M<(T||[]).length;M++)C.push(T[M])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:h},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(v){this._data=v},clean:function(){this._offset+=this.count(),this._data=null}},t);function h(v){for(var x=0;x<v.length;x++)this._data.push(v[x])}}(),r}(),getItemSimply=function(r,t,o,s){return r[s]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(r,t,o,s){return r[s+t]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(r,t,o,s,l){s+=t;for(var h=l||[],v=r,x=0;x<v.length;x++){var T=v[x];h[x]=T?T[s]:null}return h},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(r,t,o,s,l){for(var h=l||[],v=0;v<o.length;v++){var x=o[v].name,T=r[x];h[v]=T?T[s]:null}return h},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter(r,t){var o=rawSourceItemGetterMap[getMethodMapKey(r,t)];return o}var countSimply=function(r,t,o){return r.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(r,t,o){return Math.max(0,r.length-t)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(r,t,o){var s=r[0];return s?Math.max(0,s.length-t):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(r,t,o){var s=o[0].name,l=r[s];return l?l.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter(r,t){var o=rawSourceDataCounterMap[getMethodMapKey(r,t)];return o}var getRawValueSimply=function(r,t,o){return r[t]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function(r,t,o){return r[o]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function(r,t,o){var s=getDataItemValue(r);return s instanceof Array?s[t]:s},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter(r){var t=rawSourceValueGetterMap[r];return t}function getMethodMapKey(r,t){return r===SOURCE_FORMAT_ARRAY_ROWS?r+"_"+t:r}function retrieveRawValue(r,t,o){if(r){var s=r.getRawDataItem(t);if(s!=null){var l=r.getStore(),h=l.getSource().sourceFormat;if(o!=null){var v=r.getDimensionIndex(o),x=l.getDimensionProperty(v);return getRawSourceValueGetter(h)(s,v,x)}else{var T=s;return h===SOURCE_FORMAT_ORIGINAL&&(T=getDataItemValue(s)),T}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function r(){}return r.prototype.getDataParams=function(t,o){var s=this.getData(o),l=this.getRawValue(t,o),h=s.getRawIndex(t),v=s.getName(t),x=s.getRawDataItem(t),T=s.getItemVisual(t,"style"),w=T&&T[s.getItemVisual(t,"drawType")||"fill"],C=T&&T.stroke,M=this.mainType,V=M==="series",z=s.userOutput&&s.userOutput.get();return{componentType:M,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:V?this.subType:null,seriesIndex:this.seriesIndex,seriesId:V?this.id:null,seriesName:V?this.name:null,name:v,dataIndex:h,data:x,dataType:o,value:l,color:w,borderColor:C,dimensionNames:z?z.fullDimensions:null,encode:z?z.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,o,s,l,h,v){o=o||"normal";var x=this.getData(s),T=this.getDataParams(t,s);if(v&&(T.value=v.interpolatedValue),l!=null&&isArray$1(T.value)&&(T.value=T.value[l]),!h){var w=x.getItemModel(t);h=w.get(o==="normal"?["label","formatter"]:[o,"label","formatter"])}if(isFunction(h))return T.status=o,T.dimensionIndex=l,h(T);if(isString(h)){var C=formatTpl(h,T);return C.replace(DIMENSION_LABEL_REG,function(M,V){var z=V.length,F=V;F.charAt(0)==="["&&F.charAt(z-1)==="]"&&(F=+F.slice(1,z-1));var B=retrieveRawValue(x,t,F);if(v&&isArray$1(v.interpolatedValue)){var W=x.getDimensionIndex(F);W>=0&&(B=v.interpolatedValue[W])}return B!=null?B+"":""})}},r.prototype.getRawValue=function(t,o){return retrieveRawValue(this.getData(o),t)},r.prototype.formatTooltip=function(t,o,s){},r}();function normalizeTooltipFormatResult(r){var t,o;return isObject$3(r)?r.type&&(o=r):t=r,{text:t,frag:o}}function createTask(r){return new Task(r)}var Task=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var o=this._upstream,s=t&&t.skip;if(this._dirty&&o){var l=this.context;l.data=l.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var h;this._plan&&!s&&(h=this._plan(this.context));var v=C(this._modBy),x=this._modDataCount||0,T=C(t&&t.modBy),w=t&&t.modDataCount||0;(v!==T||x!==w)&&(h="reset");function C(Z){return!(Z>=1)&&(Z=1),Z}var M;(this._dirty||h==="reset")&&(this._dirty=!1,M=this._doReset(s)),this._modBy=T,this._modDataCount=w;var V=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var z=this._dueIndex,F=Math.min(V!=null?this._dueIndex+V:1/0,this._dueEnd);if(!s&&(M||z<F)){var B=this._progress;if(isArray$1(B))for(var W=0;W<B.length;W++)this._doProgress(B[W],z,F,T,w);else this._doProgress(B,z,F,T,w)}this._dueIndex=F;var Y=this._settedOutputEnd!=null?this._settedOutputEnd:F;this._outputDueEnd=Y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,o,s,l,h){iterator.reset(o,s,l,h),this._callingProgress=t,this._callingProgress({start:o,end:s,count:s-o,next:iterator.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var o,s;!t&&this._reset&&(o=this._reset(this.context),o&&o.progress&&(s=o.forceFirstProgress,o=o.progress),isArray$1(o)&&!o.length&&(o=null)),this._progress=o,this._modBy=this._modDataCount=null;var l=this._downstream;return l&&l.dirty(),s},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),iterator=function(){var r,t,o,s,l,h={reset:function(T,w,C,M){t=T,r=w,o=C,s=M,l=Math.ceil(s/o),h.next=o>1&&s>0?x:v}};return h;function v(){return t<r?t++:null}function x(){var T=t%l*o+Math.ceil(t/l),w=t>=r?null:T<s?T:t;return t++,w}}();function parseDataValue(r,t){var o=t&&t.type;return o==="ordinal"?r:(o==="time"&&!isNumber(r)&&r!=null&&r!=="-"&&(r=+parseDate(r)),r==null||r===""?NaN:+r)}createHashMap({number:function(r){return parseFloat(r)},time:function(r){return+parseDate(r)},trim:function(r){return isString(r)?trim$1(r):r}});var SortOrderComparator=function(){function r(t,o){var s=t==="desc";this._resultLT=s?1:-1,o==null&&(o=s?"min":"max"),this._incomparable=o==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,o){var s=isNumber(t)?t:numericToNumber(t),l=isNumber(o)?o:numericToNumber(o),h=isNaN(s),v=isNaN(l);if(h&&(s=this._incomparable),v&&(l=this._incomparable),h&&v){var x=isString(t),T=isString(o);x&&(s=T?t:0),T&&(l=x?o:0)}return s<l?this._resultLT:s>l?-this._resultLT:0},r}(),ExternalSource=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,o){},r.prototype.retrieveValueFromItem=function(t,o){},r.prototype.convertValue=function(t,o){return parseDataValue(t,o)},r}();function createExternalSource(r,t){var o=new ExternalSource,s=r.data,l=o.sourceFormat=r.sourceFormat,h=r.startIndex,v="";r.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(v);var x=[],T={},w=r.dimensionsDefine;if(w)each$c(w,function(B,W){var Y=B.name,Z={index:W,name:Y,displayName:B.displayName};if(x.push(Z),Y!=null){var X="";hasOwn(T,Y)&&throwError(X),T[Y]=Z}});else for(var C=0;C<r.dimensionsDetectedCount;C++)x.push({index:C});var M=getRawSourceItemGetter(l,SERIES_LAYOUT_BY_COLUMN);t.__isBuiltIn&&(o.getRawDataItem=function(B){return M(s,h,x,B)},o.getRawData=bind$1(getRawData,null,r)),o.cloneRawData=bind$1(cloneRawData,null,r);var V=getRawSourceDataCounter(l,SERIES_LAYOUT_BY_COLUMN);o.count=bind$1(V,null,s,h,x);var z=getRawSourceValueGetter(l);o.retrieveValue=function(B,W){var Y=M(s,h,x,B);return F(Y,W)};var F=o.retrieveValueFromItem=function(B,W){if(B!=null){var Y=x[W];if(Y)return z(B,W,Y.name)}};return o.getDimensionInfo=bind$1(getDimensionInfo,null,x,T),o.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,x),o}function getRawData(r){var t=r.sourceFormat;if(!isSupportedSourceFormat(t)){var o="";throwError(o)}return r.data}function cloneRawData(r){var t=r.sourceFormat,o=r.data;if(!isSupportedSourceFormat(t)){var s="";throwError(s)}if(t===SOURCE_FORMAT_ARRAY_ROWS){for(var l=[],h=0,v=o.length;h<v;h++)l.push(o[h].slice());return l}else if(t===SOURCE_FORMAT_OBJECT_ROWS){for(var l=[],h=0,v=o.length;h<v;h++)l.push(extend({},o[h]));return l}}function getDimensionInfo(r,t,o){if(o!=null){if(isNumber(o)||!isNaN(o)&&!hasOwn(t,o))return r[o];if(hasOwn(t,o))return t[o]}}function cloneAllDimensionInfo(r){return clone$3(r)}var externalTransformMap=createHashMap();function registerExternalTransform(r){r=clone$3(r);var t=r.type,o="";t||throwError(o);var s=t.split(":");s.length!==2&&throwError(o);var l=!1;s[0]==="echarts"&&(t=s[1],l=!0),r.__isBuiltIn=l,externalTransformMap.set(t,r)}function applyDataTransform(r,t,o){var s=normalizeToArray(r),l=s.length,h="";l||throwError(h);for(var v=0,x=l;v<x;v++){var T=s[v];t=applySingleDataTransform(T,t),v!==x-1&&(t.length=Math.max(t.length,1))}return t}function applySingleDataTransform(r,t,o,s){var l="";t.length||throwError(l),isObject$3(r)||throwError(l);var h=r.type,v=externalTransformMap.get(h);v||throwError(l);var x=map$2(t,function(w){return createExternalSource(w,v)}),T=normalizeToArray(v.transform({upstream:x[0],upstreamList:x,config:clone$3(r.config)}));return map$2(T,function(w,C){var M="";isObject$3(w)||throwError(M),w.data||throwError(M);var V=detectSourceFormat(w.data);isSupportedSourceFormat(V)||throwError(M);var z,F=t[0];if(F&&C===0&&!w.dimensions){var B=F.startIndex;B&&(w.data=F.data.slice(0,B).concat(w.data)),z={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:B,dimensions:F.metaRawOption.dimensions}}else z={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:w.dimensions};return createSource(w.data,z,null)})}function isSupportedSourceFormat(r){return r===SOURCE_FORMAT_ARRAY_ROWS||r===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor(r){return r>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function prepareStore(r,t,o,s,l){var h=dataCtors[o||"float"];if(l){var v=r[t],x=v&&v.length;if(x!==s){for(var T=new h(s),w=0;w<x;w++)T[w]=v[w];r[t]=T}}else r[t]=new h(s)}var DataStore=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return r.prototype.initData=function(t,o,s){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var l=t.getSource(),h=this.defaultDimValueGetter=defaultDimValueGetters[l.sourceFormat];this._dimValueGetter=s||h,this._rawExtent=[],shouldRetrieveDataByName(l),this._dimensions=map$2(o,function(v){return{type:v.type,property:v.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,o){var s=this._calcDimNameToIdx,l=this._dimensions,h=s.get(t);if(h!=null){if(l[h].type===o)return h}else h=l.length;return l[h]={type:o},s.set(t,h),this._chunks[h]=new dataCtors[o||"float"](this._rawCount),this._rawExtent[h]=getInitialExtent(),h},r.prototype.collectOrdinalMeta=function(t,o){var s=this._chunks[t],l=this._dimensions[t],h=this._rawExtent,v=l.ordinalOffset||0,x=s.length;v===0&&(h[t]=getInitialExtent());for(var T=h[t],w=v;w<x;w++){var C=s[w]=o.parseAndCollect(s[w]);isNaN(C)||(T[0]=Math.min(C,T[0]),T[1]=Math.max(C,T[1]))}l.ordinalMeta=o,l.ordinalOffset=x,l.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var o=this._dimensions[t],s=o.ordinalMeta;return s},r.prototype.getDimensionProperty=function(t){var o=this._dimensions[t];return o&&o.property},r.prototype.appendData=function(t){var o=this._provider,s=this.count();o.appendData(t);var l=o.count();return o.persistent||(l+=s),s<l&&this._initDataFromProvider(s,l,!0),[s,l]},r.prototype.appendValues=function(t,o){for(var s=this._chunks,l=this._dimensions,h=l.length,v=this._rawExtent,x=this.count(),T=x+Math.max(t.length,o||0),w=0;w<h;w++){var C=l[w];prepareStore(s,w,C.type,T,!0)}for(var M=[],V=x;V<T;V++)for(var z=V-x,F=0;F<h;F++){var C=l[F],B=defaultDimValueGetters.arrayRows.call(this,t[z]||M,C.property,z,F);s[F][V]=B;var W=v[F];B<W[0]&&(W[0]=B),B>W[1]&&(W[1]=B)}return this._rawCount=this._count=T,{start:x,end:T}},r.prototype._initDataFromProvider=function(t,o,s){for(var l=this._provider,h=this._chunks,v=this._dimensions,x=v.length,T=this._rawExtent,w=map$2(v,function(Z){return Z.property}),C=0;C<x;C++){var M=v[C];T[C]||(T[C]=getInitialExtent()),prepareStore(h,C,M.type,o,s)}if(l.fillStorage)l.fillStorage(t,o,h,T);else for(var V=[],z=t;z<o;z++){V=l.getItem(z,V);for(var F=0;F<x;F++){var B=h[F],W=this._dimValueGetter(V,w[F],z,F);B[z]=W;var Y=T[F];W<Y[0]&&(Y[0]=W),W>Y[1]&&(Y[1]=W)}}!l.persistent&&l.clean&&l.clean(),this._rawCount=this._count=o,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,o){if(!(o>=0&&o<this._count))return NaN;var s=this._chunks[t];return s?s[this.getRawIndex(o)]:NaN},r.prototype.getValues=function(t,o){var s=[],l=[];if(o==null){o=t,t=[];for(var h=0;h<this._dimensions.length;h++)l.push(h)}else l=t;for(var h=0,v=l.length;h<v;h++)s.push(this.get(l[h],o));return s},r.prototype.getByRawIndex=function(t,o){if(!(o>=0&&o<this._rawCount))return NaN;var s=this._chunks[t];return s?s[o]:NaN},r.prototype.getSum=function(t){var o=this._chunks[t],s=0;if(o)for(var l=0,h=this.count();l<h;l++){var v=this.get(t,l);isNaN(v)||(s+=v)}return s},r.prototype.getMedian=function(t){var o=[];this.each([t],function(h){isNaN(h)||o.push(h)});var s=o.sort(function(h,v){return h-v}),l=this.count();return l===0?0:l%2===1?s[(l-1)/2]:(s[l/2]+s[l/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var o=this._indices,s=o[t];if(s!=null&&s<this._count&&s===t)return t;for(var l=0,h=this._count-1;l<=h;){var v=(l+h)/2|0;if(o[v]<t)l=v+1;else if(o[v]>t)h=v-1;else return v}return-1},r.prototype.indicesOfNearest=function(t,o,s){var l=this._chunks,h=l[t],v=[];if(!h)return v;s==null&&(s=1/0);for(var x=1/0,T=-1,w=0,C=0,M=this.count();C<M;C++){var V=this.getRawIndex(C),z=o-h[V],F=Math.abs(z);F<=s&&((F<x||F===x&&z>=0&&T<0)&&(x=F,T=z,w=0),z===T&&(v[w++]=C))}return v.length=w,v},r.prototype.getIndices=function(){var t,o=this._indices;if(o){var s=o.constructor,l=this._count;if(s===Array){t=new s(l);for(var h=0;h<l;h++)t[h]=o[h]}else t=new s(o.buffer,0,l)}else{var s=getIndicesCtor(this._rawCount);t=new s(this.count());for(var h=0;h<t.length;h++)t[h]=h}return t},r.prototype.filter=function(t,o){if(!this._count)return this;for(var s=this.clone(),l=s.count(),h=getIndicesCtor(s._rawCount),v=new h(l),x=[],T=t.length,w=0,C=t[0],M=s._chunks,V=0;V<l;V++){var z=void 0,F=s.getRawIndex(V);if(T===0)z=o(V);else if(T===1){var B=M[C][F];z=o(B,V)}else{for(var W=0;W<T;W++)x[W]=M[t[W]][F];x[W]=V,z=o.apply(null,x)}z&&(v[w++]=F)}return w<l&&(s._indices=v),s._count=w,s._extent=[],s._updateGetRawIdx(),s},r.prototype.selectRange=function(t){var o=this.clone(),s=o._count;if(!s)return this;var l=keys(t),h=l.length;if(!h)return this;var v=o.count(),x=getIndicesCtor(o._rawCount),T=new x(v),w=0,C=l[0],M=t[C][0],V=t[C][1],z=o._chunks,F=!1;if(!o._indices){var B=0;if(h===1){for(var W=z[l[0]],Y=0;Y<s;Y++){var Z=W[Y];(Z>=M&&Z<=V||isNaN(Z))&&(T[w++]=B),B++}F=!0}else if(h===2){for(var W=z[l[0]],X=z[l[1]],te=t[l[1]][0],oe=t[l[1]][1],Y=0;Y<s;Y++){var Z=W[Y],ae=X[Y];(Z>=M&&Z<=V||isNaN(Z))&&(ae>=te&&ae<=oe||isNaN(ae))&&(T[w++]=B),B++}F=!0}}if(!F)if(h===1)for(var Y=0;Y<v;Y++){var le=o.getRawIndex(Y),Z=z[l[0]][le];(Z>=M&&Z<=V||isNaN(Z))&&(T[w++]=le)}else for(var Y=0;Y<v;Y++){for(var he=!0,le=o.getRawIndex(Y),me=0;me<h;me++){var _e=l[me],Z=z[_e][le];(Z<t[_e][0]||Z>t[_e][1])&&(he=!1)}he&&(T[w++]=o.getRawIndex(Y))}return w<v&&(o._indices=T),o._count=w,o._extent=[],o._updateGetRawIdx(),o},r.prototype.map=function(t,o){var s=this.clone(t);return this._updateDims(s,t,o),s},r.prototype.modify=function(t,o){this._updateDims(this,t,o)},r.prototype._updateDims=function(t,o,s){for(var l=t._chunks,h=[],v=o.length,x=t.count(),T=[],w=t._rawExtent,C=0;C<o.length;C++)w[o[C]]=getInitialExtent();for(var M=0;M<x;M++){for(var V=t.getRawIndex(M),z=0;z<v;z++)T[z]=l[o[z]][V];T[v]=M;var F=s&&s.apply(null,T);if(F!=null){typeof F!="object"&&(h[0]=F,F=h);for(var C=0;C<F.length;C++){var B=o[C],W=F[C],Y=w[B],Z=l[B];Z&&(Z[V]=W),W<Y[0]&&(Y[0]=W),W>Y[1]&&(Y[1]=W)}}}},r.prototype.lttbDownSample=function(t,o){var s=this.clone([t],!0),l=s._chunks,h=l[t],v=this.count(),x=0,T=Math.floor(1/o),w=this.getRawIndex(0),C,M,V,z=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(v/T)+2)*2,v));z[x++]=w;for(var F=1;F<v-1;F+=T){for(var B=Math.min(F+T,v-1),W=Math.min(F+T*2,v),Y=(W+B)/2,Z=0,X=B;X<W;X++){var te=this.getRawIndex(X),oe=h[te];isNaN(oe)||(Z+=oe)}Z/=W-B;var ae=F,le=Math.min(F+T,v),he=F-1,me=h[w];C=-1,V=ae;for(var _e=-1,ye=0,X=ae;X<le;X++){var te=this.getRawIndex(X),oe=h[te];if(isNaN(oe)){ye++,_e<0&&(_e=te);continue}M=Math.abs((he-Y)*(oe-me)-(he-X)*(Z-me)),M>C&&(C=M,V=te)}ye>0&&ye<le-ae&&(z[x++]=Math.min(_e,V),V=Math.max(_e,V)),z[x++]=V,w=V}return z[x++]=this.getRawIndex(v-1),s._count=x,s._indices=z,s.getRawIndex=this._getRawIdx,s},r.prototype.downSample=function(t,o,s,l){for(var h=this.clone([t],!0),v=h._chunks,x=[],T=Math.floor(1/o),w=v[t],C=this.count(),M=h._rawExtent[t]=getInitialExtent(),V=new(getIndicesCtor(this._rawCount))(Math.ceil(C/T)),z=0,F=0;F<C;F+=T){T>C-F&&(T=C-F,x.length=T);for(var B=0;B<T;B++){var W=this.getRawIndex(F+B);x[B]=w[W]}var Y=s(x),Z=this.getRawIndex(Math.min(F+l(x,Y)||0,C-1));w[Z]=Y,Y<M[0]&&(M[0]=Y),Y>M[1]&&(M[1]=Y),V[z++]=Z}return h._count=z,h._indices=V,h._updateGetRawIdx(),h},r.prototype.each=function(t,o){if(this._count)for(var s=t.length,l=this._chunks,h=0,v=this.count();h<v;h++){var x=this.getRawIndex(h);switch(s){case 0:o(h);break;case 1:o(l[t[0]][x],h);break;case 2:o(l[t[0]][x],l[t[1]][x],h);break;default:for(var T=0,w=[];T<s;T++)w[T]=l[t[T]][x];w[T]=h,o.apply(null,w)}}},r.prototype.getDataExtent=function(t){var o=this._chunks[t],s=getInitialExtent();if(!o)return s;var l=this.count(),h=!this._indices,v;if(h)return this._rawExtent[t].slice();if(v=this._extent[t],v)return v.slice();v=s;for(var x=v[0],T=v[1],w=0;w<l;w++){var C=this.getRawIndex(w),M=o[C];M<x&&(x=M),M>T&&(T=M)}return v=[x,T],this._extent[t]=v,v},r.prototype.getRawDataItem=function(t){var o=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(o);for(var s=[],l=this._chunks,h=0;h<l.length;h++)s.push(l[h][o]);return s},r.prototype.clone=function(t,o){var s=new r,l=this._chunks,h=t&&reduce(t,function(x,T){return x[T]=!0,x},{});if(h)for(var v=0;v<l.length;v++)s._chunks[v]=h[v]?cloneChunk(l[v]):l[v];else s._chunks=l;return this._copyCommonProps(s),o||(s._indices=this._cloneIndices()),s._updateGetRawIdx(),s},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=clone$3(this._extent),t._rawExtent=clone$3(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,o=void 0;if(t===Array){var s=this._indices.length;o=new t(s);for(var l=0;l<s;l++)o[l]=this._indices[l]}else o=new t(this._indices);return o}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(o,s,l,h){return parseDataValue(o[h],this._dimensions[h])}defaultDimValueGetters={arrayRows:t,objectRows:function(o,s,l,h){return parseDataValue(o[s],this._dimensions[h])},keyedColumns:t,original:function(o,s,l,h){var v=o&&(o.value==null?o:o.value);return parseDataValue(v instanceof Array?v[h]:v,this._dimensions[h])},typedArray:function(o,s,l,h){return o[h]}}}(),r}();const DataStore$1=DataStore;var SourceManager=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,o){this._sourceList=t,this._upstreamSignList=o,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length,l,h;if(isSeries(t)){var v=t,x=void 0,T=void 0,w=void 0;if(s){var C=o[0];C.prepareSource(),w=C.getSource(),x=w.data,T=w.sourceFormat,h=[C._getVersionSign()]}else x=v.get("data",!0),T=isTypedArray(x)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,h=[];var M=this._getSourceMetaRawOption()||{},V=w&&w.metaRawOption||{},z=retrieve2(M.seriesLayoutBy,V.seriesLayoutBy)||null,F=retrieve2(M.sourceHeader,V.sourceHeader),B=retrieve2(M.dimensions,V.dimensions),W=z!==V.seriesLayoutBy||!!F!=!!V.sourceHeader||B;l=W?[createSource(x,{seriesLayoutBy:z,sourceHeader:F,dimensions:B},T)]:[]}else{var Y=t;if(s){var Z=this._applyTransform(o);l=Z.sourceList,h=Z.upstreamSignList}else{var X=Y.get("source",!0);l=[createSource(X,this._getSourceMetaRawOption(),null)],h=[]}}this._setLocalSource(l,h)},r.prototype._applyTransform=function(t){var o=this._sourceHost,s=o.get("transform",!0),l=o.get("fromTransformResult",!0);if(l!=null){var h="";t.length!==1&&doThrow(h)}var v,x=[],T=[];return each$c(t,function(w){w.prepareSource();var C=w.getSource(l||0),M="";l!=null&&!C&&doThrow(M),x.push(C),T.push(w._getVersionSign())}),s?v=applyDataTransform(s,x,{datasetIndex:o.componentIndex}):l!=null&&(v=[cloneSourceShallow(x[0])]),{sourceList:v,upstreamSignList:T}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),o=0;o<t.length;o++){var s=t[o];if(s._isDirty()||this._upstreamSignList[o]!==s._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var o=this._sourceList[t];if(!o){var s=this._getUpstreamSourceManagers();return s[0]&&s[0].getSource(t)}return o},r.prototype.getSharedDataStore=function(t){var o=t.makeStoreSchema();return this._innerGetDataStore(o.dimensions,t.source,o.hash)},r.prototype._innerGetDataStore=function(t,o,s){var l=0,h=this._storeList,v=h[l];v||(v=h[l]={});var x=v[s];if(!x){var T=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&T?x=T._innerGetDataStore(t,o,s):(x=new DataStore$1,x.initData(new DefaultDataProvider(o,t.length),t)),v[s]=x}return x},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(isSeries(t)){var o=querySeriesUpstreamDatasetModel(t);return o?[o.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(t),function(s){return s.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,o,s,l;if(isSeries(t))o=t.get("seriesLayoutBy",!0),s=t.get("sourceHeader",!0),l=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var h=t;o=h.get("seriesLayoutBy",!0),s=h.get("sourceHeader",!0),l=h.get("dimensions",!0)}return{seriesLayoutBy:o,sourceHeader:s,dimensions:l}},r}();function isSeries(r){return r.mainType==="series"}function doThrow(r){throw new Error(r)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle(r,t){var o=r.color||"#6e7079",s=r.fontSize||12,l=r.fontWeight||"400",h=r.color||"#464646",v=r.fontSize||14,x=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+encodeHTML(s+"")+"px;color:"+encodeHTML(o)+";font-weight:"+encodeHTML(l+""),valueStyle:"font-size:"+encodeHTML(v+"")+"px;color:"+encodeHTML(h)+";font-weight:"+encodeHTML(x+"")}:{nameStyle:{fontSize:s,fill:o,fontWeight:l},valueStyle:{fontSize:v,fill:h,fontWeight:x}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function createTooltipMarkup(r,t){return t.type=r,t}function isSectionFragment(r){return r.type==="section"}function getBuilder(r){return isSectionFragment(r)?buildSection:buildNameValue}function getBlockGapLevel(r){if(isSectionFragment(r)){var t=0,o=r.blocks.length,s=o>1||o>0&&!r.noHeader;return each$c(r.blocks,function(l){var h=getBlockGapLevel(l);h>=t&&(t=h+ +(s&&(!h||isSectionFragment(l)&&!l.noHeader)))}),t}return 0}function buildSection(r,t,o,s){var l=t.noHeader,h=getGap(getBlockGapLevel(t)),v=[],x=t.blocks||[];assert(!x||isArray$1(x)),x=x||[];var T=r.orderMode;if(t.sortBlocks&&T){x=x.slice();var w={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(w,T)){var C=new SortOrderComparator(w[T],null);x.sort(function(F,B){return C.evaluate(F.sortParam,B.sortParam)})}else T==="seriesDesc"&&x.reverse()}each$c(x,function(F,B){var W=t.valueFormatter,Y=getBuilder(F)(W?extend(extend({},r),{valueFormatter:W}):r,F,B>0?h.html:0,s);Y!=null&&v.push(Y)});var M=r.renderMode==="richText"?v.join(h.richText):wrapBlockHTML(v.join(""),l?o:h.html);if(l)return M;var V=makeValueReadable(t.header,"ordinal",r.useUTC),z=getTooltipTextStyle(s,r.renderMode).nameStyle;return r.renderMode==="richText"?wrapInlineNameRichText(r,V,z)+h.richText+M:wrapBlockHTML('<div style="'+z+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(V)+"</div>"+M,o)}function buildNameValue(r,t,o,s){var l=r.renderMode,h=t.noName,v=t.noValue,x=!t.markerType,T=t.name,w=r.useUTC,C=t.valueFormatter||r.valueFormatter||function(te){return te=isArray$1(te)?te:[te],map$2(te,function(oe,ae){return makeValueReadable(oe,isArray$1(z)?z[ae]:z,w)})};if(!(h&&v)){var M=x?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",l),V=h?"":makeValueReadable(T,"ordinal",w),z=t.valueType,F=v?[]:C(t.value),B=!x||!h,W=!x&&h,Y=getTooltipTextStyle(s,l),Z=Y.nameStyle,X=Y.valueStyle;return l==="richText"?(x?"":M)+(h?"":wrapInlineNameRichText(r,V,Z))+(v?"":wrapInlineValueRichText(r,F,B,W,X)):wrapBlockHTML((x?"":M)+(h?"":wrapInlineNameHTML(V,!x,Z))+(v?"":wrapInlineValueHTML(F,B,W,X)),o)}}function buildTooltipMarkup(r,t,o,s,l,h){if(r){var v=getBuilder(r),x={useUTC:l,renderMode:o,orderMode:s,markupStyleCreator:t,valueFormatter:r.valueFormatter};return v(x,r,0,h)}}function getGap(r){return{html:HTML_GAPS[r],richText:RICH_TEXT_GAPS[r]}}function wrapBlockHTML(r,t){var o='<div style="clear:both"></div>',s="margin: "+t+"px 0 0";return'<div style="'+s+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+r+o+"</div>"}function wrapInlineNameHTML(r,t,o){var s=t?"margin-left:2px":"";return'<span style="'+o+";"+s+'">'+encodeHTML(r)+"</span>"}function wrapInlineValueHTML(r,t,o,s){var l=o?"10px":"20px",h=t?"float:right;margin-left:"+l:"";return r=isArray$1(r)?r:[r],'<span style="'+h+";"+s+'">'+map$2(r,function(v){return encodeHTML(v)}).join(" ")+"</span>"}function wrapInlineNameRichText(r,t,o){return r.markupStyleCreator.wrapRichTextStyle(t,o)}function wrapInlineValueRichText(r,t,o,s,l){var h=[l],v=s?10:20;return o&&h.push({padding:[0,0,0,v],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(isArray$1(t)?t.join(" "):t,h)}function retrieveVisualColorForTooltipMarker(r,t){var o=r.getData().getItemVisual(t,"style"),s=o[r.visualDrawType];return convertToColorString(s)}function getPaddingFromTooltipModel(r,t){var o=r.get("padding");return o??(t==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function r(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,o,s){var l=s==="richText"?this._generateStyleName():null,h=getTooltipMarker({color:o,type:t,renderMode:s,markerId:l});return isString(h)?h:(this.richTextStyles[l]=h.style,h.content)},r.prototype.wrapRichTextStyle=function(t,o){var s={};isArray$1(o)?each$c(o,function(h){return extend(s,h)}):extend(s,o);var l=this._generateStyleName();return this.richTextStyles[l]=s,"{"+l+"|"+t+"}"},r}();function defaultSeriesFormatTooltip(r){var t=r.series,o=r.dataIndex,s=r.multipleSeries,l=t.getData(),h=l.mapDimensionsAll("defaultedTooltip"),v=h.length,x=t.getRawValue(o),T=isArray$1(x),w=retrieveVisualColorForTooltipMarker(t,o),C,M,V,z;if(v>1||T&&!v){var F=formatTooltipArrayValue(x,t,o,h,w);C=F.inlineValues,M=F.inlineValueTypes,V=F.blocks,z=F.inlineValues[0]}else if(v){var B=l.getDimensionInfo(h[0]);z=C=retrieveRawValue(l,o,h[0]),M=B.type}else z=C=T?x[0]:x;var W=isNameSpecified(t),Y=W&&t.name||"",Z=l.getName(o),X=s?Y:Z;return createTooltipMarkup("section",{header:Y,noHeader:s||!W,sortParam:z,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:w,name:X,noName:!trim$1(X),value:C,valueType:M})].concat(V||[])})}function formatTooltipArrayValue(r,t,o,s,l){var h=t.getData(),v=reduce(r,function(M,V,z){var F=h.getDimensionInfo(z);return M=M||F&&F.tooltip!==!1&&F.displayName!=null},!1),x=[],T=[],w=[];s.length?each$c(s,function(M){C(retrieveRawValue(h,o,M),M)}):each$c(r,C);function C(M,V){var z=h.getDimensionInfo(V);!z||z.otherDims.tooltip===!1||(v?w.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:l,name:z.displayName,value:M,valueType:z.type})):(x.push(M),T.push(z.type)))}return{inlineValues:x,inlineValueTypes:T,blocks:w}}var inner$b=makeInner();function getSelectionKey(r,t){return r.getName(t)||r.getId(t)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o._selectedDataIndicesMap={},o}return t.prototype.init=function(o,s,l){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(o,l);var h=inner$b(this).sourceManager=new SourceManager(this);h.prepareSource();var v=this.getInitialData(o,l);wrapData(v,this),this.dataTask.context.data=v,inner$b(this).dataBeforeProcessed=v,autoSeriesName(this),this._initSelectedMapFromData(v)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),h=l?getLayoutParams(o):{},v=this.subType;ComponentModel$1.hasClass(v)&&(v+="Series"),merge(o,s.getTheme().get(this.subType)),merge(o,this.getDefaultOption()),defaultEmphasis(o,"label",["show"]),this.fillDataTextStyle(o.data),l&&mergeLayoutParam(o,h,l)},t.prototype.mergeOption=function(o,s){o=merge(this.option,o,!0),this.fillDataTextStyle(o.data);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,o,l);var h=inner$b(this).sourceManager;h.dirty(),h.prepareSource();var v=this.getInitialData(o,s);wrapData(v,this),this.dataTask.dirty(),this.dataTask.context.data=v,inner$b(this).dataBeforeProcessed=v,autoSeriesName(this),this._initSelectedMapFromData(v)},t.prototype.fillDataTextStyle=function(o){if(o&&!isTypedArray(o))for(var s=["show"],l=0;l<o.length;l++)o[l]&&o[l].label&&defaultEmphasis(o[l],"label",s)},t.prototype.getInitialData=function(o,s){},t.prototype.appendData=function(o){var s=this.getRawData();s.appendData(o.data)},t.prototype.getData=function(o){var s=getCurrentTask(this);if(s){var l=s.context.data;return o==null?l:l.getLinkedData(o)}else return inner$b(this).data},t.prototype.getAllData=function(){var o=this.getData();return o&&o.getLinkedDataAll?o.getLinkedDataAll():[{data:o}]},t.prototype.setData=function(o){var s=getCurrentTask(this);if(s){var l=s.context;l.outputData=o,s!==this.dataTask&&(l.data=o)}inner$b(this).data=o},t.prototype.getEncode=function(){var o=this.get("encode",!0);if(o)return createHashMap(o)},t.prototype.getSourceManager=function(){return inner$b(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var o=this.get("colorBy");return o||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var o=this.coordinateSystem;return o&&o.getBaseAxis&&o.getBaseAxis()},t.prototype.formatTooltip=function(o,s,l){return defaultSeriesFormatTooltip({series:this,dataIndex:o,multipleSeries:s})},t.prototype.isAnimationEnabled=function(){var o=this.ecModel;if(env$1.node&&!(o&&o.ssr))return!1;var s=this.getShallow("animation");return s&&this.getData().count()>this.getShallow("animationThreshold")&&(s=!1),!!s},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(o,s,l){var h=this.ecModel,v=PaletteMixin.prototype.getColorFromPalette.call(this,o,s,l);return v||(v=h.getColorFromPalette(o,s,l)),v},t.prototype.coordDimToDataDim=function(o){return this.getRawData().mapDimensionsAll(o)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(o,s){this._innerSelect(this.getData(s),o)},t.prototype.unselect=function(o,s){var l=this.option.selectedMap;if(l){var h=this.option.selectedMode,v=this.getData(s);if(h==="series"||l==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var x=0;x<o.length;x++){var T=o[x],w=getSelectionKey(v,T);l[w]=!1,this._selectedDataIndicesMap[w]=-1}}},t.prototype.toggleSelect=function(o,s){for(var l=[],h=0;h<o.length;h++)l[0]=o[h],this.isSelected(o[h],s)?this.unselect(l,s):this.select(l,s)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var o=this._selectedDataIndicesMap,s=keys(o),l=[],h=0;h<s.length;h++){var v=o[s[h]];v>=0&&l.push(v)}return l},t.prototype.isSelected=function(o,s){var l=this.option.selectedMap;if(!l)return!1;var h=this.getData(s);return(l==="all"||l[getSelectionKey(h,o)])&&!h.getItemModel(o).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var o=this.option.universalTransition;return o?o===!0?!0:o&&o.enabled:!1},t.prototype._innerSelect=function(o,s){var l,h,v=this.option,x=v.selectedMode,T=s.length;if(!(!x||!T)){if(x==="series")v.selectedMap="all";else if(x==="multiple"){isObject$3(v.selectedMap)||(v.selectedMap={});for(var w=v.selectedMap,C=0;C<T;C++){var M=s[C],V=getSelectionKey(o,M);w[V]=!0,this._selectedDataIndicesMap[V]=o.getRawIndex(M)}}else if(x==="single"||x===!0){var z=s[T-1],V=getSelectionKey(o,z);v.selectedMap=(l={},l[V]=!0,l),this._selectedDataIndicesMap=(h={},h[V]=o.getRawIndex(z),h)}}},t.prototype._initSelectedMapFromData=function(o){if(!this.option.selectedMap){var s=[];o.hasItemOption&&o.each(function(l){var h=o.getRawDataItem(l);h&&h.selected&&s.push(l)}),s.length>0&&this._innerSelect(o,s)}},t.registerClass=function(o){return ComponentModel$1.registerClass(o)},t.protoInitialize=function(){var o=t.prototype;o.type="series.__base__",o.seriesIndex=0,o.ignoreStyleOnData=!1,o.hasSymbolVisual=!1,o.defaultSymbol="circle",o.visualStyleAccessPath="itemStyle",o.visualDrawType="fill"}(),t}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(r){var t=r.name;isNameSpecified(r)||(r.name=getSeriesAutoName(r)||t)}function getSeriesAutoName(r){var t=r.getRawData(),o=t.mapDimensionsAll("seriesName"),s=[];return each$c(o,function(l){var h=t.getDimensionInfo(l);h.displayName&&s.push(h.displayName)}),s.join(" ")}function dataTaskCount(r){return r.model.getRawData().count()}function dataTaskReset(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wrapData(r,t){each$c(concatArray(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(o){r.wrapMethod(o,curry$1(onDataChange,t))})}function onDataChange(r,t){var o=getCurrentTask(r);return o&&o.setOutputEnd((t||this).count()),t}function getCurrentTask(r){var t=(r.ecModel||{}).scheduler,o=t&&t.getPipeline(r.uid);if(o){var s=o.currentTask;if(s){var l=s.agentStubMap;l&&(s=l.get(r.uid))}return s}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function r(){this.group=new Group$3,this.uid=getUID("viewComponent")}return r.prototype.init=function(t,o){},r.prototype.render=function(t,o,s,l){},r.prototype.dispose=function(t,o){},r.prototype.updateView=function(t,o,s,l){},r.prototype.updateLayout=function(t,o,s,l){},r.prototype.updateVisual=function(t,o,s,l){},r.prototype.toggleBlurSeries=function(t,o,s){},r.prototype.eachRendered=function(t){var o=this.group;o&&o.traverse(t)},r}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var r=makeInner();return function(t){var o=r(t),s=t.pipelineContext,l=!!o.large,h=!!o.progressiveRender,v=o.large=!!(s&&s.large),x=o.progressiveRender=!!(s&&s.progressiveRender);return(l!==v||h!==x)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function r(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return r.prototype.init=function(t,o){},r.prototype.render=function(t,o,s,l){},r.prototype.highlight=function(t,o,s,l){var h=t.getData(l&&l.dataType);h&&toggleHighlight(h,l,"emphasis")},r.prototype.downplay=function(t,o,s,l){var h=t.getData(l&&l.dataType);h&&toggleHighlight(h,l,"normal")},r.prototype.remove=function(t,o){this.group.removeAll()},r.prototype.dispose=function(t,o){},r.prototype.updateView=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.updateLayout=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.updateVisual=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.eachRendered=function(t){traverseElements(this.group,t)},r.markUpdateMethod=function(t,o){inner$a(t).updateMethod=o},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function elSetState(r,t,o){r&&isHighDownDispatcher(r)&&(t==="emphasis"?enterEmphasis:leaveEmphasis)(r,o)}function toggleHighlight(r,t,o){var s=queryDataIndex(r,t),l=t&&t.highlightKey!=null?getHighlightDigit(t.highlightKey):null;s!=null?each$c(normalizeToArray(s),function(h){elSetState(r.getItemGraphicEl(h),o,l)}):r.eachItemGraphicEl(function(h){elSetState(h,o,l)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(r){return renderPlanner(r.model)}function renderTaskReset(r){var t=r.model,o=r.ecModel,s=r.api,l=r.payload,h=t.pipelineContext.progressiveRender,v=r.view,x=l&&inner$a(l).updateMethod,T=h?"incrementalPrepareRender":x&&v[x]?x:"render";return T!=="render"&&v[T](t,o,s,l),progressMethodMap[T]}var progressMethodMap={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(r,t,o){var s,l=0,h=0,v=null,x,T,w,C;t=t||0;function M(){h=new Date().getTime(),v=null,r.apply(T,w||[])}var V=function(){for(var z=[],F=0;F<arguments.length;F++)z[F]=arguments[F];s=new Date().getTime(),T=this,w=z;var B=C||t,W=C||o;C=null,x=s-(W?l:h)-B,clearTimeout(v),W?v=setTimeout(M,B):x>=0?M():v=setTimeout(M,-x),l=s};return V.clear=function(){v&&(clearTimeout(v),v=null)},V.debounceNextCall=function(z){C=z},V}function createOrUpdate(r,t,o,s){var l=r[t];if(l){var h=l[ORIGIN_METHOD]||l,v=l[THROTTLE_TYPE],x=l[RATE];if(x!==o||v!==s){if(o==null||!s)return r[t]=h;l=r[t]=throttle(h,o,s==="debounce"),l[ORIGIN_METHOD]=h,l[THROTTLE_TYPE]=s,l[RATE]=o}return l}}function clear$1(r,t){var o=r[t];o&&o[ORIGIN_METHOD]&&(o.clear&&o.clear(),r[t]=o[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(r,t){var o=r.visualStyleMapper||defaultStyleMappers[t];return o||(console.warn("Unknown style type '"+t+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(r,t){var o=r.visualDrawType||defaultColorKey[t];return o||(console.warn("Unknown style type '"+t+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var o=r.getData(),s=r.visualStyleAccessPath||"itemStyle",l=r.getModel(s),h=getStyleMapper(r,s),v=h(l),x=l.getShallow("decal");x&&(o.setVisual("decal",x),x.dirty=!0);var T=getDefaultColorKey(r,s),w=v[T],C=isFunction(w)?w:null,M=v.fill==="auto"||v.stroke==="auto";if(!v[T]||C||M){var V=r.getColorFromPalette(r.name,null,t.getSeriesCount());v[T]||(v[T]=V,o.setVisual("colorFromPalette",!0)),v.fill=v.fill==="auto"||isFunction(v.fill)?V:v.fill,v.stroke=v.stroke==="auto"||isFunction(v.stroke)?V:v.stroke}if(o.setVisual("style",v),o.setVisual("drawType",T),!t.isSeriesFiltered(r)&&C)return o.setVisual("colorFromPalette",!1),{dataEach:function(z,F){var B=r.getDataParams(F),W=extend({},v);W[T]=C(B),z.setItemVisual(F,"style",W)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var o=r.getData(),s=r.visualStyleAccessPath||"itemStyle",l=getStyleMapper(r,s),h=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(v,x){var T=v.getRawDataItem(x);if(T&&T[s]){sharedModel.option=T[s];var w=l(sharedModel),C=v.ensureUniqueItemVisual(x,"style");extend(C,w),sharedModel.option.decal&&(v.setItemVisual(x,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),h in w&&v.setItemVisual(x,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(r){var t=createHashMap();r.eachSeries(function(o){var s=o.getColorBy();if(!o.isColorBySeries()){var l=o.type+"-"+s,h=t.get(l);h||(h={},t.set(l,h)),inner$9(o).scope=h}}),r.eachSeries(function(o){if(!(o.isColorBySeries()||r.isSeriesFiltered(o))){var s=o.getRawData(),l={},h=o.getData(),v=inner$9(o).scope,x=o.visualStyleAccessPath||"itemStyle",T=getDefaultColorKey(o,x);h.each(function(w){var C=h.getRawIndex(w);l[C]=w}),s.each(function(w){var C=l[w],M=h.getItemVisual(C,"colorFromPalette");if(M){var V=h.ensureUniqueItemVisual(C,"style"),z=s.getName(w)||w+"",F=s.count();V[T]=o.getColorFromPalette(z,v,F)}})}})}},PI$1=Math.PI;function defaultLoading(r,t){t=t||{},defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var o=new Group$3,s=new Rect$2({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});o.add(s);var l=new ZRText$1({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),h=new Rect$2({style:{fill:"none"},textContent:l,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});o.add(h);var v;return t.showSpinner&&(v=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),v.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),v.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),o.add(v)),o.resize=function(){var x=l.getBoundingRect().width,T=t.showSpinner?t.spinnerRadius:0,w=(r.getWidth()-T*2-(t.showSpinner&&x?10:0)-x)/2-(t.showSpinner&&x?0:5+x/2)+(t.showSpinner?0:x/2)+(x?0:T),C=r.getHeight()/2;t.showSpinner&&v.setShape({cx:w,cy:C}),h.setShape({x:w-T,y:C-T,width:T*2,height:T*2}),s.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},o.resize(),o}var Scheduler=function(){function r(t,o,s,l){this._stageTaskMap=createHashMap(),this.ecInstance=t,this.api=o,s=this._dataProcessorHandlers=s.slice(),l=this._visualHandlers=l.slice(),this._allHandlers=s.concat(l)}return r.prototype.restoreData=function(t,o){t.restoreData(o),this._stageTaskMap.each(function(s){var l=s.overallTask;l&&l.dirty()})},r.prototype.getPerformArgs=function(t,o){if(t.__pipeline){var s=this._pipelineMap.get(t.__pipeline.id),l=s.context,h=!o&&s.progressiveEnabled&&(!l||l.progressiveRender)&&t.__idxInPipeline>s.blockIndex,v=h?s.step:null,x=l&&l.modDataCount,T=x!=null?Math.ceil(x/v):null;return{step:v,modBy:T,modDataCount:x}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,o){var s=this._pipelineMap.get(t.uid),l=t.getData(),h=l.count(),v=s.progressiveEnabled&&o.incrementalPrepareRender&&h>=s.threshold,x=t.get("large")&&h>=t.get("largeThreshold"),T=t.get("progressiveChunkMode")==="mod"?h:null;t.pipelineContext=s.context={progressiveRender:v,modDataCount:T,large:x}},r.prototype.restorePipelines=function(t){var o=this,s=o._pipelineMap=createHashMap();t.eachSeries(function(l){var h=l.getProgressive(),v=l.uid;s.set(v,{id:v,head:null,tail:null,threshold:l.getProgressiveThreshold(),progressiveEnabled:h&&!(l.preventIncremental&&l.preventIncremental()),blockIndex:-1,step:Math.round(h||700),count:0}),o._pipe(l,l.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,o=this.api.getModel(),s=this.api;each$c(this._allHandlers,function(l){var h=t.get(l.uid)||t.set(l.uid,{}),v="";assert(!(l.reset&&l.overallReset),v),l.reset&&this._createSeriesStageTask(l,h,o,s),l.overallReset&&this._createOverallStageTask(l,h,o,s)},this)},r.prototype.prepareView=function(t,o,s,l){var h=t.renderTask,v=h.context;v.model=o,v.ecModel=s,v.api=l,h.__block=!t.incrementalPrepareRender,this._pipe(o,h)},r.prototype.performDataProcessorTasks=function(t,o){this._performStageTasks(this._dataProcessorHandlers,t,o,{block:!0})},r.prototype.performVisualTasks=function(t,o,s){this._performStageTasks(this._visualHandlers,t,o,s)},r.prototype._performStageTasks=function(t,o,s,l){l=l||{};var h=!1,v=this;each$c(t,function(T,w){if(!(l.visualType&&l.visualType!==T.visualType)){var C=v._stageTaskMap.get(T.uid),M=C.seriesTaskMap,V=C.overallTask;if(V){var z,F=V.agentStubMap;F.each(function(W){x(l,W)&&(W.dirty(),z=!0)}),z&&V.dirty(),v.updatePayload(V,s);var B=v.getPerformArgs(V,l.block);F.each(function(W){W.perform(B)}),V.perform(B)&&(h=!0)}else M&&M.each(function(W,Y){x(l,W)&&W.dirty();var Z=v.getPerformArgs(W,l.block);Z.skip=!T.performRawSeries&&o.isSeriesFiltered(W.context.model),v.updatePayload(W,s),W.perform(Z)&&(h=!0)})}});function x(T,w){return T.setDirty&&(!T.dirtyMap||T.dirtyMap.get(w.__pipeline.id))}this.unfinished=h||this.unfinished},r.prototype.performSeriesTasks=function(t){var o;t.eachSeries(function(s){o=s.dataTask.perform()||o}),this.unfinished=o||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var o=t.tail;do{if(o.__block){t.blockIndex=o.__idxInPipeline;break}o=o.getUpstream()}while(o)})},r.prototype.updatePayload=function(t,o){o!=="remain"&&(t.context.payload=o)},r.prototype._createSeriesStageTask=function(t,o,s,l){var h=this,v=o.seriesTaskMap,x=o.seriesTaskMap=createHashMap(),T=t.seriesType,w=t.getTargetSeries;t.createOnAllSeries?s.eachRawSeries(C):T?s.eachRawSeriesByType(T,C):w&&w(s,l).each(C);function C(M){var V=M.uid,z=x.set(V,v&&v.get(V)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));z.context={model:M,ecModel:s,api:l,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:h},h._pipe(M,z)}},r.prototype._createOverallStageTask=function(t,o,s,l){var h=this,v=o.overallTask=o.overallTask||createTask({reset:overallTaskReset});v.context={ecModel:s,api:l,overallReset:t.overallReset,scheduler:h};var x=v.agentStubMap,T=v.agentStubMap=createHashMap(),w=t.seriesType,C=t.getTargetSeries,M=!0,V=!1,z="";assert(!t.createOnAllSeries,z),w?s.eachRawSeriesByType(w,F):C?C(s,l).each(F):(M=!1,each$c(s.getSeries(),F));function F(B){var W=B.uid,Y=T.set(W,x&&x.get(W)||(V=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));Y.context={model:B,overallProgress:M},Y.agent=v,Y.__block=M,h._pipe(B,Y)}V&&v.dirty()},r.prototype._pipe=function(t,o){var s=t.uid,l=this._pipelineMap.get(s);!l.head&&(l.head=o),l.tail&&l.tail.pipe(o),l.tail=o,o.__idxInPipeline=l.count++,o.__pipeline=l},r.wrapStageHandler=function(t,o){return isFunction(t)&&(t={overallReset:t,seriesType:detectSeriseType(t)}),t.uid=getUID("stageHandler"),o&&(t.visualType=o),t},r}();function overallTaskReset(r){r.overallReset(r.ecModel,r.api,r.payload)}function stubReset(r){return r.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function seriesTaskReset(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=normalizeToArray(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?map$2(t,function(o,s){return makeSeriesTaskProgress(s)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(r){return function(t,o){var s=o.data,l=o.resetDefines[r];if(l&&l.dataEach)for(var h=t.start;h<t.end;h++)l.dataEach(s,h);else l&&l.progress&&l.progress(t,s)}}function seriesTaskCount(r){return r.data.count()}function detectSeriseType(r){seriesType=null;try{r(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function(r){seriesType=r};ecModelMock.eachComponent=function(r){r.mainType==="series"&&r.subType&&(seriesType=r.subType)};function mockMethods(r,t){for(var o in t.prototype)r[o]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function r(){}return r.prototype.normalizeQuery=function(t){var o={},s={},l={};if(isString(t)){var h=parseClassType(t);o.mainType=h.main||null,o.subType=h.sub||null}else{var v=["Index","Name","Id"],x={name:1,dataIndex:1,dataType:1};each$c(t,function(T,w){for(var C=!1,M=0;M<v.length;M++){var V=v[M],z=w.lastIndexOf(V);if(z>0&&z===w.length-V.length){var F=w.slice(0,z);F!=="data"&&(o.mainType=F,o[V.toLowerCase()]=T,C=!0)}}x.hasOwnProperty(w)&&(s[w]=T,C=!0),C||(l[w]=T)})}return{cptQuery:o,dataQuery:s,otherQuery:l}},r.prototype.filter=function(t,o){var s=this.eventInfo;if(!s)return!0;var l=s.targetEl,h=s.packedEvent,v=s.model,x=s.view;if(!v||!x)return!0;var T=o.cptQuery,w=o.dataQuery;return C(T,v,"mainType")&&C(T,v,"subType")&&C(T,v,"index","componentIndex")&&C(T,v,"name")&&C(T,v,"id")&&C(w,h,"name")&&C(w,h,"dataIndex")&&C(w,h,"dataType")&&(!x.filterForExposedEvent||x.filterForExposedEvent(t,o.otherQuery,l,h));function C(M,V,z,F){return M[z]==null||V[F||z]===M[z]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var o=r.getData();if(r.legendIcon&&o.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var s={},l={},h=!1,v=0;v<SYMBOL_PROPS_WITH_CB.length;v++){var x=SYMBOL_PROPS_WITH_CB[v],T=r.get(x);isFunction(T)?(h=!0,l[x]=T):s[x]=T}if(s.symbol=s.symbol||r.defaultSymbol,o.setVisual(extend({legendIcon:r.legendIcon||s.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},s)),t.isSeriesFiltered(r))return;var w=keys(l);function C(M,V){for(var z=r.getRawValue(V),F=r.getDataParams(V),B=0;B<w.length;B++){var W=w[B];M.setItemVisual(V,W,l[W](z,F))}}return{dataEach:h?C:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var o=r.getData();function s(l,h){for(var v=l.getItemModel(h),x=0;x<SYMBOL_PROPS.length;x++){var T=SYMBOL_PROPS[x],w=v.getShallow(T,!0);w!=null&&l.setItemVisual(h,T,w)}}return{dataEach:o.hasItemOption?s:null}}};function getItemVisualFromData(r,t,o){switch(o){case"color":var s=r.getItemVisual(t,"style");return s[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,o)}}function getVisualFromData(r,t){switch(t){case"color":var o=r.getVisual("style");return o[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function setItemVisualFromData(r,t,o,s){switch(o){case"color":var l=r.ensureUniqueItemVisual(t,"style");l[r.getVisual("drawType")]=s,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,o,s);break}}function createLegacyDataSelectAction(r,t){function o(s,l){var h=[];return s.eachComponent({mainType:"series",subType:r,query:l},function(v){h.push(v.seriesIndex)}),h}each$c([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(s){t(s[0],function(l,h,v){l=extend({},l),v.dispatchAction(extend(l,{type:s[1],seriesIndex:o(h,l)}))})})}function handleSeriesLegacySelectEvents(r,t,o,s,l){var h=r+t;o.isSilent(h)||s.eachComponent({mainType:"series",subType:"pie"},function(v){for(var x=v.seriesIndex,T=v.option.selectedMap,w=l.selected,C=0;C<w.length;C++)if(w[C].seriesIndex===x){var M=v.getData(),V=queryDataIndex(M,l.fromActionPayload);o.trigger(h,{type:h,seriesId:v.id,name:isArray$1(V)?M.getName(V[0]):M.getName(V),selected:isString(T)?T:extend({},T)})}})}function handleLegacySelectEvents(r,t,o){r.on("selectchanged",function(s){var l=o.getModel();s.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",t,l,s),handleSeriesLegacySelectEvents("pie","selectchanged",t,l,s)):s.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",t,l,s),handleSeriesLegacySelectEvents("pie","selected",t,l,s)):s.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",t,l,s),handleSeriesLegacySelectEvents("pie","unselected",t,l,s))})}function findEventDispatcher(r,t,o){for(var s;r&&!(t(r)&&(s=r,o));)r=r.__hostTarget||r.parent;return s}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function r(){this._id="__ec_inner_"+wmUniqueIndex++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,o){var s=this._guard(t);return supportDefineProperty?Object.defineProperty(s,this._id,{value:o,enumerable:!1,configurable:!0}):s[this._id]=o,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const WeakMap$2=WeakMap$1;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var o=t.cx,s=t.cy,l=t.width/2,h=t.height/2;r.moveTo(o,s-h),r.lineTo(o+l,s+h),r.lineTo(o-l,s+h),r.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var o=t.cx,s=t.cy,l=t.width/2,h=t.height/2;r.moveTo(o,s-h),r.lineTo(o+l,s),r.lineTo(o,s+h),r.lineTo(o-l,s),r.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var o=t.x,s=t.y,l=t.width/5*3,h=Math.max(l,t.height),v=l/2,x=v*v/(h-v),T=s-h+v+x,w=Math.asin(x/v),C=Math.cos(w)*v,M=Math.sin(w),V=Math.cos(w),z=v*.6,F=v*.7;r.moveTo(o-C,T+x),r.arc(o,T,v,Math.PI-w,Math.PI*2+w),r.bezierCurveTo(o+C-M*z,T+x+V*z,o,s-F,o,s),r.bezierCurveTo(o,s-F,o-C+M*z,T+x+V*z,o-C,T+x),r.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var o=t.height,s=t.width,l=t.x,h=t.y,v=s/3*2;r.moveTo(l,h),r.lineTo(l+v,h+o),r.lineTo(l,h+o/4*3),r.lineTo(l-v,h+o),r.lineTo(l,h),r.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(r,t,o,s,l){l.x1=r,l.y1=t+s/2,l.x2=r+o,l.y2=t+s/2},rect:function(r,t,o,s,l){l.x=r,l.y=t,l.width=o,l.height=s},roundRect:function(r,t,o,s,l){l.x=r,l.y=t,l.width=o,l.height=s,l.r=Math.min(o,s)/4},square:function(r,t,o,s,l){var h=Math.min(o,s);l.x=r,l.y=t,l.width=h,l.height=h},circle:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.r=Math.min(o,s)/2},diamond:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.width=o,l.height=s},pin:function(r,t,o,s,l){l.x=r+o/2,l.y=t+s/2,l.width=o,l.height=s},arrow:function(r,t,o,s,l){l.x=r+o/2,l.y=t+s/2,l.width=o,l.height=s},triangle:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.width=o,l.height=s}},symbolBuildProxies={};each$c(symbolCtors,function(r,t){symbolBuildProxies[t]=new r});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,o){var s=calculateTextPosition(r,t,o),l=this.shape;return l&&l.symbolType==="pin"&&t.position==="inside"&&(s.y=o.y+o.height*.4),s},buildPath:function(r,t,o){var s=t.symbolType;if(s!=="none"){var l=symbolBuildProxies[s];l||(s="rect",l=symbolBuildProxies[s]),symbolShapeMakers[s](t.x,t.y,t.width,t.height,l.shape),l.buildPath(r,l.shape,o)}}});function symbolPathSetColor(r,t){if(this.type!=="image"){var o=this.style;this.__isEmptyBrush?(o.stroke=r,o.fill=t||"#fff",o.lineWidth=2):this.shape.symbolType==="line"?o.stroke=r:o.fill=r,this.markRedraw()}}function createSymbol(r,t,o,s,l,h,v){var x=r.indexOf("empty")===0;x&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var T;return r.indexOf("image://")===0?T=makeImage(r.slice(8),new BoundingRect$1(t,o,s,l),v?"center":"cover"):r.indexOf("path://")===0?T=makePath(r.slice(7),{},new BoundingRect$1(t,o,s,l),v?"center":"cover"):T=new SymbolClz$1({shape:{symbolType:r,x:t,y:o,width:s,height:l}}),T.__isEmptyBrush=x,T.setColor=symbolPathSetColor,h&&T.setColor(h),T}function normalizeSymbolSize(r){return isArray$1(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function normalizeSymbolOffset(r,t){if(r!=null)return isArray$1(r)||(r=[r,r]),[parsePercent(r[0],t[0])||0,parsePercent(retrieve2(r[1],r[0]),t[1])||0]}function isSafeNum(r){return isFinite(r)}function createLinearGradient(r,t,o){var s=t.x==null?0:t.x,l=t.x2==null?1:t.x2,h=t.y==null?0:t.y,v=t.y2==null?0:t.y2;t.global||(s=s*o.width+o.x,l=l*o.width+o.x,h=h*o.height+o.y,v=v*o.height+o.y),s=isSafeNum(s)?s:0,l=isSafeNum(l)?l:1,h=isSafeNum(h)?h:0,v=isSafeNum(v)?v:0;var x=r.createLinearGradient(s,h,l,v);return x}function createRadialGradient(r,t,o){var s=o.width,l=o.height,h=Math.min(s,l),v=t.x==null?.5:t.x,x=t.y==null?.5:t.y,T=t.r==null?.5:t.r;t.global||(v=v*s+o.x,x=x*l+o.y,T=T*h),v=isSafeNum(v)?v:.5,x=isSafeNum(x)?x:.5,T=T>=0&&isSafeNum(T)?T:.5;var w=r.createRadialGradient(v,x,0,v,x,T);return w}function getCanvasGradient(r,t,o){for(var s=t.type==="radial"?createRadialGradient(r,t,o):createLinearGradient(r,t,o),l=t.colorStops,h=0;h<l.length;h++)s.addColorStop(l[h].offset,l[h].color);return s}function isClipPathChanged(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var o=0;o<r.length;o++)if(r[o]!==t[o])return!0;return!1}function parseInt10(r){return parseInt(r,10)}function getSize$1(r,t,o){var s=["width","height"][t],l=["clientWidth","clientHeight"][t],h=["paddingLeft","paddingTop"][t],v=["paddingRight","paddingBottom"][t];if(o[s]!=null&&o[s]!=="auto")return parseFloat(o[s]);var x=document.defaultView.getComputedStyle(r);return(r[l]||parseInt10(x[s])||parseInt10(r.style[s]))-(parseInt10(x[h])||0)-(parseInt10(x[v])||0)|0}function normalizeLineDash(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:isNumber(r)?[r]:isArray$1(r)?r:null}function getLineDash(r){var t=r.style,o=t.lineDash&&t.lineWidth>0&&normalizeLineDash(t.lineDash,t.lineWidth),s=t.lineDashOffset;if(o){var l=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;l&&l!==1&&(o=map$2(o,function(h){return h/l}),s/=l)}return[o,s]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function isValidStrokeFillStyle(r){return typeof r=="string"&&r!=="none"}function styleHasFill(r){var t=r.fill;return t!=null&&t!=="none"}function doFillPath(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var o=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=o}else r.fill()}function doStrokePath(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var o=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=o}else r.stroke()}function createCanvasPattern(r,t,o){var s=createOrUpdateImage(t.image,t.__image,o);if(isImageReady(s)){var l=r.createPattern(s,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&l&&l.setTransform){var h=new DOMMatrix;h.translateSelf(t.x||0,t.y||0),h.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),h.scaleSelf(t.scaleX||1,t.scaleY||1),l.setTransform(h)}return l}}function brushPath(r,t,o,s){var l,h=styleHasStroke(o),v=styleHasFill(o),x=o.strokePercent,T=x<1,w=!t.path;(!t.silent||T)&&w&&t.createPathProxy();var C=t.path||pathProxyForDraw,M=t.__dirty;if(!s){var V=o.fill,z=o.stroke,F=v&&!!V.colorStops,B=h&&!!z.colorStops,W=v&&!!V.image,Y=h&&!!z.image,Z=void 0,X=void 0,te=void 0,oe=void 0,ae=void 0;(F||B)&&(ae=t.getBoundingRect()),F&&(Z=M?getCanvasGradient(r,V,ae):t.__canvasFillGradient,t.__canvasFillGradient=Z),B&&(X=M?getCanvasGradient(r,z,ae):t.__canvasStrokeGradient,t.__canvasStrokeGradient=X),W&&(te=M||!t.__canvasFillPattern?createCanvasPattern(r,V,t):t.__canvasFillPattern,t.__canvasFillPattern=te),Y&&(oe=M||!t.__canvasStrokePattern?createCanvasPattern(r,z,t):t.__canvasStrokePattern,t.__canvasStrokePattern=te),F?r.fillStyle=Z:W&&(te?r.fillStyle=te:v=!1),B?r.strokeStyle=X:Y&&(oe?r.strokeStyle=oe:h=!1)}var le=t.getGlobalScale();C.setScale(le[0],le[1],t.segmentIgnoreThreshold);var he,me;r.setLineDash&&o.lineDash&&(l=getLineDash(t),he=l[0],me=l[1]);var _e=!0;(w||M&SHAPE_CHANGED_BIT)&&(C.setDPR(r.dpr),T?C.setContext(null):(C.setContext(r),_e=!1),C.reset(),t.buildPath(C,t.shape,s),C.toStatic(),t.pathUpdated()),_e&&C.rebuildPath(r,T?x:1),he&&(r.setLineDash(he),r.lineDashOffset=me),s||(o.strokeFirst?(h&&doStrokePath(r,o),v&&doFillPath(r,o)):(v&&doFillPath(r,o),h&&doStrokePath(r,o))),he&&r.setLineDash([])}function brushImage(r,t,o){var s=t.__image=createOrUpdateImage(o.image,t.__image,t,t.onload);if(!(!s||!isImageReady(s))){var l=o.x||0,h=o.y||0,v=t.getWidth(),x=t.getHeight(),T=s.width/s.height;if(v==null&&x!=null?v=x*T:x==null&&v!=null?x=v/T:v==null&&x==null&&(v=s.width,x=s.height),o.sWidth&&o.sHeight){var w=o.sx||0,C=o.sy||0;r.drawImage(s,w,C,o.sWidth,o.sHeight,l,h,v,x)}else if(o.sx&&o.sy){var w=o.sx,C=o.sy,M=v-w,V=x-C;r.drawImage(s,w,C,M,V,l,h,v,x)}else r.drawImage(s,l,h,v,x)}}function brushText(r,t,o){var s,l=o.text;if(l!=null&&(l+=""),l){r.font=o.font||DEFAULT_FONT,r.textAlign=o.textAlign,r.textBaseline=o.textBaseline;var h=void 0,v=void 0;r.setLineDash&&o.lineDash&&(s=getLineDash(t),h=s[0],v=s[1]),h&&(r.setLineDash(h),r.lineDashOffset=v),o.strokeFirst?(styleHasStroke(o)&&r.strokeText(l,o.x,o.y),styleHasFill(o)&&r.fillText(l,o.x,o.y)):(styleHasFill(o)&&r.fillText(l,o.x,o.y),styleHasStroke(o)&&r.strokeText(l,o.x,o.y)),h&&r.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(r,t,o,s,l){var h=!1;if(!s&&(o=o||{},t===o))return!1;if(s||t.opacity!==o.opacity){flushPathDrawn(r,l),h=!0;var v=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(v)?DEFAULT_COMMON_STYLE.opacity:v}(s||t.blend!==o.blend)&&(h||(flushPathDrawn(r,l),h=!0),r.globalCompositeOperation=t.blend||DEFAULT_COMMON_STYLE.blend);for(var x=0;x<SHADOW_NUMBER_PROPS.length;x++){var T=SHADOW_NUMBER_PROPS[x];(s||t[T]!==o[T])&&(h||(flushPathDrawn(r,l),h=!0),r[T]=r.dpr*(t[T]||0))}return(s||t.shadowColor!==o.shadowColor)&&(h||(flushPathDrawn(r,l),h=!0),r.shadowColor=t.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),h}function bindPathAndTextCommonStyle(r,t,o,s,l){var h=getStyle(t,l.inHover),v=s?null:o&&getStyle(o,l.inHover)||{};if(h===v)return!1;var x=bindCommonProps(r,h,v,s,l);if((s||h.fill!==v.fill)&&(x||(flushPathDrawn(r,l),x=!0),isValidStrokeFillStyle(h.fill)&&(r.fillStyle=h.fill)),(s||h.stroke!==v.stroke)&&(x||(flushPathDrawn(r,l),x=!0),isValidStrokeFillStyle(h.stroke)&&(r.strokeStyle=h.stroke)),(s||h.opacity!==v.opacity)&&(x||(flushPathDrawn(r,l),x=!0),r.globalAlpha=h.opacity==null?1:h.opacity),t.hasStroke()){var T=h.lineWidth,w=T/(h.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==w&&(x||(flushPathDrawn(r,l),x=!0),r.lineWidth=w)}for(var C=0;C<STROKE_PROPS.length;C++){var M=STROKE_PROPS[C],V=M[0];(s||h[V]!==v[V])&&(x||(flushPathDrawn(r,l),x=!0),r[V]=h[V]||M[1])}return x}function bindImageStyle(r,t,o,s,l){return bindCommonProps(r,getStyle(t,l.inHover),o&&getStyle(o,l.inHover),s,l)}function setContextTransform(r,t){var o=t.transform,s=r.dpr||1;o?r.setTransform(s*o[0],s*o[1],s*o[2],s*o[3],s*o[4],s*o[5]):r.setTransform(s,0,0,s,0,0)}function updateClipStatus(r,t,o){for(var s=!1,l=0;l<r.length;l++){var h=r[l];s=s||h.isZeroArea(),setContextTransform(t,h),t.beginPath(),h.buildPath(t,h.shape),t.clip()}o.allClipped=s}function isTransformChanged(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch(r){var t=styleHasFill(r),o=styleHasStroke(r);return!(r.lineDash||!(+t^+o)||t&&typeof r.fill!="string"||o&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function flushPathDrawn(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function getStyle(r,t){return t&&r.__hoverStyle||r.style}function brushSingle(r,t){brush(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush(r,t,o,s){var l=t.transform;if(!t.shouldBePainted(o.viewWidth,o.viewHeight,!1,!1)){t.__dirty&=~REDRAW_BIT,t.__isRendered=!1;return}var h=t.__clipPaths,v=o.prevElClipPaths,x=!1,T=!1;if((!v||isClipPathChanged(h,v))&&(v&&v.length&&(flushPathDrawn(r,o),r.restore(),T=x=!0,o.prevElClipPaths=null,o.allClipped=!1,o.prevEl=null),h&&h.length&&(flushPathDrawn(r,o),r.save(),updateClipStatus(h,r,o),x=!0),o.prevElClipPaths=h),o.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var w=o.prevEl;w||(T=x=!0);var C=t instanceof Path$1&&t.autoBatch&&canPathBatch(t.style);x||isTransformChanged(l,w.transform)?(flushPathDrawn(r,o),setContextTransform(r,t)):C||flushPathDrawn(r,o);var M=getStyle(t,o.inHover);t instanceof Path$1?(o.lastDrawType!==DRAW_TYPE_PATH&&(T=!0,o.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(r,t,w,T,o),(!C||!o.batchFill&&!o.batchStroke)&&r.beginPath(),brushPath(r,t,M,C),C&&(o.batchFill=M.fill||"",o.batchStroke=M.stroke||"")):t instanceof TSpan$1?(o.lastDrawType!==DRAW_TYPE_TEXT&&(T=!0,o.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(r,t,w,T,o),brushText(r,t,M)):t instanceof ZRImage$1?(o.lastDrawType!==DRAW_TYPE_IMAGE&&(T=!0,o.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(r,t,w,T,o),brushImage(r,t,M)):t.getTemporalDisplayables&&(o.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(T=!0,o.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(r,t,o)),C&&s&&flushPathDrawn(r,o),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),o.prevEl=t,t.__dirty=0,t.__isRendered=!0}function brushIncremental(r,t,o){var s=t.getDisplayables(),l=t.getTemporalDisplayables();r.save();var h={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:o.viewWidth,viewHeight:o.viewHeight,inHover:o.inHover},v,x;for(v=t.getCursor(),x=s.length;v<x;v++){var T=s[v];T.beforeBrush&&T.beforeBrush(),T.innerBeforeBrush(),brush(r,T,h,v===x-1),T.innerAfterBrush(),T.afterBrush&&T.afterBrush(),h.prevEl=T}for(var w=0,C=l.length;w<C;w++){var T=l[w];T.beforeBrush&&T.beforeBrush(),T.innerBeforeBrush(),brush(r,T,h,w===C-1),T.innerAfterBrush(),T.afterBrush&&T.afterBrush(),h.prevEl=T}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal(r,t){if(r==="none")return null;var o=t.getDevicePixelRatio(),s=t.getZr(),l=s.painter.type==="svg";r.dirty&&decalMap.delete(r);var h=decalMap.get(r);if(h)return h;var v=defaults(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});v.backgroundColor==="none"&&(v.backgroundColor=null);var x={repeat:"repeat"};return T(x),x.rotation=v.rotation,x.scaleX=x.scaleY=l?1:1/o,decalMap.set(r,x),r.dirty=!1,x;function T(w){for(var C=[o],M=!0,V=0;V<decalKeys.length;++V){var z=v[decalKeys[V]];if(z!=null&&!isArray$1(z)&&!isString(z)&&!isNumber(z)&&typeof z!="boolean"){M=!1;break}C.push(z)}var F;if(M){F=C.join(",")+(l?"-svg":"");var B=decalCache.get(F);B&&(l?w.svgElement=B:w.image=B)}var W=normalizeDashArrayX(v.dashArrayX),Y=normalizeDashArrayY(v.dashArrayY),Z=normalizeSymbolArray(v.symbol),X=getLineBlockLengthX(W),te=getLineBlockLengthY(Y),oe=!l&&platformApi.createCanvas(),ae=l&&{tag:"g",attrs:{},key:"dcl",children:[]},le=me(),he;oe&&(oe.width=le.width*o,oe.height=le.height*o,he=oe.getContext("2d")),_e(),M&&decalCache.put(F,oe||ae),w.image=oe,w.svgElement=ae,w.svgWidth=le.width,w.svgHeight=le.height;function me(){for(var ye=1,Se=0,Te=X.length;Se<Te;++Se)ye=getLeastCommonMultiple(ye,X[Se]);for(var we=1,Se=0,Te=Z.length;Se<Te;++Se)we=getLeastCommonMultiple(we,Z[Se].length);ye*=we;var Ee=te*X.length*Z.length;return{width:Math.max(1,Math.min(ye,v.maxTileWidth)),height:Math.max(1,Math.min(Ee,v.maxTileHeight))}}function _e(){he&&(he.clearRect(0,0,oe.width,oe.height),v.backgroundColor&&(he.fillStyle=v.backgroundColor,he.fillRect(0,0,oe.width,oe.height)));for(var ye=0,Se=0;Se<Y.length;++Se)ye+=Y[Se];if(ye<=0)return;for(var Te=-te,we=0,Ee=0,Ce=0;Te<le.height;){if(we%2===0){for(var ke=Ee/2%Z.length,Me=0,Ie=0,$e=0;Me<le.width*2;){for(var Ge=0,Se=0;Se<W[Ce].length;++Se)Ge+=W[Ce][Se];if(Ge<=0)break;if(Ie%2===0){var He=(1-v.symbolSize)*.5,We=Me+W[Ce][Ie]*He,Ze=Te+Y[we]*He,ct=W[Ce][Ie]*v.symbolSize,Qe=Y[we]*v.symbolSize,mt=$e/2%Z[ke].length;ht(We,Ze,ct,Qe,Z[ke][mt])}Me+=W[Ce][Ie],++$e,++Ie,Ie===W[Ce].length&&(Ie=0)}++Ce,Ce===W.length&&(Ce=0)}Te+=Y[we],++Ee,++we,we===Y.length&&(we=0)}function ht(De,ze,Oe,Be,gt){var st=l?1:o,yt=createSymbol(gt,De*st,ze*st,Oe*st,Be*st,v.color,v.symbolKeepAspect);if(l){var nt=s.painter.renderOneToVNode(yt);nt&&ae.children.push(nt)}else brushSingle(he,yt)}}}}function normalizeSymbolArray(r){if(!r||r.length===0)return[["rect"]];if(isString(r))return[[r]];for(var t=!0,o=0;o<r.length;++o)if(!isString(r[o])){t=!1;break}if(t)return normalizeSymbolArray([r]);for(var s=[],o=0;o<r.length;++o)isString(r[o])?s.push([r[o]]):s.push(r[o]);return s}function normalizeDashArrayX(r){if(!r||r.length===0)return[[0,0]];if(isNumber(r)){var t=Math.ceil(r);return[[t,t]]}for(var o=!0,s=0;s<r.length;++s)if(!isNumber(r[s])){o=!1;break}if(o)return normalizeDashArrayX([r]);for(var l=[],s=0;s<r.length;++s)if(isNumber(r[s])){var t=Math.ceil(r[s]);l.push([t,t])}else{var t=map$2(r[s],function(x){return Math.ceil(x)});t.length%2===1?l.push(t.concat(t)):l.push(t)}return l}function normalizeDashArrayY(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(isNumber(r)){var t=Math.ceil(r);return[t,t]}var o=map$2(r,function(s){return Math.ceil(s)});return r.length%2?o.concat(o):o}function getLineBlockLengthX(r){return map$2(r,function(t){return getLineBlockLengthY(t)})}function getLineBlockLengthY(r){for(var t=0,o=0;o<r.length;++o)t+=r[o];return r.length%2===1?t*2:t}function decalVisual(r,t){r.eachRawSeries(function(o){if(!r.isSeriesFiltered(o)){var s=o.getData();s.hasItemVisual()&&s.each(function(v){var x=s.getItemVisual(v,"decal");if(x){var T=s.ensureUniqueItemVisual(v,"style");T.decal=createOrUpdatePatternFromDecal(x,t)}});var l=s.getVisual("decal");if(l){var h=s.getVisual("style");h.decal=createOrUpdatePatternFromDecal(l,t)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl(r,t){implsStore[r]=t}function getImpl(r){return implsStore[r]}var version="5.4.2",dependencies={zrender:"5.4.3"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts(r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,r,t)}}function createRegisterEventWithLowercaseMessageCenter(r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return toLowercaseNameAndCallEventful(this,r,t)}}function toLowercaseNameAndCallEventful(r,t,o){return o[0]=o[0]&&o[0].toLowerCase(),Eventful$1.prototype[t].apply(r,o)}var MessageCenter=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare$1,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render$2,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function(r){__extends(t,r);function t(o,s,l){var h=r.call(this,new ECEventProcessor)||this;h._chartsViews=[],h._chartsMap={},h._componentsViews=[],h._componentsMap={},h._pendingActions=[],l=l||{},isString(s)&&(s=themeStorage[s]),h._dom=o;var v="canvas",x="auto",T=!1,w=h._zr=init$1(o,{renderer:l.renderer||v,devicePixelRatio:l.devicePixelRatio,width:l.width,height:l.height,ssr:l.ssr,useDirtyRect:retrieve2(l.useDirtyRect,T),useCoarsePointer:retrieve2(l.useCoarsePointer,x),pointerSize:l.pointerSize});h._ssr=l.ssr,h._throttledZrFlush=throttle(bind$1(w.flush,w),17),s=clone$3(s),s&&globalBackwardCompat(s,!0),h._theme=s,h._locale=createLocaleObject(l.locale||SYSTEM_LANG),h._coordSysMgr=new CoordinateSystem;var C=h._api=createExtensionAPI(h);function M(V,z){return V.__prio-z.__prio}return sort(visualFuncs,M),sort(dataProcessorFuncs,M),h._scheduler=new Scheduler$1(h,C,dataProcessorFuncs,visualFuncs),h._messageCenter=new MessageCenter,h._initEvents(),h.resize=bind$1(h.resize,h),w.animation.on("frame",h._onframe,h),bindRenderedEvent(w,h),bindMouseEvent(w,h),setAsPrimitive(h),h}return t.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var o=this._scheduler;if(this[PENDING_UPDATE]){var s=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(T){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,T}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}else if(o.unfinished){var l=TEST_FRAME_REMAIN_TIME,h=this._model,v=this._api;o.unfinished=!1;do{var x=+new Date;o.performSeriesTasks(h),o.performDataProcessorTasks(h),updateStreamModes(this,h),o.performVisualTasks(h),renderSeries(this,this._model,v,"remain",{}),l-=+new Date-x}while(l>0&&o.unfinished);o.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(o,s,l){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var h,v,x;if(isObject$3(s)&&(l=s.lazyUpdate,h=s.silent,v=s.replaceMerge,x=s.transition,s=s.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||s){var T=new OptionManager$1(this._api),w=this._theme,C=this._model=new GlobalModel$1;C.scheduler=this._scheduler,C.ssr=this._ssr,C.init(null,null,null,w,this._locale,T)}this._model.setOption(o,{replaceMerge:v},optionPreprocessorFuncs);var M={seriesTransition:x,optionChanged:!0};if(l)this[PENDING_UPDATE]={silent:h,updateParams:M},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,M)}catch(V){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,V}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,h),triggerUpdatedEvent.call(this,h)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(o){return this.renderToCanvas(o)},t.prototype.renderToCanvas=function(o){o=o||{};var s=this._zr.painter;return s.getRenderedCanvas({backgroundColor:o.backgroundColor||this._model.get("backgroundColor"),pixelRatio:o.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(o){o=o||{};var s=this._zr.painter;return s.renderToString({useViewBox:o.useViewBox})},t.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var o=this._zr,s=o.storage.getDisplayList();return each$c(s,function(l){l.stopAnimation(null,!0)}),o.painter.toDataURL()}},t.prototype.getDataURL=function(o){if(this._disposed){this.id;return}o=o||{};var s=o.excludeComponents,l=this._model,h=[],v=this;each$c(s,function(T){l.eachComponent({mainType:T},function(w){var C=v._componentsMap[w.__viewId];C.group.ignore||(h.push(C),C.group.ignore=!0)})});var x=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(o).toDataURL("image/"+(o&&o.type||"png"));return each$c(h,function(T){T.group.ignore=!1}),x},t.prototype.getConnectedDataURL=function(o){if(this._disposed){this.id;return}var s=o.type==="svg",l=this.group,h=Math.min,v=Math.max,x=1/0;if(connectedGroups[l]){var T=x,w=x,C=-x,M=-x,V=[],z=o&&o.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(X,te){if(X.group===l){var oe=s?X.getZr().painter.getSvgDom().innerHTML:X.renderToCanvas(clone$3(o)),ae=X.getDom().getBoundingClientRect();T=h(ae.left,T),w=h(ae.top,w),C=v(ae.right,C),M=v(ae.bottom,M),V.push({dom:oe,left:ae.left,top:ae.top})}}),T*=z,w*=z,C*=z,M*=z;var F=C-T,B=M-w,W=platformApi.createCanvas(),Y=init$1(W,{renderer:s?"svg":"canvas"});if(Y.resize({width:F,height:B}),s){var Z="";return each$c(V,function(X){var te=X.left-T,oe=X.top-w;Z+='<g transform="translate('+te+","+oe+')">'+X.dom+"</g>"}),Y.painter.getSvgRoot().innerHTML=Z,o.connectedBackgroundColor&&Y.painter.setBackgroundColor(o.connectedBackgroundColor),Y.refreshImmediately(),Y.painter.toDataURL()}else return o.connectedBackgroundColor&&Y.add(new Rect$2({shape:{x:0,y:0,width:F,height:B},style:{fill:o.connectedBackgroundColor}})),each$c(V,function(X){var te=new ZRImage$1({style:{x:X.left*z-T,y:X.top*z-w,image:X.dom}});Y.add(te)}),Y.refreshImmediately(),W.toDataURL("image/"+(o&&o.type||"png"))}else return this.getDataURL(o)},t.prototype.convertToPixel=function(o,s){return doConvertPixel(this,"convertToPixel",o,s)},t.prototype.convertFromPixel=function(o,s){return doConvertPixel(this,"convertFromPixel",o,s)},t.prototype.containPixel=function(o,s){if(this._disposed){this.id;return}var l=this._model,h,v=parseFinder$1(l,o);return each$c(v,function(x,T){T.indexOf("Models")>=0&&each$c(x,function(w){var C=w.coordinateSystem;if(C&&C.containPoint)h=h||!!C.containPoint(s);else if(T==="seriesModels"){var M=this._chartsMap[w.__viewId];M&&M.containPoint&&(h=h||M.containPoint(s,w))}},this)},this),!!h},t.prototype.getVisual=function(o,s){var l=this._model,h=parseFinder$1(l,o,{defaultMainType:"series"}),v=h.seriesModel,x=v.getData(),T=h.hasOwnProperty("dataIndexInside")?h.dataIndexInside:h.hasOwnProperty("dataIndex")?x.indexOfRawIndex(h.dataIndex):null;return T!=null?getItemVisualFromData(x,T,s):getVisualFromData(x,s)},t.prototype.getViewOfComponentModel=function(o){return this._componentsMap[o.__viewId]},t.prototype.getViewOfSeriesModel=function(o){return this._chartsMap[o.__viewId]},t.prototype._initEvents=function(){var o=this;each$c(MOUSE_EVENT_NAMES,function(s){var l=function(h){var v=o.getModel(),x=h.target,T,w=s==="globalout";if(w?T={}:x&&findEventDispatcher(x,function(F){var B=getECData(F);if(B&&B.dataIndex!=null){var W=B.dataModel||v.getSeriesByIndex(B.seriesIndex);return T=W&&W.getDataParams(B.dataIndex,B.dataType)||{},!0}else if(B.eventData)return T=extend({},B.eventData),!0},!0),T){var C=T.componentType,M=T.componentIndex;(C==="markLine"||C==="markPoint"||C==="markArea")&&(C="series",M=T.seriesIndex);var V=C&&M!=null&&v.getComponent(C,M),z=V&&o[V.mainType==="series"?"_chartsMap":"_componentsMap"][V.__viewId];T.event=h,T.type=s,o._$eventProcessor.eventInfo={targetEl:x,packedEvent:T,model:V,view:z},o.trigger(s,T)}};l.zrEventfulCallAtLast=!0,o._zr.on(s,l,o)}),each$c(eventActionMap,function(s,l){o._messageCenter.on(l,function(h){this.trigger(l,h)},o)}),each$c(["selectchanged"],function(s){o._messageCenter.on(s,function(l){this.trigger(s,l)},o)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var o=this.getDom();o&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var s=this,l=s._api,h=s._model;each$c(s._componentsViews,function(v){v.dispose(h,l)}),each$c(s._chartsViews,function(v){v.dispose(h,l)}),s._zr.dispose(),s._dom=s._model=s._chartsMap=s._componentsMap=s._chartsViews=s._componentsViews=s._scheduler=s._api=s._zr=s._throttledZrFlush=s._theme=s._coordSysMgr=s._messageCenter=null,delete instances[s.id]},t.prototype.resize=function(o){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(o);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!s){var l=s.resetOption("media"),h=o&&o.silent;this[PENDING_UPDATE]&&(h==null&&(h=this[PENDING_UPDATE].silent),l=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{l&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},o&&o.animation)})}catch(v){throw this[IN_MAIN_PROCESS_KEY]=!1,v}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,h),triggerUpdatedEvent.call(this,h)}}},t.prototype.showLoading=function(o,s){if(this._disposed){this.id;return}if(isObject$3(o)&&(s=o,o=""),o=o||"default",this.hideLoading(),!!loadingEffects[o]){var l=loadingEffects[o](this._api,s),h=this._zr;this._loadingFX=l,h.add(l)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(o){var s=extend({},o);return s.type=eventActionMap[o.type],s},t.prototype.dispatchAction=function(o,s){if(this._disposed){this.id;return}if(isObject$3(s)||(s={silent:!!s}),!!actions[o.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(o);return}var l=s.silent;doDispatchAction.call(this,o,l);var h=s.flush;h?this._zr.flush():h!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,l),triggerUpdatedEvent.call(this,l)}},t.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(o){if(this._disposed){this.id;return}var s=o.seriesIndex,l=this.getModel(),h=l.getSeriesByIndex(s);h.appendData(o),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare$1=function(M){var V=M._scheduler;V.restorePipelines(M._model),V.prepareStageTasks(),prepareView(M,!0),prepareView(M,!1),V.plan()},prepareView=function(M,V){for(var z=M._model,F=M._scheduler,B=V?M._componentsViews:M._chartsViews,W=V?M._componentsMap:M._chartsMap,Y=M._zr,Z=M._api,X=0;X<B.length;X++)B[X].__alive=!1;V?z.eachComponent(function(ae,le){ae!=="series"&&te(le)}):z.eachSeries(te);function te(ae){var le=ae.__requireNewView;ae.__requireNewView=!1;var he="_ec_"+ae.id+"_"+ae.type,me=!le&&W[he];if(!me){var _e=parseClassType(ae.type),ye=V?ComponentView$1.getClass(_e.main,_e.sub):ChartView$1.getClass(_e.sub);me=new ye,me.init(z,Z),W[he]=me,B.push(me),Y.add(me.group)}ae.__viewId=me.__id=he,me.__alive=!0,me.__model=ae,me.group.__ecComponentInfo={mainType:ae.mainType,index:ae.componentIndex},!V&&F.prepareView(me,ae,z,Z)}for(var X=0;X<B.length;){var oe=B[X];oe.__alive?X++:(!V&&oe.renderTask.dispose(),Y.remove(oe.group),oe.dispose(z,Z),B.splice(X,1),W[oe.__id]===oe&&delete W[oe.__id],oe.__id=oe.group.__ecComponentInfo=null)}},updateDirectly=function(M,V,z,F,B){var W=M._model;if(W.setUpdatePayload(z),!F){each$c([].concat(M._componentsViews).concat(M._chartsViews),oe);return}var Y={};Y[F+"Id"]=z[F+"Id"],Y[F+"Index"]=z[F+"Index"],Y[F+"Name"]=z[F+"Name"];var Z={mainType:F,query:Y};B&&(Z.subType=B);var X=z.excludeSeriesId,te;X!=null&&(te=createHashMap(),each$c(normalizeToArray(X),function(ae){var le=convertOptionIdName(ae,null);le!=null&&te.set(le,!0)})),W&&W.eachComponent(Z,function(ae){var le=te&&te.get(ae.id)!=null;if(!le)if(isHighDownPayload(z))if(ae instanceof SeriesModel$1)z.type===HIGHLIGHT_ACTION_TYPE&&!z.notBlur&&!ae.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(ae,z,M._api);else{var he=findComponentHighDownDispatchers(ae.mainType,ae.componentIndex,z.name,M._api),me=he.focusSelf,_e=he.dispatchers;z.type===HIGHLIGHT_ACTION_TYPE&&me&&!z.notBlur&&blurComponent(ae.mainType,ae.componentIndex,M._api),_e&&each$c(_e,function(ye){z.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(ye):leaveEmphasis(ye)})}else isSelectChangePayload(z)&&ae instanceof SeriesModel$1&&(toggleSelectionFromPayload(ae,z,M._api),updateSeriesElementSelection(ae),markStatusToUpdate(M))},M),W&&W.eachComponent(Z,function(ae){var le=te&&te.get(ae.id)!=null;le||oe(M[F==="series"?"_chartsMap":"_componentsMap"][ae.__viewId])},M);function oe(ae){ae&&ae.__alive&&ae[V]&&ae[V](ae.__model,W,M._api,z)}},updateMethods={prepareAndUpdate:function(M){prepare$1(this),updateMethods.update.call(this,M,{optionChanged:M.newOption!=null})},update:function(M,V){var z=this._model,F=this._api,B=this._zr,W=this._coordSysMgr,Y=this._scheduler;if(z){z.setUpdatePayload(M),Y.restoreData(z,M),Y.performSeriesTasks(z),W.create(z,F),Y.performDataProcessorTasks(z,M),updateStreamModes(this,z),W.update(z,F),o(z),Y.performVisualTasks(z,M),render$2(this,z,F,M,V);var Z=z.get("backgroundColor")||"transparent",X=z.get("darkMode");B.setBackgroundColor(Z),X!=null&&X!=="auto"&&B.setDarkMode(X),lifecycle$1.trigger("afterupdate",z,F)}},updateTransform:function(M){var V=this,z=this._model,F=this._api;if(z){z.setUpdatePayload(M);var B=[];z.eachComponent(function(Y,Z){if(Y!=="series"){var X=V.getViewOfComponentModel(Z);if(X&&X.__alive)if(X.updateTransform){var te=X.updateTransform(Z,z,F,M);te&&te.update&&B.push(X)}else B.push(X)}});var W=createHashMap();z.eachSeries(function(Y){var Z=V._chartsMap[Y.__viewId];if(Z.updateTransform){var X=Z.updateTransform(Y,z,F,M);X&&X.update&&W.set(Y.uid,1)}else W.set(Y.uid,1)}),o(z),this._scheduler.performVisualTasks(z,M,{setDirty:!0,dirtyMap:W}),renderSeries(this,z,F,M,{},W),lifecycle$1.trigger("afterupdate",z,F)}},updateView:function(M){var V=this._model;V&&(V.setUpdatePayload(M),ChartView$1.markUpdateMethod(M,"updateView"),o(V),this._scheduler.performVisualTasks(V,M,{setDirty:!0}),render$2(this,V,this._api,M,{}),lifecycle$1.trigger("afterupdate",V,this._api))},updateVisual:function(M){var V=this,z=this._model;z&&(z.setUpdatePayload(M),z.eachSeries(function(F){F.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(M,"updateVisual"),o(z),this._scheduler.performVisualTasks(z,M,{visualType:"visual",setDirty:!0}),z.eachComponent(function(F,B){if(F!=="series"){var W=V.getViewOfComponentModel(B);W&&W.__alive&&W.updateVisual(B,z,V._api,M)}}),z.eachSeries(function(F){var B=V._chartsMap[F.__viewId];B.updateVisual(F,z,V._api,M)}),lifecycle$1.trigger("afterupdate",z,this._api))},updateLayout:function(M){updateMethods.update.call(this,M)}},doConvertPixel=function(M,V,z,F){if(M._disposed){M.id;return}for(var B=M._model,W=M._coordSysMgr.getCoordinateSystems(),Y,Z=parseFinder$1(B,z),X=0;X<W.length;X++){var te=W[X];if(te[V]&&(Y=te[V](B,Z,F))!=null)return Y}},updateStreamModes=function(M,V){var z=M._chartsMap,F=M._scheduler;V.eachSeries(function(B){F.updateStreamModes(B,z[B.__viewId])})},doDispatchAction=function(M,V){var z=this,F=this.getModel(),B=M.type,W=M.escapeConnect,Y=actions[B],Z=Y.actionInfo,X=(Z.update||"update").split(":"),te=X.pop(),oe=X[0]!=null&&parseClassType(X[0]);this[IN_MAIN_PROCESS_KEY]=!0;var ae=[M],le=!1;M.batch&&(le=!0,ae=map$2(M.batch,function(we){return we=defaults(extend({},we),M),we.batch=null,we}));var he=[],me,_e=isSelectChangePayload(M),ye=isHighDownPayload(M);if(ye&&allLeaveBlur(this._api),each$c(ae,function(we){if(me=Y.action(we,z._model,z._api),me=me||extend({},we),me.type=Z.event||me.type,he.push(me),ye){var Ee=preParseFinder(M),Ce=Ee.queryOptionMap,ke=Ee.mainTypeSpecified,Me=ke?Ce.keys()[0]:"series";updateDirectly(z,te,we,Me),markStatusToUpdate(z)}else _e?(updateDirectly(z,te,we,"series"),markStatusToUpdate(z)):oe&&updateDirectly(z,te,we,oe.main,oe.sub)}),te!=="none"&&!ye&&!_e&&!oe)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,M),this[PENDING_UPDATE]=null):updateMethods[te].call(this,M)}catch(we){throw this[IN_MAIN_PROCESS_KEY]=!1,we}if(le?me={type:Z.event||B,escapeConnect:W,batch:he}:me=he[0],this[IN_MAIN_PROCESS_KEY]=!1,!V){var Se=this._messageCenter;if(Se.trigger(me.type,me),_e){var Te={type:"selectchanged",escapeConnect:W,selected:getAllSelectedIndices(F),isFromClick:M.isFromClick||!1,fromAction:M.type,fromActionPayload:M};Se.trigger(Te.type,Te)}}},flushPendingActions=function(M){for(var V=this._pendingActions;V.length;){var z=V.shift();doDispatchAction.call(this,z,M)}},triggerUpdatedEvent=function(M){!M&&this.trigger("updated")},bindRenderedEvent=function(M,V){M.on("rendered",function(z){V.trigger("rendered",z),M.animation.isFinished()&&!V[PENDING_UPDATE]&&!V._scheduler.unfinished&&!V._pendingActions.length&&V.trigger("finished")})},bindMouseEvent=function(M,V){M.on("mouseover",function(z){var F=z.target,B=findEventDispatcher(F,isHighDownDispatcher);B&&(handleGlobalMouseOverForHighDown(B,z,V._api),markStatusToUpdate(V))}).on("mouseout",function(z){var F=z.target,B=findEventDispatcher(F,isHighDownDispatcher);B&&(handleGlobalMouseOutForHighDown(B,z,V._api),markStatusToUpdate(V))}).on("click",function(z){var F=z.target,B=findEventDispatcher(F,function(Z){return getECData(Z).dataIndex!=null},!0);if(B){var W=B.selected?"unselect":"select",Y=getECData(B);V._api.dispatchAction({type:W,dataType:Y.dataType,dataIndexInside:Y.dataIndex,seriesIndex:Y.seriesIndex,isFromClick:!0})}})};function o(M){M.clearColorPalette(),M.eachSeries(function(V){V.clearColorPalette()})}function s(M){var V=[],z=[],F=!1;if(M.eachComponent(function(Z,X){var te=X.get("zlevel")||0,oe=X.get("z")||0,ae=X.getZLevelKey();F=F||!!ae,(Z==="series"?z:V).push({zlevel:te,z:oe,idx:X.componentIndex,type:Z,key:ae})}),F){var B=V.concat(z),W,Y;sort(B,function(Z,X){return Z.zlevel===X.zlevel?Z.z-X.z:Z.zlevel-X.zlevel}),each$c(B,function(Z){var X=M.getComponent(Z.type,Z.idx),te=Z.zlevel,oe=Z.key;W!=null&&(te=Math.max(W,te)),oe?(te===W&&oe!==Y&&te++,Y=oe):Y&&(te===W&&te++,Y=""),W=te,X.setZLevel(te)})}}render$2=function(M,V,z,F,B){s(V),renderComponents(M,V,z,F,B),each$c(M._chartsViews,function(W){W.__alive=!1}),renderSeries(M,V,z,F,B),each$c(M._chartsViews,function(W){W.__alive||W.remove(V,z)})},renderComponents=function(M,V,z,F,B,W){each$c(W||M._componentsViews,function(Y){var Z=Y.__model;w(Z,Y),Y.render(Z,V,z,F),x(Z,Y),C(Z,Y)})},renderSeries=function(M,V,z,F,B,W){var Y=M._scheduler;B=extend(B||{},{updatedSeries:V.getSeries()}),lifecycle$1.trigger("series:beforeupdate",V,z,B);var Z=!1;V.eachSeries(function(X){var te=M._chartsMap[X.__viewId];te.__alive=!0;var oe=te.renderTask;Y.updatePayload(oe,F),w(X,te),W&&W.get(X.uid)&&oe.dirty(),oe.perform(Y.getPerformArgs(oe))&&(Z=!0),te.group.silent=!!X.get("silent"),v(X,te),updateSeriesElementSelection(X)}),Y.unfinished=Z||Y.unfinished,lifecycle$1.trigger("series:layoutlabels",V,z,B),lifecycle$1.trigger("series:transition",V,z,B),V.eachSeries(function(X){var te=M._chartsMap[X.__viewId];x(X,te),C(X,te)}),h(M,V),lifecycle$1.trigger("series:afterupdate",V,z,B)},markStatusToUpdate=function(M){M[STATUS_NEEDS_UPDATE_KEY]=!0,M.getZr().wakeUp()},applyChangedStates=function(M){M[STATUS_NEEDS_UPDATE_KEY]&&(M.getZr().storage.traverse(function(V){isElementRemoved(V)||l(V)}),M[STATUS_NEEDS_UPDATE_KEY]=!1)};function l(M){for(var V=[],z=M.currentStates,F=0;F<z.length;F++){var B=z[F];B==="emphasis"||B==="blur"||B==="select"||V.push(B)}M.selected&&M.states.select&&V.push("select"),M.hoverState===HOVER_STATE_EMPHASIS&&M.states.emphasis?V.push("emphasis"):M.hoverState===HOVER_STATE_BLUR&&M.states.blur&&V.push("blur"),M.useStates(V)}function h(M,V){var z=M._zr,F=z.storage,B=0;F.traverse(function(W){W.isGroup||B++}),B>V.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&V.eachSeries(function(W){if(!W.preventUsingHoverLayer){var Y=M._chartsMap[W.__viewId];Y.__alive&&Y.eachRendered(function(Z){Z.states.emphasis&&(Z.states.emphasis.hoverLayer=!0)})}})}function v(M,V){var z=M.get("blendMode")||null;V.eachRendered(function(F){F.isGroup||(F.style.blend=z)})}function x(M,V){if(!M.preventAutoZ){var z=M.get("z")||0,F=M.get("zlevel")||0;V.eachRendered(function(B){return T(B,z,F,-1/0),!0})}}function T(M,V,z,F){var B=M.getTextContent(),W=M.getTextGuideLine(),Y=M.isGroup;if(Y)for(var Z=M.childrenRef(),X=0;X<Z.length;X++)F=Math.max(T(Z[X],V,z,F),F);else M.z=V,M.zlevel=z,F=Math.max(M.z2,F);if(B&&(B.z=V,B.zlevel=z,isFinite(F)&&(B.z2=F+2)),W){var te=M.textGuideLineConfig;W.z=V,W.zlevel=z,isFinite(F)&&(W.z2=F+(te&&te.showAbove?1:-1))}return F}function w(M,V){V.eachRendered(function(z){if(!isElementRemoved(z)){var F=z.getTextContent(),B=z.getTextGuideLine();z.stateTransition&&(z.stateTransition=null),F&&F.stateTransition&&(F.stateTransition=null),B&&B.stateTransition&&(B.stateTransition=null),z.hasState()?(z.prevStates=z.currentStates,z.clearStates()):z.prevStates&&(z.prevStates=null)}})}function C(M,V){var z=M.getModel("stateAnimation"),F=M.isAnimationEnabled(),B=z.get("duration"),W=B>0?{duration:B,delay:z.get("delay"),easing:z.get("easing")}:null;V.eachRendered(function(Y){if(Y.states&&Y.states.emphasis){if(isElementRemoved(Y))return;if(Y instanceof Path$1&&savePathStates(Y),Y.__dirty){var Z=Y.prevStates;Z&&Y.useStates(Z)}if(F){Y.stateTransition=W;var X=Y.getTextContent(),te=Y.getTextGuideLine();X&&(X.stateTransition=W),te&&(te.stateTransition=W)}Y.__dirty&&l(Y)}})}createExtensionAPI=function(M){return new(function(V){__extends(z,V);function z(){return V!==null&&V.apply(this,arguments)||this}return z.prototype.getCoordinateSystems=function(){return M._coordSysMgr.getCoordinateSystems()},z.prototype.getComponentByElement=function(F){for(;F;){var B=F.__ecComponentInfo;if(B!=null)return M._model.getComponent(B.mainType,B.index);F=F.parent}},z.prototype.enterEmphasis=function(F,B){enterEmphasis(F,B),markStatusToUpdate(M)},z.prototype.leaveEmphasis=function(F,B){leaveEmphasis(F,B),markStatusToUpdate(M)},z.prototype.enterBlur=function(F){enterBlur(F),markStatusToUpdate(M)},z.prototype.leaveBlur=function(F){leaveBlur(F),markStatusToUpdate(M)},z.prototype.enterSelect=function(F){enterSelect(F),markStatusToUpdate(M)},z.prototype.leaveSelect=function(F){leaveSelect(F),markStatusToUpdate(M)},z.prototype.getModel=function(){return M.getModel()},z.prototype.getViewOfComponentModel=function(F){return M.getViewOfComponentModel(F)},z.prototype.getViewOfSeriesModel=function(F){return M.getViewOfSeriesModel(F)},z}(ExtensionAPI$1))(M)},enableConnect=function(M){function V(z,F){for(var B=0;B<z.length;B++){var W=z[B];W[CONNECT_STATUS_KEY]=F}}each$c(eventActionMap,function(z,F){M._messageCenter.on(F,function(B){if(connectedGroups[M.group]&&M[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(B&&B.escapeConnect)return;var W=M.makeActionFromEvent(B),Y=[];each$c(instances,function(Z){Z!==M&&Z.group===M.group&&Y.push(Z)}),V(Y,CONNECT_STATUS_PENDING),each$c(Y,function(Z){Z[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&Z.dispatchAction(W)}),V(Y,CONNECT_STATUS_UPDATED)}})})}}(),t}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(r,t,o){var s=this;function l(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];t&&t.apply&&t.apply(this,h),s.off(r,l)}this.on.call(this,r,l,o)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning(r){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init(r,t,o){var s=!(o&&o.ssr);if(s){var l=getInstanceByDom(r);if(l)return l}var h=new ECharts(r,t,o);return h.id="ec_"+idBase++,instances[h.id]=h,s&&setAttribute(r,DOM_ATTRIBUTE_KEY,h.id),enableConnect(h),lifecycle$1.trigger("afterinit",h),h}function connect(r){if(isArray$1(r)){var t=r;r=null,each$c(t,function(o){o.group!=null&&(r=o.group)}),r=r||"g_"+groupIdBase++,each$c(t,function(o){o.group=r})}return connectedGroups[r]=!0,r}function disConnect(r){connectedGroups[r]=!1}var disconnect=disConnect;function dispose(r){isString(r)?r=instances[r]:r instanceof ECharts||(r=getInstanceByDom(r)),r instanceof ECharts&&!r.isDisposed()&&r.dispose()}function getInstanceByDom(r){return instances[getAttribute(r,DOM_ATTRIBUTE_KEY)]}function getInstanceById(r){return instances[r]}function registerTheme(r,t){themeStorage[r]=t}function registerPreprocessor(r){indexOf(optionPreprocessorFuncs,r)<0&&optionPreprocessorFuncs.push(r)}function registerProcessor(r,t){normalizeRegister(dataProcessorFuncs,r,t,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit(r){registerUpdateLifecycle("afterinit",r)}function registerPostUpdate(r){registerUpdateLifecycle("afterupdate",r)}function registerUpdateLifecycle(r,t){lifecycle$1.on(r,t)}function registerAction(r,t,o){isFunction(t)&&(o=t,t="");var s=isObject$3(r)?r.type:[r,r={event:t}][0];r.event=(r.event||s).toLowerCase(),t=r.event,!eventActionMap[t]&&(assert(ACTION_REG.test(s)&&ACTION_REG.test(t)),actions[s]||(actions[s]={action:o,actionInfo:r}),eventActionMap[t]=s)}function registerCoordinateSystem(r,t){CoordinateSystem.register(r,t)}function getCoordinateSystemDimensions(r){var t=CoordinateSystem.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function registerLayout(r,t){normalizeRegister(visualFuncs,r,t,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual(r,t){normalizeRegister(visualFuncs,r,t,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister(r,t,o,s,l){if((isFunction(t)||isObject$3(t))&&(o=t,t=s),!(indexOf(registeredTasks,o)>=0)){registeredTasks.push(o);var h=Scheduler$1.wrapStageHandler(o,l);h.__prio=t,h.__raw=o,r.push(h)}}function registerLoading(r,t){loadingEffects[r]=t}function setCanvasCreator(r){setPlatformAPI({createCanvas:r})}function registerMap(r,t,o){var s=getImpl("registerMap");s&&s(r,t,o)}function getMap(r){var t=getImpl("getMap");return t&&t(r)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength(r){return r==null?0:r.length||1}function defaultKeyGetter(r){return r}var DataDiffer=function(){function r(t,o,s,l,h,v){this._old=t,this._new=o,this._oldKeyGetter=s||defaultKeyGetter,this._newKeyGetter=l||defaultKeyGetter,this.context=h,this._diffModeMultiple=v==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,o=this._new,s={},l=new Array(t.length),h=new Array(o.length);this._initIndexMap(t,null,l,"_oldKeyGetter"),this._initIndexMap(o,s,h,"_newKeyGetter");for(var v=0;v<t.length;v++){var x=l[v],T=s[x],w=dataIndexMapValueLength(T);if(w>1){var C=T.shift();T.length===1&&(s[x]=T[0]),this._update&&this._update(C,v)}else w===1?(s[x]=null,this._update&&this._update(T,v)):this._remove&&this._remove(v)}this._performRestAdd(h,s)},r.prototype._executeMultiple=function(){var t=this._old,o=this._new,s={},l={},h=[],v=[];this._initIndexMap(t,s,h,"_oldKeyGetter"),this._initIndexMap(o,l,v,"_newKeyGetter");for(var x=0;x<h.length;x++){var T=h[x],w=s[T],C=l[T],M=dataIndexMapValueLength(w),V=dataIndexMapValueLength(C);if(M>1&&V===1)this._updateManyToOne&&this._updateManyToOne(C,w),l[T]=null;else if(M===1&&V>1)this._updateOneToMany&&this._updateOneToMany(C,w),l[T]=null;else if(M===1&&V===1)this._update&&this._update(C,w),l[T]=null;else if(M>1&&V>1)this._updateManyToMany&&this._updateManyToMany(C,w),l[T]=null;else if(M>1)for(var z=0;z<M;z++)this._remove&&this._remove(w[z]);else this._remove&&this._remove(w)}this._performRestAdd(v,l)},r.prototype._performRestAdd=function(t,o){for(var s=0;s<t.length;s++){var l=t[s],h=o[l],v=dataIndexMapValueLength(h);if(v>1)for(var x=0;x<v;x++)this._add&&this._add(h[x]);else v===1&&this._add&&this._add(h);o[l]=null}},r.prototype._initIndexMap=function(t,o,s,l){for(var h=this._diffModeMultiple,v=0;v<t.length;v++){var x="_ec_"+this[l](t[v],v);if(h||(s[v]=x),!!o){var T=o[x],w=dataIndexMapValueLength(T);w===0?(o[x]=v,h&&s.push(x)):w===1?o[x]=[T,v]:T.push(v)}}},r}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function r(t,o){this._encode=t,this._schema=o}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function summarizeDimensions(r,t){var o={},s=o.encode={},l=createHashMap(),h=[],v=[],x={};each$c(r.dimensions,function(V){var z=r.getDimensionInfo(V),F=z.coordDim;if(F){var B=z.coordDimIndex;getOrCreateEncodeArr(s,F)[B]=V,z.isExtraCoord||(l.set(F,1),mayLabelDimType(z.type)&&(h[0]=V),getOrCreateEncodeArr(x,F)[B]=r.getDimensionIndex(z.name)),z.defaultTooltip&&v.push(V)}VISUAL_DIMENSIONS.each(function(W,Y){var Z=getOrCreateEncodeArr(s,Y),X=z.otherDims[Y];X!=null&&X!==!1&&(Z[X]=z.name)})});var T=[],w={};l.each(function(V,z){var F=s[z];w[z]=F[0],T=T.concat(F)}),o.dataDimsOnCoord=T,o.dataDimIndicesOnCoord=map$2(T,function(V){return r.getDimensionInfo(V).storeDimIndex}),o.encodeFirstDimNotExtra=w;var C=s.label;C&&C.length&&(h=C.slice());var M=s.tooltip;return M&&M.length?v=M.slice():v.length||(v=h.slice()),s.defaultedLabel=h,s.defaultedTooltip=v,o.userOutput=new DimensionUserOuput(x,t),o}function getOrCreateEncodeArr(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function getDimensionTypeByAxis(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function mayLabelDimType(r){return!(r==="ordinal"||r==="time")}var SeriesDimensionDefine=function(){function r(t){this.otherDims={},t!=null&&extend(this,t)}return r}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return retrieve2(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var o=this.source.dimensionsDefine;if(o)return o[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,o=shouldRetrieveDataByName(this.source),s=!shouldOmitUnusedDimensions(t),l="",h=[],v=0,x=0;v<t;v++){var T=void 0,w=void 0,C=void 0,M=this.dimensions[x];if(M&&M.storeDimIndex===v)T=o?M.name:null,w=M.type,C=M.ordinalMeta,x++;else{var V=this.getSourceDimension(v);V&&(T=o?V.name:null,w=V.type)}h.push({property:T,type:w,ordinalMeta:C}),o&&T!=null&&(!M||!M.isCalculationCoord)&&(l+=s?T.replace(/\`/g,"`1").replace(/\$/g,"`2"):T),l+="$",l+=dimTypeShort[w]||"f",C&&(l+=C.uid),l+="$"}var z=this.source,F=[z.seriesLayoutBy,z.startIndex,l].join("$$");return{dimensions:h,hash:F}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],o=0,s=0;o<this._fullDimCount;o++){var l=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)h.isCalculationCoord||(l=h.name),s++;else{var v=this.getSourceDimension(o);v&&(l=v.name)}t.push(l)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function isSeriesDataSchema(r){return r instanceof SeriesDataSchema}function createDimNameMap(r){for(var t=createHashMap(),o=0;o<(r||[]).length;o++){var s=r[o],l=isObject$3(s)?s.name:s;l!=null&&t.get(l)==null&&t.set(l,o)}return t}function ensureSourceDimNameMap(r){var t=inner$8(r);return t.dimNameMap||(t.dimNameMap=createDimNameMap(r.dimensionsDefine))}function shouldOmitUnusedDimensions(r){return r>30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function r(t,o){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,l=!1;isSeriesDataSchema(t)?(s=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(l=!0,s=t),s=s||["x","y"];for(var h={},v=[],x={},T=!1,w={},C=0;C<s.length;C++){var M=s[C],V=isString(M)?new SeriesDimensionDefine$1({name:M}):M instanceof SeriesDimensionDefine$1?M:new SeriesDimensionDefine$1(M),z=V.name;V.type=V.type||"float",V.coordDim||(V.coordDim=z,V.coordDimIndex=0);var F=V.otherDims=V.otherDims||{};v.push(z),h[z]=V,w[z]!=null&&(T=!0),V.createInvertedIndices&&(x[z]=[]),F.itemName===0&&(this._nameDimIdx=C),F.itemId===0&&(this._idDimIdx=C),l&&(V.storeDimIndex=C)}if(this.dimensions=v,this._dimInfos=h,this._initGetDimensionInfo(T),this.hostModel=o,this._invertedIndicesMap=x,this._dimOmitted){var B=this._dimIdxToName=createHashMap();each$c(v,function(W){B.set(h[W].storeDimIndex,W)})}}return r.prototype.getDimension=function(t){var o=this._recognizeDimIndex(t);if(o==null)return t;if(o=t,!this._dimOmitted)return this.dimensions[o];var s=this._dimIdxToName.get(o);if(s!=null)return s;var l=this._schema.getSourceDimension(o);if(l)return l.name},r.prototype.getDimensionIndex=function(t){var o=this._recognizeDimIndex(t);if(o!=null)return o;if(t==null)return-1;var s=this._getDimInfo(t);return s?s.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(isNumber(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var o=this.getDimensionIndex(t);return o},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var o=this._dimInfos;this._getDimInfo=t?function(s){return o.hasOwnProperty(s)?o[s]:void 0}:function(s){return o[s]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,o){var s=this._dimSummary;if(o==null)return s.encodeFirstDimNotExtra[t];var l=s.encode[t];return l?l[o]:null},r.prototype.mapDimensionsAll=function(t){var o=this._dimSummary,s=o.encode[t];return(s||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,o,s){var l=this,h;if(t instanceof DataStore$1&&(h=t),!h){var v=this.dimensions,x=isSourceInstance(t)||isArrayLike(t)?new DefaultDataProvider(t,v.length):t;h=new DataStore$1;var T=map$1(v,function(w){return{type:l._dimInfos[w].type,property:w}});h.initData(x,T,s)}this._store=h,this._nameList=(o||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,h.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var o=this._store.appendData(t);this._doInit(o[0],o[1])},r.prototype.appendValues=function(t,o){var s=this._store.appendValues(t,o.length),l=s.start,h=s.end,v=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),o)for(var x=l;x<h;x++){var T=x-l;this._nameList[x]=o[T],v&&makeIdFromName(this,x)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,o=this.dimensions,s=0;s<o.length;s++){var l=this._dimInfos[o[s]];l.ordinalMeta&&t.collectOrdinalMeta(l.storeDimIndex,l.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},r.prototype._doInit=function(t,o){if(!(t>=o)){var s=this._store,l=s.getProvider();this._updateOrdinalMeta();var h=this._nameList,v=this._idList,x=l.getSource().sourceFormat,T=x===SOURCE_FORMAT_ORIGINAL;if(T&&!l.pure)for(var w=[],C=t;C<o;C++){var M=l.getItem(C,w);if(!this.hasItemOption&&isDataItemOption(M)&&(this.hasItemOption=!0),M){var V=M.name;h[C]==null&&V!=null&&(h[C]=convertOptionIdName(V,null));var z=M.id;v[C]==null&&z!=null&&(v[C]=convertOptionIdName(z,null))}}if(this._shouldMakeIdFromName())for(var C=t;C<o;C++)makeIdFromName(this,C);prepareInvertedIndex(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,o){o=this.getDimension(o),this._approximateExtent[o]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,o){isObject$1(t)?extend(this._calculationInfo,t):this._calculationInfo[t]=o},r.prototype.getName=function(t){var o=this.getRawIndex(t),s=this._nameList[o];return s==null&&this._nameDimIdx!=null&&(s=getIdNameFromStore(this,this._nameDimIdx,o)),s==null&&(s=""),s},r.prototype._getCategory=function(t,o){var s=this._store.get(t,o),l=this._store.getOrdinalMeta(t);return l?l.categories[s]:s},r.prototype.getId=function(t){return getId(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,o){var s=this._store,l=this._dimInfos[t];if(l)return s.get(l.storeDimIndex,o)},r.prototype.getByRawIndex=function(t,o){var s=this._store,l=this._dimInfos[t];if(l)return s.getByRawIndex(l.storeDimIndex,o)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,o){var s=this,l=this._store;return isArray$1(t)?l.getValues(map$1(t,function(h){return s._getStoreDimIndex(h)}),o):l.getValues(t)},r.prototype.hasValue=function(t){for(var o=this._dimSummary.dataDimIndicesOnCoord,s=0,l=o.length;s<l;s++)if(isNaN(this._store.get(o[s],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var o=0,s=this._store.count();o<s;o++)if(this.getName(o)===t)return o;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,o){var s=t&&this._invertedIndicesMap[t],l=s[o];return l==null||isNaN(l)?INDEX_NOT_FOUND:l},r.prototype.indicesOfNearest=function(t,o,s){return this._store.indicesOfNearest(this._getStoreDimIndex(t),o,s)},r.prototype.each=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]);var l=s||this,h=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.each(h,l?bind$1(o,l):o)},r.prototype.filterSelf=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]);var l=s||this,h=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);return this._store=this._store.filter(h,l?bind$1(o,l):o),this},r.prototype.selectRange=function(t){var o=this,s={},l=keys(t);return each$c(l,function(h){var v=o._getStoreDimIndex(h);s[v]=t[h]}),this._store=this._store.selectRange(s),this},r.prototype.mapArray=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]),s=s||this;var l=[];return this.each(t,function(){l.push(o&&o.apply(this,arguments))},s),l},r.prototype.map=function(t,o,s,l){var h=s||l||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this),x=cloneListForMapAndSample(this);return x._store=this._store.map(v,h?bind$1(o,h):o),x},r.prototype.modify=function(t,o,s,l){var h=s||l||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.modify(v,h?bind$1(o,h):o)},r.prototype.downSample=function(t,o,s,l){var h=cloneListForMapAndSample(this);return h._store=this._store.downSample(this._getStoreDimIndex(t),o,s,l),h},r.prototype.lttbDownSample=function(t,o){var s=cloneListForMapAndSample(this);return s._store=this._store.lttbDownSample(this._getStoreDimIndex(t),o),s},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var o=this.hostModel,s=this.getRawDataItem(t);return new Model$1(s,o,o&&o.ecModel)},r.prototype.diff=function(t){var o=this;return new DataDiffer$1(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(s){return getId(t,s)},function(s){return getId(o,s)})},r.prototype.getVisual=function(t){var o=this._visual;return o&&o[t]},r.prototype.setVisual=function(t,o){this._visual=this._visual||{},isObject$1(t)?extend(this._visual,t):this._visual[t]=o},r.prototype.getItemVisual=function(t,o){var s=this._itemVisuals[t],l=s&&s[o];return l??this.getVisual(o)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,o){var s=this._itemVisuals,l=s[t];l||(l=s[t]={});var h=l[o];return h==null&&(h=this.getVisual(o),isArray$1(h)?h=h.slice():isObject$1(h)&&(h=extend({},h)),l[o]=h),h},r.prototype.setItemVisual=function(t,o,s){var l=this._itemVisuals[t]||{};this._itemVisuals[t]=l,isObject$1(o)?extend(l,o):l[o]=s},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,o){isObject$1(t)?extend(this._layout,t):this._layout[t]=o},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,o,s){this._itemLayouts[t]=s?extend(this._itemLayouts[t]||{},o):o},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,o){var s=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(s,this.dataType,t,o),this._graphicEls[t]=o},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,o){each$c(this._graphicEls,function(s,l){s&&t&&t.call(o,s,l)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,o){var s=this[t];isFunction(s)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var l=s.apply(this,arguments);return o.apply(this,[l].concat(slice(arguments)))})},r.internalField=function(){prepareInvertedIndex=function(t){var o=t._invertedIndicesMap;each$c(o,function(s,l){var h=t._dimInfos[l],v=h.ordinalMeta,x=t._store;if(v){s=o[l]=new CtorInt32Array(v.categories.length);for(var T=0;T<s.length;T++)s[T]=INDEX_NOT_FOUND;for(var T=0;T<x.count();T++)s[x.get(h.storeDimIndex,T)]=T}})},getIdNameFromStore=function(t,o,s){return convertOptionIdName(t._getCategory(o,s),null)},getId=function(t,o){var s=t._idList[o];return s==null&&t._idDimIdx!=null&&(s=getIdNameFromStore(t,t._idDimIdx,o)),s==null&&(s=ID_PREFIX+o),s},normalizeDimensions=function(t){return isArray$1(t)||(t=t!=null?[t]:[]),t},cloneListForMapAndSample=function(t){var o=new r(t._schema?t._schema:map$1(t.dimensions,t._getDimInfo,t),t.hostModel);return transferProperties(o,t),o},transferProperties=function(t,o){each$c(TRANSFERABLE_PROPERTIES.concat(o.__wrappedMethods||[]),function(s){o.hasOwnProperty(s)&&(t[s]=o[s])}),t.__wrappedMethods=o.__wrappedMethods,each$c(CLONE_PROPERTIES,function(s){t[s]=clone$3(o[s])}),t._calculationInfo=extend({},o._calculationInfo)},makeIdFromName=function(t,o){var s=t._nameList,l=t._idList,h=t._nameDimIdx,v=t._idDimIdx,x=s[o],T=l[o];if(x==null&&h!=null&&(s[o]=x=getIdNameFromStore(t,h,o)),T==null&&v!=null&&(l[o]=T=getIdNameFromStore(t,v,o)),T==null&&x!=null){var w=t._nameRepeatCount,C=w[x]=(w[x]||0)+1;T=x,C>1&&(T+="__ec__"+C),l[o]=T}}}(),r}();const SeriesData$1=SeriesData;function createDimensions(r,t){return prepareSeriesDataSchema(r,t).dimensions}function prepareSeriesDataSchema(r,t){isSourceInstance(r)||(r=createSourceFromSeriesDataOption(r)),t=t||{};var o=t.coordDimensions||[],s=t.dimensionsDefine||r.dimensionsDefine||[],l=createHashMap(),h=[],v=getDimCount(r,o,s,t.dimensionsCount),x=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(v),T=s===r.dimensionsDefine,w=T?ensureSourceDimNameMap(r):createDimNameMap(s),C=t.encodeDefine;!C&&t.encodeDefaulter&&(C=t.encodeDefaulter(r,v));for(var M=createHashMap(C),V=new CtorInt32Array$1(v),z=0;z<V.length;z++)V[z]=-1;function F(me){var _e=V[me];if(_e<0){var ye=s[me],Se=isObject$3(ye)?ye:{name:ye},Te=new SeriesDimensionDefine$1,we=Se.name;we!=null&&w.get(we)!=null&&(Te.name=Te.displayName=we),Se.type!=null&&(Te.type=Se.type),Se.displayName!=null&&(Te.displayName=Se.displayName);var Ee=h.length;return V[me]=Ee,Te.storeDimIndex=me,h.push(Te),Te}return h[_e]}if(!x)for(var z=0;z<v;z++)F(z);M.each(function(me,_e){var ye=normalizeToArray(me).slice();if(ye.length===1&&!isString(ye[0])&&ye[0]<0){M.set(_e,!1);return}var Se=M.set(_e,[]);each$c(ye,function(Te,we){var Ee=isString(Te)?w.get(Te):Te;Ee!=null&&Ee<v&&(Se[we]=Ee,W(F(Ee),_e,we))})});var B=0;each$c(o,function(me){var _e,ye,Se,Te;if(isString(me))_e=me,Te={};else{Te=me,_e=Te.name;var we=Te.ordinalMeta;Te.ordinalMeta=null,Te=extend({},Te),Te.ordinalMeta=we,ye=Te.dimsDef,Se=Te.otherDims,Te.name=Te.coordDim=Te.coordDimIndex=Te.dimsDef=Te.otherDims=null}var Ee=M.get(_e);if(Ee!==!1){if(Ee=normalizeToArray(Ee),!Ee.length)for(var Ce=0;Ce<(ye&&ye.length||1);Ce++){for(;B<v&&F(B).coordDim!=null;)B++;B<v&&Ee.push(B++)}each$c(Ee,function(ke,Me){var Ie=F(ke);if(T&&Te.type!=null&&(Ie.type=Te.type),W(defaults(Ie,Te),_e,Me),Ie.name==null&&ye){var $e=ye[Me];!isObject$3($e)&&($e={name:$e}),Ie.name=Ie.displayName=$e.name,Ie.defaultTooltip=$e.defaultTooltip}Se&&defaults(Ie.otherDims,Se)})}});function W(me,_e,ye){VISUAL_DIMENSIONS.get(_e)!=null?me.otherDims[_e]=ye:(me.coordDim=_e,me.coordDimIndex=ye,l.set(_e,!0))}var Y=t.generateCoord,Z=t.generateCoordCount,X=Z!=null;Z=Y?Z||1:0;var te=Y||"value";function oe(me){me.name==null&&(me.name=me.coordDim)}if(x)each$c(h,function(me){oe(me)}),h.sort(function(me,_e){return me.storeDimIndex-_e.storeDimIndex});else for(var ae=0;ae<v;ae++){var le=F(ae),he=le.coordDim;he==null&&(le.coordDim=genCoordDimName(te,l,X),le.coordDimIndex=0,(!Y||Z<=0)&&(le.isExtraCoord=!0),Z--),oe(le),le.type==null&&(guessOrdinal(r,ae)===BE_ORDINAL.Must||le.isExtraCoord&&(le.otherDims.itemName!=null||le.otherDims.seriesName!=null))&&(le.type="ordinal")}return removeDuplication(h),new SeriesDataSchema({source:r,dimensions:h,fullDimensionCount:v,dimensionOmitted:x})}function removeDuplication(r){for(var t=createHashMap(),o=0;o<r.length;o++){var s=r[o],l=s.name,h=t.get(l)||0;h>0&&(s.name=l+(h-1)),h++,t.set(l,h)}}function getDimCount(r,t,o,s){var l=Math.max(r.dimensionsDetectedCount||1,t.length,o.length,s||0);return each$c(t,function(h){var v;isObject$3(h)&&(v=h.dimsDef)&&(l=Math.max(l,v.length))}),l}function genCoordDimName(r,t,o){if(o||t.hasKey(r)){for(var s=0;t.hasKey(r+s);)s++;r+=s}return t.set(r,!0),r}var CoordSysInfo=function(){function r(t){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=t}return r}();function getCoordSysInfoBySeries(r){var t=r.get("coordinateSystem"),o=new CoordSysInfo(t),s=fetchers[t];if(s)return s(r,o,o.axisMap,o.categoryAxisMap),o}var fetchers={cartesian2d:function(r,t,o,s){var l=r.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],h=r.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["x","y"],o.set("x",l),o.set("y",h),isCategory(l)&&(s.set("x",l),t.firstCategoryDimIndex=0),isCategory(h)&&(s.set("y",h),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,o,s){var l=r.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["single"],o.set("single",l),isCategory(l)&&(s.set("single",l),t.firstCategoryDimIndex=0)},polar:function(r,t,o,s){var l=r.getReferringComponents("polar",SINGLE_REFERRING).models[0],h=l.findAxisModel("radiusAxis"),v=l.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],o.set("radius",h),o.set("angle",v),isCategory(h)&&(s.set("radius",h),t.firstCategoryDimIndex=0),isCategory(v)&&(s.set("angle",v),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,o,s){t.coordSysDims=["lng","lat"]},parallel:function(r,t,o,s){var l=r.ecModel,h=l.getComponent("parallel",r.get("parallelIndex")),v=t.coordSysDims=h.dimensions.slice();each$c(h.parallelAxisIndex,function(x,T){var w=l.getComponent("parallelAxis",x),C=v[T];o.set(C,w),isCategory(w)&&(s.set(C,w),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=T))})}};function isCategory(r){return r.get("type")==="category"}function enableDataStack(r,t,o){o=o||{};var s=o.byIndex,l=o.stackedCoordDimension,h,v,x;isLegacyDimensionsInput(t)?h=t:(v=t.schema,h=v.dimensions,x=t.store);var T=!!(r&&r.get("stack")),w,C,M,V;if(each$c(h,function(Z,X){isString(Z)&&(h[X]=Z={name:Z}),T&&!Z.isExtraCoord&&(!s&&!w&&Z.ordinalMeta&&(w=Z),!C&&Z.type!=="ordinal"&&Z.type!=="time"&&(!l||l===Z.coordDim)&&(C=Z))}),C&&!s&&!w&&(s=!0),C){M="__\0ecstackresult_"+r.id,V="__\0ecstackedover_"+r.id,w&&(w.createInvertedIndices=!0);var z=C.coordDim,F=C.type,B=0;each$c(h,function(Z){Z.coordDim===z&&B++});var W={name:M,coordDim:z,coordDimIndex:B,type:F,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:h.length},Y={name:V,coordDim:V,coordDimIndex:B+1,type:F,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:h.length+1};v?(x&&(W.storeDimIndex=x.ensureCalculationDimension(V,F),Y.storeDimIndex=x.ensureCalculationDimension(M,F)),v.appendCalculationDimension(W),v.appendCalculationDimension(Y)):(h.push(W),h.push(Y))}return{stackedDimension:C&&C.name,stackedByDimension:w&&w.name,isStackedByIndex:s,stackedOverDimension:V,stackResultDimension:M}}function isLegacyDimensionsInput(r){return!isSeriesDataSchema(r.schema)}function isDimensionStacked(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function getStackedDimension(r,t){return isDimensionStacked(r,t)?r.getCalculationInfo("stackResultDimension"):t}function getCoordSysDimDefs(r,t){var o=r.get("coordinateSystem"),s=CoordinateSystem.get(o),l;return t&&t.coordSysDims&&(l=map$2(t.coordSysDims,function(h){var v={name:h},x=t.axisMap.get(h);if(x){var T=x.get("type");v.type=getDimensionTypeByAxis(T)}return v})),l||(l=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),l}function injectOrdinalMeta(r,t,o){var s,l;return o&&each$c(r,function(h,v){var x=h.coordDim,T=o.categoryAxisMap.get(x);T&&(s==null&&(s=v),h.ordinalMeta=T.getOrdinalMeta(),t&&(h.createInvertedIndices=!0)),h.otherDims.itemName!=null&&(l=!0)}),!l&&s!=null&&(r[s].otherDims.itemName=0),s}function createSeriesData(r,t,o){o=o||{};var s=t.getSourceManager(),l,h=!1;r?(h=!0,l=createSourceFromSeriesDataOption(r)):(l=s.getSource(),h=l.sourceFormat===SOURCE_FORMAT_ORIGINAL);var v=getCoordSysInfoBySeries(t),x=getCoordSysDimDefs(t,v),T=o.useEncodeDefaulter,w=isFunction(T)?T:T?curry$1(makeSeriesEncodeForAxisCoordSys,x,t):null,C={coordDimensions:x,generateCoord:o.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:w,canOmitUnusedDimensions:!h},M=prepareSeriesDataSchema(l,C),V=injectOrdinalMeta(M.dimensions,o.createInvertedIndices,v),z=h?null:s.getSharedDataStore(M),F=enableDataStack(t,{schema:M,store:z}),B=new SeriesData$1(M,t);B.setCalculationInfo(F);var W=V!=null&&isNeedCompleteOrdinalData(l)?function(Y,Z,X,te){return te===V?X:this.defaultDimValueGetter(Y,Z,X,te)}:null;return B.hasItemOption=!1,B.initData(h?l:z,null,W),B}function isNeedCompleteOrdinalData(r){if(r.sourceFormat===SOURCE_FORMAT_ORIGINAL){var t=firstDataNotNull(r.data||[]);return!isArray$1(getDataItemValue(t))}}function firstDataNotNull(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Scale=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var o=this._extent;t[0]<o[0]&&(o[0]=t[0]),t[1]>o[1]&&(o[1]=t[1])},r.prototype.unionExtentFromData=function(t,o){this.unionExtent(t.getApproximateExtent(o))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,o){var s=this._extent;isNaN(t)||(s[0]=t),isNaN(o)||(s[1]=o)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++uidBase}return r.createByAxisModel=function(t){var o=t.option,s=o.data,l=s&&map$2(s,getName);return new r({categories:l,needCollect:!l,deduplication:o.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var o,s=this._needCollect;if(!isString(t)&&!s)return t;if(s&&!this._deduplication)return o=this.categories.length,this.categories[o]=t,o;var l=this._getOrCreateMap();return o=l.get(t),o==null&&(s?(o=this.categories.length,this.categories[o]=t,l.set(t,o)):o=NaN),o},r.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},r}();function getName(r){return isObject$3(r)&&r.value!=null?r.value:r+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(r){return r.type==="interval"||r.type==="log"}function intervalScaleNiceTicks(r,t,o,s){var l={},h=r[1]-r[0],v=l.interval=nice(h/t,!0);o!=null&&v<o&&(v=l.interval=o),s!=null&&v>s&&(v=l.interval=s);var x=l.intervalPrecision=getIntervalPrecision(v),T=l.niceTickExtent=[round$1(Math.ceil(r[0]/v)*v,x),round$1(Math.floor(r[1]/v)*v,x)];return fixExtent(T,r),l}function increaseInterval(r){var t=Math.pow(10,quantityExponent(r)),o=r/t;return o?o===2?o=3:o===3?o=5:o*=2:o=1,round$1(o*t)}function getIntervalPrecision(r){return getPrecision(r)+2}function clamp(r,t,o){r[t]=Math.max(Math.min(r[t],o[1]),o[0])}function fixExtent(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),clamp(r,0,t),clamp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function contain$1(r,t){return r>=t[0]&&r<=t[1]}function normalize(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function scale(r,t){return r*(t[1]-t[0])+t[0]}var OrdinalScale=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;s.type="ordinal";var l=s.getSetting("ordinalMeta");return l||(l=new OrdinalMeta$1({})),isArray$1(l)&&(l=new OrdinalMeta$1({categories:map$2(l,function(h){return isObject$3(h)?h.value:h})})),s._ordinalMeta=l,s._extent=s.getSetting("extent")||[0,l.categories.length-1],s}return t.prototype.parse=function(o){return o==null?NaN:isString(o)?this._ordinalMeta.getOrdinal(o):Math.round(o)},t.prototype.contain=function(o){return o=this.parse(o),contain$1(o,this._extent)&&this._ordinalMeta.categories[o]!=null},t.prototype.normalize=function(o){return o=this._getTickNumber(this.parse(o)),normalize(o,this._extent)},t.prototype.scale=function(o){return o=Math.round(scale(o,this._extent)),this.getRawOrdinalNumber(o)},t.prototype.getTicks=function(){for(var o=[],s=this._extent,l=s[0];l<=s[1];)o.push({value:l}),l++;return o},t.prototype.getMinorTicks=function(o){},t.prototype.setSortInfo=function(o){if(o==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var s=o.ordinalNumbers,l=this._ordinalNumbersByTick=[],h=this._ticksByOrdinalNumber=[],v=0,x=this._ordinalMeta.categories.length,T=Math.min(x,s.length);v<T;++v){var w=s[v];l[v]=w,h[w]=v}for(var C=0;v<x;++v){for(;h[C]!=null;)C++;l.push(C),h[C]=v}},t.prototype._getTickNumber=function(o){var s=this._ticksByOrdinalNumber;return s&&o>=0&&o<s.length?s[o]:o},t.prototype.getRawOrdinalNumber=function(o){var s=this._ordinalNumbersByTick;return s&&o>=0&&o<s.length?s[o]:o},t.prototype.getLabel=function(o){if(!this.isBlank()){var s=this.getRawOrdinalNumber(o.value),l=this._ordinalMeta.categories[s];return l==null?"":l+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(o,s){this.unionExtent(o.getApproximateExtent(s))},t.prototype.isInExtentRange=function(o){return o=this._getTickNumber(o),this._extent[0]<=o&&this._extent[1]>=o},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="interval",o._interval=0,o._intervalPrecision=2,o}return t.prototype.parse=function(o){return o},t.prototype.contain=function(o){return contain$1(o,this._extent)},t.prototype.normalize=function(o){return normalize(o,this._extent)},t.prototype.scale=function(o){return scale(o,this._extent)},t.prototype.setExtent=function(o,s){var l=this._extent;isNaN(o)||(l[0]=parseFloat(o)),isNaN(s)||(l[1]=parseFloat(s))},t.prototype.unionExtent=function(o){var s=this._extent;o[0]<s[0]&&(s[0]=o[0]),o[1]>s[1]&&(s[1]=o[1]),this.setExtent(s[0],s[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(o){this._interval=o,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(o)},t.prototype.getTicks=function(o){var s=this._interval,l=this._extent,h=this._niceExtent,v=this._intervalPrecision,x=[];if(!s)return x;var T=1e4;l[0]<h[0]&&(o?x.push({value:roundNumber(h[0]-s,v)}):x.push({value:l[0]}));for(var w=h[0];w<=h[1]&&(x.push({value:w}),w=roundNumber(w+s,v),w!==x[x.length-1].value);)if(x.length>T)return[];var C=x.length?x[x.length-1].value:h[1];return l[1]>C&&(o?x.push({value:roundNumber(C+s,v)}):x.push({value:l[1]})),x},t.prototype.getMinorTicks=function(o){for(var s=this.getTicks(!0),l=[],h=this.getExtent(),v=1;v<s.length;v++){for(var x=s[v],T=s[v-1],w=0,C=[],M=x.value-T.value,V=M/o;w<o-1;){var z=roundNumber(T.value+(w+1)*V);z>h[0]&&z<h[1]&&C.push(z),w++}l.push(C)}return l},t.prototype.getLabel=function(o,s){if(o==null)return"";var l=s&&s.precision;l==null?l=getPrecision(o.value)||0:l==="auto"&&(l=this._intervalPrecision);var h=roundNumber(o.value,l,!0);return addCommas(h)},t.prototype.calcNiceTicks=function(o,s,l){o=o||5;var h=this._extent,v=h[1]-h[0];if(isFinite(v)){v<0&&(v=-v,h.reverse());var x=intervalScaleNiceTicks(h,o,s,l);this._intervalPrecision=x.intervalPrecision,this._interval=x.interval,this._niceExtent=x.niceTickExtent}},t.prototype.calcNiceExtent=function(o){var s=this._extent;if(s[0]===s[1])if(s[0]!==0){var l=Math.abs(s[0]);o.fixMax||(s[1]+=l/2),s[0]-=l/2}else s[1]=1;var h=s[1]-s[0];isFinite(h)||(s[0]=0,s[1]=1),this.calcNiceTicks(o.splitNumber,o.minInterval,o.maxInterval);var v=this._interval;o.fixMin||(s[0]=roundNumber(Math.floor(s[0]/v)*v)),o.fixMax||(s[1]=roundNumber(Math.ceil(s[1]/v)*v))},t.prototype.setNiceExtent=function(o,s){this._niceExtent=[o,s]},t.type="interval",t}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array(r){return isArray$1(r)?supportFloat32Array?new Float32Array(r):r:new Float32ArrayCtor(r)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId(r){return r.get("stack")||STACK_PREFIX+r.seriesIndex}function getAxisKey(r){return r.dim+r.index}function prepareLayoutBarSeries(r,t){var o=[];return t.eachSeriesByType(r,function(s){isOnCartesian(s)&&o.push(s)}),o}function getValueAxesMinGaps(r){var t={};each$c(r,function(T){var w=T.coordinateSystem,C=w.getBaseAxis();if(!(C.type!=="time"&&C.type!=="value"))for(var M=T.getData(),V=C.dim+"_"+C.index,z=M.getDimensionIndex(M.mapDimension(C.dim)),F=M.getStore(),B=0,W=F.count();B<W;++B){var Y=F.get(z,B);t[V]?t[V].push(Y):t[V]=[Y]}});var o={};for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l){l.sort(function(T,w){return T-w});for(var h=null,v=1;v<l.length;++v){var x=l[v]-l[v-1];x>0&&(h=h===null?x:Math.min(h,x))}o[s]=h}}return o}function makeColumnLayout(r){var t=getValueAxesMinGaps(r),o=[];return each$c(r,function(s){var l=s.coordinateSystem,h=l.getBaseAxis(),v=h.getExtent(),x;if(h.type==="category")x=h.getBandWidth();else if(h.type==="value"||h.type==="time"){var T=h.dim+"_"+h.index,w=t[T],C=Math.abs(v[1]-v[0]),M=h.scale.getExtent(),V=Math.abs(M[1]-M[0]);x=w?C/V*w:C}else{var z=s.getData();x=Math.abs(v[1]-v[0])/z.count()}var F=parsePercent(s.get("barWidth"),x),B=parsePercent(s.get("barMaxWidth"),x),W=parsePercent(s.get("barMinWidth")||(isInLargeMode(s)?.5:1),x),Y=s.get("barGap"),Z=s.get("barCategoryGap");o.push({bandWidth:x,barWidth:F,barMaxWidth:B,barMinWidth:W,barGap:Y,barCategoryGap:Z,axisKey:getAxisKey(h),stackId:getSeriesStackId(s)})}),doCalBarWidthAndOffset(o)}function doCalBarWidthAndOffset(r){var t={};each$c(r,function(s,l){var h=s.axisKey,v=s.bandWidth,x=t[h]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},T=x.stacks;t[h]=x;var w=s.stackId;T[w]||x.autoWidthCount++,T[w]=T[w]||{width:0,maxWidth:0};var C=s.barWidth;C&&!T[w].width&&(T[w].width=C,C=Math.min(x.remainedWidth,C),x.remainedWidth-=C);var M=s.barMaxWidth;M&&(T[w].maxWidth=M);var V=s.barMinWidth;V&&(T[w].minWidth=V);var z=s.barGap;z!=null&&(x.gap=z);var F=s.barCategoryGap;F!=null&&(x.categoryGap=F)});var o={};return each$c(t,function(s,l){o[l]={};var h=s.stacks,v=s.bandWidth,x=s.categoryGap;if(x==null){var T=keys(h).length;x=Math.max(35-T*4,15)+"%"}var w=parsePercent(x,v),C=parsePercent(s.gap,1),M=s.remainedWidth,V=s.autoWidthCount,z=(M-w)/(V+(V-1)*C);z=Math.max(z,0),each$c(h,function(Y){var Z=Y.maxWidth,X=Y.minWidth;if(Y.width){var te=Y.width;Z&&(te=Math.min(te,Z)),X&&(te=Math.max(te,X)),Y.width=te,M-=te+C*te,V--}else{var te=z;Z&&Z<te&&(te=Math.min(Z,M)),X&&X>te&&(te=X),te!==z&&(Y.width=te,M-=te+C*te,V--)}}),z=(M-w)/(V+(V-1)*C),z=Math.max(z,0);var F=0,B;each$c(h,function(Y,Z){Y.width||(Y.width=z),B=Y,F+=Y.width*(1+C)}),B&&(F-=B.width*C);var W=-F/2;each$c(h,function(Y,Z){o[l][Z]=o[l][Z]||{bandWidth:v,offset:W,width:Y.width},W+=Y.width*(1+C)})}),o}function retrieveColumnLayout(r,t,o){if(r&&t){var s=r[getAxisKey(t)];return s!=null&&o!=null?s[getSeriesStackId(o)]:s}}function layout$2(r,t){var o=prepareLayoutBarSeries(r,t),s=makeColumnLayout(o);each$c(o,function(l){var h=l.getData(),v=l.coordinateSystem,x=v.getBaseAxis(),T=getSeriesStackId(l),w=s[getAxisKey(x)][T],C=w.offset,M=w.width;h.setLayout({bandWidth:w.bandWidth,offset:C,size:M})})}function createProgressiveLayout(r){return{seriesType:r,plan:createRenderPlanner(),reset:function(t){if(isOnCartesian(t)){var o=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),h=s.getOtherAxis(l),v=o.getDimensionIndex(o.mapDimension(h.dim)),x=o.getDimensionIndex(o.mapDimension(l.dim)),T=t.get("showBackground",!0),w=o.mapDimension(h.dim),C=o.getCalculationInfo("stackResultDimension"),M=isDimensionStacked(o,w)&&!!o.getCalculationInfo("stackedOnSeries"),V=h.isHorizontal(),z=getValueAxisStart(l,h),F=isInLargeMode(t),B=t.get("barMinHeight")||0,W=C&&o.getDimensionIndex(C),Y=o.getLayout("size"),Z=o.getLayout("offset");return{progress:function(X,te){for(var oe=X.count,ae=F&&createFloat32Array(oe*3),le=F&&T&&createFloat32Array(oe*3),he=F&&createFloat32Array(oe),me=s.master.getRect(),_e=V?me.width:me.height,ye,Se=te.getStore(),Te=0;(ye=X.next())!=null;){var we=Se.get(M?W:v,ye),Ee=Se.get(x,ye),Ce=z,ke=void 0;M&&(ke=+we-Se.get(v,ye));var Me=void 0,Ie=void 0,$e=void 0,Ge=void 0;if(V){var He=s.dataToPoint([we,Ee]);if(M){var We=s.dataToPoint([ke,Ee]);Ce=We[0]}Me=Ce,Ie=He[1]+Z,$e=He[0]-Ce,Ge=Y,Math.abs($e)<B&&($e=($e<0?-1:1)*B)}else{var He=s.dataToPoint([Ee,we]);if(M){var We=s.dataToPoint([Ee,ke]);Ce=We[1]}Me=He[0]+Z,Ie=Ce,$e=Y,Ge=He[1]-Ce,Math.abs(Ge)<B&&(Ge=(Ge<=0?-1:1)*B)}F?(ae[Te]=Me,ae[Te+1]=Ie,ae[Te+2]=V?$e:Ge,le&&(le[Te]=V?me.x:Me,le[Te+1]=V?Ie:me.y,le[Te+2]=_e),he[ye]=ye):te.setItemLayout(ye,{x:Me,y:Ie,width:$e,height:Ge}),Te+=3}F&&te.setLayout({largePoints:ae,largeDataIndices:he,largeBackgroundPoints:le,valueAxisHorizontal:V})}}}}}}function isOnCartesian(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function isInLargeMode(r){return r.pipelineContext&&r.pipelineContext.large}function getValueAxisStart(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bisect=function(r,t,o,s){for(;o<s;){var l=o+s>>>1;r[l][1]<t?o=l+1:s=l}return o},TimeScale=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="time",s}return t.prototype.getLabel=function(o){var s=this.getSetting("useUTC");return format$1(o.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,s,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(o,s,l){var h=this.getSetting("useUTC"),v=this.getSetting("locale");return leveledFormat(o,s,l,v,h)},t.prototype.getTicks=function(){var o=this._interval,s=this._extent,l=[];if(!o)return l;l.push({value:s[0],level:0});var h=this.getSetting("useUTC"),v=getIntervalTicks(this._minLevelUnit,this._approxInterval,h,s);return l=l.concat(v),l.push({value:s[1],level:0}),l},t.prototype.calcNiceExtent=function(o){var s=this._extent;if(s[0]===s[1]&&(s[0]-=ONE_DAY,s[1]+=ONE_DAY),s[1]===-1/0&&s[0]===1/0){var l=new Date;s[1]=+new Date(l.getFullYear(),l.getMonth(),l.getDate()),s[0]=s[1]-ONE_DAY}this.calcNiceTicks(o.splitNumber,o.minInterval,o.maxInterval)},t.prototype.calcNiceTicks=function(o,s,l){o=o||10;var h=this._extent,v=h[1]-h[0];this._approxInterval=v/o,s!=null&&this._approxInterval<s&&(this._approxInterval=s),l!=null&&this._approxInterval>l&&(this._approxInterval=l);var x=scaleIntervals.length,T=Math.min(bisect(scaleIntervals,this._approxInterval,0,x),x-1);this._interval=scaleIntervals[T][1],this._minLevelUnit=scaleIntervals[Math.max(T-1,0)][0]},t.prototype.parse=function(o){return isNumber(o)?o:+parseDate(o)},t.prototype.contain=function(o){return contain$1(this.parse(o),this._extent)},t.prototype.normalize=function(o){return normalize(this.parse(o),this._extent)},t.prototype.scale=function(o){return scale(o,this._extent)},t.type="time",t}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(r,t,o,s){var l=parseDate(t),h=parseDate(o),v=function(F){return getUnitValue(l,F,s)===getUnitValue(h,F,s)},x=function(){return v("year")},T=function(){return x()&&v("month")},w=function(){return T()&&v("day")},C=function(){return w()&&v("hour")},M=function(){return C()&&v("minute")},V=function(){return M()&&v("second")},z=function(){return V()&&v("millisecond")};switch(r){case"year":return x();case"month":return T();case"day":return w();case"hour":return C();case"minute":return M();case"second":return V();case"millisecond":return z()}}function getDateInterval(r,t){return r/=ONE_DAY,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function getMonthInterval(r){var t=30*ONE_DAY;return r/=t,r>6?6:r>3?3:r>2?2:1}function getHourInterval(r){return r/=ONE_HOUR,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function getMinutesAndSecondsInterval(r,t){return r/=t?ONE_MINUTE:ONE_SECOND,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function getMillisecondsInterval(r){return nice(r,!0)}function getFirstTimestampOfUnit(r,t,o){var s=new Date(r);switch(getPrimaryTimeUnit(t)){case"year":case"month":s[monthSetterName(o)](0);case"day":s[dateSetterName(o)](1);case"hour":s[hoursSetterName(o)](0);case"minute":s[minutesSetterName(o)](0);case"second":s[secondsSetterName(o)](0),s[millisecondsSetterName(o)](0)}return s.getTime()}function getIntervalTicks(r,t,o,s){var l=1e4,h=timeUnits,v=0;function x(_e,ye,Se,Te,we,Ee,Ce){for(var ke=new Date(ye),Me=ye,Ie=ke[Te]();Me<Se&&Me<=s[1];)Ce.push({value:Me}),Ie+=_e,ke[we](Ie),Me=ke.getTime();Ce.push({value:Me,notAdd:!0})}function T(_e,ye,Se){var Te=[],we=!ye.length;if(!isUnitValueSame(getPrimaryTimeUnit(_e),s[0],s[1],o)){we&&(ye=[{value:getFirstTimestampOfUnit(new Date(s[0]),_e,o)},{value:s[1]}]);for(var Ee=0;Ee<ye.length-1;Ee++){var Ce=ye[Ee].value,ke=ye[Ee+1].value;if(Ce!==ke){var Me=void 0,Ie=void 0,$e=void 0,Ge=!1;switch(_e){case"year":Me=Math.max(1,Math.round(t/ONE_DAY/365)),Ie=fullYearGetterName(o),$e=fullYearSetterName(o);break;case"half-year":case"quarter":case"month":Me=getMonthInterval(t),Ie=monthGetterName(o),$e=monthSetterName(o);break;case"week":case"half-week":case"day":Me=getDateInterval(t),Ie=dateGetterName(o),$e=dateSetterName(o),Ge=!0;break;case"half-day":case"quarter-day":case"hour":Me=getHourInterval(t),Ie=hoursGetterName(o),$e=hoursSetterName(o);break;case"minute":Me=getMinutesAndSecondsInterval(t,!0),Ie=minutesGetterName(o),$e=minutesSetterName(o);break;case"second":Me=getMinutesAndSecondsInterval(t,!1),Ie=secondsGetterName(o),$e=secondsSetterName(o);break;case"millisecond":Me=getMillisecondsInterval(t),Ie=millisecondsGetterName(o),$e=millisecondsSetterName(o);break}x(Me,Ce,ke,Ie,$e,Ge,Te),_e==="year"&&Se.length>1&&Ee===0&&Se.unshift({value:Se[0].value-Me})}}for(var Ee=0;Ee<Te.length;Ee++)Se.push(Te[Ee]);return Te}}for(var w=[],C=[],M=0,V=0,z=0;z<h.length&&v++<l;++z){var F=getPrimaryTimeUnit(h[z]);if(isPrimaryTimeUnit(h[z])){T(h[z],w[w.length-1]||[],C);var B=h[z+1]?getPrimaryTimeUnit(h[z+1]):null;if(F!==B){if(C.length){V=M,C.sort(function(_e,ye){return _e.value-ye.value});for(var W=[],Y=0;Y<C.length;++Y){var Z=C[Y].value;(Y===0||C[Y-1].value!==Z)&&(W.push(C[Y]),Z>=s[0]&&Z<=s[1]&&M++)}var X=(s[1]-s[0])/t;if(M>X*1.5&&V>X/1.5||(w.push(W),M>X||r===h[z]))break}C=[]}}}for(var te=filter(map$2(w,function(_e){return filter(_e,function(ye){return ye.value>=s[0]&&ye.value<=s[1]&&!ye.notAdd})}),function(_e){return _e.length>0}),oe=[],ae=te.length-1,z=0;z<te.length;++z)for(var le=te[z],he=0;he<le.length;++he)oe.push({value:le[he].value,level:ae-z});oe.sort(function(_e,ye){return _e.value-ye.value});for(var me=[],z=0;z<oe.length;++z)(z===0||oe[z].value!==oe[z-1].value)&&me.push(oe[z]);return me}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="log",o.base=10,o._originalScale=new IntervalScale$1,o._interval=0,o}return t.prototype.getTicks=function(o){var s=this._originalScale,l=this._extent,h=s.getExtent(),v=intervalScaleProto.getTicks.call(this,o);return map$2(v,function(x){var T=x.value,w=round$1(mathPow$1(this.base,T));return w=T===l[0]&&this._fixMin?fixRoundingError(w,h[0]):w,w=T===l[1]&&this._fixMax?fixRoundingError(w,h[1]):w,{value:w}},this)},t.prototype.setExtent=function(o,s){var l=mathLog$1(this.base);o=mathLog$1(Math.max(0,o))/l,s=mathLog$1(Math.max(0,s))/l,intervalScaleProto.setExtent.call(this,o,s)},t.prototype.getExtent=function(){var o=this.base,s=scaleProto.getExtent.call(this);s[0]=mathPow$1(o,s[0]),s[1]=mathPow$1(o,s[1]);var l=this._originalScale,h=l.getExtent();return this._fixMin&&(s[0]=fixRoundingError(s[0],h[0])),this._fixMax&&(s[1]=fixRoundingError(s[1],h[1])),s},t.prototype.unionExtent=function(o){this._originalScale.unionExtent(o);var s=this.base;o[0]=mathLog$1(o[0])/mathLog$1(s),o[1]=mathLog$1(o[1])/mathLog$1(s),scaleProto.unionExtent.call(this,o)},t.prototype.unionExtentFromData=function(o,s){this.unionExtent(o.getApproximateExtent(s))},t.prototype.calcNiceTicks=function(o){o=o||10;var s=this._extent,l=s[1]-s[0];if(!(l===1/0||l<=0)){var h=quantity(l),v=o/l*h;for(v<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var x=[round$1(mathCeil(s[0]/h)*h),round$1(mathFloor(s[1]/h)*h)];this._interval=h,this._niceExtent=x}},t.prototype.calcNiceExtent=function(o){intervalScaleProto.calcNiceExtent.call(this,o),this._fixMin=o.fixMin,this._fixMax=o.fixMax},t.prototype.parse=function(o){return o},t.prototype.contain=function(o){return o=mathLog$1(o)/mathLog$1(this.base),contain$1(o,this._extent)},t.prototype.normalize=function(o){return o=mathLog$1(o)/mathLog$1(this.base),normalize(o,this._extent)},t.prototype.scale=function(o){return o=scale(o,this._extent),mathPow$1(this.base,o)},t.type="log",t}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(r,t){return roundingErrorFix(r,getPrecision(t))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function r(t,o,s){this._prepareParams(t,o,s)}return r.prototype._prepareParams=function(t,o,s){s[1]<s[0]&&(s=[NaN,NaN]),this._dataMin=s[0],this._dataMax=s[1];var l=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&o.getNeedCrossZero&&o.getNeedCrossZero();var h=this._modelMinRaw=o.get("min",!0);isFunction(h)?this._modelMinNum=parseAxisModelMinMax(t,h({min:s[0],max:s[1]})):h!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(t,h));var v=this._modelMaxRaw=o.get("max",!0);if(isFunction(v)?this._modelMaxNum=parseAxisModelMinMax(t,v({min:s[0],max:s[1]})):v!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(t,v)),l)this._axisDataLen=o.getCategories().length;else{var x=o.get("boundaryGap"),T=isArray$1(x)?x:[x||0,x||0];typeof T[0]=="boolean"||typeof T[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(T[0],1),parsePercent$1(T[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,o=this._dataMin,s=this._dataMax,l=this._axisDataLen,h=this._boundaryGapInner,v=t?null:s-o||Math.abs(o),x=this._modelMinRaw==="dataMin"?o:this._modelMinNum,T=this._modelMaxRaw==="dataMax"?s:this._modelMaxNum,w=x!=null,C=T!=null;x==null&&(x=t?l?0:NaN:o-h[0]*v),T==null&&(T=t?l?l-1:NaN:s+h[1]*v),(x==null||!isFinite(x))&&(x=NaN),(T==null||!isFinite(T))&&(T=NaN);var M=eqNaN(x)||eqNaN(T)||t&&!l;this._needCrossZero&&(x>0&&T>0&&!w&&(x=0),x<0&&T<0&&!C&&(T=0));var V=this._determinedMin,z=this._determinedMax;return V!=null&&(x=V,w=!0),z!=null&&(T=z,C=!0),{min:x,max:T,minFixed:w,maxFixed:C,isBlank:M}},r.prototype.modifyDataMinMax=function(t,o){this[DATA_MIN_MAX_ATTR[t]]=o},r.prototype.setDeterminedMinMax=function(t,o){var s=DETERMINED_MIN_MAX_ATTR[t];this[s]=o},r.prototype.freeze=function(){this.frozen=!0},r}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(r,t,o){var s=r.rawExtentInfo;return s||(s=new ScaleRawExtentInfo(r,t,o),r.rawExtentInfo=s,s)}function parseAxisModelMinMax(r,t){return t==null?null:eqNaN(t)?NaN:r.parse(t)}function getScaleExtent(r,t){var o=r.type,s=ensureScaleRawExtentInfo(r,t,r.getExtent()).calculate();r.setBlank(s.isBlank);var l=s.min,h=s.max,v=t.ecModel;if(v&&o==="time"){var x=prepareLayoutBarSeries("bar",v),T=!1;if(each$c(x,function(M){T=T||M.getBaseAxis()===t.axis}),T){var w=makeColumnLayout(x),C=adjustScaleForOverflow(l,h,t,w);l=C.min,h=C.max}}return{extent:[l,h],fixMin:s.minFixed,fixMax:s.maxFixed}}function adjustScaleForOverflow(r,t,o,s){var l=o.axis.getExtent(),h=l[1]-l[0],v=retrieveColumnLayout(s,o.axis);if(v===void 0)return{min:r,max:t};var x=1/0;each$c(v,function(z){x=Math.min(z.offset,x)});var T=-1/0;each$c(v,function(z){T=Math.max(z.offset+z.width,T)}),x=Math.abs(x),T=Math.abs(T);var w=x+T,C=t-r,M=1-(x+T)/h,V=C/M-C;return t+=V*(T/w),r-=V*(x/w),{min:r,max:t}}function niceScaleExtent(r,t){var o=t,s=getScaleExtent(r,o),l=s.extent,h=o.get("splitNumber");r instanceof LogScale$1&&(r.base=o.get("logBase"));var v=r.type,x=o.get("interval"),T=v==="interval"||v==="time";r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:h,fixMin:s.fixMin,fixMax:s.fixMax,minInterval:T?o.get("minInterval"):null,maxInterval:T?o.get("maxInterval"):null}),x!=null&&r.setInterval&&r.setInterval(x)}function createScaleByModel(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new OrdinalScale$1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Scale$1.getClass(t)||IntervalScale$1)}}function ifAxisCrossZero(r){var t=r.scale.getExtent(),o=t[0],s=t[1];return!(o>0&&s>0||o<0&&s<0)}function makeLabelFormatter(r){var t=r.getLabelModel().get("formatter"),o=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(s){return function(l,h){return r.scale.getFormattedLabel(l,h,s)}}(t):isString(t)?function(s){return function(l){var h=r.scale.getLabel(l),v=s.replace("{value}",h??"");return v}}(t):isFunction(t)?function(s){return function(l,h){return o!=null&&(h=l.value-o),s(getAxisRawValue(r,l),h,l.level!=null?{level:l.level}:null)}}(t):function(s){return r.scale.getLabel(s)}}function getAxisRawValue(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function estimateLabelUnionRect(r){var t=r.model,o=r.scale;if(!(!t.get(["axisLabel","show"])||o.isBlank())){var s,l,h=o.getExtent();o instanceof OrdinalScale$1?l=o.count():(s=o.getTicks(),l=s.length);var v=r.getLabelModel(),x=makeLabelFormatter(r),T,w=1;l>40&&(w=Math.ceil(l/40));for(var C=0;C<l;C+=w){var M=s?s[C]:{value:h[0]+C},V=x(M,C),z=v.getTextRect(V),F=rotateTextRect(z,v.get("rotate")||0);T?T.union(F):T=F}return T}}function rotateTextRect(r,t){var o=t*Math.PI/180,s=r.width,l=r.height,h=s*Math.abs(Math.cos(o))+Math.abs(l*Math.sin(o)),v=s*Math.abs(Math.sin(o))+Math.abs(l*Math.cos(o)),x=new BoundingRect$1(r.x,r.y,h,v);return x}function getOptionCategoryInterval(r){var t=r.get("interval");return t??"auto"}function shouldShowAllLabels(r){return r.type==="category"&&getOptionCategoryInterval(r.getLabelModel())===0}function getDataDimensionsOnAxis(r,t){var o={};return each$c(r.mapDimensionsAll(t),function(s){o[getStackedDimension(r,s)]=!0}),keys(o)}function unionAxisExtentFromData(r,t,o){t&&each$c(getDataDimensionsOnAxis(t,o),function(s){var l=t.getApproximateExtent(s);l[0]<r[0]&&(r[0]=l[0]),l[1]>r[1]&&(r[1]=l[1])})}var AxisModelCommonMixin=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function createList(r){return createSeriesData(null,r)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(r,t){var o=t;t instanceof Model$1||(o=new Model$1(t));var s=createScaleByModel(o);return s.setExtent(r[0],r[1]),niceScaleExtent(s,o),s}function mixinAxisModelCommonMethods(r){mixin(r,AxisModelCommonMixin)}function createTextStyle(r,t){return t=t||{},createTextStyle$1(r,null,null,t.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(r){ComponentModel$1.registerClass(r)},registerComponentView:function(r){ComponentView$1.registerClass(r)},registerSeriesModel:function(r){SeriesModel$1.registerClass(r)},registerChartView:function(r){ChartView$1.registerClass(r)},registerSubTypeDefaulter:function(r,t){ComponentModel$1.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){registerPainter(r,t)}};function use$1(r){if(isArray$1(r)){each$c(r,function(t){use$1(t)});return}indexOf(extensions,r)>=0||(extensions.push(r),isFunction(r)&&(r={install:r}),r.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(r,t){return Math.abs(r-t)<EPSILON}function contain(r,t,o){var s=0,l=r[0];if(!l)return!1;for(var h=1;h<r.length;h++){var v=r[h];s+=windingLine(l[0],l[1],v[0],v[1],t,o),l=v}var x=r[0];return(!isAroundEqual(l[0],x[0])||!isAroundEqual(l[1],x[1]))&&(s+=windingLine(l[0],l[1],x[0],x[1],t,o)),s!==0}var TMP_TRANSFORM=[];function transformPoints(r,t){for(var o=0;o<r.length;o++)applyTransform$1(r[o],r[o],t)}function updateBBoxFromPoints(r,t,o,s){for(var l=0;l<r.length;l++){var h=r[l];s&&(h=s.project(h)),h&&isFinite(h[0])&&isFinite(h[1])&&(min$1(t,t,h),max$1(o,o,h))}}function centroid(r){for(var t=0,o=0,s=0,l=r.length,h=r[l-1][0],v=r[l-1][1],x=0;x<l;x++){var T=r[x][0],w=r[x][1],C=h*w-T*v;t+=C,o+=(h+T)*C,s+=(v+w)*C,h=T,v=w}return t?[o/t/3,s/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Region=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),GeoJSONPolygonGeometry=function(){function r(t,o){this.type="polygon",this.exterior=t,this.interiors=o}return r}(),GeoJSONLineStringGeometry=function(){function r(t){this.type="linestring",this.points=t}return r}(),GeoJSONRegion=function(r){__extends(t,r);function t(o,s,l){var h=r.call(this,o)||this;return h.type="geoJSON",h.geometries=s,h._center=l&&[l[0],l[1]],h}return t.prototype.calcCenter=function(){for(var o=this.geometries,s,l=0,h=0;h<o.length;h++){var v=o[h],x=v.exterior,T=x&&x.length;T>l&&(s=v,l=T)}if(s)return centroid(s.exterior);var w=this.getBoundingRect();return[w.x+w.width/2,w.y+w.height/2]},t.prototype.getBoundingRect=function(o){var s=this._rect;if(s&&!o)return s;var l=[1/0,1/0],h=[-1/0,-1/0],v=this.geometries;return each$c(v,function(x){x.type==="polygon"?updateBBoxFromPoints(x.exterior,l,h,o):each$c(x.points,function(T){updateBBoxFromPoints(T,l,h,o)})}),isFinite(l[0])&&isFinite(l[1])&&isFinite(h[0])&&isFinite(h[1])||(l[0]=l[1]=h[0]=h[1]=0),s=new BoundingRect$1(l[0],l[1],h[0]-l[0],h[1]-l[1]),o||(this._rect=s),s},t.prototype.contain=function(o){var s=this.getBoundingRect(),l=this.geometries;if(!s.contain(o[0],o[1]))return!1;e:for(var h=0,v=l.length;h<v;h++){var x=l[h];if(x.type==="polygon"){var T=x.exterior,w=x.interiors;if(contain(T,o[0],o[1])){for(var C=0;C<(w?w.length:0);C++)if(contain(w[C],o[0],o[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(o,s,l,h){var v=this.getBoundingRect(),x=v.width/v.height;l?h||(h=l/x):l=x*h;for(var T=new BoundingRect$1(o,s,l,h),w=v.calculateTransform(T),C=this.geometries,M=0;M<C.length;M++){var V=C[M];V.type==="polygon"?(transformPoints(V.exterior,w),each$c(V.interiors,function(z){transformPoints(z,w)})):each$c(V.points,function(z){transformPoints(z,w)})}v=this._rect,v.copy(T),this._center=[v.x+v.width/2,v.y+v.height/2]},t.prototype.cloneShallow=function(o){o==null&&(o=this.name);var s=new t(o,this.geometries,this._center);return s._rect=this._rect,s.transformTo=null,s},t}(Region);(function(r){__extends(t,r);function t(o,s){var l=r.call(this,o)||this;return l.type="geoSVG",l._elOnlyForCalculate=s,l}return t.prototype.calcCenter=function(){for(var o=this._elOnlyForCalculate,s=o.getBoundingRect(),l=[s.x+s.width/2,s.y+s.height/2],h=identity(TMP_TRANSFORM),v=o;v&&!v.isGeoSVGGraphicRoot;)mul(h,v.getLocalTransform(),h),v=v.parent;return invert(h,h),applyTransform$1(l,l,h),l},t})(Region);function decode(r){if(!r.UTF8Encoding)return r;var t=r,o=t.UTF8Scale;o==null&&(o=1024);var s=t.features;return each$c(s,function(l){var h=l.geometry,v=h.encodeOffsets,x=h.coordinates;if(v)switch(h.type){case"LineString":h.coordinates=decodeRing(x,v,o);break;case"Polygon":decodeRings(x,v,o);break;case"MultiLineString":decodeRings(x,v,o);break;case"MultiPolygon":each$c(x,function(T,w){return decodeRings(T,v[w],o)})}}),t.UTF8Encoding=!1,t}function decodeRings(r,t,o){for(var s=0;s<r.length;s++)r[s]=decodeRing(r[s],t[s],o)}function decodeRing(r,t,o){for(var s=[],l=t[0],h=t[1],v=0;v<r.length;v+=2){var x=r.charCodeAt(v)-64,T=r.charCodeAt(v+1)-64;x=x>>1^-(x&1),T=T>>1^-(T&1),x+=l,T+=h,l=x,h=T,s.push([x/o,T/o])}return s}function parseGeoJSON(r,t){return r=decode(r),map$2(filter(r.features,function(o){return o.geometry&&o.properties&&o.geometry.coordinates.length>0}),function(o){var s=o.properties,l=o.geometry,h=[];switch(l.type){case"Polygon":var v=l.coordinates;h.push(new GeoJSONPolygonGeometry(v[0],v.slice(1)));break;case"MultiPolygon":each$c(l.coordinates,function(T){T[0]&&h.push(new GeoJSONPolygonGeometry(T[0],T.slice(1)))});break;case"LineString":h.push(new GeoJSONLineStringGeometry([l.coordinates]));break;case"MultiLineString":h.push(new GeoJSONLineStringGeometry(l.coordinates))}var x=new GeoJSONRegion(s[t||"name"],h,s.cp);return x.properties=s,x})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels(r){return r.type==="category"?makeCategoryLabels(r):makeRealNumberLabels(r)}function createAxisTicks(r,t){return r.type==="category"?makeCategoryTicks(r,t):{ticks:map$2(r.scale.getTicks(),function(o){return o.value})}}function makeCategoryLabels(r){var t=r.getLabelModel(),o=makeCategoryLabelsActually(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o}function makeCategoryLabelsActually(r,t){var o=getListCache(r,"labels"),s=getOptionCategoryInterval(t),l=listCacheGet(o,s);if(l)return l;var h,v;return isFunction(s)?h=makeLabelsByCustomizedCategoryInterval(r,s):(v=s==="auto"?makeAutoCategoryInterval(r):s,h=makeLabelsByNumericCategoryInterval(r,v)),listCacheSet(o,s,{labels:h,labelCategoryInterval:v})}function makeCategoryTicks(r,t){var o=getListCache(r,"ticks"),s=getOptionCategoryInterval(t),l=listCacheGet(o,s);if(l)return l;var h,v;if((!t.get("show")||r.scale.isBlank())&&(h=[]),isFunction(s))h=makeLabelsByCustomizedCategoryInterval(r,s,!0);else if(s==="auto"){var x=makeCategoryLabelsActually(r,r.getLabelModel());v=x.labelCategoryInterval,h=map$2(x.labels,function(T){return T.tickValue})}else v=s,h=makeLabelsByNumericCategoryInterval(r,v,!0);return listCacheSet(o,s,{ticks:h,tickCategoryInterval:v})}function makeRealNumberLabels(r){var t=r.scale.getTicks(),o=makeLabelFormatter(r);return{labels:map$2(t,function(s,l){return{level:s.level,formattedLabel:o(s,l),rawLabel:r.scale.getLabel(s),tickValue:s.value}})}}function getListCache(r,t){return inner$7(r)[t]||(inner$7(r)[t]=[])}function listCacheGet(r,t){for(var o=0;o<r.length;o++)if(r[o].key===t)return r[o].value}function listCacheSet(r,t,o){return r.push({key:t,value:o}),o}function makeAutoCategoryInterval(r){var t=inner$7(r).autoInterval;return t??(inner$7(r).autoInterval=r.calculateCategoryInterval())}function calculateCategoryInterval(r){var t=fetchAutoCategoryIntervalCalculationParams(r),o=makeLabelFormatter(r),s=(t.axisRotate-t.labelRotate)/180*Math.PI,l=r.scale,h=l.getExtent(),v=l.count();if(h[1]-h[0]<1)return 0;var x=1;v>40&&(x=Math.max(1,Math.floor(v/40)));for(var T=h[0],w=r.dataToCoord(T+1)-r.dataToCoord(T),C=Math.abs(w*Math.cos(s)),M=Math.abs(w*Math.sin(s)),V=0,z=0;T<=h[1];T+=x){var F=0,B=0,W=getBoundingRect(o({value:T}),t.font,"center","top");F=W.width*1.3,B=W.height*1.3,V=Math.max(V,F,7),z=Math.max(z,B,7)}var Y=V/C,Z=z/M;isNaN(Y)&&(Y=1/0),isNaN(Z)&&(Z=1/0);var X=Math.max(0,Math.floor(Math.min(Y,Z))),te=inner$7(r.model),oe=r.getExtent(),ae=te.lastAutoInterval,le=te.lastTickCount;return ae!=null&&le!=null&&Math.abs(ae-X)<=1&&Math.abs(le-v)<=1&&ae>X&&te.axisExtent0===oe[0]&&te.axisExtent1===oe[1]?X=ae:(te.lastTickCount=v,te.lastAutoInterval=X,te.axisExtent0=oe[0],te.axisExtent1=oe[1]),X}function fetchAutoCategoryIntervalCalculationParams(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function makeLabelsByNumericCategoryInterval(r,t,o){var s=makeLabelFormatter(r),l=r.scale,h=l.getExtent(),v=r.getLabelModel(),x=[],T=Math.max((t||0)+1,1),w=h[0],C=l.count();w!==0&&T>1&&C/T>2&&(w=Math.round(Math.ceil(w/T)*T));var M=shouldShowAllLabels(r),V=v.get("showMinLabel")||M,z=v.get("showMaxLabel")||M;V&&w!==h[0]&&B(h[0]);for(var F=w;F<=h[1];F+=T)B(F);z&&F-T!==h[1]&&B(h[1]);function B(W){var Y={value:W};x.push(o?W:{formattedLabel:s(Y),rawLabel:l.getLabel(Y),tickValue:W})}return x}function makeLabelsByCustomizedCategoryInterval(r,t,o){var s=r.scale,l=makeLabelFormatter(r),h=[];return each$c(s.getTicks(),function(v){var x=s.getLabel(v),T=v.value;t(v.value,x)&&h.push(o?T:{formattedLabel:l(v),rawLabel:x,tickValue:T})}),h}var NORMALIZED_EXTENT=[0,1],Axis=function(){function r(t,o,s){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=o,this._extent=s||[0,0]}return r.prototype.contain=function(t){var o=this._extent,s=Math.min(o[0],o[1]),l=Math.max(o[0],o[1]);return t>=s&&t<=l},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return getPixelPrecision(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,o){var s=this._extent;s[0]=t,s[1]=o},r.prototype.dataToCoord=function(t,o){var s=this._extent,l=this.scale;return t=l.normalize(t),this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count())),linearMap$2(t,NORMALIZED_EXTENT,s,o)},r.prototype.coordToData=function(t,o){var s=this._extent,l=this.scale;this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count()));var h=linearMap$2(t,s,NORMALIZED_EXTENT,o);return this.scale.scale(h)},r.prototype.pointToData=function(t,o){},r.prototype.getTicksCoords=function(t){t=t||{};var o=t.tickModel||this.getTickModel(),s=createAxisTicks(this,o),l=s.ticks,h=map$2(l,function(x){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(x):x),tickValue:x}},this),v=o.get("alignWithLabel");return fixOnBandTicksCoords(this,h,v,t.clamp),h},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),o=t.get("splitNumber");o>0&&o<100||(o=5);var s=this.scale.getMinorTicks(o),l=map$2(s,function(h){return map$2(h,function(v){return{coord:this.dataToCoord(v),tickValue:v}},this)},this);return l},r.prototype.getViewLabels=function(){return createAxisLabels(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,o=this.scale.getExtent(),s=o[1]-o[0]+(this.onBand?1:0);s===0&&(s=1);var l=Math.abs(t[1]-t[0]);return Math.abs(l)/s},r.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},r}();function fixExtentWithBands(r,t){var o=r[1]-r[0],s=t,l=o/s/2;r[0]+=l,r[1]-=l}function fixOnBandTicksCoords(r,t,o,s){var l=t.length;if(!r.onBand||o||!l)return;var h=r.getExtent(),v,x;if(l===1)t[0].coord=h[0],v=t[1]={coord:h[0]};else{var T=t[l-1].tickValue-t[0].tickValue,w=(t[l-1].coord-t[0].coord)/T;each$c(t,function(z){z.coord-=w/2});var C=r.scale.getExtent();x=1+C[1]-t[l-1].tickValue,v={coord:t[l-1].coord+w*x},t.push(v)}var M=h[0]>h[1];V(t[0].coord,h[0])&&(s?t[0].coord=h[0]:t.shift()),s&&V(h[0],t[0].coord)&&t.unshift({coord:h[0]}),V(h[1],v.coord)&&(s?v.coord=h[1]:t.pop()),s&&V(v.coord,h[1])&&t.push({coord:h[1]});function V(z,F){return z=round$1(z),F=round$1(F),M?z>F:z<F}}const Axis$1=Axis;function extendComponentModel(r){var t=ComponentModel$1.extend(r);return ComponentModel$1.registerClass(t),t}function extendComponentView(r){var t=ComponentView$1.extend(r);return ComponentView$1.registerClass(t),t}function extendSeriesModel(r){var t=SeriesModel$1.extend(r);return SeriesModel$1.registerClass(t),t}function extendChartView(r){var t=ChartView$1.extend(r);return ChartView$1.registerClass(t),t}PathProxy$1.CMD;function projectPointToLine(r,t,o,s,l,h,v,x){var T=l-r,w=h-t,C=o-r,M=s-t,V=Math.sqrt(C*C+M*M);C/=V,M/=V;var z=T*C+w*M,F=z/V;x&&(F=Math.min(Math.max(F,0),1)),F*=V;var B=v[0]=r+F*C,W=v[1]=t+F*M;return Math.sqrt((B-l)*(B-l)+(W-h)*(W-h))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle(r,t){if(t<=180&&t>0){t=t/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var o=dir.len(),s=dir2.len();if(!(o<.001||s<.001)){dir.scale(1/o),dir2.scale(1/s);var l=dir.dot(dir2),h=Math.cos(t);if(h<l){var v=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,v/Math.tan(Math.PI-t));var x=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(x))return;x<0?Point$1.copy(tmpProjPoint,pt1):x>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(r[1])}}}}function limitSurfaceAngle(r,t,o){if(o<=180&&o>0){o=o/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var s=dir.len(),l=dir2.len();if(!(s<.001||l<.001)){dir.scale(1/s),dir2.scale(1/l);var h=dir.dot(t),v=Math.cos(o);if(h<v){var x=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var T=Math.PI/2,w=Math.acos(dir2.dot(t)),C=T+w-o;if(C>=T)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,x/Math.tan(Math.PI/2-C));var M=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(M))return;M<0?Point$1.copy(tmpProjPoint,pt1):M>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(r[1])}}}}function setLabelLineState(r,t,o,s){var l=o==="normal",h=l?r:r.ensureState(o);h.ignore=t;var v=s.get("smooth");v&&v===!0&&(v=.3),h.shape=h.shape||{},v>0&&(h.shape.smooth=v);var x=s.getModel("lineStyle").getLineStyle();l?r.useStyle(x):h.style=x}function buildLabelLinePath(r,t){var o=t.smooth,s=t.points;if(s)if(r.moveTo(s[0][0],s[0][1]),o>0&&s.length>=3){var l=dist$1(s[0],s[1]),h=dist$1(s[1],s[2]);if(!l||!h){r.lineTo(s[1][0],s[1][1]),r.lineTo(s[2][0],s[2][1]);return}var v=Math.min(l,h)*o,x=lerp$1([],s[1],s[0],v/l),T=lerp$1([],s[1],s[2],v/h),w=lerp$1([],x,T,.5);r.bezierCurveTo(x[0],x[1],x[0],x[1],w[0],w[1]),r.bezierCurveTo(T[0],T[1],T[0],T[1],s[2][0],s[2][1])}else for(var C=1;C<s.length;C++)r.lineTo(s[C][0],s[C][1])}function setLabelLineStyle(r,t,o){var s=r.getTextGuideLine(),l=r.getTextContent();if(!l){s&&r.removeTextGuideLine();return}for(var h=t.normal,v=h.get("show"),x=l.ignore,T=0;T<DISPLAY_STATES.length;T++){var w=DISPLAY_STATES[T],C=t[w],M=w==="normal";if(C){var V=C.get("show"),z=M?x:retrieve2(l.states[w]&&l.states[w].ignore,x);if(z||!retrieve2(V,v)){var F=M?s:s&&s.states[w];F&&(F.ignore=!0);continue}s||(s=new Polyline$1,r.setTextGuideLine(s),!M&&(x||!v)&&setLabelLineState(s,!0,"normal",t.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),setLabelLineState(s,!1,w,C)}}if(s){defaults(s.style,o),s.style.fill=null;var B=h.get("showAbove"),W=r.textGuideLineConfig=r.textGuideLineConfig||{};W.showAbove=B||!1,s.buildPath=buildLabelLinePath}}function getLabelLineStatesModels(r,t){t=t||"labelLine";for(var o={normal:r.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];o[l]=r.getModel([l,t])}return o}function prepareLayoutList(r){for(var t=[],o=0;o<r.length;o++){var s=r[o];if(!s.defaultAttr.ignore){var l=s.label,h=l.getComputedTransform(),v=l.getBoundingRect(),x=!h||h[1]<1e-5&&h[2]<1e-5,T=l.style.margin||0,w=v.clone();w.applyTransform(h),w.x-=T/2,w.y-=T/2,w.width+=T,w.height+=T;var C=x?new OrientedBoundingRect$1(v,h):null;t.push({label:l,labelLine:s.labelLine,rect:w,localRect:v,obb:C,priority:s.priority,defaultAttr:s.defaultAttr,layoutOption:s.computedLayoutOption,axisAligned:x,transform:h})}}return t}function shiftLayout(r,t,o,s,l,h){var v=r.length;if(v<2)return;r.sort(function(he,me){return he.rect[t]-me.rect[t]});for(var x=0,T,w=!1,C=0,M=0;M<v;M++){var V=r[M],z=V.rect;T=z[t]-x,T<0&&(z[t]-=T,V.label[t]-=T,w=!0);var F=Math.max(-T,0);C+=F,x=z[t]+z[o]}C>0&&h&&oe(-C/v,0,v);var B=r[0],W=r[v-1],Y,Z;X(),Y<0&&ae(-Y,.8),Z<0&&ae(Z,.8),X(),te(Y,Z,1),te(Z,Y,-1),X(),Y<0&&le(-Y),Z<0&&le(Z);function X(){Y=B.rect[t]-s,Z=l-W.rect[t]-W.rect[o]}function te(he,me,_e){if(he<0){var ye=Math.min(me,-he);if(ye>0){oe(ye*_e,0,v);var Se=ye+he;Se<0&&ae(-Se*_e,1)}else ae(-he*_e,1)}}function oe(he,me,_e){he!==0&&(w=!0);for(var ye=me;ye<_e;ye++){var Se=r[ye],Te=Se.rect;Te[t]+=he,Se.label[t]+=he}}function ae(he,me){for(var _e=[],ye=0,Se=1;Se<v;Se++){var Te=r[Se-1].rect,we=Math.max(r[Se].rect[t]-Te[t]-Te[o],0);_e.push(we),ye+=we}if(ye){var Ee=Math.min(Math.abs(he)/ye,me);if(he>0)for(var Se=0;Se<v-1;Se++){var Ce=_e[Se]*Ee;oe(Ce,0,Se+1)}else for(var Se=v-1;Se>0;Se--){var Ce=_e[Se-1]*Ee;oe(-Ce,Se,v)}}}function le(he){var me=he<0?-1:1;he=Math.abs(he);for(var _e=Math.ceil(he/(v-1)),ye=0;ye<v-1;ye++)if(me>0?oe(_e,0,ye+1):oe(-_e,v-ye-1,v),he-=_e,he<=0)return}return w}function shiftLayoutOnY(r,t,o,s){return shiftLayout(r,"y","height",t,o,s)}function hideOverlap(r){var t=[];r.sort(function(B,W){return W.priority-B.priority});var o=new BoundingRect$1(0,0,0,0);function s(B){if(!B.ignore){var W=B.ensureState("emphasis");W.ignore==null&&(W.ignore=!1)}B.ignore=!0}for(var l=0;l<r.length;l++){var h=r[l],v=h.axisAligned,x=h.localRect,T=h.transform,w=h.label,C=h.labelLine;o.copy(h.rect),o.width-=.1,o.height-=.1,o.x+=.05,o.y+=.05;for(var M=h.obb,V=!1,z=0;z<t.length;z++){var F=t[z];if(o.intersect(F.rect)){if(v&&F.axisAligned){V=!0;break}if(F.obb||(F.obb=new OrientedBoundingRect$1(F.localRect,F.transform)),M||(M=new OrientedBoundingRect$1(x,T)),M.intersect(F.obb)){V=!0;break}}}V?(s(w),C&&s(C)):(w.attr("ignore",h.defaultAttr.ignore),C&&C.attr("ignore",h.defaultAttr.labelGuideIgnore),t.push(h))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom(r,t,o){var s=platformApi.createCanvas(),l=t.getWidth(),h=t.getHeight(),v=s.style;return v&&(v.position="absolute",v.left="0",v.top="0",v.width=l+"px",v.height=h+"px",s.setAttribute("data-zr-dom-id",r)),s.width=l*o,s.height=h*o,s}var Layer=function(r){__extends(t,r);function t(o,s,l){var h=r.call(this)||this;h.motionBlur=!1,h.lastFrameAlpha=.7,h.dpr=1,h.virtual=!1,h.config={},h.incremental=!1,h.zlevel=0,h.maxRepaintRectCount=5,h.__dirty=!0,h.__firstTimePaint=!0,h.__used=!1,h.__drawIndex=0,h.__startIndex=0,h.__endIndex=0,h.__prevStartIndex=null,h.__prevEndIndex=null;var v;l=l||devicePixelRatio,typeof o=="string"?v=createDom(o,s,l):isObject$3(o)&&(v=o,o=v.id),h.id=o,h.dom=v;var x=v.style;return x&&(disableUserSelect(v),v.onselectstart=function(){return!1},x.padding="0",x.margin="0",x.borderWidth="0"),h.painter=s,h.dpr=l,h}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var o=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,o),this.ctxBack=this.domBack.getContext("2d"),o!==1&&this.ctxBack.scale(o,o)},t.prototype.createRepaintRects=function(o,s,l,h){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var v=[],x=this.maxRepaintRectCount,T=!1,w=new BoundingRect$1(0,0,0,0);function C(Z){if(!(!Z.isFinite()||Z.isZero()))if(v.length===0){var X=new BoundingRect$1(0,0,0,0);X.copy(Z),v.push(X)}else{for(var te=!1,oe=1/0,ae=0,le=0;le<v.length;++le){var he=v[le];if(he.intersect(Z)){var me=new BoundingRect$1(0,0,0,0);me.copy(he),me.union(Z),v[le]=me,te=!0;break}else if(T){w.copy(Z),w.union(he);var _e=Z.width*Z.height,ye=he.width*he.height,Se=w.width*w.height,Te=Se-_e-ye;Te<oe&&(oe=Te,ae=le)}}if(T&&(v[ae].union(Z),te=!0),!te){var X=new BoundingRect$1(0,0,0,0);X.copy(Z),v.push(X)}T||(T=v.length>=x)}}for(var M=this.__startIndex;M<this.__endIndex;++M){var V=o[M];if(V){var z=V.shouldBePainted(l,h,!0,!0),F=V.__isRendered&&(V.__dirty&REDRAW_BIT||!z)?V.getPrevPaintRect():null;F&&C(F);var B=z&&(V.__dirty&REDRAW_BIT||!V.__isRendered)?V.getPaintRect():null;B&&C(B)}}for(var M=this.__prevStartIndex;M<this.__prevEndIndex;++M){var V=s[M],z=V.shouldBePainted(l,h,!0,!0);if(V&&(!z||!V.__zr)&&V.__isRendered){var F=V.getPrevPaintRect();F&&C(F)}}var W;do{W=!1;for(var M=0;M<v.length;){if(v[M].isZero()){v.splice(M,1);continue}for(var Y=M+1;Y<v.length;)v[M].intersect(v[Y])?(W=!0,v[M].union(v[Y]),v.splice(Y,1)):Y++;M++}}while(W);return this._paintRects=v,v},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(o,s){var l=this.dpr,h=this.dom,v=h.style,x=this.domBack;v&&(v.width=o+"px",v.height=s+"px"),h.width=o*l,h.height=s*l,x&&(x.width=o*l,x.height=s*l,l!==1&&this.ctxBack.scale(l,l))},t.prototype.clear=function(o,s,l){var h=this.dom,v=this.ctx,x=h.width,T=h.height;s=s||this.clearColor;var w=this.motionBlur&&!o,C=this.lastFrameAlpha,M=this.dpr,V=this;w&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(h,0,0,x/M,T/M));var z=this.domBack;function F(B,W,Y,Z){if(v.clearRect(B,W,Y,Z),s&&s!=="transparent"){var X=void 0;if(isGradientObject(s)){var te=s.global||s.__width===Y&&s.__height===Z;X=te&&s.__canvasGradient||getCanvasGradient(v,s,{x:0,y:0,width:Y,height:Z}),s.__canvasGradient=X,s.__width=Y,s.__height=Z}else isImagePatternObject(s)&&(s.scaleX=s.scaleX||M,s.scaleY=s.scaleY||M,X=createCanvasPattern(v,s,{dirty:function(){V.setUnpainted(),V.__painter.refresh()}}));v.save(),v.fillStyle=X||s,v.fillRect(B,W,Y,Z),v.restore()}w&&(v.save(),v.globalAlpha=C,v.drawImage(z,B,W,Y,Z),v.restore())}!l||w?F(0,0,x,T):l.length&&each$c(l,function(B){F(B.x*M,B.y*M,B.width*M,B.height*M)})},t}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function createRoot(r,t){var o=document.createElement("div");return o.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",o}var CanvasPainter=function(){function r(t,o,s,l){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var h=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=s=extend({},s||{}),this.dpr=s.devicePixelRatio||devicePixelRatio,this._singleCanvas=h,this.root=t;var v=t.style;v&&(disableUserSelect(t),t.innerHTML=""),this.storage=o;var x=this._zlevelList;this._prevDisplayList=[];var T=this._layers;if(h){var C=t,M=C.width,V=C.height;s.width!=null&&(M=s.width),s.height!=null&&(V=s.height),this.dpr=s.devicePixelRatio||1,C.width=M*this.dpr,C.height=V*this.dpr,this._width=M,this._height=V;var z=new Layer$1(C,this,this.dpr);z.__builtin__=!0,z.initContext(),T[CANVAS_ZLEVEL]=z,z.zlevel=CANVAS_ZLEVEL,x.push(CANVAS_ZLEVEL),this._domRoot=t}else{this._width=getSize$1(t,0,s),this._height=getSize$1(t,1,s);var w=this._domRoot=createRoot(this._width,this._height);t.appendChild(w)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var o=this.storage.getDisplayList(!0),s=this._prevDisplayList,l=this._zlevelList;this._redrawId=Math.random(),this._paintList(o,s,t,this._redrawId);for(var h=0;h<l.length;h++){var v=l[h],x=this._layers[v];if(!x.__builtin__&&x.refresh){var T=h===0?this._backgroundColor:null;x.refresh(T)}}return this._opts.useDirtyRect&&(this._prevDisplayList=o.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var o=t.length,s=this._hoverlayer;if(s&&s.clear(),!!o){for(var l={inHover:!0,viewWidth:this._width,viewHeight:this._height},h,v=0;v<o;v++){var x=t[v];x.__inHover&&(s||(s=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),h||(h=s.ctx,h.save()),brush(h,x,l,v===o-1))}h&&h.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},r.prototype.paintOne=function(t,o){brushSingle(t,o)},r.prototype._paintList=function(t,o,s,l){if(this._redrawId===l){s=s||!1,this._updateLayerStatus(t);var h=this._doPaintList(t,o,s),v=h.finished,x=h.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),x&&this._paintHoverList(t),v)this.eachLayer(function(w){w.afterBrush&&w.afterBrush()});else{var T=this;requestAnimationFrame$1(function(){T._paintList(t,o,s,l)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(CANVAS_ZLEVEL).ctx,o=this._domRoot.width,s=this._domRoot.height;t.clearRect(0,0,o,s),this.eachBuiltinLayer(function(l){l.virtual&&t.drawImage(l.dom,0,0,o,s)})},r.prototype._doPaintList=function(t,o,s){for(var l=this,h=[],v=this._opts.useDirtyRect,x=0;x<this._zlevelList.length;x++){var T=this._zlevelList[x],w=this._layers[T];w.__builtin__&&w!==this._hoverlayer&&(w.__dirty||s)&&h.push(w)}for(var C=!0,M=!1,V=function(B){var W=h[B],Y=W.ctx,Z=v&&W.createRepaintRects(t,o,z._width,z._height),X=s?W.__startIndex:W.__drawIndex,te=!s&&W.incremental&&Date.now,oe=te&&Date.now(),ae=W.zlevel===z._zlevelList[0]?z._backgroundColor:null;if(W.__startIndex===W.__endIndex)W.clear(!1,ae,Z);else if(X===W.__startIndex){var le=t[X];(!le.incremental||!le.notClear||s)&&W.clear(!1,ae,Z)}X===-1&&(console.error("For some unknown reason. drawIndex is -1"),X=W.__startIndex);var he,me=function(Te){var we={inHover:!1,allClipped:!1,prevEl:null,viewWidth:l._width,viewHeight:l._height};for(he=X;he<W.__endIndex;he++){var Ee=t[he];if(Ee.__inHover&&(M=!0),l._doPaintEl(Ee,W,v,Te,we,he===W.__endIndex-1),te){var Ce=Date.now()-oe;if(Ce>15)break}}we.prevElClipPaths&&Y.restore()};if(Z)if(Z.length===0)he=W.__endIndex;else for(var _e=z.dpr,ye=0;ye<Z.length;++ye){var Se=Z[ye];Y.save(),Y.beginPath(),Y.rect(Se.x*_e,Se.y*_e,Se.width*_e,Se.height*_e),Y.clip(),me(Se),Y.restore()}else Y.save(),me(),Y.restore();W.__drawIndex=he,W.__drawIndex<W.__endIndex&&(C=!1)},z=this,F=0;F<h.length;F++)V(F);return env$1.wxa&&each$c(this._layers,function(B){B&&B.ctx&&B.ctx.draw&&B.ctx.draw()}),{finished:C,needsRefreshHover:M}},r.prototype._doPaintEl=function(t,o,s,l,h,v){var x=o.ctx;if(s){var T=t.getPaintRect();(!l||T&&T.intersect(l))&&(brush(x,t,h,v),t.setPrevPaintRect(T))}else brush(x,t,h,v)},r.prototype.getLayer=function(t,o){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CANVAS_ZLEVEL);var s=this._layers[t];return s||(s=new Layer$1("zr_"+t,this,this.dpr),s.zlevel=t,s.__builtin__=!0,this._layerConfig[t]?merge(s,this._layerConfig[t],!0):this._layerConfig[t-EL_AFTER_INCREMENTAL_INC]&&merge(s,this._layerConfig[t-EL_AFTER_INCREMENTAL_INC],!0),o&&(s.virtual=o),this.insertLayer(t,s),s.initContext()),s},r.prototype.insertLayer=function(t,o){var s=this._layers,l=this._zlevelList,h=l.length,v=this._domRoot,x=null,T=-1;if(!s[t]&&isLayerValid(o)){if(h>0&&t>l[0]){for(T=0;T<h-1&&!(l[T]<t&&l[T+1]>t);T++);x=s[l[T]]}if(l.splice(T+1,0,t),s[t]=o,!o.virtual)if(x){var w=x.dom;w.nextSibling?v.insertBefore(o.dom,w.nextSibling):v.appendChild(o.dom)}else v.firstChild?v.insertBefore(o.dom,v.firstChild):v.appendChild(o.dom);o.__painter=this}},r.prototype.eachLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l];t.call(o,this._layers[h],h)}},r.prototype.eachBuiltinLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l],v=this._layers[h];v.__builtin__&&t.call(o,v,h)}},r.prototype.eachOtherLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l],v=this._layers[h];v.__builtin__||t.call(o,v,h)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(M,V){M.__dirty=M.__used=!1});function o(M){h&&(h.__endIndex!==M&&(h.__dirty=!0),h.__endIndex=M)}if(this._singleCanvas)for(var s=1;s<t.length;s++){var l=t[s];if(l.zlevel!==t[s-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var h=null,v=0,x,T;for(T=0;T<t.length;T++){var l=t[T],w=l.zlevel,C=void 0;x!==w&&(x=w,v=0),l.incremental?(C=this.getLayer(w+INCREMENTAL_INC,this._needsManuallyCompositing),C.incremental=!0,v=1):C=this.getLayer(w+(v>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),C.__builtin__||logError("ZLevel "+w+" has been used by unkown layer "+C.id),C!==h&&(C.__used=!0,C.__startIndex!==T&&(C.__dirty=!0),C.__startIndex=T,C.incremental?C.__drawIndex=-1:C.__drawIndex=T,o(T),h=C),l.__dirty&REDRAW_BIT&&!l.__inHover&&(C.__dirty=!0,C.incremental&&C.__drawIndex<0&&(C.__drawIndex=T))}o(T),this.eachBuiltinLayer(function(M,V){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,each$c(this._layers,function(o){o.setUnpainted()})},r.prototype.configLayer=function(t,o){if(o){var s=this._layerConfig;s[t]?merge(s[t],o,!0):s[t]=o;for(var l=0;l<this._zlevelList.length;l++){var h=this._zlevelList[l];if(h===t||h===t+EL_AFTER_INCREMENTAL_INC){var v=this._layers[h];merge(v,s[t],!0)}}}},r.prototype.delLayer=function(t){var o=this._layers,s=this._zlevelList,l=o[t];l&&(l.dom.parentNode.removeChild(l.dom),delete o[t],s.splice(indexOf(s,t),1))},r.prototype.resize=function(t,o){if(this._domRoot.style){var s=this._domRoot;s.style.display="none";var l=this._opts,h=this.root;if(t!=null&&(l.width=t),o!=null&&(l.height=o),t=getSize$1(h,0,l),o=getSize$1(h,1,l),s.style.display="",this._width!==t||o!==this._height){s.style.width=t+"px",s.style.height=o+"px";for(var v in this._layers)this._layers.hasOwnProperty(v)&&this._layers[v].resize(t,o);this.refresh(!0)}this._width=t,this._height=o}else{if(t==null||o==null)return;this._width=t,this._height=o,this.getLayer(CANVAS_ZLEVEL).resize(t,o)}return this},r.prototype.clearLayer=function(t){var o=this._layers[t];o&&o.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var o=new Layer$1("image",this,t.pixelRatio||this.dpr);o.initContext(),o.clear(!1,t.backgroundColor||this._backgroundColor);var s=o.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var l=o.dom.width,h=o.dom.height;this.eachLayer(function(M){M.__builtin__?s.drawImage(M.dom,0,0,l,h):M.renderToCanvas&&(s.save(),M.renderToCanvas(s),s.restore())})}else for(var v={inHover:!1,viewWidth:this._width,viewHeight:this._height},x=this.storage.getDisplayList(!0),T=0,w=x.length;T<w;T++){var C=x[T];brush(s,C,v,T===w-1)}return o.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const CanvasPainter$1=CanvasPainter;function install$k(r){r.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.hasSymbolVisual=!0,o}return t.prototype.getInitialData=function(o){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(o){var s=new Group$3,l=createSymbol("line",0,o.itemHeight/2,o.itemWidth,0,o.lineStyle.stroke,!1);s.add(l),l.setStyle(o.lineStyle);var h=this.getData().getVisual("symbol"),v=this.getData().getVisual("symbolRotate"),x=h==="none"?"circle":h,T=o.itemHeight*.8,w=createSymbol(x,(o.itemWidth-T)/2,(o.itemHeight-T)/2,T,T,o.itemStyle.fill);s.add(w),w.setStyle(o.itemStyle);var C=o.iconRotate==="inherit"?v:o.iconRotate||0;return w.rotation=C*Math.PI/180,w.setOrigin([o.itemWidth/2,o.itemHeight/2]),x.indexOf("empty")>-1&&(w.style.stroke=w.style.fill,w.style.fill="#fff",w.style.lineWidth=2),s},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel(r,t){var o=r.mapDimensionsAll("defaultedLabel"),s=o.length;if(s===1){var l=retrieveRawValue(r,t,o[0]);return l!=null?l+"":null}else if(s){for(var h=[],v=0;v<o.length;v++)h.push(retrieveRawValue(r,t,o[v]));return h.join(" ")}}function getDefaultInterpolatedLabel(r,t){var o=r.mapDimensionsAll("defaultedLabel");if(!isArray$1(t))return t+"";for(var s=[],l=0;l<o.length;l++){var h=r.getDimensionIndex(o[l]);h>=0&&s.push(t[h])}return s.join(" ")}var Symbol$1=function(r){__extends(t,r);function t(o,s,l,h){var v=r.call(this)||this;return v.updateData(o,s,l,h),v}return t.prototype._createSymbol=function(o,s,l,h,v){this.removeAll();var x=createSymbol(o,-1,-1,2,2,null,v);x.attr({z2:100,culling:!0,scaleX:h[0]/2,scaleY:h[1]/2}),x.drift=driftSymbol,this._symbolType=o,this.add(x)},t.prototype.stopSymbolAnimation=function(o){this.childAt(0).stopAnimation(null,o)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){enterEmphasis(this.childAt(0))},t.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},t.prototype.setZ=function(o,s){var l=this.childAt(0);l.zlevel=o,l.z=s},t.prototype.setDraggable=function(o,s){var l=this.childAt(0);l.draggable=o,l.cursor=!s&&o?"move":l.cursor},t.prototype.updateData=function(o,s,l,h){this.silent=!1;var v=o.getItemVisual(s,"symbol")||"circle",x=o.hostModel,T=t.getSymbolSize(o,s),w=v!==this._symbolType,C=h&&h.disableAnimation;if(w){var M=o.getItemVisual(s,"symbolKeepAspect");this._createSymbol(v,o,s,T,M)}else{var V=this.childAt(0);V.silent=!1;var z={scaleX:T[0]/2,scaleY:T[1]/2};C?V.attr(z):updateProps$1(V,z,x,s),saveOldStyle(V)}if(this._updateCommon(o,s,T,l,h),w){var V=this.childAt(0);if(!C){var z={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:V.style.opacity}};V.scaleX=V.scaleY=0,V.style.opacity=0,initProps(V,z,x,s)}}C&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(o,s,l,h,v){var x=this.childAt(0),T=o.hostModel,w,C,M,V,z,F,B,W,Y;if(h&&(w=h.emphasisItemStyle,C=h.blurItemStyle,M=h.selectItemStyle,V=h.focus,z=h.blurScope,B=h.labelStatesModels,W=h.hoverScale,Y=h.cursorStyle,F=h.emphasisDisabled),!h||o.hasItemOption){var Z=h&&h.itemModel?h.itemModel:o.getItemModel(s),X=Z.getModel("emphasis");w=X.getModel("itemStyle").getItemStyle(),M=Z.getModel(["select","itemStyle"]).getItemStyle(),C=Z.getModel(["blur","itemStyle"]).getItemStyle(),V=X.get("focus"),z=X.get("blurScope"),F=X.get("disabled"),B=getLabelStatesModels(Z),W=X.getShallow("scale"),Y=Z.getShallow("cursor")}var te=o.getItemVisual(s,"symbolRotate");x.attr("rotation",(te||0)*Math.PI/180||0);var oe=normalizeSymbolOffset(o.getItemVisual(s,"symbolOffset"),l);oe&&(x.x=oe[0],x.y=oe[1]),Y&&x.attr("cursor",Y);var ae=o.getItemVisual(s,"style"),le=ae.fill;if(x instanceof ZRImage$1){var he=x.style;x.useStyle(extend({image:he.image,x:he.x,y:he.y,width:he.width,height:he.height},ae))}else x.__isEmptyBrush?x.useStyle(extend({},ae)):x.useStyle(ae),x.style.decal=null,x.setColor(le,v&&v.symbolInnerColor),x.style.strokeNoScale=!0;var me=o.getItemVisual(s,"liftZ"),_e=this._z2;me!=null?_e==null&&(this._z2=x.z2,x.z2+=me):_e!=null&&(x.z2=_e,this._z2=null);var ye=v&&v.useNameLabel;setLabelStyle(x,B,{labelFetcher:T,labelDataIndex:s,defaultText:Se,inheritColor:le,defaultOpacity:ae.opacity});function Se(Ee){return ye?o.getName(Ee):getDefaultLabel(o,Ee)}this._sizeX=l[0]/2,this._sizeY=l[1]/2;var Te=x.ensureState("emphasis");Te.style=w,x.ensureState("select").style=M,x.ensureState("blur").style=C;var we=W==null||W===!0?Math.max(1.1,3/this._sizeY):isFinite(W)&&W>0?+W:1;Te.scaleX=this._sizeX*we,Te.scaleY=this._sizeY*we,this.setSymbolScale(1),toggleHoverEmphasis(this,V,z,F)},t.prototype.setSymbolScale=function(o){this.scaleX=this.scaleY=o},t.prototype.fadeOut=function(o,s,l){var h=this.childAt(0),v=getECData(this).dataIndex,x=l&&l.animation;if(this.silent=h.silent=!0,l&&l.fadeLabel){var T=h.getTextContent();T&&removeElement(T,{style:{opacity:0}},s,{dataIndex:v,removeOpt:x,cb:function(){h.removeTextContent()}})}else h.removeTextContent();removeElement(h,{style:{opacity:0},scaleX:0,scaleY:0},s,{dataIndex:v,cb:o,removeOpt:x})},t.getSymbolSize=function(o,s){return normalizeSymbolSize(o.getItemVisual(s,"symbolSize"))},t}(Group$3);function driftSymbol(r,t){this.parent.drift(r,t)}const SymbolClz=Symbol$1;function symbolNeedsDraw(r,t,o,s){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(s.isIgnore&&s.isIgnore(o))&&!(s.clipShape&&!s.clipShape.contain(t[0],t[1]))&&r.getItemVisual(o,"symbol")!=="none"}function normalizeUpdateOpt(r){return r!=null&&!isObject$3(r)&&(r={isIgnore:r}),r||{}}function makeSeriesScope(r){var t=r.hostModel,o=t.getModel("emphasis");return{emphasisItemStyle:o.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:o.get("focus"),blurScope:o.get("blurScope"),emphasisDisabled:o.get("disabled"),hoverScale:o.get("scale"),labelStatesModels:getLabelStatesModels(t),cursorStyle:t.get("cursor")}}var SymbolDraw=function(){function r(t){this.group=new Group$3,this._SymbolCtor=t||SymbolClz}return r.prototype.updateData=function(t,o){this._progressiveEls=null,o=normalizeUpdateOpt(o);var s=this.group,l=t.hostModel,h=this._data,v=this._SymbolCtor,x=o.disableAnimation,T=makeSeriesScope(t),w={disableAnimation:x},C=o.getSymbolPoint||function(M){return t.getItemLayout(M)};h||s.removeAll(),t.diff(h).add(function(M){var V=C(M);if(symbolNeedsDraw(t,V,M,o)){var z=new v(t,M,T,w);z.setPosition(V),t.setItemGraphicEl(M,z),s.add(z)}}).update(function(M,V){var z=h.getItemGraphicEl(V),F=C(M);if(!symbolNeedsDraw(t,F,M,o)){s.remove(z);return}var B=t.getItemVisual(M,"symbol")||"circle",W=z&&z.getSymbolType&&z.getSymbolType();if(!z||W&&W!==B)s.remove(z),z=new v(t,M,T,w),z.setPosition(F);else{z.updateData(t,M,T,w);var Y={x:F[0],y:F[1]};x?z.attr(Y):updateProps$1(z,Y,l)}s.add(z),t.setItemGraphicEl(M,z)}).remove(function(M){var V=h.getItemGraphicEl(M);V&&V.fadeOut(function(){s.remove(V)},l)}).execute(),this._getSymbolPoint=C,this._data=t},r.prototype.updateLayout=function(){var t=this,o=this._data;o&&o.eachItemGraphicEl(function(s,l){var h=t._getSymbolPoint(l);s.setPosition(h),s.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=makeSeriesScope(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,o,s){this._progressiveEls=[],s=normalizeUpdateOpt(s);function l(T){T.isGroup||(T.incremental=!0,T.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var v=o.getItemLayout(h);if(symbolNeedsDraw(o,v,h,s)){var x=new this._SymbolCtor(o,h,this._seriesScope);x.traverse(l),x.setPosition(v),this.group.add(x),o.setItemGraphicEl(h,x),this._progressiveEls.push(x)}}},r.prototype.eachRendered=function(t){traverseElements(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var o=this.group,s=this._data;s&&t?s.eachItemGraphicEl(function(l){l.fadeOut(function(){o.remove(l)},s.hostModel)}):o.removeAll()},r}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(r,t,o){var s=r.getBaseAxis(),l=r.getOtherAxis(s),h=getValueStart(l,o),v=s.dim,x=l.dim,T=t.mapDimension(x),w=t.mapDimension(v),C=x==="x"||x==="radius"?1:0,M=map$2(r.dimensions,function(F){return t.mapDimension(F)}),V=!1,z=t.getCalculationInfo("stackResultDimension");return isDimensionStacked(t,M[0])&&(V=!0,M[0]=z),isDimensionStacked(t,M[1])&&(V=!0,M[1]=z),{dataDimsForPoint:M,valueStart:h,valueAxisDim:x,baseAxisDim:v,stacked:!!V,valueDim:T,baseDim:w,baseDataOffset:C,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function getValueStart(r,t){var o=0,s=r.scale.getExtent();return t==="start"?o=s[0]:t==="end"?o=s[1]:isNumber(t)&&!isNaN(t)?o=t:s[0]>0?o=s[0]:s[1]<0&&(o=s[1]),o}function getStackedOnPoint(r,t,o,s){var l=NaN;r.stacked&&(l=o.get(o.getCalculationInfo("stackedOverDimension"),s)),isNaN(l)&&(l=r.valueStart);var h=r.baseDataOffset,v=[];return v[h]=o.get(r.baseDim,s),v[1-h]=l,t.dataToPoint(v)}function diffData(r,t){var o=[];return t.diff(r).add(function(s){o.push({cmd:"+",idx:s})}).update(function(s,l){o.push({cmd:"=",idx:l,idx1:s})}).remove(function(s){o.push({cmd:"-",idx:s})}).execute(),o}function lineAnimationDiff(r,t,o,s,l,h,v,x){for(var T=diffData(r,t),w=[],C=[],M=[],V=[],z=[],F=[],B=[],W=prepareDataCoordInfo(l,t,v),Y=r.getLayout("points")||[],Z=t.getLayout("points")||[],X=0;X<T.length;X++){var te=T[X],oe=!0,ae=void 0,le=void 0;switch(te.cmd){case"=":ae=te.idx*2,le=te.idx1*2;var he=Y[ae],me=Y[ae+1],_e=Z[le],ye=Z[le+1];(isNaN(he)||isNaN(me))&&(he=_e,me=ye),w.push(he,me),C.push(_e,ye),M.push(o[ae],o[ae+1]),V.push(s[le],s[le+1]),B.push(t.getRawIndex(te.idx1));break;case"+":var Se=te.idx,Te=W.dataDimsForPoint,we=l.dataToPoint([t.get(Te[0],Se),t.get(Te[1],Se)]);le=Se*2,w.push(we[0],we[1]),C.push(Z[le],Z[le+1]);var Ee=getStackedOnPoint(W,l,t,Se);M.push(Ee[0],Ee[1]),V.push(s[le],s[le+1]),B.push(t.getRawIndex(Se));break;case"-":oe=!1}oe&&(z.push(te),F.push(F.length))}F.sort(function(ct,Qe){return B[ct]-B[Qe]});for(var Ce=w.length,ke=createFloat32Array(Ce),Me=createFloat32Array(Ce),Ie=createFloat32Array(Ce),$e=createFloat32Array(Ce),Ge=[],X=0;X<F.length;X++){var He=F[X],We=X*2,Ze=He*2;ke[We]=w[Ze],ke[We+1]=w[Ze+1],Me[We]=C[Ze],Me[We+1]=C[Ze+1],Ie[We]=M[Ze],Ie[We+1]=M[Ze+1],$e[We]=V[Ze],$e[We+1]=V[Ze+1],Ge[X]=z[He]}return{current:ke,next:Me,stackedOnCurrent:Ie,stackedOnNext:$e,status:Ge}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1(r,t){return isNaN(r)||isNaN(t)}function drawSegment(r,t,o,s,l,h,v,x,T){for(var w,C,M,V,z,F,B=o,W=0;W<s;W++){var Y=t[B*2],Z=t[B*2+1];if(B>=l||B<0)break;if(isPointNull$1(Y,Z)){if(T){B+=h;continue}break}if(B===o)r[h>0?"moveTo":"lineTo"](Y,Z),M=Y,V=Z;else{var X=Y-w,te=Z-C;if(X*X+te*te<.5){B+=h;continue}if(v>0){for(var oe=B+h,ae=t[oe*2],le=t[oe*2+1];ae===Y&&le===Z&&W<s;)W++,oe+=h,B+=h,ae=t[oe*2],le=t[oe*2+1],Y=t[B*2],Z=t[B*2+1],X=Y-w,te=Z-C;var he=W+1;if(T)for(;isPointNull$1(ae,le)&&he<s;)he++,oe+=h,ae=t[oe*2],le=t[oe*2+1];var me=.5,_e=0,ye=0,Se=void 0,Te=void 0;if(he>=s||isPointNull$1(ae,le))z=Y,F=Z;else{_e=ae-w,ye=le-C;var we=Y-w,Ee=ae-Y,Ce=Z-C,ke=le-Z,Me=void 0,Ie=void 0;if(x==="x"){Me=Math.abs(we),Ie=Math.abs(Ee);var $e=_e>0?1:-1;z=Y-$e*Me*v,F=Z,Se=Y+$e*Ie*v,Te=Z}else if(x==="y"){Me=Math.abs(Ce),Ie=Math.abs(ke);var Ge=ye>0?1:-1;z=Y,F=Z-Ge*Me*v,Se=Y,Te=Z+Ge*Ie*v}else Me=Math.sqrt(we*we+Ce*Ce),Ie=Math.sqrt(Ee*Ee+ke*ke),me=Ie/(Ie+Me),z=Y-_e*v*(1-me),F=Z-ye*v*(1-me),Se=Y+_e*v*me,Te=Z+ye*v*me,Se=mathMin$3(Se,mathMax$3(ae,Y)),Te=mathMin$3(Te,mathMax$3(le,Z)),Se=mathMax$3(Se,mathMin$3(ae,Y)),Te=mathMax$3(Te,mathMin$3(le,Z)),_e=Se-Y,ye=Te-Z,z=Y-_e*Me/Ie,F=Z-ye*Me/Ie,z=mathMin$3(z,mathMax$3(w,Y)),F=mathMin$3(F,mathMax$3(C,Z)),z=mathMax$3(z,mathMin$3(w,Y)),F=mathMax$3(F,mathMin$3(C,Z)),_e=Y-z,ye=Z-F,Se=Y+_e*Ie/Me,Te=Z+ye*Ie/Me}r.bezierCurveTo(M,V,z,F,Y,Z),M=Se,V=Te}else r.lineTo(Y,Z)}w=Y,C=Z,B+=h}return W}var ECPolylineShape=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ECPolyline=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="ec-polyline",s}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ECPolylineShape},t.prototype.buildPath=function(o,s){var l=s.points,h=0,v=l.length/2;if(s.connectNulls){for(;v>0&&isPointNull$1(l[v*2-2],l[v*2-1]);v--);for(;h<v&&isPointNull$1(l[h*2],l[h*2+1]);h++);}for(;h<v;)h+=drawSegment(o,l,h,v,v,1,s.smooth,s.smoothMonotone,s.connectNulls)+1},t.prototype.getPointOn=function(o,s){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var l=this.path,h=l.data,v=PathProxy$1.CMD,x,T,w=s==="x",C=[],M=0;M<h.length;){var V=h[M++],z=void 0,F=void 0,B=void 0,W=void 0,Y=void 0,Z=void 0,X=void 0;switch(V){case v.M:x=h[M++],T=h[M++];break;case v.L:if(z=h[M++],F=h[M++],X=w?(o-x)/(z-x):(o-T)/(F-T),X<=1&&X>=0){var te=w?(F-T)*X+T:(z-x)*X+x;return w?[o,te]:[te,o]}x=z,T=F;break;case v.C:z=h[M++],F=h[M++],B=h[M++],W=h[M++],Y=h[M++],Z=h[M++];var oe=w?cubicRootAt(x,z,B,Y,o,C):cubicRootAt(T,F,W,Z,o,C);if(oe>0)for(var ae=0;ae<oe;ae++){var le=C[ae];if(le<=1&&le>=0){var te=w?cubicAt(T,F,W,Z,le):cubicAt(x,z,B,Y,le);return w?[o,te]:[te,o]}}x=Y,T=Z;break}}},t}(Path$1),ECPolygonShape=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ECPolylineShape),ECPolygon=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="ec-polygon",s}return t.prototype.getDefaultShape=function(){return new ECPolygonShape},t.prototype.buildPath=function(o,s){var l=s.points,h=s.stackedOnPoints,v=0,x=l.length/2,T=s.smoothMonotone;if(s.connectNulls){for(;x>0&&isPointNull$1(l[x*2-2],l[x*2-1]);x--);for(;v<x&&isPointNull$1(l[v*2],l[v*2+1]);v++);}for(;v<x;){var w=drawSegment(o,l,v,x,x,1,s.smooth,T,s.connectNulls);drawSegment(o,h,v+w-1,w,x,-1,s.stackedOnSmooth,T,s.connectNulls),v+=w+1,o.closePath()}},t}(Path$1);function createGridClipPath(r,t,o,s,l){var h=r.getArea(),v=h.x,x=h.y,T=h.width,w=h.height,C=o.get(["lineStyle","width"])||2;v-=C/2,x-=C/2,T+=C,w+=C,v=Math.floor(v),T=Math.round(T);var M=new Rect$2({shape:{x:v,y:x,width:T,height:w}});if(t){var V=r.getBaseAxis(),z=V.isHorizontal(),F=V.inverse;z?(F&&(M.shape.x+=T),M.shape.width=0):(F||(M.shape.y+=w),M.shape.height=0);var B=isFunction(l)?function(W){l(W,M)}:null;initProps(M,{shape:{width:T,height:w,x:v,y:x}},o,null,s,B)}return M}function createPolarClipPath(r,t,o){var s=r.getArea(),l=round$1(s.r0,1),h=round$1(s.r,1),v=new Sector$1({shape:{cx:round$1(r.cx,1),cy:round$1(r.cy,1),r0:l,r:h,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}});if(t){var x=r.getBaseAxis().dim==="angle";x?v.shape.endAngle=s.startAngle:v.shape.r=l,initProps(v,{shape:{endAngle:s.endAngle,r:h}},o)}return v}function createClipPath(r,t,o,s,l){if(r){if(r.type==="polar")return createPolarClipPath(r,t,o);if(r.type==="cartesian2d")return createGridClipPath(r,t,o,s,l)}else return null;return null}function isCoordinateSystemType(r,t){return r.type===t}function isPointsSame(r,t){if(r.length===t.length){for(var o=0;o<r.length;o++)if(r[o]!==t[o])return;return!0}}function bboxFromPoints(r){for(var t=1/0,o=1/0,s=-1/0,l=-1/0,h=0;h<r.length;){var v=r[h++],x=r[h++];isNaN(v)||(t=Math.min(v,t),s=Math.max(v,s)),isNaN(x)||(o=Math.min(x,o),l=Math.max(x,l))}return[[t,o],[s,l]]}function getBoundingDiff(r,t){var o=bboxFromPoints(r),s=o[0],l=o[1],h=bboxFromPoints(t),v=h[0],x=h[1];return Math.max(Math.abs(s[0]-v[0]),Math.abs(s[1]-v[1]),Math.abs(l[0]-x[0]),Math.abs(l[1]-x[1]))}function getSmooth(r){return isNumber(r)?r:r?.5:0}function getStackedOnPoints(r,t,o){if(!o.valueDim)return[];for(var s=t.count(),l=createFloat32Array(s*2),h=0;h<s;h++){var v=getStackedOnPoint(o,r,t,h);l[h*2]=v[0],l[h*2+1]=v[1]}return l}function turnPointsIntoStep(r,t,o,s){var l=t.getBaseAxis(),h=l.dim==="x"||l.dim==="radius"?0:1,v=[],x=0,T=[],w=[],C=[],M=[];if(s){for(x=0;x<r.length;x+=2)!isNaN(r[x])&&!isNaN(r[x+1])&&M.push(r[x],r[x+1]);r=M}for(x=0;x<r.length-2;x+=2)switch(C[0]=r[x+2],C[1]=r[x+3],w[0]=r[x],w[1]=r[x+1],v.push(w[0],w[1]),o){case"end":T[h]=C[h],T[1-h]=w[1-h],v.push(T[0],T[1]);break;case"middle":var V=(w[h]+C[h])/2,z=[];T[h]=z[h]=V,T[1-h]=w[1-h],z[1-h]=C[1-h],v.push(T[0],T[1]),v.push(z[0],z[1]);break;default:T[h]=w[h],T[1-h]=C[1-h],v.push(T[0],T[1])}return v.push(r[x++],r[x++]),v}function clipColorStops(r,t){var o=[],s=r.length,l,h;function v(C,M,V){var z=C.coord,F=(V-z)/(M.coord-z),B=lerp(F,[C.color,M.color]);return{coord:V,color:B}}for(var x=0;x<s;x++){var T=r[x],w=T.coord;if(w<0)l=T;else if(w>t){h?o.push(v(h,T,t)):l&&o.push(v(l,T,0),v(l,T,t));break}else l&&(o.push(v(l,T,0)),l=null),o.push(T),h=T}return o}function getVisualGradient(r,t,o){var s=r.getVisual("visualMeta");if(!(!s||!s.length||!r.count())&&t.type==="cartesian2d"){for(var l,h,v=s.length-1;v>=0;v--){var x=r.getDimensionInfo(s[v].dimension);if(l=x&&x.coordDim,l==="x"||l==="y"){h=s[v];break}}if(h){var T=t.getAxis(l),w=map$2(h.stops,function(X){return{coord:T.toGlobalCoord(T.dataToCoord(X.value)),color:X.color}}),C=w.length,M=h.outerColors.slice();C&&w[0].coord>w[C-1].coord&&(w.reverse(),M.reverse());var V=clipColorStops(w,l==="x"?o.getWidth():o.getHeight()),z=V.length;if(!z&&C)return w[0].coord<0?M[1]?M[1]:w[C-1].color:M[0]?M[0]:w[0].color;var F=10,B=V[0].coord-F,W=V[z-1].coord+F,Y=W-B;if(Y<.001)return"transparent";each$c(V,function(X){X.offset=(X.coord-B)/Y}),V.push({offset:z?V[z-1].offset:.5,color:M[1]||"transparent"}),V.unshift({offset:z?V[0].offset:.5,color:M[0]||"transparent"});var Z=new LinearGradient$1(0,0,0,0,V,!0);return Z[l]=B,Z[l+"2"]=W,Z}}}function getIsIgnoreFunc(r,t,o){var s=r.get("showAllSymbol"),l=s==="auto";if(!(s&&!l)){var h=o.getAxesByScale("ordinal")[0];if(h&&!(l&&canShowAllSymbolForCategory(h,t))){var v=t.mapDimension(h.dim),x={};return each$c(h.getViewLabels(),function(T){var w=h.scale.getRawOrdinalNumber(T.tickValue);x[w]=1}),function(T){return!x.hasOwnProperty(t.get(v,T))}}}}function canShowAllSymbolForCategory(r,t){var o=r.getExtent(),s=Math.abs(o[1]-o[0])/r.scale.count();isNaN(s)&&(s=0);for(var l=t.count(),h=Math.max(1,Math.round(l/5)),v=0;v<l;v+=h)if(SymbolClz.getSymbolSize(t,v)[r.isHorizontal()?1:0]*1.5>s)return!1;return!0}function isPointNull(r,t){return isNaN(r)||isNaN(t)}function getLastIndexNotNull(r){for(var t=r.length/2;t>0&&isPointNull(r[t*2-2],r[t*2-1]);t--);return t-1}function getPointAtIndex(r,t){return[r[t*2],r[t*2+1]]}function getIndexRange(r,t,o){for(var s=r.length/2,l=o==="x"?0:1,h,v,x=0,T=-1,w=0;w<s;w++)if(v=r[w*2+l],!(isNaN(v)||isNaN(r[w*2+1-l]))){if(w===0){h=v;continue}if(h<=t&&v>=t||h>=t&&v<=t){T=w;break}x=w,h=v}return{range:[x,T],t:(t-h)/(v-h)}}function anyStateShowEndLabel(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<SPECIAL_STATES.length;t++)if(r.get([SPECIAL_STATES[t],"endLabel","show"]))return!0;return!1}function createLineClipPath(r,t,o,s){if(isCoordinateSystemType(t,"cartesian2d")){var l=s.getModel("endLabel"),h=l.get("valueAnimation"),v=s.getData(),x={lastFrameIndex:0},T=anyStateShowEndLabel(s)?function(z,F){r._endLabelOnDuring(z,F,v,x,h,l,t)}:null,w=t.getBaseAxis().isHorizontal(),C=createGridClipPath(t,o,s,function(){var z=r._endLabel;z&&o&&x.originalX!=null&&z.attr({x:x.originalX,y:x.originalY})},T);if(!s.get("clip",!0)){var M=C.shape,V=Math.max(M.width,M.height);w?(M.y-=V,M.height+=V*2):(M.x-=V,M.width+=V*2)}return T&&T(1,C),C}else return createPolarClipPath(t,o,s)}function getEndLabelStateSpecified(r,t){var o=t.getBaseAxis(),s=o.isHorizontal(),l=o.inverse,h=s?l?"right":"left":"center",v=s?"middle":l?"top":"bottom";return{normal:{align:r.get("align")||h,verticalAlign:r.get("verticalAlign")||v}}}var LineView=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var o=new Group$3,s=new SymbolDraw$1;this.group.add(s.group),this._symbolDraw=s,this._lineGroup=o},t.prototype.render=function(o,s,l){var h=this,v=o.coordinateSystem,x=this.group,T=o.getData(),w=o.getModel("lineStyle"),C=o.getModel("areaStyle"),M=T.getLayout("points")||[],V=v.type==="polar",z=this._coordSys,F=this._symbolDraw,B=this._polyline,W=this._polygon,Y=this._lineGroup,Z=!s.ssr&&o.isAnimationEnabled(),X=!C.isEmpty(),te=C.get("origin"),oe=prepareDataCoordInfo(v,T,te),ae=X&&getStackedOnPoints(v,T,oe),le=o.get("showSymbol"),he=o.get("connectNulls"),me=le&&!V&&getIsIgnoreFunc(o,T,v),_e=this._data;_e&&_e.eachItemGraphicEl(function(Qe,mt){Qe.__temp&&(x.remove(Qe),_e.setItemGraphicEl(mt,null))}),le||F.remove(),x.add(Y);var ye=V?!1:o.get("step"),Se;v&&v.getArea&&o.get("clip",!0)&&(Se=v.getArea(),Se.width!=null?(Se.x-=.1,Se.y-=.1,Se.width+=.2,Se.height+=.2):Se.r0&&(Se.r0-=.5,Se.r+=.5)),this._clipShapeForSymbol=Se;var Te=getVisualGradient(T,v,l)||T.getVisual("style")[T.getVisual("drawType")];if(!(B&&z.type===v.type&&ye===this._step))le&&F.updateData(T,{isIgnore:me,clipShape:Se,disableAnimation:!0,getSymbolPoint:function(Qe){return[M[Qe*2],M[Qe*2+1]]}}),Z&&this._initSymbolLabelAnimation(T,v,Se),ye&&(M=turnPointsIntoStep(M,v,ye,he),ae&&(ae=turnPointsIntoStep(ae,v,ye,he))),B=this._newPolyline(M),X?W=this._newPolygon(M,ae):W&&(Y.remove(W),W=this._polygon=null),V||this._initOrUpdateEndLabel(o,v,convertToColorString(Te)),Y.setClipPath(createLineClipPath(this,v,!0,o));else{X&&!W?W=this._newPolygon(M,ae):W&&!X&&(Y.remove(W),W=this._polygon=null),V||this._initOrUpdateEndLabel(o,v,convertToColorString(Te));var we=Y.getClipPath();if(we){var Ee=createLineClipPath(this,v,!1,o);initProps(we,{shape:Ee.shape},o)}else Y.setClipPath(createLineClipPath(this,v,!0,o));le&&F.updateData(T,{isIgnore:me,clipShape:Se,disableAnimation:!0,getSymbolPoint:function(Qe){return[M[Qe*2],M[Qe*2+1]]}}),(!isPointsSame(this._stackedOnPoints,ae)||!isPointsSame(this._points,M))&&(Z?this._doUpdateAnimation(T,ae,v,l,ye,te,he):(ye&&(M=turnPointsIntoStep(M,v,ye,he),ae&&(ae=turnPointsIntoStep(ae,v,ye,he))),B.setShape({points:M}),W&&W.setShape({points:M,stackedOnPoints:ae})))}var Ce=o.getModel("emphasis"),ke=Ce.get("focus"),Me=Ce.get("blurScope"),Ie=Ce.get("disabled");if(B.useStyle(defaults(w.getLineStyle(),{fill:"none",stroke:Te,lineJoin:"bevel"})),setStatesStylesFromModel(B,o,"lineStyle"),B.style.lineWidth>0&&o.get(["emphasis","lineStyle","width"])==="bolder"){var $e=B.getState("emphasis").style;$e.lineWidth=+B.style.lineWidth+1}getECData(B).seriesIndex=o.seriesIndex,toggleHoverEmphasis(B,ke,Me,Ie);var Ge=getSmooth(o.get("smooth")),He=o.get("smoothMonotone");if(B.setShape({smooth:Ge,smoothMonotone:He,connectNulls:he}),W){var We=T.getCalculationInfo("stackedOnSeries"),Ze=0;W.useStyle(defaults(C.getAreaStyle(),{fill:Te,opacity:.7,lineJoin:"bevel",decal:T.getVisual("style").decal})),We&&(Ze=getSmooth(We.get("smooth"))),W.setShape({smooth:Ge,stackedOnSmooth:Ze,smoothMonotone:He,connectNulls:he}),setStatesStylesFromModel(W,o,"areaStyle"),getECData(W).seriesIndex=o.seriesIndex,toggleHoverEmphasis(W,ke,Me,Ie)}var ct=function(Qe){h._changePolyState(Qe)};T.eachItemGraphicEl(function(Qe){Qe&&(Qe.onHoverStateChange=ct)}),this._polyline.onHoverStateChange=ct,this._data=T,this._coordSys=v,this._stackedOnPoints=ae,this._points=M,this._step=ye,this._valueOrigin=te,o.get("triggerLineEvent")&&(this.packEventData(o,B),W&&this.packEventData(o,W))},t.prototype.packEventData=function(o,s){getECData(s).eventData={componentType:"series",componentSubType:"line",componentIndex:o.componentIndex,seriesIndex:o.seriesIndex,seriesName:o.name,seriesType:"line"}},t.prototype.highlight=function(o,s,l,h){var v=o.getData(),x=queryDataIndex(v,h);if(this._changePolyState("emphasis"),!(x instanceof Array)&&x!=null&&x>=0){var T=v.getLayout("points"),w=v.getItemGraphicEl(x);if(!w){var C=T[x*2],M=T[x*2+1];if(isNaN(C)||isNaN(M)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(C,M))return;var V=o.get("zlevel")||0,z=o.get("z")||0;w=new SymbolClz(v,x),w.x=C,w.y=M,w.setZ(V,z);var F=w.getSymbolPath().getTextContent();F&&(F.zlevel=V,F.z=z,F.z2=this._polyline.z2+1),w.__temp=!0,v.setItemGraphicEl(x,w),w.stopSymbolAnimation(!0),this.group.add(w)}w.highlight()}else ChartView$1.prototype.highlight.call(this,o,s,l,h)},t.prototype.downplay=function(o,s,l,h){var v=o.getData(),x=queryDataIndex(v,h);if(this._changePolyState("normal"),x!=null&&x>=0){var T=v.getItemGraphicEl(x);T&&(T.__temp?(v.setItemGraphicEl(x,null),this.group.remove(T)):T.downplay())}else ChartView$1.prototype.downplay.call(this,o,s,l,h)},t.prototype._changePolyState=function(o){var s=this._polygon;setStatesFlag(this._polyline,o),s&&setStatesFlag(s,o)},t.prototype._newPolyline=function(o){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new ECPolyline({shape:{points:o},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},t.prototype._newPolygon=function(o,s){var l=this._polygon;return l&&this._lineGroup.remove(l),l=new ECPolygon({shape:{points:o,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(l),this._polygon=l,l},t.prototype._initSymbolLabelAnimation=function(o,s,l){var h,v,x=s.getBaseAxis(),T=x.inverse;s.type==="cartesian2d"?(h=x.isHorizontal(),v=!1):s.type==="polar"&&(h=x.dim==="angle",v=!0);var w=o.hostModel,C=w.get("animationDuration");isFunction(C)&&(C=C(null));var M=w.get("animationDelay")||0,V=isFunction(M)?M(null):M;o.eachItemGraphicEl(function(z,F){var B=z;if(B){var W=[z.x,z.y],Y=void 0,Z=void 0,X=void 0;if(l)if(v){var te=l,oe=s.pointToCoord(W);h?(Y=te.startAngle,Z=te.endAngle,X=-oe[1]/180*Math.PI):(Y=te.r0,Z=te.r,X=oe[0])}else{var ae=l;h?(Y=ae.x,Z=ae.x+ae.width,X=z.x):(Y=ae.y+ae.height,Z=ae.y,X=z.y)}var le=Z===Y?0:(X-Y)/(Z-Y);T&&(le=1-le);var he=isFunction(M)?M(F):C*le+V,me=B.getSymbolPath(),_e=me.getTextContent();B.attr({scaleX:0,scaleY:0}),B.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:he}),_e&&_e.animateFrom({style:{opacity:0}},{duration:300,delay:he}),me.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(o,s,l){var h=o.getModel("endLabel");if(anyStateShowEndLabel(o)){var v=o.getData(),x=this._polyline,T=v.getLayout("points");if(!T){x.removeTextContent(),this._endLabel=null;return}var w=this._endLabel;w||(w=this._endLabel=new ZRText$1({z2:200}),w.ignoreClip=!0,x.setTextContent(this._endLabel),x.disableLabelAnimation=!0);var C=getLastIndexNotNull(T);C>=0&&(setLabelStyle(x,getLabelStatesModels(o,"endLabel"),{inheritColor:l,labelFetcher:o,labelDataIndex:C,defaultText:function(M,V,z){return z!=null?getDefaultInterpolatedLabel(v,z):getDefaultLabel(v,M)},enableTextSetter:!0},getEndLabelStateSpecified(h,s)),x.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(o,s,l,h,v,x,T){var w=this._endLabel,C=this._polyline;if(w){o<1&&h.originalX==null&&(h.originalX=w.x,h.originalY=w.y);var M=l.getLayout("points"),V=l.hostModel,z=V.get("connectNulls"),F=x.get("precision"),B=x.get("distance")||0,W=T.getBaseAxis(),Y=W.isHorizontal(),Z=W.inverse,X=s.shape,te=Z?Y?X.x:X.y+X.height:Y?X.x+X.width:X.y,oe=(Y?B:0)*(Z?-1:1),ae=(Y?0:-B)*(Z?-1:1),le=Y?"x":"y",he=getIndexRange(M,te,le),me=he.range,_e=me[1]-me[0],ye=void 0;if(_e>=1){if(_e>1&&!z){var Se=getPointAtIndex(M,me[0]);w.attr({x:Se[0]+oe,y:Se[1]+ae}),v&&(ye=V.getRawValue(me[0]))}else{var Se=C.getPointOn(te,le);Se&&w.attr({x:Se[0]+oe,y:Se[1]+ae});var Te=V.getRawValue(me[0]),we=V.getRawValue(me[1]);v&&(ye=interpolateRawValues(l,F,Te,we,he.t))}h.lastFrameIndex=me[0]}else{var Ee=o===1||h.lastFrameIndex>0?me[0]:0,Se=getPointAtIndex(M,Ee);v&&(ye=V.getRawValue(Ee)),w.attr({x:Se[0]+oe,y:Se[1]+ae})}v&&labelInner(w).setLabelText(ye)}},t.prototype._doUpdateAnimation=function(o,s,l,h,v,x,T){var w=this._polyline,C=this._polygon,M=o.hostModel,V=lineAnimationDiff(this._data,o,this._stackedOnPoints,s,this._coordSys,l,this._valueOrigin),z=V.current,F=V.stackedOnCurrent,B=V.next,W=V.stackedOnNext;if(v&&(z=turnPointsIntoStep(V.current,l,v,T),F=turnPointsIntoStep(V.stackedOnCurrent,l,v,T),B=turnPointsIntoStep(V.next,l,v,T),W=turnPointsIntoStep(V.stackedOnNext,l,v,T)),getBoundingDiff(z,B)>3e3||C&&getBoundingDiff(F,W)>3e3){w.stopAnimation(),w.setShape({points:B}),C&&(C.stopAnimation(),C.setShape({points:B,stackedOnPoints:W}));return}w.shape.__points=V.current,w.shape.points=z;var Y={shape:{points:B}};V.current!==z&&(Y.shape.__points=V.next),w.stopAnimation(),updateProps$1(w,Y,M),C&&(C.setShape({points:z,stackedOnPoints:F}),C.stopAnimation(),updateProps$1(C,{shape:{stackedOnPoints:W}},M),w.shape.points!==C.shape.points&&(C.shape.points=w.shape.points));for(var Z=[],X=V.status,te=0;te<X.length;te++){var oe=X[te].cmd;if(oe==="="){var ae=o.getItemGraphicEl(X[te].idx1);ae&&Z.push({el:ae,ptIdx:te})}}w.animators&&w.animators.length&&w.animators[0].during(function(){C&&C.dirtyShape();for(var le=w.shape.__points,he=0;he<Z.length;he++){var me=Z[he].el,_e=Z[he].ptIdx*2;me.x=le[_e],me.y=le[_e+1],me.markRedraw()}})},t.prototype.remove=function(o){var s=this.group,l=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),l&&l.eachItemGraphicEl(function(h,v){h.__temp&&(s.remove(h),l.setItemGraphicEl(v,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ChartView$1);const LineView$1=LineView;function pointsLayout(r,t){return{seriesType:r,plan:createRenderPlanner(),reset:function(o){var s=o.getData(),l=o.coordinateSystem,h=o.pipelineContext,v=t||h.large;if(l){var x=map$2(l.dimensions,function(z){return s.mapDimension(z)}).slice(0,2),T=x.length,w=s.getCalculationInfo("stackResultDimension");isDimensionStacked(s,x[0])&&(x[0]=w),isDimensionStacked(s,x[1])&&(x[1]=w);var C=s.getStore(),M=s.getDimensionIndex(x[0]),V=s.getDimensionIndex(x[1]);return T&&{progress:function(z,F){for(var B=z.end-z.start,W=v&&createFloat32Array(B*T),Y=[],Z=[],X=z.start,te=0;X<z.end;X++){var oe=void 0;if(T===1){var ae=C.get(M,X);oe=l.dataToPoint(ae,null,Z)}else Y[0]=C.get(M,X),Y[1]=C.get(V,X),oe=l.dataToPoint(Y,null,Z);v?(W[te++]=oe[0],W[te++]=oe[1]):F.setItemLayout(X,oe.slice())}v&&F.setLayout("points",W)}}}}}}var samplers={average:function(r){for(var t=0,o=0,s=0;s<r.length;s++)isNaN(r[s])||(t+=r[s],o++);return o===0?NaN:t/o},sum:function(r){for(var t=0,o=0;o<r.length;o++)t+=r[o]||0;return t},max:function(r){for(var t=-1/0,o=0;o<r.length;o++)r[o]>t&&(t=r[o]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,o=0;o<r.length;o++)r[o]<t&&(t=r[o]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},indexSampler=function(r){return Math.round(r.length/2)};function dataSample(r){return{seriesType:r,reset:function(t,o,s){var l=t.getData(),h=t.get("sampling"),v=t.coordinateSystem,x=l.count();if(x>10&&v.type==="cartesian2d"&&h){var T=v.getBaseAxis(),w=v.getOtherAxis(T),C=T.getExtent(),M=s.getDevicePixelRatio(),V=Math.abs(C[1]-C[0])*(M||1),z=Math.round(x/V);if(isFinite(z)&&z>1){h==="lttb"&&t.setData(l.lttbDownSample(l.mapDimension(w.dim),1/z));var F=void 0;isString(h)?F=samplers[h]:isFunction(h)&&(F=h),F&&t.setData(l.downSample(l.mapDimension(w.dim),1/z,F,indexSampler))}}}}}function install$j(r){r.registerChartView(LineView$1),r.registerSeriesModel(LineSeries),r.registerLayout(pointsLayout("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var o=t.getData(),s=t.getModel("lineStyle").getLineStyle();s&&!s.stroke&&(s.stroke=o.getVisual("style").fill),o.setVisual("legendLineStyle",s)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.getInitialData=function(o,s){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(o,s,l){var h=this.coordinateSystem;if(h&&h.clampData){var v=h.clampData(o),x=h.dataToPoint(v);if(l)each$c(h.getAxes(),function(V,z){if(V.type==="category"&&s!=null){var F=V.getTicksCoords(),B=v[z],W=s[z]==="x1"||s[z]==="y1";if(W&&(B+=1),F.length<2)return;if(F.length===2){x[z]=V.toGlobalCoord(V.getExtent()[W?1:0]);return}for(var Y=void 0,Z=void 0,X=1,te=0;te<F.length;te++){var oe=F[te].coord,ae=te===F.length-1?F[te-1].tickValue+X:F[te].tickValue;if(ae===B){Z=oe;break}else if(ae<B)Y=oe;else if(Y!=null&&ae>B){Z=(oe+Y)/2;break}te===1&&(X=ae-F[0].tickValue)}Z==null&&(Y?Y&&(Z=F[F.length-1].coord):Z=F[0].coord),x[z]=V.toGlobalCoord(Z)}});else{var T=this.getData(),w=T.getLayout("offset"),C=T.getLayout("size"),M=h.getBaseAxis().isHorizontal()?0:1;x[M]+=w+C/2}return x}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var o=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>o&&(o=s),o},t.prototype.brushSelector=function(o,s,l){return l.rect(s.getItemLayout(o))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=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}(),SausagePath=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="sausage",s}return t.prototype.getDefaultShape=function(){return new SausageShape},t.prototype.buildPath=function(o,s){var l=s.cx,h=s.cy,v=Math.max(s.r0||0,0),x=Math.max(s.r,0),T=(x-v)*.5,w=v+T,C=s.startAngle,M=s.endAngle,V=s.clockwise,z=Math.PI*2,F=V?M-C<z:C-M<z;F||(C=M-(V?z:-z));var B=Math.cos(C),W=Math.sin(C),Y=Math.cos(M),Z=Math.sin(M);F?(o.moveTo(B*v+l,W*v+h),o.arc(B*w+l,W*w+h,T,-Math.PI+C,C,!V)):o.moveTo(B*x+l,W*x+h),o.arc(l,h,x,C,M,!V),o.arc(Y*w+l,Z*w+h,T,M-Math.PI*2,M-Math.PI,!V),v!==0&&o.arc(l,h,v,M,C,V)},t}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition(r,t){t=t||{};var o=t.isRoundCap;return function(s,l,h){var v=l.position;if(!v||v instanceof Array)return calculateTextPosition(s,l,h);var x=r(v),T=l.distance!=null?l.distance:5,w=this.shape,C=w.cx,M=w.cy,V=w.r,z=w.r0,F=(V+z)/2,B=w.startAngle,W=w.endAngle,Y=(B+W)/2,Z=o?Math.abs(V-z)/2:0,X=Math.cos,te=Math.sin,oe=C+V*X(B),ae=M+V*te(B),le="left",he="top";switch(x){case"startArc":oe=C+(z-T)*X(Y),ae=M+(z-T)*te(Y),le="center",he="top";break;case"insideStartArc":oe=C+(z+T)*X(Y),ae=M+(z+T)*te(Y),le="center",he="bottom";break;case"startAngle":oe=C+F*X(B)+adjustAngleDistanceX(B,T+Z,!1),ae=M+F*te(B)+adjustAngleDistanceY(B,T+Z,!1),le="right",he="middle";break;case"insideStartAngle":oe=C+F*X(B)+adjustAngleDistanceX(B,-T+Z,!1),ae=M+F*te(B)+adjustAngleDistanceY(B,-T+Z,!1),le="left",he="middle";break;case"middle":oe=C+F*X(Y),ae=M+F*te(Y),le="center",he="middle";break;case"endArc":oe=C+(V+T)*X(Y),ae=M+(V+T)*te(Y),le="center",he="bottom";break;case"insideEndArc":oe=C+(V-T)*X(Y),ae=M+(V-T)*te(Y),le="center",he="top";break;case"endAngle":oe=C+F*X(W)+adjustAngleDistanceX(W,T+Z,!0),ae=M+F*te(W)+adjustAngleDistanceY(W,T+Z,!0),le="left",he="middle";break;case"insideEndAngle":oe=C+F*X(W)+adjustAngleDistanceX(W,-T+Z,!0),ae=M+F*te(W)+adjustAngleDistanceY(W,-T+Z,!0),le="right",he="middle";break;default:return calculateTextPosition(s,l,h)}return s=s||{},s.x=oe,s.y=ae,s.align=le,s.verticalAlign=he,s}}function setSectorTextRotation(r,t,o,s){if(isNumber(s)){r.setTextConfig({rotation:s});return}else if(isArray$1(t)){r.setTextConfig({rotation:0});return}var l=r.shape,h=l.clockwise?l.startAngle:l.endAngle,v=l.clockwise?l.endAngle:l.startAngle,x=(h+v)/2,T,w=o(t);switch(w){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":T=x;break;case"startAngle":case"insideStartAngle":T=h;break;case"endAngle":case"insideEndAngle":T=v;break;default:r.setTextConfig({rotation:0});return}var C=Math.PI*1.5-T;w==="middle"&&C>Math.PI/2&&C<Math.PI*1.5&&(C-=Math.PI),r.setTextConfig({rotation:C})}function adjustAngleDistanceX(r,t,o){return t*Math.sin(r)*(o?-1:1)}function adjustAngleDistanceY(r,t,o){return t*Math.cos(r)*(o?1:-1)}function getSectorCornerRadius(r,t,o){var s=r.get("borderRadius");if(s==null)return o?{cornerRadius:0}:null;isArray$1(s)||(s=[s,s,s,s]);var l=Math.abs(t.r||0-t.r0||0);return{cornerRadius:map$2(s,function(h){return parsePercent$1(h,l)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea(r,t){var o=r.getArea&&r.getArea();if(isCoordinateSystemType(r,"cartesian2d")){var s=r.getBaseAxis();if(s.type!=="category"||!s.onBand){var l=t.getLayout("bandWidth");s.isHorizontal()?(o.x-=l,o.width+=l*2):(o.y-=l,o.height+=l*2)}}return o}var BarView=function(r){__extends(t,r);function t(){var o=r.call(this)||this;return o.type=t.type,o._isFirstFrame=!0,o}return t.prototype.render=function(o,s,l,h){this._model=o,this._removeOnRenderedListener(l),this._updateDrawMode(o);var v=o.get("coordinateSystem");(v==="cartesian2d"||v==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(o,s,l):this._renderNormal(o,s,l,h))},t.prototype.incrementalPrepareRender=function(o){this._clear(),this._updateDrawMode(o),this._updateLargeClip(o)},t.prototype.incrementalRender=function(o,s){this._progressiveEls=[],this._incrementalRenderLarge(o,s)},t.prototype.eachRendered=function(o){traverseElements(this._progressiveEls||this.group,o)},t.prototype._updateDrawMode=function(o){var s=o.pipelineContext.large;(this._isLargeDraw==null||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},t.prototype._renderNormal=function(o,s,l,h){var v=this.group,x=o.getData(),T=this._data,w=o.coordinateSystem,C=w.getBaseAxis(),M;w.type==="cartesian2d"?M=C.isHorizontal():w.type==="polar"&&(M=C.dim==="angle");var V=o.isAnimationEnabled()?o:null,z=shouldRealtimeSort(o,w);z&&this._enableRealtimeSort(z,x,l);var F=o.get("clip",!0)||z,B=getClipArea(w,x);v.removeClipPath();var W=o.get("roundCap",!0),Y=o.get("showBackground",!0),Z=o.getModel("backgroundStyle"),X=Z.get("borderRadius")||0,te=[],oe=this._backgroundEls,ae=h&&h.isInitSort,le=h&&h.type==="changeAxisOrder";function he(ye){var Se=getLayout[w.type](x,ye),Te=createBackgroundEl(w,M,Se);return Te.useStyle(Z.getItemStyle()),w.type==="cartesian2d"?Te.setShape("r",X):Te.setShape("cornerRadius",X),te[ye]=Te,Te}x.diff(T).add(function(ye){var Se=x.getItemModel(ye),Te=getLayout[w.type](x,ye,Se);if(Y&&he(ye),!(!x.hasValue(ye)||!isValidLayout[w.type](Te))){var we=!1;F&&(we=clip[w.type](B,Te));var Ee=elementCreator[w.type](o,x,ye,Te,M,V,C.model,!1,W);z&&(Ee.forceLabelAnimation=!0),updateStyle(Ee,x,ye,Se,Te,o,M,w.type==="polar"),ae?Ee.attr({shape:Te}):z?updateRealtimeAnimation(z,V,Ee,Te,ye,M,!1,!1):initProps(Ee,{shape:Te},o,ye),x.setItemGraphicEl(ye,Ee),v.add(Ee),Ee.ignore=we}}).update(function(ye,Se){var Te=x.getItemModel(ye),we=getLayout[w.type](x,ye,Te);if(Y){var Ee=void 0;oe.length===0?Ee=he(Se):(Ee=oe[Se],Ee.useStyle(Z.getItemStyle()),w.type==="cartesian2d"?Ee.setShape("r",X):Ee.setShape("cornerRadius",X),te[ye]=Ee);var Ce=getLayout[w.type](x,ye),ke=createBackgroundShape(M,Ce,w);updateProps$1(Ee,{shape:ke},V,ye)}var Me=T.getItemGraphicEl(Se);if(!x.hasValue(ye)||!isValidLayout[w.type](we)){v.remove(Me);return}var Ie=!1;if(F&&(Ie=clip[w.type](B,we),Ie&&v.remove(Me)),Me?saveOldStyle(Me):Me=elementCreator[w.type](o,x,ye,we,M,V,C.model,!!Me,W),z&&(Me.forceLabelAnimation=!0),le){var $e=Me.getTextContent();if($e){var Ge=labelInner($e);Ge.prevValue!=null&&(Ge.prevValue=Ge.value)}}else updateStyle(Me,x,ye,Te,we,o,M,w.type==="polar");ae?Me.attr({shape:we}):z?updateRealtimeAnimation(z,V,Me,we,ye,M,!0,le):updateProps$1(Me,{shape:we},o,ye,null),x.setItemGraphicEl(ye,Me),Me.ignore=Ie,v.add(Me)}).remove(function(ye){var Se=T.getItemGraphicEl(ye);Se&&removeElementWithFadeOut(Se,o,ye)}).execute();var me=this._backgroundGroup||(this._backgroundGroup=new Group$3);me.removeAll();for(var _e=0;_e<te.length;++_e)me.add(te[_e]);v.add(me),this._backgroundEls=te,this._data=x},t.prototype._renderLarge=function(o,s,l){this._clear(),createLarge(o,this.group),this._updateLargeClip(o)},t.prototype._incrementalRenderLarge=function(o,s){this._removeBackground(),createLarge(s,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(o){var s=o.get("clip",!0)&&createClipPath(o.coordinateSystem,!1,o),l=this.group;s?l.setClipPath(s):l.removeClipPath()},t.prototype._enableRealtimeSort=function(o,s,l){var h=this;if(s.count()){var v=o.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(s,o,l),this._isFirstFrame=!1;else{var x=function(T){var w=s.getItemGraphicEl(T),C=w&&w.shape;return C&&Math.abs(v.isHorizontal()?C.height:C.width)||0};this._onRendered=function(){h._updateSortWithinSameData(s,x,v,l)},l.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(o,s,l){var h=[];return o.each(o.mapDimension(s.dim),function(v,x){var T=l(x);T=T??NaN,h.push({dataIndex:x,mappedValue:T,ordinalNumber:v})}),h.sort(function(v,x){return x.mappedValue-v.mappedValue}),{ordinalNumbers:map$2(h,function(v){return v.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(o,s,l){for(var h=l.scale,v=o.mapDimension(l.dim),x=Number.MAX_VALUE,T=0,w=h.getOrdinalMeta().categories.length;T<w;++T){var C=o.rawIndexOf(v,h.getRawOrdinalNumber(T)),M=C<0?Number.MIN_VALUE:s(o.indexOfRawIndex(C));if(M>x)return!0;x=M}return!1},t.prototype._isOrderDifferentInView=function(o,s){for(var l=s.scale,h=l.getExtent(),v=Math.max(0,h[0]),x=Math.min(h[1],l.getOrdinalMeta().categories.length-1);v<=x;++v)if(o.ordinalNumbers[v]!==l.getRawOrdinalNumber(v))return!0},t.prototype._updateSortWithinSameData=function(o,s,l,h){if(this._isOrderChangedWithinSameData(o,s,l)){var v=this._dataSort(o,l,s);this._isOrderDifferentInView(v,l)&&(this._removeOnRenderedListener(h),h.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",axisId:l.index,sortInfo:v}))}},t.prototype._dispatchInitSort=function(o,s,l){var h=s.baseAxis,v=this._dataSort(o,h,function(x){return o.get(o.mapDimension(s.otherAxis.dim),x)});l.dispatchAction({type:"changeAxisOrder",componentType:h.dim+"Axis",isInitSort:!0,axisId:h.index,sortInfo:v})},t.prototype.remove=function(o,s){this._clear(this._model),this._removeOnRenderedListener(s)},t.prototype.dispose=function(o,s){this._removeOnRenderedListener(s)},t.prototype._removeOnRenderedListener=function(o){this._onRendered&&(o.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(o){var s=this.group,l=this._data;o&&o.isAnimationEnabled()&&l&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],l.eachItemGraphicEl(function(h){removeElementWithFadeOut(h,o,getECData(h).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ChartView$1),clip={cartesian2d:function(r,t){var o=t.width<0?-1:1,s=t.height<0?-1:1;o<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height);var l=r.x+r.width,h=r.y+r.height,v=mathMax$2(t.x,r.x),x=mathMin$2(t.x+t.width,l),T=mathMax$2(t.y,r.y),w=mathMin$2(t.y+t.height,h),C=x<v,M=w<T;return t.x=C&&v>l?x:v,t.y=M&&T>h?w:T,t.width=C?0:x-v,t.height=M?0:w-T,o<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height),C||M},polar:function(r,t){var o=t.r0<=t.r?1:-1;if(o<0){var s=t.r;t.r=t.r0,t.r0=s}var l=mathMin$2(t.r,r.r),h=mathMax$2(t.r0,r.r0);t.r=l,t.r0=h;var v=l-h<0;if(o<0){var s=t.r;t.r=t.r0,t.r0=s}return v}},elementCreator={cartesian2d:function(r,t,o,s,l,h,v,x,T){var w=new Rect$2({shape:extend({},s),z2:1});if(w.__dataIndex=o,w.name="item",h){var C=w.shape,M=l?"height":"width";C[M]=0}return w},polar:function(r,t,o,s,l,h,v,x,T){var w=!l&&T?Sausage:Sector$1,C=new w({shape:s,z2:1});C.name="item";var M=createPolarPositionMapping(l);if(C.calculateTextPosition=createSectorCalculateTextPosition(M,{isRoundCap:w===Sausage}),h){var V=C.shape,z=l?"r":"endAngle",F={};V[z]=l?s.r0:s.startAngle,F[z]=s[z],(x?updateProps$1:initProps)(C,{shape:F},h)}return C}};function shouldRealtimeSort(r,t){var o=r.get("realtimeSort",!0),s=t.getBaseAxis();if(o&&s.type==="category"&&t.type==="cartesian2d")return{baseAxis:s,otherAxis:t.getOtherAxis(s)}}function updateRealtimeAnimation(r,t,o,s,l,h,v,x){var T,w;h?(w={x:s.x,width:s.width},T={y:s.y,height:s.height}):(w={y:s.y,height:s.height},T={x:s.x,width:s.width}),x||(v?updateProps$1:initProps)(o,{shape:T},t,l,null);var C=t?r.baseAxis.model:null;(v?updateProps$1:initProps)(o,{shape:w},C,l)}function checkPropertiesNotValid(r,t){for(var o=0;o<t.length;o++)if(!isFinite(r[t[o]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function(r){return!checkPropertiesNotValid(r,rectPropties)},polar:function(r){return!checkPropertiesNotValid(r,polarPropties)}},getLayout={cartesian2d:function(r,t,o){var s=r.getItemLayout(t),l=o?getLineWidth(o,s):0,h=s.width>0?1:-1,v=s.height>0?1:-1;return{x:s.x+h*l/2,y:s.y+v*l/2,width:s.width-h*l,height:s.height-v*l}},polar:function(r,t,o){var s=r.getItemLayout(t);return{cx:s.cx,cy:s.cy,r0:s.r0,r:s.r,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}}};function isZeroOnPolar(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function createPolarPositionMapping(r){return function(t){var o=t?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+o;default:return s}}}(r)}function updateStyle(r,t,o,s,l,h,v,x){var T=t.getItemVisual(o,"style");if(x){if(!h.get("roundCap")){var C=r.shape,M=getSectorCornerRadius(s.getModel("itemStyle"),C,!0);extend(C,M),r.setShape(C)}}else{var w=s.get(["itemStyle","borderRadius"])||0;r.setShape("r",w)}r.useStyle(T);var V=s.getShallow("cursor");V&&r.attr("cursor",V);var z=x?v?l.r>=l.r0?"endArc":"startArc":l.endAngle>=l.startAngle?"endAngle":"startAngle":v?l.height>=0?"bottom":"top":l.width>=0?"right":"left",F=getLabelStatesModels(s);setLabelStyle(r,F,{labelFetcher:h,labelDataIndex:o,defaultText:getDefaultLabel(h.getData(),o),inheritColor:T.fill,defaultOpacity:T.opacity,defaultOutsidePosition:z});var B=r.getTextContent();if(x&&B){var W=s.get(["label","position"]);r.textConfig.inside=W==="middle"?!0:null,setSectorTextRotation(r,W==="outside"?z:W,createPolarPositionMapping(v),s.get(["label","rotate"]))}setLabelValueAnimation(B,F,h.getRawValue(o),function(Z){return getDefaultInterpolatedLabel(t,Z)});var Y=s.getModel(["emphasis"]);toggleHoverEmphasis(r,Y.get("focus"),Y.get("blurScope"),Y.get("disabled")),setStatesStylesFromModel(r,s),isZeroOnPolar(l)&&(r.style.fill="none",r.style.stroke="none",each$c(r.states,function(Z){Z.style&&(Z.style.fill=Z.style.stroke="none")}))}function getLineWidth(r,t){var o=r.get(["itemStyle","borderColor"]);if(!o||o==="none")return 0;var s=r.get(["itemStyle","borderWidth"])||0,l=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),h=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(s,l,h)}var LagePathShape=function(){function r(){}return r}(),LargePath=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="largeBar",s}return t.prototype.getDefaultShape=function(){return new LagePathShape},t.prototype.buildPath=function(o,s){for(var l=s.points,h=this.baseDimIdx,v=1-this.baseDimIdx,x=[],T=[],w=this.barWidth,C=0;C<l.length;C+=3)T[h]=w,T[v]=l[C+2],x[h]=l[C+h],x[v]=l[C+v],o.rect(x[0],x[1],T[0],T[1])},t}(Path$1);function createLarge(r,t,o,s){var l=r.getData(),h=l.getLayout("valueAxisHorizontal")?1:0,v=l.getLayout("largeDataIndices"),x=l.getLayout("size"),T=r.getModel("backgroundStyle"),w=l.getLayout("largeBackgroundPoints");if(w){var C=new LargePath({shape:{points:w},incremental:!!s,silent:!0,z2:0});C.baseDimIdx=h,C.largeDataIndices=v,C.barWidth=x,C.useStyle(T.getItemStyle()),t.add(C),o&&o.push(C)}var M=new LargePath({shape:{points:l.getLayout("largePoints")},incremental:!!s,ignoreCoarsePointer:!0,z2:1});M.baseDimIdx=h,M.largeDataIndices=v,M.barWidth=x,t.add(M),M.useStyle(l.getVisual("style")),getECData(M).seriesIndex=r.seriesIndex,r.get("silent")||(M.on("mousedown",largePathUpdateDataIndex),M.on("mousemove",largePathUpdateDataIndex)),o&&o.push(M)}var largePathUpdateDataIndex=throttle(function(r){var t=this,o=largePathFindDataIndex(t,r.offsetX,r.offsetY);getECData(t).dataIndex=o>=0?o:null},30,!1);function largePathFindDataIndex(r,t,o){for(var s=r.baseDimIdx,l=1-s,h=r.shape.points,v=r.largeDataIndices,x=[],T=[],w=r.barWidth,C=0,M=h.length/3;C<M;C++){var V=C*3;if(T[s]=w,T[l]=h[V+2],x[s]=h[V+s],x[l]=h[V+l],T[l]<0&&(x[l]+=T[l],T[l]=-T[l]),t>=x[0]&&t<=x[0]+T[0]&&o>=x[1]&&o<=x[1]+T[1])return v[C]}return-1}function createBackgroundShape(r,t,o){if(isCoordinateSystemType(o,"cartesian2d")){var s=t,l=o.getArea();return{x:r?s.x:l.x,y:r?l.y:s.y,width:r?s.width:l.width,height:r?l.height:s.height}}else{var l=o.getArea(),h=t;return{cx:l.cx,cy:l.cy,r0:r?l.r0:h.r0,r:r?l.r:h.r,startAngle:r?h.startAngle:0,endAngle:r?h.endAngle:Math.PI*2}}}function createBackgroundEl(r,t,o){var s=r.type==="polar"?Sector$1:Rect$2;return new s({shape:createBackgroundShape(t,o,r),silent:!0,z2:0})}const BarView$1=BarView;function install$i(r){r.registerChartView(BarView$1),r.registerSeriesModel(BarSeries),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,o){var s=t.componentType||"series";o.eachComponent({mainType:s,query:t},function(l){t.sortInfo&&l.axis.setCategorySortInfo(t.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect(r,t){return getLayoutRect(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function getBasicPieLayout(r,t){var o=getViewRect(r,t),s=r.get("center"),l=r.get("radius");isArray$1(l)||(l=[0,l]);var h=parsePercent(o.width,t.getWidth()),v=parsePercent(o.height,t.getHeight()),x=Math.min(h,v),T=parsePercent(l[0],x/2),w=parsePercent(l[1],x/2),C,M,V=r.coordinateSystem;if(V){var z=V.dataToPoint(s);C=z[0]||0,M=z[1]||0}else isArray$1(s)||(s=[s,s]),C=parsePercent(s[0],h)+o.x,M=parsePercent(s[1],v)+o.y;return{cx:C,cy:M,r0:T,r:w}}function pieLayout(r,t,o){t.eachSeriesByType(r,function(s){var l=s.getData(),h=l.mapDimension("value"),v=getViewRect(s,o),x=getBasicPieLayout(s,o),T=x.cx,w=x.cy,C=x.r,M=x.r0,V=-s.get("startAngle")*RADIAN$1,z=s.get("minAngle")*RADIAN$1,F=0;l.each(h,function(_e){!isNaN(_e)&&F++});var B=l.getSum(h),W=Math.PI/(B||F)*2,Y=s.get("clockwise"),Z=s.get("roseType"),X=s.get("stillShowZeroSum"),te=l.getDataExtent(h);te[0]=0;var oe=PI2,ae=0,le=V,he=Y?1:-1;if(l.setLayout({viewRect:v,r:C}),l.each(h,function(_e,ye){var Se;if(isNaN(_e)){l.setItemLayout(ye,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:Y,cx:T,cy:w,r0:M,r:Z?NaN:C});return}Z!=="area"?Se=B===0&&X?W:_e*W:Se=PI2/F,Se<z?(Se=z,oe-=z):ae+=_e;var Te=le+he*Se;l.setItemLayout(ye,{angle:Se,startAngle:le,endAngle:Te,clockwise:Y,cx:T,cy:w,r0:M,r:Z?linearMap$2(_e,te,[M,C]):C}),le=Te}),oe<PI2&&F)if(oe<=.001){var me=PI2/F;l.each(h,function(_e,ye){if(!isNaN(_e)){var Se=l.getItemLayout(ye);Se.angle=me,Se.startAngle=V+he*ye*me,Se.endAngle=V+he*(ye+1)*me}})}else W=oe/ae,le=V,l.each(h,function(_e,ye){if(!isNaN(_e)){var Se=l.getItemLayout(ye),Te=Se.angle===z?z:_e*W;Se.startAngle=le,Se.endAngle=le+he*Te,le+=he*Te}})})}function dataFilter(r){return{seriesType:r,reset:function(t,o){var s=o.findComponents({mainType:"legend"});if(!(!s||!s.length)){var l=t.getData();l.filterSelf(function(h){for(var v=l.getName(h),x=0;x<s.length;x++)if(!s[x].isSelected(v))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide(r,t,o,s,l,h,v,x,T,w){if(r.length<2)return;function C(B){for(var W=B.rB,Y=W*W,Z=0;Z<B.list.length;Z++){var X=B.list[Z],te=Math.abs(X.label.y-o),oe=s+X.len,ae=oe*oe,le=Math.sqrt((1-Math.abs(te*te/Y))*ae),he=t+(le+X.len2)*l,me=he-X.label.x,_e=X.targetTextWidth-me*l;constrainTextWidth(X,_e,!0),X.label.x=he}}function M(B){for(var W={list:[],maxY:0},Y={list:[],maxY:0},Z=0;Z<B.length;Z++)if(B[Z].labelAlignTo==="none"){var X=B[Z],te=X.label.y>o?Y:W,oe=Math.abs(X.label.y-o);if(oe>=te.maxY){var ae=X.label.x-t-X.len2*l,le=s+X.len,he=Math.abs(ae)<le?Math.sqrt(oe*oe/(1-ae*ae/le/le)):le;te.rB=he,te.maxY=oe}te.list.push(X)}C(W),C(Y)}for(var V=r.length,z=0;z<V;z++)if(r[z].position==="outer"&&r[z].labelAlignTo==="labelLine"){var F=r[z].label.x-w;r[z].linePoints[1][0]+=F,r[z].label.x=w}shiftLayoutOnY(r,T,T+v)&&M(r)}function avoidOverlap(r,t,o,s,l,h,v,x){for(var T=[],w=[],C=Number.MAX_VALUE,M=-Number.MAX_VALUE,V=0;V<r.length;V++){var z=r[V].label;isPositionCenter(r[V])||(z.x<t?(C=Math.min(C,z.x),T.push(r[V])):(M=Math.max(M,z.x),w.push(r[V])))}for(var V=0;V<r.length;V++){var F=r[V];if(!isPositionCenter(F)&&F.linePoints){if(F.labelStyleWidth!=null)continue;var z=F.label,B=F.linePoints,W=void 0;F.labelAlignTo==="edge"?z.x<t?W=B[2][0]-F.labelDistance-v-F.edgeDistance:W=v+l-F.edgeDistance-B[2][0]-F.labelDistance:F.labelAlignTo==="labelLine"?z.x<t?W=C-v-F.bleedMargin:W=v+l-M-F.bleedMargin:z.x<t?W=z.x-v-F.bleedMargin:W=v+l-z.x-F.bleedMargin,F.targetTextWidth=W,constrainTextWidth(F,W)}}adjustSingleSide(w,t,o,s,1,l,h,v,x,M),adjustSingleSide(T,t,o,s,-1,l,h,v,x,C);for(var V=0;V<r.length;V++){var F=r[V];if(!isPositionCenter(F)&&F.linePoints){var z=F.label,B=F.linePoints,Y=F.labelAlignTo==="edge",Z=z.style.padding,X=Z?Z[1]+Z[3]:0,te=z.style.backgroundColor?0:X,oe=F.rect.width+te,ae=B[1][0]-B[2][0];Y?z.x<t?B[2][0]=v+F.edgeDistance+oe+F.labelDistance:B[2][0]=v+l-F.edgeDistance-oe-F.labelDistance:(z.x<t?B[2][0]=z.x+F.labelDistance:B[2][0]=z.x-F.labelDistance,B[1][0]=B[2][0]+ae),B[1][1]=B[2][1]=z.y}}}function constrainTextWidth(r,t,o){if(o===void 0&&(o=!1),r.labelStyleWidth==null){var s=r.label,l=s.style,h=r.rect,v=l.backgroundColor,x=l.padding,T=x?x[1]+x[3]:0,w=l.overflow,C=h.width+(v?0:T);if(t<C||o){var M=h.height;if(w&&w.match("break")){s.setStyle("backgroundColor",null),s.setStyle("width",t-T);var V=s.getBoundingRect();s.setStyle("width",Math.ceil(V.width)),s.setStyle("backgroundColor",v)}else{var z=t-T,F=t<C?z:o?z>r.unconstrainedWidth?null:z:null;s.setStyle("width",F)}var B=s.getBoundingRect();h.width=B.width;var W=(s.style.margin||0)+2.1;h.height=B.height+W,h.y-=(h.height-M)/2}}}function isPositionCenter(r){return r.position==="center"}function pieLabelLayout(r){var t=r.getData(),o=[],s,l,h=!1,v=(r.get("minShowLabelAngle")||0)*RADIAN,x=t.getLayout("viewRect"),T=t.getLayout("r"),w=x.width,C=x.x,M=x.y,V=x.height;function z(ae){ae.ignore=!0}function F(ae){if(!ae.ignore)return!0;for(var le in ae.states)if(ae.states[le].ignore===!1)return!0;return!1}t.each(function(ae){var le=t.getItemGraphicEl(ae),he=le.shape,me=le.getTextContent(),_e=le.getTextGuideLine(),ye=t.getItemModel(ae),Se=ye.getModel("label"),Te=Se.get("position")||ye.get(["emphasis","label","position"]),we=Se.get("distanceToLabelLine"),Ee=Se.get("alignTo"),Ce=parsePercent(Se.get("edgeDistance"),w),ke=Se.get("bleedMargin"),Me=ye.getModel("labelLine"),Ie=Me.get("length");Ie=parsePercent(Ie,w);var $e=Me.get("length2");if($e=parsePercent($e,w),Math.abs(he.endAngle-he.startAngle)<v){each$c(me.states,z),me.ignore=!0,_e&&(each$c(_e.states,z),_e.ignore=!0);return}if(F(me)){var Ge=(he.startAngle+he.endAngle)/2,He=Math.cos(Ge),We=Math.sin(Ge),Ze,ct,Qe,mt;s=he.cx,l=he.cy;var ht=Te==="inside"||Te==="inner";if(Te==="center")Ze=he.cx,ct=he.cy,mt="center";else{var De=(ht?(he.r+he.r0)/2*He:he.r*He)+s,ze=(ht?(he.r+he.r0)/2*We:he.r*We)+l;if(Ze=De+He*3,ct=ze+We*3,!ht){var Oe=De+He*(Ie+T-he.r),Be=ze+We*(Ie+T-he.r),gt=Oe+(He<0?-1:1)*$e,st=Be;Ee==="edge"?Ze=He<0?C+Ce:C+w-Ce:Ze=gt+(He<0?-we:we),ct=st,Qe=[[De,ze],[Oe,Be],[gt,st]]}mt=ht?"center":Ee==="edge"?He>0?"right":"left":He>0?"left":"right"}var yt=Math.PI,nt=0,Ye=Se.get("rotate");if(isNumber(Ye))nt=Ye*(yt/180);else if(Te==="center")nt=0;else if(Ye==="radial"||Ye===!0){var bt=He<0?-Ge+yt:-Ge;nt=bt}else if(Ye==="tangential"&&Te!=="outside"&&Te!=="outer"){var xt=Math.atan2(He,We);xt<0&&(xt=yt*2+xt);var wt=We>0;wt&&(xt=yt+xt),nt=xt-yt}if(h=!!nt,me.x=Ze,me.y=ct,me.rotation=nt,me.setStyle({verticalAlign:"middle"}),ht){me.setStyle({align:mt});var Gt=me.states.select;Gt&&(Gt.x+=me.x,Gt.y+=me.y)}else{var St=me.getBoundingRect().clone();St.applyTransform(me.getComputedTransform());var Lt=(me.style.margin||0)+2.1;St.y-=Lt/2,St.height+=Lt,o.push({label:me,labelLine:_e,position:Te,len:Ie,len2:$e,minTurnAngle:Me.get("minTurnAngle"),maxSurfaceAngle:Me.get("maxSurfaceAngle"),surfaceNormal:new Point$1(He,We),linePoints:Qe,textAlign:mt,labelDistance:we,labelAlignTo:Ee,edgeDistance:Ce,bleedMargin:ke,rect:St,unconstrainedWidth:St.width,labelStyleWidth:me.style.width})}le.setTextConfig({inside:ht})}}),!h&&r.get("avoidLabelOverlap")&&avoidOverlap(o,s,l,T,w,V,C,M);for(var B=0;B<o.length;B++){var W=o[B],Y=W.label,Z=W.labelLine,X=isNaN(Y.x)||isNaN(Y.y);if(Y){Y.setStyle({align:W.textAlign}),X&&(each$c(Y.states,z),Y.ignore=!0);var te=Y.states.select;te&&(te.x+=Y.x,te.y+=Y.y)}if(Z){var oe=W.linePoints;X||!oe?(each$c(Z.states,z),Z.ignore=!0):(limitTurnAngle(oe,W.minTurnAngle),limitSurfaceAngle(oe,W.surfaceNormal,W.maxSurfaceAngle),Z.setShape({points:oe}),Y.__hostTarget.textGuideLineConfig={anchor:new Point$1(oe[0][0],oe[0][1])})}}}var PiePiece=function(r){__extends(t,r);function t(o,s,l){var h=r.call(this)||this;h.z2=2;var v=new ZRText$1;return h.setTextContent(v),h.updateData(o,s,l,!0),h}return t.prototype.updateData=function(o,s,l,h){var v=this,x=o.hostModel,T=o.getItemModel(s),w=T.getModel("emphasis"),C=o.getItemLayout(s),M=extend(getSectorCornerRadius(T.getModel("itemStyle"),C,!0),C);if(isNaN(M.startAngle)){v.setShape(M);return}if(h){v.setShape(M);var V=x.getShallow("animationType");x.ecModel.ssr?(initProps(v,{scaleX:0,scaleY:0},x,{dataIndex:s,isFrom:!0}),v.originX=M.cx,v.originY=M.cy):V==="scale"?(v.shape.r=C.r0,initProps(v,{shape:{r:C.r}},x,s)):l!=null?(v.setShape({startAngle:l,endAngle:l}),initProps(v,{shape:{startAngle:C.startAngle,endAngle:C.endAngle}},x,s)):(v.shape.endAngle=C.startAngle,updateProps$1(v,{shape:{endAngle:C.endAngle}},x,s))}else saveOldStyle(v),updateProps$1(v,{shape:M},x,s);v.useStyle(o.getItemVisual(s,"style")),setStatesStylesFromModel(v,T);var z=(C.startAngle+C.endAngle)/2,F=x.get("selectedOffset"),B=Math.cos(z)*F,W=Math.sin(z)*F,Y=T.getShallow("cursor");Y&&v.attr("cursor",Y),this._updateLabel(x,o,s),v.ensureState("emphasis").shape=extend({r:C.r+(w.get("scale")&&w.get("scaleSize")||0)},getSectorCornerRadius(w.getModel("itemStyle"),C)),extend(v.ensureState("select"),{x:B,y:W,shape:getSectorCornerRadius(T.getModel(["select","itemStyle"]),C)}),extend(v.ensureState("blur"),{shape:getSectorCornerRadius(T.getModel(["blur","itemStyle"]),C)});var Z=v.getTextGuideLine(),X=v.getTextContent();Z&&extend(Z.ensureState("select"),{x:B,y:W}),extend(X.ensureState("select"),{x:B,y:W}),toggleHoverEmphasis(this,w.get("focus"),w.get("blurScope"),w.get("disabled"))},t.prototype._updateLabel=function(o,s,l){var h=this,v=s.getItemModel(l),x=v.getModel("labelLine"),T=s.getItemVisual(l,"style"),w=T&&T.fill,C=T&&T.opacity;setLabelStyle(h,getLabelStatesModels(v),{labelFetcher:s.hostModel,labelDataIndex:l,inheritColor:w,defaultOpacity:C,defaultText:o.getFormattedLabel(l,"normal")||s.getName(l)});var M=h.getTextContent();h.setTextConfig({position:null,rotation:null}),M.attr({z2:10});var V=o.get(["label","position"]);if(V!=="outside"&&V!=="outer")h.removeTextGuideLine();else{var z=this.getTextGuideLine();z||(z=new Polyline$1,this.setTextGuideLine(z)),setLabelLineStyle(this,getLabelLineStatesModels(v),{stroke:w,opacity:retrieve3(x.get(["lineStyle","opacity"]),C,1)})}},t}(Sector$1),PieView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.ignoreLabelLineUpdate=!0,o}return t.prototype.render=function(o,s,l,h){var v=o.getData(),x=this._data,T=this.group,w;if(!x&&v.count()>0){for(var C=v.getItemLayout(0),M=1;isNaN(C&&C.startAngle)&&M<v.count();++M)C=v.getItemLayout(M);C&&(w=C.startAngle)}if(this._emptyCircleSector&&T.remove(this._emptyCircleSector),v.count()===0&&o.get("showEmptyCircle")){var V=new Sector$1({shape:getBasicPieLayout(o,l)});V.useStyle(o.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=V,T.add(V)}v.diff(x).add(function(z){var F=new PiePiece(v,z,w);v.setItemGraphicEl(z,F),T.add(F)}).update(function(z,F){var B=x.getItemGraphicEl(F);B.updateData(v,z,w),B.off("click"),T.add(B),v.setItemGraphicEl(z,B)}).remove(function(z){var F=x.getItemGraphicEl(z);removeElementWithFadeOut(F,o,z)}).execute(),pieLabelLayout(o),o.get("animationTypeUpdate")!=="expansion"&&(this._data=v)},t.prototype.dispose=function(){},t.prototype.containPoint=function(o,s){var l=s.getData(),h=l.getItemLayout(0);if(h){var v=o[0]-h.cx,x=o[1]-h.cy,T=Math.sqrt(v*v+x*x);return T<=h.r&&T>=h.r0}},t.type="pie",t}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(r,t,o){t=isArray$1(t)&&{coordDimensions:t}||extend({encodeDefine:r.getEncode()},t);var s=r.getSource(),l=prepareSeriesDataSchema(s,t).dimensions,h=new SeriesData$1(l,r);return h.initData(s,o),h}var LegendVisualProvider=function(){function r(t,o){this._getDataWithEncodedVisual=t,this._getRawData=o}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var o=this._getRawData();return o.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var o=this._getDataWithEncodedVisual();return o.indexOfName(t)},r.prototype.getItemVisual=function(t,o){var s=this._getDataWithEncodedVisual();return s.getItemVisual(t,o)},r}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(o){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(o)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},t.prototype.getDataParams=function(o){var s=this.getData(),l=innerData(s),h=l.seats;if(!h){var v=[];s.each(s.mapDimension("value"),function(T){v.push(T)}),h=l.seats=getPercentSeats(v,s.hostModel.get("percentPrecision"))}var x=r.prototype.getDataParams.call(this,o);return x.percent=h[o]||0,x.$vars.push("percent"),x},t.prototype._defaultLabelLine=function(o){defaultEmphasis(o,"labelLine",["show"]);var s=o.labelLine,l=o.emphasis.labelLine;s.show=s.show&&o.label.show,l.show=l.show&&o.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(r){return{seriesType:r,reset:function(t,o){var s=t.getData();s.filterSelf(function(l){var h=s.mapDimension("value"),v=s.get(h,l);return!(isNumber(v)&&!isNaN(v)&&v<0)})}}}function install$h(r){r.registerChartView(PieView$1),r.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",r.registerAction),r.registerLayout(curry$1(pieLayout,"pie")),r.registerProcessor(dataFilter("pie")),r.registerProcessor(negativeDataFilter("pie"))}var GridModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},t.type="cartesian2dAxis",t}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(r,t,o,s){each$c(AXIS_TYPES,function(l,h){var v=merge(merge({},axisDefault[h],!0),s,!0),x=function(T){__extends(w,T);function w(){var C=T!==null&&T.apply(this,arguments)||this;return C.type=t+"Axis."+h,C}return w.prototype.mergeDefaultAndTheme=function(C,M){var V=fetchLayoutMode(this),z=V?getLayoutParams(C):{},F=M.getTheme();merge(C,F.get(h+"Axis")),merge(C,this.getDefaultOption()),C.type=getAxisType(C),V&&mergeLayoutParam(C,z,V)},w.prototype.optionUpdated=function(){var C=this.option;C.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},w.prototype.getCategories=function(C){var M=this.option;if(M.type==="category")return C?M.data:this.__ordinalMeta.categories},w.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},w.type=t+"Axis."+h,w.defaultOption=v,w}(o);r.registerComponentModel(x)}),r.registerSubTypeDefaulter(t+"Axis",getAxisType)}function getAxisType(r){return r.type||(r.data?"category":"value")}var Cartesian=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return map$2(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),filter(this.getAxes(),function(o){return o.scale.type===t})},r.prototype.addAxis=function(t){var o=t.dim;this._axes[o]=t,this._dimList.push(o)},r}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(r){return r.type==="interval"||r.type==="time"}var Cartesian2D=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="cartesian2d",o.dimensions=cartesian2DDimensions,o}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var o=this.getAxis("x").scale,s=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(o)||!canCalculateAffineTransform(s))){var l=o.getExtent(),h=s.getExtent(),v=this.dataToPoint([l[0],h[0]]),x=this.dataToPoint([l[1],h[1]]),T=l[1]-l[0],w=h[1]-h[0];if(!(!T||!w)){var C=(x[0]-v[0])/T,M=(x[1]-v[1])/w,V=v[0]-l[0]*C,z=v[1]-h[0]*M,F=this._transform=[C,0,0,M,V,z];this._invTransform=invert([],F)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(o){var s=this.getAxis("x"),l=this.getAxis("y");return s.contain(s.toLocalCoord(o[0]))&&l.contain(l.toLocalCoord(o[1]))},t.prototype.containData=function(o){return this.getAxis("x").containData(o[0])&&this.getAxis("y").containData(o[1])},t.prototype.containZone=function(o,s){var l=this.dataToPoint(o),h=this.dataToPoint(s),v=this.getArea(),x=new BoundingRect$1(l[0],l[1],h[0]-l[0],h[1]-l[1]);return v.intersect(x)},t.prototype.dataToPoint=function(o,s,l){l=l||[];var h=o[0],v=o[1];if(this._transform&&h!=null&&isFinite(h)&&v!=null&&isFinite(v))return applyTransform$1(l,o,this._transform);var x=this.getAxis("x"),T=this.getAxis("y");return l[0]=x.toGlobalCoord(x.dataToCoord(h,s)),l[1]=T.toGlobalCoord(T.dataToCoord(v,s)),l},t.prototype.clampData=function(o,s){var l=this.getAxis("x").scale,h=this.getAxis("y").scale,v=l.getExtent(),x=h.getExtent(),T=l.parse(o[0]),w=h.parse(o[1]);return s=s||[],s[0]=Math.min(Math.max(Math.min(v[0],v[1]),T),Math.max(v[0],v[1])),s[1]=Math.min(Math.max(Math.min(x[0],x[1]),w),Math.max(x[0],x[1])),s},t.prototype.pointToData=function(o,s){var l=[];if(this._invTransform)return applyTransform$1(l,o,this._invTransform);var h=this.getAxis("x"),v=this.getAxis("y");return l[0]=h.coordToData(h.toLocalCoord(o[0]),s),l[1]=v.coordToData(v.toLocalCoord(o[1]),s),l},t.prototype.getOtherAxis=function(o){return this.getAxis(o.dim==="x"?"y":"x")},t.prototype.getArea=function(){var o=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),l=Math.min(o[0],o[1]),h=Math.min(s[0],s[1]),v=Math.max(o[0],o[1])-l,x=Math.max(s[0],s[1])-h;return new BoundingRect$1(l,h,v,x)},t}(Cartesian$1),Axis2D=function(r){__extends(t,r);function t(o,s,l,h,v){var x=r.call(this,o,s,l)||this;return x.index=0,x.type=h||"value",x.position=v||"bottom",x}return t.prototype.isHorizontal=function(){var o=this.position;return o==="top"||o==="bottom"},t.prototype.getGlobalExtent=function(o){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),o&&s[0]>s[1]&&s.reverse(),s},t.prototype.pointToData=function(o,s){return this.coordToData(this.toLocalCoord(o[this.dim==="x"?0:1]),s)},t.prototype.setCategorySortInfo=function(o){if(this.type!=="category")return!1;this.model.option.categorySortInfo=o,this.scale.setSortInfo(o)},t}(Axis$1);const Axis2D$1=Axis2D;function layout$1(r,t,o){o=o||{};var s=r.coordinateSystem,l=t.axis,h={},v=l.getAxesOnZeroOf()[0],x=l.position,T=v?"onZero":x,w=l.dim,C=s.getRect(),M=[C.x,C.x+C.width,C.y,C.y+C.height],V={left:0,right:1,top:0,bottom:1,onZero:2},z=t.get("offset")||0,F=w==="x"?[M[2]-z,M[3]+z]:[M[0]-z,M[1]+z];if(v){var B=v.toGlobalCoord(v.dataToCoord(0));F[V.onZero]=Math.max(Math.min(B,F[1]),F[0])}h.position=[w==="y"?F[V[T]]:M[0],w==="x"?F[V[T]]:M[3]],h.rotation=Math.PI/2*(w==="x"?0:1);var W={top:-1,bottom:1,left:-1,right:1};h.labelDirection=h.tickDirection=h.nameDirection=W[x],h.labelOffset=v?F[V[x]]-F[V.onZero]:0,t.get(["axisTick","inside"])&&(h.tickDirection=-h.tickDirection),retrieve(o.labelInside,t.get(["axisLabel","inside"]))&&(h.labelDirection=-h.labelDirection);var Y=t.get(["axisLabel","rotate"]);return h.labelRotate=T==="top"?-Y:Y,h.z2=1,h}function isCartesian2DSeries(r){return r.get("coordinateSystem")==="cartesian2d"}function findAxisModels(r){var t={xAxisModel:null,yAxisModel:null};return each$c(t,function(o,s){var l=s.replace(/Model$/,""),h=r.getReferringComponents(l,SINGLE_REFERRING).models[0];t[s]=h}),t}var mathLog=Math.log;function alignScaleTicks(r,t,o){var s=IntervalScale$1.prototype,l=s.getTicks.call(o),h=s.getTicks.call(o,!0),v=l.length-1,x=s.getInterval.call(o),T=getScaleExtent(r,t),w=T.extent,C=T.fixMin,M=T.fixMax;if(r.type==="log"){var V=mathLog(r.base);w=[mathLog(w[0])/V,mathLog(w[1])/V]}r.setExtent(w[0],w[1]),r.calcNiceExtent({splitNumber:v,fixMin:C,fixMax:M});var z=s.getExtent.call(r);C&&(w[0]=z[0]),M&&(w[1]=z[1]);var F=s.getInterval.call(r),B=w[0],W=w[1];if(C&&M)F=(W-B)/v;else if(C)for(W=w[0]+F*v;W<w[1]&&isFinite(W)&&isFinite(w[1]);)F=increaseInterval(F),W=w[0]+F*v;else if(M)for(B=w[1]-F*v;B>w[0]&&isFinite(B)&&isFinite(w[0]);)F=increaseInterval(F),B=w[1]-F*v;else{var Y=r.getTicks().length-1;Y>v&&(F=increaseInterval(F));var Z=F*v;W=Math.ceil(w[1]/F)*F,B=round$1(W-Z),B<0&&w[0]>=0?(B=0,W=round$1(Z)):W>0&&w[1]<=0&&(W=0,B=-round$1(Z))}var X=(l[0].value-h[0].value)/x,te=(l[v].value-h[v].value)/x;s.setExtent.call(r,B+F*X,W+F*te),s.setInterval.call(r,F),(X||te)&&s.setNiceExtent.call(r,B+F,W-F)}var Grid=function(){function r(t,o,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(t,o,s),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,o){var s=this._axesMap;this._updateScale(t,this.model);function l(v){var x,T=keys(v),w=T.length;if(w){for(var C=[],M=w-1;M>=0;M--){var V=+T[M],z=v[V],F=z.model,B=z.scale;isIntervalOrLogScale(B)&&F.get("alignTicks")&&F.get("interval")==null?C.push(z):(niceScaleExtent(B,F),isIntervalOrLogScale(B)&&(x=z))}C.length&&(x||(x=C.pop(),niceScaleExtent(x.scale,x.model)),each$c(C,function(W){alignScaleTicks(W.scale,W.model,x.scale)}))}}l(s.x),l(s.y);var h={};each$c(s.x,function(v){fixAxisOnZero(s,"y",v,h)}),each$c(s.y,function(v){fixAxisOnZero(s,"x",v,h)}),this.resize(this.model,o)},r.prototype.resize=function(t,o,s){var l=t.getBoxLayoutParams(),h=!s&&t.get("containLabel"),v=getLayoutRect(l,{width:o.getWidth(),height:o.getHeight()});this._rect=v;var x=this._axesList;T(),h&&(each$c(x,function(w){if(!w.model.get(["axisLabel","inside"])){var C=estimateLabelUnionRect(w);if(C){var M=w.isHorizontal()?"height":"width",V=w.model.get(["axisLabel","margin"]);v[M]-=C[M]+V,w.position==="top"?v.y+=C.height+V:w.position==="left"&&(v.x+=C.width+V)}}}),T()),each$c(this._coordsList,function(w){w.calcAffineTransform()});function T(){each$c(x,function(w){var C=w.isHorizontal(),M=C?[0,v.width]:[0,v.height],V=w.inverse?1:0;w.setExtent(M[V],M[1-V]),updateAxisTransform(w,C?v.x:v.y)})}},r.prototype.getAxis=function(t,o){var s=this._axesMap[t];if(s!=null)return s[o||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,o){if(t!=null&&o!=null){var s="x"+t+"y"+o;return this._coordsMap[s]}isObject$3(t)&&(o=t.yAxisIndex,t=t.xAxisIndex);for(var l=0,h=this._coordsList;l<h.length;l++)if(h[l].getAxis("x").index===t||h[l].getAxis("y").index===o)return h[l]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,o,s){var l=this._findConvertTarget(o);return l.cartesian?l.cartesian.dataToPoint(s):l.axis?l.axis.toGlobalCoord(l.axis.dataToCoord(s)):null},r.prototype.convertFromPixel=function(t,o,s){var l=this._findConvertTarget(o);return l.cartesian?l.cartesian.pointToData(s):l.axis?l.axis.coordToData(l.axis.toLocalCoord(s)):null},r.prototype._findConvertTarget=function(t){var o=t.seriesModel,s=t.xAxisModel||o&&o.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],l=t.yAxisModel||o&&o.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],h=t.gridModel,v=this._coordsList,x,T;if(o)x=o.coordinateSystem,indexOf(v,x)<0&&(x=null);else if(s&&l)x=this.getCartesian(s.componentIndex,l.componentIndex);else if(s)T=this.getAxis("x",s.componentIndex);else if(l)T=this.getAxis("y",l.componentIndex);else if(h){var w=h.coordinateSystem;w===this&&(x=this._coordsList[0])}return{cartesian:x,axis:T}},r.prototype.containPoint=function(t){var o=this._coordsList[0];if(o)return o.containPoint(t)},r.prototype._initCartesian=function(t,o,s){var l=this,h=this,v={left:!1,right:!1,top:!1,bottom:!1},x={x:{},y:{}},T={x:0,y:0};if(o.eachComponent("xAxis",w("x"),this),o.eachComponent("yAxis",w("y"),this),!T.x||!T.y){this._axesMap={},this._axesList=[];return}this._axesMap=x,each$c(x.x,function(C,M){each$c(x.y,function(V,z){var F="x"+M+"y"+z,B=new Cartesian2D(F);B.master=l,B.model=t,l._coordsMap[F]=B,l._coordsList.push(B),B.addAxis(C),B.addAxis(V)})});function w(C){return function(M,V){if(isAxisUsedInTheGrid(M,t)){var z=M.get("position");C==="x"?z!=="top"&&z!=="bottom"&&(z=v.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=v.left?"right":"left"),v[z]=!0;var F=new Axis2D$1(C,createScaleByModel(M),[0,0],M.get("type"),z),B=F.type==="category";F.onBand=B&&M.get("boundaryGap"),F.inverse=M.get("inverse"),M.axis=F,F.model=M,F.grid=h,F.index=V,h._axesList.push(F),x[C][V]=F,T[C]++}}}},r.prototype._updateScale=function(t,o){each$c(this._axesList,function(l){if(l.scale.setExtent(1/0,-1/0),l.type==="category"){var h=l.model.get("categorySortInfo");l.scale.setSortInfo(h)}}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var h=findAxisModels(l),v=h.xAxisModel,x=h.yAxisModel;if(!isAxisUsedInTheGrid(v,o)||!isAxisUsedInTheGrid(x,o))return;var T=this.getCartesian(v.componentIndex,x.componentIndex),w=l.getData(),C=T.getAxis("x"),M=T.getAxis("y");s(w,C),s(w,M)}},this);function s(l,h){each$c(getDataDimensionsOnAxis(l,h.dim),function(v){h.scale.unionExtentFromData(l,v)})}},r.prototype.getTooltipAxes=function(t){var o=[],s=[];return each$c(this.getCartesians(),function(l){var h=t!=null&&t!=="auto"?l.getAxis(t):l.getBaseAxis(),v=l.getOtherAxis(h);indexOf(o,h)<0&&o.push(h),indexOf(s,v)<0&&s.push(v)}),{baseAxes:o,otherAxes:s}},r.create=function(t,o){var s=[];return t.eachComponent("grid",function(l,h){var v=new r(l,t,o);v.name="grid_"+h,v.resize(l,o,!0),l.coordinateSystem=v,s.push(v)}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var h=findAxisModels(l),v=h.xAxisModel,x=h.yAxisModel,T=v.getCoordSysModel(),w=T.coordinateSystem;l.coordinateSystem=w.getCartesian(v.componentIndex,x.componentIndex)}}),s},r.dimensions=cartesian2DDimensions,r}();function isAxisUsedInTheGrid(r,t){return r.getCoordSysModel()===t}function fixAxisOnZero(r,t,o,s){o.getAxesOnZeroOf=function(){return h?[h]:[]};var l=r[t],h,v=o.model,x=v.get(["axisLine","onZero"]),T=v.get(["axisLine","onZeroAxisIndex"]);if(!x)return;if(T!=null)canOnZeroToAxis(l[T])&&(h=l[T]);else for(var w in l)if(l.hasOwnProperty(w)&&canOnZeroToAxis(l[w])&&!s[C(l[w])]){h=l[w];break}h&&(s[C(h)]=!0);function C(M){return M.dim+"_"+M.index}}function canOnZeroToAxis(r){return r&&r.type!=="category"&&r.type!=="time"&&ifAxisCrossZero(r)}function updateAxisTransform(r,t){var o=r.getExtent(),s=o[0]+o[1];r.toGlobalCoord=r.dim==="x"?function(l){return l+t}:function(l){return s-l+t},r.toLocalCoord=r.dim==="x"?function(l){return l-t}:function(l){return s-l+t}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function r(t,o){this.group=new Group$3,this.opt=o,this.axisModel=t,defaults(o,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var s=new Group$3({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s}return r.prototype.hasBuilder=function(t){return!!builders[t]},r.prototype.add=function(t){builders[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,o,s){var l=remRadian(o-t),h,v;return isRadianAroundZero(l)?(v=s>0?"top":"bottom",h="center"):isRadianAroundZero(l-PI)?(v=s>0?"bottom":"top",h="center"):(v="middle",l>0&&l<PI?h=s>0?"right":"left":h=s>0?"left":"right"),{rotation:l,textAlign:h,textVerticalAlign:v}},r.makeAxisEventDataBase=function(t){var o={componentType:t.mainType,componentIndex:t.componentIndex};return o[t.mainType+"Index"]=t.componentIndex,o},r.isLabelSilent=function(t){var o=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||o&&o.show)},r}(),builders={axisLine:function(r,t,o,s){var l=t.get(["axisLine","show"]);if(l==="auto"&&r.handleAutoShown&&(l=r.handleAutoShown("axisLine")),!!l){var h=t.axis.getExtent(),v=s.transform,x=[h[0],0],T=[h[1],0],w=x[0]>T[0];v&&(applyTransform$1(x,x,v),applyTransform$1(T,T,v));var C=extend({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),M=new Line$1({shape:{x1:x[0],y1:x[1],x2:T[0],y2:T[1]},style:C,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(M.shape,M.style.lineWidth),M.anid="line",o.add(M);var V=t.get(["axisLine","symbol"]);if(V!=null){var z=t.get(["axisLine","symbolSize"]);isString(V)&&(V=[V,V]),(isString(z)||isNumber(z))&&(z=[z,z]);var F=normalizeSymbolOffset(t.get(["axisLine","symbolOffset"])||0,z),B=z[0],W=z[1];each$c([{rotate:r.rotation+Math.PI/2,offset:F[0],r:0},{rotate:r.rotation-Math.PI/2,offset:F[1],r:Math.sqrt((x[0]-T[0])*(x[0]-T[0])+(x[1]-T[1])*(x[1]-T[1]))}],function(Y,Z){if(V[Z]!=="none"&&V[Z]!=null){var X=createSymbol(V[Z],-B/2,-W/2,B,W,C.stroke,!0),te=Y.r+Y.offset,oe=w?T:x;X.attr({rotation:Y.rotate,x:oe[0]+te*Math.cos(r.rotation),y:oe[1]-te*Math.sin(r.rotation),silent:!0,z2:11}),o.add(X)}})}}},axisTickLabel:function(r,t,o,s){var l=buildAxisMajorTicks(o,s,t,r),h=buildAxisLabel(o,s,t,r);if(fixMinMaxLabelShow(t,h,l),buildAxisMinorTicks(o,s,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var v=prepareLayoutList(map$2(h,function(x){return{label:x,priority:x.z2,defaultAttr:{ignore:x.ignore}}}));hideOverlap(v)}},axisName:function(r,t,o,s){var l=retrieve(r.axisName,t.get("name"));if(l){var h=t.get("nameLocation"),v=r.nameDirection,x=t.getModel("nameTextStyle"),T=t.get("nameGap")||0,w=t.axis.getExtent(),C=w[0]>w[1]?-1:1,M=[h==="start"?w[0]-C*T:h==="end"?w[1]+C*T:(w[0]+w[1])/2,isNameLocationCenter(h)?r.labelOffset+v*T:0],V,z=t.get("nameRotate");z!=null&&(z=z*PI/180);var F;isNameLocationCenter(h)?V=AxisBuilder.innerTextLayout(r.rotation,z??r.rotation,v):(V=endTextLayout(r.rotation,h,z||0,w),F=r.axisNameAvailableWidth,F!=null&&(F=Math.abs(F/Math.sin(V.rotation)),!isFinite(F)&&(F=null)));var B=x.getFont(),W=t.get("nameTruncate",!0)||{},Y=W.ellipsis,Z=retrieve(r.nameTruncateMaxWidth,W.maxWidth,F),X=new ZRText$1({x:M[0],y:M[1],rotation:V.rotation,silent:AxisBuilder.isLabelSilent(t),style:createTextStyle$1(x,{text:l,font:B,overflow:"truncate",width:Z,ellipsis:Y,fill:x.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:x.get("align")||V.textAlign,verticalAlign:x.get("verticalAlign")||V.textVerticalAlign}),z2:1});if(setTooltipConfig({el:X,componentModel:t,itemName:l}),X.__fullText=l,X.anid="name",t.get("triggerEvent")){var te=AxisBuilder.makeAxisEventDataBase(t);te.targetType="axisName",te.name=l,getECData(X).eventData=te}s.add(X),X.updateTransform(),o.add(X),X.decomposeTransform()}}};function endTextLayout(r,t,o,s){var l=remRadian(o-r),h,v,x=s[0]>s[1],T=t==="start"&&!x||t!=="start"&&x;return isRadianAroundZero(l-PI/2)?(v=T?"bottom":"top",h="center"):isRadianAroundZero(l-PI*1.5)?(v=T?"top":"bottom",h="center"):(v="middle",l<PI*1.5&&l>PI/2?h=T?"left":"right":h=T?"right":"left"),{rotation:l,textAlign:h,textVerticalAlign:v}}function fixMinMaxLabelShow(r,t,o){if(!shouldShowAllLabels(r.axis)){var s=r.get(["axisLabel","showMinLabel"]),l=r.get(["axisLabel","showMaxLabel"]);t=t||[],o=o||[];var h=t[0],v=t[1],x=t[t.length-1],T=t[t.length-2],w=o[0],C=o[1],M=o[o.length-1],V=o[o.length-2];s===!1?(ignoreEl(h),ignoreEl(w)):isTwoLabelOverlapped(h,v)&&(s?(ignoreEl(v),ignoreEl(C)):(ignoreEl(h),ignoreEl(w))),l===!1?(ignoreEl(x),ignoreEl(M)):isTwoLabelOverlapped(T,x)&&(l?(ignoreEl(T),ignoreEl(V)):(ignoreEl(x),ignoreEl(M)))}}function ignoreEl(r){r&&(r.ignore=!0)}function isTwoLabelOverlapped(r,t){var o=r&&r.getBoundingRect().clone(),s=t&&t.getBoundingRect().clone();if(!(!o||!s)){var l=identity([]);return rotate(l,l,-r.rotation),o.applyTransform(mul([],l,r.getLocalTransform())),s.applyTransform(mul([],l,t.getLocalTransform())),o.intersect(s)}}function isNameLocationCenter(r){return r==="middle"||r==="center"}function createTicks(r,t,o,s,l){for(var h=[],v=[],x=[],T=0;T<r.length;T++){var w=r[T].coord;v[0]=w,v[1]=0,x[0]=w,x[1]=o,t&&(applyTransform$1(v,v,t),applyTransform$1(x,x,t));var C=new Line$1({shape:{x1:v[0],y1:v[1],x2:x[0],y2:x[1]},style:s,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(C.shape,C.style.lineWidth),C.anid=l+"_"+r[T].tickValue,h.push(C)}return h}function buildAxisMajorTicks(r,t,o,s){var l=o.axis,h=o.getModel("axisTick"),v=h.get("show");if(v==="auto"&&s.handleAutoShown&&(v=s.handleAutoShown("axisTick")),!(!v||l.scale.isBlank())){for(var x=h.getModel("lineStyle"),T=s.tickDirection*h.get("length"),w=l.getTicksCoords(),C=createTicks(w,t.transform,T,defaults(x.getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])}),"ticks"),M=0;M<C.length;M++)r.add(C[M]);return C}}function buildAxisMinorTicks(r,t,o,s){var l=o.axis,h=o.getModel("minorTick");if(!(!h.get("show")||l.scale.isBlank())){var v=l.getMinorTicksCoords();if(v.length)for(var x=h.getModel("lineStyle"),T=s*h.get("length"),w=defaults(x.getLineStyle(),defaults(o.getModel("axisTick").getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])})),C=0;C<v.length;C++)for(var M=createTicks(v[C],t.transform,T,w,"minorticks_"+C),V=0;V<M.length;V++)r.add(M[V])}}function buildAxisLabel(r,t,o,s){var l=o.axis,h=retrieve(s.axisLabelShow,o.get(["axisLabel","show"]));if(!(!h||l.scale.isBlank())){var v=o.getModel("axisLabel"),x=v.get("margin"),T=l.getViewLabels(),w=(retrieve(s.labelRotate,v.get("rotate"))||0)*PI/180,C=AxisBuilder.innerTextLayout(s.rotation,w,s.labelDirection),M=o.getCategories&&o.getCategories(!0),V=[],z=AxisBuilder.isLabelSilent(o),F=o.get("triggerEvent");return each$c(T,function(B,W){var Y=l.scale.type==="ordinal"?l.scale.getRawOrdinalNumber(B.tickValue):B.tickValue,Z=B.formattedLabel,X=B.rawLabel,te=v;if(M&&M[Y]){var oe=M[Y];isObject$3(oe)&&oe.textStyle&&(te=new Model$1(oe.textStyle,v,o.ecModel))}var ae=te.getTextColor()||o.get(["axisLine","lineStyle","color"]),le=l.dataToCoord(Y),he=new ZRText$1({x:le,y:s.labelOffset+s.labelDirection*x,rotation:C.rotation,silent:z,z2:10+(B.level||0),style:createTextStyle$1(te,{text:Z,align:te.getShallow("align",!0)||C.textAlign,verticalAlign:te.getShallow("verticalAlign",!0)||te.getShallow("baseline",!0)||C.textVerticalAlign,fill:isFunction(ae)?ae(l.type==="category"?X:l.type==="value"?Y+"":Y,W):ae})});if(he.anid="label_"+Y,F){var me=AxisBuilder.makeAxisEventDataBase(o);me.targetType="axisLabel",me.value=X,me.tickIndex=W,l.type==="category"&&(me.dataIndex=Y),getECData(he).eventData=me}t.add(he),he.updateTransform(),V.push(he),r.add(he),he.decomposeTransform()}),V}}const AxisBuilder$1=AxisBuilder;function collect(r,t){var o={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(o,r,t),o.seriesInvolved&&collectSeriesInfo(o,r),o}function collectAxesInfo(r,t,o){var s=t.getComponent("tooltip"),l=t.getComponent("axisPointer"),h=l.get("link",!0)||[],v=[];each$c(o.getCoordinateSystems(),function(x){if(!x.axisPointerEnabled)return;var T=makeKey(x.model),w=r.coordSysAxesInfo[T]={};r.coordSysMap[T]=x;var C=x.model,M=C.getModel("tooltip",s);if(each$c(x.getAxes(),curry$1(B,!1,null)),x.getTooltipAxes&&s&&M.get("show")){var V=M.get("trigger")==="axis",z=M.get(["axisPointer","type"])==="cross",F=x.getTooltipAxes(M.get(["axisPointer","axis"]));(V||z)&&each$c(F.baseAxes,curry$1(B,z?"cross":!0,V)),z&&each$c(F.otherAxes,curry$1(B,"cross",!1))}function B(W,Y,Z){var X=Z.model.getModel("axisPointer",l),te=X.get("show");if(!(!te||te==="auto"&&!W&&!isHandleTrigger(X))){Y==null&&(Y=X.get("triggerTooltip")),X=W?makeAxisPointerModel(Z,M,l,t,W,Y):X;var oe=X.get("snap"),ae=makeKey(Z.model),le=Y||oe||Z.type==="category",he=r.axesInfo[ae]={key:ae,axis:Z,coordSys:x,axisPointerModel:X,triggerTooltip:Y,involveSeries:le,snap:oe,useHandle:isHandleTrigger(X),seriesModels:[],linkGroup:null};w[ae]=he,r.seriesInvolved=r.seriesInvolved||le;var me=getLinkGroupIndex(h,Z);if(me!=null){var _e=v[me]||(v[me]={axesInfo:{}});_e.axesInfo[ae]=he,_e.mapper=h[me].mapper,he.linkGroup=_e}}}})}function makeAxisPointerModel(r,t,o,s,l,h){var v=t.getModel("axisPointer"),x=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],T={};each$c(x,function(V){T[V]=clone$3(v.get(V))}),T.snap=r.type!=="category"&&!!h,v.get("type")==="cross"&&(T.type="line");var w=T.label||(T.label={});if(w.show==null&&(w.show=!1),l==="cross"){var C=v.get(["label","show"]);if(w.show=C??!0,!h){var M=T.lineStyle=v.get("crossStyle");M&&defaults(w,M.textStyle)}}return r.model.getModel("axisPointer",new Model$1(T,o,s))}function collectSeriesInfo(r,t){t.eachSeries(function(o){var s=o.coordinateSystem,l=o.get(["tooltip","trigger"],!0),h=o.get(["tooltip","show"],!0);!s||l==="none"||l===!1||l==="item"||h===!1||o.get(["axisPointer","show"],!0)===!1||each$c(r.coordSysAxesInfo[makeKey(s.model)],function(v){var x=v.axis;s.getAxis(x.dim)===x&&(v.seriesModels.push(o),v.seriesDataCount==null&&(v.seriesDataCount=0),v.seriesDataCount+=o.getData().count())})})}function getLinkGroupIndex(r,t){for(var o=t.model,s=t.dim,l=0;l<r.length;l++){var h=r[l]||{};if(checkPropInLink(h[s+"AxisId"],o.id)||checkPropInLink(h[s+"AxisIndex"],o.componentIndex)||checkPropInLink(h[s+"AxisName"],o.name))return l}}function checkPropInLink(r,t){return r==="all"||isArray$1(r)&&indexOf(r,t)>=0||r===t}function fixValue(r){var t=getAxisInfo(r);if(t){var o=t.axisPointerModel,s=t.axis.scale,l=o.option,h=o.get("status"),v=o.get("value");v!=null&&(v=s.parse(v));var x=isHandleTrigger(o);h==null&&(l.status=x?"show":"hide");var T=s.getExtent().slice();T[0]>T[1]&&T.reverse(),(v==null||v>T[1])&&(v=T[1]),v<T[0]&&(v=T[0]),l.value=v,x&&(l.status=t.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[makeKey(r)]}function getAxisPointerModel(r){var t=getAxisInfo(r);return t&&t.axisPointerModel}function isHandleTrigger(r){return!!r.get(["handle","show"])}function makeKey(r){return r.type+"||"+r.id}var axisPointerClazz={},AxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l,h){this.axisPointerClass&&fixValue(o),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(o,l,!0)},t.prototype.updateAxisPointer=function(o,s,l,h){this._doUpdateAxisPointerClass(o,l,!1)},t.prototype.remove=function(o,s){var l=this._axisPointer;l&&l.remove(s)},t.prototype.dispose=function(o,s){this._disposeAxisPointer(s),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(o,s,l){var h=t.getAxisPointerClass(this.axisPointerClass);if(h){var v=getAxisPointerModel(o);v?(this._axisPointer||(this._axisPointer=new h)).render(o,v,s,l):this._disposeAxisPointer(s)}},t.prototype._disposeAxisPointer=function(o){this._axisPointer&&this._axisPointer.dispose(o),this._axisPointer=null},t.registerAxisPointerClass=function(o,s){axisPointerClazz[o]=s},t.getAxisPointerClass=function(o){return o&&axisPointerClazz[o]},t.type="axis",t}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea(r,t,o,s){var l=o.axis;if(!l.scale.isBlank()){var h=o.getModel("splitArea"),v=h.getModel("areaStyle"),x=v.get("color"),T=s.coordinateSystem.getRect(),w=l.getTicksCoords({tickModel:h,clamp:!0});if(w.length){var C=x.length,M=inner$6(r).splitAreaColors,V=createHashMap(),z=0;if(M)for(var F=0;F<w.length;F++){var B=M.get(w[F].tickValue);if(B!=null){z=(B+(C-1)*F)%C;break}}var W=l.toGlobalCoord(w[0].coord),Y=v.getAreaStyle();x=isArray$1(x)?x:[x];for(var F=1;F<w.length;F++){var Z=l.toGlobalCoord(w[F].coord),X=void 0,te=void 0,oe=void 0,ae=void 0;l.isHorizontal()?(X=W,te=T.y,oe=Z-X,ae=T.height,W=X+oe):(X=T.x,te=W,oe=T.width,ae=Z-te,W=te+ae);var le=w[F-1].tickValue;le!=null&&V.set(le,z),t.add(new Rect$2({anid:le!=null?"area_"+le:null,shape:{x:X,y:te,width:oe,height:ae},style:defaults({fill:x[z]},Y),autoBatch:!0,silent:!0})),z=(z+1)%C}inner$6(r).splitAreaColors=V}}}function rectCoordAxisHandleRemove(r){inner$6(r).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.axisPointerClass="CartesianAxisPointer",o}return t.prototype.render=function(o,s,l,h){this.group.removeAll();var v=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!o.get("show")){var x=o.getCoordSysModel(),T=layout$1(x,o),w=new AxisBuilder$1(o,extend({handleAutoShown:function(M){for(var V=x.coordinateSystem.getCartesians(),z=0;z<V.length;z++)if(isIntervalOrLogScale(V[z].getOtherAxis(o.axis).scale))return!0;return!1}},T));each$c(axisBuilderAttrs,w.add,w),this._axisGroup.add(w.getGroup()),each$c(selfBuilderAttrs,function(M){o.get([M,"show"])&&axisElementBuilders[M](this,this._axisGroup,o,x)},this);var C=h&&h.type==="changeAxisOrder"&&h.isInitSort;C||groupTransition(v,this._axisGroup,o),r.prototype.render.call(this,o,s,l,h)}},t.prototype.remove=function(){rectCoordAxisHandleRemove(this)},t.type="cartesianAxis",t}(AxisView$1),axisElementBuilders={splitLine:function(r,t,o,s){var l=o.axis;if(!l.scale.isBlank()){var h=o.getModel("splitLine"),v=h.getModel("lineStyle"),x=v.get("color");x=isArray$1(x)?x:[x];for(var T=s.coordinateSystem.getRect(),w=l.isHorizontal(),C=0,M=l.getTicksCoords({tickModel:h}),V=[],z=[],F=v.getLineStyle(),B=0;B<M.length;B++){var W=l.toGlobalCoord(M[B].coord);w?(V[0]=W,V[1]=T.y,z[0]=W,z[1]=T.y+T.height):(V[0]=T.x,V[1]=W,z[0]=T.x+T.width,z[1]=W);var Y=C++%x.length,Z=M[B].tickValue,X=new Line$1({anid:Z!=null?"line_"+M[B].tickValue:null,autoBatch:!0,shape:{x1:V[0],y1:V[1],x2:z[0],y2:z[1]},style:defaults({stroke:x[Y]},F),silent:!0});subPixelOptimizeLine(X.shape,F.lineWidth),t.add(X)}}},minorSplitLine:function(r,t,o,s){var l=o.axis,h=o.getModel("minorSplitLine"),v=h.getModel("lineStyle"),x=s.coordinateSystem.getRect(),T=l.isHorizontal(),w=l.getMinorTicksCoords();if(w.length)for(var C=[],M=[],V=v.getLineStyle(),z=0;z<w.length;z++)for(var F=0;F<w[z].length;F++){var B=l.toGlobalCoord(w[z][F].coord);T?(C[0]=B,C[1]=x.y,M[0]=B,M[1]=x.y+x.height):(C[0]=x.x,C[1]=B,M[0]=x.x+x.width,M[1]=B);var W=new Line$1({anid:"minor_line_"+w[z][F].tickValue,autoBatch:!0,shape:{x1:C[0],y1:C[1],x2:M[0],y2:M[1]},style:V,silent:!0});subPixelOptimizeLine(W.shape,V.lineWidth),t.add(W)}},splitArea:function(r,t,o,s){rectCoordAxisBuildSplitArea(r,t,o,s)}},CartesianXAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="xAxis",t}(CartesianAxisView),CartesianYAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=CartesianXAxisView.type,o}return t.type="yAxis",t}(CartesianAxisView),GridView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="grid",o}return t.prototype.render=function(o,s){this.group.removeAll(),o.get("show")&&this.group.add(new Rect$2({shape:o.coordinateSystem.getRect(),style:defaults({fill:o.get("backgroundColor")},o.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ComponentView$1),extraOption={offset:0};function install$g(r){r.registerComponentView(GridView),r.registerComponentModel(GridModel$1),r.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator(r,"x",CartesianAxisModel,extraOption),axisModelCreator(r,"y",CartesianAxisModel,extraOption),r.registerComponentView(CartesianXAxisView),r.registerComponentView(CartesianYAxisView),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ATTR="\0_ec_interaction_mutex";function take(r,t,o){var s=getStore(r);s[t]=o}function release(r,t,o){var s=getStore(r),l=s[t];l===o&&(s[t]=null)}function isTaken(r,t){return!!getStore(r)[t]}function getStore(r){return r[ATTR]||(r[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;s._zr=o;var l=bind$1(s._mousedownHandler,s),h=bind$1(s._mousemoveHandler,s),v=bind$1(s._mouseupHandler,s),x=bind$1(s._mousewheelHandler,s),T=bind$1(s._pinchHandler,s);return s.enable=function(w,C){this.disable(),this._opt=defaults(clone$3(C)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),w==null&&(w=!0),(w===!0||w==="move"||w==="pan")&&(o.on("mousedown",l),o.on("mousemove",h),o.on("mouseup",v)),(w===!0||w==="scale"||w==="zoom")&&(o.on("mousewheel",x),o.on("pinch",T))},s.disable=function(){o.off("mousedown",l),o.off("mousemove",h),o.off("mouseup",v),o.off("mousewheel",x),o.off("pinch",T)},s}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(o){this.pointerChecker=o},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(o){if(!isMiddleOrRightButtonOnMouseUpDown(o)){for(var s=o.target;s;){if(s.draggable)return;s=s.__hostTarget||s.parent}var l=o.offsetX,h=o.offsetY;this.pointerChecker&&this.pointerChecker(o,l,h)&&(this._x=l,this._y=h,this._dragging=!0)}},t.prototype._mousemoveHandler=function(o){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",o,this._opt)||o.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var s=o.offsetX,l=o.offsetY,h=this._x,v=this._y,x=s-h,T=l-v;this._x=s,this._y=l,this._opt.preventDefaultMouseMove&&stop(o.event),trigger$1(this,"pan","moveOnMouseMove",o,{dx:x,dy:T,oldX:h,oldY:v,newX:s,newY:l,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(o){isMiddleOrRightButtonOnMouseUpDown(o)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(o){var s=isAvailableBehavior("zoomOnMouseWheel",o,this._opt),l=isAvailableBehavior("moveOnMouseWheel",o,this._opt),h=o.wheelDelta,v=Math.abs(h),x=o.offsetX,T=o.offsetY;if(!(h===0||!s&&!l)){if(s){var w=v>3?1.4:v>1?1.2:1.1,C=h>0?w:1/w;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",o,{scale:C,originX:x,originY:T,isAvailableBehavior:null})}if(l){var M=Math.abs(h),V=(h>0?1:-1)*(M>3?.4:M>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",o,{scrollDelta:V,originX:x,originY:T,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(o){if(!isTaken(this._zr,"globalPan")){var s=o.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,o,{scale:s,originX:o.pinchX,originY:o.pinchY,isAvailableBehavior:null})}},t}(Eventful$1);function checkPointerAndTrigger(r,t,o,s,l){r.pointerChecker&&r.pointerChecker(s,l.originX,l.originY)&&(stop(s.event),trigger$1(r,t,o,s,l))}function trigger$1(r,t,o,s,l){l.isAvailableBehavior=bind$1(isAvailableBehavior,null,o,s),r.trigger(t,l)}function isAvailableBehavior(r,t,o){var s=o[r];return!r||s&&(!isString(s)||t.event[s+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(r,t,o){var s=t.getComponentByElement(r.topTarget),l=s&&s.coordinateSystem;return s&&s!==o&&!IRRELEVANT_EXCLUDES.hasOwnProperty(s.mainType)&&l&&l.model!==o}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function r(t){var o=t.mappingMethod,s=t.type,l=this.option=clone$3(t);this.type=s,this.mappingMethod=o,this._normalizeData=normalizers[o];var h=r.visualHandlers[s];this.applyVisual=h.applyVisual,this.getColorMapper=h.getColorMapper,this._normalizedToVisual=h._normalizedToVisual[o],o==="piecewise"?(normalizeVisualRange(l),preprocessForPiecewise(l)):o==="category"?l.categories?preprocessForSpecifiedCategory(l):normalizeVisualRange(l,!0):(assert(o!=="linear"||l.dataExtent),normalizeVisualRange(l))}return r.prototype.mapValueToVisual=function(t){var o=this._normalizeData(t);return this._normalizedToVisual(o,t)},r.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},r.listVisualTypes=function(){return keys(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,o,s){isObject$3(t)?each$c(t,o,s):o.call(s,t)},r.mapVisual=function(t,o,s){var l,h=isArray$1(t)?[]:isObject$3(t)?{}:(l=!0,null);return r.eachVisual(t,function(v,x){var T=o.call(s,v,x);l?h=T:h[x]=T}),h},r.retrieveVisuals=function(t){var o={},s;return t&&each$9(r.visualHandlers,function(l,h){t.hasOwnProperty(h)&&(o[h]=t[h],s=!0)}),s?o:null},r.prepareVisualTypes=function(t){if(isArray$1(t))t=t.slice();else if(isObject(t)){var o=[];each$9(t,function(s,l){o.push(l)}),t=o}else return[];return t.sort(function(s,l){return l==="color"&&s!=="color"&&s.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,o){return o==="color"?!!(t&&t.indexOf(o)===0):t===o},r.findPieceIndex=function(t,o,s){for(var l,h=1/0,v=0,x=o.length;v<x;v++){var T=o[v].value;if(T!=null){if(T===t||isString(T)&&T===t+"")return v;s&&V(T,v)}}for(var v=0,x=o.length;v<x;v++){var w=o[v],C=w.interval,M=w.close;if(C){if(C[0]===-1/0){if(littleThan(M[1],t,C[1]))return v}else if(C[1]===1/0){if(littleThan(M[0],C[0],t))return v}else if(littleThan(M[0],C[0],t)&&littleThan(M[1],t,C[1]))return v;s&&V(C[0],v),s&&V(C[1],v)}}if(s)return t===1/0?o.length-1:t===-1/0?0:l;function V(z,F){var B=Math.abs(z-t);B<h&&(h=B,l=F)}},r.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var t=this.option;return bind$1(t.mappingMethod==="category"?function(o,s){return!s&&(o=this._normalizeData(o)),doMapCategory.call(this,o)}:function(o,s,l){var h=!!l;return!s&&(o=this._normalizeData(o)),l=fastLerp(o,t.parsedVisual,l),h?l:stringify(l,"rgba")},this)},_normalizedToVisual:{linear:function(t){return stringify(fastLerp(t,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=stringify(fastLerp(t,this.option.parsedVisual),"rgba")),s},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,o)}),colorSaturation:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,null,o)}),colorLightness:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,null,null,o)}),colorAlpha:makePartialColorVisualHandler(function(t,o){return modifyAlpha(t,o)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(t,o,s){var l=this.mapValueToVisual(t);s("symbol",l)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=doMapToArray.call(this,t)),s},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},r}();function preprocessForPiecewise(r){var t=r.pieceList;r.hasSpecialVisual=!1,each$c(t,function(o,s){o.originIndex=s,o.visual!=null&&(r.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory(r){var t=r.categories,o=r.categoryMap={},s=r.visual;if(each$9(t,function(v,x){o[v]=x}),!isArray$1(s)){var l=[];isObject$3(s)?each$9(s,function(v,x){var T=o[x];l[T??CATEGORY_DEFAULT_VISUAL_INDEX]=v}):l[CATEGORY_DEFAULT_VISUAL_INDEX]=s,s=setVisualToOption(r,l)}for(var h=t.length-1;h>=0;h--)s[h]==null&&(delete o[t[h]],t.pop())}function normalizeVisualRange(r,t){var o=r.visual,s=[];isObject$3(o)?each$9(o,function(h){s.push(h)}):o!=null&&s.push(o);var l={color:1,symbol:1};!t&&s.length===1&&!l.hasOwnProperty(r.type)&&(s[1]=s[0]),setVisualToOption(r,s)}function makePartialColorVisualHandler(r){return{applyVisual:function(t,o,s){var l=this.mapValueToVisual(t);s("color",r(o("color"),l))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(r){var t=this.option.visual;return t[Math.round(linearMap$2(r,[0,1],[0,t.length-1],!0))]||{}}function makeApplyVisual(r){return function(t,o,s){s(r,this.mapValueToVisual(t))}}function doMapCategory(r){var t=this.option.visual;return t[this.option.loop&&r!==CATEGORY_DEFAULT_VISUAL_INDEX?r%t.length:r]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(r){return{linear:function(t){return linearMap$2(t,r,this.option.visual,!0)},category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=linearMap$2(t,r,this.option.visual,!0)),s},fixed:doMapFixed}}function getSpecifiedVisual(r){var t=this.option,o=t.pieceList;if(t.hasSpecialVisual){var s=VisualMapping.findPieceIndex(r,o),l=o[s];if(l&&l.visual)return l.visual[this.type]}}function setVisualToOption(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=map$2(t,function(o){var s=parse$1(o);return s||[0,0,0,1]})),t}var normalizers={linear:function(r){return linearMap$2(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,o=VisualMapping.findPieceIndex(r,t,!0);if(o!=null)return linearMap$2(o,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan(r,t,o){return r?t<=o:t<o}const VisualMapping$1=VisualMapping;function sliderMove(r,t,o,s,l,h){r=r||0;var v=o[1]-o[0];if(l!=null&&(l=restrict(l,[0,v])),h!=null&&(h=Math.max(h,l??0)),s==="all"){var x=Math.abs(t[1]-t[0]);x=restrict(x,[0,v]),l=h=restrict(x,[l,h]),s=0}t[0]=restrict(t[0],o),t[1]=restrict(t[1],o);var T=getSpanSign(t,s);t[s]+=r;var w=l||0,C=o.slice();T.sign<0?C[0]+=w:C[1]-=w,t[s]=restrict(t[s],C);var M;return M=getSpanSign(t,s),l!=null&&(M.sign!==T.sign||M.span<l)&&(t[1-s]=t[s]+T.sign*l),M=getSpanSign(t,s),h!=null&&M.span>h&&(t[1-s]=t[s]+M.sign*h),t}function getSpanSign(r,t){var o=r[t]-r[1-t];return{span:Math.abs(o),sign:o>0?-1:o<0?1:t?-1:1}}function restrict(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s._track=[],s._covers=[],s._handlers={},s._zr=o,s.group=new Group$3,s._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(l,h){this._handlers[h]=bind$1(l,this)},s),s}return t.prototype.enableBrush=function(o){return this._brushType&&this._doDisableBrush(),o.brushType&&this._doEnableBrush(o),this},t.prototype._doEnableBrush=function(o){var s=this._zr;this._enableGlobalPan||take(s,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(l,h){s.on(h,l)}),this._brushType=o.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),o,!0)},t.prototype._doDisableBrush=function(){var o=this._zr;release(o,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(s,l){o.off(l,s)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(o){if(o&&o.length){var s=this._panels={};each$c(o,function(l){s[l.panelId]=clone$3(l)})}else this._panels=null;return this},t.prototype.mount=function(o){o=o||{},this._enableGlobalPan=o.enableGlobalPan;var s=this.group;return this._zr.add(s),s.attr({x:o.x||0,y:o.y||0,rotation:o.rotation||0,scaleX:o.scaleX||1,scaleY:o.scaleY||1}),this._transform=s.getLocalTransform(),this},t.prototype.updateCovers=function(o){o=map$2(o,function(V){return merge(clone$3(DEFAULT_BRUSH_OPT),V,!0)});var s="\0-brush-index-",l=this._covers,h=this._covers=[],v=this,x=this._creatingCover;return new DataDiffer$1(l,o,w,T).add(C).update(C).remove(M).execute(),this;function T(V,z){return(V.id!=null?V.id:s+z)+"-"+V.brushType}function w(V,z){return T(V.__brushOption,z)}function C(V,z){var F=o[V];if(z!=null&&l[z]===x)h[V]=l[z];else{var B=h[V]=z!=null?(l[z].__brushOption=F,l[z]):endCreating(v,createCover(v,F));updateCoverAfterCreation(v,B)}}function M(V){l[V]!==x&&v.group.remove(l[V])}},t.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Eventful$1);function createCover(r,t){var o=coverRenderers[t.brushType].createCover(r,t);return o.__brushOption=t,updateZ(o,t),r.group.add(o),o}function endCreating(r,t){var o=getCoverRenderer(t);return o.endCreating&&(o.endCreating(r,t),updateZ(t,t.__brushOption)),t}function updateCoverShape(r,t){var o=t.__brushOption;getCoverRenderer(t).updateCoverShape(r,t,o.range,o)}function updateZ(r,t){var o=t.z;o==null&&(o=COVER_Z),r.traverse(function(s){s.z=o,s.z2=o})}function updateCoverAfterCreation(r,t){getCoverRenderer(t).updateCommon(r,t),updateCoverShape(r,t)}function getCoverRenderer(r){return coverRenderers[r.__brushOption.brushType]}function getPanelByPoint(r,t,o){var s=r._panels;if(!s)return BRUSH_PANEL_GLOBAL;var l,h=r._transform;return each$c(s,function(v){v.isTargetByCursor(t,o,h)&&(l=v)}),l}function getPanelByCover(r,t){var o=r._panels;if(!o)return BRUSH_PANEL_GLOBAL;var s=t.__brushOption.panelId;return s!=null?o[s]:BRUSH_PANEL_GLOBAL}function clearCovers(r){var t=r._covers,o=t.length;return each$c(t,function(s){r.group.remove(s)},r),t.length=0,!!o}function trigger(r,t){var o=map$2(r._covers,function(s){var l=s.__brushOption,h=clone$3(l.range);return{brushType:l.brushType,panelId:l.panelId,range:h}});r.trigger("brush",{areas:o,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function shouldShowCover(r){var t=r._track;if(!t.length)return!1;var o=t[t.length-1],s=t[0],l=o[0]-s[0],h=o[1]-s[1],v=mathPow(l*l+h*h,.5);return v>UNSELECT_THRESHOLD}function getTrackEnds(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function createBaseRectCover(r,t,o,s){var l=new Group$3;return l.add(new Rect$2({name:"main",style:makeStyle(o),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,r,t,l,["n","s","w","e"]),ondragend:curry$1(trigger,t,{isEnd:!0})})),each$c(s,function(h){l.add(new Rect$2({name:h.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,r,t,l,h),ondragend:curry$1(trigger,t,{isEnd:!0})}))}),l}function updateBaseRect(r,t,o,s){var l=s.brushStyle.lineWidth||0,h=mathMax$1(l,MIN_RESIZE_LINE_WIDTH),v=o[0][0],x=o[1][0],T=v-l/2,w=x-l/2,C=o[0][1],M=o[1][1],V=C-h+l/2,z=M-h+l/2,F=C-v,B=M-x,W=F+l,Y=B+l;updateRectShape(r,t,"main",v,x,F,B),s.transformable&&(updateRectShape(r,t,"w",T,w,h,Y),updateRectShape(r,t,"e",V,w,h,Y),updateRectShape(r,t,"n",T,w,W,h),updateRectShape(r,t,"s",T,z,W,h),updateRectShape(r,t,"nw",T,w,h,h),updateRectShape(r,t,"ne",V,w,h,h),updateRectShape(r,t,"sw",T,z,h,h),updateRectShape(r,t,"se",V,z,h,h))}function updateCommon(r,t){var o=t.__brushOption,s=o.transformable,l=t.childAt(0);l.useStyle(makeStyle(o)),l.attr({silent:!s,cursor:s?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(h){var v=t.childOfName(h.join("")),x=h.length===1?getGlobalDirection1(r,h[0]):getGlobalDirection2(r,h);v&&v.attr({silent:!s,invisible:!s,cursor:s?CURSOR_MAP[x]+"-resize":null})})}function updateRectShape(r,t,o,s,l,h,v){var x=t.childOfName(o);x&&x.setShape(pointsToRect(clipByPanel(r,t,[[s,l],[s+h,l+v]])))}function makeStyle(r){return defaults({strokeNoScale:!0},r.brushStyle)}function formatRectRange(r,t,o,s){var l=[mathMin$1(r,o),mathMin$1(t,s)],h=[mathMax$1(r,o),mathMax$1(t,s)];return[[l[0],h[0]],[l[1],h[1]]]}function getTransform(r){return getTransform$1(r.group)}function getGlobalDirection1(r,t){var o={w:"left",e:"right",n:"top",s:"bottom"},s={left:"w",right:"e",top:"n",bottom:"s"},l=transformDirection(o[t],getTransform(r));return s[l]}function getGlobalDirection2(r,t){var o=[getGlobalDirection1(r,t[0]),getGlobalDirection1(r,t[1])];return(o[0]==="e"||o[0]==="w")&&o.reverse(),o.join("")}function driftRect(r,t,o,s,l,h){var v=o.__brushOption,x=r.toRectRange(v.range),T=toLocalDelta(t,l,h);each$c(s,function(w){var C=DIRECTION_MAP[w];x[C[0]][C[1]]+=T[C[0]]}),v.range=r.fromRectRange(formatRectRange(x[0][0],x[1][0],x[0][1],x[1][1])),updateCoverAfterCreation(t,o),trigger(t,{isEnd:!1})}function driftPolygon(r,t,o,s){var l=t.__brushOption.range,h=toLocalDelta(r,o,s);each$c(l,function(v){v[0]+=h[0],v[1]+=h[1]}),updateCoverAfterCreation(r,t),trigger(r,{isEnd:!1})}function toLocalDelta(r,t,o){var s=r.group,l=s.transformCoordToLocal(t,o),h=s.transformCoordToLocal(0,0);return[l[0]-h[0],l[1]-h[1]]}function clipByPanel(r,t,o){var s=getPanelByCover(r,t);return s&&s!==BRUSH_PANEL_GLOBAL?s.clipPath(o,r._transform):clone$3(o)}function pointsToRect(r){var t=mathMin$1(r[0][0],r[1][0]),o=mathMin$1(r[0][1],r[1][1]),s=mathMax$1(r[0][0],r[1][0]),l=mathMax$1(r[0][1],r[1][1]);return{x:t,y:o,width:s-t,height:l-o}}function resetCursor(r,t,o){if(!(!r._brushType||isOutsideZrArea(r,t.offsetX,t.offsetY))){var s=r._zr,l=r._covers,h=getPanelByPoint(r,t,o);if(!r._dragging)for(var v=0;v<l.length;v++){var x=l[v].__brushOption;if(h&&(h===BRUSH_PANEL_GLOBAL||x.panelId===h.panelId)&&coverRenderers[x.brushType].contain(l[v],o[0],o[1]))return}h&&s.setCursorStyle("crosshair")}}function preventDefault(r){var t=r.event;t.preventDefault&&t.preventDefault()}function mainShapeContain(r,t,o){return r.childOfName("main").contain(t,o)}function updateCoverByMouse(r,t,o,s){var l=r._creatingCover,h=r._creatingPanel,v=r._brushOption,x;if(r._track.push(o.slice()),shouldShowCover(r)||l){if(h&&!l){v.brushMode==="single"&&clearCovers(r);var T=clone$3(v);T.brushType=determineBrushType(T.brushType,h),T.panelId=h===BRUSH_PANEL_GLOBAL?null:h.panelId,l=r._creatingCover=createCover(r,T),r._covers.push(l)}if(l){var w=coverRenderers[determineBrushType(r._brushType,h)],C=l.__brushOption;C.range=w.getCreatingRange(clipByPanel(r,l,r._track)),s&&(endCreating(r,l),w.updateCommon(r,l)),updateCoverShape(r,l),x={isEnd:s}}}else s&&v.brushMode==="single"&&v.removeOnClick&&getPanelByPoint(r,t,o)&&clearCovers(r)&&(x={isEnd:s,removeOnClick:!0});return x}function determineBrushType(r,t){return r==="auto"?t.defaultBrushType:r}var pointerHandlers={mousedown:function(r){if(this._dragging)handleDragEnd(this,r);else if(!r.target||!r.target.draggable){preventDefault(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var o=this._creatingPanel=getPanelByPoint(this,r,t);o&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,o=r.offsetY,s=this.group.transformCoordToLocal(t,o);if(resetCursor(this,r,s),this._dragging){preventDefault(r);var l=updateCoverByMouse(this,r,s,!1);l&&trigger(this,l)}},mouseup:function(r){handleDragEnd(this,r)}};function handleDragEnd(r,t){if(r._dragging){preventDefault(t);var o=t.offsetX,s=t.offsetY,l=r.group.transformCoordToLocal(o,s),h=updateCoverByMouse(r,t,l,!0);r._dragging=!1,r._track=[],r._creatingCover=null,h&&trigger(r,h)}}function isOutsideZrArea(r,t,o){var s=r._zr;return t<0||t>s.getWidth()||o<0||o>s.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(r,t){function o(s){return s}return createBaseRectCover({toRectRange:o,fromRectRange:o},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=getTrackEnds(r);return formatRectRange(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,o,s){updateBaseRect(r,t,o,s)},updateCommon,contain:mainShapeContain},polygon:{createCover:function(r,t){var o=new Group$3;return o.add(new Polyline$1({name:"main",style:makeStyle(t),silent:!0})),o},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,r,t),ondragend:curry$1(trigger,r,{isEnd:!0})}))},updateCoverShape:function(r,t,o,s){t.childAt(0).setShape({points:clipByPanel(r,t,o)})},updateCommon,contain:mainShapeContain}};function getLineRenderer(r){return{createCover:function(t,o){return createBaseRectCover({toRectRange:function(s){var l=[s,[0,100]];return r&&l.reverse(),l},fromRectRange:function(s){return s[r]}},t,o,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var o=getTrackEnds(t),s=mathMin$1(o[0][r],o[1][r]),l=mathMax$1(o[0][r],o[1][r]);return[s,l]},updateCoverShape:function(t,o,s,l){var h,v=getPanelByCover(t,o);if(v!==BRUSH_PANEL_GLOBAL&&v.getLinearBrushOtherExtent)h=v.getLinearBrushOtherExtent(r);else{var x=t._zr;h=[0,[x.getWidth(),x.getHeight()][1-r]]}var T=[s,h];r&&T.reverse(),updateBaseRect(t,o,T,l)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath(r){return r=normalizeRect(r),function(t){return clipPointsByRect(t,r)}}function makeLinearBrushOtherExtent(r,t){return r=normalizeRect(r),function(o){var s=t??o,l=s?r.width:r.height,h=s?r.x:r.y;return[h,h+(l||0)]}}function makeRectIsTargetByCursor(r,t,o){var s=normalizeRect(r);return function(l,h){return s.contain(h[0],h[1])&&!onIrrelevantElement(l,t,o)}}function normalizeRect(r){return BoundingRect$1.create(r)}function isEC4CompatibleStyle(r,t,o,s){return r&&(r.legacy||r.legacy!==!1&&!o&&!s&&t!=="tspan"&&(t==="text"||hasOwn(r,"text")))}function convertFromEC4CompatibleStyle(r,t,o){var s=r,l,h,v;if(t==="text")v=s;else{v={},hasOwn(s,"text")&&(v.text=s.text),hasOwn(s,"rich")&&(v.rich=s.rich),hasOwn(s,"textFill")&&(v.fill=s.textFill),hasOwn(s,"textStroke")&&(v.stroke=s.textStroke),hasOwn(s,"fontFamily")&&(v.fontFamily=s.fontFamily),hasOwn(s,"fontSize")&&(v.fontSize=s.fontSize),hasOwn(s,"fontStyle")&&(v.fontStyle=s.fontStyle),hasOwn(s,"fontWeight")&&(v.fontWeight=s.fontWeight),h={type:"text",style:v,silent:!0},l={};var x=hasOwn(s,"textPosition");o?l.position=x?s.textPosition:"inside":x&&(l.position=s.textPosition),hasOwn(s,"textPosition")&&(l.position=s.textPosition),hasOwn(s,"textOffset")&&(l.offset=s.textOffset),hasOwn(s,"textRotation")&&(l.rotation=s.textRotation),hasOwn(s,"textDistance")&&(l.distance=s.textDistance)}return convertEC4CompatibleRichItem(v,r),each$c(v.rich,function(T){convertEC4CompatibleRichItem(T,T)}),{textConfig:l,textContent:h}}function convertEC4CompatibleRichItem(r,t){t&&(t.font=t.textFont||t.font,hasOwn(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),hasOwn(t,"textAlign")&&(r.align=t.textAlign),hasOwn(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),hasOwn(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),hasOwn(t,"textWidth")&&(r.width=t.textWidth),hasOwn(t,"textHeight")&&(r.height=t.textHeight),hasOwn(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),hasOwn(t,"textPadding")&&(r.padding=t.textPadding),hasOwn(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),hasOwn(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),hasOwn(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),hasOwn(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),hasOwn(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),hasOwn(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),hasOwn(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(r,t){return r[t]=1,r},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(r,t,o,s,l){var h=r+"Animation",v=getAnimationConfig(r,s,l)||{},x=transitionInnerStore(t).userDuring;return v.duration>0&&(v.during=x?bind$1(duringCall,{el:t,userDuring:x}):null,v.setToFinal=!0,v.scope=r),extend(v,o[h]),v}function applyUpdateTransition(r,t,o,s){s=s||{};var l=s.dataIndex,h=s.isInit,v=s.clearStyle,x=o.isAnimationEnabled(),T=transitionInnerStore(r),w=t.style;T.userDuring=t.during;var C={},M={};if(prepareTransformAllPropsFinal(r,t,M),prepareShapeOrExtraAllPropsFinal("shape",t,M),prepareShapeOrExtraAllPropsFinal("extra",t,M),!h&&x&&(prepareTransformTransitionFrom(r,t,C),prepareShapeOrExtraTransitionFrom("shape",r,t,C),prepareShapeOrExtraTransitionFrom("extra",r,t,C),prepareStyleTransitionFrom(r,t,w,C)),M.style=w,applyPropsDirectly(r,M,v),applyMiscProps(r,t),x)if(h){var V={};each$c(ELEMENT_ANIMATABLE_PROPS,function(F){var B=F?t[F]:t;B&&B.enterFrom&&(F&&(V[F]=V[F]||{}),extend(F?V[F]:V,B.enterFrom))});var z=getElementAnimationConfig("enter",r,t,o,l);z.duration>0&&r.animateFrom(V,z)}else applyPropsTransition(r,t,l||0,o,C);updateLeaveTo(r,t),w?r.dirty():r.markRedraw()}function updateLeaveTo(r,t){for(var o=transitionInnerStore(r).leaveToProps,s=0;s<ELEMENT_ANIMATABLE_PROPS.length;s++){var l=ELEMENT_ANIMATABLE_PROPS[s],h=l?t[l]:t;h&&h.leaveTo&&(o||(o=transitionInnerStore(r).leaveToProps={}),l&&(o[l]=o[l]||{}),extend(l?o[l]:o,h.leaveTo))}}function applyLeaveTransition(r,t,o,s){if(r){var l=r.parent,h=transitionInnerStore(r).leaveToProps;if(h){var v=getElementAnimationConfig("update",r,t,o,0);v.done=function(){l.remove(r),s&&s()},r.animateTo(h,v)}else l.remove(r),s&&s()}}function isTransitionAll(r){return r==="all"}function applyPropsDirectly(r,t,o){var s=t.style;if(!r.isGroup&&s){if(o){r.useStyle({});for(var l=r.animators,h=0;h<l.length;h++){var v=l[h];v.targetName==="style"&&v.changeTarget(r.style)}}r.setStyle(s)}t&&(t.style=null,t&&r.attr(t),t.style=s)}function applyPropsTransition(r,t,o,s,l){if(l){var h=getElementAnimationConfig("update",r,t,s,o);h.duration>0&&r.animateFrom(l,h)}}function applyMiscProps(r,t){hasOwn(t,"silent")&&(r.silent=t.silent),hasOwn(t,"ignore")&&(r.ignore=t.ignore),r instanceof Displayable$1&&hasOwn(t,"invisible")&&(r.invisible=t.invisible),r instanceof Path$1&&hasOwn(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(r,t){return tmpDuringScope.el[r]=t,this},getTransform:function(r){return tmpDuringScope.el[r]},setShape:function(r,t){var o=tmpDuringScope.el,s=o.shape||(o.shape={});return s[r]=t,o.dirtyShape&&o.dirtyShape(),this},getShape:function(r){var t=tmpDuringScope.el.shape;if(t)return t[r]},setStyle:function(r,t){var o=tmpDuringScope.el,s=o.style;return s&&(s[r]=t,o.dirtyStyle&&o.dirtyStyle()),this},getStyle:function(r){var t=tmpDuringScope.el.style;if(t)return t[r]},setExtra:function(r,t){var o=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return o[r]=t,this},getExtra:function(r){var t=tmpDuringScope.el.extra;if(t)return t[r]}};function duringCall(){var r=this,t=r.el;if(t){var o=transitionInnerStore(t).userDuring,s=r.userDuring;if(o!==s){r.el=r.userDuring=null;return}tmpDuringScope.el=t,s(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(r,t,o,s){var l=o[r];if(l){var h=t[r],v;if(h){var x=o.transition,T=l.transition;if(T)if(!v&&(v=s[r]={}),isTransitionAll(T))extend(v,h);else for(var w=normalizeToArray(T),C=0;C<w.length;C++){var M=w[C],V=h[M];v[M]=V}else if(isTransitionAll(x)||indexOf(x,r)>=0){!v&&(v=s[r]={});for(var z=keys(h),C=0;C<z.length;C++){var M=z[C],V=h[M];isNonStyleTransitionEnabled(l[M],V)&&(v[M]=V)}}}}}function prepareShapeOrExtraAllPropsFinal(r,t,o){var s=t[r];if(s)for(var l=o[r]={},h=keys(s),v=0;v<h.length;v++){var x=h[v];l[x]=cloneValue(s[x])}}function prepareTransformTransitionFrom(r,t,o){for(var s=t.transition,l=isTransitionAll(s)?TRANSFORMABLE_PROPS:normalizeToArray(s||[]),h=0;h<l.length;h++){var v=l[h];if(!(v==="style"||v==="shape"||v==="extra")){var x=r[v];o[v]=x}}}function prepareTransformAllPropsFinal(r,t,o){for(var s=0;s<LEGACY_TRANSFORM_PROPS.length;s++){var l=LEGACY_TRANSFORM_PROPS[s],h=LEGACY_TRANSFORM_PROPS_MAP[l],v=t[l];v&&(o[h[0]]=v[0],o[h[1]]=v[1])}for(var s=0;s<TRANSFORMABLE_PROPS.length;s++){var x=TRANSFORMABLE_PROPS[s];t[x]!=null&&(o[x]=t[x])}}function prepareStyleTransitionFrom(r,t,o,s){if(o){var l=r.style,h;if(l){var v=o.transition,x=t.transition;if(v&&!isTransitionAll(v)){var T=normalizeToArray(v);!h&&(h=s.style={});for(var w=0;w<T.length;w++){var C=T[w],M=l[C];h[C]=M}}else if(r.getAnimationStyleProps&&(isTransitionAll(x)||isTransitionAll(v)||indexOf(x,"style")>=0)){var V=r.getAnimationStyleProps(),z=V?V.style:null;if(z){!h&&(h=s.style={});for(var F=keys(o),w=0;w<F.length;w++){var C=F[w];if(z[C]){var M=l[C];h[C]=M}}}}}}}function isNonStyleTransitionEnabled(r,t){return isArrayLike(r)?r!==t:r!=null&&isFinite(r)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore(r){r.stopAnimation("keyframe"),r.attr(getStateToRestore(r))}function applyKeyframeAnimation(r,t,o){if(!(!o.isAnimationEnabled()||!t)){if(isArray$1(t)){each$c(t,function(x){applyKeyframeAnimation(r,x,o)});return}var s=t.keyframes,l=t.duration;if(o&&l==null){var h=getAnimationConfig("enter",o,0);l=h&&h.duration}if(!(!s||!l)){var v=getStateToRestore(r);each$c(ELEMENT_ANIMATABLE_PROPS,function(x){if(!(x&&!r[x])){var T;s.sort(function(w,C){return w.percent-C.percent}),each$c(s,function(w){var C=r.animators,M=x?w[x]:w;if(M){var V=keys(M);if(x||(V=filter(V,function(B){return indexOf(KEYFRAME_EXCLUDE_KEYS,B)<0})),!!V.length){T||(T=r.animate(x,t.loop,!0),T.scope="keyframe");for(var z=0;z<C.length;z++)C[z]!==T&&C[z].targetName===T.targetName&&C[z].stopTracks(V);x&&(v[x]=v[x]||{});var F=x?v[x]:v;each$c(V,function(B){F[B]=((x?r[x]:r)||{})[B]}),T.whenWithKeys(l*w.percent,M,V,w.easing)}}}),T&&T.delay(t.delay||0).duration(l).start(t.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,o,s,l){var h=o.get("value"),v=o.get("status");if(this._axisModel=t,this._axisPointerModel=o,this._api=s,!(!l&&this._lastValue===h&&this._lastStatus===v)){this._lastValue=h,this._lastStatus=v;var x=this._group,T=this._handle;if(!v||v==="hide"){x&&x.hide(),T&&T.hide();return}x&&x.show(),T&&T.show();var w={};this.makeElOption(w,h,t,o,s);var C=w.graphicKey;C!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=C;var M=this._moveAnimation=this.determineAnimation(t,o);if(!x)x=this._group=new Group$3,this.createPointerEl(x,w,t,o),this.createLabelEl(x,w,t,o),s.getZr().add(x);else{var V=curry$1(updateProps,o,M);this.updatePointerEl(x,w,V),this.updateLabelEl(x,w,V,o)}updateMandatoryProps(x,o,!0),this._renderHandle(h)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,o){var s=o.get("animation"),l=t.axis,h=l.type==="category",v=o.get("snap");if(!v&&!h)return!1;if(s==="auto"||s==null){var x=this.animationThreshold;if(h&&l.getBandWidth()>x)return!0;if(v){var T=getAxisInfo(t).seriesDataCount,w=l.getExtent();return Math.abs(w[0]-w[1])/T>x}return!1}return s===!0},r.prototype.makeElOption=function(t,o,s,l,h){},r.prototype.createPointerEl=function(t,o,s,l){var h=o.pointer;if(h){var v=inner$5(t).pointerEl=new graphic$1[h.type](clone(o.pointer));t.add(v)}},r.prototype.createLabelEl=function(t,o,s,l){if(o.label){var h=inner$5(t).labelEl=new ZRText$1(clone(o.label));t.add(h),updateLabelShowHide(h,l)}},r.prototype.updatePointerEl=function(t,o,s){var l=inner$5(t).pointerEl;l&&o.pointer&&(l.setStyle(o.pointer.style),s(l,{shape:o.pointer.shape}))},r.prototype.updateLabelEl=function(t,o,s,l){var h=inner$5(t).labelEl;h&&(h.setStyle(o.label.style),s(h,{x:o.label.x,y:o.label.y}),updateLabelShowHide(h,l))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var o=this._axisPointerModel,s=this._api.getZr(),l=this._handle,h=o.getModel("handle"),v=o.get("status");if(!h.get("show")||!v||v==="hide"){l&&s.remove(l),this._handle=null;return}var x;this._handle||(x=!0,l=this._handle=createIcon(h.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(w){stop(w.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),s.add(l)),updateMandatoryProps(l,o,!1),l.setStyle(h.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var T=h.get("size");isArray$1(T)||(T=[T,T]),l.scaleX=T[0]/2,l.scaleY=T[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",h.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,x)}},r.prototype._moveHandleToValue=function(t,o){updateProps(this._axisPointerModel,!o&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,o){var s=this._handle;if(s){this._dragging=!0;var l=this.updateHandleTransform(getHandleTransProps(s),[t,o],this._axisModel,this._axisPointerModel);this._payloadInfo=l,s.stopAnimation(),s.attr(getHandleTransProps(l)),inner$5(s).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var o=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:o.cursorPoint[0],y:o.cursorPoint[1],tooltipOption:o.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var o=this._axisPointerModel.get("value");this._moveHandleToValue(o),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var o=t.getZr(),s=this._group,l=this._handle;o&&s&&(this._lastGraphicKey=null,s&&o.remove(s),l&&o.remove(l),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,o,s){return s=s||0,{x:t[s],y:t[1-s],width:o[s],height:o[1-s]}},r}();function updateProps(r,t,o,s){propsEqual(inner$5(o).lastProp,s)||(inner$5(o).lastProp=s,t?updateProps$1(o,s,r):(o.stopAnimation(),o.attr(s)))}function propsEqual(r,t){if(isObject$3(r)&&isObject$3(t)){var o=!0;return each$c(t,function(s,l){o=o&&propsEqual(r[l],s)}),!!o}else return r===t}function updateLabelShowHide(r,t){r[t.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function updateMandatoryProps(r,t,o){var s=t.get("z"),l=t.get("zlevel");r&&r.traverse(function(h){h.type!=="group"&&(s!=null&&(h.z=s),l!=null&&(h.zlevel=l),h.silent=o)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(r){var t=r.get("type"),o=r.getModel(t+"Style"),s;return t==="line"?(s=o.getLineStyle(),s.fill=null):t==="shadow"&&(s=o.getAreaStyle(),s.stroke=null),s}function buildLabelElOption(r,t,o,s,l){var h=o.get("value"),v=getValueLabel(h,t.axis,t.ecModel,o.get("seriesDataIndices"),{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])}),x=o.getModel("label"),T=normalizeCssArray(x.get("padding")||0),w=x.getFont(),C=getBoundingRect(v,w),M=l.position,V=C.width+T[1]+T[3],z=C.height+T[0]+T[2],F=l.align;F==="right"&&(M[0]-=V),F==="center"&&(M[0]-=V/2);var B=l.verticalAlign;B==="bottom"&&(M[1]-=z),B==="middle"&&(M[1]-=z/2),confineInContainer(M,V,z,s);var W=x.get("backgroundColor");(!W||W==="auto")&&(W=t.get(["axisLine","lineStyle","color"])),r.label={x:M[0],y:M[1],style:createTextStyle$1(x,{text:v,font:w,fill:x.getTextColor(),padding:T,backgroundColor:W}),z2:10}}function confineInContainer(r,t,o,s){var l=s.getWidth(),h=s.getHeight();r[0]=Math.min(r[0]+t,l)-t,r[1]=Math.min(r[1]+o,h)-o,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function getValueLabel(r,t,o,s,l){r=t.scale.parse(r);var h=t.scale.getLabel({value:r},{precision:l.precision}),v=l.formatter;if(v){var x={value:getAxisRawValue(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};each$c(s,function(T){var w=o.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,M=w&&w.getDataParams(C);M&&x.seriesData.push(M)}),isString(v)?h=v.replace("{value}",h):isFunction(v)&&(h=v(x))}return h}function getTransformedPosition(r,t,o){var s=create();return rotate(s,s,o.rotation),translate(s,s,o.position),applyTransform([r.dataToCoord(t),(o.labelOffset||0)+(o.labelDirection||1)*(o.labelMargin||0)],s)}function buildCartesianSingleLabelElOption(r,t,o,s,l,h){var v=AxisBuilder$1.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=l.get(["label","margin"]),buildLabelElOption(t,s,l,h,{position:getTransformedPosition(s.axis,r,o),align:v.textAlign,verticalAlign:v.textVerticalAlign})}function makeLineShape(r,t,o){return o=o||0,{x1:r[o],y1:r[1-o],x2:t[o],y2:t[1-o]}}function makeRectShape(r,t,o){return o=o||0,{x:r[o],y:r[1-o],width:t[o],height:t[1-o]}}var CartesianAxisPointer=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(o,s,l,h,v){var x=l.axis,T=x.grid,w=h.get("type"),C=getCartesian(T,x).getOtherAxis(x).getGlobalExtent(),M=x.toGlobalCoord(x.dataToCoord(s,!0));if(w&&w!=="none"){var V=buildElStyle(h),z=pointerShapeBuilder[w](x,M,C);z.style=V,o.graphicKey=z.type,o.pointer=z}var F=layout$1(T.model,l);buildCartesianSingleLabelElOption(s,o,F,l,h,v)},t.prototype.getHandleTransform=function(o,s,l){var h=layout$1(s.axis.grid.model,s,{labelInside:!1});h.labelMargin=l.get(["handle","margin"]);var v=getTransformedPosition(s.axis,o,h);return{x:v[0],y:v[1],rotation:h.rotation+(h.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(o,s,l,h){var v=l.axis,x=v.grid,T=v.getGlobalExtent(!0),w=getCartesian(x,v).getOtherAxis(v).getGlobalExtent(),C=v.dim==="x"?0:1,M=[o.x,o.y];M[C]+=s[C],M[C]=Math.min(T[1],M[C]),M[C]=Math.max(T[0],M[C]);var V=(w[1]+w[0])/2,z=[V,V];z[C]=M[C];var F=[{verticalAlign:"middle"},{align:"center"}];return{x:M[0],y:M[1],rotation:o.rotation,cursorPoint:z,tooltipOption:F[C]}},t}(BaseAxisPointer$1);function getCartesian(r,t){var o={};return o[t.dim+"AxisIndex"]=t.index,r.getCartesian(o)}var pointerShapeBuilder={line:function(r,t,o){var s=makeLineShape([t,o[0]],[t,o[1]],getAxisDimIndex(r));return{type:"Line",subPixelOptimize:!0,shape:s}},shadow:function(r,t,o){var s=Math.max(1,r.getBandWidth()),l=o[1]-o[0];return{type:"Rect",shape:makeRectShape([t-s/2,o[0]],[s,l],getAxisDimIndex(r))}}};function getAxisDimIndex(r){return r.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register(r,t,o){if(!env$1.node){var s=t.getZr();inner$4(s).records||(inner$4(s).records={}),initGlobalListeners(s,t);var l=inner$4(s).records[r]||(inner$4(s).records[r]={});l.handler=o}}function initGlobalListeners(r,t){if(inner$4(r).initialized)return;inner$4(r).initialized=!0,o("click",curry$1(doEnter,"click")),o("mousemove",curry$1(doEnter,"mousemove")),o("globalout",onLeave);function o(s,l){r.on(s,function(h){var v=makeDispatchAction$1(t);each$8(inner$4(r).records,function(x){x&&l(x,h,v.dispatchAction)}),dispatchTooltipFinally(v.pendings,t)})}}function dispatchTooltipFinally(r,t){var o=r.showTip.length,s=r.hideTip.length,l;o?l=r.showTip[o-1]:s&&(l=r.hideTip[s-1]),l&&(l.dispatchAction=null,t.dispatchAction(l))}function onLeave(r,t,o){r.handler("leave",null,o)}function doEnter(r,t,o,s){t.handler(r,o,s)}function makeDispatchAction$1(r){var t={showTip:[],hideTip:[]},o=function(s){var l=t[s.type];l?l.push(s):(s.dispatchAction=o,r.dispatchAction(s))};return{dispatchAction:o,pendings:t}}function unregister(r,t){if(!env$1.node){var o=t.getZr(),s=(inner$4(o).records||{})[r];s&&(inner$4(o).records[r]=null)}}var AxisPointerView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l){var h=s.getComponent("tooltip"),v=o.get("triggerOn")||h&&h.get("triggerOn")||"mousemove|click";register("axisPointer",l,function(x,T,w){v!=="none"&&(x==="leave"||v.indexOf(x)>=0)&&w({type:"updateAxisPointer",currTrigger:x,x:T&&T.offsetX,y:T&&T.offsetY})})},t.prototype.remove=function(o,s){unregister("axisPointer",s)},t.prototype.dispose=function(o,s){unregister("axisPointer",s)},t.type="axisPointer",t}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(r,t){var o=[],s=r.seriesIndex,l;if(s==null||!(l=t.getSeriesByIndex(s)))return{point:[]};var h=l.getData(),v=queryDataIndex(h,r);if(v==null||v<0||isArray$1(v))return{point:[]};var x=h.getItemGraphicEl(v),T=l.coordinateSystem;if(l.getTooltipPosition)o=l.getTooltipPosition(v)||[];else if(T&&T.dataToPoint)if(r.isStacked){var w=T.getBaseAxis(),C=T.getOtherAxis(w),M=C.dim,V=w.dim,z=M==="x"||M==="radius"?1:0,F=h.mapDimension(V),B=[];B[z]=h.get(F,v),B[1-z]=h.get(h.getCalculationInfo("stackResultDimension"),v),o=T.dataToPoint(B)||[]}else o=T.dataToPoint(h.getValues(map$2(T.dimensions,function(Y){return h.mapDimension(Y)}),v))||[];else if(x){var W=x.getBoundingRect().clone();W.applyTransform(x.transform),o=[W.x+W.width/2,W.y+W.height/2]}return{point:o,el:x}}var inner$3=makeInner();function axisTrigger(r,t,o){var s=r.currTrigger,l=[r.x,r.y],h=r,v=r.dispatchAction||bind$1(o.dispatchAction,o),x=t.getComponent("axisPointer").coordSysAxesInfo;if(x){illegalPoint(l)&&(l=findPointFromSeries({seriesIndex:h.seriesIndex,dataIndex:h.dataIndex},t).point);var T=illegalPoint(l),w=h.axesInfo,C=x.axesInfo,M=s==="leave"||illegalPoint(l),V={},z={},F={list:[],map:{}},B={showPointer:curry$1(showPointer,z),showTooltip:curry$1(showTooltip,F)};each$c(x.coordSysMap,function(Y,Z){var X=T||Y.containPoint(l);each$c(x.coordSysAxesInfo[Z],function(te,oe){var ae=te.axis,le=findInputAxisInfo(w,te);if(!M&&X&&(!w||le)){var he=le&&le.value;he==null&&!T&&(he=ae.pointToData(l)),he!=null&&processOnAxis(te,he,B,!1,V)}})});var W={};return each$c(C,function(Y,Z){var X=Y.linkGroup;X&&!z[Z]&&each$c(X.axesInfo,function(te,oe){var ae=z[oe];if(te!==Y&&ae){var le=ae.value;X.mapper&&(le=Y.axis.scale.parse(X.mapper(le,makeMapperParam(te),makeMapperParam(Y)))),W[Y.key]=le}})}),each$c(W,function(Y,Z){processOnAxis(C[Z],Y,B,!0,V)}),updateModelActually(z,C,V),dispatchTooltipActually(F,l,r,v),dispatchHighDownActually(C,v,o),V}}function processOnAxis(r,t,o,s,l){var h=r.axis;if(!(h.scale.isBlank()||!h.containData(t))){if(!r.involveSeries){o.showPointer(r,t);return}var v=buildPayloadsBySeries(t,r),x=v.payloadBatch,T=v.snapToValue;x[0]&&l.seriesIndex==null&&extend(l,x[0]),!s&&r.snap&&h.containData(T)&&T!=null&&(t=T),o.showPointer(r,t,x),o.showTooltip(r,v,T)}}function buildPayloadsBySeries(r,t){var o=t.axis,s=o.dim,l=r,h=[],v=Number.MAX_VALUE,x=-1;return each$c(t.seriesModels,function(T,w){var C=T.getData().mapDimensionsAll(s),M,V;if(T.getAxisTooltipData){var z=T.getAxisTooltipData(C,r,o);V=z.dataIndices,M=z.nestestValue}else{if(V=T.getData().indicesOfNearest(C[0],r,o.type==="category"?.5:null),!V.length)return;M=T.getData().get(C[0],V[0])}if(!(M==null||!isFinite(M))){var F=r-M,B=Math.abs(F);B<=v&&((B<v||F>=0&&x<0)&&(v=B,x=F,l=M,h.length=0),each$c(V,function(W){h.push({seriesIndex:T.seriesIndex,dataIndexInside:W,dataIndex:T.getData().getRawIndex(W)})}))}}),{payloadBatch:h,snapToValue:l}}function showPointer(r,t,o,s){r[t.key]={value:o,payloadBatch:s}}function showTooltip(r,t,o,s){var l=o.payloadBatch,h=t.axis,v=h.model,x=t.axisPointerModel;if(!(!t.triggerTooltip||!l.length)){var T=t.coordSys.model,w=makeKey(T),C=r.map[w];C||(C=r.map[w]={coordSysId:T.id,coordSysIndex:T.componentIndex,coordSysType:T.type,coordSysMainType:T.mainType,dataByAxis:[]},r.list.push(C)),C.dataByAxis.push({axisDim:h.dim,axisIndex:v.componentIndex,axisType:v.type,axisId:v.id,value:s,valueLabelOpt:{precision:x.get(["label","precision"]),formatter:x.get(["label","formatter"])},seriesDataIndices:l.slice()})}}function updateModelActually(r,t,o){var s=o.axesInfo=[];each$c(t,function(l,h){var v=l.axisPointerModel.option,x=r[h];x?(!l.useHandle&&(v.status="show"),v.value=x.value,v.seriesDataIndices=(x.payloadBatch||[]).slice()):!l.useHandle&&(v.status="hide"),v.status==="show"&&s.push({axisDim:l.axis.dim,axisIndex:l.axis.model.componentIndex,value:v.value})})}function dispatchTooltipActually(r,t,o,s){if(illegalPoint(t)||!r.list.length){s({type:"hideTip"});return}var l=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:o.tooltipOption,position:o.position,dataIndexInside:l.dataIndexInside,dataIndex:l.dataIndex,seriesIndex:l.seriesIndex,dataByCoordSys:r.list})}function dispatchHighDownActually(r,t,o){var s=o.getZr(),l="axisPointerLastHighlights",h=inner$3(s)[l]||{},v=inner$3(s)[l]={};each$c(r,function(w,C){var M=w.axisPointerModel.option;M.status==="show"&&each$c(M.seriesDataIndices,function(V){var z=V.seriesIndex+" | "+V.dataIndex;v[z]=V})});var x=[],T=[];each$c(h,function(w,C){!v[C]&&T.push(w)}),each$c(v,function(w,C){!h[C]&&x.push(w)}),T.length&&o.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:T}),x.length&&o.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:x})}function findInputAxisInfo(r,t){for(var o=0;o<(r||[]).length;o++){var s=r[o];if(t.axis.dim===s.axisDim&&t.axis.model.componentIndex===s.axisIndex)return s}}function makeMapperParam(r){var t=r.axis.model,o={},s=o.axisDim=r.axis.dim;return o.axisIndex=o[s+"AxisIndex"]=t.componentIndex,o.axisName=o[s+"AxisName"]=t.name,o.axisId=o[s+"AxisId"]=t.id,o}function illegalPoint(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function install$f(r){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),r.registerComponentModel(AxisPointerModel$1),r.registerComponentView(AxisPointerView$1),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var o=t.axisPointer.link;o&&!isArray$1(o)&&(t.axisPointer.link=[o])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,o){t.getComponent("axisPointer").coordSysAxesInfo=collect(t,o)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e(r){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption(r,t){var o=r.existing;if(t.id=r.keyInfo.id,!t.type&&o&&(t.type=o.type),t.parentId==null){var s=t.parentOption;s?t.parentId=s.id:o&&(t.parentId=o.parentId)}t.parentOption=null}function isSetLoc(r,t){var o;return each$c(t,function(s){r[s]!=null&&r[s]!=="auto"&&(o=!0)}),o}function mergeNewElOptionToExist(r,t,o){var s=extend({},o),l=r[t],h=o.$action||"merge";h==="merge"?l?(merge(l,s,!0),mergeLayoutParam(l,s,{ignoreSize:!0}),copyLayoutParams(o,l),copyTransitionInfo(o,l),copyTransitionInfo(o,l,"shape"),copyTransitionInfo(o,l,"style"),copyTransitionInfo(o,l,"extra"),o.clipPath=l.clipPath):r[t]=s:h==="replace"?r[t]=s:h==="remove"&&l&&(r[t]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(r,t,o){if(o&&(!r[o]&&t[o]&&(r[o]={}),r=r[o],t=t[o]),!(!r||!t))for(var s=o?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,l=0;l<s.length;l++){var h=s[l];r[h]==null&&t[h]!=null&&(r[h]=t[h])}}function setLayoutInfoToExist(r,t){if(r&&(r.hv=t.hv=[isSetLoc(t,["left","right"]),isSetLoc(t,["top","bottom"])],r.type==="group")){var o=r,s=t;o.width==null&&(o.width=s.width=0),o.height==null&&(o.height=s.height=0)}}var GraphicComponentModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.preventAutoZ=!0,o}return t.prototype.mergeOption=function(o,s){var l=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,o,s),this.option.elements=l},t.prototype.optionUpdated=function(o,s){var l=this.option,h=(s?l:o).elements,v=l.elements=s?[]:l.elements,x=[];this._flatten(h,x,null);var T=mappingToExists(v,x,"normalMerge"),w=this._elOptionsToUpdate=[];each$c(T,function(C,M){var V=C.newOption;V&&(w.push(V),setKeyInfoToNewElOption(C,V),mergeNewElOptionToExist(v,M,V),setLayoutInfoToExist(v[M],V))},this),l.elements=filter(v,function(C){return C&&delete C.$action,C!=null})},t.prototype._flatten=function(o,s,l){each$c(o,function(h){if(h){l&&(h.parentOption=l),s.push(h);var v=h.children;v&&v.length&&this._flatten(v,s,h),delete h.children}},this)},t.prototype.useElOptionsToUpdate=function(){var o=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,o},t.type="graphic",t.defaultOption={elements:[]},t}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.init=function(){this._elMap=createHashMap()},t.prototype.render=function(o,s,l){o!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=o,this._updateElements(o),this._relocate(o,l)},t.prototype._updateElements=function(o){var s=o.useElOptionsToUpdate();if(s){var l=this._elMap,h=this.group,v=o.get("z"),x=o.get("zlevel");each$c(s,function(T){var w=convertOptionIdName(T.id,null),C=w!=null?l.get(w):null,M=convertOptionIdName(T.parentId,null),V=M!=null?l.get(M):h,z=T.type,F=T.style;z==="text"&&F&&T.hv&&T.hv[1]&&(F.textVerticalAlign=F.textBaseline=F.verticalAlign=F.align=null);var B=T.textContent,W=T.textConfig;if(F&&isEC4CompatibleStyle(F,z,!!W,!!B)){var Y=convertFromEC4CompatibleStyle(F,z,!0);!W&&Y.textConfig&&(W=T.textConfig=Y.textConfig),!B&&Y.textContent&&(B=Y.textContent)}var Z=getCleanedElOption(T),X=T.$action||"merge",te=X==="merge",oe=X==="replace";if(te){var ae=!C,le=C;ae?le=createEl(w,V,T.type,l):(le&&(inner$2(le).isNew=!1),stopPreviousKeyframeAnimationAndRestore(le)),le&&(applyUpdateTransition(le,Z,o,{isInit:ae}),updateCommonAttrs(le,T,v,x))}else if(oe){removeEl(C,T,l,o);var he=createEl(w,V,T.type,l);he&&(applyUpdateTransition(he,Z,o,{isInit:!0}),updateCommonAttrs(he,T,v,x))}else X==="remove"&&(updateLeaveTo(C,T),removeEl(C,T,l,o));var me=l.get(w);if(me&&B)if(te){var _e=me.getTextContent();_e?_e.attr(B):me.setTextContent(new ZRText$1(B))}else oe&&me.setTextContent(new ZRText$1(B));if(me){var ye=T.clipPath;if(ye){var Se=ye.type,Te=void 0,ae=!1;if(te){var we=me.getClipPath();ae=!we||inner$2(we).type!==Se,Te=ae?newEl(Se):we}else oe&&(ae=!0,Te=newEl(Se));me.setClipPath(Te),applyUpdateTransition(Te,ye,o,{isInit:ae}),applyKeyframeAnimation(Te,ye.keyframeAnimation,o)}var Ee=inner$2(me);me.setTextConfig(W),Ee.option=T,setEventData(me,o,T),setTooltipConfig({el:me,componentModel:o,itemName:me.name,itemTooltipOption:T.tooltip}),applyKeyframeAnimation(me,T.keyframeAnimation,o)}})}},t.prototype._relocate=function(o,s){for(var l=o.option.elements,h=this.group,v=this._elMap,x=s.getWidth(),T=s.getHeight(),w=["x","y"],C=0;C<l.length;C++){var M=l[C],V=convertOptionIdName(M.id,null),z=V!=null?v.get(V):null;if(!(!z||!z.isGroup)){var F=z.parent,B=F===h,W=inner$2(z),Y=inner$2(F);W.width=parsePercent(W.option.width,B?x:Y.width)||0,W.height=parsePercent(W.option.height,B?T:Y.height)||0}}for(var C=l.length-1;C>=0;C--){var M=l[C],V=convertOptionIdName(M.id,null),z=V!=null?v.get(V):null;if(z){var F=z.parent,Y=inner$2(F),Z=F===h?{width:x,height:T}:{width:Y.width,height:Y.height},X={},te=positionElement(z,M,Z,null,{hv:M.hv,boundingMode:M.bounding},X);if(!inner$2(z).isNew&&te){for(var oe=M.transition,ae={},le=0;le<w.length;le++){var he=w[le],me=X[he];oe&&(isTransitionAll(oe)||indexOf(oe,he)>=0)?ae[he]=me:z[he]=me}updateProps$1(z,ae,o,0)}else z.attr(X)}}},t.prototype._clear=function(){var o=this,s=this._elMap;s.each(function(l){removeEl(l,inner$2(l).option,s,o._lastGraphicModel)}),this._elMap=createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ComponentView$1);function newEl(r){var t=hasOwn(nonShapeGraphicElements,r)?nonShapeGraphicElements[r]:getShapeClass(r),o=new t({});return inner$2(o).type=r,o}function createEl(r,t,o,s){var l=newEl(o);return t.add(l),s.set(r,l),inner$2(l).id=r,inner$2(l).isNew=!0,l}function removeEl(r,t,o,s){var l=r&&r.parent;l&&(r.type==="group"&&r.traverse(function(h){removeEl(h,t,o,s)}),applyLeaveTransition(r,t,s),o.removeKey(inner$2(r).id))}function updateCommonAttrs(r,t,o,s){r.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",s||0],["z",o||0],["z2",0]],function(l){var h=l[0];hasOwn(t,h)?r[h]=retrieve2(t[h],l[1]):r[h]==null&&(r[h]=l[1])}),each$c(keys(t),function(l){if(l.indexOf("on")===0){var h=t[l];r[l]=isFunction(h)?h:null}}),hasOwn(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function getCleanedElOption(r){return r=extend({},r),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(t){delete r[t]}),r}function setEventData(r,t,o){var s=getECData(r).eventData;!r.silent&&!r.ignore&&!s&&(s=getECData(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),s&&(s.info=o.info)}function install$d(r){r.registerComponentModel(GraphicComponentModel),r.registerComponentView(GraphicComponentView),r.registerPreprocessor(function(t){var o=t.graphic;isArray$1(o)?!o[0]||!o[0].elements?t.graphic=[{elements:o}]:t.graphic=[t.graphic[0]]:o&&!o.elements&&(t.graphic=[{elements:[o]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(r){var t=r.get("coordinateSystem");return indexOf(SERIES_COORDS,t)>=0}function getAxisMainType(r){return r+"Axis"}function findEffectedDataZooms(r,t){var o=createHashMap(),s=[],l=createHashMap();r.eachComponent({mainType:"dataZoom",query:t},function(C){l.get(C.uid)||x(C)});var h;do h=!1,r.eachComponent("dataZoom",v);while(h);function v(C){!l.get(C.uid)&&T(C)&&(x(C),h=!0)}function x(C){l.set(C.uid,!0),s.push(C),w(C)}function T(C){var M=!1;return C.eachTargetAxis(function(V,z){var F=o.get(V);F&&F[z]&&(M=!0)}),M}function w(C){C.eachTargetAxis(function(M,V){(o.get(M)||o.set(M,[]))[V]=!0})}return s}function collectReferCoordSysModelInfo(r){var t=r.ecModel,o={infoList:[],infoMap:createHashMap()};return r.eachTargetAxis(function(s,l){var h=t.getComponent(getAxisMainType(s),l);if(h){var v=h.getCoordSysModel();if(v){var x=v.uid,T=o.infoMap.get(x);T||(T={model:v,axisModels:[]},o.infoList.push(T),o.infoMap.set(x,T)),T.axisModels.push(h)}}}),o}var DataZoomAxisInfo=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),DataZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._autoThrottle=!0,o._noTarget=!0,o._rangePropMode=["percent","percent"],o}return t.prototype.init=function(o,s,l){var h=retrieveRawOption(o);this.settledOption=h,this.mergeDefaultAndTheme(o,l),this._doInit(h)},t.prototype.mergeOption=function(o){var s=retrieveRawOption(o);merge(this.option,o,!0),merge(this.settledOption,s,!0),this._doInit(s)},t.prototype._doInit=function(o){var s=this.option;this._setDefaultThrottle(o),this._updateRangeUse(o);var l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(h,v){this._rangePropMode[v]==="value"&&(s[h[0]]=l[h[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var o=this.get("orient",!0),s=this._targetAxisInfoMap=createHashMap(),l=this._fillSpecifiedTargetAxis(s);l?this._orient=o||this._makeAutoOrientByTargetAxis():(this._orient=o||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(h){h.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(o){var s=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(l){var h=this.getReferringComponents(getAxisMainType(l),MULTIPLE_REFERRING);if(h.specified){s=!0;var v=new DataZoomAxisInfo;each$c(h.models,function(x){v.add(x.componentIndex)}),o.set(l,v)}},this),s},t.prototype._fillAutoTargetAxisByOrient=function(o,s){var l=this.ecModel,h=!0;if(h){var v=s==="vertical"?"y":"x",x=l.findComponents({mainType:v+"Axis"});T(x,v)}if(h){var x=l.findComponents({mainType:"singleAxis",filter:function(C){return C.get("orient",!0)===s}});T(x,"single")}function T(w,C){var M=w[0];if(M){var V=new DataZoomAxisInfo;if(V.add(M.componentIndex),o.set(C,V),h=!1,C==="x"||C==="y"){var z=M.getReferringComponents("grid",SINGLE_REFERRING).models[0];z&&each$c(w,function(F){M.componentIndex!==F.componentIndex&&z===F.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&V.add(F.componentIndex)})}}}h&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(w){if(h){var C=l.findComponents({mainType:getAxisMainType(w),filter:function(V){return V.get("type",!0)==="category"}});if(C[0]){var M=new DataZoomAxisInfo;M.add(C[0].componentIndex),o.set(w,M),h=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var o;return this.eachTargetAxis(function(s){!o&&(o=s)},this),o==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(o){if(o.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(o){var s=this._rangePropMode,l=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(h,v){var x=o[h[0]]!=null,T=o[h[1]]!=null;x&&!T?s[v]="percent":!x&&T?s[v]="value":l?s[v]=l[v]:x&&(s[v]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var o;return this.eachTargetAxis(function(s,l){o==null&&(o=this.ecModel.getComponent(getAxisMainType(s),l))},this),o},t.prototype.eachTargetAxis=function(o,s){this._targetAxisInfoMap.each(function(l,h){each$c(l.indexList,function(v){o.call(s,h,v)})})},t.prototype.getAxisProxy=function(o,s){var l=this.getAxisModel(o,s);if(l)return l.__dzAxisProxy},t.prototype.getAxisModel=function(o,s){var l=this._targetAxisInfoMap.get(o);if(l&&l.indexMap[s])return this.ecModel.getComponent(getAxisMainType(o),s)},t.prototype.setRawRange=function(o){var s=this.option,l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(h){(o[h[0]]!=null||o[h[1]]!=null)&&(s[h[0]]=l[h[0]]=o[h[0]],s[h[1]]=l[h[1]]=o[h[1]])},this),this._updateRangeUse(o)},t.prototype.setCalculatedRange=function(o){var s=this.option;each$c(["start","startValue","end","endValue"],function(l){s[l]=o[l]})},t.prototype.getPercentRange=function(){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataPercentWindow()},t.prototype.getValueRange=function(o,s){if(o==null&&s==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(o,s).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(o){if(o)return o.__dzAxisProxy;for(var s,l=this._targetAxisInfoMap.keys(),h=0;h<l.length;h++)for(var v=l[h],x=this._targetAxisInfoMap.get(v),T=0;T<x.indexList.length;T++){var w=this.getAxisProxy(v,x.indexList[T]);if(w.hostedBy(this))return w;s||(s=w)}return s},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ComponentModel$1);function retrieveRawOption(r){var t={};return each$c(["start","end","startValue","endValue","throttle"],function(o){r.hasOwnProperty(o)&&(t[o]=r[o])}),t}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.select",t}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l,h){this.dataZoomModel=o,this.ecModel=s,this.api=l},t.type="dataZoom",t}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.select",t}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function r(t,o,s,l){this._dimName=t,this._axisIndex=o,this.ecModel=l,this._dataZoomModel=s}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(o){if(isCoordSupported(o)){var s=getAxisMainType(this._dimName),l=o.getReferringComponents(s,SINGLE_REFERRING).models[0];l&&this._axisIndex===l.componentIndex&&t.push(o)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var o=this._dataExtent,s=this.getAxisModel(),l=s.axis.scale,h=this._dataZoomModel.getRangePropMode(),v=[0,100],x=[],T=[],w;each$7(["start","end"],function(V,z){var F=t[V],B=t[V+"Value"];h[z]==="percent"?(F==null&&(F=v[z]),B=l.parse(linearMap$2(F,v,o))):(w=!0,B=B==null?o[z]:l.parse(B),F=linearMap$2(B,o,v)),T[z]=B==null||isNaN(B)?o[z]:B,x[z]=F==null||isNaN(F)?v[z]:F}),asc$1(T),asc$1(x);var C=this._minMaxSpan;w?M(T,x,o,v,!1):M(x,T,v,o,!0);function M(V,z,F,B,W){var Y=W?"Span":"ValueSpan";sliderMove(0,V,F,"all",C["min"+Y],C["max"+Y]);for(var Z=0;Z<2;Z++)z[Z]=linearMap$2(V[Z],F,B,!0),W&&(z[Z]=l.parse(z[Z]))}return{valueWindow:T,percentWindow:x}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var o=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,o),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,o){if(t!==this._dataZoomModel)return;var s=this._dimName,l=this.getTargetSeriesModels(),h=t.get("filterMode"),v=this._valueWindow;if(h==="none")return;each$7(l,function(T){var w=T.getData(),C=w.mapDimensionsAll(s);if(C.length){if(h==="weakFilter"){var M=w.getStore(),V=map$2(C,function(z){return w.getDimensionIndex(z)},w);w.filterSelf(function(z){for(var F,B,W,Y=0;Y<C.length;Y++){var Z=M.get(V[Y],z),X=!isNaN(Z),te=Z<v[0],oe=Z>v[1];if(X&&!te&&!oe)return!0;X&&(W=!0),te&&(F=!0),oe&&(B=!0)}return W&&F&&B})}else each$7(C,function(z){if(h==="empty")T.setData(w=w.map(z,function(B){return x(B)?B:NaN}));else{var F={};F[z]=v,w.selectRange(F)}});each$7(C,function(z){w.setApproximateExtent(v,z)})}});function x(T){return T>=v[0]&&T<=v[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},o=this._dataZoomModel,s=this._dataExtent;each$7(["min","max"],function(l){var h=o.get(l+"Span"),v=o.get(l+"ValueSpan");v!=null&&(v=this.getAxisModel().axis.scale.parse(v)),v!=null?h=linearMap$2(s[0]+v,s,[0,100],!0):h!=null&&(v=linearMap$2(h,[0,100],s,!0)-s[0]),t[l+"Span"]=h,t[l+"ValueSpan"]=v},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),o=this._percentWindow,s=this._valueWindow;if(o){var l=getPixelPrecision(s,[0,500]);l=Math.min(l,20);var h=t.axis.scale.rawExtentInfo;o[0]!==0&&h.setDeterminedMinMax("min",+s[0].toFixed(l)),o[1]!==100&&h.setDeterminedMinMax("max",+s[1].toFixed(l)),h.freeze()}},r}();function calculateDataExtent(r,t,o){var s=[1/0,-1/0];each$7(o,function(v){unionAxisExtentFromData(s,v.getData(),t)});var l=r.getAxisModel(),h=ensureScaleRawExtentInfo(l.axis.scale,l,s).calculate();return[h.min,h.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(r){function t(l){r.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(v,x){var T=r.getComponent(getAxisMainType(v),x);l(v,x,T,h)})})}t(function(l,h,v,x){v.__dzAxisProxy=null});var o=[];t(function(l,h,v,x){v.__dzAxisProxy||(v.__dzAxisProxy=new AxisProxy$1(l,h,x,r),o.push(v.__dzAxisProxy))});var s=createHashMap();return each$c(o,function(l){each$c(l.getTargetSeriesModels(),function(h){s.set(h.uid,h)})}),s},overallReset:function(r,t){r.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l){o.getAxisProxy(s,l).reset(o)}),o.eachTargetAxis(function(s,l){o.getAxisProxy(s,l).filterData(o,t)})}),r.eachComponent("dataZoom",function(o){var s=o.findRepresentativeAxisProxy();if(s){var l=s.getDataPercentWindow(),h=s.getDataValueWindow();o.setCalculatedRange({start:l[0],end:l[1],startValue:h[0],endValue:h[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(r){r.registerAction("dataZoom",function(t,o){var s=findEffectedDataZooms(o,t);each$c(s,function(l){l.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var installed$1=!1;function installCommon$1(r){installed$1||(installed$1=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c(r){r.registerComponentModel(SelectZoomModel),r.registerComponentView(SelectZoomView),installCommon$1(r)}var ToolboxFeature=function(){function r(){}return r}(),features={};function registerFeature(r,t){features[r]=t}function getFeature(r){return features[r]}var ToolboxModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var o=this.ecModel;each$c(this.option.feature,function(s,l){var h=getFeature(l);h&&(h.getDefaultOption&&(h.defaultOption=h.getDefaultOption(o)),merge(s,h.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout(r,t,o){var s=t.getBoxLayoutParams(),l=t.get("padding"),h={width:o.getWidth(),height:o.getHeight()},v=getLayoutRect(s,h,l);box(t.get("orient"),r,t.get("itemGap"),v.width,v.height),positionElement(r,s,h,l)}function makeBackground(r,t){var o=normalizeCssArray(t.get("padding")),s=t.getItemStyle(["color","opacity"]);return s.fill=t.get("backgroundColor"),r=new Rect$2({shape:{x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],r:t.get("borderRadius")},style:s,silent:!0,z2:-1}),r}var ToolboxView=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(o,s,l,h){var v=this.group;if(v.removeAll(),!o.get("show"))return;var x=+o.get("itemSize"),T=o.get("orient")==="vertical",w=o.get("feature")||{},C=this._features||(this._features={}),M=[];each$c(w,function(F,B){M.push(B)}),new DataDiffer$1(this._featureNames||[],M).add(V).update(V).remove(curry$1(V,null)).execute(),this._featureNames=M;function V(F,B){var W=M[F],Y=M[B],Z=w[W],X=new Model$1(Z,o,o.ecModel),te;if(h&&h.newTitle!=null&&h.featureName===W&&(Z.title=h.newTitle),W&&!Y){if(isUserFeatureName(W))te={onclick:X.option.onclick,featureName:W};else{var oe=getFeature(W);if(!oe)return;te=new oe}C[W]=te}else if(te=C[Y],!te)return;te.uid=getUID("toolbox-feature"),te.model=X,te.ecModel=s,te.api=l;var ae=te instanceof ToolboxFeature;if(!W&&Y){ae&&te.dispose&&te.dispose(s,l);return}if(!X.get("show")||ae&&te.unusable){ae&&te.remove&&te.remove(s,l);return}z(X,te,W),X.setIconStatus=function(le,he){var me=this.option,_e=this.iconPaths;me.iconStatus=me.iconStatus||{},me.iconStatus[le]=he,_e[le]&&(he==="emphasis"?enterEmphasis:leaveEmphasis)(_e[le])},te instanceof ToolboxFeature&&te.render&&te.render(X,s,l,h)}function z(F,B,W){var Y=F.getModel("iconStyle"),Z=F.getModel(["emphasis","iconStyle"]),X=B instanceof ToolboxFeature&&B.getIcons?B.getIcons():F.get("icon"),te=F.get("title")||{},oe,ae;isString(X)?(oe={},oe[W]=X):oe=X,isString(te)?(ae={},ae[W]=te):ae=te;var le=F.iconPaths={};each$c(oe,function(he,me){var _e=createIcon(he,{},{x:-x/2,y:-x/2,width:x,height:x});_e.setStyle(Y.getItemStyle());var ye=_e.ensureState("emphasis");ye.style=Z.getItemStyle();var Se=new ZRText$1({style:{text:ae[me],align:Z.get("textAlign"),borderRadius:Z.get("textBorderRadius"),padding:Z.get("textPadding"),fill:null},ignore:!0});_e.setTextContent(Se),setTooltipConfig({el:_e,componentModel:o,itemName:me,formatterParamsExtra:{title:ae[me]}}),_e.__title=ae[me],_e.on("mouseover",function(){var Te=Z.getItemStyle(),we=T?o.get("right")==null&&o.get("left")!=="right"?"right":"left":o.get("bottom")==null&&o.get("top")!=="bottom"?"bottom":"top";Se.setStyle({fill:Z.get("textFill")||Te.fill||Te.stroke||"#000",backgroundColor:Z.get("textBackgroundColor")}),_e.setTextConfig({position:Z.get("textPosition")||we}),Se.ignore=!o.get("showTitle"),l.enterEmphasis(this)}).on("mouseout",function(){F.get(["iconStatus",me])!=="emphasis"&&l.leaveEmphasis(this),Se.hide()}),(F.get(["iconStatus",me])==="emphasis"?enterEmphasis:leaveEmphasis)(_e),v.add(_e),_e.on("click",bind$1(B.onclick,B,s,l,me)),le[me]=_e})}layout(v,o,l),v.add(makeBackground(v.getBoundingRect(),o)),T||v.eachChild(function(F){var B=F.__title,W=F.ensureState("emphasis"),Y=W.textConfig||(W.textConfig={}),Z=F.getTextContent(),X=Z&&Z.ensureState("emphasis");if(X&&!isFunction(X)&&B){var te=X.style||(X.style={}),oe=getBoundingRect(B,ZRText$1.makeFont(te)),ae=F.x+v.x,le=F.y+v.y+x,he=!1;le+oe.height>l.getHeight()&&(Y.position="top",he=!0);var me=he?-5-oe.height:x+10;ae+oe.width/2>l.getWidth()?(Y.position=["100%",me],te.align="right"):ae-oe.width/2<0&&(Y.position=[0,me],te.align="left")}})},t.prototype.updateView=function(o,s,l,h){each$c(this._features,function(v){v instanceof ToolboxFeature&&v.updateView&&v.updateView(v.model,s,l,h)})},t.prototype.remove=function(o,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.remove&&l.remove(o,s)}),this.group.removeAll()},t.prototype.dispose=function(o,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.dispose&&l.dispose(o,s)})},t.type="toolbox",t}(ComponentView$1);function isUserFeatureName(r){return r.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){var l=this.model,h=l.get("name")||o.get("title.0.text")||"echarts",v=s.getZr().painter.getType()==="svg",x=v?"svg":l.get("type",!0)||"png",T=s.getConnectedDataURL({type:x,backgroundColor:l.get("backgroundColor",!0)||o.get("backgroundColor")||"#fff",connectedBackgroundColor:l.get("connectedBackgroundColor"),excludeComponents:l.get("excludeComponents"),pixelRatio:l.get("pixelRatio")}),w=env$1.browser;if(isFunction(MouseEvent)&&(w.newEdge||!w.ie&&!w.edge)){var C=document.createElement("a");C.download=h+"."+x,C.target="_blank",C.href=T;var M=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});C.dispatchEvent(M)}else if(window.navigator.msSaveOrOpenBlob||v){var V=T.split(","),z=V[0].indexOf("base64")>-1,F=v?decodeURIComponent(V[1]):V[1];z&&(F=window.atob(F));var B=h+"."+x;if(window.navigator.msSaveOrOpenBlob){for(var W=F.length,Y=new Uint8Array(W);W--;)Y[W]=F.charCodeAt(W);var Z=new Blob([Y]);window.navigator.msSaveOrOpenBlob(Z,B)}else{var X=document.createElement("iframe");document.body.appendChild(X);var te=X.contentWindow,oe=te.document;oe.open("image/svg+xml","replace"),oe.write(F),oe.close(),te.focus(),oe.execCommand("SaveAs",!0,B),document.body.removeChild(X)}}else{var ae=l.get("lang"),le='<body style="margin:0;"><img src="'+T+'" style="max-width:100%;" title="'+(ae&&ae[0]||"")+'" /></body>',he=window.open();he.document.write(le),he.document.title=h}},t.getDefaultOption=function(o){var s={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:o.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:o.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return s},t}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var o=this.model,s=o.get("icon"),l={};return each$c(o.get("type"),function(h){s[h]&&(l[h]=s[h])}),l},t.getDefaultOption=function(o){var s={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:o.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return s},t.prototype.onclick=function(o,s,l){var h=this.model,v=h.get(["seriesIndex",l]);if(seriesOptGenreator[l]){var x={series:[]},T=function(M){var V=M.subType,z=M.id,F=seriesOptGenreator[l](V,z,M,h);F&&(defaults(F,M.option),x.series.push(F));var B=M.coordinateSystem;if(B&&B.type==="cartesian2d"&&(l==="line"||l==="bar")){var W=B.getAxesByScale("ordinal")[0];if(W){var Y=W.dim,Z=Y+"Axis",X=M.getReferringComponents(Z,SINGLE_REFERRING).models[0],te=X.componentIndex;x[Z]=x[Z]||[];for(var oe=0;oe<=te;oe++)x[Z][te]=x[Z][te]||{};x[Z][te].boundaryGap=l==="bar"}}};each$c(radioTypes,function(M){indexOf(M,l)>=0&&each$c(M,function(V){h.setIconStatus(V,"normal")})}),h.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:v==null?null:{seriesIndex:v}},T);var w,C=l;l==="stack"&&(w=merge({stack:h.option.title.tiled,tiled:h.option.title.stack},h.option.title),h.get(["iconStatus",l])!=="emphasis"&&(C="tiled")),s.dispatchAction({type:"changeMagicType",currentType:C,newOption:x,newTitle:w,featureName:"magicType"})}},t}(ToolboxFeature),seriesOptGenreator={line:function(r,t,o,s){if(r==="bar")return merge({id:t,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},s.get(["option","line"])||{},!0)},bar:function(r,t,o,s){if(r==="line")return merge({id:t,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},s.get(["option","bar"])||{},!0)},stack:function(r,t,o,s){var l=o.get("stack")===INNER_STACK_KEYWORD;if(r==="line"||r==="bar")return s.setIconStatus("stack",l?"normal":"emphasis"),merge({id:t,stack:l?"":INNER_STACK_KEYWORD},s.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(r){var t={},o=[],s=[];return r.eachRawSeries(function(l){var h=l.coordinateSystem;if(h&&(h.type==="cartesian2d"||h.type==="polar")){var v=h.getBaseAxis();if(v.type==="category"){var x=v.dim+"_"+v.index;t[x]||(t[x]={categoryAxis:v,valueAxis:h.getOtherAxis(v),series:[]},s.push({axisDim:v.dim,axisIndex:v.index})),t[x].series.push(l)}else o.push(l)}else o.push(l)}),{seriesGroupByCategoryAxis:t,other:o,meta:s}}function assembleSeriesWithCategoryAxis(r){var t=[];return each$c(r,function(o,s){var l=o.categoryAxis,h=o.valueAxis,v=h.dim,x=[" "].concat(map$2(o.series,function(z){return z.name})),T=[l.model.getCategories()];each$c(o.series,function(z){var F=z.getRawData();T.push(z.getRawData().mapArray(F.mapDimension(v),function(B){return B}))});for(var w=[x.join(ITEM_SPLITER)],C=0;C<T[0].length;C++){for(var M=[],V=0;V<T.length;V++)M.push(T[V][C]);w.push(M.join(ITEM_SPLITER))}t.push(w.join(`
|
||
`))}),t.join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function assembleOtherSeries(r){return map$2(r,function(t){var o=t.getRawData(),s=[t.name],l=[];return o.each(o.dimensions,function(){for(var h=arguments.length,v=arguments[h-1],x=o.getName(v),T=0;T<h-1;T++)l[T]=arguments[T];s.push((x?x+ITEM_SPLITER:"")+l.join(ITEM_SPLITER))}),s.join(`
|
||
`)}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function getContentFromModel(r){var t=groupSeries(r);return{value:filter([assembleSeriesWithCategoryAxis(t.seriesGroupByCategoryAxis),assembleOtherSeries(t.other)],function(o){return!!o.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`),meta:t.meta}}function trim(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat(r){var t=r.slice(0,r.indexOf(`
|
||
`));if(t.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(r){for(var t=r.split(/\n+/g),o=trim(t.shift()).split(itemSplitRegex),s=[],l=map$2(o,function(T){return{name:T,data:[]}}),h=0;h<t.length;h++){var v=trim(t[h]).split(itemSplitRegex);s.push(v.shift());for(var x=0;x<v.length;x++)l[x]&&(l[x].data[h]=v[x])}return{series:l,categories:s}}function parseListContents(r){for(var t=r.split(/\n+/g),o=trim(t.shift()),s=[],l=0;l<t.length;l++){var h=trim(t[l]);if(h){var v=h.split(itemSplitRegex),x="",T=void 0,w=!1;isNaN(v[0])?(w=!0,x=v[0],v=v.slice(1),s[l]={name:x,value:[]},T=s[l].value):T=s[l]=[];for(var C=0;C<v.length;C++)T.push(+v[C]);T.length===1&&(w?s[l].value=T[0]:s[l]=T[0])}}return{name:o,data:s}}function parseContents(r,t){var o=r.split(new RegExp(`
|
||
*`+BLOCK_SPLITER+`
|
||
*`,"g")),s={series:[]};return each$c(o,function(l,h){if(isTSVFormat(l)){var v=parseTSVContents(l),x=t[h],T=x.axisDim+"Axis";x&&(s[T]=s[T]||[],s[T][x.axisIndex]={data:v.categories},s.series=s.series.concat(v.series))}else{var v=parseListContents(l);s.series.push(v)}}),s}var DataView$1=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){setTimeout(function(){s.dispatchAction({type:"hideTip"})});var l=s.getDom(),h=this.model;this._dom&&l.removeChild(this._dom);var v=document.createElement("div");v.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",v.style.backgroundColor=h.get("backgroundColor")||"#fff";var x=document.createElement("h4"),T=h.get("lang")||[];x.innerHTML=T[0]||h.get("title"),x.style.cssText="margin:10px 20px",x.style.color=h.get("textColor");var w=document.createElement("div"),C=document.createElement("textarea");w.style.cssText="overflow:auto";var M=h.get("optionToContent"),V=h.get("contentToOption"),z=getContentFromModel(o);if(isFunction(M)){var F=M(s.getOption());isString(F)?w.innerHTML=F:isDom(F)&&w.appendChild(F)}else{C.readOnly=h.get("readOnly");var B=C.style;B.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",B.color=h.get("textColor"),B.borderColor=h.get("textareaBorderColor"),B.backgroundColor=h.get("textareaColor"),C.value=z.value,w.appendChild(C)}var W=z.meta,Y=document.createElement("div");Y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var Z="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",X=document.createElement("div"),te=document.createElement("div");Z+=";background-color:"+h.get("buttonColor"),Z+=";color:"+h.get("buttonTextColor");var oe=this;function ae(){l.removeChild(v),oe._dom=null}addEventListener(X,"click",ae),addEventListener(te,"click",function(){if(V==null&&M!=null||V!=null&&M==null){ae();return}var le;try{isFunction(V)?le=V(w,s.getOption()):le=parseContents(C.value,W)}catch(he){throw ae(),new Error("Data view format error "+he)}le&&s.dispatchAction({type:"changeDataView",newOption:le}),ae()}),X.innerHTML=T[1],te.innerHTML=T[2],te.style.cssText=X.style.cssText=Z,!h.get("readOnly")&&Y.appendChild(te),Y.appendChild(X),v.appendChild(x),v.appendChild(w),v.appendChild(Y),w.style.height=l.clientHeight-80+"px",l.appendChild(v),this._dom=v},t.prototype.remove=function(o,s){this._dom&&s.getDom().removeChild(this._dom)},t.prototype.dispose=function(o,s){this.remove(o,s)},t.getDefaultOption=function(o){var s={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:o.getLocaleModel().get(["toolbox","dataView","title"]),lang:o.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return s},t}(ToolboxFeature);function tryMergeDataOption(r,t){return map$2(r,function(o,s){var l=t&&t[s];if(isObject$3(l)&&!isArray$1(l)){var h=isObject$3(o)&&!isArray$1(o);h||(o={value:o});var v=l.name!=null&&o.name==null;return o=defaults(o,l),v&&delete o.name,o}else return o})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var o=[];each$c(r.newOption.series,function(s){var l=t.getSeriesByName(s.name)[0];if(!l)o.push(extend({type:"scatter"},s));else{var h=l.get("data");o.push({name:s.name,data:tryMergeDataOption(s.data,h)})}}),t.mergeOption(defaults({series:o},r.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push(r,t){var o=getStoreSnapshots(r);each$6(t,function(s,l){for(var h=o.length-1;h>=0;h--){var v=o[h];if(v[l])break}if(h<0){var x=r.queryComponents({mainType:"dataZoom",subType:"select",id:l})[0];if(x){var T=x.getPercentRange();o[0][l]={dataZoomId:l,start:T[0],end:T[1]}}}}),o.push(t)}function pop(r){var t=getStoreSnapshots(r),o=t[t.length-1];t.length>1&&t.pop();var s={};return each$6(o,function(l,h){for(var v=t.length-1;v>=0;v--)if(l=t[v][h],l){s[h]=l;break}}),s}function clear(r){inner$1(r).snapshots=null}function count(r){return getStoreSnapshots(r).length}function getStoreSnapshots(r){var t=inner$1(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var RestoreOption=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){clear(o),s.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(o){var s={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:o.getLocaleModel().get(["toolbox","restore","title"])};return s},t}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function r(t,o,s){var l=this;this._targetInfoList=[];var h=parseFinder(o,t);each$c(targetInfoBuilders,function(v,x){(!s||!s.include||indexOf(s.include,x)>=0)&&v(h,l._targetInfoList)})}return r.prototype.setOutputRanges=function(t,o){return this.matchOutputRanges(t,o,function(s,l,h){if((s.coordRanges||(s.coordRanges=[])).push(l),!s.coordRange){s.coordRange=l;var v=coordConvert[s.brushType](0,h,l);s.__rangeOffset={offset:diffProcessor[s.brushType](v.values,s.range,[1,1]),xyMinMax:v.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,o,s){each$c(t,function(l){var h=this.findTargetInfo(l,o);h&&h!==!0&&each$c(h.coordSyses,function(v){var x=coordConvert[l.brushType](1,v,l.range,!0);s(l,x.values,v,o)})},this)},r.prototype.setInputRanges=function(t,o){each$c(t,function(s){var l=this.findTargetInfo(s,o);if(s.range=s.range||[],l&&l!==!0){s.panelId=l.panelId;var h=coordConvert[s.brushType](0,l.coordSys,s.coordRange),v=s.__rangeOffset;s.range=v?diffProcessor[s.brushType](h.values,v.offset,getScales(h.xyMinMax,v.xyMinMax)):h.values}},this)},r.prototype.makePanelOpts=function(t,o){return map$2(this._targetInfoList,function(s){var l=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:o?o(s):null,clipPath:makeRectPanelClipPath(l),isTargetByCursor:makeRectIsTargetByCursor(l,t,s.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(l)}})},r.prototype.controlSeries=function(t,o,s){var l=this.findTargetInfo(t,s);return l===!0||l&&indexOf(l.coordSyses,o.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,o){for(var s=this._targetInfoList,l=parseFinder(o,t),h=0;h<s.length;h++){var v=s[h],x=t.panelId;if(x){if(v.panelId===x)return v}else for(var T=0;T<targetInfoMatchers.length;T++)if(targetInfoMatchers[T](l,v))return v}return!0},r}();function formatMinMax(r){return r[0]>r[1]&&r.reverse(),r}function parseFinder(r,t){return parseFinder$1(r,t,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(r,t){var o=r.xAxisModels,s=r.yAxisModels,l=r.gridModels,h=createHashMap(),v={},x={};!o&&!s&&!l||(each$c(o,function(T){var w=T.axis.grid.model;h.set(w.id,w),v[w.id]=!0}),each$c(s,function(T){var w=T.axis.grid.model;h.set(w.id,w),x[w.id]=!0}),each$c(l,function(T){h.set(T.id,T),v[T.id]=!0,x[T.id]=!0}),h.each(function(T){var w=T.coordinateSystem,C=[];each$c(w.getCartesians(),function(M,V){(indexOf(o,M.getAxis("x").model)>=0||indexOf(s,M.getAxis("y").model)>=0)&&C.push(M)}),t.push({panelId:"grid--"+T.id,gridModel:T,coordSysModel:T,coordSys:C[0],coordSyses:C,getPanelRect:panelRectBuilders.grid,xAxisDeclared:v[T.id],yAxisDeclared:x[T.id]})}))},geo:function(r,t){each$c(r.geoModels,function(o){var s=o.coordinateSystem;t.push({panelId:"geo--"+o.id,geoModel:o,coordSysModel:o,coordSys:s,coordSyses:[s],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(r,t){var o=r.xAxisModel,s=r.yAxisModel,l=r.gridModel;return!l&&o&&(l=o.axis.grid.model),!l&&s&&(l=s.axis.grid.model),l&&l===t.gridModel},function(r,t){var o=r.geoModel;return o&&o===t.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(getTransform$1(r)),t}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(r,t,o,s){var l=r?t.pointToData([o[0][0],o[1][0]],s):t.dataToPoint([o[0][0],o[1][0]],s),h=r?t.pointToData([o[0][1],o[1][1]],s):t.dataToPoint([o[0][1],o[1][1]],s),v=[formatMinMax([l[0],h[0]]),formatMinMax([l[1],h[1]])];return{values:v,xyMinMax:v}},polygon:function(r,t,o,s){var l=[[1/0,-1/0],[1/0,-1/0]],h=map$2(o,function(v){var x=r?t.pointToData(v,s):t.dataToPoint(v,s);return l[0][0]=Math.min(l[0][0],x[0]),l[1][0]=Math.min(l[1][0],x[1]),l[0][1]=Math.max(l[0][1],x[0]),l[1][1]=Math.max(l[1][1],x[1]),x});return{values:h,xyMinMax:l}}};function axisConvert(r,t,o,s){var l=o.getAxis(["x","y"][r]),h=formatMinMax(map$2([0,1],function(x){return t?l.coordToData(l.toLocalCoord(s[x]),!0):l.toGlobalCoord(l.dataToCoord(s[x]))})),v=[];return v[r]=h,v[1-r]=[NaN,NaN],{values:h,xyMinMax:v}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(r,t,o){return[[r[0][0]-o[0]*t[0][0],r[0][1]-o[0]*t[0][1]],[r[1][0]-o[1]*t[1][0],r[1][1]-o[1]*t[1][1]]]},polygon:function(r,t,o){return map$2(r,function(s,l){return[s[0]-o[0]*t[l][0],s[1]-o[1]*t[l][1]]})}};function axisDiffProcessor(r,t,o,s){return[t[0]-s[r]*o[0],t[1]-s[r]*o[1]]}function getScales(r,t){var o=getSize(r),s=getSize(t),l=[o[0]/s[0],o[1]/s[1]];return isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l}function getSize(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(o,s,l,h){this._brushController||(this._brushController=new BrushController$1(l.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(o,s,this,h,l),updateBackBtnStatus(o,s)},t.prototype.onclick=function(o,s,l){handlers[l].call(this)},t.prototype.remove=function(o,s){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(o,s){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(o){var s=o.areas;if(!o.isEnd||!s.length)return;var l={},h=this.ecModel;this._brushController.updateCovers([]);var v=new BrushTargetManager$1(makeAxisFinder(this.model),h,{include:["grid"]});v.matchOutputRanges(s,h,function(w,C,M){if(M.type==="cartesian2d"){var V=w.brushType;V==="rect"?(x("x",M,C[0]),x("y",M,C[1])):x({lineX:"x",lineY:"y"}[V],M,C)}}),push(h,l),this._dispatchZoomAction(l);function x(w,C,M){var V=C.getAxis(w),z=V.model,F=T(w,z,h),B=F.findRepresentativeAxisProxy(z).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(M=sliderMove(0,M.slice(),V.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),F&&(l[F.id]={dataZoomId:F.id,startValue:M[0],endValue:M[1]})}function T(w,C,M){var V;return M.eachComponent({mainType:"dataZoom",subType:"select"},function(z){var F=z.getAxisModel(w,C.componentIndex);F&&(V=z)}),V}},t.prototype._dispatchZoomAction=function(o){var s=[];each$5(o,function(l,h){s.push(clone$3(l))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},t.getDefaultOption=function(o){var s={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:o.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return s},t}(ToolboxFeature),handlers={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function updateBackBtnStatus(r,t){r.setIconStatus("back",count(t)>1?"emphasis":"normal")}function updateZoomBtnStatus(r,t,o,s,l){var h=o._isZoomActive;s&&s.type==="takeGlobalCursor"&&(h=s.key==="dataZoomSelect"?s.dataZoomSelectActive:!1),o._isZoomActive=h,r.setIconStatus("zoom",h?"emphasis":"normal");var v=new BrushTargetManager$1(makeAxisFinder(r),t,{include:["grid"]}),x=v.makePanelOpts(l,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"});o._brushController.setPanels(x).enableBrush(h&&x.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(r){var t=r.getComponent("toolbox",0),o=["feature","dataZoom"];if(!t||t.get(o)==null)return;var s=t.getModel(o),l=[],h=makeAxisFinder(s),v=parseFinder$1(r,h);each$5(v.xAxisModels,function(T){return x(T,"xAxis","xAxisIndex")}),each$5(v.yAxisModels,function(T){return x(T,"yAxis","yAxisIndex")});function x(T,w,C){var M=T.componentIndex,V={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+w+M};V[C]=M,l.push(V)}return l});const DataZoom=DataZoomFeature;function install$b(r){r.registerComponentModel(ToolboxModel$1),r.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function testStyle(r){if(env$1.domSupported){for(var t=document.documentElement.style,o=0,s=r.length;o<s;o++)if(r[o]in t)return r[o]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix(r,t){if(!r)return t;t=toCamelCase(t,!0);var o=r.indexOf(t);return r=o===-1?t:"-"+r.slice(0,o)+"-"+t,r.toLowerCase()}function getComputedStyle$1(r,t){var o=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return o?t?o[t]:o:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function assembleArrow(r,t,o){if(!isString(o)||o==="inside")return"";var s=r.get("backgroundColor"),l=r.get("borderWidth");t=convertToColorString(t);var h=mirrorPos(o),v=Math.max(Math.round(l)*1.5,6),x="",T=CSS_TRANSFORM_VENDOR+":",w;indexOf(["left","right"],h)>-1?(x+="top:50%",T+="translateY(-50%) rotate("+(w=h==="left"?-225:-45)+"deg)"):(x+="left:50%",T+="translateX(-50%) rotate("+(w=h==="top"?225:45)+"deg)");var C=w*Math.PI/180,M=v+l,V=M*Math.abs(Math.cos(C))+M*Math.abs(Math.sin(C)),z=Math.round(((V-Math.SQRT2*l)/2+Math.SQRT2*l-(V-M)/2)*100)/100;x+=";"+h+":-"+z+"px";var F=t+" solid "+l+"px;",B=["position:absolute;width:"+v+"px;height:"+v+"px;z-index:-1;",x+";"+T+";","border-bottom:"+F,"border-right:"+F,"background-color:"+s+";"];return'<div style="'+B.join("")+'"></div>'}function assembleTransition(r,t){var o="cubic-bezier(0.23,1,0.32,1)",s=" "+r/2+"s "+o,l="opacity"+s+",visibility"+s;return t||(s=" "+r+"s "+o,l+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+s:",left"+s+",top"+s),CSS_TRANSITION_VENDOR+":"+l}function assembleTransform(r,t,o){var s=r.toFixed(0)+"px",l=t.toFixed(0)+"px";if(!env$1.transformSupported)return o?"top:"+l+";left:"+s+";":[["top",l],["left",s]];var h=env$1.transform3dSupported,v="translate"+(h?"3d":"")+"("+s+","+l+(h?",0":"")+")";return o?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+v+";":[["top",0],["left",0],[TRANSFORM_VENDOR,v]]}function assembleFont(r){var t=[],o=r.get("fontSize"),s=r.getTextColor();s&&t.push("color:"+s),t.push("font:"+r.getFont()),o&&t.push("line-height:"+Math.round(o*3/2)+"px");var l=r.get("textShadowColor"),h=r.get("textShadowBlur")||0,v=r.get("textShadowOffsetX")||0,x=r.get("textShadowOffsetY")||0;return l&&h&&t.push("text-shadow:"+v+"px "+x+"px "+h+"px "+l),each$c(["decoration","align"],function(T){var w=r.get(T);w&&t.push("text-"+T+":"+w)}),t.join(";")}function assembleCssText(r,t,o){var s=[],l=r.get("transitionDuration"),h=r.get("backgroundColor"),v=r.get("shadowBlur"),x=r.get("shadowColor"),T=r.get("shadowOffsetX"),w=r.get("shadowOffsetY"),C=r.getModel("textStyle"),M=getPaddingFromTooltipModel(r,"html"),V=T+"px "+w+"px "+v+"px "+x;return s.push("box-shadow:"+V),t&&l&&s.push(assembleTransition(l,o)),h&&s.push("background-color:"+h),each$c(["width","color","radius"],function(z){var F="border-"+z,B=toCamelCase(F),W=r.get(B);W!=null&&s.push(F+":"+W+(z==="color"?"":"px"))}),s.push(assembleFont(C)),M!=null&&s.push("padding:"+normalizeCssArray(M).join("px ")+"px"),s.join(";")+";"}function makeStyleCoord$1(r,t,o,s,l){var h=t&&t.painter;if(o){var v=h&&h.getViewportRoot();v&&transformLocalCoord(r,v,document.body,s,l)}else{r[0]=s,r[1]=l;var x=h&&h.getViewportRootOffset();x&&(r[0]+=x.offsetLeft,r[1]+=x.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var TooltipHTMLContent=function(){function r(t,o,s){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var l=document.createElement("div");l.domBelongToZr=!0,this.el=l;var h=this._zr=o.getZr(),v=this._appendToBody=s&&s.appendToBody;makeStyleCoord$1(this._styleCoord,h,v,o.getWidth()/2,o.getHeight()/2),v?document.body.appendChild(l):t.appendChild(l),this._container=t;var x=this;l.onmouseenter=function(){x._enterable&&(clearTimeout(x._hideTimeout),x._show=!0),x._inContent=!0},l.onmousemove=function(T){if(T=T||window.event,!x._enterable){var w=h.handler,C=h.painter.getViewportRoot();normalizeEvent(C,T,!0),w.dispatch("mousemove",T)}},l.onmouseleave=function(){x._inContent=!1,x._enterable&&x._show&&x.hideLater(x._hideDelay)}}return r.prototype.update=function(t){var o=this._container,s=getComputedStyle$1(o,"position"),l=o.style;l.position!=="absolute"&&s!=="absolute"&&(l.position="relative");var h=t.get("alwaysShowContent");h&&this._moveIfResized(),this._alwaysShowContent=h,this.el.className=t.get("className")||""},r.prototype.show=function(t,o){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var s=this.el,l=s.style,h=this._styleCoord;s.innerHTML?l.cssText=gCssText+assembleCssText(t,!this._firstShow,this._longHide)+assembleTransform(h[0],h[1],!0)+("border-color:"+convertToColorString(o)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):l.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,o,s,l,h){var v=this.el;if(t==null){v.innerHTML="";return}var x="";if(isString(h)&&s.get("trigger")==="item"&&!shouldTooltipConfine(s)&&(x=assembleArrow(s,l,h)),isString(t))v.innerHTML=t+x;else if(t){v.innerHTML="",isArray$1(t)||(t=[t]);for(var T=0;T<t.length;T++)isDom(t[T])&&t[T].parentNode!==v&&v.appendChild(t[T]);if(x&&v.childNodes.length){var w=document.createElement("div");w.innerHTML=x,v.appendChild(w)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,o){var s=this._styleCoord;if(makeStyleCoord$1(s,this._zr,this._appendToBody,t,o),s[0]!=null&&s[1]!=null){var l=this.el.style,h=assembleTransform(s[0],s[1]);each$c(h,function(v){l[v[0]]=v[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],o=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),o*this._zr.getHeight())},r.prototype.hide=function(){var t=this,o=this.el.style;o.visibility="hidden",o.opacity="0",env$1.transform3dSupported&&(o.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),makeStyleCoord(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,o,s,l,h){var v=this;isObject$3(t)&&throwError(""),this.el&&this._zr.remove(this.el);var x=s.getModel("textStyle");this.el=new ZRText$1({style:{rich:o.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:l,textShadowColor:x.get("textShadowColor"),fill:s.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(s,"richText"),verticalAlign:"top",align:"left"},z:s.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(w){v.el.style[w]=s.get(w)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(w){v.el.style[w]=x.get(w)||0}),this._zr.add(this.el);var T=this;this.el.on("mouseover",function(){T._enterable&&(clearTimeout(T._hideTimeout),T._show=!0),T._inContent=!0}),this.el.on("mouseout",function(){T._enterable&&T._show&&T.hideLater(T._hideDelay),T._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,o=this.el.getBoundingRect(),s=calcShadowOuterSize(t.style);return[o.width+s.left+s.right,o.height+s.top+s.bottom]},r.prototype.moveTo=function(t,o){var s=this.el;if(s){var l=this._styleCoord;makeStyleCoord(l,this._zr,t,o),t=l[0],o=l[1];var h=s.style,v=mathMaxWith0(h.borderWidth||0),x=calcShadowOuterSize(h);s.x=t+v+x.left,s.y=o+v+x.top,s.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],o=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),o*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function mathMaxWith0(r){return Math.max(0,r)}function calcShadowOuterSize(r){var t=mathMaxWith0(r.shadowBlur||0),o=mathMaxWith0(r.shadowOffsetX||0),s=mathMaxWith0(r.shadowOffsetY||0);return{left:mathMaxWith0(t-o),right:mathMaxWith0(t+o),top:mathMaxWith0(t-s),bottom:mathMaxWith0(t+s)}}function makeStyleCoord(r,t,o,s){r[0]=o,r[1]=s,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.init=function(o,s){if(!(env$1.node||!s.getDom())){var l=o.getComponent("tooltip"),h=this._renderMode=getTooltipRenderMode(l.get("renderMode"));this._tooltipContent=h==="richText"?new TooltipRichContent$1(s):new TooltipHTMLContent$1(s.getDom(),s,{appendToBody:l.get("appendToBody",!0)})}},t.prototype.render=function(o,s,l){if(!(env$1.node||!l.getDom())){this.group.removeAll(),this._tooltipModel=o,this._ecModel=s,this._api=l;var h=this._tooltipContent;h.update(o),h.setEnterable(o.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&o.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var o=this._tooltipModel,s=o.get("triggerOn");register("itemTooltip",this._api,bind$1(function(l,h,v){s!=="none"&&(s.indexOf(l)>=0?this._tryShow(h,v):l==="leave"&&this._hide(v))},this))},t.prototype._keepShow=function(){var o=this._tooltipModel,s=this._ecModel,l=this._api,h=o.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&h!=="none"&&h!=="click"){var v=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!l.isDisposed()&&v.manuallyShowTip(o,s,l,{x:v._lastX,y:v._lastY,dataByCoordSys:v._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(o,s,l,h){if(!(h.from===this.uid||env$1.node||!l.getDom())){var v=makeDispatchAction(h,l);this._ticket="";var x=h.dataByCoordSys,T=findComponentReference(h,s,l);if(T){var w=T.el.getBoundingRect().clone();w.applyTransform(T.el.transform),this._tryShow({offsetX:w.x+w.width/2,offsetY:w.y+w.height/2,target:T.el,position:h.position,positionDefault:"bottom"},v)}else if(h.tooltip&&h.x!=null&&h.y!=null){var C=proxyRect;C.x=h.x,C.y=h.y,C.update(),getECData(C).tooltipConfig={name:null,option:h.tooltip},this._tryShow({offsetX:h.x,offsetY:h.y,target:C},v)}else if(x)this._tryShow({offsetX:h.x,offsetY:h.y,position:h.position,dataByCoordSys:x,tooltipOption:h.tooltipOption},v);else if(h.seriesIndex!=null){if(this._manuallyAxisShowTip(o,s,l,h))return;var M=findPointFromSeries(h,s),V=M.point[0],z=M.point[1];V!=null&&z!=null&&this._tryShow({offsetX:V,offsetY:z,target:M.el,position:h.position,positionDefault:"bottom"},v)}else h.x!=null&&h.y!=null&&(l.dispatchAction({type:"updateAxisPointer",x:h.x,y:h.y}),this._tryShow({offsetX:h.x,offsetY:h.y,position:h.position,target:l.getZr().findHover(h.x,h.y).target},v))}},t.prototype.manuallyHideTip=function(o,s,l,h){var v=this._tooltipContent;this._tooltipModel&&v.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,h.from!==this.uid&&this._hide(makeDispatchAction(h,l))},t.prototype._manuallyAxisShowTip=function(o,s,l,h){var v=h.seriesIndex,x=h.dataIndex,T=s.getComponent("axisPointer").coordSysAxesInfo;if(!(v==null||x==null||T==null)){var w=s.getSeriesByIndex(v);if(w){var C=w.getData(),M=buildTooltipModel([C.getItemModel(x),w,(w.coordinateSystem||{}).model],this._tooltipModel);if(M.get("trigger")==="axis")return l.dispatchAction({type:"updateAxisPointer",seriesIndex:v,dataIndex:x,position:h.position}),!0}}},t.prototype._tryShow=function(o,s){var l=o.target,h=this._tooltipModel;if(h){this._lastX=o.offsetX,this._lastY=o.offsetY;var v=o.dataByCoordSys;if(v&&v.length)this._showAxisTooltip(v,o);else if(l){this._lastDataByCoordSys=null;var x,T;findEventDispatcher(l,function(w){if(getECData(w).dataIndex!=null)return x=w,!0;if(getECData(w).tooltipConfig!=null)return T=w,!0},!0),x?this._showSeriesItemTooltip(o,x,s):T?this._showComponentItemTooltip(o,T,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},t.prototype._showOrMove=function(o,s){var l=o.get("showDelay");s=bind$1(s,this),clearTimeout(this._showTimout),l>0?this._showTimout=setTimeout(s,l):s()},t.prototype._showAxisTooltip=function(o,s){var l=this._ecModel,h=this._tooltipModel,v=[s.offsetX,s.offsetY],x=buildTooltipModel([s.tooltipOption],h),T=this._renderMode,w=[],C=createTooltipMarkup("section",{blocks:[],noHeader:!0}),M=[],V=new TooltipMarkupStyleCreator;each$c(o,function(Z){each$c(Z.dataByAxis,function(X){var te=l.getComponent(X.axisDim+"Axis",X.axisIndex),oe=X.value;if(!(!te||oe==null)){var ae=getValueLabel(oe,te.axis,l,X.seriesDataIndices,X.valueLabelOpt),le=createTooltipMarkup("section",{header:ae,noHeader:!trim$1(ae),sortBlocks:!0,blocks:[]});C.blocks.push(le),each$c(X.seriesDataIndices,function(he){var me=l.getSeriesByIndex(he.seriesIndex),_e=he.dataIndexInside,ye=me.getDataParams(_e);if(!(ye.dataIndex<0)){ye.axisDim=X.axisDim,ye.axisIndex=X.axisIndex,ye.axisType=X.axisType,ye.axisId=X.axisId,ye.axisValue=getAxisRawValue(te.axis,{value:oe}),ye.axisValueLabel=ae,ye.marker=V.makeTooltipMarker("item",convertToColorString(ye.color),T);var Se=normalizeTooltipFormatResult(me.formatTooltip(_e,!0,null)),Te=Se.frag;if(Te){var we=buildTooltipModel([me],h).get("valueFormatter");le.blocks.push(we?extend({valueFormatter:we},Te):Te)}Se.text&&M.push(Se.text),w.push(ye)}})}})}),C.blocks.reverse(),M.reverse();var z=s.position,F=x.get("order"),B=buildTooltipMarkup(C,V,T,F,l.get("useUTC"),x.get("textStyle"));B&&M.unshift(B);var W=T==="richText"?`
|
||
|
||
`:"<br/>",Y=M.join(W);this._showOrMove(x,function(){this._updateContentNotChangedOnAxis(o,w)?this._updatePosition(x,z,v[0],v[1],this._tooltipContent,w):this._showTooltipContent(x,Y,w,Math.random()+"",v[0],v[1],z,null,V)})},t.prototype._showSeriesItemTooltip=function(o,s,l){var h=this._ecModel,v=getECData(s),x=v.seriesIndex,T=h.getSeriesByIndex(x),w=v.dataModel||T,C=v.dataIndex,M=v.dataType,V=w.getData(M),z=this._renderMode,F=o.positionDefault,B=buildTooltipModel([V.getItemModel(C),w,T&&(T.coordinateSystem||{}).model],this._tooltipModel,F?{position:F}:null),W=B.get("trigger");if(!(W!=null&&W!=="item")){var Y=w.getDataParams(C,M),Z=new TooltipMarkupStyleCreator;Y.marker=Z.makeTooltipMarker("item",convertToColorString(Y.color),z);var X=normalizeTooltipFormatResult(w.formatTooltip(C,!1,M)),te=B.get("order"),oe=B.get("valueFormatter"),ae=X.frag,le=ae?buildTooltipMarkup(oe?extend({valueFormatter:oe},ae):ae,Z,z,te,h.get("useUTC"),B.get("textStyle")):X.text,he="item_"+w.name+"_"+C;this._showOrMove(B,function(){this._showTooltipContent(B,le,Y,he,o.offsetX,o.offsetY,o.position,o.target,Z)}),l({type:"showTip",dataIndexInside:C,dataIndex:V.getRawIndex(C),seriesIndex:x,from:this.uid})}},t.prototype._showComponentItemTooltip=function(o,s,l){var h=getECData(s),v=h.tooltipConfig,x=v.option||{};if(isString(x)){var T=x;x={content:T,formatter:T}}var w=[x],C=this._ecModel.getComponent(h.componentMainType,h.componentIndex);C&&w.push(C),w.push({formatter:x.content});var M=o.positionDefault,V=buildTooltipModel(w,this._tooltipModel,M?{position:M}:null),z=V.get("content"),F=Math.random()+"",B=new TooltipMarkupStyleCreator;this._showOrMove(V,function(){var W=clone$3(V.get("formatterParams")||{});this._showTooltipContent(V,z,W,F,o.offsetX,o.offsetY,o.position,s,B)}),l({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(o,s,l,h,v,x,T,w,C){if(this._ticket="",!(!o.get("showContent")||!o.get("show"))){var M=this._tooltipContent;M.setEnterable(o.get("enterable"));var V=o.get("formatter");T=T||o.get("position");var z=s,F=this._getNearestPoint([v,x],l,o.get("trigger"),o.get("borderColor")),B=F.color;if(V)if(isString(V)){var W=o.ecModel.get("useUTC"),Y=isArray$1(l)?l[0]:l,Z=Y&&Y.axisType&&Y.axisType.indexOf("time")>=0;z=V,Z&&(z=format$1(Y.axisValue,z,W)),z=formatTpl(z,l,!0)}else if(isFunction(V)){var X=bind$1(function(te,oe){te===this._ticket&&(M.setContent(oe,C,o,B,T),this._updatePosition(o,T,v,x,M,l,w))},this);this._ticket=h,z=V(l,h,X)}else z=V;M.setContent(z,C,o,B,T),M.show(o,B),this._updatePosition(o,T,v,x,M,l,w)}},t.prototype._getNearestPoint=function(o,s,l,h){if(l==="axis"||isArray$1(s))return{color:h||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(s))return{color:h||s.color||s.borderColor}},t.prototype._updatePosition=function(o,s,l,h,v,x,T){var w=this._api.getWidth(),C=this._api.getHeight();s=s||o.get("position");var M=v.getSize(),V=o.get("align"),z=o.get("verticalAlign"),F=T&&T.getBoundingRect().clone();if(T&&F.applyTransform(T.transform),isFunction(s)&&(s=s([l,h],x,v.el,F,{viewSize:[w,C],contentSize:M.slice()})),isArray$1(s))l=parsePercent(s[0],w),h=parsePercent(s[1],C);else if(isObject$3(s)){var B=s;B.width=M[0],B.height=M[1];var W=getLayoutRect(B,{width:w,height:C});l=W.x,h=W.y,V=null,z=null}else if(isString(s)&&T){var Y=calcTooltipPosition(s,F,M,o.get("borderWidth"));l=Y[0],h=Y[1]}else{var Y=refixTooltipPosition(l,h,v,w,C,V?null:20,z?null:20);l=Y[0],h=Y[1]}if(V&&(l-=isCenterAlign(V)?M[0]/2:V==="right"?M[0]:0),z&&(h-=isCenterAlign(z)?M[1]/2:z==="bottom"?M[1]:0),shouldTooltipConfine(o)){var Y=confineTooltipPosition(l,h,v,w,C);l=Y[0],h=Y[1]}v.moveTo(l,h)},t.prototype._updateContentNotChangedOnAxis=function(o,s){var l=this._lastDataByCoordSys,h=this._cbParamsList,v=!!l&&l.length===o.length;return v&&each$c(l,function(x,T){var w=x.dataByAxis||[],C=o[T]||{},M=C.dataByAxis||[];v=v&&w.length===M.length,v&&each$c(w,function(V,z){var F=M[z]||{},B=V.seriesDataIndices||[],W=F.seriesDataIndices||[];v=v&&V.value===F.value&&V.axisType===F.axisType&&V.axisId===F.axisId&&B.length===W.length,v&&each$c(B,function(Y,Z){var X=W[Z];v=v&&Y.seriesIndex===X.seriesIndex&&Y.dataIndex===X.dataIndex}),h&&each$c(V.seriesDataIndices,function(Y){var Z=Y.seriesIndex,X=s[Z],te=h[Z];X&&te&&te.data!==X.data&&(v=!1)})})}),this._lastDataByCoordSys=o,this._cbParamsList=s,!!v},t.prototype._hide=function(o){this._lastDataByCoordSys=null,o({type:"hideTip",from:this.uid})},t.prototype.dispose=function(o,s){env$1.node||!s.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",s))},t.type="tooltip",t}(ComponentView$1);function buildTooltipModel(r,t,o){var s=t.ecModel,l;o?(l=new Model$1(o,s,s),l=new Model$1(t.option,l,s)):l=t;for(var h=r.length-1;h>=0;h--){var v=r[h];v&&(v instanceof Model$1&&(v=v.get("tooltip",!0)),isString(v)&&(v={formatter:v}),v&&(l=new Model$1(v,l,s)))}return l}function makeDispatchAction(r,t){return r.dispatchAction||bind$1(t.dispatchAction,t)}function refixTooltipPosition(r,t,o,s,l,h,v){var x=o.getSize(),T=x[0],w=x[1];return h!=null&&(r+T+h+2>s?r-=T+h:r+=h),v!=null&&(t+w+v>l?t-=w+v:t+=v),[r,t]}function confineTooltipPosition(r,t,o,s,l){var h=o.getSize(),v=h[0],x=h[1];return r=Math.min(r+v,s)-v,t=Math.min(t+x,l)-x,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function calcTooltipPosition(r,t,o,s){var l=o[0],h=o[1],v=Math.ceil(Math.SQRT2*s)+8,x=0,T=0,w=t.width,C=t.height;switch(r){case"inside":x=t.x+w/2-l/2,T=t.y+C/2-h/2;break;case"top":x=t.x+w/2-l/2,T=t.y-h-v;break;case"bottom":x=t.x+w/2-l/2,T=t.y+C+v;break;case"left":x=t.x-l-v,T=t.y+C/2-h/2;break;case"right":x=t.x+w+v,T=t.y+C/2-h/2}return[x,T]}function isCenterAlign(r){return r==="center"||r==="middle"}function findComponentReference(r,t,o){var s=preParseFinder(r).queryOptionMap,l=s.keys()[0];if(!(!l||l==="series")){var h=queryReferringComponents(t,l,s.get(l),{useDefault:!1,enableAll:!1,enableNone:!1}),v=h.models[0];if(v){var x=o.getViewOfComponentModel(v),T;if(x.group.traverse(function(w){var C=getECData(w).tooltipConfig;if(C&&C.name===r.name)return T=w,!0}),T)return{componentMainType:l,componentIndex:v.componentIndex,el:T}}}}const TooltipView$1=TooltipView;function install$a(r){use$1(install$f),r.registerComponentModel(TooltipModel$1),r.registerComponentView(TooltipView$1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function createVisualMappings(r,t,o){var s={};return each$4(t,function(h){var v=s[h]=l();each$4(r[h],function(x,T){if(VisualMapping$1.isValidType(T)){var w={type:T,visual:x};o&&o(w,h),v[T]=new VisualMapping$1(w),T==="opacity"&&(w=clone$3(w),w.type="colorAlpha",v.__hidden.__alphaForOpacity=new VisualMapping$1(w))}})}),s;function l(){var h=function(){};h.prototype.__hidden=h.prototype;var v=new h;return v}}function replaceVisualOption(r,t,o){var s;each$c(o,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])&&(s=!0)}),s&&each$c(o,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])?r[l]=clone$3(t[l]):delete r[l]})}function incrementalApplyVisual(r,t,o,s){var l={};return each$c(r,function(h){var v=VisualMapping$1.prepareVisualTypes(t[h]);l[h]=v}),{progress:function(v,x){var T;s!=null&&(T=x.getDimensionIndex(s));function w(oe){return getItemVisualFromData(x,M,oe)}function C(oe,ae){setItemVisualFromData(x,M,oe,ae)}for(var M,V=x.getStore();(M=v.next())!=null;){var z=x.getRawDataItem(M);if(!(z&&z.visualMap===!1))for(var F=s!=null?V.get(T,M):M,B=o(F),W=t[B],Y=l[B],Z=0,X=Y.length;Z<X;Z++){var te=Y[Z];W[te]&&W[te].applyVisual(F,w,C)}}}}}var TitleModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.layoutMode={type:"box",ignoreSize:!0},o}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ComponentModel$1),TitleView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l){if(this.group.removeAll(),!!o.get("show")){var h=this.group,v=o.getModel("textStyle"),x=o.getModel("subtextStyle"),T=o.get("textAlign"),w=retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),C=new ZRText$1({style:createTextStyle$1(v,{text:o.get("text"),fill:v.getTextColor()},{disableBox:!0}),z2:10}),M=C.getBoundingRect(),V=o.get("subtext"),z=new ZRText$1({style:createTextStyle$1(x,{text:V,fill:x.getTextColor(),y:M.height+o.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),F=o.get("link"),B=o.get("sublink"),W=o.get("triggerEvent",!0);C.silent=!F&&!W,z.silent=!B&&!W,F&&C.on("click",function(){windowOpen(F,"_"+o.get("target"))}),B&&z.on("click",function(){windowOpen(B,"_"+o.get("subtarget"))}),getECData(C).eventData=getECData(z).eventData=W?{componentType:"title",componentIndex:o.componentIndex}:null,h.add(C),V&&h.add(z);var Y=h.getBoundingRect(),Z=o.getBoxLayoutParams();Z.width=Y.width,Z.height=Y.height;var X=getLayoutRect(Z,{width:l.getWidth(),height:l.getHeight()},o.get("padding"));T||(T=o.get("left")||o.get("right"),T==="middle"&&(T="center"),T==="right"?X.x+=X.width:T==="center"&&(X.x+=X.width/2)),w||(w=o.get("top")||o.get("bottom"),w==="center"&&(w="middle"),w==="bottom"?X.y+=X.height:w==="middle"&&(X.y+=X.height/2),w=w||"top"),h.x=X.x,h.y=X.y,h.markRedraw();var te={align:T,verticalAlign:w};C.setStyle(te),z.setStyle(te),Y=h.getBoundingRect();var oe=X.margin,ae=o.getItemStyle(["color","opacity"]);ae.fill=o.get("backgroundColor");var le=new Rect$2({shape:{x:Y.x-oe[3],y:Y.y-oe[0],width:Y.width+oe[1]+oe[3],height:Y.height+oe[0]+oe[2],r:o.get("borderRadius")},style:ae,subPixelOptimize:!0,silent:!0});h.add(le)}},t.type="title",t}(ComponentView$1);function install$9(r){r.registerComponentModel(TitleModel),r.registerComponentView(TitleView)}var getDefaultSelectorOptions=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.layoutMode={type:"box",ignoreSize:!0},o}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l),o.selected=o.selected||{},this._updateSelector(o)},t.prototype.mergeOption=function(o,s){r.prototype.mergeOption.call(this,o,s),this._updateSelector(o)},t.prototype._updateSelector=function(o){var s=o.selector,l=this.ecModel;s===!0&&(s=o.selector=["all","inverse"]),isArray$1(s)&&each$c(s,function(h,v){isString(h)&&(h={type:h}),s[v]=merge(h,getDefaultSelectorOptions(l,h.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var o=this._data;if(o[0]&&this.get("selectedMode")==="single"){for(var s=!1,l=0;l<o.length;l++){var h=o[l].get("name");if(this.isSelected(h)){this.select(h),s=!0;break}}!s&&this.select(o[0].get("name"))}},t.prototype._updateData=function(o){var s=[],l=[];o.eachRawSeries(function(T){var w=T.name;l.push(w);var C;if(T.legendVisualProvider){var M=T.legendVisualProvider,V=M.getAllNames();o.isSeriesFiltered(T)||(l=l.concat(V)),V.length?s=s.concat(V):C=!0}else C=!0;C&&isNameSpecified(T)&&s.push(T.name)}),this._availableNames=l;var h=this.get("data")||s,v=createHashMap(),x=map$2(h,function(T){return(isString(T)||isNumber(T))&&(T={name:T}),v.get(T.name)?null:(v.set(T.name,!0),new Model$1(T,this,this.ecModel))},this);this._data=filter(x,function(T){return!!T})},t.prototype.getData=function(){return this._data},t.prototype.select=function(o){var s=this.option.selected,l=this.get("selectedMode");if(l==="single"){var h=this._data;each$c(h,function(v){s[v.get("name")]=!1})}s[o]=!0},t.prototype.unSelect=function(o){this.get("selectedMode")!=="single"&&(this.option.selected[o]=!1)},t.prototype.toggleSelected=function(o){var s=this.option.selected;s.hasOwnProperty(o)||(s[o]=!0),this[s[o]?"unSelect":"select"](o)},t.prototype.allSelect=function(){var o=this._data,s=this.option.selected;each$c(o,function(l){s[l.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var o=this._data,s=this.option.selected;each$c(o,function(l){var h=l.get("name",!0);s.hasOwnProperty(h)||(s[h]=!0),s[h]=!s[h]})},t.prototype.isSelected=function(o){var s=this.option.selected;return!(s.hasOwnProperty(o)&&!s[o])&&indexOf(this._availableNames,o)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.newlineDisabled=!1,o}return t.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(o,s,l){var h=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!o.get("show",!0)){var v=o.get("align"),x=o.get("orient");(!v||v==="auto")&&(v=o.get("left")==="right"&&x==="vertical"?"right":"left");var T=o.get("selector",!0),w=o.get("selectorPosition",!0);T&&(!w||w==="auto")&&(w=x==="horizontal"?"end":"start"),this.renderInner(v,o,s,l,T,x,w);var C=o.getBoxLayoutParams(),M={width:l.getWidth(),height:l.getHeight()},V=o.get("padding"),z=getLayoutRect(C,M,V),F=this.layoutInner(o,v,z,h,T,w),B=getLayoutRect(defaults({width:F.width,height:F.height},C),M,V);this.group.x=B.x-F.x,this.group.y=B.y-F.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(F,o))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(o,s,l,h,v,x,T){var w=this.getContentGroup(),C=createHashMap(),M=s.get("selectedMode"),V=[];l.eachRawSeries(function(z){!z.get("legendHoverLink")&&V.push(z.id)}),each$3(s.getData(),function(z,F){var B=z.get("name");if(!this.newlineDisabled&&(B===""||B===`
|
||
`)){var W=new Group$1;W.newline=!0,w.add(W);return}var Y=l.getSeriesByName(B)[0];if(!C.get(B))if(Y){var Z=Y.getData(),X=Z.getVisual("legendLineStyle")||{},te=Z.getVisual("legendIcon"),oe=Z.getVisual("style"),ae=this._createItem(Y,B,F,z,s,o,X,oe,te,M,h);ae.on("click",curry(dispatchSelectAction,B,null,h,V)).on("mouseover",curry(dispatchHighlightAction,Y.name,null,h,V)).on("mouseout",curry(dispatchDownplayAction,Y.name,null,h,V)),C.set(B,!0)}else l.eachRawSeries(function(le){if(!C.get(B)&&le.legendVisualProvider){var he=le.legendVisualProvider;if(!he.containName(B))return;var me=he.indexOfName(B),_e=he.getItemVisual(me,"style"),ye=he.getItemVisual(me,"legendIcon"),Se=parse$1(_e.fill);Se&&Se[3]===0&&(Se[3]=.2,_e=extend(extend({},_e),{fill:stringify(Se,"rgba")}));var Te=this._createItem(le,B,F,z,s,o,{},_e,ye,M,h);Te.on("click",curry(dispatchSelectAction,null,B,h,V)).on("mouseover",curry(dispatchHighlightAction,null,B,h,V)).on("mouseout",curry(dispatchDownplayAction,null,B,h,V)),C.set(B,!0)}},this)},this),v&&this._createSelector(v,s,h,x,T)},t.prototype._createSelector=function(o,s,l,h,v){var x=this.getSelectorGroup();each$3(o,function(w){var C=w.type,M=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){l.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(M);var V=s.getModel("selectorLabel"),z=s.getModel(["emphasis","selectorLabel"]);setLabelStyle(M,{normal:V,emphasis:z},{defaultText:w.title}),enableHoverEmphasis(M)})},t.prototype._createItem=function(o,s,l,h,v,x,T,w,C,M,V){var z=o.visualDrawType,F=v.get("itemWidth"),B=v.get("itemHeight"),W=v.isSelected(s),Y=h.get("symbolRotate"),Z=h.get("symbolKeepAspect"),X=h.get("icon");C=X||C||"roundRect";var te=getLegendStyle(C,h,T,w,z,W,V),oe=new Group$1,ae=h.getModel("textStyle");if(isFunction(o.getLegendIcon)&&(!X||X==="inherit"))oe.add(o.getLegendIcon({itemWidth:F,itemHeight:B,icon:C,iconRotate:Y,itemStyle:te.itemStyle,lineStyle:te.lineStyle,symbolKeepAspect:Z}));else{var le=X==="inherit"&&o.getData().getVisual("symbol")?Y==="inherit"?o.getData().getVisual("symbolRotate"):Y:0;oe.add(getDefaultLegendIcon({itemWidth:F,itemHeight:B,icon:C,iconRotate:le,itemStyle:te.itemStyle,lineStyle:te.lineStyle,symbolKeepAspect:Z}))}var he=x==="left"?F+5:-5,me=x,_e=v.get("formatter"),ye=s;isString(_e)&&_e?ye=_e.replace("{name}",s??""):isFunction(_e)&&(ye=_e(s));var Se=h.get("inactiveColor");oe.add(new ZRText$1({style:createTextStyle$1(ae,{text:ye,x:he,y:B/2,fill:W?ae.getTextColor():Se,align:me,verticalAlign:"middle"})}));var Te=new Rect$2({shape:oe.getBoundingRect(),invisible:!0}),we=h.getModel("tooltip");return we.get("show")&&setTooltipConfig({el:Te,componentModel:v,itemName:s,itemTooltipOption:we.option}),oe.add(Te),oe.eachChild(function(Ee){Ee.silent=!0}),Te.silent=!M,this.getContentGroup().add(oe),enableHoverEmphasis(oe),oe.__legendDataIndex=l,oe},t.prototype.layoutInner=function(o,s,l,h,v,x){var T=this.getContentGroup(),w=this.getSelectorGroup();box(o.get("orient"),T,o.get("itemGap"),l.width,l.height);var C=T.getBoundingRect(),M=[-C.x,-C.y];if(w.markRedraw(),T.markRedraw(),v){box("horizontal",w,o.get("selectorItemGap",!0));var V=w.getBoundingRect(),z=[-V.x,-V.y],F=o.get("selectorButtonGap",!0),B=o.getOrient().index,W=B===0?"width":"height",Y=B===0?"height":"width",Z=B===0?"y":"x";x==="end"?z[B]+=C[W]+F:M[B]+=V[W]+F,z[1-B]+=C[Y]/2-V[Y]/2,w.x=z[0],w.y=z[1],T.x=M[0],T.y=M[1];var X={x:0,y:0};return X[W]=C[W]+F+V[W],X[Y]=Math.max(C[Y],V[Y]),X[Z]=Math.min(0,V[Z]+z[1-B]),X}else return T.x=M[0],T.y=M[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ComponentView$1);function getLegendStyle(r,t,o,s,l,h,v){function x(W,Y){W.lineWidth==="auto"&&(W.lineWidth=Y.lineWidth>0?2:0),each$3(W,function(Z,X){W[X]==="inherit"&&(W[X]=Y[X])})}var T=t.getModel("itemStyle"),w=T.getItemStyle(),C=r.lastIndexOf("empty",0)===0?"fill":"stroke",M=T.getShallow("decal");w.decal=!M||M==="inherit"?s.decal:createOrUpdatePatternFromDecal(M,v),w.fill==="inherit"&&(w.fill=s[l]),w.stroke==="inherit"&&(w.stroke=s[C]),w.opacity==="inherit"&&(w.opacity=(l==="fill"?s:o).opacity),x(w,s);var V=t.getModel("lineStyle"),z=V.getLineStyle();if(x(z,o),w.fill==="auto"&&(w.fill=s.fill),w.stroke==="auto"&&(w.stroke=s.fill),z.stroke==="auto"&&(z.stroke=s.fill),!h){var F=t.get("inactiveBorderWidth"),B=w[C];w.lineWidth=F==="auto"?s.lineWidth>0&&B?2:0:w.lineWidth,w.fill=t.get("inactiveColor"),w.stroke=t.get("inactiveBorderColor"),z.stroke=V.get("inactiveColor"),z.lineWidth=V.get("inactiveWidth")}return{itemStyle:w,lineStyle:z}}function getDefaultLegendIcon(r){var t=r.icon||"roundRect",o=createSymbol(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return o.setStyle(r.itemStyle),o.rotation=(r.iconRotate||0)*Math.PI/180,o.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o}function dispatchSelectAction(r,t,o,s){dispatchDownplayAction(r,t,o,s),o.dispatchAction({type:"legendToggleSelect",name:r??t}),dispatchHighlightAction(r,t,o,s)}function isUseHoverLayer(r){for(var t=r.getZr().storage.getDisplayList(),o,s=0,l=t.length;s<l&&!(o=t[s].states.emphasis);)s++;return o&&o.hoverLayer}function dispatchHighlightAction(r,t,o,s){isUseHoverLayer(o)||o.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:s})}function dispatchDownplayAction(r,t,o,s){isUseHoverLayer(o)||o.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:s})}const LegendView$1=LegendView;function legendFilter(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(o){for(var s=0;s<t.length;s++)if(!t[s].isSelected(o.name))return!1;return!0})}function legendSelectActionHandler(r,t,o){var s={},l=r==="toggleSelected",h;return o.eachComponent("legend",function(v){l&&h!=null?v[h?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?v[r]():(v[r](t.name),h=v.isSelected(t.name));var x=v.getData();each$c(x,function(T){var w=T.get("name");if(!(w===`
|
||
`||w==="")){var C=v.isSelected(w);s.hasOwnProperty(w)?s[w]=s[w]&&C:s[w]=C}})}),r==="allSelect"||r==="inverseSelect"?{selected:s}:{name:t.name,selected:s}}function installLegendAction(r){r.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),r.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),r.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8(r){r.registerComponentModel(LegendModel$1),r.registerComponentView(LegendView$1),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),r.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(r)}var ScrollableLegendModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.setScrollDataIndex=function(o){this.option.scrollDataIndex=o},t.prototype.init=function(o,s,l){var h=getLayoutParams(o);r.prototype.init.call(this,o,s,l),mergeAndNormalizeLayoutParams(this,o,h)},t.prototype.mergeOption=function(o,s){r.prototype.mergeOption.call(this,o,s),mergeAndNormalizeLayoutParams(this,this.option,o)},t.type="legend.scroll",t.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(LegendModel$1);function mergeAndNormalizeLayoutParams(r,t,o){var s=r.getOrient(),l=[1,1];l[s.index]=0,mergeLayoutParam(t,o,{type:"box",ignoreSize:!!l})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.newlineDisabled=!0,o._currentIndex=0,o}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(o,s,l,h,v,x,T){var w=this;r.prototype.renderInner.call(this,o,s,l,h,v,x,T);var C=this._controllerGroup,M=s.get("pageIconSize",!0),V=isArray$1(M)?M:[M,M];F("pagePrev",0);var z=s.getModel("pageTextStyle");C.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:z.getTextColor(),font:z.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),F("pageNext",1);function F(B,W){var Y=B+"DataIndex",Z=createIcon(s.get("pageIcons",!0)[s.getOrient().name][W],{onclick:bind$1(w._pageGo,w,Y,s,h)},{x:-V[0]/2,y:-V[1]/2,width:V[0],height:V[1]});Z.name=B,C.add(Z)}},t.prototype.layoutInner=function(o,s,l,h,v,x){var T=this.getSelectorGroup(),w=o.getOrient().index,C=WH[w],M=XY[w],V=WH[1-w],z=XY[1-w];v&&box("horizontal",T,o.get("selectorItemGap",!0));var F=o.get("selectorButtonGap",!0),B=T.getBoundingRect(),W=[-B.x,-B.y],Y=clone$3(l);v&&(Y[C]=l[C]-B[C]-F);var Z=this._layoutContentAndController(o,h,Y,w,C,V,z,M);if(v){if(x==="end")W[w]+=Z[C]+F;else{var X=B[C]+F;W[w]-=X,Z[M]-=X}Z[C]+=B[C]+F,W[1-w]+=Z[z]+Z[V]/2-B[V]/2,Z[V]=Math.max(Z[V],B[V]),Z[z]=Math.min(Z[z],B[z]+W[1-w]),T.x=W[0],T.y=W[1],T.markRedraw()}return Z},t.prototype._layoutContentAndController=function(o,s,l,h,v,x,T,w){var C=this.getContentGroup(),M=this._containerGroup,V=this._controllerGroup;box(o.get("orient"),C,o.get("itemGap"),h?l.width:null,h?null:l.height),box("horizontal",V,o.get("pageButtonItemGap",!0));var z=C.getBoundingRect(),F=V.getBoundingRect(),B=this._showController=z[v]>l[v],W=[-z.x,-z.y];s||(W[h]=C[w]);var Y=[0,0],Z=[-F.x,-F.y],X=retrieve2(o.get("pageButtonGap",!0),o.get("itemGap",!0));if(B){var te=o.get("pageButtonPosition",!0);te==="end"?Z[h]+=l[v]-F[v]:Y[h]+=F[v]+X}Z[1-h]+=z[x]/2-F[x]/2,C.setPosition(W),M.setPosition(Y),V.setPosition(Z);var oe={x:0,y:0};if(oe[v]=B?l[v]:z[v],oe[x]=Math.max(z[x],F[x]),oe[T]=Math.min(0,F[T]+Z[1-h]),M.__rectSize=l[v],B){var ae={x:0,y:0};ae[v]=Math.max(l[v]-F[v]-X,0),ae[x]=oe[x],M.setClipPath(new Rect$2({shape:ae})),M.__rectSize=ae[v]}else V.eachChild(function(he){he.attr({invisible:!0,silent:!0})});var le=this._getPageInfo(o);return le.pageIndex!=null&&updateProps$1(C,{x:le.contentPosition[0],y:le.contentPosition[1]},B?o:null),this._updatePageInfoView(o,le),oe},t.prototype._pageGo=function(o,s,l){var h=this._getPageInfo(s)[o];h!=null&&l.dispatchAction({type:"legendScroll",scrollDataIndex:h,legendId:s.id})},t.prototype._updatePageInfoView=function(o,s){var l=this._controllerGroup;each$c(["pagePrev","pageNext"],function(C){var M=C+"DataIndex",V=s[M]!=null,z=l.childOfName(C);z&&(z.setStyle("fill",V?o.get("pageIconColor",!0):o.get("pageIconInactiveColor",!0)),z.cursor=V?"pointer":"default")});var h=l.childOfName("pageText"),v=o.get("pageFormatter"),x=s.pageIndex,T=x!=null?x+1:0,w=s.pageCount;h&&v&&h.setStyle("text",isString(v)?v.replace("{current}",T==null?"":T+"").replace("{total}",w==null?"":w+""):v({current:T,total:w}))},t.prototype._getPageInfo=function(o){var s=o.get("scrollDataIndex",!0),l=this.getContentGroup(),h=this._containerGroup.__rectSize,v=o.getOrient().index,x=WH[v],T=XY[v],w=this._findTargetItemIndex(s),C=l.children(),M=C[w],V=C.length,z=V?1:0,F={contentPosition:[l.x,l.y],pageCount:z,pageIndex:z-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!M)return F;var B=te(M);F.contentPosition[v]=-B.s;for(var W=w+1,Y=B,Z=B,X=null;W<=V;++W)X=te(C[W]),(!X&&Z.e>Y.s+h||X&&!oe(X,Y.s))&&(Z.i>Y.i?Y=Z:Y=X,Y&&(F.pageNextDataIndex==null&&(F.pageNextDataIndex=Y.i),++F.pageCount)),Z=X;for(var W=w-1,Y=B,Z=B,X=null;W>=-1;--W)X=te(C[W]),(!X||!oe(Z,X.s))&&Y.i<Z.i&&(Z=Y,F.pagePrevDataIndex==null&&(F.pagePrevDataIndex=Y.i),++F.pageCount,++F.pageIndex),Y=X;return F;function te(ae){if(ae){var le=ae.getBoundingRect(),he=le[T]+ae[T];return{s:he,e:he+le[x],i:ae.__legendDataIndex}}}function oe(ae,le){return ae.e>=le&&ae.s<=le+h}},t.prototype._findTargetItemIndex=function(o){if(!this._showController)return 0;var s,l=this.getContentGroup(),h;return l.eachChild(function(v,x){var T=v.__legendDataIndex;h==null&&T!=null&&(h=x),T===o&&(s=x)}),s??h},t.type="legend.scroll",t}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(r){r.registerAction("legendScroll","legendscroll",function(t,o){var s=t.scrollDataIndex;s!=null&&o.eachComponent({mainType:"legend",subType:"scroll",query:t},function(l){l.setScrollDataIndex(s)})})}function install$7(r){use$1(install$8),r.registerComponentModel(ScrollableLegendModel$1),r.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(r)}function install$6(r){use$1(install$8),use$1(install$7)}var InsideZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.inside",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord(r,t,o){inner(r).coordSysRecordMap.each(function(s){var l=s.dataZoomInfoMap.get(t.uid);l&&(l.getRange=o)})}function disposeCoordSysRecordIfNeeded(r,t){for(var o=inner(r).coordSysRecordMap,s=o.keys(),l=0;l<s.length;l++){var h=s[l],v=o.get(h),x=v.dataZoomInfoMap;if(x){var T=t.uid,w=x.get(T);w&&(x.removeKey(T),x.keys().length||disposeCoordSysRecord(o,v))}}}function disposeCoordSysRecord(r,t){if(t){r.removeKey(t.model.uid);var o=t.controller;o&&o.dispose()}}function createCoordSysRecord(r,t){var o={model:t,containsPoint:curry$1(containsPoint,t),dispatchAction:curry$1(dispatchAction,r),dataZoomInfoMap:null,controller:null},s=o.controller=new RoamController$1(r.getZr());return each$c(["pan","zoom","scrollMove"],function(l){s.on(l,function(h){var v=[];o.dataZoomInfoMap.each(function(x){if(h.isAvailableBehavior(x.model.option)){var T=(x.getRange||{})[l],w=T&&T(x.dzReferCoordSysInfo,o.model.mainType,o.controller,h);!x.model.get("disabled",!0)&&w&&v.push({dataZoomId:x.model.id,start:w[0],end:w[1]})}}),v.length&&o.dispatchAction(v)})}),o}function dispatchAction(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function containsPoint(r,t,o,s){return r.coordinateSystem.containPoint([o,s])}function mergeControllerParams(r){var t,o="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return r.each(function(h){var v=h.model,x=v.get("disabled",!0)?!1:v.get("zoomLock",!0)?"move":!0;s[o+x]>s[o+t]&&(t=x),l=l&&v.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}function installDataZoomRoamProcessor(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,o){var s=inner(o),l=s.coordSysRecordMap||(s.coordSysRecordMap=createHashMap());l.each(function(h){h.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(h){var v=collectReferCoordSysModelInfo(h);each$c(v.infoList,function(x){var T=x.model.uid,w=l.get(T)||l.set(T,createCoordSysRecord(o,x.model)),C=w.dataZoomInfoMap||(w.dataZoomInfoMap=createHashMap());C.set(h.uid,{dzReferCoordSysInfo:x,model:h,getRange:null})})}),l.each(function(h){var v=h.controller,x,T=h.dataZoomInfoMap;if(T){var w=T.keys()[0];w!=null&&(x=T.get(w))}if(!x){disposeCoordSysRecord(l,h);return}var C=mergeControllerParams(T);v.enable(C.controlType,C.opt),v.setPointerChecker(h.containsPoint),createOrUpdate(h,"dispatchAction",x.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="dataZoom.inside",o}return t.prototype.render=function(o,s,l){if(r.prototype.render.apply(this,arguments),o.noTarget()){this._clear();return}this.range=o.getPercentRange(),setViewInfoToCoordSysRecord(l,o,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DataZoomView$1),getRangeHandlers={zoom:function(r,t,o,s){var l=this.range,h=l.slice(),v=r.axisModels[0];if(v){var x=getDirectionInfo[t](null,[s.originX,s.originY],v,o,r),T=(x.signal>0?x.pixelStart+x.pixelLength-x.pixel:x.pixel-x.pixelStart)/x.pixelLength*(h[1]-h[0])+h[0],w=Math.max(1/s.scale,0);h[0]=(h[0]-T)*w+T,h[1]=(h[1]-T)*w+T;var C=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,h,[0,100],0,C.minSpan,C.maxSpan),this.range=h,l[0]!==h[0]||l[1]!==h[1])return h}},pan:makeMover(function(r,t,o,s,l,h){var v=getDirectionInfo[s]([h.oldX,h.oldY],[h.newX,h.newY],t,l,o);return v.signal*(r[1]-r[0])*v.pixel/v.pixelLength}),scrollMove:makeMover(function(r,t,o,s,l,h){var v=getDirectionInfo[s]([0,0],[h.scrollDelta,h.scrollDelta],t,l,o);return v.signal*(r[1]-r[0])*h.scrollDelta})};function makeMover(r){return function(t,o,s,l){var h=this.range,v=h.slice(),x=t.axisModels[0];if(x){var T=r(v,x,t,o,s,l);if(sliderMove(T,v,[0,100],"all"),this.range=v,h[0]!==v[0]||h[1]!==v[1])return v}}}var getDirectionInfo={grid:function(r,t,o,s,l){var h=o.axis,v={},x=l.model.coordinateSystem.getRect();return r=r||[0,0],h.dim==="x"?(v.pixel=t[0]-r[0],v.pixelLength=x.width,v.pixelStart=x.x,v.signal=h.inverse?1:-1):(v.pixel=t[1]-r[1],v.pixelLength=x.height,v.pixelStart=x.y,v.signal=h.inverse?-1:1),v},polar:function(r,t,o,s,l){var h=o.axis,v={},x=l.model.coordinateSystem,T=x.getRadiusAxis().getExtent(),w=x.getAngleAxis().getExtent();return r=r?x.pointToCoord(r):[0,0],t=x.pointToCoord(t),o.mainType==="radiusAxis"?(v.pixel=t[0]-r[0],v.pixelLength=T[1]-T[0],v.pixelStart=T[0],v.signal=h.inverse?1:-1):(v.pixel=t[1]-r[1],v.pixelLength=w[1]-w[0],v.pixelStart=w[0],v.signal=h.inverse?-1:1),v},singleAxis:function(r,t,o,s,l){var h=o.axis,v=l.model.coordinateSystem.getRect(),x={};return r=r||[0,0],h.orient==="horizontal"?(x.pixel=t[0]-r[0],x.pixelLength=v.width,x.pixelStart=v.x,x.signal=h.inverse?1:-1):(x.pixel=t[1]-r[1],x.pixelLength=v.height,x.pixelStart=v.y,x.signal=h.inverse?-1:1),x}};const InsideZoomView$1=InsideZoomView;function install$5(r){installCommon$1(r),r.registerComponentModel(InsideZoomModel$1),r.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(r)}var SliderZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._displayables={},o}return t.prototype.init=function(o,s){this.api=s,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},t.prototype.render=function(o,s,l,h){if(r.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",o.get("throttle"),"fixRate"),this._orient=o.getOrient(),o.get("show")===!1){this.group.removeAll();return}if(o.noTarget()){this._clear(),this.group.removeAll();return}(!h||h.type!=="dataZoom"||h.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var o=this.api.getZr();o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var o=this.group;o.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),o.add(s),this._positionGroup()},t.prototype._resetLocation=function(){var o=this.dataZoomModel,s=this.api,l=o.get("brushSelect"),h=l?DEFAULT_MOVE_HANDLE_SIZE:0,v=this._findCoordRect(),x={width:s.getWidth(),height:s.getHeight()},T=this._orient===HORIZONTAL?{right:x.width-v.x-v.width,top:x.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-h,width:v.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:v.y,width:DEFAULT_FILLER_SIZE,height:v.height},w=getLayoutParams(o.option);each$c(["right","top","width","height"],function(M){w[M]==="ph"&&(w[M]=T[M])});var C=getLayoutRect(w,x);this._location={x:C.x,y:C.y},this._size=[C.width,C.height],this._orient===VERTICAL&&this._size.reverse()},t.prototype._positionGroup=function(){var o=this.group,s=this._location,l=this._orient,h=this.dataZoomModel.getFirstTargetAxisModel(),v=h&&h.get("inverse"),x=this._displayables.sliderGroup,T=(this._dataShadowInfo||{}).otherAxisInverse;x.attr(l===HORIZONTAL&&!v?{scaleY:T?1:-1,scaleX:1}:l===HORIZONTAL&&v?{scaleY:T?1:-1,scaleX:-1}:l===VERTICAL&&!v?{scaleY:T?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:T?-1:1,scaleX:-1,rotation:Math.PI/2});var w=o.getBoundingRect([x]);o.x=s.x-w.x,o.y=s.y-w.y,o.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var o=this.dataZoomModel,s=this._size,l=this._displayables.sliderGroup,h=o.get("brushSelect");l.add(new Rect({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:o.get("backgroundColor")},z2:-40}));var v=new Rect({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),x=this.api.getZr();h?(v.on("mousedown",this._onBrushStart,this),v.cursor="crosshair",x.on("mousemove",this._onBrush),x.on("mouseup",this._onBrushEnd)):(x.off("mousemove",this._onBrush),x.off("mouseup",this._onBrushEnd)),l.add(v)},t.prototype._renderDataShadow=function(){var o=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!o)return;var s=this._size,l=this._shadowSize||[],h=o.series,v=h.getRawData(),x=h.getShadowDim&&h.getShadowDim(),T=x&&v.getDimensionInfo(x)?h.getShadowDim():o.otherDim;if(T==null)return;var w=this._shadowPolygonPts,C=this._shadowPolylinePts;if(v!==this._shadowData||T!==this._shadowDim||s[0]!==l[0]||s[1]!==l[1]){var M=v.getDataExtent(T),V=(M[1]-M[0])*.3;M=[M[0]-V,M[1]+V];var z=[0,s[1]],F=[0,s[0]],B=[[s[0],0],[0,0]],W=[],Y=F[1]/(v.count()-1),Z=0,X=Math.round(v.count()/s[0]),te;v.each([T],function(me,_e){if(X>0&&_e%X){Z+=Y;return}var ye=me==null||isNaN(me)||me==="",Se=ye?0:linearMap$2(me,M,z,!0);ye&&!te&&_e?(B.push([B[B.length-1][0],0]),W.push([W[W.length-1][0],0])):!ye&&te&&(B.push([Z,0]),W.push([Z,0])),B.push([Z,Se]),W.push([Z,Se]),Z+=Y,te=ye}),w=this._shadowPolygonPts=B,C=this._shadowPolylinePts=W}this._shadowData=v,this._shadowDim=T,this._shadowSize=[s[0],s[1]];var oe=this.dataZoomModel;function ae(me){var _e=oe.getModel(me?"selectedDataBackground":"dataBackground"),ye=new Group$3,Se=new Polygon$1({shape:{points:w},segmentIgnoreThreshold:1,style:_e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Te=new Polyline$1({shape:{points:C},segmentIgnoreThreshold:1,style:_e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return ye.add(Se),ye.add(Te),ye}for(var le=0;le<3;le++){var he=ae(le===1);this._displayables.sliderGroup.add(he),this._displayables.dataShadowSegs.push(he)}},t.prototype._prepareDataShadowInfo=function(){var o=this.dataZoomModel,s=o.get("showDataShadow");if(s!==!1){var l,h=this.ecModel;return o.eachTargetAxis(function(v,x){var T=o.getAxisProxy(v,x).getTargetSeriesModels();each$c(T,function(w){if(!l&&!(s!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,w.get("type"))<0)){var C=h.getComponent(getAxisMainType(v),x).axis,M=getOtherDim(v),V,z=w.coordinateSystem;M!=null&&z.getOtherAxis&&(V=z.getOtherAxis(C).inverse),M=w.getData().mapDimension(M),l={thisAxis:C,series:w,thisDim:v,otherDim:M,otherAxisInverse:V}}},this)},this),l}},t.prototype._renderHandle=function(){var o=this.group,s=this._displayables,l=s.handles=[null,null],h=s.handleLabels=[null,null],v=this._displayables.sliderGroup,x=this._size,T=this.dataZoomModel,w=this.api,C=T.get("borderRadius")||0,M=T.get("brushSelect"),V=s.filler=new Rect({silent:M,style:{fill:T.get("fillerColor")},textConfig:{position:"inside"}});v.add(V),v.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:x[0],height:x[1],r:C},style:{stroke:T.get("dataBackgroundColor")||T.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(X){var te=T.get("handleIcon");!symbolBuildProxies[te]&&te.indexOf("path://")<0&&te.indexOf("image://")<0&&(te="path://"+te);var oe=createSymbol(te,-1,0,2,2,null,!0);oe.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,X),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var ae=oe.getBoundingRect(),le=T.get("handleSize");this._handleHeight=parsePercent(le,this._size[1]),this._handleWidth=ae.width/ae.height*this._handleHeight,oe.setStyle(T.getModel("handleStyle").getItemStyle()),oe.style.strokeNoScale=!0,oe.rectHover=!0,oe.ensureState("emphasis").style=T.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(oe);var he=T.get("handleColor");he!=null&&(oe.style.fill=he),v.add(l[X]=oe);var me=T.getModel("textStyle");o.add(h[X]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(me,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:me.getTextColor(),font:me.getFont()}),z2:10}))},this);var z=V;if(M){var F=parsePercent(T.get("moveHandleSize"),x[1]),B=s.moveHandle=new Rect$2({style:T.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:x[1]-.5,height:F}}),W=F*.8,Y=s.moveHandleIcon=createSymbol(T.get("moveHandleIcon"),-W/2,-W/2,W,W,"#fff",!0);Y.silent=!0,Y.y=x[1]+F/2-.5,B.ensureState("emphasis").style=T.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var Z=Math.min(x[1]/2,Math.max(F,10));z=s.moveZone=new Rect$2({invisible:!0,shape:{y:x[1]-Z,height:F+Z}}),z.on("mouseover",function(){w.enterEmphasis(B)}).on("mouseout",function(){w.leaveEmphasis(B)}),v.add(B),v.add(Y),v.add(z)}z.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var o=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[linearMap$2(o[0],[0,100],s,!0),linearMap$2(o[1],[0,100],s,!0)]},t.prototype._updateInterval=function(o,s){var l=this.dataZoomModel,h=this._handleEnds,v=this._getViewExtent(),x=l.findRepresentativeAxisProxy().getMinMaxSpan(),T=[0,100];sliderMove(s,h,v,l.get("zoomLock")?"all":o,x.minSpan!=null?linearMap$2(x.minSpan,T,v,!0):null,x.maxSpan!=null?linearMap$2(x.maxSpan,T,v,!0):null);var w=this._range,C=this._range=asc$2([linearMap$2(h[0],v,T,!0),linearMap$2(h[1],v,T,!0)]);return!w||w[0]!==C[0]||w[1]!==C[1]},t.prototype._updateView=function(o){var s=this._displayables,l=this._handleEnds,h=asc$2(l.slice()),v=this._size;each$c([0,1],function(z){var F=s.handles[z],B=this._handleHeight;F.attr({scaleX:B/2,scaleY:B/2,x:l[z]+(z?-1:1),y:v[1]/2-B/2})},this),s.filler.setShape({x:h[0],y:0,width:h[1]-h[0],height:v[1]});var x={x:h[0],width:h[1]-h[0]};s.moveHandle&&(s.moveHandle.setShape(x),s.moveZone.setShape(x),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",x.x+x.width/2));for(var T=s.dataShadowSegs,w=[0,h[0],h[1],v[0]],C=0;C<T.length;C++){var M=T[C],V=M.getClipPath();V||(V=new Rect$2,M.setClipPath(V)),V.setShape({x:w[C],y:0,width:w[C+1]-w[C],height:v[1]})}this._updateDataInfo(o)},t.prototype._updateDataInfo=function(o){var s=this.dataZoomModel,l=this._displayables,h=l.handleLabels,v=this._orient,x=["",""];if(s.get("showDetail")){var T=s.findRepresentativeAxisProxy();if(T){var w=T.getAxisModel().axis,C=this._range,M=o?T.calculateDataWindow({start:C[0],end:C[1]}).valueWindow:T.getDataValueWindow();x=[this._formatLabel(M[0],w),this._formatLabel(M[1],w)]}}var V=asc$2(this._handleEnds.slice());z.call(this,0),z.call(this,1);function z(F){var B=getTransform$1(l.handles[F].parent,this.group),W=transformDirection(F===0?"right":"left",B),Y=this._handleWidth/2+LABEL_GAP,Z=applyTransform([V[F]+(F===0?-Y:Y),this._size[1]/2],B);h[F].setStyle({x:Z[0],y:Z[1],verticalAlign:v===HORIZONTAL?"middle":W,align:v===HORIZONTAL?W:"center",text:x[F]})}},t.prototype._formatLabel=function(o,s){var l=this.dataZoomModel,h=l.get("labelFormatter"),v=l.get("labelPrecision");(v==null||v==="auto")&&(v=s.getPixelPrecision());var x=o==null||isNaN(o)?"":s.type==="category"||s.type==="time"?s.scale.getLabel({value:Math.round(o)}):o.toFixed(Math.min(v,20));return isFunction(h)?h(o,x):isString(h)?h.replace("{value}",x):x},t.prototype._showDataInfo=function(o){o=this._dragging||o;var s=this._displayables,l=s.handleLabels;l[0].attr("invisible",!o),l[1].attr("invisible",!o),s.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](s.moveHandle,1)},t.prototype._onDragMove=function(o,s,l,h){this._dragging=!0,stop(h.event);var v=this._displayables.sliderGroup.getLocalTransform(),x=applyTransform([s,l],v,!0),T=this._updateInterval(o,x[0]),w=this.dataZoomModel.get("realtime");this._updateView(!w),T&&w&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var o=this.dataZoomModel.get("realtime");!o&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(o){var s=this._size,l=this._displayables.sliderGroup.transformCoordToLocal(o.offsetX,o.offsetY);if(!(l[0]<0||l[0]>s[0]||l[1]<0||l[1]>s[1])){var h=this._handleEnds,v=(h[0]+h[1])/2,x=this._updateInterval("all",l[0]-v);this._updateView(),x&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(o){var s=o.offsetX,l=o.offsetY;this._brushStart=new Point$1(s,l),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(o){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,!!s){s.attr("ignore",!0);var l=s.shape,h=+new Date;if(!(h-this._brushStartTime<200&&Math.abs(l.width)<5)){var v=this._getViewExtent(),x=[0,100];this._range=asc$2([linearMap$2(l.x,v,x,!0),linearMap$2(l.x+l.width,v,x,!0)]),this._handleEnds=[l.x,l.x+l.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(o){this._brushing&&(stop(o.event),this._updateBrushRect(o.offsetX,o.offsetY))},t.prototype._updateBrushRect=function(o,s){var l=this._displayables,h=this.dataZoomModel,v=l.brushRect;v||(v=l.brushRect=new Rect({silent:!0,style:h.getModel("brushStyle").getItemStyle()}),l.sliderGroup.add(v)),v.attr("ignore",!1);var x=this._brushStart,T=this._displayables.sliderGroup,w=T.transformCoordToLocal(o,s),C=T.transformCoordToLocal(x.x,x.y),M=this._size;w[0]=Math.max(Math.min(M[0],w[0]),0),v.setShape({x:C[0],y:0,width:w[0]-C[0],height:M[1]})},t.prototype._dispatchZoomAction=function(o){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:o?REALTIME_ANIMATION_CONFIG:null,start:s[0],end:s[1]})},t.prototype._findCoordRect=function(){var o,s=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!o&&s.length){var l=s[0].model.coordinateSystem;o=l.getRect&&l.getRect()}if(!o){var h=this.api.getWidth(),v=this.api.getHeight();o={x:h*.2,y:v*.2,width:h*.6,height:v*.6}}return o},t.type="dataZoom.slider",t}(DataZoomView$1);function getOtherDim(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function getCursor$1(r){return r==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4(r){r.registerComponentModel(SliderZoomModel$1),r.registerComponentView(SliderZoomView$1),installCommon$1(r)}function install$3(r){use$1(install$5),use$1(install$4)}var visualDefault={get:function(r,t,o){var s=clone$3((defaultOption[r]||{})[t]);return o&&isArray$1(s)?s[s.length-1]:s}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.stateList=["inRange","outOfRange"],o.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],o.layoutMode={type:"box",ignoreSize:!0},o.dataBound=[-1/0,1/0],o.targetVisuals={},o.controllerVisuals={},o}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l)},t.prototype.optionUpdated=function(o,s){var l=this.option;!s&&replaceVisualOption(l,o,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(o){var s=this.stateList;o=bind$1(o,this),this.controllerVisuals=createVisualMappings(this.option.controller,s,o),this.targetVisuals=createVisualMappings(this.option.target,s,o)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var o=this.option.seriesIndex,s=[];return o==null||o==="all"?this.ecModel.eachSeries(function(l,h){s.push(h)}):s=normalizeToArray(o),s},t.prototype.eachTargetSeries=function(o,s){each$c(this.getTargetSeriesIndices(),function(l){var h=this.ecModel.getSeriesByIndex(l);h&&o.call(s,h)},this)},t.prototype.isTargetSeries=function(o){var s=!1;return this.eachTargetSeries(function(l){l===o&&(s=!0)}),s},t.prototype.formatValueText=function(o,s,l){var h=this.option,v=h.precision,x=this.dataBound,T=h.formatter,w;l=l||["<",">"],isArray$1(o)&&(o=o.slice(),w=!0);var C=s?o:w?[M(o[0]),M(o[1])]:M(o);if(isString(T))return T.replace("{value}",w?C[0]:C).replace("{value2}",w?C[1]:C);if(isFunction(T))return w?T(o[0],o[1]):T(o);if(w)return o[0]===x[0]?l[0]+" "+C[1]:o[1]===x[1]?l[1]+" "+C[0]:C[0]+" - "+C[1];return C;function M(V){return V===x[0]?"min":V===x[1]?"max":(+V).toFixed(Math.min(v,20))}},t.prototype.resetExtent=function(){var o=this.option,s=asc([o.min,o.max]);this._dataExtent=s},t.prototype.getDataDimensionIndex=function(o){var s=this.option.dimension;if(s!=null)return o.getDimensionIndex(s);for(var l=o.dimensions,h=l.length-1;h>=0;h--){var v=l[h],x=o.getDimensionInfo(v);if(!x.isCalculationCoord)return x.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var o=this.ecModel,s=this.option,l={inRange:s.inRange,outOfRange:s.outOfRange},h=s.target||(s.target={}),v=s.controller||(s.controller={});merge(h,l),merge(v,l);var x=this.isCategory();T.call(this,h),T.call(this,v),w.call(this,h,"inRange","outOfRange"),C.call(this,v);function T(M){isArray(s.color)&&!M.inRange&&(M.inRange={color:s.color.slice().reverse()}),M.inRange=M.inRange||{color:o.get("gradientColor")}}function w(M,V,z){var F=M[V],B=M[z];F&&!B&&(B=M[z]={},each$2(F,function(W,Y){if(VisualMapping$1.isValidType(Y)){var Z=visualDefault$1.get(Y,"inactive",x);Z!=null&&(B[Y]=Z,Y==="color"&&!B.hasOwnProperty("opacity")&&!B.hasOwnProperty("colorAlpha")&&(B.opacity=[0,0]))}}))}function C(M){var V=(M.inRange||{}).symbol||(M.outOfRange||{}).symbol,z=(M.inRange||{}).symbolSize||(M.outOfRange||{}).symbolSize,F=this.get("inactiveColor"),B=this.getItemSymbol(),W=B||"roundRect";each$2(this.stateList,function(Y){var Z=this.itemSize,X=M[Y];X||(X=M[Y]={color:x?F:[F]}),X.symbol==null&&(X.symbol=V&&clone$3(V)||(x?W:[W])),X.symbolSize==null&&(X.symbolSize=z&&clone$3(z)||(x?Z[0]:[Z[0],Z[0]])),X.symbol=mapVisual(X.symbol,function(ae){return ae==="none"?W:ae});var te=X.symbolSize;if(te!=null){var oe=-1/0;eachVisual(te,function(ae){ae>oe&&(oe=ae)}),X.symbolSize=mapVisual(te,function(ae){return linearMap$1(ae,[0,oe],[0,Z[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(o){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(o){return null},t.prototype.getVisualMeta=function(o){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.optionUpdated=function(o,s){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(l){l.mappingMethod="linear",l.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var o=this.itemSize;(o[0]==null||isNaN(o[0]))&&(o[0]=DEFAULT_BAR_BOUND[0]),(o[1]==null||isNaN(o[1]))&&(o[1]=DEFAULT_BAR_BOUND[1])},t.prototype._resetRange=function(){var o=this.getExtent(),s=this.option.range;!s||s.auto?(o.auto=1,this.option.range=o):isArray$1(s)&&(s[0]>s[1]&&s.reverse(),s[0]=Math.max(s[0],o[0]),s[1]=Math.min(s[1],o[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(o){var s=this.option.controller[o].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},t.prototype.setSelected=function(o){this.option.range=o.slice(),this._resetRange()},t.prototype.getSelected=function(){var o=this.getExtent(),s=asc$2((this.get("range")||[]).slice());return s[0]>o[1]&&(s[0]=o[1]),s[1]>o[1]&&(s[1]=o[1]),s[0]<o[0]&&(s[0]=o[0]),s[1]<o[0]&&(s[1]=o[0]),s},t.prototype.getValueState=function(o){var s=this.option.range,l=this.getExtent();return(s[0]<=l[0]||s[0]<=o)&&(s[1]>=l[1]||o<=s[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(o){var s=[];return this.eachTargetSeries(function(l){var h=[],v=l.getData();v.each(this.getDataDimensionIndex(v),function(x,T){o[0]<=x&&x<=o[1]&&h.push(T)},this),s.push({seriesId:l.id,dataIndex:h})},this),s},t.prototype.getVisualMeta=function(o){var s=getColorStopValues(this,"outOfRange",this.getExtent()),l=getColorStopValues(this,"inRange",this.option.range.slice()),h=[];function v(z,F){h.push({value:z,color:o(z,F)})}for(var x=0,T=0,w=l.length,C=s.length;T<C&&(!l.length||s[T]<=l[0]);T++)s[T]<l[x]&&v(s[T],"outOfRange");for(var M=1;x<w;x++,M=0)M&&h.length&&v(l[x],"outOfRange"),v(l[x],"inRange");for(var M=1;T<C;T++)(!l.length||l[l.length-1]<s[T])&&(M&&(h.length&&v(h[h.length-1].value,"outOfRange"),M=0),v(s[T],"outOfRange"));var V=h.length;return{stops:h,outerColors:[V?h[0].color:"transparent",V?h[V-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(VisualMapModel$1);function getColorStopValues(r,t,o){if(o[0]===o[1])return o.slice();for(var s=200,l=(o[1]-o[0])/s,h=o[0],v=[],x=0;x<=s&&h<o[1];x++)v.push(h),h+=l;return v.push(o[1]),v}const ContinuousModel$1=ContinuousModel;var VisualMapView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.autoPositionValues={left:1,right:1,top:1,bottom:1},o}return t.prototype.init=function(o,s){this.ecModel=o,this.api=s},t.prototype.render=function(o,s,l,h){if(this.visualMapModel=o,o.get("show")===!1){this.group.removeAll();return}this.doRender(o,s,l,h)},t.prototype.renderBackground=function(o){var s=this.visualMapModel,l=normalizeCssArray(s.get("padding")||0),h=o.getBoundingRect();o.add(new Rect$2({z2:-1,silent:!0,shape:{x:h.x-l[3],y:h.y-l[0],width:h.width+l[3]+l[1],height:h.height+l[0]+l[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},t.prototype.getControllerVisual=function(o,s,l){l=l||{};var h=l.forceState,v=this.visualMapModel,x={};if(s==="color"){var T=v.get("contentColor");x.color=T}function w(z){return x[z]}function C(z,F){x[z]=F}var M=v.controllerVisuals[h||v.getValueState(o)],V=VisualMapping$1.prepareVisualTypes(M);return each$c(V,function(z){var F=M[z];l.convertOpacityToAlpha&&z==="opacity"&&(z="colorAlpha",F=M.__alphaForOpacity),VisualMapping$1.dependsOn(z,s)&&F&&F.applyVisual(o,w,C)}),x[s]},t.prototype.positionGroup=function(o){var s=this.visualMapModel,l=this.api;positionElement(o,s.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})},t.prototype.doRender=function(o,s,l,h){},t.type="visualMap",t}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(r,t,o){var s=r.option,l=s.align;if(l!=null&&l!=="auto")return l;for(var h={width:t.getWidth(),height:t.getHeight()},v=s.orient==="horizontal"?1:0,x=paramsSet[v],T=[0,null,10],w={},C=0;C<3;C++)w[paramsSet[1-v][C]]=T[C],w[x[C]]=C===2?o[0]:s[x[C]];var M=[["x","width",3],["y","height",0]][v],V=getLayoutRect(w,h,s.padding);return x[(V.margin[M[2]]||0)+V[M[0]]+V[M[1]]*.5<h[M[1]]*.5?0:1]}function makeHighDownBatch(r,t){return each$c(r||[],function(o){o.dataIndex!=null&&(o.dataIndexInside=o.dataIndex,o.dataIndex=null),o.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._shapes={},o._dataInterval=[],o._handleEnds=[],o._hoverLinkDataIndices=[],o}return t.prototype.doRender=function(o,s,l,h){this._api=l,(!h||h.type!=="selectDataRange"||h.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var o=this.visualMapModel,s=this.group;this._orient=o.get("orient"),this._useHandle=o.get("calculable"),this._resetInterval(),this._renderBar(s);var l=o.get("text");this._renderEndsText(s,l,0),this._renderEndsText(s,l,1),this._updateView(!0),this.renderBackground(s),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(s)},t.prototype._renderEndsText=function(o,s,l){if(s){var h=s[1-l];h=h!=null?h+"":"";var v=this.visualMapModel,x=v.get("textGap"),T=v.itemSize,w=this._shapes.mainGroup,C=this._applyTransform([T[0]/2,l===0?-x:T[1]+x],w),M=this._applyTransform(l===0?"bottom":"top",w),V=this._orient,z=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(z,{x:C[0],y:C[1],verticalAlign:V==="horizontal"?"middle":M,align:V==="horizontal"?M:"center",text:h})}))}},t.prototype._renderBar=function(o){var s=this.visualMapModel,l=this._shapes,h=s.itemSize,v=this._orient,x=this._useHandle,T=getItemAlign(s,this.api,h),w=l.mainGroup=this._createBarGroup(T),C=new Group$3;w.add(C),C.add(l.outOfRange=createPolygon()),C.add(l.inRange=createPolygon(null,x?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),C.setClipPath(new Rect$2({shape:{x:0,y:0,width:h[0],height:h[1],r:3}}));var M=s.textStyleModel.getTextRect("国"),V=mathMax(M.width,M.height);x&&(l.handleThumbs=[],l.handleLabels=[],l.handleLabelPoints=[],this._createHandle(s,w,0,h,V,v),this._createHandle(s,w,1,h,V,v)),this._createIndicator(s,w,h,V,v),o.add(w)},t.prototype._createHandle=function(o,s,l,h,v,x){var T=bind$1(this._dragHandle,this,l,!1),w=bind$1(this._dragHandle,this,l,!0),C=parsePercent$1(o.get("handleSize"),h[0]),M=createSymbol(o.get("handleIcon"),-C/2,-C/2,C,C,null,!0),V=getCursor(this._orient);M.attr({cursor:V,draggable:!0,drift:T,ondragend:w,onmousemove:function(Y){stop(Y.event)}}),M.x=h[0]/2,M.useStyle(o.getModel("handleStyle").getItemStyle()),M.setStyle({strokeNoScale:!0,strokeFirst:!0}),M.style.lineWidth*=2,M.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(M,!0),s.add(M);var z=this.visualMapModel.textStyleModel,F=new ZRText$1({cursor:V,draggable:!0,drift:T,onmousemove:function(Y){stop(Y.event)},ondragend:w,style:createTextStyle$1(z,{x:0,y:0,text:""})});F.ensureState("blur").style={opacity:.1},F.stateTransition={duration:200},this.group.add(F);var B=[C,0],W=this._shapes;W.handleThumbs[l]=M,W.handleLabelPoints[l]=B,W.handleLabels[l]=F},t.prototype._createIndicator=function(o,s,l,h,v){var x=parsePercent$1(o.get("indicatorSize"),l[0]),T=createSymbol(o.get("indicatorIcon"),-x/2,-x/2,x,x,null,!0);T.attr({cursor:"move",invisible:!0,silent:!0,x:l[0]/2});var w=o.getModel("indicatorStyle").getItemStyle();if(T instanceof ZRImage$1){var C=T.style;T.useStyle(extend({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else T.useStyle(w);s.add(T);var M=this.visualMapModel.textStyleModel,V=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(M,{x:0,y:0,text:""})});this.group.add(V);var z=[(v==="horizontal"?h/2:HOVER_LINK_OUT)+l[0]/2,0],F=this._shapes;F.indicator=T,F.indicatorLabel=V,F.indicatorLabelPoint=z,this._firstShowIndicator=!0},t.prototype._dragHandle=function(o,s,l,h){if(this._useHandle){if(this._dragging=!s,!s){var v=this._applyTransform([l,h],this._shapes.mainGroup,!0);this._updateInterval(o,v[1]),this._hideIndicator(),this._updateView()}s===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),s?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[o],!1)}},t.prototype._resetInterval=function(){var o=this.visualMapModel,s=this._dataInterval=o.getSelected(),l=o.getExtent(),h=[0,o.itemSize[1]];this._handleEnds=[linearMap(s[0],l,h,!0),linearMap(s[1],l,h,!0)]},t.prototype._updateInterval=function(o,s){s=s||0;var l=this.visualMapModel,h=this._handleEnds,v=[0,l.itemSize[1]];sliderMove(s,h,v,o,0);var x=l.getExtent();this._dataInterval=[linearMap(h[0],v,x,!0),linearMap(h[1],v,x,!0)]},t.prototype._updateView=function(o){var s=this.visualMapModel,l=s.getExtent(),h=this._shapes,v=[0,s.itemSize[1]],x=o?v:this._handleEnds,T=this._createBarVisual(this._dataInterval,l,x,"inRange"),w=this._createBarVisual(l,l,v,"outOfRange");h.inRange.setStyle({fill:T.barColor}).setShape("points",T.barPoints),h.outOfRange.setStyle({fill:w.barColor}).setShape("points",w.barPoints),this._updateHandle(x,T)},t.prototype._createBarVisual=function(o,s,l,h){var v={forceState:h,convertOpacityToAlpha:!0},x=this._makeColorGradient(o,v),T=[this.getControllerVisual(o[0],"symbolSize",v),this.getControllerVisual(o[1],"symbolSize",v)],w=this._createBarPoints(l,T);return{barColor:new LinearGradient$1(0,0,0,1,x),barPoints:w,handlesColor:[x[0].color,x[x.length-1].color]}},t.prototype._makeColorGradient=function(o,s){var l=100,h=[],v=(o[1]-o[0])/l;h.push({color:this.getControllerVisual(o[0],"color",s),offset:0});for(var x=1;x<l;x++){var T=o[0]+v*x;if(T>o[1])break;h.push({color:this.getControllerVisual(T,"color",s),offset:x/l})}return h.push({color:this.getControllerVisual(o[1],"color",s),offset:1}),h},t.prototype._createBarPoints=function(o,s){var l=this.visualMapModel.itemSize;return[[l[0]-s[0],o[0]],[l[0],o[0]],[l[0],o[1]],[l[0]-s[1],o[1]]]},t.prototype._createBarGroup=function(o){var s=this._orient,l=this.visualMapModel.get("inverse");return new Group$3(s==="horizontal"&&!l?{scaleX:o==="bottom"?1:-1,rotation:Math.PI/2}:s==="horizontal"&&l?{scaleX:o==="bottom"?-1:1,rotation:-Math.PI/2}:s==="vertical"&&!l?{scaleX:o==="left"?1:-1,scaleY:-1}:{scaleX:o==="left"?1:-1})},t.prototype._updateHandle=function(o,s){if(this._useHandle){var l=this._shapes,h=this.visualMapModel,v=l.handleThumbs,x=l.handleLabels,T=h.itemSize,w=h.getExtent();each$1([0,1],function(C){var M=v[C];M.setStyle("fill",s.handlesColor[C]),M.y=o[C];var V=linearMap(o[C],[0,T[1]],w,!0),z=this.getControllerVisual(V,"symbolSize");M.scaleX=M.scaleY=z/T[0],M.x=T[0]-z/2;var F=applyTransform(l.handleLabelPoints[C],getTransform$1(M,this.group));x[C].setStyle({x:F[0],y:F[1],text:h.formatValueText(this._dataInterval[C]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",l.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(o,s,l,h){var v=this.visualMapModel,x=v.getExtent(),T=v.itemSize,w=[0,T[1]],C=this._shapes,M=C.indicator;if(M){M.attr("invisible",!1);var V={convertOpacityToAlpha:!0},z=this.getControllerVisual(o,"color",V),F=this.getControllerVisual(o,"symbolSize"),B=linearMap(o,x,w,!0),W=T[0]-F/2,Y={x:M.x,y:M.y};M.y=B,M.x=W;var Z=applyTransform(C.indicatorLabelPoint,getTransform$1(M,this.group)),X=C.indicatorLabel;X.attr("invisible",!1);var te=this._applyTransform("left",C.mainGroup),oe=this._orient,ae=oe==="horizontal";X.setStyle({text:(l||"")+v.formatValueText(s),verticalAlign:ae?te:"middle",align:ae?"center":te});var le={x:W,y:B,style:{fill:z}},he={style:{x:Z[0],y:Z[1]}};if(v.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var me={duration:100,easing:"cubicInOut",additive:!0};M.x=Y.x,M.y=Y.y,M.animateTo(le,me),X.animateTo(he,me)}else M.attr(le),X.attr(he);this._firstShowIndicator=!1;var _e=this._shapes.handleLabels;if(_e)for(var ye=0;ye<_e.length;ye++)this._api.enterBlur(_e[ye])}},t.prototype._enableHoverLinkToSeries=function(){var o=this;this._shapes.mainGroup.on("mousemove",function(s){if(o._hovering=!0,!o._dragging){var l=o.visualMapModel.itemSize,h=o._applyTransform([s.offsetX,s.offsetY],o._shapes.mainGroup,!0,!0);h[1]=mathMin(mathMax(0,h[1]),l[1]),o._doHoverLinkToSeries(h[1],0<=h[0]&&h[0]<=l[0])}}).on("mouseout",function(){o._hovering=!1,!o._dragging&&o._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var o=this.api.getZr();this.visualMapModel.option.hoverLink?(o.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),o.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(o,s){var l=this.visualMapModel,h=l.itemSize;if(l.option.hoverLink){var v=[0,h[1]],x=l.getExtent();o=mathMin(mathMax(v[0],o),v[1]);var T=getHalfHoverLinkSize(l,x,v),w=[o-T,o+T],C=linearMap(o,v,x,!0),M=[linearMap(w[0],v,x,!0),linearMap(w[1],v,x,!0)];w[0]<v[0]&&(M[0]=-1/0),w[1]>v[1]&&(M[1]=1/0),s&&(M[0]===-1/0?this._showIndicator(C,M[1],"< ",T):M[1]===1/0?this._showIndicator(C,M[0],"> ",T):this._showIndicator(C,C,"≈ ",T));var V=this._hoverLinkDataIndices,z=[];(s||useHoverLinkOnHandle(l))&&(z=this._hoverLinkDataIndices=l.findTargetDataIndices(M));var F=compressBatches(V,z);this._dispatchHighDown("downplay",makeHighDownBatch(F[0],l)),this._dispatchHighDown("highlight",makeHighDownBatch(F[1],l))}},t.prototype._hoverLinkFromSeriesMouseOver=function(o){var s;if(findEventDispatcher(o.target,function(T){var w=getECData(T);if(w.dataIndex!=null)return s=w,!0},!0),!!s){var l=this.ecModel.getSeriesByIndex(s.seriesIndex),h=this.visualMapModel;if(h.isTargetSeries(l)){var v=l.getData(s.dataType),x=v.getStore().get(h.getDataDimensionIndex(v),s.dataIndex);isNaN(x)||this._showIndicator(x,x)}}},t.prototype._hideIndicator=function(){var o=this._shapes;o.indicator&&o.indicator.attr("invisible",!0),o.indicatorLabel&&o.indicatorLabel.attr("invisible",!0);var s=this._shapes.handleLabels;if(s)for(var l=0;l<s.length;l++)this._api.leaveBlur(s[l])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var o=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(o,this.visualMapModel)),o.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var o=this.api.getZr();o.off("mouseover",this._hoverLinkFromSeriesMouseOver),o.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(o,s,l,h){var v=getTransform$1(s,h?null:this.group);return isArray$1(o)?applyTransform(o,v,l):transformDirection(o,v,l)},t.prototype._dispatchHighDown=function(o,s){s&&s.length&&this.api.dispatchAction({type:o,batch:s})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(VisualMapView$1);function createPolygon(r,t,o,s){return new Polygon$1({shape:{points:r},draggable:!!o,cursor:t,drift:o,onmousemove:function(l){stop(l.event)},ondragend:s})}function getHalfHoverLinkSize(r,t,o){var s=HOVER_LINK_SIZE/2,l=r.get("hoverLinkDataSize");return l&&(s=linearMap(l,t,o,!0)/2),s}function useHoverLinkOnHandle(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function getCursor(r){return r==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(o){o.setSelected(r.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(r,t){var o=[];return t.eachComponent("visualMap",function(s){var l=r.pipelineContext;!s.isTargetSeries(r)||l&&l.large||o.push(incrementalApplyVisual(s.stateList,s.targetVisuals,bind$1(s.getValueState,s),s.getDataDimensionIndex(r.getData())))}),o}},{createOnAllSeries:!0,reset:function(r,t){var o=r.getData(),s=[];t.eachComponent("visualMap",function(l){if(l.isTargetSeries(r)){var h=l.getVisualMeta(bind$1(getColorVisual,null,r,l))||{stops:[],outerColors:[]},v=l.getDataDimensionIndex(o);v>=0&&(h.dimension=v,s.push(h))}}),r.getData().setVisual("visualMeta",s)}}];function getColorVisual(r,t,o,s){for(var l=t.targetVisuals[s],h=VisualMapping$1.prepareVisualTypes(l),v={color:getVisualFromData(r.getData(),"color")},x=0,T=h.length;x<T;x++){var w=h[x],C=l[w==="opacity"?"__alphaForOpacity":w];C&&C.applyVisual(o,M,V)}return v.color;function M(z){return v[z]}function V(z,F){v[z]=F}}var each=each$c;function visualMapPreprocessor(r){var t=r&&r.visualMap;isArray$1(t)||(t=t?[t]:[]),each(t,function(o){if(o){has(o,"splitList")&&!has(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var s=o.pieces;s&&isArray$1(s)&&each(s,function(l){isObject$3(l)&&(has(l,"start")&&!has(l,"min")&&(l.min=l.start),has(l,"end")&&!has(l,"max")&&(l.max=l.end))})}})}function has(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var installed=!1;function installCommon(r){installed||(installed=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(visualMapPreprocessor))}function install$2(r){r.registerComponentModel(ContinuousModel$1),r.registerComponentView(ContinuousView$1),installCommon(r)}var PiecewiseModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._pieceList=[],o}return t.prototype.optionUpdated=function(o,s){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var l=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(o,s);var h=this.option.categories;this.resetVisual(function(v,x){l==="categories"?(v.mappingMethod="category",v.categories=clone$3(h)):(v.dataExtent=this.getExtent(),v.mappingMethod="piecewise",v.pieceList=map$2(this._pieceList,function(T){return T=clone$3(T),x!=="inRange"&&(T.visual=null),T}))})},t.prototype.completeVisualOption=function(){var o=this.option,s={},l=VisualMapping$1.listVisualTypes(),h=this.isCategory();each$c(o.pieces,function(x){each$c(l,function(T){x.hasOwnProperty(T)&&(s[T]=1)})}),each$c(s,function(x,T){var w=!1;each$c(this.stateList,function(C){w=w||v(o,C,T)||v(o.target,C,T)},this),!w&&each$c(this.stateList,function(C){(o[C]||(o[C]={}))[T]=visualDefault$1.get(T,C==="inRange"?"active":"inactive",h)})},this);function v(x,T,w){return x&&x[T]&&x[T].hasOwnProperty(w)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(o,s){var l=this.option,h=this._pieceList,v=(s?l:o).selected||{};if(l.selected=v,each$c(h,function(T,w){var C=this.getSelectedMapKey(T);v.hasOwnProperty(C)||(v[C]=!0)},this),l.selectedMode==="single"){var x=!1;each$c(h,function(T,w){var C=this.getSelectedMapKey(T);v[C]&&(x?v[C]=!1:x=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(o){return this._mode==="categories"?o.value+"":o.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var o=this.option;return o.pieces&&o.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(o){this.option.selected=clone$3(o)},t.prototype.getValueState=function(o){var s=VisualMapping$1.findPieceIndex(o,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(o){var s=[],l=this._pieceList;return this.eachTargetSeries(function(h){var v=[],x=h.getData();x.each(this.getDataDimensionIndex(x),function(T,w){var C=VisualMapping$1.findPieceIndex(T,l);C===o&&v.push(w)},this),s.push({seriesId:h.id,dataIndex:v})},this),s},t.prototype.getRepresentValue=function(o){var s;if(this.isCategory())s=o.value;else if(o.value!=null)s=o.value;else{var l=o.interval||[];s=l[0]===-1/0&&l[1]===1/0?0:(l[0]+l[1])/2}return s},t.prototype.getVisualMeta=function(o){if(this.isCategory())return;var s=[],l=["",""],h=this;function v(C,M){var V=h.getRepresentValue({interval:C});M||(M=h.getValueState(V));var z=o(V,M);C[0]===-1/0?l[0]=z:C[1]===1/0?l[1]=z:s.push({value:C[0],color:z},{value:C[1],color:z})}var x=this._pieceList.slice();if(!x.length)x.push({interval:[-1/0,1/0]});else{var T=x[0].interval[0];T!==-1/0&&x.unshift({interval:[-1/0,T]}),T=x[x.length-1].interval[1],T!==1/0&&x.push({interval:[T,1/0]})}var w=-1/0;return each$c(x,function(C){var M=C.interval;M&&(M[0]>w&&v([w,M[0]],"outOfRange"),v(M.slice()),w=M[1])},this),{stops:s,outerColors:l}},t.type="visualMap.piecewise",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(VisualMapModel$1),resetMethods={splitNumber:function(r){var t=this.option,o=Math.min(t.precision,20),s=this.getExtent(),l=t.splitNumber;l=Math.max(parseInt(l,10),1),t.splitNumber=l;for(var h=(s[1]-s[0])/l;+h.toFixed(o)!==h&&o<5;)o++;t.precision=o,h=+h.toFixed(o),t.minOpen&&r.push({interval:[-1/0,s[0]],close:[0,0]});for(var v=0,x=s[0];v<l;x+=h,v++){var T=v===l-1?s[1]:x+h;r.push({interval:[x,T],close:[1,1]})}t.maxOpen&&r.push({interval:[s[1],1/0],close:[0,0]}),reformIntervals(r),each$c(r,function(w,C){w.index=C,w.text=this.formatValueText(w.interval)},this)},categories:function(r){var t=this.option;each$c(t.categories,function(o){r.push({text:this.formatValueText(o,!0),value:o})},this),normalizeReverse(t,r)},pieces:function(r){var t=this.option;each$c(t.pieces,function(o,s){isObject$3(o)||(o={value:o});var l={text:"",index:s};if(o.label!=null&&(l.text=o.label),o.hasOwnProperty("value")){var h=l.value=o.value;l.interval=[h,h],l.close=[1,1]}else{for(var v=l.interval=[],x=l.close=[0,0],T=[1,0,1],w=[-1/0,1/0],C=[],M=0;M<2;M++){for(var V=[["gte","gt","min"],["lte","lt","max"]][M],z=0;z<3&&v[M]==null;z++)v[M]=o[V[z]],x[M]=T[z],C[M]=z===2;v[M]==null&&(v[M]=w[M])}C[0]&&v[1]===1/0&&(x[0]=0),C[1]&&v[0]===-1/0&&(x[1]=0),v[0]===v[1]&&x[0]&&x[1]&&(l.value=v[0])}l.visual=VisualMapping$1.retrieveVisuals(o),r.push(l)},this),normalizeReverse(t,r),reformIntervals(r),each$c(r,function(o){var s=o.close,l=[["<","≤"][s[1]],[">","≥"][s[0]]];o.text=o.text||this.formatValueText(o.value!=null?o.value:o.interval,!1,l)},this)}};function normalizeReverse(r,t){var o=r.inverse;(r.orient==="vertical"?!o:o)&&t.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.doRender=function(){var o=this.group;o.removeAll();var s=this.visualMapModel,l=s.get("textGap"),h=s.textStyleModel,v=h.getFont(),x=h.getTextColor(),T=this._getItemAlign(),w=s.itemSize,C=this._getViewData(),M=C.endsText,V=retrieve(s.get("showLabel",!0),!M);M&&this._renderEndsText(o,M[0],w,V,T),each$c(C.viewPieceList,function(z){var F=z.piece,B=new Group$3;B.onclick=bind$1(this._onItemClick,this,F),this._enableHoverLink(B,z.indexInModelPieceList);var W=s.getRepresentValue(F);if(this._createItemSymbol(B,W,[0,0,w[0],w[1]]),V){var Y=this.visualMapModel.getValueState(W);B.add(new ZRText$1({style:{x:T==="right"?-l:w[0]+l,y:w[1]/2,text:F.text,verticalAlign:"middle",align:T,font:v,fill:x,opacity:Y==="outOfRange"?.5:1}}))}o.add(B)},this),M&&this._renderEndsText(o,M[1],w,V,T),box(s.get("orient"),o,s.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},t.prototype._enableHoverLink=function(o,s){var l=this;o.on("mouseover",function(){return h("highlight")}).on("mouseout",function(){return h("downplay")});var h=function(v){var x=l.visualMapModel;x.option.hoverLink&&l.api.dispatchAction({type:v,batch:makeHighDownBatch(x.findTargetDataIndices(s),x)})}},t.prototype._getItemAlign=function(){var o=this.visualMapModel,s=o.option;if(s.orient==="vertical")return getItemAlign(o,this.api,o.itemSize);var l=s.align;return(!l||l==="auto")&&(l="left"),l},t.prototype._renderEndsText=function(o,s,l,h,v){if(s){var x=new Group$3,T=this.visualMapModel.textStyleModel;x.add(new ZRText$1({style:createTextStyle$1(T,{x:h?v==="right"?l[0]:0:l[0]/2,y:l[1]/2,verticalAlign:"middle",align:h?v:"center",text:s})})),o.add(x)}},t.prototype._getViewData=function(){var o=this.visualMapModel,s=map$2(o.getPieceList(),function(x,T){return{piece:x,indexInModelPieceList:T}}),l=o.get("text"),h=o.get("orient"),v=o.get("inverse");return(h==="horizontal"?v:!v)?s.reverse():l&&(l=l.slice().reverse()),{viewPieceList:s,endsText:l}},t.prototype._createItemSymbol=function(o,s,l){o.add(createSymbol(this.getControllerVisual(s,"symbol"),l[0],l[1],l[2],l[3],this.getControllerVisual(s,"color")))},t.prototype._onItemClick=function(o){var s=this.visualMapModel,l=s.option,h=l.selectedMode;if(h){var v=clone$3(l.selected),x=s.getSelectedMapKey(o);h==="single"||h===!0?(v[x]=!0,each$c(v,function(T,w){v[w]=w===x})):v[x]=!v[x],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:v})}},t.type="visualMap.piecewise",t}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1(r){r.registerComponentModel(PiecewiseModel$1),r.registerComponentView(PiecewiseView),installCommon(r)}function install(r){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts(r){r.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$2=Object.prototype.hasOwnProperty,_$1=(r,t,o)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,P$1=(r,t)=>{for(var o in t)p(r,o,{get:t[o],enumerable:!0})},y=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of u(t))!j$2.call(r,l)&&l!==o&&p(r,l,{get:()=>t[l],enumerable:!(s=d(t,l))||s.enumerable});return r},m$1=(r,t,o)=>(y(r,t,"default"),o&&y(o,t,"default")),f=(r,t,o)=>(_$1(r,typeof t!="symbol"?t+"":t,o),o),c$1={};P$1(c$1,{Vue:()=>Vue});m$1(c$1,Vue);var g=class{static install(r,t){let{nameSpace:o=this._nameSpace,memory:s}=t;return s&&this.clearAll(o,s),new g(r,t)}static clearAll(r,t){Object.keys(t).forEach(o=>{let s=r+o;Object.prototype.hasOwnProperty.call(window.localStorage,s)&&window.localStorage.removeItem(s)})}static get(r){return JSON.parse(window.localStorage.getItem(r))}static set(r,t){t=typeof t=="object"?JSON.stringify(t):t,window.localStorage.setItem(r,t)}static getData(r,t){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(t,r)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(t,r)))}constructor(r,t){let o=g,{version:s=3,nameSpace:l=o._nameSpace,memory:h}=t,v=w=>l+w,x=s===3?(0,c$1.reactive)(h):h;Object.keys(x).length===0&&console.warn("key cannot be empty"),Object.keys(x).forEach(w=>{let C=x[w];o.set(v(w),C),Reflect.defineProperty(x,w,{get:()=>o.get(v(w)),set:M=>o.set(v(w),M),configurable:!0}),s===2&&r.util.defineReactive(x,w,x[w])});let T=s===3?r.config.globalProperties:r.prototype;Reflect.defineProperty(T,"$storage",{get:()=>x})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",(r,t)=>`${r??g._nameSpace}${t}`);const injectResponsiveStorage=(r,t)=>{const o=responsiveStorageNameSpace(),s=Object.assign({locale:n.getData("locale",o)??{locale:t.Locale??"zh"},layout:n.getData("layout",o)??{layout:t.Layout??"vertical",theme:t.Theme??"default",darkMode:t.DarkMode??!1,sidebarStatus:t.SidebarStatus??!0,epThemeColor:t.EpThemeColor??"#409EFF"},configure:n.getData("configure",o)??{grey:t.Grey??!1,weak:t.Weak??!1,hideTabs:t.HideTabs??!1,showLogo:t.ShowLogo??!0,showModel:t.ShowModel??"smart",multiTagsCache:t.MultiTagsCache??!1}},t.MultiTagsCache?{tags:n.getData("tags",o)??routerArrays}:{});r.use(n,{nameSpace:o,memory:s})};var ue={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const pe={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ue},P=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:r=>()=>Vue.createVNode(Vue.Fragment,null,[r.render(r.params)])}),R=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));var H=Object.defineProperty,de=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,ce=Object.prototype.hasOwnProperty,_=(r,t)=>{for(var o in t)H(r,o,{get:t[o],enumerable:!0})},A=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ge(t))!ce.call(r,l)&&l!==o&&H(r,l,{get:()=>t[l],enumerable:!(s=de(t,l))||s.enumerable});return r},I$1=(r,t,o)=>(A(r,t,"default"),o&&A(o,t,"default"));function E(r){return typeof r=="function"}var $={};_($,{Fs:()=>R}),I$1($,R);var c={};_(c,{Vue:()=>Vue}),I$1(c,Vue);var fe=()=>{let r,t=(0,c.ref)(!1),o=()=>{t.value=document.documentElement.classList.contains("dark")};return function(s){(0,c.getCurrentInstance)()&&(0,c.onUnmounted)(s)}(()=>{r.takeRecords(),r.disconnect()}),(0,c.onBeforeMount)(()=>{o(),r=new MutationObserver(o),r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};const j$1=Vue.defineComponent({name:"PureTable",props:pe,emits:["page-size-change","page-current-change"],setup(r,{slots:t,attrs:o,emit:s,expose:l}){const{isDark:h}=fe(),v=Vue.getCurrentInstance();function x(){var ae;return(ae=v==null?void 0:v.proxy)==null?void 0:ae.$refs[`TableRef${r.key}`]}function T(){return x().$refs}Vue.onMounted(()=>{Vue.nextTick(()=>{r.rowHoverBgColor&&T().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",r.rowHoverBgColor,"important")})});const{columns:w,loading:C,loadingConfig:M,alignWhole:V,headerAlign:z,showOverflowTooltip:F,pagination:B}=Vue.toRefs(r);let W=Vue.computed(()=>{if(!Vue.unref(M))return;let{text:ae,spinner:le,svg:he,viewBox:me}=Vue.unref(M);return{"element-loading-text":ae,"element-loading-spinner":le,"element-loading-svg":he,"element-loading-svg-view-box":me}});const Y=Vue.computed(()=>{var ae,le;if(Vue.unref(C))return{"element-loading-background":((le=(ae=Vue.unref(M))==null?void 0:ae.background)!=null?le:h.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),Z=Vue.computed(()=>{var ae;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:Vue.unref(B).align==="left"?"flex-start":Vue.unref(B).align==="center"?"center":"flex-end"},(ae=Vue.unref(B).style)!=null?ae:{})});let X=Vue.unref(B)&&Vue.unref(B).currentPage&&Vue.unref(B).pageSize;const te=(ae,le)=>{const{cellRenderer:he,slot:me,headerRenderer:_e,hide:ye,children:Se,prop:Te,...we}=ae,Ee={default:Me=>{var Ie;return he?Vue.createVNode(P,{render:he,params:Object.assign(Me,{index:Me.$index,props:r,attrs:o})},null):me?(Ie=t==null?void 0:t[me])==null?void 0:Ie.call(t,Object.assign(Me,{index:Me.$index,props:r,attrs:o})):void 0}};let Ce=_e?{header:Me=>Vue.createVNode(P,{render:_e,params:Object.assign(Me,{index:Me.$index,props:r,attrs:o})},null),...Ee}:Ee;return E(ye)&&ye(o)?ye(o):((Se==null?void 0:Se.length)>0&&(Ce=Se.map(te)),Vue.createVNode(ElementPlus.ElTableColumn,Vue.mergeProps({key:le},we,{prop:E(Te)&&Te(le)?Te(le):Te,align:ae!=null&&ae.align?ae.align:Vue.unref(V),headerAlign:ae!=null&&ae.headerAlign?ae.headerAlign:Vue.unref(z),showOverflowTooltip:ae!=null&&ae.showOverflowTooltip?ae.showOverflowTooltip:Vue.unref(F)}),typeof(ke=Ce)=="function"||Object.prototype.toString.call(ke)==="[object Object]"&&!Vue.isVNode(ke)?Ce:{default:()=>[Ce]}));var ke};l({getTableRef:x,getTableDoms:T});let oe=()=>{var ae,le;return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(ElementPlus.ElTable,Vue.mergeProps(r,o,{ref:`TableRef${r.key}`}),{default:()=>Vue.unref(w).map(te),append:()=>t.append&&t.append(),empty:()=>t.empty&&t.empty()}),X?Vue.createVNode(ElementPlus.ElPagination,Vue.mergeProps(o,{class:"pure-pagination",style:Vue.unref(Z)},Vue.unref(B),{small:r!=null&&r.paginationSmall?r==null?void 0:r.paginationSmall:!!Vue.unref(B).small&&Vue.unref(B).small,layout:(ae=Vue.unref(B).layout)!=null?ae:"total, sizes, prev, pager, next, jumper",pageSizes:(le=Vue.unref(B).pageSizes)!=null?le:[5,10,15,20],onSizeChange:he=>(me=>{Vue.unref(B).pageSize=me,s("page-size-change",me)})(he),onCurrentChange:he=>(me=>{Vue.unref(B).currentPage=me,s("page-current-change",me)})(he)}),null):null])};return()=>Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps({class:"pure-table",style:"width:100%"},Vue.unref(Y),Vue.unref(W)),[oe()]),[[Vue.resolveDirective("loading"),Vue.unref(C)]])}}),be=Object.assign(j$1,{install:function(r){r.component(j$1.name,j$1)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElementPlus.ElDescriptions.props},j=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:r=>()=>Vue.createVNode(Vue.Fragment,null,[r.render(r.params)])}),m=Vue.defineComponent({name:"PureDescriptions",props:L,setup(r,{slots:t,attrs:o}){const{data:s,columns:l,align:h,labelAlign:v,loading:x}=Vue.toRefs(r),T={title:()=>(t==null?void 0:t.title)&&t.title({props:r,attrs:o})},w={extra:()=>(t==null?void 0:t.extra)&&t.extra({props:r,attrs:o})},C=t!=null&&t.title&&!(t!=null&&t.extra)?T:t!=null&&t.extra&&!(t!=null&&t.title)?w:t!=null&&t.title&&(t!=null&&t.extra)?Object.assign(T,w):null;return()=>{var M;return Vue.withDirectives(Vue.createVNode(ElementPlus.ElDescriptions,Vue.mergeProps(r,o,{"element-loading-text":(M=Vue.unref(x).text)!=null?M:"Loading...","element-loading-svg":Vue.unref(x).svg,"element-loading-spinner":Vue.unref(x).spinner,"element-loading-svg-view-box":Vue.unref(x).svgViewBox,"element-loading-background":Vue.unref(x).background}),{default:()=>[Vue.unref(l).map((V,z)=>{let F=Vue.unref(s).map(X=>X[V==null?void 0:V.prop]);const B={default:()=>{var X;return V!=null&&V.cellRenderer?Vue.createVNode(j,{render:V.cellRenderer,params:{props:r,attrs:o,index:z,value:F[0]}},null):V!=null&&V.slot?(X=t==null?void 0:t[V.slot])==null?void 0:X.call(t,{props:r,attrs:o,index:z,value:F[0]}):Vue.createVNode(Vue.Fragment,null,V!=null&&V.value?[Vue.unref(V.value)]:[F])}},W=V!=null&&V.labelRenderer?{label:()=>Vue.createVNode(j,{render:V.labelRenderer,params:{props:r,attrs:o,index:z,value:F[0]}},null),...B}:B;return Y=V==null?void 0:V.hide,typeof Y=="function"&&(V!=null&&V.hide(o))?V==null?void 0:V.hide(o):Vue.createVNode(ElementPlus.ElDescriptionsItem,Vue.mergeProps(V,{key:z,align:V.align?V.align:Vue.unref(h),labelAlign:V.labelAlign?V.labelAlign:Vue.unref(v)}),typeof(Z=W)=="function"||Object.prototype.toString.call(Z)==="[object Object]"&&!Vue.isVNode(Z)?W:{default:()=>[W]});var Y,Z})],...C}),[[Vue.resolveDirective("loading"),Vue.unref(x).load]])}}}),I=Object.assign(m,{install:function(r){r.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='<svg><symbol id="pure-iconfont-tabs" viewBox="0 0 1024 1024"><path d="M400.43383789 497.82763673c4.20227051 3.95507813 6.50939942 9.64050293 6.26220703 15.40832519 0.32958983 5.85021973-2.05993653 11.53564453-6.26220703 15.40832519-4.36706543 3.87268067-10.1348877 5.93261719-15.90270996 5.6854248h-57.3486328v193.71643067c0.16479492 6.09741211-2.38952637 11.86523438-6.92138672 15.73791504-4.53186037 4.44946289-10.62927247 6.83898926-16.8914795 6.67419433-6.26220703 0.24719239-12.4420166-2.22473145-16.89147949-6.67419436-4.36706543-4.03747559-6.7565918-9.80529786-6.67419434-15.73791501v-193.6340332H222.78491211c-5.93261719 0.24719239-11.70043946-1.89514161-15.90270997-6.01501466-4.28466797-3.95507813-6.59179689-9.64050293-6.26220701-15.40832519-0.24719239-5.76782227 2.05993653-11.28845215 6.26220702-15.07873536 4.36706543-3.95507813 10.05249023-6.01501465 15.90270996-5.76782224h163.4765625c5.19104004 0 10.21728516 2.05993653 14.17236328 5.6854248z m177.73132325 57.76062011c4.28466797 4.20227051 6.59179689 10.05249023 6.34460448 16.14990234v156.47277832c0.24719239 5.93261719-2.05993653 11.70043946-6.34460449 15.73791504-3.95507813 4.36706543-9.64050293 6.83898926-15.57312011 6.67419433-5.85021973 0.08239747-11.45324708-2.22473145-15.57312013-6.34460449-3.95507813-4.28466797-6.26220703-9.8876953-6.26220703-15.73791504-14.83154297 16.06750489-35.34851075 25.37841797-57.01904297 25.87280274-16.23229981 0.24719239-32.05261231-4.36706543-45.7305908-13.1011963-14.17236327-8.81652833-25.70800781-21.50573731-33.20617677-36.58447265-15.90270997-33.28857422-15.90270997-72.18017578 0-105.46875 7.33337403-15.16113281 18.86901856-27.85034179 33.20617677-36.58447266 13.18359375-8.6517334 28.67431641-13.26599122 44.41223145-13.10119628 21.67053223-0.08239747 42.68188475 8.07495117 58.66699218 22.82409667-0.16479492-6.01501465 2.14233398-11.86523438 6.34460448-16.14990234 8.73413086-8.40454102 22.41210938-8.40454102 31.14624024 0l-0.41198731-0.65917969z m-50.42724611 139.0045166c19.85778809-26.03759766 19.85778809-62.29248047 0-88.33007813-9.47570801-11.78283692-23.81286622-18.37463379-38.80920409-17.79785156-14.7491455-0.41198731-28.92150879 6.09741211-38.15002442 17.79785156-9.97009278 12.35961914-15.24353028 28.01513673-14.91394043 44.00024414-0.49438477 16.06750489 4.69665529 31.80541991 14.58435058 44.32983399 9.55810548 11.45324708 23.73046875 17.88024903 38.47961427 17.46826172 14.91394043 0.32958983 29.08630372-6.09741211 38.8092041-17.46826172zM778.47338867 562.26245117c14.08996583 8.81652833 25.54321289 21.34094239 33.20617676 36.25488281 8.15734864 16.31469727 12.27722169 34.44213867 11.94763184 52.734375 0.32958983 18.37463379-3.7902832 36.58447265-11.94763184 53.06396485-7.41577148 15.07873536-18.95141602 27.76794434-33.20617676 36.58447266-13.18359375 8.73413086-28.67431641 13.26599122-44.41223144 13.10119629-11.45324708 0.16479492-22.82409669-2.38952637-33.20617676-7.41577149-9.55810548-4.11987305-18.20983887-10.05249023-25.54321289-17.46826171v2.30712889c0.16479492 5.93261719-2.05993653 11.70043946-6.17980957 15.98510744-4.11987305 4.20227051-9.80529786 6.59179689-15.73791506 6.5093994-5.85021973 0.24719239-11.53564453-2.05993653-15.5731201-6.34460449-4.28466797-4.20227051-6.59179689-10.05249023-6.26220704-16.14990233V499.80517578c-0.16479492-6.01501465 2.05993653-11.86523438 6.26220705-16.14990234 8.73413086-8.48693847 22.41210938-8.48693847 31.14624023 0 4.20227051 4.28466797 6.50939942 10.05249023 6.26220703 16.14990234v76.87683106c6.59179689-8.07495117 14.83154297-14.58435059 24.22485352-19.11621094 10.21728516-5.60302734 21.58813477-8.48693847 33.20617675-8.40454102 16.23229981-0.16479492 32.13500977 4.36706543 45.81298828 13.10119629z m-12.93640137 134.30786133c10.05249023-12.4420166 15.32592773-28.26232911 14.91394043-44.32983398 0.49438477-15.98510742-4.69665529-31.55822755-14.58435059-44.00024415-9.8876953-11.04125977-23.89526367-17.38586426-38.64440917-17.38586426s-28.75671387 6.3446045-38.64440918 17.38586426c-19.85778809 26.03759766-19.85778809 62.29248047 0 88.33007813 9.55810548 11.61804201 23.89526367 18.20983887 38.8092041 17.79785156 15.07873536-0.16479492 29.16870117-7.49816895 38.15002442-19.77539062v1.97753906zM673.5814209 299.00256347c-12.77160645 0-23.07128906-10.29968262-23.07128907-23.07128905V183.5637207c-0.08239747-6.59179689 0-13.10119629 0-19.6105957V154.31262207c0-12.77160645 10.29968262-23.07128906 23.07128906-23.07128906H820.16650391c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592773 9.31091309 9.31091309 14.66674805 21.42333983 15.32592773 34.44213868 0.08239747 0.57678223 0.08239747 1.15356445 0.08239746 1.73034667v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128906 23.07128906H673.5814209z m23.07128906-46.1425781h129.69360352v-69.29626467c0-1.64794922-0.65917969-3.21350098-1.81274415-4.44946289-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274414H696.65270999v75.5584717zM396.56115722 299.90893555c-12.77160645 0-23.07128906-10.29968262-23.07128905-23.07128908V155.13659668c0-12.68920898 10.29968262-22.98889161 22.9888916-23.07128906l175.83618164-0.90637207h0.08239746c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592774 9.8876953 9.97009278 15.32592773 23.07128906 15.32592775 37.07885741v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128907 23.07128906h-205.16967775z m23.07128907-46.22497559h159.0270996v-70.20263671c0-1.64794922-0.65917969-3.21350098-1.81274413-4.44946289-1.15356445-1.15356445-2.71911623-1.81274414-4.36706543-1.81274414l-152.84729005 0.74157713v75.72326662z" ></path><path d="M149.78076171 892.84106445c-14.25476075 0-27.60314942-5.52062989-37.65563964-15.40832519-10.05249023-9.97009278-15.57312012-23.15368653-15.57312012-37.16125488V183.72851562c0-29.00390624 23.89526367-52.56958007 53.22875978-52.56958007h139.25170897c14.25476075 0 27.60314942 5.43823242 37.65563966 15.40832519 10.05249023 9.8876953 15.57312012 23.15368653 15.57312011 37.16125489V323.30981445c0 1.64794922 0.65917969 3.21350098 1.89514162 4.44946289 1.23596192 1.15356445 2.80151367 1.81274414 4.44946288 1.81274414h525.61340332c14.25476075 0 27.60314942 5.43823242 37.65563964 15.4083252 10.05249023 9.8876953 15.57312012 23.07128906 15.57312012 37.16125488v458.12988281c0 14.08996583-5.52062989 27.27355958-15.57312012 37.16125489s-23.40087891 15.40832519-37.65563964 15.40832519H149.78076171z m6.34460451-709.11254882c-3.54309083 0-6.3446045 2.80151367-6.34460449 6.26220703v649.86877441c0 1.64794922 0.65917969 3.29589844 1.8951416 4.4494629 1.15356445 1.15356445 2.80151367 1.81274414 4.44946288 1.81274415h718.09387208c1.73034668 0 3.29589844-0.65917969 4.44946288-1.81274415 1.23596192-1.15356445 1.89514161-2.71911623 1.89514161-4.4494629V379.01049805c0-1.64794922-0.65917969-3.21350098-1.81274413-4.36706544-1.23596192-1.23596192-2.80151367-1.89514161-4.44946291-1.89514159h-525.69580077c-14.25476075 0-27.60314942-5.52062989-37.65563966-15.4083252-10.05249023-9.8876953-15.57312012-23.15368653-15.57312012-37.16125488V189.90832519c0-1.64794922-0.65917969-3.21350098-1.8951416-4.44946288-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274416H156.12536621z" ></path></symbol><symbol id="pure-iconfont-logo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="pure-iconfont-new" viewBox="0 0 1024 1024"><path d="M466.73632812 228.81640625l-33.31054687 255.41015625c34.36523438 20.21484375 78.31054688 42.62695313 131.22070313 62.2265625 55.1953125 20.47851563 105.1171875 32.43164063 145.54687499 39.46289063 127.44140625-161.27929688 147.39257813-224.38476563 141.59179688-215.59570313-10.45898438 15.99609375-62.05078125 20.390625-76.20117188 15.29296875-28.30078125-10.10742188-53.4375-37.52929688-65.30273437-81.29882813-14.85351563-54.66796875-43.50585938-50.53710938-94.5703125-21.35742187-58.88671875 33.48632813-121.46484375 4.39453125-148.97460938-54.140625z" fill="#FFFFFF" ></path><path d="M444.76367187 228.81640625c-3.77929688 28.828125-7.55859375 57.74414063-11.33789062 86.57226563l-17.9296875 137.37304687c-1.40625 10.45898438-2.72460938 21.00585938-4.13085937 31.46484375-0.96679688 7.3828125 4.83398438 15.46875 10.8984375 18.984375 69.78515625 40.86914063 145.63476563 71.98242188 224.12109374 91.66992188 19.16015625 4.83398438 38.49609375 8.87695313 57.91992188 12.30468749 7.20703125 1.23046875 16.34765625 0.703125 21.35742188-5.625C767.49804688 548.65039063 808.3671875 494.421875 843.34765625 436.58984375c7.91015625-13.09570313 15.55664063-26.3671875 22.1484375-40.16601563 2.4609375-5.09765625 4.74609375-10.37109375 6.85546875-15.64453125 1.31835938-3.33984375 2.37304688-7.11914063 2.28515625-10.72265625-0.43945313-12.04101563-9.4921875-22.32421875-22.06054688-22.32421875-8.4375 0-14.94140625 4.5703125-19.42382812 11.33789063-1.93359375 2.8125 3.33984375-3.42773438 1.58203125-2.109375-0.43945313 0.3515625-0.87890625 0.79101563-1.23046875 1.14257812-1.31835938 1.49414063-3.33984375 1.14257813 2.54882813-1.84570312-1.23046875 0.61523438-2.37304688 1.58203125-3.60351563 2.28515625-1.14257813 0.61523438-2.28515625 1.14257813-3.33984375 1.66992187-3.33984375 1.66992188 5.53710938-2.109375 1.93359375-0.87890625-0.61523438 0.17578125-1.14257813 0.43945313-1.7578125 0.61523438-3.07617188 1.0546875-6.24023438 1.93359375-9.40429688 2.72460937-3.33984375 0.79101563-6.76757813 1.40625-10.10742187 2.02148438-5.625 0.87890625 5.36132813-0.61523438-0.3515625 0.08789062-1.66992188 0.17578125-3.42773438 0.3515625-5.09765625 0.52734375-6.15234375 0.52734375-12.3046875 0.703125-18.45703125 0.26367188-2.28515625-0.17578125-7.03125-1.40625 1.40625 0.3515625-1.0546875-0.17578125-2.109375-0.3515625-3.1640625-0.61523438-0.703125-0.17578125-1.40625-0.3515625-2.109375-0.61523437-0.79101563-0.26367188-1.58203125-0.61523438-2.37304688-0.87890625-3.42773438-1.23046875 5.09765625 2.37304688 1.49414063 0.61523437-2.98828125-1.40625-5.88867188-2.8125-8.70117188-4.48242187-1.31835938-0.79101563-2.72460938-1.66992188-3.95507812-2.54882813l-2.63671875-1.84570312c-1.40625-1.0546875-3.69140625-3.69140625 1.0546875 0.79101562-2.37304688-2.28515625-5.09765625-4.30664063-7.47070313-6.59179687-2.98828125-2.98828125-5.44921875-6.59179688-8.52539062-9.4921875 0.17578125 0.17578125 3.33984375 4.48242188 1.23046875 1.58203125-0.61523438-0.79101563-1.23046875-1.66992188-1.7578125-2.4609375-1.0546875-1.49414063-2.109375-3.07617188-3.07617188-4.65820313-2.4609375-3.77929688-4.65820313-7.734375-6.67968749-11.77734375-0.87890625-1.7578125-1.7578125-3.60351563-2.63671875-5.44921875-0.17578125-0.43945313-0.3515625-0.79101563-0.52734375-1.23046875-0.96679688-2.19726563-0.703125-1.66992188 0.61523437 1.40625 0.08789063-0.3515625-0.96679688-2.54882813-1.0546875-2.63671875-1.7578125-4.48242188-3.25195313-9.140625-4.65820313-13.7109375-2.72460938-9.22851563-5.625-18.19335938-9.66796874-26.89453125-6.85546875-14.50195313-18.19335938-26.10351563-33.31054688-31.640625-13.18359375-4.83398438-28.38867188-3.07617188-41.484375 1.0546875-16.171875 5.09765625-30.84960938 13.44726563-45.61523438 21.4453125-2.02148438 1.0546875-3.95507813 2.109375-6.06445312 3.07617188-0.52734375 0.26367188-4.65820313 1.84570313-0.96679688 0.52734375 3.60351563-1.40625-0.43945313 0.17578125-0.96679687 0.3515625-3.95507813 1.49414063-7.99804688 2.8125-12.04101563 3.8671875-2.02148438 0.52734375-3.95507813 0.96679688-5.9765625 1.31835937-0.79101563 0.17578125-1.58203125 0.26367188-2.37304687 0.43945313-4.48242188 0.79101563 5.625-0.52734375 1.0546875-0.17578125-3.95507813 0.3515625-7.91015625 0.61523438-11.86523438 0.52734375-1.93359375 0-3.8671875-0.08789063-5.88867187-0.26367188-0.79101563-0.08789063-1.58203125-0.17578125-2.28515625-0.17578125-4.30664063-0.3515625 4.74609375 0.79101563 1.84570312 0.26367188-3.95507813-0.79101563-7.99804688-1.40625-11.86523437-2.54882813-3.515625-0.96679688-6.94335938-2.37304688-10.37109375-3.60351562-2.72460938-0.96679688 5.2734375 2.4609375 1.49414062 0.61523437-0.703125-0.3515625-1.40625-0.61523438-2.109375-0.96679687-2.109375-1.0546875-4.13085938-2.109375-6.24023437-3.25195313-3.07617188-1.7578125-6.06445313-3.69140625-8.96484375-5.71289062-0.96679688-0.703125-1.84570313-1.49414063-2.90039063-2.109375 0.26367188 0.17578125 4.30664063 3.515625 1.58203125 1.23046875-1.66992188-1.40625-3.42773438-2.8125-5.00976562-4.30664063-2.90039063-2.63671875-5.625-5.36132813-8.17382813-8.17382812-1.40625-1.49414063-2.72460938-3.07617188-4.04296875-4.65820313-0.52734375-0.61523438-0.96679688-1.40625-1.58203125-1.93359375 4.39453125 4.39453125 1.14257813 1.40625 0-0.08789062-4.921875-6.85546875-9.140625-14.0625-12.65625-21.70898438-4.921875-10.37109375-20.65429688-13.97460938-30.05859375-7.91015625-10.72265625 6.94335938-13.18359375 18.89648438-7.91015625 30.05859375 15.8203125 33.31054688 43.68164063 60.20507813 78.48632813 72.68554688 15.55664063 5.625 33.13476563 7.734375 49.5703125 5.80078125 9.58007813-1.14257813 18.984375-2.8125 28.125-6.15234375 9.66796875-3.515625 18.54492188-8.0859375 27.421875-13.0078125 6.85546875-3.77929688 14.23828125-8.52539063 21.70898437-10.8984375-0.08789063 0-5.44921875 2.19726563-2.28515625 0.96679688 0.79101563-0.3515625 1.58203125-0.61523438 2.4609375-0.96679688 1.40625-0.52734375 2.8125-1.0546875 4.30664063-1.58203125 2.90039063-0.96679688 5.88867188-1.84570313 8.96484375-2.54882813 1.40625-0.26367188 2.8125-0.43945313 4.21875-0.79101562-7.64648438 1.84570313-3.42773438 0.43945313-1.0546875 0.3515625 1.14257813-0.08789063 2.28515625-0.08789063 3.42773437 0 0.61523438 0 1.23046875 0.08789063 1.84570313 0.08789063 3.25195313 0.08789063-6.06445313-1.31835938-2.98828125-0.3515625 1.14257813 0.3515625 2.28515625 0.52734375 3.42773437 0.87890625 0.43945313 0.17578125 0.87890625 0.3515625 1.31835938 0.43945312 3.07617188 0.87890625-5.09765625-2.4609375-2.98828125-1.23046875 0.96679688 0.52734375 1.93359375 0.96679688 2.8125 1.49414063 0.52734375 0.3515625 0.96679688 0.703125 1.49414062 0.96679687 1.93359375 1.14257813-5.00976563-4.21875-2.109375-1.58203125 0.87890625 0.79101563 1.7578125 1.58203125 2.54882813 2.37304688 1.93359375 2.02148438 2.90039063 5.00976563-0.26367188-0.703125 1.49414063 2.63671875 3.42773438 5.00976563 4.83398438 7.73437499 0.79101563 1.49414063 1.40625 3.07617188 2.19726562 4.5703125-3.42773438-6.59179688-0.43945313-1.0546875 0.26367188 0.96679688 1.40625 3.95507813 2.63671875 8.0859375 3.77929687 12.12890625 5.09765625 18.10546875 12.83203125 36.12304688 23.90625 51.41601563 10.37109375 14.23828125 22.76367188 26.80664063 38.14453125 35.59570312 6.41601563 3.69140625 13.53515625 7.29492188 20.7421875 8.96484375 6.41601563 1.49414063 13.27148438 2.02148438 19.86328125 2.02148438 14.67773438 0.08789063 30.05859375-1.7578125 44.12109375-5.88867188 6.85546875-2.02148438 13.88671875-4.5703125 19.95117188-8.34960938 6.59179688-4.13085938 9.84375-8.4375 14.67773437-14.23828124-3.515625 4.21875-2.90039063 4.48242188-7.47070312 7.47070312-2.63671875 1.66992188-7.734375 3.1640625-10.98632813 2.98828125-1.84570313-0.52734375-3.69140625-0.96679688-5.53710937-1.49414063-5.88867188-0.61523438-10.37109375-3.69140625-13.359375-9.31640624-1.84570313-3.1640625-3.07617188-7.47070313-2.98828125-10.81054688 0-0.26367188 1.7578125-7.99804688 0.43945312-4.13085938-0.3515625 1.0546875-0.703125 2.109375-1.14257812 3.16406251-0.26367188 0.61523438-0.52734375 1.31835938-0.79101563 1.93359375-1.0546875 2.72460938 2.90039063-6.59179688 1.58203125-3.77929688-0.17578125 0.43945313-0.3515625 0.87890625-0.61523437 1.31835938-5.18554688 11.68945313-11.33789063 22.8515625-17.75390625 33.92578125-29.53125 51.15234375-64.59960938 99.140625-100.546875 145.81054687-0.703125 0.87890625-1.31835938 1.7578125-2.02148438 2.54882813-2.37304688 3.1640625 0 0 0.43945313-0.52734375-1.66992188 2.19726563-3.42773438 4.39453125-5.09765625 6.59179687-3.515625 4.5703125-7.11914063 9.05273438-10.63476563 13.53515625 7.11914063-1.84570313 14.23828125-3.77929688 21.35742188-5.625-36.82617188-6.50390625-73.125-15.46875-108.72070313-26.80664063-20.65429688-6.59179688-40.95703125-13.97460938-60.99609375-22.14843749-2.28515625-0.87890625-4.48242188-1.84570313-6.76757812-2.81250001-4.921875-2.02148438 3.1640625 1.40625 0.08789062 0l-3.69140625-1.58203125c-4.74609375-2.109375-9.58007813-4.21875-14.32617187-6.328125-8.61328125-3.8671875-17.13867188-7.99804688-25.6640625-12.12890624-17.49023438-8.61328125-34.62890625-17.9296875-51.41601563-27.77343751 3.60351563 6.328125 7.29492188 12.65625 10.8984375 18.98437501 3.77929688-28.828125 7.55859375-57.74414063 11.33789063-86.57226563l17.9296875-137.37304688c1.40625-10.45898438 2.72460938-21.00585938 4.13085937-31.46484374 0.703125-5.18554688-2.90039063-12.04101563-6.41601562-15.55664063-3.77929688-3.77929688-10.10742188-6.6796875-15.55664063-6.41601562-5.71289063 0.26367188-11.6015625 2.109375-15.55664062 6.41601562-4.04296875 4.65820313-5.44921875 9.4921875-6.24023438 15.64453125z" fill="#FFCB40" ></path><path d="M496.61914062 458.73828125c47.54882813 31.640625 101.07421875 54.75585938 156.70898438 67.58789063 11.16210938 2.54882813 24.34570313-3.42773438 27.0703125-15.38085938 2.54882813-11.25-3.33984375-24.2578125-15.38085938-27.0703125-13.18359375-3.07617188-26.27929688-6.6796875-39.19921874-10.8984375-6.41601563-2.109375-12.83203125-4.30664063-19.16015625-6.76757813-3.42773438-1.31835938-6.85546875-2.63671875-10.1953125-3.95507812-1.49414063-0.61523438-2.90039063-1.14257813-4.30664063-1.7578125-4.13085938-1.7578125 4.04296875 1.7578125-1.23046875-0.52734375-25.13671875-10.8984375-49.21875-24.08203125-72.0703125-39.28710938-9.58007813-6.41601563-24.69726563-2.19726563-30.05859375 7.91015625-5.88867188 11.07421875-2.37304688 23.29101563 7.82226563 30.14648438z" fill="#FFCB40" ></path><path d="M245.77929687 729.6171875v-72.50976563-115.04882812V515.515625c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703124 11.07421875 11.42578125 24.16992188 22.8515625 48.42773438 34.18945312 72.59765625 18.01757813 38.23242188 36.12304688 76.55273438 54.140625 114.78515625 4.21875 8.87695313 8.34960938 17.75390625 12.56835938 26.54296875 3.95507813 8.34960938 16.171875 12.91992188 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976563V541.8828125v-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421875-11.42578125-24.16992188-22.8515625-48.42773438-34.18945312-72.59765625-18.01757813-38.23242188-36.12304688-76.55273438-54.140625-114.78515625-4.21875-8.87695313-8.34960938-17.75390625-12.56835938-26.54296875-3.95507813-8.34960938-16.171875-12.91992188-24.78515624-10.10742188-9.22851563 2.98828125-16.171875 11.25-16.17187501 21.18164063v214.1015625c0 11.51367188 10.10742188 22.5 21.97265626 21.97265625 11.953125-0.52734375 21.97265625-9.66796875 21.97265624-21.97265625zM501.8046875 493.63085937H400.90625c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265626v211.55273437c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265625h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H400.90625l21.97265625 21.97265625v-71.27929688-114.16992187-26.10351563l-21.97265625 21.97265626h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265626-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265624z" fill="#4381FF" ></path><path d="M478.16210937 595.75976563c-25.75195313 0.17578125-51.50390625 0.43945313-77.25585937-1e-8-11.51367188-0.17578125-22.5 10.1953125-21.97265625 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.75195313 0.43945313 51.50390625 0.17578125 77.25585938 0 11.51367188-0.08789063 22.5-10.01953125 21.97265624-21.97265625-0.52734375-11.86523438-9.58007813-22.06054688-21.97265625-21.97265625zM553.57226563 515.60351563v214.10156249c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742187 18.72070313-31.20117188 37.44140625-62.40234375 56.25-93.69140626 2.63671875-4.48242188 5.36132813-8.87695313 7.99804687-13.359375h-37.96875c18.72070313 31.20117188 37.44140625 62.40234375 56.25 93.69140625 2.63671875 4.48242188 5.36132813 8.87695313 7.99804688 13.359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976562-115.04882813-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.10156251c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421876-18.72070313-31.20117188-37.44140625-62.40234375-56.25-93.69140624-2.63671875-4.48242188-5.36132813-8.87695313-7.99804687-13.359375-8.52539063-14.23828125-29.44335938-14.23828125-37.96875 0-18.72070313 31.20117188-37.44140625 62.40234375-56.25 93.69140625-2.63671875 4.48242188-5.36132813 8.87695313-7.99804688 13.359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703126 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#4381FF" ></path><path d="M225.30078125 709.49023438v-72.50976563-115.04882813-26.54296874c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703125 11.07421875 11.42578125 24.08203125 22.76367188 48.1640625 34.18945313 72.33398437 18.19335938 38.40820313 36.38671875 76.81640625 54.4921875 115.22460938 4.13085938 8.7890625 8.34960938 17.66601563 12.48046875 26.45507812 3.95507813 8.34960938 16.171875 12.91992188 24.78515625 10.10742187 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164062v-72.50976563-115.04882812V495.30078125c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-11.42578125-24.08203125-22.76367188-48.1640625-34.18945313-72.33398438-18.19335938-38.40820313-36.38671875-76.81640625-54.4921875-115.22460937-4.13085938-8.7890625-8.34960938-17.66601563-12.48046875-26.45507813-3.95507813-8.34960938-16.171875-12.91992188-24.78515625-10.10742187-9.22851563 2.98828125-16.171875 11.25-16.171875 21.18164063v214.10156249c0 11.51367188 10.10742188 22.5 21.97265625 21.97265626 11.86523438-0.52734375 21.97265625-9.66796875 21.97265625-21.97265625zM482.29296875 473.50390625H381.04296875c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265625v211.55273438c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265624h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H381.04296875l21.97265625 21.97265625v-71.27929687-114.16992188-26.10351562l-21.97265625 21.97265625h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625z" fill="#FF642E" ></path><path d="M458.5625 575.6328125c-25.83984375 0.17578125-51.76757813 0.43945313-77.60742188 0-11.51367188-0.17578125-22.5 10.1953125-21.97265624 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.83984375 0.43945313 51.76757813 0.17578125 77.60742187 0 11.51367188-0.08789063 22.5-10.01953125 21.97265625-21.97265625-0.52734375-11.86523438-9.58007813-21.97265625-21.97265625-21.97265625zM534.32421875 495.4765625v214.1015625c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742188 18.80859375-31.2890625 37.6171875-62.49023438 56.51367188-93.77929688 2.63671875-4.39453125 5.2734375-8.7890625 7.99804687-13.18359374h-37.96875c18.80859375 31.2890625 37.6171875 62.49023438 56.51367188 93.77929687 2.63671875 4.39453125 5.2734375 8.7890625 7.99804687 13.18359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515625 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164063v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-18.80859375-31.2890625-37.6171875-62.49023438-56.51367188-93.77929688-2.63671875-4.39453125-5.2734375-8.7890625-7.99804687-13.18359374-8.52539063-14.23828125-29.35546875-14.23828125-37.96875 0-18.80859375 31.2890625-37.6171875 62.49023438-56.51367188 93.77929687-2.63671875 4.39453125-5.2734375 8.7890625-7.99804687 13.18359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703125 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#FF642E" ></path><path d="M629.0703125 793.77734375h74.8828125" fill="#FFFFFF" ></path><path d="M629.0703125 815.75h74.97070313c11.51367188 0 22.5-10.10742188 21.97265624-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625h-74.97070312c-11.51367188 0-22.5 10.10742188-21.97265625 21.97265625 0.52734375 11.86523438 9.66796875 21.97265625 21.97265625 21.97265625z" fill="#FFCB40" ></path><path d="M552.16601563 793.77734375h5.71289062" fill="#FFFFFF" ></path><path d="M552.16601563 815.75h5.71289062c2.98828125 0.08789063 5.88867188-0.52734375 8.4375-1.93359375 2.72460938-0.87890625 5.09765625-2.37304688 7.03125-4.5703125 2.109375-2.02148438 3.69140625-4.30664063 4.5703125-7.03125 1.40625-2.63671875 2.02148438-5.44921875 1.93359375-8.4375l-0.79101562-5.80078125c-1.0546875-3.69140625-2.90039063-6.94335938-5.625-9.66796875-4.30664063-3.95507813-9.58007813-6.41601563-15.55664063-6.41601563h-5.71289062c-2.98828125-0.08789063-5.88867188 0.52734375-8.4375 1.93359376-2.72460938 0.87890625-5.09765625 2.37304688-7.03125 4.5703125-2.109375 2.02148438-3.69140625 4.30664063-4.5703125 7.03125-1.40625 2.63671875-2.02148438 5.44921875-1.93359375 8.43749999l0.79101562 5.80078126c1.0546875 3.69140625 2.90039063 6.94335938 5.625 9.66796874 4.30664063 3.95507813 9.58007813 6.41601563 15.55664063 6.41601563z" fill="#FFCB40" ></path></symbol></svg>',function(r){var o=(o=document.getElementsByTagName("script"))[o.length-1],t=o.getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var s,l,h,v,x,T=function(M,V){V.parentNode.insertBefore(M,V)};if(t&&!r.__iconfont__svg__cssinject__){r.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(M){console&&console.log(M)}}s=function(){var M,V=document.createElement("div");V.innerHTML=r._iconfont_svg_string_2208059,(V=V.getElementsByTagName("svg")[0])&&(V.setAttribute("aria-hidden","true"),V.style.position="absolute",V.style.width=0,V.style.height=0,V.style.overflow="hidden",V=V,(M=document.body).firstChild?T(V,M.firstChild):M.appendChild(V))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(s,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),s()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(h=s,v=r.document,x=!1,C(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,w())})}function w(){x||(x=!0,h())}function C(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(C,50)}w()}}(window);const iconfont="",auth$1={mounted(r,t){var s;const{value:o}=t;if(o)!hasAuth(o)&&((s=r.parentNode)==null||s.removeChild(r));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function(r,t){for(var o=0;o<r.length;o++){var s=t(r[o]);if(s)return s}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function(r){var t=r.stateHandler.getState;function o(v){var x=t(v);return x&&!!x.isDetectable}function s(v){t(v).isDetectable=!0}function l(v){return!!t(v).busy}function h(v,x){t(v).busy=!!x}return{isDetectable:o,markAsDetectable:s,isBusy:l,markBusy:h}},listenerHandler=function(r){var t={};function o(v){var x=r.get(v);return x===void 0?[]:t[x]||[]}function s(v,x){var T=r.get(v);t[T]||(t[T]=[]),t[T].push(x)}function l(v,x){for(var T=o(v),w=0,C=T.length;w<C;++w)if(T[w]===x){T.splice(w,1);break}}function h(v){var x=o(v);x&&(x.length=0)}return{get:o,add:s,removeListener:l,removeAllListeners:h}},idGenerator=function(){var r=1;function t(){return r++}return{generate:t}},idHandler=function(r){var t=r.idGenerator,o=r.stateHandler.getState;function s(h){var v=o(h);return v&&v.id!==void 0?v.id:null}function l(h){var v=o(h);if(!v)throw new Error("setId required the element to have a resize detection state.");var x=t.generate();return v.id=x,x}return{get:s,set:l}},reporter=function(r){function t(){}var o={log:t,warn:t,error:t};if(!r&&window.console){var s=function(l,h){l[h]=function(){var x=console[h];if(x.apply)x.apply(console,arguments);else for(var T=0;T<arguments.length;T++)x(arguments[T])}};s(o,"log"),s(o,"warn"),s(o,"error")}return o},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function(r){function t(){var s=navigator.userAgent.toLowerCase();return s.indexOf("msie")!==-1||s.indexOf("trident")!==-1||s.indexOf(" edge/")!==-1}if(!t())return!1;if(!r)return!0;var o=function(){var s,l=3,h=document.createElement("div"),v=h.getElementsByTagName("i");do h.innerHTML="<!--[if gt IE "+ ++l+"]><i></i><![endif]-->";while(v[0]);return l>4?l:s}();return r===o};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1(r,t,o){var s=r[t];return s==null&&o!==void 0?o:s}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(t){t=t||{};var o=t.reporter,s=utils.getOption(t,"async",!0),l=utils.getOption(t,"auto",!0);l&&!s&&(o&&o.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var h=Batch(),v,x=!1;function T(F,B){!x&&l&&s&&h.size()===0&&M(),h.add(F,B)}function w(){for(x=!0;h.size();){var F=h;h=Batch(),F.process()}x=!1}function C(F){x||(F===void 0&&(F=s),v&&(V(v),v=null),F?M():w())}function M(){v=z(w)}function V(F){var B=clearTimeout;return B(F)}function z(F){var B=function(W){return setTimeout(W,0)};return B(F)}return{add:T,force:C}};function Batch(){var r={},t=0,o=0,s=0;function l(x,T){T||(T=x,x=0),x>o?o=x:x<s&&(s=x),r[x]||(r[x]=[]),r[x].push(T),t++}function h(){for(var x=s;x<=o;x++)for(var T=r[x],w=0;w<T.length;w++){var C=T[w];C()}}function v(){return t}return{add:l,process:h,size:v}}var prop="_erd";function initState(r){return r[prop]={},getState(r)}function getState(r){return r[prop]}function cleanState(r){delete r[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function(r){r=r||{};var t=r.reporter,o=r.batchProcessor,s=r.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function l(w,C){function M(){C(w)}if(browserDetector$1.isIE(8))s(w).object={proxy:M},w.attachEvent("onresize",M);else{var V=x(w);if(!V)throw new Error("Element is not detectable by this strategy.");V.contentDocument.defaultView.addEventListener("resize",M)}}function h(w){var C=r.important?" !important; ":"; ";return(w.join(C)+C).trim()}function v(w,C,M){M||(M=C,C=w,w=null),w=w||{},w.debug;function V(z,F){var B=h(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),W=!1,Y=window.getComputedStyle(z),Z=z.offsetWidth,X=z.offsetHeight;s(z).startSize={width:Z,height:X};function te(){function oe(){if(Y.position==="static"){z.style.setProperty("position","relative",w.important?"important":"");var he=function(me,_e,ye,Se){function Te(Ee){return Ee.replace(/[^-\d\.]/g,"")}var we=ye[Se];we!=="auto"&&Te(we)!=="0"&&(me.warn("An element that is positioned static has style."+Se+"="+we+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Se+" will be set to 0. Element: ",_e),_e.style.setProperty(Se,"0",w.important?"important":""))};he(t,z,Y,"top"),he(t,z,Y,"right"),he(t,z,Y,"bottom"),he(t,z,Y,"left")}}function ae(){W||oe();function he(_e,ye){if(!_e.contentDocument){var Se=s(_e);Se.checkForObjectDocumentTimeoutId&&window.clearTimeout(Se.checkForObjectDocumentTimeoutId),Se.checkForObjectDocumentTimeoutId=setTimeout(function(){Se.checkForObjectDocumentTimeoutId=0,he(_e,ye)},100);return}ye(_e.contentDocument)}var me=this;he(me,function(ye){F(z)})}Y.position!==""&&(oe(),W=!0);var le=document.createElement("object");le.style.cssText=B,le.tabIndex=-1,le.type="text/html",le.setAttribute("aria-hidden","true"),le.onload=ae,browserDetector$1.isIE()||(le.data="about:blank"),s(z)&&(z.appendChild(le),s(z).object=le,browserDetector$1.isIE()&&(le.data="about:blank"))}o?o.add(te):te()}browserDetector$1.isIE(8)?M(C):V(C,M)}function x(w){return s(w).object}function T(w){if(s(w)){var C=x(w);C&&(browserDetector$1.isIE(8)?w.detachEvent("onresize",C.proxy):w.removeChild(C),s(w).checkForObjectDocumentTimeoutId&&window.clearTimeout(s(w).checkForObjectDocumentTimeoutId),delete s(w).object)}}return{makeDetectable:v,addListener:l,uninstall:T}},forEach$1=collectionUtilsExports.forEach,scroll=function(r){r=r||{};var t=r.reporter,o=r.batchProcessor,s=r.stateHandler.getState;r.stateHandler.hasState;var l=r.idHandler;if(!o)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var h=C(),v="erd_scroll_detection_scrollbar_style",x="erd_scroll_detection_container";function T(te){M(te,v,x)}T(window.document);function w(te){var oe=r.important?" !important; ":"; ";return(te.join(oe)+oe).trim()}function C(){var te=500,oe=500,ae=document.createElement("div");ae.style.cssText=w(["position: absolute","width: "+te*2+"px","height: "+oe*2+"px","visibility: hidden","margin: 0","padding: 0"]);var le=document.createElement("div");le.style.cssText=w(["position: absolute","width: "+te+"px","height: "+oe+"px","overflow: scroll","visibility: none","top: "+-te*3+"px","left: "+-oe*3+"px","visibility: hidden","margin: 0","padding: 0"]),le.appendChild(ae),document.body.insertBefore(le,document.body.firstChild);var he=te-le.clientWidth,me=oe-le.clientHeight;return document.body.removeChild(le),{width:he,height:me}}function M(te,oe,ae){function le(ye,Se){Se=Se||function(we){te.head.appendChild(we)};var Te=te.createElement("style");return Te.innerHTML=ye,Te.id=oe,Se(Te),Te}if(!te.getElementById(oe)){var he=ae+"_animation",me=ae+"_animation_active",_e=`/* Created by the element-resize-detector library. */
|
||
`;_e+="."+ae+" > div::-webkit-scrollbar { "+w(["display: none"])+` }
|
||
|
||
`,_e+="."+me+" { "+w(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+he,"animation-name: "+he])+` }
|
||
`,_e+="@-webkit-keyframes "+he+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
||
`,_e+="@keyframes "+he+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",le(_e)}}function V(te){te.className+=" "+x+"_animation_active"}function z(te,oe,ae){if(te.addEventListener)te.addEventListener(oe,ae);else if(te.attachEvent)te.attachEvent("on"+oe,ae);else return t.error("[scroll] Don't know how to add event listeners.")}function F(te,oe,ae){if(te.removeEventListener)te.removeEventListener(oe,ae);else if(te.detachEvent)te.detachEvent("on"+oe,ae);else return t.error("[scroll] Don't know how to remove event listeners.")}function B(te){return s(te).container.childNodes[0].childNodes[0].childNodes[0]}function W(te){return s(te).container.childNodes[0].childNodes[0].childNodes[1]}function Y(te,oe){var ae=s(te).listeners;if(!ae.push)throw new Error("Cannot add listener to an element that is not detectable.");s(te).listeners.push(oe)}function Z(te,oe,ae){ae||(ae=oe,oe=te,te=null),te=te||{};function le(){if(te.debug){var De=Array.prototype.slice.call(arguments);if(De.unshift(l.get(oe),"Scroll: "),t.log.apply)t.log.apply(null,De);else for(var ze=0;ze<De.length;ze++)t.log(De[ze])}}function he(De){function ze(Oe){var Be=Oe.getRootNode&&Oe.getRootNode().contains(Oe);return Oe===Oe.ownerDocument.body||Oe.ownerDocument.body.contains(Oe)||Be}return!ze(De)||window.getComputedStyle(De)===null}function me(De){var ze=s(De).container.childNodes[0],Oe=window.getComputedStyle(ze);return!Oe.width||Oe.width.indexOf("px")===-1}function _e(){var De=window.getComputedStyle(oe),ze={};return ze.position=De.position,ze.width=oe.offsetWidth,ze.height=oe.offsetHeight,ze.top=De.top,ze.right=De.right,ze.bottom=De.bottom,ze.left=De.left,ze.widthCSS=De.width,ze.heightCSS=De.height,ze}function ye(){var De=_e();s(oe).startSize={width:De.width,height:De.height},le("Element start size",s(oe).startSize)}function Se(){s(oe).listeners=[]}function Te(){if(le("storeStyle invoked."),!s(oe)){le("Aborting because element has been uninstalled");return}var De=_e();s(oe).style=De}function we(De,ze,Oe){s(De).lastWidth=ze,s(De).lastHeight=Oe}function Ee(De){return B(De).childNodes[0]}function Ce(){return 2*h.width+1}function ke(){return 2*h.height+1}function Me(De){return De+10+Ce()}function Ie(De){return De+10+ke()}function $e(De){return De*2+Ce()}function Ge(De){return De*2+ke()}function He(De,ze,Oe){var Be=B(De),gt=W(De),st=Me(ze),yt=Ie(Oe),nt=$e(ze),Ye=Ge(Oe);Be.scrollLeft=st,Be.scrollTop=yt,gt.scrollLeft=nt,gt.scrollTop=Ye}function We(){var De=s(oe).container;if(!De){De=document.createElement("div"),De.className=x,De.style.cssText=w(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),s(oe).container=De,V(De),oe.appendChild(De);var ze=function(){s(oe).onRendered&&s(oe).onRendered()};z(De,"animationstart",ze),s(oe).onAnimationStart=ze}return De}function Ze(){function De(){var vt=s(oe).style;if(vt.position==="static"){oe.style.setProperty("position","relative",te.important?"important":"");var Ot=function(Ft,Vt,or,Zt){function sr(lr){return lr.replace(/[^-\d\.]/g,"")}var Jt=or[Zt];Jt!=="auto"&&sr(Jt)!=="0"&&(Ft.warn("An element that is positioned static has style."+Zt+"="+Jt+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Zt+" will be set to 0. Element: ",Vt),Vt.style[Zt]=0)};Ot(t,oe,vt,"top"),Ot(t,oe,vt,"right"),Ot(t,oe,vt,"bottom"),Ot(t,oe,vt,"left")}}function ze(vt,Ot,Ft,Vt){return vt=vt?vt+"px":"0",Ot=Ot?Ot+"px":"0",Ft=Ft?Ft+"px":"0",Vt=Vt?Vt+"px":"0",["left: "+vt,"top: "+Ot,"right: "+Vt,"bottom: "+Ft]}if(le("Injecting elements"),!s(oe)){le("Aborting because element has been uninstalled");return}De();var Oe=s(oe).container;Oe||(Oe=We());var Be=h.width,gt=h.height,st=w(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),yt=w(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ze(-(1+Be),-(1+gt),-gt,-Be))),nt=w(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Ye=w(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),bt=w(["position: absolute","left: 0","top: 0"]),xt=w(["position: absolute","width: 200%","height: 200%"]),wt=document.createElement("div"),St=document.createElement("div"),Lt=document.createElement("div"),Gt=document.createElement("div"),Kt=document.createElement("div"),ar=document.createElement("div");wt.dir="ltr",wt.style.cssText=st,wt.className=x,St.className=x,St.style.cssText=yt,Lt.style.cssText=nt,Gt.style.cssText=bt,Kt.style.cssText=Ye,ar.style.cssText=xt,Lt.appendChild(Gt),Kt.appendChild(ar),St.appendChild(Lt),St.appendChild(Kt),wt.appendChild(St),Oe.appendChild(wt);function tr(){var vt=s(oe);vt&&vt.onExpand?vt.onExpand():le("Aborting expand scroll handler: element has been uninstalled")}function rr(){var vt=s(oe);vt&&vt.onShrink?vt.onShrink():le("Aborting shrink scroll handler: element has been uninstalled")}z(Lt,"scroll",tr),z(Kt,"scroll",rr),s(oe).onExpandScroll=tr,s(oe).onShrinkScroll=rr}function ct(){function De(nt,Ye,bt){var xt=Ee(nt),wt=Me(Ye),St=Ie(bt);xt.style.setProperty("width",wt+"px",te.important?"important":""),xt.style.setProperty("height",St+"px",te.important?"important":"")}function ze(nt){var Ye=oe.offsetWidth,bt=oe.offsetHeight,xt=Ye!==s(oe).lastWidth||bt!==s(oe).lastHeight;le("Storing current size",Ye,bt),we(oe,Ye,bt),o.add(0,function(){if(xt){if(!s(oe)){le("Aborting because element has been uninstalled");return}if(!Oe()){le("Aborting because element container has not been initialized");return}if(te.debug){var St=oe.offsetWidth,Lt=oe.offsetHeight;(St!==Ye||Lt!==bt)&&t.warn(l.get(oe),"Scroll: Size changed before updating detector elements.")}De(oe,Ye,bt)}}),o.add(1,function(){if(!s(oe)){le("Aborting because element has been uninstalled");return}if(!Oe()){le("Aborting because element container has not been initialized");return}He(oe,Ye,bt)}),xt&&nt&&o.add(2,function(){if(!s(oe)){le("Aborting because element has been uninstalled");return}if(!Oe()){le("Aborting because element container has not been initialized");return}nt()})}function Oe(){return!!s(oe).container}function Be(){function nt(){return s(oe).lastNotifiedWidth===void 0}le("notifyListenersIfNeeded invoked");var Ye=s(oe);if(nt()&&Ye.lastWidth===Ye.startSize.width&&Ye.lastHeight===Ye.startSize.height)return le("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(Ye.lastWidth===Ye.lastNotifiedWidth&&Ye.lastHeight===Ye.lastNotifiedHeight)return le("Not notifying: Size already notified");le("Current size not notified, notifying..."),Ye.lastNotifiedWidth=Ye.lastWidth,Ye.lastNotifiedHeight=Ye.lastHeight,forEach$1(s(oe).listeners,function(bt){bt(oe)})}function gt(){if(le("startanimation triggered."),me(oe)){le("Ignoring since element is still unrendered...");return}le("Element rendered.");var nt=B(oe),Ye=W(oe);(nt.scrollLeft===0||nt.scrollTop===0||Ye.scrollLeft===0||Ye.scrollTop===0)&&(le("Scrollbars out of sync. Updating detector elements..."),ze(Be))}function st(){if(le("Scroll detected."),me(oe)){le("Scroll event fired while unrendered. Ignoring...");return}ze(Be)}if(le("registerListenersAndPositionElements invoked."),!s(oe)){le("Aborting because element has been uninstalled");return}s(oe).onRendered=gt,s(oe).onExpand=st,s(oe).onShrink=st;var yt=s(oe).style;De(oe,yt.width,yt.height)}function Qe(){if(le("finalizeDomMutation invoked."),!s(oe)){le("Aborting because element has been uninstalled");return}var De=s(oe).style;we(oe,De.width,De.height),He(oe,De.width,De.height)}function mt(){ae(oe)}function ht(){le("Installing..."),Se(),ye(),o.add(0,Te),o.add(1,Ze),o.add(2,ct),o.add(3,Qe),o.add(4,mt)}le("Making detectable..."),he(oe)?(le("Element is detached"),We(),le("Waiting until element is attached..."),s(oe).onRendered=function(){le("Element is now attached"),ht()}):ht()}function X(te){var oe=s(te);oe&&(oe.onExpandScroll&&F(B(te),"scroll",oe.onExpandScroll),oe.onShrinkScroll&&F(W(te),"scroll",oe.onShrinkScroll),oe.onAnimationStart&&F(oe.container,"animationstart",oe.onAnimationStart),oe.container&&te.removeChild(oe.container))}return{makeDetectable:Z,addListener:Y,uninstall:X,initDocument:T}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection(r){return Array.isArray(r)||r.length!==void 0}function toArray(r){if(Array.isArray(r))return r;var t=[];return forEach(r,function(o){t.push(o)}),t}function isElement(r){return r&&r.nodeType===1}var elementResizeDetector=function(r){r=r||{};var t;if(r.idHandler)t={get:function(Z){return r.idHandler.get(Z,!0)},set:r.idHandler.set};else{var o=idGeneratorMaker(),s=idHandlerMaker({idGenerator:o,stateHandler});t=s}var l=r.reporter;if(!l){var h=l===!1;l=reporterMaker(h)}var v=getOption(r,"batchProcessor",batchProcessorMaker({reporter:l})),x={};x.callOnAdd=!!getOption(r,"callOnAdd",!0),x.debug=!!getOption(r,"debug",!1);var T=listenerHandlerMaker(t),w=elementUtilsMaker({stateHandler}),C,M=getOption(r,"strategy","object"),V=getOption(r,"important",!1),z={reporter:l,batchProcessor:v,stateHandler,idHandler:t,important:V};if(M==="scroll"&&(browserDetector.isLegacyOpera()?(l.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),M="object"):browserDetector.isIE(9)&&(l.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),M="object")),M==="scroll")C=scrollStrategyMaker(z);else if(M==="object")C=objectStrategyMaker(z);else throw new Error("Invalid strategy name: "+M);var F={};function B(Z,X,te){function oe(ye){var Se=T.get(ye);forEach(Se,function(we){we(ye)})}function ae(ye,Se,Te){T.add(Se,Te),ye&&Te(Se)}if(te||(te=X,X=Z,Z={}),!X)throw new Error("At least one element required.");if(!te)throw new Error("Listener required.");if(isElement(X))X=[X];else if(isCollection(X))X=toArray(X);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var le=0,he=getOption(Z,"callOnAdd",x.callOnAdd),me=getOption(Z,"onReady",function(){}),_e=getOption(Z,"debug",x.debug);forEach(X,function(Se){stateHandler.getState(Se)||(stateHandler.initState(Se),t.set(Se));var Te=t.get(Se);if(_e&&l.log("Attaching listener to element",Te,Se),!w.isDetectable(Se)){if(_e&&l.log(Te,"Not detectable."),w.isBusy(Se)){_e&&l.log(Te,"System busy making it detectable"),ae(he,Se,te),F[Te]=F[Te]||[],F[Te].push(function(){le++,le===X.length&&me()});return}return _e&&l.log(Te,"Making detectable..."),w.markBusy(Se,!0),C.makeDetectable({debug:_e,important:V},Se,function(Ee){if(_e&&l.log(Te,"onElementDetectable"),stateHandler.getState(Ee)){w.markAsDetectable(Ee),w.markBusy(Ee,!1),C.addListener(Ee,oe),ae(he,Ee,te);var Ce=stateHandler.getState(Ee);if(Ce&&Ce.startSize){var ke=Ee.offsetWidth,Me=Ee.offsetHeight;(Ce.startSize.width!==ke||Ce.startSize.height!==Me)&&oe(Ee)}F[Te]&&forEach(F[Te],function(Ie){Ie()})}else _e&&l.log(Te,"Element uninstalled before being detectable.");delete F[Te],le++,le===X.length&&me()})}_e&&l.log(Te,"Already detecable, adding listener."),ae(he,Se,te),le++}),le===X.length&&me()}function W(Z){if(!Z)return l.error("At least one element is required.");if(isElement(Z))Z=[Z];else if(isCollection(Z))Z=toArray(Z);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(Z,function(X){T.removeAllListeners(X),C.uninstall(X),stateHandler.cleanState(X)})}function Y(Z){C.initDocument&&C.initDocument(Z)}return{listenTo:B,removeListener:T.removeListener,removeAllListeners:T.removeAllListeners,uninstall:W,initDocument:Y}};function getOption(r,t,o){var s=r[t];return s==null&&o!==void 0?o:s}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt(r){return{all:r=r||new Map,on:function(t,o){var s=r.get(t);s?s.push(o):r.set(t,[o])},off:function(t,o){var s=r.get(t);s&&(o?s.splice(s.indexOf(o)>>>0,1):r.set(t,[]))},emit:function(t,o){var s=r.get(t);s&&s.slice().map(function(l){l(o)}),(s=r.get("*"))&&s.slice().map(function(l){l(t,o)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted(r,t,o){erd.listenTo(r,s=>{const l=s.offsetWidth,h=s.offsetHeight;t!=null&&t.instance?emitter.emit("resize",{detail:{width:l,height:h}}):o.el.dispatchEvent(new CustomEvent("resize",{detail:{width:l,height:h}}))})},unmounted(r){erd.uninstall(r)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1(r,t){const o={...r};for(const s in t){const l=t[s],h=typeof l;s in defaultIconSizeCustomisations$1?(l===null||l&&(h==="string"||h==="number"))&&(o[s]=l):h===typeof o[s]&&(o[s]=s==="rotate"?l%4:l)}return o}const separator$1=/[\s,]+/;function flipFromString$1(r,t){t.split(separator$1).forEach(o=>{switch(o.trim()){case"horizontal":r.hFlip=!0;break;case"vertical":r.vFlip=!0;break}})}function rotateFromString$1(r,t=0){const o=r.replace(/^-?[0-9.]*/,"");function s(l){for(;l<0;)l+=4;return l%4}if(o===""){const l=parseInt(r);return isNaN(l)?0:s(l)}else if(o!==r){let l=0;switch(o){case"%":l=25;break;case"deg":l=90}if(l){let h=parseFloat(r.slice(0,r.length-o.length));return isNaN(h)?0:(h=h/l,h%1===0?s(h):0)}}return t}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1(r,t,o){if(t===1)return r;if(o=o||100,typeof r=="number")return Math.ceil(r*t*o)/o;if(typeof r!="string")return r;const s=r.split(unitsSplit$1);if(s===null||!s.length)return r;const l=[];let h=s.shift(),v=unitsTest$1.test(h);for(;;){if(v){const x=parseFloat(h);isNaN(x)?l.push(h):l.push(Math.ceil(x*t*o)/o)}else l.push(h);if(h=s.shift(),h===void 0)return l.join("");v=!v}}const isUnsetKeyword$1=r=>r==="unset"||r==="undefined"||r==="none";function iconToSVG$1(r,t){const o={...defaultIconProps$1,...r},s={...defaultIconCustomisations$1,...t},l={left:o.left,top:o.top,width:o.width,height:o.height};let h=o.body;[o,s].forEach(F=>{const B=[],W=F.hFlip,Y=F.vFlip;let Z=F.rotate;W?Y?Z+=2:(B.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),B.push("scale(-1 1)"),l.top=l.left=0):Y&&(B.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),B.push("scale(1 -1)"),l.top=l.left=0);let X;switch(Z<0&&(Z-=Math.floor(Z/4)*4),Z=Z%4,Z){case 1:X=l.height/2+l.top,B.unshift("rotate(90 "+X.toString()+" "+X.toString()+")");break;case 2:B.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:X=l.width/2+l.left,B.unshift("rotate(-90 "+X.toString()+" "+X.toString()+")");break}Z%2===1&&(l.left!==l.top&&(X=l.left,l.left=l.top,l.top=X),l.width!==l.height&&(X=l.width,l.width=l.height,l.height=X)),B.length&&(h='<g transform="'+B.join(" ")+'">'+h+"</g>")});const v=s.width,x=s.height,T=l.width,w=l.height;let C,M;v===null?(M=x===null?"1em":x==="auto"?w:x,C=calculateSize$1(M,T/w)):(C=v==="auto"?T:v,M=x===null?calculateSize$1(C,w/T):x==="auto"?w:x);const V={},z=(F,B)=>{isUnsetKeyword$1(B)||(V[F]=B.toString())};return z("width",C),z("height",M),V.viewBox=l.left.toString()+" "+l.top.toString()+" "+T.toString()+" "+w.toString(),{attributes:V,body:h}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1(r,t=randomPrefix$1){const o=[];let s;for(;s=regex$1.exec(r);)o.push(s[1]);if(!o.length)return r;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(h=>{const v=typeof t=="function"?t(h):t+(counter$1++).toString(),x=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+x+')([")]|\\.[a-z])',"g"),"$1"+v+l+"$3")}),r=r.replace(new RegExp(l,"g"),""),r}function iconToHTML$1(r,t){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)o+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}function encodeSVGforURL$1(r){return r.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData$1(r){return"data:image/svg+xml,"+encodeSVGforURL$1(r)}function svgToURL$1(r){return'url("'+svgToData$1(r)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const r in propsToAddTo$1){const t=propsToAddTo$1[r];for(const o in propsToAdd$1)t[r+o]=propsToAdd$1[o]}const customisationAliases$1={};["horizontal","vertical"].forEach(r=>{const t=r.slice(0,1)+"Flip";customisationAliases$1[r+"-flip"]=t,customisationAliases$1[r.slice(0,1)+"-flip"]=t,customisationAliases$1[r+"Flip"]=t});function fixSize$1(r){return r+(r.match(/^[-0-9.]+$/)?"px":"")}const render$1=(r,t)=>{const o=mergeCustomisations$1(defaultExtendedIconCustomisations$1,t),s={...svgDefaults$1},l=t.mode||"svg",h={},v=t.style,x=typeof v=="object"&&!(v instanceof Array)?v:{};for(let B in t){const W=t[B];if(W!==void 0)switch(B){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[B]=W===!0||W==="true"||W===1;break;case"flip":typeof W=="string"&&flipFromString$1(o,W);break;case"color":h.color=W;break;case"rotate":typeof W=="string"?o[B]=rotateFromString$1(W):typeof W=="number"&&(o[B]=W);break;case"ariaHidden":case"aria-hidden":W!==!0&&W!=="true"&&delete s["aria-hidden"];break;default:{const Y=customisationAliases$1[B];Y?(W===!0||W==="true"||W===1)&&(o[Y]=!0):defaultExtendedIconCustomisations$1[B]===void 0&&(s[B]=W)}}}const T=iconToSVG$1(r,o),w=T.attributes;if(o.inline&&(h.verticalAlign="-0.125em"),l==="svg"){s.style={...h,...x},Object.assign(s,w);let B=0,W=t.id;return typeof W=="string"&&(W=W.replace(/-/g,"_")),s.innerHTML=replaceIDs$1(T.body,W?()=>W+"ID"+B++:"iconifyVue"),Vue.h("svg",s)}const{body:C,width:M,height:V}=r,z=l==="mask"||(l==="bg"?!1:C.indexOf("currentColor")!==-1),F=iconToHTML$1(C,{...w,width:M+"",height:V+""});return s.style={...h,"--svg":svgToURL$1(F),width:fixSize$1(w.width),height:fixSize$1(w.height),...commonProps$1,...z?monotoneProps$1:coloredProps$1,...x},Vue.h("span",s)},storage$1=Object.create(null);function addIcon$1(r,t){storage$1[r]=t}const Icon$1=Vue.defineComponent({inheritAttrs:!1,render(){const r=this.$attrs,t=r.icon,o=typeof t=="string"?storage$1[t]:typeof t=="object"?t:null;return o===null||typeof o!="object"||typeof o.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...o},r)}}),iconifyIconOffline=Vue.defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const r=this.$attrs;return Vue.h(Icon$1,{icon:this.icon,style:r!=null&&r.style?Object.assign(r.style,{outline:"none"}):{outline:"none"},...r},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(r,t,o,s="")=>{const l=r.split(":");if(r.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;s=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const x=l.pop(),T=l.pop(),w={provider:l.length>0?l[0]:s,prefix:T,name:x};return t&&!validateIconName(w)?null:w}const h=l[0],v=h.split("-");if(v.length>1){const x={provider:s,prefix:v.shift(),name:v.join("-")};return t&&!validateIconName(x)?null:x}if(o&&s===""){const x={provider:s,prefix:"",name:h};return t&&!validateIconName(x,o)?null:x}return null},validateIconName=(r,t)=>r?!!((r.provider===""||r.provider.match(matchIconName))&&(t&&r.prefix===""||r.prefix.match(matchIconName))&&r.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(r,t){const o={};!r.hFlip!=!t.hFlip&&(o.hFlip=!0),!r.vFlip!=!t.vFlip&&(o.vFlip=!0);const s=((r.rotate||0)+(t.rotate||0))%4;return s&&(o.rotate=s),o}function mergeIconData(r,t){const o=mergeIconTransformations(r,t);for(const s in defaultExtendedIconProps)s in defaultIconTransformations?s in r&&!(s in o)&&(o[s]=defaultIconTransformations[s]):s in t?o[s]=t[s]:s in r&&(o[s]=r[s]);return o}function getIconsTree(r,t){const o=r.icons,s=r.aliases||Object.create(null),l=Object.create(null);function h(v){if(o[v])return l[v]=[];if(!(v in l)){l[v]=null;const x=s[v]&&s[v].parent,T=x&&h(x);T&&(l[v]=[x].concat(T))}return l[v]}return(t||Object.keys(o).concat(Object.keys(s))).forEach(h),l}function internalGetIconData(r,t,o){const s=r.icons,l=r.aliases||Object.create(null);let h={};function v(x){h=mergeIconData(s[x]||l[x],h)}return v(t),o.forEach(v),mergeIconData(r,h)}function parseIconSet(r,t){const o=[];if(typeof r!="object"||typeof r.icons!="object")return o;r.not_found instanceof Array&&r.not_found.forEach(l=>{t(l,null),o.push(l)});const s=getIconsTree(r);for(const l in s){const h=s[l];h&&(t(l,internalGetIconData(r,l,h)),o.push(l))}return o}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(r,t){for(const o in t)if(o in r&&typeof r[o]!=typeof t[o])return!1;return!0}function quicklyValidateIconSet(r){if(typeof r!="object"||r===null)return null;const t=r;if(typeof t.prefix!="string"||!r.icons||typeof r.icons!="object"||!checkOptionalProps(r,optionalPropertyDefaults))return null;const o=t.icons;for(const l in o){const h=o[l];if(!l.match(matchIconName)||typeof h.body!="string"||!checkOptionalProps(h,defaultExtendedIconProps))return null}const s=t.aliases||Object.create(null);for(const l in s){const h=s[l],v=h.parent;if(!l.match(matchIconName)||typeof v!="string"||!o[v]&&!s[v]||!checkOptionalProps(h,defaultExtendedIconProps))return null}return t}const dataStorage=Object.create(null);function newStorage(r,t){return{provider:r,prefix:t,icons:Object.create(null),missing:new Set}}function getStorage(r,t){const o=dataStorage[r]||(dataStorage[r]=Object.create(null));return o[t]||(o[t]=newStorage(r,t))}function addIconSet(r,t){return quicklyValidateIconSet(t)?parseIconSet(t,(o,s)=>{s?r.icons[o]=s:r.missing.add(o)}):[]}function addIconToStorage(r,t,o){try{if(typeof o.body=="string")return r.icons[t]={...o},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(r){return typeof r=="boolean"&&(simpleNames=r),simpleNames}function getIconData(r){const t=typeof r=="string"?stringToIcon(r,!0,simpleNames):r;if(t){const o=getStorage(t.provider,t.prefix),s=t.name;return o.icons[s]||(o.missing.has(s)?null:void 0)}}function addIcon(r,t){const o=stringToIcon(r,!0,simpleNames);if(!o)return!1;const s=getStorage(o.provider,o.prefix);return addIconToStorage(s,o.name,t)}function addCollection(r,t){if(typeof r!="object")return!1;if(typeof t!="string"&&(t=r.provider||""),simpleNames&&!t&&!r.prefix){let l=!1;return quicklyValidateIconSet(r)&&(r.prefix="",parseIconSet(r,(h,v)=>{v&&addIcon(h,v)&&(l=!0)})),l}const o=r.prefix;if(!validateIconName({provider:t,prefix:o,name:"a"}))return!1;const s=getStorage(t,o);return!!addIconSet(s,r)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(r,t,o){if(t===1)return r;if(o=o||100,typeof r=="number")return Math.ceil(r*t*o)/o;if(typeof r!="string")return r;const s=r.split(unitsSplit);if(s===null||!s.length)return r;const l=[];let h=s.shift(),v=unitsTest.test(h);for(;;){if(v){const x=parseFloat(h);isNaN(x)?l.push(h):l.push(Math.ceil(x*t*o)/o)}else l.push(h);if(h=s.shift(),h===void 0)return l.join("");v=!v}}const isUnsetKeyword=r=>r==="unset"||r==="undefined"||r==="none";function iconToSVG(r,t){const o={...defaultIconProps,...r},s={...defaultIconCustomisations,...t},l={left:o.left,top:o.top,width:o.width,height:o.height};let h=o.body;[o,s].forEach(F=>{const B=[],W=F.hFlip,Y=F.vFlip;let Z=F.rotate;W?Y?Z+=2:(B.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),B.push("scale(-1 1)"),l.top=l.left=0):Y&&(B.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),B.push("scale(1 -1)"),l.top=l.left=0);let X;switch(Z<0&&(Z-=Math.floor(Z/4)*4),Z=Z%4,Z){case 1:X=l.height/2+l.top,B.unshift("rotate(90 "+X.toString()+" "+X.toString()+")");break;case 2:B.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:X=l.width/2+l.left,B.unshift("rotate(-90 "+X.toString()+" "+X.toString()+")");break}Z%2===1&&(l.left!==l.top&&(X=l.left,l.left=l.top,l.top=X),l.width!==l.height&&(X=l.width,l.width=l.height,l.height=X)),B.length&&(h='<g transform="'+B.join(" ")+'">'+h+"</g>")});const v=s.width,x=s.height,T=l.width,w=l.height;let C,M;v===null?(M=x===null?"1em":x==="auto"?w:x,C=calculateSize(M,T/w)):(C=v==="auto"?T:v,M=x===null?calculateSize(C,w/T):x==="auto"?w:x);const V={},z=(F,B)=>{isUnsetKeyword(B)||(V[F]=B.toString())};return z("width",C),z("height",M),V.viewBox=l.left.toString()+" "+l.top.toString()+" "+T.toString()+" "+w.toString(),{attributes:V,body:h}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(r,t=randomPrefix){const o=[];let s;for(;s=regex.exec(r);)o.push(s[1]);if(!o.length)return r;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(h=>{const v=typeof t=="function"?t(h):t+(counter++).toString(),x=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+x+')([")]|\\.[a-z])',"g"),"$1"+v+l+"$3")}),r=r.replace(new RegExp(l,"g"),""),r}const storage=Object.create(null);function setAPIModule(r,t){storage[r]=t}function getAPIModule(r){return storage[r]||storage[""]}function createAPIConfig(r){let t;if(typeof r.resources=="string")t=[r.resources];else if(t=r.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:r.path||"/",maxURL:r.maxURL||500,rotate:r.rotate||750,timeout:r.timeout||5e3,random:r.random===!0,index:r.index||0,dataAfterTimeout:r.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(r,t){const o=createAPIConfig(t);return o===null?!1:(configStorage[r]=o,!0)}function getAPIConfig(r){return configStorage[r]}const detectFetch=()=>{let r;try{if(r=fetch,typeof r=="function")return r}catch{}};let fetchModule=detectFetch();function calculateMaxLength(r,t){const o=getAPIConfig(r);if(!o)return 0;let s;if(!o.maxURL)s=0;else{let l=0;o.resources.forEach(v=>{l=Math.max(l,v.length)});const h=t+".json?icons=";s=o.maxURL-l-o.path.length-h.length}return s}function shouldAbort(r){return r===404}const prepare=(r,t,o)=>{const s=[],l=calculateMaxLength(r,t),h="icons";let v={type:h,provider:r,prefix:t,icons:[]},x=0;return o.forEach((T,w)=>{x+=T.length+1,x>=l&&w>0&&(s.push(v),v={type:h,provider:r,prefix:t,icons:[]},x=T.length),v.icons.push(T)}),s.push(v),s};function getPath(r){if(typeof r=="string"){const t=getAPIConfig(r);if(t)return t.path}return"/"}const send=(r,t,o)=>{if(!fetchModule){o("abort",424);return}let s=getPath(t.provider);switch(t.type){case"icons":{const h=t.prefix,x=t.icons.join(","),T=new URLSearchParams({icons:x});s+=h+".json?"+T.toString();break}case"custom":{const h=t.uri;s+=h.slice(0,1)==="/"?h.slice(1):h;break}default:o("abort",400);return}let l=503;fetchModule(r+s).then(h=>{const v=h.status;if(v!==200){setTimeout(()=>{o(shouldAbort(v)?"abort":"next",v)});return}return l=501,h.json()}).then(h=>{if(typeof h!="object"||h===null){setTimeout(()=>{h===404?o("abort",h):o("next",l)});return}setTimeout(()=>{o("success",h)})}).catch(()=>{o("next",l)})},fetchAPIModule={prepare,send};function sortIcons(r){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);r.sort((l,h)=>l.provider!==h.provider?l.provider.localeCompare(h.provider):l.prefix!==h.prefix?l.prefix.localeCompare(h.prefix):l.name.localeCompare(h.name));let s={provider:"",prefix:"",name:""};return r.forEach(l=>{if(s.name===l.name&&s.prefix===l.prefix&&s.provider===l.provider)return;s=l;const h=l.provider,v=l.prefix,x=l.name,T=o[h]||(o[h]=Object.create(null)),w=T[v]||(T[v]=getStorage(h,v));let C;x in w.icons?C=t.loaded:v===""||w.missing.has(x)?C=t.missing:C=t.pending;const M={provider:h,prefix:v,name:x};C.push(M)}),t}function removeCallback(r,t){r.forEach(o=>{const s=o.loaderCallbacks;s&&(o.loaderCallbacks=s.filter(l=>l.id!==t))})}function updateCallbacks(r){r.pendingCallbacksFlag||(r.pendingCallbacksFlag=!0,setTimeout(()=>{r.pendingCallbacksFlag=!1;const t=r.loaderCallbacks?r.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const s=r.provider,l=r.prefix;t.forEach(h=>{const v=h.icons,x=v.pending.length;v.pending=v.pending.filter(T=>{if(T.prefix!==l)return!0;const w=T.name;if(r.icons[w])v.loaded.push({provider:s,prefix:l,name:w});else if(r.missing.has(w))v.missing.push({provider:s,prefix:l,name:w});else return o=!0,!0;return!1}),v.pending.length!==x&&(o||removeCallback([r],h.id),h.callback(v.loaded.slice(0),v.missing.slice(0),v.pending.slice(0),h.abort))})}))}let idCounter=0;function storeCallback(r,t,o){const s=idCounter++,l=removeCallback.bind(null,o,s);if(!t.pending.length)return l;const h={id:s,icons:t,callback:r,abort:l};return o.forEach(v=>{(v.loaderCallbacks||(v.loaderCallbacks=[])).push(h)}),l}function listToIcons(r,t=!0,o=!1){const s=[];return r.forEach(l=>{const h=typeof l=="string"?stringToIcon(l,t,o):l;h&&s.push(h)}),s}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(r,t,o,s){const l=r.resources.length,h=r.random?Math.floor(Math.random()*l):r.index;let v;if(r.random){let ae=r.resources.slice(0);for(v=[];ae.length>1;){const le=Math.floor(Math.random()*ae.length);v.push(ae[le]),ae=ae.slice(0,le).concat(ae.slice(le+1))}v=v.concat(ae)}else v=r.resources.slice(h).concat(r.resources.slice(0,h));const x=Date.now();let T="pending",w=0,C,M=null,V=[],z=[];typeof s=="function"&&z.push(s);function F(){M&&(clearTimeout(M),M=null)}function B(){T==="pending"&&(T="aborted"),F(),V.forEach(ae=>{ae.status==="pending"&&(ae.status="aborted")}),V=[]}function W(ae,le){le&&(z=[]),typeof ae=="function"&&z.push(ae)}function Y(){return{startTime:x,payload:t,status:T,queriesSent:w,queriesPending:V.length,subscribe:W,abort:B}}function Z(){T="failed",z.forEach(ae=>{ae(void 0,C)})}function X(){V.forEach(ae=>{ae.status==="pending"&&(ae.status="aborted")}),V=[]}function te(ae,le,he){const me=le!=="success";switch(V=V.filter(_e=>_e!==ae),T){case"pending":break;case"failed":if(me||!r.dataAfterTimeout)return;break;default:return}if(le==="abort"){C=he,Z();return}if(me){C=he,V.length||(v.length?oe():Z());return}if(F(),X(),!r.random){const _e=r.resources.indexOf(ae.resource);_e!==-1&&_e!==r.index&&(r.index=_e)}T="completed",z.forEach(_e=>{_e(he)})}function oe(){if(T!=="pending")return;F();const ae=v.shift();if(ae===void 0){if(V.length){M=setTimeout(()=>{F(),T==="pending"&&(X(),Z())},r.timeout);return}Z();return}const le={status:"pending",resource:ae,callback:(he,me)=>{te(le,he,me)}};V.push(le),w++,M=setTimeout(oe,r.rotate),o(ae,t,le.callback)}return setTimeout(oe),Y}function initRedundancy(r){const t={...defaultConfig,...r};let o=[];function s(){o=o.filter(x=>x().status==="pending")}function l(x,T,w){const C=sendQuery(t,x,T,(M,V)=>{s(),w&&w(M,V)});return o.push(C),C}function h(x){return o.find(T=>x(T))||null}return{query:l,find:h,setIndex:x=>{t.index=x},getIndex:()=>t.index,cleanup:s}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(r){if(!redundancyCache[r]){const t=getAPIConfig(r);if(!t)return;const o=initRedundancy(t),s={config:t,redundancy:o};redundancyCache[r]=s}return redundancyCache[r]}function sendAPIQuery(r,t,o){let s,l;if(typeof r=="string"){const h=getAPIModule(r);if(!h)return o(void 0,424),emptyCallback$1;l=h.send;const v=getRedundancyCache(r);v&&(s=v.redundancy)}else{const h=createAPIConfig(r);if(h){s=initRedundancy(h);const v=r.resources?r.resources[0]:"",x=getAPIModule(v);x&&(l=x.send)}}return!s||!l?(o(void 0,424),emptyCallback$1):s.query(t,l,o)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(r,t){try{return r.getItem(t)}catch{}}function setStoredItem(r,t,o){try{return r.setItem(t,o),!0}catch{}}function removeStoredItem(r,t){try{r.removeItem(t)}catch{}}function setBrowserStorageItemsCount(r,t){return setStoredItem(r,browserCacheCountKey,t.toString())}function getBrowserStorageItemsCount(r){return parseInt(getStoredItem(r,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(r){browserStorageStatus=r}let _window=typeof window>"u"?{}:window;function getBrowserStorage(r){const t=r+"Storage";try{if(_window&&_window[t]&&typeof _window[t].length=="number")return _window[t]}catch{}browserStorageConfig[r]=!1}function iterateBrowserStorage(r,t){const o=getBrowserStorage(r);if(!o)return;const s=getStoredItem(o,browserCacheVersionKey);if(s!==browserCacheVersion){if(s){const x=getBrowserStorageItemsCount(o);for(let T=0;T<x;T++)removeStoredItem(o,browserCachePrefix+T.toString())}setStoredItem(o,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(o,0);return}const l=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,h=x=>{const T=browserCachePrefix+x.toString(),w=getStoredItem(o,T);if(typeof w=="string"){try{const C=JSON.parse(w);if(typeof C=="object"&&typeof C.cached=="number"&&C.cached>l&&typeof C.provider=="string"&&typeof C.data=="object"&&typeof C.data.prefix=="string"&&t(C,x))return!0}catch{}removeStoredItem(o,T)}};let v=getBrowserStorageItemsCount(o);for(let x=v-1;x>=0;x--)h(x)||(x===v-1?(v--,setBrowserStorageItemsCount(o,v)):browserStorageEmptyItems[r].add(x))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const r in browserStorageConfig)iterateBrowserStorage(r,t=>{const o=t.data,s=t.provider,l=o.prefix,h=getStorage(s,l);if(!addIconSet(h,o).length)return!1;const v=o.lastModified||-1;return h.lastModifiedCached=h.lastModifiedCached?Math.min(h.lastModifiedCached,v):v,!0})}}function updateLastModified(r,t){const o=r.lastModifiedCached;if(o&&o>=t)return o===t;if(r.lastModifiedCached=t,o)for(const s in browserStorageConfig)iterateBrowserStorage(s,l=>{const h=l.data;return l.provider!==r.provider||h.prefix!==r.prefix||h.lastModified===t});return!0}function storeInBrowserStorage(r,t){browserStorageStatus||initBrowserStorage();function o(s){let l;if(!browserStorageConfig[s]||!(l=getBrowserStorage(s)))return;const h=browserStorageEmptyItems[s];let v;if(h.size)h.delete(v=Array.from(h).shift());else if(v=getBrowserStorageItemsCount(l),!setBrowserStorageItemsCount(l,v+1))return;const x={cached:Math.floor(Date.now()/browserStorageHour),provider:r.provider,data:t};return setStoredItem(l,browserCachePrefix+v.toString(),JSON.stringify(x))}t.lastModified&&!updateLastModified(r,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),o("local")||o("session"))}function emptyCallback(){}function loadedNewIcons(r){r.iconsLoaderFlag||(r.iconsLoaderFlag=!0,setTimeout(()=>{r.iconsLoaderFlag=!1,updateCallbacks(r)}))}function loadNewIcons(r,t){r.iconsToLoad?r.iconsToLoad=r.iconsToLoad.concat(t).sort():r.iconsToLoad=t,r.iconsQueueFlag||(r.iconsQueueFlag=!0,setTimeout(()=>{r.iconsQueueFlag=!1;const{provider:o,prefix:s}=r,l=r.iconsToLoad;delete r.iconsToLoad;let h;if(!l||!(h=getAPIModule(o)))return;h.prepare(o,s,l).forEach(x=>{sendAPIQuery(o,x,T=>{if(typeof T!="object")x.icons.forEach(w=>{r.missing.add(w)});else try{const w=addIconSet(r,T);if(!w.length)return;const C=r.pendingIcons;C&&w.forEach(M=>{C.delete(M)}),storeInBrowserStorage(r,T)}catch(w){console.error(w)}loadedNewIcons(r)})})}))}const loadIcons=(r,t)=>{const o=listToIcons(r,!0,allowSimpleNames()),s=sortIcons(o);if(!s.pending.length){let T=!0;return t&&setTimeout(()=>{T&&t(s.loaded,s.missing,s.pending,emptyCallback)}),()=>{T=!1}}const l=Object.create(null),h=[];let v,x;return s.pending.forEach(T=>{const{provider:w,prefix:C}=T;if(C===x&&w===v)return;v=w,x=C,h.push(getStorage(w,C));const M=l[w]||(l[w]=Object.create(null));M[C]||(M[C]=[])}),s.pending.forEach(T=>{const{provider:w,prefix:C,name:M}=T,V=getStorage(w,C),z=V.pendingIcons||(V.pendingIcons=new Set);z.has(M)||(z.add(M),l[w][C].push(M))}),h.forEach(T=>{const{provider:w,prefix:C}=T;l[w][C].length&&loadNewIcons(T,l[w][C])}),t?storeCallback(t,s,h):emptyCallback};function mergeCustomisations(r,t){const o={...r};for(const s in t){const l=t[s],h=typeof l;s in defaultIconSizeCustomisations?(l===null||l&&(h==="string"||h==="number"))&&(o[s]=l):h===typeof o[s]&&(o[s]=s==="rotate"?l%4:l)}return o}const separator=/[\s,]+/;function flipFromString(r,t){t.split(separator).forEach(o=>{switch(o.trim()){case"horizontal":r.hFlip=!0;break;case"vertical":r.vFlip=!0;break}})}function rotateFromString(r,t=0){const o=r.replace(/^-?[0-9.]*/,"");function s(l){for(;l<0;)l+=4;return l%4}if(o===""){const l=parseInt(r);return isNaN(l)?0:s(l)}else if(o!==r){let l=0;switch(o){case"%":l=25;break;case"deg":l=90}if(l){let h=parseFloat(r.slice(0,r.length-o.length));return isNaN(h)?0:(h=h/l,h%1===0?s(h):0)}}return t}function iconToHTML(r,t){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)o+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}function encodeSVGforURL(r){return r.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(r){return"data:image/svg+xml,"+encodeSVGforURL(r)}function svgToURL(r){return'url("'+svgToData(r)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const r in propsToAddTo){const t=propsToAddTo[r];for(const o in propsToAdd)t[r+o]=propsToAdd[o]}const customisationAliases={};["horizontal","vertical"].forEach(r=>{const t=r.slice(0,1)+"Flip";customisationAliases[r+"-flip"]=t,customisationAliases[r.slice(0,1)+"-flip"]=t,customisationAliases[r+"Flip"]=t});function fixSize(r){return r+(r.match(/^[-0-9.]+$/)?"px":"")}const render=(r,t)=>{const o=mergeCustomisations(defaultExtendedIconCustomisations,t),s={...svgDefaults},l=t.mode||"svg",h={},v=t.style,x=typeof v=="object"&&!(v instanceof Array)?v:{};for(let B in t){const W=t[B];if(W!==void 0)switch(B){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[B]=W===!0||W==="true"||W===1;break;case"flip":typeof W=="string"&&flipFromString(o,W);break;case"color":h.color=W;break;case"rotate":typeof W=="string"?o[B]=rotateFromString(W):typeof W=="number"&&(o[B]=W);break;case"ariaHidden":case"aria-hidden":W!==!0&&W!=="true"&&delete s["aria-hidden"];break;default:{const Y=customisationAliases[B];Y?(W===!0||W==="true"||W===1)&&(o[Y]=!0):defaultExtendedIconCustomisations[B]===void 0&&(s[B]=W)}}}const T=iconToSVG(r,o),w=T.attributes;if(o.inline&&(h.verticalAlign="-0.125em"),l==="svg"){s.style={...h,...x},Object.assign(s,w);let B=0,W=t.id;return typeof W=="string"&&(W=W.replace(/-/g,"_")),s.innerHTML=replaceIDs(T.body,W?()=>W+"ID"+B++:"iconifyVue"),Vue.h("svg",s)}const{body:C,width:M,height:V}=r,z=l==="mask"||(l==="bg"?!1:C.indexOf("currentColor")!==-1),F=iconToHTML(C,{...w,width:M+"",height:V+""});return s.style={...h,"--svg":svgToURL(F),width:fixSize(w.width),height:fixSize(w.height),...commonProps,...z?monotoneProps:coloredProps,...x},Vue.h("span",s)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const r=window;if(r.IconifyPreload!==void 0){const t=r.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!addCollection(s))&&console.error(o)}catch{console.error(o)}})}if(r.IconifyProviders!==void 0){const t=r.IconifyProviders;if(typeof t=="object"&&t!==null)for(let o in t){const s="IconifyProviders["+o+"] is invalid.";try{const l=t[o];if(typeof l!="object"||!l||l.resources===void 0)continue;addAPIProvider(o,l)||console.error(s)}catch{console.error(s)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=Vue.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(r,t){if(typeof r=="object"&&r!==null&&typeof r.body=="string")return this._name="",this.abortLoading(),{data:r};let o;if(typeof r!="string"||(o=stringToIcon(r,!1,!0))===null)return this.abortLoading(),null;const s=getIconData(o);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==r)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:r,abort:loadIcons([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==r&&(this._name=r,t&&t(r));const l=["iconify"];return o.prefix!==""&&l.push("iconify--"+o.prefix),o.provider!==""&&l.push("iconify--"+o.provider),{data:s,classes:l}}},render(){this.counter;const r=this.$attrs,t=this.iconMounted?this.getIcon(r.icon,r.onLoad):null;if(!t)return render(emptyIcon,r);let o=r;return t.classes&&(o={...r,class:(typeof r.class=="string"?r.class+" ":"")+t.classes.join(" ")}),render({...defaultIconProps,...t.data},o)}}),iconifyIconOnline=Vue.defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const r=this.$attrs;return Vue.h(Icon,{icon:`${this.icon}`,style:r!=null&&r.style?Object.assign(r.style,{outline:"none"}):{outline:"none"},...r},{default:()=>[]})}}),fontIcon=Vue.defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const r=this.$attrs;return Object.keys(r).includes("uni")||(r==null?void 0:r.iconType)==="uni"?Vue.h("i",{class:"iconfont",...r},this.icon):Object.keys(r).includes("svg")||(r==null?void 0:r.iconType)==="svg"?Vue.h("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[Vue.h("use",{"xlink:href":`#${this.icon}`})]}):Vue.h("i",{class:`iconfont ${this.icon}`,...r})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=Vue.defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup(r,{slots:t}){return()=>{var o;return t&&hasAuth(r.value)?Vue.createVNode(Vue.Fragment,null,[(o=t.default)==null?void 0:o.call(t)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:r})=>r.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const r=[];for(let t=0;t<200;t++)r.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return r},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:r})=>r.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1609837428e3,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1609837428e3,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1609912175e3,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",type:1,parentId:0,sort:0,leaderUserId:1,phone:"15888888888",email:"ry@qq.com",status:0,id:100,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"郑州分公司",type:2,parentId:100,sort:1,leaderUserId:104,phone:"15888888888",email:"ry@qq.com",status:0,id:101,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"研发部门",type:3,parentId:101,sort:1,leaderUserId:104,phone:"15888888888",email:"ry@qq.com",status:0,id:103,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"市场部门",type:3,parentId:102,sort:1,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:108,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"深圳分公司",type:2,parentId:100,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:102,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"市场部门",type:3,parentId:101,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:1,id:104,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"财务部门",type:3,parentId:102,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:109,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"测试部门",type:3,parentId:101,sort:3,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:105,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"财务部门",type:3,parentId:101,sort:4,leaderUserId:103,phone:"15888888888",email:"ry@qq.com",status:1,id:106,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"运维部门",type:3,parentId:101,sort:5,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:107,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1609837427e3,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1609981637e3,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1610553035e3,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1611166433e3,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(t,o){module.exports=o()})(commonjsGlobal,function(){return function(r){var t={};function o(s){if(t[s])return t[s].exports;var l=t[s]={exports:{},id:s,loaded:!1};return r[s].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}return o.m=r,o.c=t,o.p="",o(0)}([function(r,t,o){var s=o(1),l=o(3),h=o(5),v=o(20),x=o(23),T=o(25),w;typeof window<"u"&&(w=o(27));/*!
|
||
Mock - 模拟请求 & 模拟数据
|
||
https://github.com/nuysoft/Mock
|
||
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
|
||
*/var C={Handler:s,Random:h,Util:l,XHR:w,RE:v,toJSONSchema:x,valid:T,heredoc:l.heredoc,setup:function(M){return w.setup(M)},_mocked:{}};C.version="1.0.1-beta3",w&&(w.Mock=C),C.mock=function(M,V,z){return arguments.length===1?s.gen(M):(arguments.length===2&&(z=V,V=void 0),w&&(window.XMLHttpRequest=w),C._mocked[M+(V||"")]={rurl:M,rtype:V,template:z},C)},r.exports=C},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(r,t,o){t=t==null?"":t+"",o=o||{},o={path:o.path||[Constant.GUID],templatePath:o.templatePath||[Constant.GUID++],currentContext:o.currentContext,templateCurrentContext:o.templateCurrentContext||r,root:o.root||o.currentContext,templateRoot:o.templateRoot||o.templateCurrentContext||r};var s=Parser.parse(t),l=Util.type(r),h;return Handler[l]?(h=Handler[l]({type:l,template:r,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:s,context:o}),o.root||(o.root=h),h):r},Handler.extend({array:function(r){var t=[],o,s;if(r.template.length===0)return t;if(r.rule.parameters)if(r.rule.min===1&&r.rule.max===void 0)r.context.path.push(r.name),r.context.templatePath.push(r.name),t=Random.pick(Handler.gen(r.template,void 0,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();else if(r.rule.parameters[2])r.template.__order_index=r.template.__order_index||0,r.context.path.push(r.name),r.context.templatePath.push(r.name),t=Handler.gen(r.template,void 0,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})[r.template.__order_index%r.template.length],r.template.__order_index+=+r.rule.parameters[2],r.context.path.pop(),r.context.templatePath.pop();else for(o=0;o<r.rule.count;o++)for(s=0;s<r.template.length;s++)r.context.path.push(t.length),r.context.templatePath.push(s),t.push(Handler.gen(r.template[s],t.length,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();else for(o=0;o<r.template.length;o++)r.context.path.push(o),r.context.templatePath.push(o),t.push(Handler.gen(r.template[o],o,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();return t},object:function(r){var t={},o,s,l,h,v,x;if(r.rule.min!=null)for(o=Util.keys(r.template),o=Random.shuffle(o),o=o.slice(0,r.rule.count),x=0;x<o.length;x++)l=o[x],h=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(h),r.context.templatePath.push(l),t[h]=Handler.gen(r.template[l],l,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template}),r.context.path.pop(),r.context.templatePath.pop();else{o=[],s=[];for(l in r.template)(typeof r.template[l]=="function"?s:o).push(l);for(o=o.concat(s),x=0;x<o.length;x++)l=o[x],h=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(h),r.context.templatePath.push(l),t[h]=Handler.gen(r.template[l],l,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template}),r.context.path.pop(),r.context.templatePath.pop(),v=l.match(Constant.RE_KEY),v&&v[2]&&Util.type(r.template[l])==="number"&&(r.template[l]+=parseInt(v[2],10))}return t},number:function(r){var t,o;if(r.rule.decimal){for(r.template+="",o=r.template.split("."),o[0]=r.rule.range?r.rule.count:o[0],o[1]=(o[1]||"").slice(0,r.rule.dcount);o[1].length<r.rule.dcount;)o[1]+=o[1].length<r.rule.dcount-1?Random.character("number"):Random.character("123456789");t=parseFloat(o.join("."),10)}else t=r.rule.range&&!r.rule.parameters[2]?r.rule.count:r.template;return t},boolean:function(r){var t;return t=r.rule.parameters?Random.bool(r.rule.min,r.rule.max,r.template):r.template,t},string:function(r){var t="",o,s,l,h;if(r.template.length){for(r.rule.count==null&&(t+=r.template),o=0;o<r.rule.count;o++)t+=r.template;for(s=t.match(Constant.RE_PLACEHOLDER)||[],o=0;o<s.length;o++){if(l=s[o],/^\\/.test(l)){s.splice(o--,1);continue}if(h=Handler.placeholder(l,r.context.currentContext,r.context.templateCurrentContext,r),s.length===1&&l===t&&typeof h!=typeof t){t=h;break}t=t.replace(l,h)}}else t=r.rule.range?Random.string(r.rule.count):r.template;return t},function:function(r){return r.template.call(r.context.currentContext,r)},regexp:function(r){var t="";r.rule.count==null&&(t+=r.template.source);for(var o=0;o<r.rule.count;o++)t+=r.template.source;return RE.Handler.gen(RE.Parser.parse(t))}}),Handler.extend({_all:function(){var r={};for(var t in Random)r[t.toLowerCase()]=t;return r},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch(r){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function(r,t){var o=r,s=this.splitPathToArray(r),l=[];r.charAt(0)==="/"?l=[t.context.path[0]].concat(this.normalizePath(s)):s.length>1&&(l=t.context.path.slice(0),l.pop(),l=this.normalizePath(l.concat(s)));try{r=s[s.length-1];for(var h=t.context.root,v=t.context.templateRoot,x=1;x<l.length-1;x++)h=h[l[x]],v=v[l[x]];if(h&&r in h)return h[r];if(v&&typeof v=="object"&&r in v&&o!==v[r])return v[r]=Handler.gen(v[r],r,{currentContext:h,templateCurrentContext:v}),v[r]}catch{}return"@"+s.join("/")},normalizePath:function(r){for(var t=[],o=0;o<r.length;o++)switch(r[o]){case"..":t.pop();break;case".":break;default:t.push(r[o])}return t},splitPathToArray:function(r){var t=r.split(/\/+/);return t[t.length-1]||(t=t.slice(0,-1)),t[0]||(t=t.slice(1)),t}}),module.exports=Handler},function(r,t){r.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function(r,t){var o={};o.extend=function(){var l=arguments[0]||{},h=1,v=arguments.length,x,T,w,C,M;for(v===1&&(l=this,h=0);h<v;h++)if(x=arguments[h],!!x)for(T in x)w=l[T],C=x[T],l!==C&&C!==void 0&&(o.isArray(C)||o.isObject(C)?(o.isArray(C)&&(M=w&&o.isArray(w)?w:[]),o.isObject(C)&&(M=w&&o.isObject(w)?w:{}),l[T]=o.extend(M,C)):l[T]=C);return l},o.each=function(l,h,v){var x,T;if(this.type(l)==="number")for(x=0;x<l;x++)h(x,x);else if(l.length===+l.length)for(x=0;x<l.length&&h.call(v,l[x],x,l)!==!1;x++);else for(T in l)if(h.call(v,l[T],T,l)===!1)break},o.type=function(l){return l==null?String(l):Object.prototype.toString.call(l).match(/\[object (\w+)\]/)[1].toLowerCase()},o.each("String Object Array RegExp Function".split(" "),function(s){o["is"+s]=function(l){return o.type(l)===s.toLowerCase()}}),o.isObjectOrArray=function(s){return o.isObject(s)||o.isArray(s)},o.isNumeric=function(s){return!isNaN(parseFloat(s))&&isFinite(s)},o.keys=function(s){var l=[];for(var h in s)s.hasOwnProperty(h)&&l.push(h);return l},o.values=function(s){var l=[];for(var h in s)s.hasOwnProperty(h)&&l.push(s[h]);return l},o.heredoc=function(l){return l.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},o.noop=function(){},r.exports=o},function(r,t,o){var s=o(2),l=o(5);r.exports={parse:function(h){h=h==null?"":h+"";var v=(h||"").match(s.RE_KEY),x=v&&v[3]&&v[3].match(s.RE_RANGE),T=x&&x[1]&&parseInt(x[1],10),w=x&&x[2]&&parseInt(x[2],10),C=x?x[2]?l.integer(T,w):parseInt(x[1],10):void 0,M=v&&v[4]&&v[4].match(s.RE_RANGE),V=M&&M[1]&&parseInt(M[1],10),z=M&&M[2]&&parseInt(M[2],10),F=M?!M[2]&&parseInt(M[1],10)||l.integer(V,z):void 0,B={parameters:v,range:x,min:T,max:w,count:C,decimal:M,dmin:V,dmax:z,dcount:F};for(var W in B)if(B[W]!=null)return B;return{}}}},function(r,t,o){var s=o(3),l={extend:s.extend};l.extend(o(6)),l.extend(o(7)),l.extend(o(8)),l.extend(o(10)),l.extend(o(13)),l.extend(o(15)),l.extend(o(16)),l.extend(o(17)),l.extend(o(14)),l.extend(o(19)),r.exports=l},function(r,t){r.exports={boolean:function(o,s,l){return l!==void 0?(o=typeof o<"u"&&!isNaN(o)?parseInt(o,10):1,s=typeof s<"u"&&!isNaN(s)?parseInt(s,10):1,Math.random()>1/(o+s)*o?!l:l):Math.random()>=.5},bool:function(o,s,l){return this.boolean(o,s,l)},natural:function(o,s){return o=typeof o<"u"?parseInt(o,10):0,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-o))+o},integer:function(o,s){return o=typeof o<"u"?parseInt(o,10):-9007199254740992,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-o))+o},int:function(o,s){return this.integer(o,s)},float:function(o,s,l,h){l=l===void 0?0:l,l=Math.max(Math.min(l,17),0),h=h===void 0?17:h,h=Math.max(Math.min(h,17),0);for(var v=this.integer(o,s)+".",x=0,T=this.natural(l,h);x<T;x++)v+=x<T-1?this.character("number"):this.character("123456789");return parseFloat(v,10)},character:function(o){var s={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return s.alpha=s.lower+s.upper,s.undefined=s.lower+s.upper+s.number+s.symbol,o=s[(""+o).toLowerCase()]||o,o.charAt(this.natural(0,o.length-1))},char:function(o){return this.character(o)},string:function(o,s,l){var h;switch(arguments.length){case 0:h=this.natural(3,7);break;case 1:h=o,o=void 0;break;case 2:typeof arguments[0]=="string"?h=s:(h=this.natural(o,s),o=void 0);break;case 3:h=this.natural(s,l);break}for(var v="",x=0;x<h;x++)v+=this.character(o);return v},str:function(){return this.string.apply(this,arguments)},range:function(o,s,l){arguments.length<=1&&(s=o||0,o=0),l=arguments[2]||1,o=+o,s=+s,l=+l;for(var h=Math.max(Math.ceil((s-o)/l),0),v=0,x=new Array(h);v<h;)x[v++]=o,o+=l;return x}}},function(r,t){var o={yyyy:"getFullYear",yy:function(s){return(""+s.getFullYear()).slice(2)},y:"yy",MM:function(s){var l=s.getMonth()+1;return l<10?"0"+l:l},M:function(s){return s.getMonth()+1},dd:function(s){var l=s.getDate();return l<10?"0"+l:l},d:"getDate",HH:function(s){var l=s.getHours();return l<10?"0"+l:l},H:"getHours",hh:function(s){var l=s.getHours()%12;return l<10?"0"+l:l},h:function(s){return s.getHours()%12},mm:function(s){var l=s.getMinutes();return l<10?"0"+l:l},m:"getMinutes",ss:function(s){var l=s.getSeconds();return l<10?"0"+l:l},s:"getSeconds",SS:function(s){var l=s.getMilliseconds();return l<10&&"00"+l||l<100&&"0"+l||l},S:"getMilliseconds",A:function(s){return s.getHours()<12?"AM":"PM"},a:function(s){return s.getHours()<12?"am":"pm"},T:"getTime"};r.exports={_patternLetters:o,_rformat:new RegExp(function(){var s=[];for(var l in o)s.push(l);return"("+s.join("|")+")"}(),"g"),_formatDate:function(s,l){return l.replace(this._rformat,function h(v,x){return typeof o[x]=="function"?o[x](s):o[x]in o?h(v,o[x]):s[o[x]]()})},_randomDate:function(s,l){return s=s===void 0?new Date(0):s,l=l===void 0?new Date:l,new Date(Math.random()*(l.getTime()-s.getTime()))},date:function(s){return s=s||"yyyy-MM-dd",this._formatDate(this._randomDate(),s)},time:function(s){return s=s||"HH:mm:ss",this._formatDate(this._randomDate(),s)},datetime:function(s){return s=s||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),s)},now:function(s,l){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(s)||(l=s,s="")),s=(s||"").toLowerCase(),l=l||"yyyy-MM-dd HH:mm:ss";var h=new Date;switch(s){case"year":h.setMonth(0);case"month":h.setDate(1);case"week":case"day":h.setHours(0);case"hour":h.setMinutes(0);case"minute":h.setSeconds(0);case"second":h.setMilliseconds(0)}switch(s){case"week":h.setDate(h.getDate()-h.getDay())}return this._formatDate(h,l)}}},function(r,t,o){(function(s){s.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(l,h,v,x,T){return arguments.length===4&&(T=x,x=void 0),arguments.length===3&&(T=v,v=void 0),l||(l=this.pick(this._adSize)),h&&~h.indexOf("#")&&(h=h.slice(1)),v&&~v.indexOf("#")&&(v=v.slice(1)),"http://dummyimage.com/"+l+(h?"/"+h:"")+(v?"/"+v:"")+(x?"."+x:"")+(T?"&text="+T:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var l=[];for(var h in this._brandColors)l.push(h);return l},dataImage:function(l,h){var v;if(typeof document<"u")v=document.createElement("canvas");else{var x=s.require("canvas");v=new x}var T=v&&v.getContext&&v.getContext("2d");if(!v||!T)return"";l||(l=this.pick(this._adSize)),h=h!==void 0?h:l,l=l.split("x");var w=parseInt(l[0],10),C=parseInt(l[1],10),M=this._brandColors[this.pick(this._brandNames())],V="#FFF",z=14,F="sans-serif";return v.width=w,v.height=C,T.textAlign="center",T.textBaseline="middle",T.fillStyle=M,T.fillRect(0,0,w,C),T.fillStyle=V,T.font="bold "+z+"px "+F,T.fillText(h,w/2,C/2,w),v.toDataURL("image/png")}}}).call(t,o(9)(r))},function(r,t){r.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children=[],o.webpackPolyfill=1),o}},function(r,t,o){var s=o(11),l=o(12);r.exports={color:function(h){return h||l[h]?l[h].nicer:this.hex()},hex:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h),x=s.rgb2hex(v[0],v[1],v[2]);return x},rgb:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h);return"rgb("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+")"},rgba:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h);return"rgba("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var h=this._goldenRatioColor(),v=s.hsv2hsl(h);return"hsl("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+")"},_goldenRatioColor:function(h,v){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof h!="number"&&(h=.5),typeof v!="number"&&(v=.95),[this._hue*360,h*100,v*100]}}},function(r,t){r.exports={rgb2hsl:function(s){var l=s[0]/255,h=s[1]/255,v=s[2]/255,x=Math.min(l,h,v),T=Math.max(l,h,v),w=T-x,C,M,V;return T==x?C=0:l==T?C=(h-v)/w:h==T?C=2+(v-l)/w:v==T&&(C=4+(l-h)/w),C=Math.min(C*60,360),C<0&&(C+=360),V=(x+T)/2,T==x?M=0:V<=.5?M=w/(T+x):M=w/(2-T-x),[C,M*100,V*100]},rgb2hsv:function(s){var l=s[0],h=s[1],v=s[2],x=Math.min(l,h,v),T=Math.max(l,h,v),w=T-x,C,M,V;return T===0?M=0:M=w/T*1e3/10,T==x?C=0:l==T?C=(h-v)/w:h==T?C=2+(v-l)/w:v==T&&(C=4+(l-h)/w),C=Math.min(C*60,360),C<0&&(C+=360),V=T/255*1e3/10,[C,M,V]},hsl2rgb:function(s){var l=s[0]/360,h=s[1]/100,v=s[2]/100,x,T,w,C,M;if(h===0)return M=v*255,[M,M,M];v<.5?T=v*(1+h):T=v+h-v*h,x=2*v-T,C=[0,0,0];for(var V=0;V<3;V++)w=l+1/3*-(V-1),w<0&&w++,w>1&&w--,6*w<1?M=x+(T-x)*6*w:2*w<1?M=T:3*w<2?M=x+(T-x)*(2/3-w)*6:M=x,C[V]=M*255;return C},hsl2hsv:function(s){var l=s[0],h=s[1]/100,v=s[2]/100,x,T;return v*=2,h*=v<=1?v:2-v,T=(v+h)/2,x=2*h/(v+h),[l,x*100,T*100]},hsv2rgb:function(s){var l=s[0]/60,h=s[1]/100,v=s[2]/100,x=Math.floor(l)%6,T=l-Math.floor(l),w=255*v*(1-h),C=255*v*(1-h*T),M=255*v*(1-h*(1-T));switch(v=255*v,x){case 0:return[v,M,w];case 1:return[C,v,w];case 2:return[w,v,M];case 3:return[w,C,v];case 4:return[M,w,v];case 5:return[v,w,C]}},hsv2hsl:function(s){var l=s[0],h=s[1]/100,v=s[2]/100,x,T;return T=(2-h)*v,x=h*v,x/=T<=1?T:2-T,T/=2,[l,x*100,T*100]},rgb2hex:function(o,s,l){return"#"+((256+o<<8|s)<<8|l).toString(16).slice(1)},hex2rgb:function(o){return o="0x"+o.slice(1).replace(o.length>4?o:/./g,"$&$&")|0,[o>>16,o>>8&255,o&255]}}},function(r,t){r.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(r,t,o){var s=o(6),l=o(14);function h(v,x,T,w){return T===void 0?s.natural(v,x):w===void 0?T:s.natural(parseInt(T,10),parseInt(w,10))}r.exports={paragraph:function(v,x){for(var T=h(3,7,v,x),w=[],C=0;C<T;C++)w.push(this.sentence());return w.join(" ")},cparagraph:function(v,x){for(var T=h(3,7,v,x),w=[],C=0;C<T;C++)w.push(this.csentence());return w.join("")},sentence:function(v,x){for(var T=h(12,18,v,x),w=[],C=0;C<T;C++)w.push(this.word());return l.capitalize(w.join(" "))+"."},csentence:function(v,x){for(var T=h(12,18,v,x),w=[],C=0;C<T;C++)w.push(this.cword());return w.join("")+"。"},word:function(v,x){for(var T=h(3,10,v,x),w="",C=0;C<T;C++)w+=s.character("lower");return w},cword:function(v,x,T){var w="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",C;switch(arguments.length){case 0:v=w,C=1;break;case 1:typeof arguments[0]=="string"?C=1:(C=v,v=w);break;case 2:typeof arguments[0]=="string"?C=x:(C=this.natural(v,x),v=w);break;case 3:C=this.natural(x,T);break}for(var M="",V=0;V<C;V++)M+=v.charAt(this.natural(0,v.length-1));return M},title:function(v,x){for(var T=h(3,7,v,x),w=[],C=0;C<T;C++)w.push(this.capitalize(this.word()));return w.join(" ")},ctitle:function(v,x){for(var T=h(3,7,v,x),w=[],C=0;C<T;C++)w.push(this.cword());return w.join("")}}},function(r,t,o){var s=o(3);r.exports={capitalize:function(l){return(l+"").charAt(0).toUpperCase()+(l+"").substr(1)},upper:function(l){return(l+"").toUpperCase()},lower:function(l){return(l+"").toLowerCase()},pick:function(h,v,x){return s.isArray(h)?(v===void 0&&(v=1),x===void 0&&(x=v)):(h=[].slice.call(arguments),v=1,x=1),v===1&&x===1?h[this.natural(0,h.length-1)]:this.shuffle(h,v,x)},shuffle:function(h,v,x){h=h||[];for(var T=h.slice(0),w=[],C=0,M=T.length,V=0;V<M;V++)C=this.natural(0,T.length-1),w.push(T[C]),T.splice(C,1);switch(arguments.length){case 0:case 1:return w;case 2:x=v;case 3:return v=parseInt(v,10),x=parseInt(x,10),w.slice(0,this.natural(v,x))}},order:function l(h){l.cache=l.cache||{},arguments.length>1&&(h=[].slice.call(arguments,0));var v=l.options,x=v.context.templatePath.join("."),T=l.cache[x]=l.cache[x]||{index:0,array:h};return T.array[T.index++%T.array.length]}}},function(r,t){r.exports={first:function(){var o=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(o)},last:function(){var o=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(o)},name:function(o){return this.first()+" "+(o?this.first()+" ":"")+this.last()},cfirst:function(){var o="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(o)},clast:function(){var o="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(o)},cname:function(){return this.cfirst()+this.clast()}}},function(r,t){r.exports={url:function(o,s){return(o||this.protocol())+"://"+(s||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(o){return this.word()+"."+(o||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(o){return this.character("lower")+"."+this.word()+"@"+(o||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(r,t,o){var s=o(18),l=["东北","华北","华东","华中","华南","西南","西北"];r.exports={region:function(){return this.pick(l)},province:function(){return this.pick(s).name},city:function(h){var v=this.pick(s),x=this.pick(v.children);return h?[v.name,x.name].join(" "):x.name},county:function(h){var v=this.pick(s),x=this.pick(v.children),T=this.pick(x.children)||{name:"-"};return h?[v.name,x.name,T.name].join(" "):T.name},zip:function(h){for(var v="",x=0;x<(h||6);x++)v+=this.natural(0,9);return v}}},function(r,t){var o={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function s(h){for(var v={},x=0,T;x<h.length;x++)T=h[x],!(!T||!T.id)&&(v[T.id]=T);for(var w=[],C=0;C<h.length;C++)if(T=h[C],!!T){if(T.pid==null&&T.parentId==null){w.push(T);continue}var M=v[T.pid]||v[T.parentId];M&&(M.children||(M.children=[]),M.children.push(T))}return w}var l=function(){var h=[];for(var v in o){var x=v.slice(2,6)==="0000"?void 0:v.slice(4,6)=="00"?v.slice(0,2)+"0000":v.slice(0,4)+"00";h.push({id:v,pid:x,name:o[v]})}return s(h)}();r.exports=l},function(r,t,o){var s=o(18);r.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var l="abcdefABCDEF1234567890",h=this.string(l,8)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,12);return h},uuid:function(){return this.guid()},id:function(){var l,h=0,v=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],x=["1","0","X","9","8","7","6","5","4","3","2"];l=this.pick(s).id+this.date("yyyyMMdd")+this.string("number",3);for(var T=0;T<l.length;T++)h+=l[T]*v[T];return l+=x[h%11],l},increment:function(){var l=0;return function(h){return l+=+h||1}}(),inc:function(l){return this.increment(l)}}},function(r,t,o){var s=o(21),l=o(22);r.exports={Parser:s,Handler:l}},function(r,t){function o(te){this.type=te,this.offset=o.offset(),this.text=o.text()}function s(te,oe){o.call(this,"alternate"),this.left=te,this.right=oe}function l(te){o.call(this,"match"),this.body=te.filter(Boolean)}function h(te,oe){o.call(this,te),this.body=oe}function v(te){h.call(this,"capture-group"),this.index=X[this.offset]||(X[this.offset]=Z++),this.body=te}function x(te,oe){o.call(this,"quantified"),this.body=te,this.quantifier=oe}function T(te,oe){o.call(this,"quantifier"),this.min=te,this.max=oe,this.greedy=!0}function w(te,oe){o.call(this,"charset"),this.invert=te,this.body=oe}function C(te,oe){o.call(this,"range"),this.start=te,this.end=oe}function M(te){o.call(this,"literal"),this.body=te,this.escaped=this.body!=this.text}function V(te){o.call(this,"unicode"),this.code=te.toUpperCase()}function z(te){o.call(this,"hex"),this.code=te.toUpperCase()}function F(te){o.call(this,"octal"),this.code=te.toUpperCase()}function B(te){o.call(this,"back-reference"),this.code=te.toUpperCase()}function W(te){o.call(this,"control-character"),this.code=te.toUpperCase()}var Y=function(){function te(le,he){function me(){this.constructor=le}me.prototype=he.prototype,le.prototype=new me}function oe(le,he,me,_e,ye){function Se(Te,we){function Ee(Me){function Ie($e){return $e.charCodeAt(0).toString(16).toUpperCase()}return Me.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function($e){return"\\x0"+Ie($e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function($e){return"\\x"+Ie($e)}).replace(/[\u0180-\u0FFF]/g,function($e){return"\\u0"+Ie($e)}).replace(/[\u1080-\uFFFF]/g,function($e){return"\\u"+Ie($e)})}var Ce,ke;switch(Te.length){case 0:Ce="end of input";break;case 1:Ce=Te[0];break;default:Ce=Te.slice(0,-1).join(", ")+" or "+Te[Te.length-1]}return ke=we?'"'+Ee(we)+'"':"end of input","Expected "+Ce+" but "+ke+" found."}this.expected=le,this.found=he,this.offset=me,this.line=_e,this.column=ye,this.name="SyntaxError",this.message=Se(le,he)}function ae(le){function he(){return le.substring(Fe,xe)}function me(){return Fe}function _e(ie){function ve(Pe,Le,je){var Yt,ir;for(Yt=Le;je>Yt;Yt++)ir=le.charAt(Yt),ir===`
|
||
`?(Pe.seenCR||Pe.line++,Pe.column=1,Pe.seenCR=!1):ir==="\r"||ir==="\u2028"||ir==="\u2029"?(Pe.line++,Pe.column=1,Pe.seenCR=!0):(Pe.column++,Pe.seenCR=!1)}return nr!==ie&&(nr>ie&&(nr=0,Ar={line:1,column:1,seenCR:!1}),ve(Ar,nr,ie),nr=ie),Ar}function ye(ie){gr>xe||(xe>gr&&(gr=xe,mr=[]),mr.push(ie))}function Se(ie){var ve=0;for(ie.sort();ve<ie.length;)ie[ve-1]===ie[ve]?ie.splice(ve,1):ve++}function Te(){var ie,ve,Pe,Le,je;return ie=xe,ve=we(),ve!==null?(Pe=xe,le.charCodeAt(xe)===124?(Le=xn,xe++):(Le=null,Re===0&&ye(Tn)),Le!==null?(je=Te(),je!==null?(Le=[Le,je],Pe=Le):(xe=Pe,Pe=Ne)):(xe=Pe,Pe=Ne),Pe===null&&(Pe=Qt),Pe!==null?(Fe=ie,ve=An(ve,Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function we(){var ie,ve,Pe,Le,je;if(ie=xe,ve=Ce(),ve===null&&(ve=Qt),ve!==null)if(Pe=xe,Re++,Le=Ie(),Re--,Le===null?Pe=Qt:(xe=Pe,Pe=Ne),Pe!==null){for(Le=[],je=Me(),je===null&&(je=Ee());je!==null;)Le.push(je),je=Me(),je===null&&(je=Ee());Le!==null?(je=ke(),je===null&&(je=Qt),je!==null?(Fe=ie,ve=wn(ve,Le,je),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)}else xe=ie,ie=Ne;else xe=ie,ie=Ne;return ie}function Ee(){var ie;return ie=De(),ie===null&&(ie=st(),ie===null&&(ie=xt())),ie}function Ce(){var ie,ve;return ie=xe,le.charCodeAt(xe)===94?(ve=$r,xe++):(ve=null,Re===0&&ye(Lr)),ve!==null&&(Fe=ie,ve=En()),ve===null&&(xe=ie),ie=ve,ie}function ke(){var ie,ve;return ie=xe,le.charCodeAt(xe)===36?(ve=Cn,xe++):(ve=null,Re===0&&ye(Mn)),ve!==null&&(Fe=ie,ve=Dn()),ve===null&&(xe=ie),ie=ve,ie}function Me(){var ie,ve,Pe;return ie=xe,ve=Ee(),ve!==null?(Pe=Ie(),Pe!==null?(Fe=ie,ve=Rn(ve,Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function Ie(){var ie,ve,Pe;return Re++,ie=xe,ve=$e(),ve!==null?(Pe=mt(),Pe===null&&(Pe=Qt),Pe!==null?(Fe=ie,ve=$n(ve,Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),Re--,ie===null&&(ve=null,Re===0&&ye(On)),ie}function $e(){var ie;return ie=Ge(),ie===null&&(ie=He(),ie===null&&(ie=We(),ie===null&&(ie=Ze(),ie===null&&(ie=ct(),ie===null&&(ie=Qe()))))),ie}function Ge(){var ie,ve,Pe,Le,je,Yt;return ie=xe,le.charCodeAt(xe)===123?(ve=Sr,xe++):(ve=null,Re===0&&ye(xr)),ve!==null?(Pe=ht(),Pe!==null?(le.charCodeAt(xe)===44?(Le=kn,xe++):(Le=null,Re===0&&ye(Nn)),Le!==null?(je=ht(),je!==null?(le.charCodeAt(xe)===125?(Yt=kr,xe++):(Yt=null,Re===0&&ye(Nr)),Yt!==null?(Fe=ie,ve=Vn(Pe,je),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function He(){var ie,ve,Pe,Le;return ie=xe,le.charCodeAt(xe)===123?(ve=Sr,xe++):(ve=null,Re===0&&ye(xr)),ve!==null?(Pe=ht(),Pe!==null?(le.substr(xe,2)===Vr?(Le=Vr,xe+=2):(Le=null,Re===0&&ye(zn)),Le!==null?(Fe=ie,ve=Fn(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function We(){var ie,ve,Pe,Le;return ie=xe,le.charCodeAt(xe)===123?(ve=Sr,xe++):(ve=null,Re===0&&ye(xr)),ve!==null?(Pe=ht(),Pe!==null?(le.charCodeAt(xe)===125?(Le=kr,xe++):(Le=null,Re===0&&ye(Nr)),Le!==null?(Fe=ie,ve=Bn(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function Ze(){var ie,ve;return ie=xe,le.charCodeAt(xe)===43?(ve=Un,xe++):(ve=null,Re===0&&ye(Gn)),ve!==null&&(Fe=ie,ve=Wn()),ve===null&&(xe=ie),ie=ve,ie}function ct(){var ie,ve;return ie=xe,le.charCodeAt(xe)===42?(ve=Yn,xe++):(ve=null,Re===0&&ye(jn)),ve!==null&&(Fe=ie,ve=Zn()),ve===null&&(xe=ie),ie=ve,ie}function Qe(){var ie,ve;return ie=xe,le.charCodeAt(xe)===63?(ve=zr,xe++):(ve=null,Re===0&&ye(Fr)),ve!==null&&(Fe=ie,ve=qn()),ve===null&&(xe=ie),ie=ve,ie}function mt(){var ie;return le.charCodeAt(xe)===63?(ie=zr,xe++):(ie=null,Re===0&&ye(Fr)),ie}function ht(){var ie,ve,Pe;if(ie=xe,ve=[],Hr.test(le.charAt(xe))?(Pe=le.charAt(xe),xe++):(Pe=null,Re===0&&ye(Ur)),Pe!==null)for(;Pe!==null;)ve.push(Pe),Hr.test(le.charAt(xe))?(Pe=le.charAt(xe),xe++):(Pe=null,Re===0&&ye(Ur));else ve=Ne;return ve!==null&&(Fe=ie,ve=Xn(ve)),ve===null&&(xe=ie),ie=ve,ie}function De(){var ie,ve,Pe,Le;return ie=xe,le.charCodeAt(xe)===40?(ve=Jn,xe++):(ve=null,Re===0&&ye(ei)),ve!==null?(Pe=Be(),Pe===null&&(Pe=gt(),Pe===null&&(Pe=Oe(),Pe===null&&(Pe=ze()))),Pe!==null?(le.charCodeAt(xe)===41?(Le=ti,xe++):(Le=null,Re===0&&ye(ri)),Le!==null?(Fe=ie,ve=ni(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function ze(){var ie,ve;return ie=xe,ve=Te(),ve!==null&&(Fe=ie,ve=ii(ve)),ve===null&&(xe=ie),ie=ve,ie}function Oe(){var ie,ve,Pe;return ie=xe,le.substr(xe,2)===Gr?(ve=Gr,xe+=2):(ve=null,Re===0&&ye(ai)),ve!==null?(Pe=Te(),Pe!==null?(Fe=ie,ve=oi(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function Be(){var ie,ve,Pe;return ie=xe,le.substr(xe,2)===Wr?(ve=Wr,xe+=2):(ve=null,Re===0&&ye(si)),ve!==null?(Pe=Te(),Pe!==null?(Fe=ie,ve=li(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function gt(){var ie,ve,Pe;return ie=xe,le.substr(xe,2)===Yr?(ve=Yr,xe+=2):(ve=null,Re===0&&ye(ui)),ve!==null?(Pe=Te(),Pe!==null?(Fe=ie,ve=ci(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function st(){var ie,ve,Pe,Le,je;if(Re++,ie=xe,le.charCodeAt(xe)===91?(ve=hi,xe++):(ve=null,Re===0&&ye(di)),ve!==null)if(le.charCodeAt(xe)===94?(Pe=$r,xe++):(Pe=null,Re===0&&ye(Lr)),Pe===null&&(Pe=Qt),Pe!==null){for(Le=[],je=yt(),je===null&&(je=nt());je!==null;)Le.push(je),je=yt(),je===null&&(je=nt());Le!==null?(le.charCodeAt(xe)===93?(je=pi,xe++):(je=null,Re===0&&ye(vi)),je!==null?(Fe=ie,ve=gi(Pe,Le),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)}else xe=ie,ie=Ne;else xe=ie,ie=Ne;return Re--,ie===null&&(ve=null,Re===0&&ye(fi)),ie}function yt(){var ie,ve,Pe,Le;return Re++,ie=xe,ve=nt(),ve!==null?(le.charCodeAt(xe)===45?(Pe=yi,xe++):(Pe=null,Re===0&&ye(_i)),Pe!==null?(Le=nt(),Le!==null?(Fe=ie,ve=Si(ve,Le),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),Re--,ie===null&&(ve=null,Re===0&&ye(mi)),ie}function nt(){var ie;return Re++,ie=bt(),ie===null&&(ie=Ye()),Re--,ie===null&&Re===0&&ye(bi),ie}function Ye(){var ie,ve;return ie=xe,xi.test(le.charAt(xe))?(ve=le.charAt(xe),xe++):(ve=null,Re===0&&ye(Ti)),ve!==null&&(Fe=ie,ve=Tr(ve)),ve===null&&(xe=ie),ie=ve,ie}function bt(){var ie;return ie=Gt(),ie===null&&(ie=Er(),ie===null&&(ie=tr(),ie===null&&(ie=rr(),ie===null&&(ie=vt(),ie===null&&(ie=Ot(),ie===null&&(ie=Ft(),ie===null&&(ie=Vt(),ie===null&&(ie=or(),ie===null&&(ie=Zt(),ie===null&&(ie=sr(),ie===null&&(ie=Jt(),ie===null&&(ie=lr(),ie===null&&(ie=Cr(),ie===null&&(ie=Pr(),ie===null&&(ie=Mr(),ie===null&&(ie=Ir(),ie===null&&(ie=Dr()))))))))))))))))),ie}function xt(){var ie;return ie=wt(),ie===null&&(ie=Lt(),ie===null&&(ie=St())),ie}function wt(){var ie,ve;return ie=xe,le.charCodeAt(xe)===46?(ve=Ai,xe++):(ve=null,Re===0&&ye(wi)),ve!==null&&(Fe=ie,ve=Ei()),ve===null&&(xe=ie),ie=ve,ie}function St(){var ie,ve;return Re++,ie=xe,Pi.test(le.charAt(xe))?(ve=le.charAt(xe),xe++):(ve=null,Re===0&&ye(Mi)),ve!==null&&(Fe=ie,ve=Tr(ve)),ve===null&&(xe=ie),ie=ve,Re--,ie===null&&(ve=null,Re===0&&ye(Ci)),ie}function Lt(){var ie;return ie=Kt(),ie===null&&(ie=ar(),ie===null&&(ie=Er(),ie===null&&(ie=tr(),ie===null&&(ie=rr(),ie===null&&(ie=vt(),ie===null&&(ie=Ot(),ie===null&&(ie=Ft(),ie===null&&(ie=Vt(),ie===null&&(ie=or(),ie===null&&(ie=Zt(),ie===null&&(ie=sr(),ie===null&&(ie=Jt(),ie===null&&(ie=lr(),ie===null&&(ie=bn(),ie===null&&(ie=Cr(),ie===null&&(ie=Pr(),ie===null&&(ie=Mr(),ie===null&&(ie=Ir(),ie===null&&(ie=Dr()))))))))))))))))))),ie}function Gt(){var ie,ve;return ie=xe,le.substr(xe,2)===cr?(ve=cr,xe+=2):(ve=null,Re===0&&ye(jr)),ve!==null&&(Fe=ie,ve=Ii()),ve===null&&(xe=ie),ie=ve,ie}function Kt(){var ie,ve;return ie=xe,le.substr(xe,2)===cr?(ve=cr,xe+=2):(ve=null,Re===0&&ye(jr)),ve!==null&&(Fe=ie,ve=Di()),ve===null&&(xe=ie),ie=ve,ie}function ar(){var ie,ve;return ie=xe,le.substr(xe,2)===qr?(ve=qr,xe+=2):(ve=null,Re===0&&ye(Ri)),ve!==null&&(Fe=ie,ve=Oi()),ve===null&&(xe=ie),ie=ve,ie}function tr(){var ie,ve;return ie=xe,le.substr(xe,2)===Xr?(ve=Xr,xe+=2):(ve=null,Re===0&&ye($i)),ve!==null&&(Fe=ie,ve=Li()),ve===null&&(xe=ie),ie=ve,ie}function rr(){var ie,ve;return ie=xe,le.substr(xe,2)===Kr?(ve=Kr,xe+=2):(ve=null,Re===0&&ye(ki)),ve!==null&&(Fe=ie,ve=Ni()),ve===null&&(xe=ie),ie=ve,ie}function vt(){var ie,ve;return ie=xe,le.substr(xe,2)===Jr?(ve=Jr,xe+=2):(ve=null,Re===0&&ye(Vi)),ve!==null&&(Fe=ie,ve=zi()),ve===null&&(xe=ie),ie=ve,ie}function Ot(){var ie,ve;return ie=xe,le.substr(xe,2)===Qr?(ve=Qr,xe+=2):(ve=null,Re===0&&ye(Fi)),ve!==null&&(Fe=ie,ve=Bi()),ve===null&&(xe=ie),ie=ve,ie}function Ft(){var ie,ve;return ie=xe,le.substr(xe,2)===rn?(ve=rn,xe+=2):(ve=null,Re===0&&ye(Hi)),ve!==null&&(Fe=ie,ve=Ui()),ve===null&&(xe=ie),ie=ve,ie}function Vt(){var ie,ve;return ie=xe,le.substr(xe,2)===nn?(ve=nn,xe+=2):(ve=null,Re===0&&ye(Gi)),ve!==null&&(Fe=ie,ve=Wi()),ve===null&&(xe=ie),ie=ve,ie}function or(){var ie,ve;return ie=xe,le.substr(xe,2)===an?(ve=an,xe+=2):(ve=null,Re===0&&ye(Yi)),ve!==null&&(Fe=ie,ve=ji()),ve===null&&(xe=ie),ie=ve,ie}function Zt(){var ie,ve;return ie=xe,le.substr(xe,2)===on?(ve=on,xe+=2):(ve=null,Re===0&&ye(Zi)),ve!==null&&(Fe=ie,ve=qi()),ve===null&&(xe=ie),ie=ve,ie}function sr(){var ie,ve;return ie=xe,le.substr(xe,2)===sn?(ve=sn,xe+=2):(ve=null,Re===0&&ye(Xi)),ve!==null&&(Fe=ie,ve=Ki()),ve===null&&(xe=ie),ie=ve,ie}function Jt(){var ie,ve;return ie=xe,le.substr(xe,2)===ln?(ve=ln,xe+=2):(ve=null,Re===0&&ye(Ji)),ve!==null&&(Fe=ie,ve=Qi()),ve===null&&(xe=ie),ie=ve,ie}function lr(){var ie,ve;return ie=xe,le.substr(xe,2)===un?(ve=un,xe+=2):(ve=null,Re===0&&ye(ea)),ve!==null&&(Fe=ie,ve=ta()),ve===null&&(xe=ie),ie=ve,ie}function Er(){var ie,ve,Pe;return ie=xe,le.substr(xe,2)===cn?(ve=cn,xe+=2):(ve=null,Re===0&&ye(ra)),ve!==null?(le.length>xe?(Pe=le.charAt(xe),xe++):(Pe=null,Re===0&&ye(fn)),Pe!==null?(Fe=ie,ve=na(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function bn(){var ie,ve,Pe;return ie=xe,le.charCodeAt(xe)===92?(ve=hn,xe++):(ve=null,Re===0&&ye(dn)),ve!==null?(ia.test(le.charAt(xe))?(Pe=le.charAt(xe),xe++):(Pe=null,Re===0&&ye(aa)),Pe!==null?(Fe=ie,ve=oa(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}function Cr(){var ie,ve,Pe,Le;if(ie=xe,le.substr(xe,2)===hr?(ve=hr,xe+=2):(ve=null,Re===0&&ye(pn)),ve!==null){if(Pe=[],vn.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(gn)),Le!==null)for(;Le!==null;)Pe.push(Le),vn.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(gn));else Pe=Ne;Pe!==null?(Fe=ie,ve=sa(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)}else xe=ie,ie=Ne;return ie}function Pr(){var ie,ve,Pe,Le;if(ie=xe,le.substr(xe,2)===mn?(ve=mn,xe+=2):(ve=null,Re===0&&ye(la)),ve!==null){if(Pe=[],dr.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(pr)),Le!==null)for(;Le!==null;)Pe.push(Le),dr.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(pr));else Pe=Ne;Pe!==null?(Fe=ie,ve=ua(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)}else xe=ie,ie=Ne;return ie}function Mr(){var ie,ve,Pe,Le;if(ie=xe,le.substr(xe,2)===yn?(ve=yn,xe+=2):(ve=null,Re===0&&ye(fa)),ve!==null){if(Pe=[],dr.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(pr)),Le!==null)for(;Le!==null;)Pe.push(Le),dr.test(le.charAt(xe))?(Le=le.charAt(xe),xe++):(Le=null,Re===0&&ye(pr));else Pe=Ne;Pe!==null?(Fe=ie,ve=ha(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)}else xe=ie,ie=Ne;return ie}function Ir(){var ie,ve;return ie=xe,le.substr(xe,2)===hr?(ve=hr,xe+=2):(ve=null,Re===0&&ye(pn)),ve!==null&&(Fe=ie,ve=da()),ve===null&&(xe=ie),ie=ve,ie}function Dr(){var ie,ve,Pe;return ie=xe,le.charCodeAt(xe)===92?(ve=hn,xe++):(ve=null,Re===0&&ye(dn)),ve!==null?(le.length>xe?(Pe=le.charAt(xe),xe++):(Pe=null,Re===0&&ye(fn)),Pe!==null?(Fe=ie,ve=Tr(Pe),ve===null&&(xe=ie),ie=ve):(xe=ie,ie=Ne)):(xe=ie,ie=Ne),ie}var _r,ur=arguments.length>1?arguments[1]:{},Rr={regexp:Te},Or=Te,Ne=null,Qt="",xn="|",Tn='"|"',An=function(ie,ve){return ve?new s(ie,ve[1]):ie},wn=function(ie,ve,Pe){return new l([ie].concat(ve).concat([Pe]))},$r="^",Lr='"^"',En=function(){return new o("start")},Cn="$",Mn='"$"',Dn=function(){return new o("end")},Rn=function(ie,ve){return new x(ie,ve)},On="Quantifier",$n=function(ie,ve){return ve&&(ie.greedy=!1),ie},Sr="{",xr='"{"',kn=",",Nn='","',kr="}",Nr='"}"',Vn=function(ie,ve){return new T(ie,ve)},Vr=",}",zn='",}"',Fn=function(ie){return new T(ie,1/0)},Bn=function(ie){return new T(ie,ie)},Un="+",Gn='"+"',Wn=function(){return new T(1,1/0)},Yn="*",jn='"*"',Zn=function(){return new T(0,1/0)},zr="?",Fr='"?"',qn=function(){return new T(0,1)},Hr=/^[0-9]/,Ur="[0-9]",Xn=function(ie){return+ie.join("")},Jn="(",ei='"("',ti=")",ri='")"',ni=function(ie){return ie},ii=function(ie){return new v(ie)},Gr="?:",ai='"?:"',oi=function(ie){return new h("non-capture-group",ie)},Wr="?=",si='"?="',li=function(ie){return new h("positive-lookahead",ie)},Yr="?!",ui='"?!"',ci=function(ie){return new h("negative-lookahead",ie)},fi="CharacterSet",hi="[",di='"["',pi="]",vi='"]"',gi=function(ie,ve){return new w(!!ie,ve)},mi="CharacterRange",yi="-",_i='"-"',Si=function(ie,ve){return new C(ie,ve)},bi="Character",xi=/^[^\\\]]/,Ti="[^\\\\\\]]",Tr=function(ie){return new M(ie)},Ai=".",wi='"."',Ei=function(){return new o("any-character")},Ci="Literal",Pi=/^[^|\\\/.[()?+*$\^]/,Mi="[^|\\\\\\/.[()?+*$\\^]",cr="\\b",jr='"\\\\b"',Ii=function(){return new o("backspace")},Di=function(){return new o("word-boundary")},qr="\\B",Ri='"\\\\B"',Oi=function(){return new o("non-word-boundary")},Xr="\\d",$i='"\\\\d"',Li=function(){return new o("digit")},Kr="\\D",ki='"\\\\D"',Ni=function(){return new o("non-digit")},Jr="\\f",Vi='"\\\\f"',zi=function(){return new o("form-feed")},Qr="\\n",Fi='"\\\\n"',Bi=function(){return new o("line-feed")},rn="\\r",Hi='"\\\\r"',Ui=function(){return new o("carriage-return")},nn="\\s",Gi='"\\\\s"',Wi=function(){return new o("white-space")},an="\\S",Yi='"\\\\S"',ji=function(){return new o("non-white-space")},on="\\t",Zi='"\\\\t"',qi=function(){return new o("tab")},sn="\\v",Xi='"\\\\v"',Ki=function(){return new o("vertical-tab")},ln="\\w",Ji='"\\\\w"',Qi=function(){return new o("word")},un="\\W",ea='"\\\\W"',ta=function(){return new o("non-word")},cn="\\c",ra='"\\\\c"',fn="any character",na=function(ie){return new W(ie)},hn="\\",dn='"\\\\"',ia=/^[1-9]/,aa="[1-9]",oa=function(ie){return new B(ie)},hr="\\0",pn='"\\\\0"',vn=/^[0-7]/,gn="[0-7]",sa=function(ie){return new F(ie.join(""))},mn="\\x",la='"\\\\x"',dr=/^[0-9a-fA-F]/,pr="[0-9a-fA-F]",ua=function(ie){return new z(ie.join(""))},yn="\\u",fa='"\\\\u"',ha=function(ie){return new V(ie.join(""))},da=function(){return new o("null-character")},xe=0,Fe=0,nr=0,Ar={line:1,column:1,seenCR:!1},gr=0,mr=[],Re=0;if("startRule"in ur){if(!(ur.startRule in Rr))throw new Error(`Can't start parsing from rule "`+ur.startRule+'".');Or=Rr[ur.startRule]}if(o.offset=me,o.text=he,_r=Or(),_r!==null&&xe===le.length)return _r;throw Se(mr),Fe=Math.max(xe,gr),new oe(mr,Fe<le.length?le.charAt(Fe):null,Fe,_e(Fe).line,_e(Fe).column)}return te(oe,Error),{SyntaxError:oe,parse:ae}}(),Z=1,X={};r.exports=Y},function(r,t,o){var s=o(3),l=o(5),h={extend:s.extend},v=z(97,122),x=z(65,90),T=z(48,57),w=z(32,47)+z(58,64)+z(91,96)+z(123,126),C=z(32,126),M=` \f
|
||
\r \v \u2028\u2029`,V={"\\w":v+x+T+"_","\\W":w.replace("_",""),"\\s":M,"\\S":function(){for(var F=C,B=0;B<M.length;B++)F=F.replace(M[B],"");return F}(),"\\d":T,"\\D":v+x+w};function z(F,B){for(var W="",Y=F;Y<=B;Y++)W+=String.fromCharCode(Y);return W}h.gen=function(F,B,W){return W=W||{guid:1},h[F.type]?h[F.type](F,B,W):h.token(F,B,W)},h.extend({token:function(F,B,W){switch(F.type){case"start":case"end":return"";case"any-character":return l.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return l.pick(T.split(""));case"non-digit":return l.pick((v+x+w).split(""));case"form-feed":break;case"line-feed":return F.body||F.text;case"carriage-return":break;case"white-space":return l.pick(M.split(""));case"non-white-space":return l.pick((v+x+T).split(""));case"tab":break;case"vertical-tab":break;case"word":return l.pick((v+x+T).split(""));case"non-word":return l.pick(w.replace("_","").split(""))}return F.body||F.text},alternate:function(F,B,W){return this.gen(l.boolean()?F.left:F.right,B,W)},match:function(F,B,W){B="";for(var Y=0;Y<F.body.length;Y++)B+=this.gen(F.body[Y],B,W);return B},"capture-group":function(F,B,W){return B=this.gen(F.body,B,W),W[W.guid++]=B,B},"non-capture-group":function(F,B,W){return this.gen(F.body,B,W)},"positive-lookahead":function(F,B,W){return this.gen(F.body,B,W)},"negative-lookahead":function(F,B,W){return""},quantified:function(F,B,W){B="";for(var Y=this.quantifier(F.quantifier),Z=0;Z<Y;Z++)B+=this.gen(F.body,B,W);return B},quantifier:function(F,B,W){var Y=Math.max(F.min,0),Z=isFinite(F.max)?F.max:Y+l.integer(3,7);return l.integer(Y,Z)},charset:function(F,B,W){if(F.invert)return this["invert-charset"](F,B,W);var Y=l.pick(F.body);return this.gen(Y,B,W)},"invert-charset":function(F,B,W){for(var Y=C,Z=0,X;Z<F.body.length;Z++)switch(X=F.body[Z],X.type){case"literal":Y=Y.replace(X.body,"");break;case"range":for(var te=this.gen(X.start,B,W).charCodeAt(),oe=this.gen(X.end,B,W).charCodeAt(),ae=te;ae<=oe;ae++)Y=Y.replace(String.fromCharCode(ae),"");default:var le=V[X.text];if(le)for(var he=0;he<=le.length;he++)Y=Y.replace(le[he],"")}return l.pick(Y.split(""))},range:function(F,B,W){var Y=this.gen(F.start,B,W).charCodeAt(),Z=this.gen(F.end,B,W).charCodeAt();return String.fromCharCode(l.integer(Y,Z))},literal:function(F,B,W){return F.escaped?F.body:F.text},unicode:function(F,B,W){return String.fromCharCode(parseInt(F.code,16))},hex:function(F,B,W){return String.fromCharCode(parseInt(F.code,16))},octal:function(F,B,W){return String.fromCharCode(parseInt(F.code,8))},"back-reference":function(F,B,W){return W[F.code]||""},CONTROL_CHARACTER_MAP:function(){for(var F="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),B=`\0 \x07 \b
|
||
\v \f \r \x1B `.split(" "),W={},Y=0;Y<F.length;Y++)W[F[Y]]=B[Y];return W}(),"control-character":function(F,B,W){return this.CONTROL_CHARACTER_MAP[F.code]}}),r.exports=h},function(r,t,o){r.exports=o(24)},function(r,t,o){var s=o(2),l=o(3),h=o(4);function v(x,T,w){w=w||[];var C={name:typeof T=="string"?T.replace(s.RE_KEY,"$1"):T,template:x,type:l.type(x),rule:h.parse(T)};switch(C.path=w.slice(0),C.path.push(T===void 0?"ROOT":C.name),C.type){case"array":C.items=[],l.each(x,function(M,V){C.items.push(v(M,V,C.path))});break;case"object":C.properties=[],l.each(x,function(M,V){C.properties.push(v(M,V,C.path))});break}return C}r.exports=v},function(r,t,o){r.exports=o(26)},function(r,t,o){var s=o(2),l=o(3),h=o(23);function v(w,C){for(var M=h(w),V=x.diff(M,C),z=0;z<V.length;z++);return V}var x={diff:function(C,M,V){var z=[];return this.name(C,M,V,z)&&this.type(C,M,V,z)&&(this.value(C,M,V,z),this.properties(C,M,V,z),this.items(C,M,V,z)),z},name:function(w,C,M,V){var z=V.length;return T.equal("name",w.path,M+"",w.name+"",V),V.length===z},type:function(w,C,M,V){var z=V.length;switch(w.type){case"string":if(w.template.match(s.RE_PLACEHOLDER))return!0;break;case"array":if(w.rule.parameters&&(w.rule.min!==void 0&&w.rule.max===void 0&&w.rule.count===1||w.rule.parameters[2]))return!0;break;case"function":return!0}return T.equal("type",w.path,l.type(C),w.type,V),V.length===z},value:function(w,C,M,V){var z=V.length,F=w.rule,B=w.type;if(B==="object"||B==="array"||B==="function")return!0;if(!F.parameters){switch(B){case"regexp":return T.match("value",w.path,C,w.template,V),V.length===z;case"string":if(w.template.match(s.RE_PLACEHOLDER))return V.length===z;break}return T.equal("value",w.path,C,w.template,V),V.length===z}var W;switch(B){case"number":var Y=(C+"").split(".");Y[0]=+Y[0],F.min!==void 0&&F.max!==void 0&&(T.greaterThanOrEqualTo("value",w.path,Y[0],Math.min(F.min,F.max),V),T.lessThanOrEqualTo("value",w.path,Y[0],Math.max(F.min,F.max),V)),F.min!==void 0&&F.max===void 0&&T.equal("value",w.path,Y[0],F.min,V,"[value] "+M),F.decimal&&(F.dmin!==void 0&&F.dmax!==void 0&&(T.greaterThanOrEqualTo("value",w.path,Y[1].length,F.dmin,V),T.lessThanOrEqualTo("value",w.path,Y[1].length,F.dmax,V)),F.dmin!==void 0&&F.dmax===void 0&&T.equal("value",w.path,Y[1].length,F.dmin,V));break;case"boolean":break;case"string":W=C.match(new RegExp(w.template,"g")),W=W?W.length:0,F.min!==void 0&&F.max!==void 0&&(T.greaterThanOrEqualTo("repeat count",w.path,W,F.min,V),T.lessThanOrEqualTo("repeat count",w.path,W,F.max,V)),F.min!==void 0&&F.max===void 0&&T.equal("repeat count",w.path,W,F.min,V);break;case"regexp":W=C.match(new RegExp(w.template.source.replace(/^\^|\$$/g,""),"g")),W=W?W.length:0,F.min!==void 0&&F.max!==void 0&&(T.greaterThanOrEqualTo("repeat count",w.path,W,F.min,V),T.lessThanOrEqualTo("repeat count",w.path,W,F.max,V)),F.min!==void 0&&F.max===void 0&&T.equal("repeat count",w.path,W,F.min,V);break}return V.length===z},properties:function(w,C,M,V){var z=V.length,F=w.rule,B=l.keys(C);if(w.properties){if(w.rule.parameters?(F.min!==void 0&&F.max!==void 0&&(T.greaterThanOrEqualTo("properties length",w.path,B.length,Math.min(F.min,F.max),V),T.lessThanOrEqualTo("properties length",w.path,B.length,Math.max(F.min,F.max),V)),F.min!==void 0&&F.max===void 0&&F.count!==1&&T.equal("properties length",w.path,B.length,F.min,V)):T.equal("properties length",w.path,B.length,w.properties.length,V),V.length!==z)return!1;for(var W=0;W<B.length;W++)V.push.apply(V,this.diff(function(){var Y;return l.each(w.properties,function(Z){Z.name===B[W]&&(Y=Z)}),Y||w.properties[W]}(),C[B[W]],B[W]));return V.length===z}},items:function(w,C,M,V){var z=V.length;if(w.items){var F=w.rule;if(!w.rule.parameters)T.equal("items length",w.path,C.length,w.items.length,V);else{if(F.min!==void 0&&F.max!==void 0&&(T.greaterThanOrEqualTo("items",w.path,C.length,Math.min(F.min,F.max)*w.items.length,V,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),T.lessThanOrEqualTo("items",w.path,C.length,Math.max(F.min,F.max)*w.items.length,V,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),F.min!==void 0&&F.max===void 0){if(F.count===1)return V.length===z;T.equal("items length",w.path,C.length,F.min*w.items.length,V)}if(F.parameters[2])return V.length===z}if(V.length!==z)return!1;for(var B=0;B<C.length;B++)V.push.apply(V,this.diff(w.items[B%w.items.length],C[B],B%w.items.length));return V.length===z}}},T={message:function(w){return(w.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",w.type.toUpperCase()).replace("{ltype}",w.type.toLowerCase()).replace("{path}",l.isArray(w.path)&&w.path.join(".")||w.path).replace("{action}",w.action).replace("{expected}",w.expected).replace("{actual}",w.actual)},equal:function(w,C,M,V,z,F){if(M===V)return!0;switch(w){case"type":if(V==="regexp"&&M==="string")return!0;break}var B={path:C,type:w,actual:M,expected:V,action:"is equal to",message:F};return B.message=T.message(B),z.push(B),!1},match:function(w,C,M,V,z,F){if(V.test(M))return!0;var B={path:C,type:w,actual:M,expected:V,action:"matches",message:F};return B.message=T.message(B),z.push(B),!1},notEqual:function(w,C,M,V,z,F){if(M!==V)return!0;var B={path:C,type:w,actual:M,expected:V,action:"is not equal to",message:F};return B.message=T.message(B),z.push(B),!1},greaterThan:function(w,C,M,V,z,F){if(M>V)return!0;var B={path:C,type:w,actual:M,expected:V,action:"is greater than",message:F};return B.message=T.message(B),z.push(B),!1},lessThan:function(w,C,M,V,z,F){if(M<V)return!0;var B={path:C,type:w,actual:M,expected:V,action:"is less to",message:F};return B.message=T.message(B),z.push(B),!1},greaterThanOrEqualTo:function(w,C,M,V,z,F){if(M>=V)return!0;var B={path:C,type:w,actual:M,expected:V,action:"is greater than or equal to",message:F};return B.message=T.message(B),z.push(B),!1},lessThanOrEqualTo:function(w,C,M,V,z,F){if(M<=V)return!0;var B={path:C,type:w,actual:M,expected:V,action:"is less than or equal to",message:F};return B.message=T.message(B),z.push(B),!1}};v.Diff=x,v.Assert=T,r.exports=v},function(r,t,o){r.exports=o(28)},function(r,t,o){var s=o(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(F,B,W,Y){var Z=document.createEvent("CustomEvent");return Z.initCustomEvent(F,B,W,Y),Z}}var l={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h="readystatechange loadstart progress abort error load timeout loadend".split(" "),v="timeout withCredentials".split(" "),x="readyState responseURL status statusText responseType response responseText responseXML".split(" "),T={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function w(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}w._settings={timeout:"10-100"},w.setup=function(z){return s.extend(w._settings,z),w._settings},s.extend(w,l),s.extend(w.prototype,l),w.prototype.mock=!0,w.prototype.match=!1,s.extend(w.prototype,{open:function(z,F,B,W,Y){var Z=this;s.extend(this.custom,{method:z,url:F,async:typeof B=="boolean"?B:!0,username:W,password:Y,options:{url:F,type:z}}),this.custom.timeout=function(he){if(typeof he=="number")return he;if(typeof he=="string"&&!~he.indexOf("-"))return parseInt(he,10);if(typeof he=="string"&&~he.indexOf("-")){var me=he.split("-"),_e=parseInt(me[0],10),ye=parseInt(me[1],10);return Math.round(Math.random()*(ye-_e))+_e}}(w._settings.timeout);var X=M(this.custom.options);function te(he){for(var me=0;me<x.length;me++)try{Z[x[me]]=oe[x[me]]}catch{}Z.dispatchEvent(new Event(he.type))}if(!X){var oe=C();this.custom.xhr=oe;for(var ae=0;ae<h.length;ae++)oe.addEventListener(h[ae],te);W?oe.open(z,F,B,W,Y):oe.open(z,F,B);for(var le=0;le<v.length;le++)try{oe[v[le]]=Z[v[le]]}catch{}return}this.match=!0,this.custom.template=X,this.readyState=w.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(z,F){if(!this.match){this.custom.xhr.setRequestHeader(z,F);return}var B=this.custom.requestHeaders;B[z]?B[z]+=","+F:B[z]=F},timeout:0,withCredentials:!1,upload:{},send:function(F){var B=this;if(this.custom.options.body=F,!this.match){this.custom.xhr.send(F);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(W,this.custom.timeout):W();function W(){B.readyState=w.HEADERS_RECEIVED,B.dispatchEvent(new Event("readystatechange")),B.readyState=w.LOADING,B.dispatchEvent(new Event("readystatechange")),B.status=200,B.statusText=T[200],B.response=B.responseText=JSON.stringify(V(B.custom.template,B.custom.options),null,4),B.readyState=w.DONE,B.dispatchEvent(new Event("readystatechange")),B.dispatchEvent(new Event("load")),B.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=w.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),s.extend(w.prototype,{responseURL:"",status:w.UNSENT,statusText:"",getResponseHeader:function(z){return this.match?this.custom.responseHeaders[z.toLowerCase()]:this.custom.xhr.getResponseHeader(z)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var z=this.custom.responseHeaders,F="";for(var B in z)z.hasOwnProperty(B)&&(F+=B+": "+z[B]+`\r
|
||
`);return F},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),s.extend(w.prototype,{addEventListener:function(F,B){var W=this.custom.events;W[F]||(W[F]=[]),W[F].push(B)},removeEventListener:function(F,B){for(var W=this.custom.events[F]||[],Y=0;Y<W.length;Y++)W[Y]===B&&W.splice(Y--,1)},dispatchEvent:function(F){for(var B=this.custom.events[F.type]||[],W=0;W<B.length;W++)B[W].call(this,F);var Y="on"+F.type;this[Y]&&this[Y](F)}});function C(){var z=function(){var W=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Y=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Z=location.href,X=Y.exec(Z.toLowerCase())||[];return W.test(X[1])}();return window.ActiveXObject?!z&&F()||B():F();function F(){try{return new window._XMLHttpRequest}catch{}}function B(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function M(z){for(var F in w.Mock._mocked){var B=w.Mock._mocked[F];if((!B.rurl||W(B.rurl,z.url))&&(!B.rtype||W(B.rtype,z.type.toLowerCase())))return B}function W(Y,Z){if(s.type(Y)==="string")return Y===Z;if(s.type(Y)==="regexp")return Y.test(Z)}}function V(z,F){return s.isFunction(z.template)?z.template(F):w.Mock.mock(z.template)}r.exports=w}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer(r){for(var t=[],o=0;o<r.length;){var s=r[o];if(s==="*"||s==="+"||s==="?"){t.push({type:"MODIFIER",index:o,value:r[o++]});continue}if(s==="\\"){t.push({type:"ESCAPED_CHAR",index:o++,value:r[o++]});continue}if(s==="{"){t.push({type:"OPEN",index:o,value:r[o++]});continue}if(s==="}"){t.push({type:"CLOSE",index:o,value:r[o++]});continue}if(s===":"){for(var l="",h=o+1;h<r.length;){var v=r.charCodeAt(h);if(v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||v===95){l+=r[h++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(o));t.push({type:"NAME",index:o,value:l}),o=h;continue}if(s==="("){var x=1,T="",h=o+1;if(r[h]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(h));for(;h<r.length;){if(r[h]==="\\"){T+=r[h++]+r[h++];continue}if(r[h]===")"){if(x--,x===0){h++;break}}else if(r[h]==="("&&(x++,r[h+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(h));T+=r[h++]}if(x)throw new TypeError("Unbalanced pattern at ".concat(o));if(!T)throw new TypeError("Missing pattern at ".concat(o));t.push({type:"PATTERN",index:o,value:T}),o=h;continue}t.push({type:"CHAR",index:o,value:r[o++]})}return t.push({type:"END",index:o,value:""}),t}function parse(r,t){t===void 0&&(t={});for(var o=lexer(r),s=t.prefixes,l=s===void 0?"./":s,h="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),v=[],x=0,T=0,w="",C=function(ae){if(T<o.length&&o[T].type===ae)return o[T++].value},M=function(ae){var le=C(ae);if(le!==void 0)return le;var he=o[T],me=he.type,_e=he.index;throw new TypeError("Unexpected ".concat(me," at ").concat(_e,", expected ").concat(ae))},V=function(){for(var ae="",le;le=C("CHAR")||C("ESCAPED_CHAR");)ae+=le;return ae};T<o.length;){var z=C("CHAR"),F=C("NAME"),B=C("PATTERN");if(F||B){var W=z||"";l.indexOf(W)===-1&&(w+=W,W=""),w&&(v.push(w),w=""),v.push({name:F||x++,prefix:W,suffix:"",pattern:B||h,modifier:C("MODIFIER")||""});continue}var Y=z||C("ESCAPED_CHAR");if(Y){w+=Y;continue}w&&(v.push(w),w="");var Z=C("OPEN");if(Z){var W=V(),X=C("NAME")||"",te=C("PATTERN")||"",oe=V();M("CLOSE"),v.push({name:X||(te?x++:""),pattern:X&&!te?h:te,prefix:W,suffix:oe,modifier:C("MODIFIER")||""});continue}M("END")}return v}function escapeString(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(r){return r&&r.sensitive?"":"i"}function regexpToRegexp(r,t){if(!t)return r;for(var o=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,l=o.exec(r.source);l;)t.push({name:l[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),l=o.exec(r.source);return r}function arrayToRegexp(r,t,o){var s=r.map(function(l){return pathToRegexp(l,t,o).source});return new RegExp("(?:".concat(s.join("|"),")"),flags(o))}function stringToRegexp(r,t,o){return tokensToRegexp(parse(r,o),t,o)}function tokensToRegexp(r,t,o){o===void 0&&(o={});for(var s=o.strict,l=s===void 0?!1:s,h=o.start,v=h===void 0?!0:h,x=o.end,T=x===void 0?!0:x,w=o.encode,C=w===void 0?function(_e){return _e}:w,M=o.delimiter,V=M===void 0?"/#?":M,z=o.endsWith,F=z===void 0?"":z,B="[".concat(escapeString(F),"]|$"),W="[".concat(escapeString(V),"]"),Y=v?"^":"",Z=0,X=r;Z<X.length;Z++){var te=X[Z];if(typeof te=="string")Y+=escapeString(C(te));else{var oe=escapeString(C(te.prefix)),ae=escapeString(C(te.suffix));if(te.pattern)if(t&&t.push(te),oe||ae)if(te.modifier==="+"||te.modifier==="*"){var le=te.modifier==="*"?"?":"";Y+="(?:".concat(oe,"((?:").concat(te.pattern,")(?:").concat(ae).concat(oe,"(?:").concat(te.pattern,"))*)").concat(ae,")").concat(le)}else Y+="(?:".concat(oe,"(").concat(te.pattern,")").concat(ae,")").concat(te.modifier);else te.modifier==="+"||te.modifier==="*"?Y+="((?:".concat(te.pattern,")").concat(te.modifier,")"):Y+="(".concat(te.pattern,")").concat(te.modifier);else Y+="(?:".concat(oe).concat(ae,")").concat(te.modifier)}}if(T)l||(Y+="".concat(W,"?")),Y+=o.endsWith?"(?=".concat(B,")"):"$";else{var he=r[r.length-1],me=typeof he=="string"?W.indexOf(he[he.length-1])>-1:he===void 0;l||(Y+="(?:".concat(W,"(?=").concat(B,"))?")),me||(Y+="(?=".concat(W,"|").concat(B,")"))}return new RegExp(Y,flags(o))}function pathToRegexp(r,t,o){return r instanceof RegExp?regexpToRegexp(r,t):Array.isArray(r)?arrayToRegexp(r,t,o):stringToRegexp(r,t,o)}const Mock=mockJs;function createProdMockServer(r){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const t={};for(let o in this.custom.requestHeaders)t[o.toString().toLowerCase()]=this.custom.requestHeaders[o];this.custom.options=Object.assign({},this.custom.options,{headers:t})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let t=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&t&&(this.custom.xhr.responseType=t)};for(const{url:t,method:o,response:s,timeout:l}of r)__setupMock__(l),Mock.mock(pathToRegexp(t,void 0,{end:!1}),o||"get",__XHR2ExpressReqWrapper__(s))}function __param2Obj__(r){const t=r.split("?")[1];return t?JSON.parse('{"'+decodeURIComponent(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(r){return function(t){let o=null;if(typeof r=="function"){const{body:s,type:l,url:h,headers:v}=t;let x=s;try{x=JSON.parse(s)}catch{}o=r({method:l,body:x,query:__param2Obj__(h),headers:v})}else o=r;return Mock.mock(o)}}function __setupMock__(r=0){r&&Mock.setup({timeout:r})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach(r=>{mockModules.push(...modules[r].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=Vue.createApp(App);Object.keys(directives).forEach(r=>{app.directive(r,directives[r])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async r=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,r),setupStore(app),app.use(MotionPlugin).use(useI18n).use(ElementPlus).use(be).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{Mt as $,IconifyIconOffline as A,Br as B,IconifyIconOnline as C,D,Et as E,FontIcon as F,S as G,Hn as H,In as I,Je as J,Ke as K,Ln as L,noop$2 as M,toValue as N,tryOnScopeDispose$1 as O,Pn as P,isIOS as Q,isClient$1 as R,Sn as S,addIcon$1 as T,getParentPaths as U,Ve as V,findRouteByPath as W,Xe as X,useMultiTagsStoreHook as Y,Zr as Z,_export_sfc as _,_t as a,routerArrays as a0,$t as a1,Ae as a2,j$3 as a3,getTopMenu as a4,emitter as a5,handleAliveRoute as a6,P$2 as a7,Ct as a8,removeToken as a9,Qn as aa,resetRouter as ab,useMultiTagsStore as ac,useUserStoreHook as ad,router as ae,remainingPaths as af,__vitePreload as ag,getAugmentedNamespace as ah,tn as ai,LinearGradient$1 as aj,Ue as ak,initRouter as al,getAuths as am,hasAuth as an,handleTree as ao,appendFieldByUniqueId as ap,getNodeByUniqueId as aq,ut as b,commonjsGlobal as c,deleteChildren as d,extractPathList as e,addDialog as f,getDefaultExportFromCjs as g,closeDialog as h,closeAllDialog as i,hot as j,http as k,tryOnMounted as l,tryOnUnmounted$1 as m,useDebounceFn as n,oo as o,pt as p,qe as q,useIntervalFn as r,Kn as s,transformI18n as t,usePermissionStoreHook as u,vr as v,responsiveStorageNameSpace as w,getConfig as x,store as y,zt as z};
|