vue-pure-admin/dist/static/js/index-fa5d6b3f.js
2023-05-29 11:37:34 +08:00

353 lines
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var ya=Object.defineProperty;var Sa=(r,t,o)=>t in r?ya(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var ar=(r,t,o)=>(Sa(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 v of l)if(v.type==="childList")for(const S of v.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&s(S)}).observe(document,{childList:!0,subtree:!0});function o(l){const v={};return l.integrity&&(v.integrity=l.integrity),l.referrerPolicy&&(v.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?v.credentials="include":l.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function s(l){if(l.ep)return;l.ep=!0;const v=o(l);fetch(l.href,v)}})();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 v=Function.bind.apply(t,l);return new v}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 at=Object.defineProperty,$t$1=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,It=(r,t)=>{for(var o in t)at(r,o,{get:t[o],enumerable:!0})},it=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of kt(t))!Dt.call(r,l)&&l!==o&&at(r,l,{get:()=>t[l],enumerable:!(s=$t$1(t,l))||s.enumerable});return r},K$1=(r,t,o)=>(it(r,t,"default"),o&&it(o,t,"default"));function ut(r){let t=r.split(","),o=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),l=s.length,v=new Uint8Array(l);for(;l--;)v[l]=s.charCodeAt(l);return new Blob([v],{type:o})}function lt$1(r,t,o){return new Promise((s,l)=>{let v=document.createElement("CANVAS"),S=v.getContext("2d"),x=new Image;x.crossOrigin="",x.onload=function(){if(!v||!S)return l();v.height=x.height,v.width=x.width,S.drawImage(x,0,0);let T=v.toDataURL(t||"image/png",o);v=null,s(T)},x.src=r})}var Pt=Object.prototype.toString;function O(r,t){return Pt.call(r)===`[object ${t}]`}function j$2(r){return r!==null&&O(r,"Object")}function R(r){return typeof r<"u"}function pt(r){return!R(r)}function mt(r){return r===null}function Ut(r){return mt(r)||pt(r)}function Bt(r){return tt(r)||C(r)?r.length===0:r instanceof Map||r instanceof Set?r.size===0:j$2(r)?Object.keys(r).length===0:!1}function P$1(r){return!!(Bt(r)||Ut(r))}function dt(r){return O(r,"Number")}function C(r){return O(r,"String")}function H$1(r){return typeof r=="function"}function Le(r){return O(r,"Boolean")}function tt(r){return r&&Array.isArray(r)}var et=typeof window>"u",nt=!et;function gt(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,5})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(t,"ig").test(r)}function Ne(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)}function Fe(r){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(r)}var Y=(r,t)=>!!(r!=null&&r.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))),Ve=(r,t,o)=>{Y(r,t)||(r.className+=" "+t),o&&!Y(r,o)&&(r.className+=" "+o)},Ze=(r,t,o)=>{if(Y(r,t)){let s=new RegExp("(\\s|^)"+t+"(\\s|$)");r.className=r.className.replace(s," ").trim()}if(o&&Y(r,o)){let s=new RegExp("(\\s|^)"+o+"(\\s|$)");r.className=r.className.replace(s," ").trim()}},Ge=(r,t,o)=>{let s=o||document.body,{className:l}=s,v=l.replace(t,"").trim().split(/\s+/).join(" ");s.className=r?`${v} ${t}`:v},Nt=Object.prototype.toString;function Ft(r,t){return r&&r.hasOwnProperty?r.hasOwnProperty(t):!1}function Ht(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 jt(r,t,o){if(r)for(let s in r)Ft(r,s)&&t.call(o,r[s],s,r)}function rt$1(r,t){let o=r.__proto__.constructor;return t?new o(t):new o}function q(r,t){return t?ot(r,t):r}function ot(r,t){if(r)switch(Nt.call(r)){case"[object Object]":{let o=Object.create(r.__proto__);return jt(r,function(s,l){o[l]=q(s,t)}),o}case"[object Date]":case"[object RegExp]":return rt$1(r,r.valueOf());case"[object Array]":case"[object Arguments]":{let o=[];return Ht(r,function(s){o.push(q(s,t))}),o}case"[object Set]":{let o=rt$1(r);return o.forEach(function(s){o.add(q(s,t))}),o}case"[object Map]":{let o=rt$1(r);return o.forEach(function(s){o.set(q(s,t))}),o}}return r}function Ke(r,t){return r&&ot(r,t)}function tn(r){return r&&ot(r,!0)}var nn=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 S=0;S<o;S++)s.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return s;case"hex":let l=[];for(let S=0;S<o;S++)l.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return l;case"hsl":let v=[];for(let S=0;S<o;S++)v.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return v}},k$1=(r=20)=>new Promise(t=>setTimeout(t,r)),vt=(r,t=200,o=!1)=>{let s,l=t,v;return function(){s&&clearTimeout(s),o?(s||r.call(v,...arguments),s=setTimeout(()=>s=null,l)):s=setTimeout(()=>r.call(v,...arguments),l)}},On=(r,t=1e3)=>{let o;return function(){o||(o=setTimeout(()=>{r.call(void 0,...arguments),o=null},t))}},Rn=()=>{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",v=r.match(/windows ce/i)=="windows ce",S=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||v||S||x},Mt=(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 Un(r,t,o,s){lt$1(r).then(l=>{zt(l,t,o,s)})}function zt(r,t,o,s){let l=ut(r);_t(l,t,o,s)}function _t(r,t,o,s){let l=typeof s<"u"?[s,r]:[r],v=new Blob(l,{type:o||"application/octet-stream"}),S=window.URL.createObjectURL(v),x=document.createElement("a");x.style.display="none",x.href=S,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(S)}function Bn(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 v=document.createElement("a");if(v.href=r,v.target=o,v.download!==void 0&&(v.download=t||r.substring(r.lastIndexOf("/")+1,r.length)),document.createEvent){let S=document.createEvent("MouseEvents");return S.initEvent("click",!0,!0),v.dispatchEvent(S),!0}}return r.indexOf("?")===-1&&(r+="?download"),Mt(r,o),!0}function Wt(r,t){if(!r||!t||r.length!==t.length)return!1;for(let o of Object.keys(r))if(!St(r[o],t[o]))return!1;return!0}function Xt(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(!St(r[s],t[s]))return!1;return!0}function St(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]"?Xt(r,t):o==="[object Function]"?r===t?!0:r.toString()===t.toString():r===t}var Yn=(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){ar(this,"storage");this.storage=r}setItem(r,t){P$1(this.storage)||this.storage.setItem(r,JSON.stringify(t))}getItem(r){if(!P$1(this.storage))return JSON.parse(this.storage.getItem(r))}removeItem(r){P$1(this.storage)||this.storage.removeItem(r)}clear(){P$1(this.storage)||this.storage.clear()}},Z=class extends U{constructor(r){super(r)}},tr=()=>nt?new Z(window.localStorage):new Z(""),er=()=>nt?new U(window.sessionStorage):new U("");function Vt(r,t){return C(t)?r.substring(0,r.indexOf(t)):""}function mr(r){if(!gt(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 xr(r,t){return r.every(o=>t.some(s=>s===o))}var wr=(...r)=>[...r].reduce((t,o)=>t.filter(s=>o.includes(s)));function Tr(r,t){let o=[];for(let s of r)s[t]&&o.push(s[t]);return Array.from(new Set(o))}var i={};It(i,{Vue:()=>Vue});K$1(i,Vue);var ne=["class","style"],re=/^on[A-Z]/;function oe(r){return Object.keys(r).map(t=>[t,r[t]])}function Cr(r={}){let t=(0,i.getCurrentInstance)();if(!t)return{};let{excludeListeners:o=!1,excludeKeys:s=[]}=r,l=(0,i.shallowRef)({}),v=s.concat(ne);return t.attrs=(0,i.reactive)(t.attrs),(0,i.watchEffect)(()=>{let S=oe(t.attrs).reduce((x,[T,A])=>(!v.includes(T)&&!(o&&re.test(T))&&(x[T]=A),x),{});l.value=S}),l}function L$2(r){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)(r)}var Fr=()=>{let r=(0,i.shallowRef)(!1),t,o=()=>{r.value=document.documentElement.classList.contains("dark")};return L$2(()=>{t.takeRecords(),t.disconnect()}),(0,i.onBeforeMount)(()=>{o(),t=new MutationObserver(o),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:r}};function At(){let{appContext:{config:{globalProperties:r}}}=(0,i.getCurrentInstance)();return r}var Qr=(r,t)=>{let o=(t==null?void 0:t.theme)??(0,i.ref)("default"),s=(t==null?void 0:t.tooltipId)??"tooltipElement",l=At().$echarts,v=null,S=(0,i.ref)({}),x=(0,i.ref)(),T=(0,i.computed)(()=>o.value!=="dark"?S.value:{backgroundColor:"transparent",...S.value});function A(le){let pe=(0,i.unref)(r);!pe||!(0,i.unref)(pe)||(v=l.init(pe,le))}function w(le,...pe){var ue;if(S.value=le,x.value=pe,((ue=(0,i.unref)(r))==null?void 0:ue.offsetHeight)===0){k$1().then(()=>w((0,i.unref)(T),...pe));return}(0,i.nextTick)(()=>{k$1().then(()=>{!v&&A(o.value),(le.clear??!0)&&E(),v==null||v.setOption((0,i.unref)(T)),pe&&pe.map(_e=>{(_e==null?void 0:_e.type)!=="zrender"&&typeof(_e==null?void 0:_e.callback)=="function"&&(v==null||v.on(_e==null?void 0:_e.name,_e!=null&&_e.query?_e==null?void 0:_e.query:"",xe=>{_e==null||_e.callback(xe)})),(_e==null?void 0:_e.type)==="zrender"&&typeof(_e==null?void 0:_e.callback)=="function"&&(v==null||v.getZr().on(_e==null?void 0:_e.name,xe=>{xe.target||(_e==null||_e.callback(xe))}))}),le!=null&&le.addTooltip&&te(le.addTooltip)})})}function E(){v&&v.clear()}function D(){v.resize()}function $(le){let pe=(le==null?void 0:le.type)??"default",ue=(le==null?void 0:le.opts)??{};v.showLoading(pe,ue)}function N(){v.hideLoading()}function z(le){v.appendData(le)}function F(){return v.getWidth()}function B(){return v.getHeight()}function G(){return v||A(o.value),v}function W(){return v.getDom()}function X(){return v.getOption()}function ee(le){return v.getDataURL(le)}function Q(le){return v.getConnectedDataURL(le)}function te(le){if(!le)return;let pe=document.querySelector("html");if(!document.getElementById(s)){let xe=document.createElement("div");xe.setAttribute("id",s),xe.style.display="block",pe.appendChild(xe)}let ue=document.querySelector(`#${s}`),_e=xe=>{if((xe==null?void 0:xe.targetType)!=="axisLabel")return;let Te=`
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;
`;ue.style.cssText=Te,ue.innerHTML=xe==null?void 0:xe.value,pe.onmousemove=Ae=>{let we=Ae.pageX-10,$e=Ae.pageY+15;ue.style.top=$e+"px",ue.style.left=we+"px"}};v==null||v.on("mouseover",xe=>{(le==="x"&&xe.componentType=="xAxis"||le==="y"&&xe.componentType=="yAxis"||le.toString()==="true"&&xe.componentType.includes("Axis"))&&_e(xe)}),v==null||v.on("mouseout",()=>{pe.onmousemove=null,ue.style.cssText="display:none"})}(0,i.watch)(()=>o.value,le=>{v&&(v.dispose(),A(le),w(S.value,...x.value))});function ie(){var le;!v||k$1(((le=S.value)==null?void 0:le.delay)??300).then(()=>{D()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",ie)})}),L$2(()=>{var le;window.removeEventListener("resize",ie),v&&(v.dispose(),v=null,(le=document.querySelector(`#${s}`))==null||le.remove())}),{echarts:l,clear:E,resize:D,getDom:W,getWidth:F,getOption:X,getHeight:B,addTooltip:te,getDataURL:ee,setOptions:w,appendData:z,getInstance:G,showLoading:$,hideLoading:N,getConnectedDataURL:Q}},ae=Symbol("watermark-dom"),lo=(r=(0,i.ref)(document.body))=>{let t=ae.toString(),o=(0,i.shallowRef)(),s=()=>{let E=(0,i.unref)(o);o.value=void 0;let D=(0,i.unref)(r);!D||E&&D.removeChild(E)};function l(E,D){let $=document.createElement("canvas"),N=(D==null?void 0:D.width)??250,z=(D==null?void 0:D.height)??100;Object.assign($,{width:N,height:z});let F=$.getContext("2d");if(F){if(F.rotate(((D==null?void 0:D.rotate)??-10*Math.PI)/120),F.font=(D==null?void 0:D.font)??"15px Reggae One",(D==null?void 0:D.gradient)&&tt(D==null?void 0:D.gradient)){let B=F.createLinearGradient(0,0,N,0);D==null||D.gradient.forEach(G=>{B.addColorStop(G.value,G.color)}),F.fillStyle=B}else F.fillStyle=(D==null?void 0:D.fillStyle)??"rgba(0, 0, 0, 0.15)";if(F.textAlign="left",F.textBaseline="middle",D!=null&&D.globalAlpha&&(F.globalAlpha=D.globalAlpha),D==null?void 0:D.shadowConfig){let{shadowConfig:B}=D;F.shadowBlur=B[0],F.shadowColor=(B==null?void 0:B[1])??"#000000",F.shadowOffsetX=(B==null?void 0:B[2])??0,F.shadowOffsetY=(B==null?void 0:B[3])??0}F.fillText(E,N/((D==null?void 0:D.fillTextWidth)??20),z/((D==null?void 0:D.fillTextHeight)??2))}return $.toDataURL("image/png")}function v(E={}){let D=(0,i.unref)(o);!D||(R(E.width)&&(D.style.width=`${E.width}px`),R(E.height)&&(D.style.height=`${E.height}px`),R(E.str)&&(D.style.background=`url(${l(E.str,E.attr)}) left top repeat`))}let S=vt(()=>{let E=(0,i.unref)(r);if(!E)return;let{clientHeight:D,clientWidth:$}=E;v({height:D,width:$})}),x=(E,D)=>{var B;if((0,i.unref)(o))return v({str:E,attr:D}),t;let $=document.createElement("div");o.value=$,$.id=t,$.style.pointerEvents="none",$.style.top="0px",$.style.left="0px",$.style.position="absolute",$.style.zIndex=(D==null?void 0:D.zIndex)??"100000";let N=(0,i.unref)(r);if(!N)return t;let{clientHeight:z,clientWidth:F}=N;return v({str:E,width:F,height:z,attr:D}),(B=N==null?void 0:N.style)!=null&&B.position||(N.style.position="relative"),N.appendChild($),t};function T(E,{str:D,attr:$}){E[0].removedNodes[0]&&E[0].removedNodes[0].id===t&&(o.value=void 0,x(D,$))}function A(E,D){let $={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(N=>T(N,{str:E,attr:D})).observe((0,i.unref)(r),$)}function w(E,D){x(E,D),window.addEventListener("resize",S),D!=null&&D.forever&&A(E,D),(0,i.getCurrentInstance)()&&s&&s()}return L$2(()=>{window.removeEventListener("resize",S)}),{clear:s,setWatermark:w}};const data$1={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3ZM2 3h6v2H4v4H2V3Zm18 16v-4h2v6h-6v-2h4ZM4 19h4v2H2v-6h2v4Z"/>'},data={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4ZM8 9H2V7h4V3h2v6Zm10 8v4h-2v-6h6v2h-4ZM8 15v6H6v-4H2v-2h6Z"/>'},_hoisted_1$1={key:0,class:"flex items-center justify-between"},_hoisted_2$1=["id"],_hoisted_3$1={key:1},_sfc_main$1=Vue.defineComponent({__name:"index",setup(r){const t=Vue.ref(!1),o=Vue.computed(()=>S=>{var x;return((x=S==null?void 0:S.footerButtons)==null?void 0:x.length)>0?S.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:T,index:A}})=>{const w=()=>closeDialog(T,A,{command:"cancel"});T!=null&&T.beforeCancel&&H$1(T==null?void 0:T.beforeCancel)?T.beforeCancel(w,{options:T,index:A}):w()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:T,index:A}})=>{const w=()=>closeDialog(T,A,{command:"sure"});T!=null&&T.beforeSure&&H$1(T==null?void 0:T.beforeSure)?T.beforeSure(w,{options:T,index:A}):w()}}]}),s=Vue.computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function l(S,x,T){if(t.value=(x==null?void 0:x.fullscreen)??!1,x!=null&&x[S]&&H$1(x==null?void 0:x[S]))return x==null?void 0:x[S]({options:x,index:T})}function v(S,x,T={command:"close"}){closeDialog(S,x,T),l("close",S,x)}return(S,x)=>{const T=Vue.resolveComponent("IconifyIconOffline"),A=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(dialogStore),(E,D)=>(Vue.openBlock(),Vue.createBlock(w,Vue.mergeProps({class:"pure-dialog",key:D},E,{modelValue:E.visible,"onUpdate:modelValue":$=>E.visible=$,fullscreen:t.value?!0:!!(E!=null&&E.fullscreen),onClose:$=>v(E,D),onOpened:$=>l("open",E,D),onOpenAutoFocus:$=>l("openAutoFocus",E,D),onCloseAutoFocus:$=>l("closeAutoFocus",E,D)}),Vue.createSlots({default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(E.contentRenderer({options:E,index:D})),Vue.mergeProps(E==null?void 0:E.props,{onClose:$=>v(E,D,$)}),null,16,["onClose"]))]),_:2},[E!=null&&E.fullscreenIcon||E!=null&&E.headerRenderer?{name:"header",fn:Vue.withCtx(({close:$,titleId:N,titleClass:z})=>[E!=null&&E.fullscreenIcon?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$1,[Vue.createElementVNode("span",{id:N,class:Vue.normalizeClass(z)},Vue.toDisplayString(E==null?void 0:E.title),11,_hoisted_2$1),E!=null&&E.fullscreen?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("i",{key:0,class:Vue.normalizeClass(s.value),onClick:x[0]||(x[0]=F=>t.value=!t.value)},[Vue.createVNode(T,{class:"pure-dialog-svg",icon:E!=null&&E.fullscreen||t.value?Vue.unref(data):Vue.unref(data$1)},null,8,["icon"])],2))])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(E==null?void 0:E.headerRenderer({close:$,titleId:N,titleClass:z})),{key:1}))]),key:"0"}:void 0,E!=null&&E.hideFooter?void 0:{name:"footer",fn:Vue.withCtx(()=>[E!=null&&E.footerRenderer?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(E==null?void 0:E.footerRenderer({options:E,index:D})),{key:0})):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$1,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.value(E),($,N)=>(Vue.openBlock(),Vue.createBlock(A,Vue.mergeProps({key:N},$,{onClick:z=>$.btnClick({dialog:{options:E,index:D},button:{btn:$,index:N}})}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString($==null?void 0:$.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","fullscreen","onClose","onOpened","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose(r){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(r),!0):!1}function toValue(r){return typeof r=="function"?r():VueDemi.unref(r)}const isClient=typeof window<"u",notNullish=r=>r!=null,toString=Object.prototype.toString,isObject$5=r=>toString.call(r)==="[object Object]",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var r;return isClient&&((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,v)=>{Promise.resolve(r(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(l).catch(v)})}return o}function debounceFilter(r,t={}){let o,s,l=noop$1;const v=x=>{clearTimeout(x),l(),l=noop$1};return x=>{const T=toValue(r),A=toValue(t.maxWait);return o&&v(o),T<=0||A!==void 0&&A<=0?(s&&(v(s),s=null),Promise.resolve(x())):new Promise((w,E)=>{l=t.rejectOnCancel?E:w,A&&!s&&(s=setTimeout(()=>{o&&v(o),s=null,w(x())},A)),o=setTimeout(()=>{s&&v(s),s=null,w(x())},T)})}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function toRef(...r){if(r.length!==1)return VueDemi.toRef(...r);const t=r[0];return typeof t=="function"?VueDemi.readonly(VueDemi.customRef(()=>({get:t,set:noop$1}))):VueDemi.ref(t)}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(r){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(r)}function useIntervalFn(r,t=1e3,o={}){const{immediate:s=!0,immediateCallback:l=!1}=o;let v=null;const S=VueDemi.ref(!1);function x(){v&&(clearInterval(v),v=null)}function T(){S.value=!1,x()}function A(){const w=toValue(t);w<=0||(S.value=!0,l&&r(),x(),v=setInterval(r,w))}if(s&&isClient&&A(),VueDemi.isRef(t)||typeof t=="function"){const w=VueDemi.watch(t,()=>{S.value&&isClient&&A()});tryOnScopeDispose(w)}return tryOnScopeDispose(T),{isActive:S,pause:T,resume:A}}function useTimeoutFn(r,t,o={}){const{immediate:s=!0}=o,l=VueDemi.ref(!1);let v=null;function S(){v&&(clearTimeout(v),v=null)}function x(){l.value=!1,S()}function T(...A){S(),l.value=!0,v=setTimeout(()=>{l.value=!1,v=null,r(...A)},toValue(t))}return s&&(l.value=!0,isClient&&T()),tryOnScopeDispose(x),{isPending:VueDemi.readonly(l),start:T,stop:x}}function unrefElement(r){var t;const o=toValue(r);return(t=o==null?void 0:o.$el)!=null?t:o}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...r){let t,o,s,l;if(typeof r[0]=="string"||Array.isArray(r[0])?([o,s,l]=r,t=defaultWindow):[t,o,s,l]=r,!t)return noop$1;Array.isArray(o)||(o=[o]),Array.isArray(s)||(s=[s]);const v=[],S=()=>{v.forEach(w=>w()),v.length=0},x=(w,E,D,$)=>(w.addEventListener(E,D,$),()=>w.removeEventListener(E,D,$)),T=VueDemi.watch(()=>[unrefElement(t),toValue(l)],([w,E])=>{S(),w&&v.push(...o.flatMap(D=>s.map($=>x(w,D,$,E))))},{immediate:!0,flush:"post"}),A=()=>{T(),S()};return tryOnScopeDispose(A),A}let _iOSWorkaround=!1;function onClickOutside(r,t,o={}){const{window:s=defaultWindow,ignore:l=[],capture:v=!0,detectIframe:S=!1}=o;if(!s)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(s.document.body.children).forEach(D=>D.addEventListener("click",noop$1)));let x=!0;const T=D=>l.some($=>{if(typeof $=="string")return Array.from(s.document.querySelectorAll($)).some(N=>N===D.target||D.composedPath().includes(N));{const N=unrefElement($);return N&&(D.target===N||D.composedPath().includes(N))}}),w=[useEventListener(s,"click",D=>{const $=unrefElement(r);if(!(!$||$===D.target||D.composedPath().includes($))){if(D.detail===0&&(x=!T(D)),!x){x=!0;return}t(D)}},{passive:!0,capture:v}),useEventListener(s,"pointerdown",D=>{const $=unrefElement(r);$&&(x=!D.composedPath().includes($)&&!T(D))},{passive:!0}),S&&useEventListener(s,"blur",D=>{var $;const N=unrefElement(r);(($=s.document.activeElement)==null?void 0:$.tagName)==="IFRAME"&&!(N!=null&&N.contains(s.document.activeElement))&&t(D)})].filter(Boolean);return()=>w.forEach(D=>D())}function createKeyPredicate(r){return typeof r=="function"?r:typeof r=="string"?t=>t.key===r:Array.isArray(r)?t=>r.includes(t.key):()=>!0}function onKeyStroke(...r){let t,o,s={};r.length===3?(t=r[0],o=r[1],s=r[2]):r.length===2?typeof r[1]=="object"?(t=!0,o=r[0],s=r[1]):(t=r[0],o=r[1]):(t=!0,o=r[0]);const{target:l=defaultWindow,eventName:v="keydown",passive:S=!1,dedupe:x=!1}=s,T=createKeyPredicate(t);return useEventListener(l,v,w=>{w.repeat&&toValue(x)||T(w)&&o(w)},S)}function templateRef(r,t=null){const o=VueDemi.getCurrentInstance();let s=()=>{};const l=VueDemi.customRef((v,S)=>(s=S,{get(){var x,T;return v(),(T=(x=o==null?void 0:o.proxy)==null?void 0:x.$refs[r])!=null?T:t},set(){}}));return tryOnMounted(s),VueDemi.onUpdated(s),l}function useMounted(){const r=VueDemi.ref(!1);return VueDemi.getCurrentInstance()&&VueDemi.onMounted(()=>{r.value=!0}),r}function useSupported(r){const t=useMounted();return VueDemi.computed(()=>(t.value,!!r()))}function useMediaQuery(r,t={}){const{window:o=defaultWindow}=t,s=useSupported(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function");let l;const v=VueDemi.ref(!1),S=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",x):l.removeListener(x))},x=()=>{s.value&&(S(),l=o.matchMedia(toRef(r).value),v.value=!!(l!=null&&l.matches),l&&("addEventListener"in l?l.addEventListener("change",x):l.addListener(x)))};return VueDemi.watchEffect(x),tryOnScopeDispose(()=>S()),v}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(r,t)=>{var o={};for(var s in r)__hasOwnProp$g.call(r,s)&&t.indexOf(s)<0&&(o[s]=r[s]);if(r!=null&&__getOwnPropSymbols$g)for(var s of __getOwnPropSymbols$g(r))t.indexOf(s)<0&&__propIsEnum$g.call(r,s)&&(o[s]=r[s]);return o};function useResizeObserver(r,t,o={}){const s=o,{window:l=defaultWindow}=s,v=__objRest$2(s,["window"]);let S;const x=useSupported(()=>l&&"ResizeObserver"in l),T=()=>{S&&(S.disconnect(),S=void 0)},A=VueDemi.computed(()=>Array.isArray(r)?r.map(D=>unrefElement(D)):[unrefElement(r)]),w=VueDemi.watch(A,D=>{if(T(),x.value&&l){S=new ResizeObserver(t);for(const $ of D)$&&S.observe($,v)}},{immediate:!0,flush:"post",deep:!0}),E=()=>{T(),w()};return tryOnScopeDispose(E),{isSupported:x,stop:E}}function useIntersectionObserver(r,t,o={}){const{root:s,rootMargin:l="0px",threshold:v=.1,window:S=defaultWindow,immediate:x=!0}=o,T=useSupported(()=>S&&"IntersectionObserver"in S),A=VueDemi.computed(()=>{const N=toValue(r);return(Array.isArray(N)?N:[N]).map(unrefElement).filter(notNullish)});let w=noop$1;const E=VueDemi.ref(x),D=T.value?VueDemi.watch(()=>[A.value,unrefElement(s),E.value],([N,z])=>{if(w(),!E.value||!N.length)return;const F=new IntersectionObserver(t,{root:unrefElement(z),rootMargin:l,threshold:v});N.forEach(B=>B&&F.observe(B)),w=()=>{F.disconnect(),w=noop$1}},{immediate:x,flush:"post"}):noop$1,$=()=>{w(),D(),E.value=!1};return tryOnScopeDispose($),{isSupported:T,isActive:E,pause(){w(),E.value=!1},resume(){E.value=!0},stop:$}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(r,t={}){const{document:o=defaultDocument,autoExit:s=!1}=t,l=VueDemi.computed(()=>{var B;return(B=unrefElement(r))!=null?B:o==null?void 0:o.querySelector("html")}),v=VueDemi.ref(!1),S=VueDemi.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(B=>o&&B in o||l.value&&B in l.value)),x=VueDemi.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(B=>o&&B in o||l.value&&B in l.value)),T=VueDemi.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(B=>o&&B in o||l.value&&B in l.value)),A=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(B=>o&&B in o),w=useSupported(()=>l.value&&o&&S.value!==void 0&&x.value!==void 0&&T.value!==void 0),E=()=>A?(o==null?void 0:o[A])===l.value:!1,D=()=>{if(T.value){if(o&&o[T.value]!=null)return o[T.value];{const B=l.value;if((B==null?void 0:B[T.value])!=null)return!!B[T.value]}}return!1};async function $(){if(w.value){if(x.value)if((o==null?void 0:o[x.value])!=null)await o[x.value]();else{const B=l.value;(B==null?void 0:B[x.value])!=null&&await B[x.value]()}v.value=!1}}async function N(){if(!w.value)return;D()&&await $();const B=l.value;S.value&&(B==null?void 0:B[S.value])!=null&&(await B[S.value](),v.value=!0)}async function z(){await(v.value?$():N())}const F=()=>{const B=D();(!B||B&&E())&&(v.value=B)};return useEventListener(o,eventHandlers,F,!1),useEventListener(()=>unrefElement(l),eventHandlers,F,!1),s&&tryOnScopeDispose($),{isSupported:w,isFullscreen:v,enter:N,exit:$,toggle:z}}function useWindowSize(r={}){const{window:t=defaultWindow,initialWidth:o=1/0,initialHeight:s=1/0,listenOrientation:l=!0,includeScrollbar:v=!0}=r,S=VueDemi.ref(o),x=VueDemi.ref(s),T=()=>{t&&(v?(S.value=t.innerWidth,x.value=t.innerHeight):(S.value=t.document.documentElement.clientWidth,x.value=t.document.documentElement.clientHeight))};if(T(),tryOnMounted(T),useEventListener("resize",T,{passive:!0}),l){const A=useMediaQuery("(orientation: portrait)");VueDemi.watch(A,()=>T())}return{width:S,height: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})},updateDialog=(r,t="title",o=0)=>{dialogStore.value[o][t]=r},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Yn(_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,v){const S=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(S),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(v=>{if(v=assetsURL(v),v in seen)return;seen[v]=!0;const S=v.endsWith(".css"),x=S?'[rel="stylesheet"]':"";if(!!s)for(let w=l.length-1;w>=0;w--){const E=l[w];if(E.href===v&&(!S||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${x}`))return;const A=document.createElement("link");if(A.rel=S?"stylesheet":scriptRel,S||(A.as="script",A.crossOrigin=""),A.href=v,document.head.appendChild(A),S)return new Promise((w,E)=>{A.addEventListener("load",w),A.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${v}`)))})})).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"])},hssegmented:r=>{const{normalize:t}=r;return t(["Segmented Components"])},hswaterfall:r=>{const{normalize:t}=r;return t(["Waterfall 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(["视频组件"])},hssegmented:r=>{const{normalize:t}=r;return t(["分段控制器组件"])},hswaterfall: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 wn;const i18n=VueI18n.createI18n({legacy:!1,locale:((wn=tr().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:wn.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-3f53bc03.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-82d3e27f.js"),["static/js/print-82d3e27f.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-4eee4c12.js","static/js/app-713d5fa9.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-3a3d326e.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-fbb18f42.js"),["static/js/icon-select-fbb18f42.js","static/css/icon-select-e8efdfdc.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-3f6ab192.js"),["static/js/timeline-3f6ab192.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-a12c1294.js","static/js/iphone-89710f1a.js","static/css/timeline-12434188.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-e82317f5.js"),["static/js/menu-tree-e82317f5.js","static/js/hooks-a12c1294.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-1c8cd517.js"),["static/js/line-tree-1c8cd517.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-11281b56.js"),["static/js/debounce-11281b56.js","static/js/message-6f31e976.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-be17e92f.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-a6c6fa61.js"),["static/js/qrcode-a6c6fa61.js","static/js/message-6f31e976.js","static/js/index-2a7cbc86.js","static/js/propTypes-3b04af70.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-4038271a.js"),["static/js/cascader-4038271a.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-204c486b.js"),["static/js/swiper-204c486b.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-b8bc487b.js"),["static/js/index-b8bc487b.js","static/js/vertical-fabca678.js","static/js/vue-virtual-scroller.esm-2a0ddd3e.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-b2d08b06.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-752d65f1.js"),["static/js/pdf-752d65f1.js","static/js/_vue_commonjs-external-c09696f7.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-f6586c3e.js"),["static/js/execl-f6586c3e.js","static/js/xlsx-f5126985.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-98f9ab8f.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-97386fc0.js"),["static/js/index-97386fc0.js","static/js/columns-453b1fd7.js","static/css/index-cb8197dd.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/dialog",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"DialogPage",component:()=>__vitePreload(()=>import("./index-a9403ca2.js"),["static/js/index-a9403ca2.js","static/js/message-6f31e976.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.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-0733de1c.js"),["static/js/index-0733de1c.js","static/js/message-6f31e976.js","static/js/hooks-a12c1294.js","static/js/check-f53d8364.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index-505cb84c.js"),["static/js/index-505cb84c.js","static/js/message-6f31e976.js","static/js/home-filled-05cc090c.js","static/js/hooks-a12c1294.js","static/css/index-fa517f4b.css"]),meta:{title:$t("menus.hssegmented"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/waterfall",name:"Waterfall",component:()=>__vitePreload(()=>import("./index-fc643953.js"),["static/js/index-fc643953.js","static/js/back_top-98ec2857.js","static/css/index-d102724b.css"]),meta:{title:$t("menus.hswaterfall"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/video",name:"VideoPage",component:()=>__vitePreload(()=>import("./index-81a525a6.js"),["static/js/index-81a525a6.js","static/js/hooks-a12c1294.js","static/css/index-12dd4e77.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"MapPage",component:()=>__vitePreload(()=>import("./index-aa0ab421.js"),["static/js/index-aa0ab421.js","static/css/index-c6f744fa.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-e905535c.js"),["static/js/index-e905535c.js","static/js/sortable.esm-e674cde8.js","static/js/app-713d5fa9.js","static/js/hooks-a12c1294.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-9c2c68da.js"),["static/js/index-9c2c68da.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"ButtonPage",component:()=>__vitePreload(()=>import("./index-ba5c9799.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-15d5b175.js"),["static/js/index-15d5b175.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-daef50b5.js"),["static/js/index-daef50b5.js","static/js/propTypes-3b04af70.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-6b80812b.js"),["static/js/index-6b80812b.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-cf07a724.js"),["static/js/index-cf07a724.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-15420b2b.js"),["static/js/index-15420b2b.js","static/js/basic-64dc6ec4.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-4fa90e10.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-33077e2c.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-bdd5ab08.js"),["static/js/index-bdd5ab08.js","static/js/index-771e958b.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-6e270144.js"),["static/js/index-6e270144.js","static/js/styles-fb9bfda2.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-f7a391a0.js"),["static/js/index-f7a391a0.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-40d96463.js"),["static/js/index-40d96463.js","static/js/base.vue_vue_type_script_setup_true_lang-c462fdcc.js","static/js/index.esm-6e095cf4.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-a34e2a7e.js","static/js/index-47090b5c.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-90c4ac2f.js","static/css/index-2bb08053.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-e7355192.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-05378b47.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-d185a892.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-33a1ea57.js"),["static/js/index-33a1ea57.js","static/js/hooks-a12c1294.js","static/js/styles-fb9bfda2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-6bd35e69.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-8e120936.js"),["static/js/frameView-8e120936.js","static/css/frameView-ed080731.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-2c297e1e.js"),["static/js/index-2c297e1e.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-6dedd829.js"),["static/js/index-6dedd829.js","static/js/menu-a4fe64fb.js","static/js/set-up-729eb907.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-08c5ced8.js","static/js/epTheme-11b37036.js","static/js/app-713d5fa9.js","static/js/hooks-a12c1294.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/js/back_top-98ec2857.js","static/css/index-6bfc0cd3.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-3147f8f0.js"),["static/js/index-3147f8f0.js","static/js/Bar.vue_vue_type_script_setup_true_lang-402eb711.js","static/js/app-713d5fa9.js","static/js/Pie.vue_vue_type_script_setup_true_lang-457d686f.js","static/js/Line.vue_vue_type_script_setup_true_lang-4eee4c12.js","static/js/list-3e287078.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-dba21543.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-22601707.js"),["static/js/index-22601707.js","static/js/Card-1403059d.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css","static/js/list-3e287078.js","static/js/message-6f31e976.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-6d11c564.js","static/js/hooks-a12c1294.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-be914bdb.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-f9b60cce.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-9b74b1b4.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-f0630e7a.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-9312b9c4.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-1610e1d6.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-8e120936.js"),["static/js/frameView-8e120936.js","static/css/frameView-ed080731.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-8e120936.js"),["static/js/frameView-8e120936.js","static/css/frameView-ed080731.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-8e120936.js"),["static/js/frameView-8e120936.js","static/css/frameView-ed080731.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-09c08439.js"),["static/js/success-09c08439.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-2ad7a947.js"),["static/js/fail-2ad7a947.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-8c7d12a4.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-883eba27.js"),["static/js/index-883eba27.js","static/js/list-edb80902.js","static/js/base.vue_vue_type_script_setup_true_lang-edadd1d0.js","static/js/data-91deb383.js","static/js/stripe.vue_vue_type_script_setup_true_lang-0c2e9d80.js","static/js/border.vue_vue_type_script_setup_true_lang-a6781784.js","static/js/status.vue_vue_type_style_index_0_lang-8287d74a.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c8b7496f.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-ec737fbe.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-d99586b1.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-7df648d6.js","static/js/radio.vue_vue_type_script_setup_true_lang-22adedec.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-2555f209.js","static/js/sortable.vue_vue_type_script_setup_true_lang-cee0b462.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-b8a46766.js","static/js/columns-4ad2454e.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-9c4d4f61.js","static/js/columns-ab885ff9.js","static/js/expand.vue_vue_type_script_setup_true_lang-d9e692ed.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-eb667c3a.js","static/js/layout.vue_vue_type_script_setup_true_lang-3441b4d1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-6248338b.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-896ed1dc.js"),["static/js/high-896ed1dc.js","static/js/list-91efd6e4.js","static/js/index.vue_vue_type_script_setup_true_lang-1d16d3a6.js","static/js/columns-4e3b73ef.js","static/js/data-5870e2fd.js","static/js/index.vue_vue_type_script_setup_true_lang-9737e2c4.js","static/js/columns-04964300.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-0ef8d7c9.js","static/js/columns-70239efe.js","static/js/index.vue_vue_type_script_setup_true_lang-c9deb414.js","static/js/columns-e797b8cf.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd72fc1.js","static/js/columns-5e5dce50.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-f10707b2.js","static/js/columns-a7e47e08.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-f302f3d5.js","static/js/columns-ea8b3d4a.js","static/js/index.vue_vue_type_script_setup_true_lang-d133dec4.js","static/js/columns-2e9acbbf.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-d6c3bcf5.js","static/js/columns-dfcbbe42.js","static/js/index.vue_vue_type_script_setup_true_lang-ea4ae9ee.js","static/js/index.vue_vue_type_script_setup_true_lang-123dbf2b.js","static/js/columns-0aeb0756.js","static/js/index.vue_vue_type_script_setup_true_lang-b1f00755.js","static/js/columns-4652194b.js","static/css/high-5bc3f1f1.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,v,S){if(!(typeof document>"u")){S=assign$1({},t,S),typeof S.expires=="number"&&(S.expires=new Date(Date.now()+S.expires*864e5)),S.expires&&(S.expires=S.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var x="";for(var T in S)S[T]&&(x+="; "+T,S[T]!==!0&&(x+="="+S[T].split(";")[0]));return document.cookie=l+"="+r.write(v,l)+x}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var v=document.cookie?document.cookie.split("; "):[],S={},x=0;x<v.length;x++){var T=v[x].split("="),A=T.slice(1).join("=");try{var w=decodeURIComponent(T[0]);if(S[w]=r.read(A,w),l===w)break}catch{}}return l?S[l]:S}}return Object.create({set:o,get:s,remove:function(l,v){o(l,"",assign$1({},v,{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 v=Object.getOwnPropertySymbols(t);if(v.length!==1||v[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(t,o);if(S.value!==l||S.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,v=function(){if(this instanceof l){var w=o.apply(this,s.concat(slice$1.call(arguments)));return Object(w)===w?w:this}else return o.apply(t,s.concat(slice$1.call(arguments)))},S=Math.max(0,o.length-s.length),x=[],T=0;T<S;T++)x.push("$"+T);if(l=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this,arguments); }")(v),o.prototype){var A=function(){};A.prototype=o.prototype,l.prototype=new A,A.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(v,S,x,T){l[l.length]=x?$replace$1(T,reEscapeChar,"$1"):S||v}),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 v=INTRINSICS[s];if(v===needsEval&&(v=doEval(s)),typeof v>"u"&&!o)throw new $TypeError$1("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:l,name:s,value:v}}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]:"",v=getBaseIntrinsic("%"+l+"%",o),S=v.name,x=v.value,T=!1,A=v.alias;A&&(l=A[0],$spliceApply(s,$concat$1([0,1],A)));for(var w=1,E=!0;w<s.length;w+=1){var D=s[w],$=$strSlice(D,0,1),N=$strSlice(D,-1);if(($==='"'||$==="'"||$==="`"||N==='"'||N==="'"||N==="`")&&$!==N)throw new $SyntaxError("property names with quotes must have matching quotes");if((D==="constructor"||!E)&&(T=!0),l+="."+D,S="%"+l+"%",hasOwn$2(INTRINSICS,S))x=INTRINSICS[S];else if(x!=null){if(!(D in x)){if(!o)throw new $TypeError$1("base intrinsic for "+t+" exists, but the property is not available.");return}if($gOPD&&w+1>=s.length){var z=$gOPD(x,D);E=!!z,E&&"get"in z&&!("originalValue"in z.get)?x=z.get:x=x[D]}else E=hasOwn$2(x,D),x=x[D];E&&!T&&(INTRINSICS[S]=x)}}return x},callBind$1={exports:{}};(function(r){var t=functionBind,o=getIntrinsic,s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),v=o("%Reflect.apply%",!0)||t.call(l,s),S=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(E){var D=v(t,l,arguments);if(S&&x){var $=S(D,"length");$.configurable&&x(D,"length",{value:1+T(0,E.length-(arguments.length-1))})}return D};var A=function(){return v(t,s,arguments)};x?x(r.exports,"apply",{value:A}):r.exports.apply=A})(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),v=$slice.call(t,l.length+1);return $replace.call(l,o,"$&_")+"."+$replace.call($replace.call(v,/([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 v=o||{};if(has$4(v,"quoteStyle")&&v.quoteStyle!=="single"&&v.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(v,"maxStringLength")&&(typeof v.maxStringLength=="number"?v.maxStringLength<0&&v.maxStringLength!==1/0:v.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=has$4(v,"customInspect")?v.customInspect:!0;if(typeof S!="boolean"&&S!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(v,"indent")&&v.indent!==null&&v.indent!==" "&&!(parseInt(v.indent,10)===v.indent&&v.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(v,"numericSeparator")&&typeof v.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=v.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,v);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 A=String(t)+"n";return x?addNumericSeparator(t,A):A}var w=typeof v.depth>"u"?5:v.depth;if(typeof s>"u"&&(s=0),s>=w&&w>0&&typeof t=="object")return isArray$6(t)?"[Array]":"[Object]";var E=getIndent(v,s);if(typeof l>"u")l=[];else if(indexOf$1(l,t)>=0)return"[Circular]";function D(xe,Te,Ae){if(Te&&(l=$arrSlice.call(l),l.push(Te)),Ae){var we={depth:v.depth};return has$4(v,"quoteStyle")&&(we.quoteStyle=v.quoteStyle),r(xe,we,s+1,l)}return r(xe,v,s+1,l)}if(typeof t=="function"&&!isRegExp$2(t)){var $=nameOf(t),N=arrObjKeys(t,D);return"[Function"+($?": "+$:" (anonymous)")+"]"+(N.length>0?" { "+$join.call(N,", ")+" }":"")}if(isSymbol(t)){var z=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t=="object"&&!hasShammedSymbols?markBoxed(z):z}if(isElement$1(t)){for(var F="<"+$toLowerCase.call(String(t.nodeName)),B=t.attributes||[],G=0;G<B.length;G++)F+=" "+B[G].name+"="+wrapQuotes(quote(B[G].value),"double",v);return F+=">",t.childNodes&&t.childNodes.length&&(F+="..."),F+="</"+$toLowerCase.call(String(t.nodeName))+">",F}if(isArray$6(t)){if(t.length===0)return"[]";var W=arrObjKeys(t,D);return E&&!singleLineValues(W)?"["+indentedJoin(W,E)+"]":"[ "+$join.call(W,", ")+" ]"}if(isError(t)){var X=arrObjKeys(t,D);return!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")?"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+D(t.cause),X),", ")+" }":X.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(X,", ")+" }"}if(typeof t=="object"&&S){if(inspectSymbol&&typeof t[inspectSymbol]=="function"&&utilInspect)return utilInspect(t,{depth:w-s});if(S!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(isMap(t)){var ee=[];return mapForEach&&mapForEach.call(t,function(xe,Te){ee.push(D(Te,t,!0)+" => "+D(xe,t))}),collectionOf("Map",mapSize.call(t),ee,E)}if(isSet(t)){var Q=[];return setForEach&&setForEach.call(t,function(xe){Q.push(D(xe,t))}),collectionOf("Set",setSize.call(t),Q,E)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$1(t))return markBoxed(D(Number(t)));if(isBigInt(t))return markBoxed(D(bigIntValueOf.call(t)));if(isBoolean(t))return markBoxed(booleanValueOf.call(t));if(isString$2(t))return markBoxed(D(String(t)));if(!isDate(t)&&!isRegExp$2(t)){var te=arrObjKeys(t,D),ie=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",pe=!ie&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):le?"Object":"",ue=ie||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",_e=ue+(pe||le?"["+$join.call($concat.call([],pe||[],le||[]),": ")+"] ":"");return te.length===0?_e+"{}":E?_e+"{"+indentedJoin(te,E)+"}":_e+"{ "+$join.call(te,", ")+" }"}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,"&quot;")}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$2(r){return toStr(r)==="[object String]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isNumber$1(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 v=typeof gOPS=="function"?gOPS(r):[],S;if(hasShammedSymbols){S={};for(var x=0;x<v.length;x++)S["$"+v[x]]=v[x]}for(var T in r)has$4(r,T)&&(o&&String(Number(T))===T&&T<r.length||hasShammedSymbols&&S["$"+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 A=0;A<v.length;A++)isEnumerable.call(r,v[A])&&s.push("["+t(v[A])+"]: "+t(r[v[A]],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(v){if(!l.has(v))throw new $TypeError("Side channel does not contain "+inspect(v))},get:function(v){if($WeakMap&&v&&(typeof v=="object"||typeof v=="function")){if(t)return $weakMapGet(t,v)}else if($Map){if(o)return $mapGet(o,v)}else if(s)return listGet(s,v)},has:function(v){if($WeakMap&&v&&(typeof v=="object"||typeof v=="function")){if(t)return $weakMapHas(t,v)}else if($Map){if(o)return $mapHas(o,v)}else if(s)return listHas(s,v);return!1},set:function(v,S){$WeakMap&&v&&(typeof v=="object"||typeof v=="function")?(t||(t=new $WeakMap),$weakMapSet(t,v,S)):$Map?(o||(o=new $Map),$mapSet(o,v,S)):(s||(s={key:{},next:null}),listSet(s,v,S))}};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=[],v=0;v<s.length;++v)typeof s[v]<"u"&&l.push(s[v]);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(v,S){if(has$3.call(t,S)){var x=t[S];x&&typeof x=="object"&&v&&typeof v=="object"?t[S]=r(x,v,s):t.push(v)}else t[S]=v}),t):Object.keys(o).reduce(function(v,S){var x=o[S];return has$3.call(v,S)?v[S]=r(v[S],x,s):v[S]=x,v},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,v){if(t.length===0)return t;var S=t;if(typeof t=="symbol"?S=Symbol.prototype.toString.call(t):typeof t!="string"&&(S=String(t)),s==="iso-8859-1")return escape(S).replace(/%u[0-9a-f]{4}/gi,function(w){return"%26%23"+parseInt(w.slice(2),16)+"%3B"});for(var x="",T=0;T<S.length;++T){var A=S.charCodeAt(T);if(A===45||A===46||A===95||A===126||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||v===formats$2.RFC1738&&(A===40||A===41)){x+=S.charAt(T);continue}if(A<128){x=x+hexTable[A];continue}if(A<2048){x=x+(hexTable[192|A>>6]+hexTable[128|A&63]);continue}if(A<55296||A>=57344){x=x+(hexTable[224|A>>12]+hexTable[128|A>>6&63]+hexTable[128|A&63]);continue}T+=1,A=65536+((A&1023)<<10|S.charCodeAt(T)&1023),x+=hexTable[240|A>>18]+hexTable[128|A>>12&63]+hexTable[128|A>>6&63]+hexTable[128|A&63]}return x},compact=function(t){for(var o=[{obj:{o:t},prop:"o"}],s=[],l=0;l<o.length;++l)for(var v=o[l],S=v.obj[v.prop],x=Object.keys(S),T=0;T<x.length;++T){var A=x[T],w=S[A];typeof w=="object"&&w!==null&&s.indexOf(w)===-1&&(o.push({obj:S,prop:A}),s.push(w))}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,v,S,x,T,A,w,E,D,$,N,z,F){for(var B=t,G=F,W=0,X=!1;(G=G.get(sentinel))!==void 0&&!X;){var ee=G.get(t);if(W+=1,typeof ee<"u"){if(ee===W)throw new RangeError("Cyclic object value");X=!0}typeof G.get(sentinel)>"u"&&(W=0)}if(typeof T=="function"?B=T(o,B):B instanceof Date?B=E(B):s==="comma"&&isArray$4(B)&&(B=utils$5.maybeMap(B,function(we){return we instanceof Date?E(we):we})),B===null){if(v)return x&&!N?x(o,defaults$2.encoder,z,"key",D):o;B=""}if(isNonNullishPrimitive(B)||utils$5.isBuffer(B)){if(x){var Q=N?o:x(o,defaults$2.encoder,z,"key",D);return[$(Q)+"="+$(x(B,defaults$2.encoder,z,"value",D))]}return[$(o)+"="+$(String(B))]}var te=[];if(typeof B>"u")return te;var ie;if(s==="comma"&&isArray$4(B))N&&x&&(B=utils$5.maybeMap(B,x)),ie=[{value:B.length>0?B.join(",")||null:void 0}];else if(isArray$4(T))ie=T;else{var le=Object.keys(B);ie=A?le.sort(A):le}for(var pe=l&&isArray$4(B)&&B.length===1?o+"[]":o,ue=0;ue<ie.length;++ue){var _e=ie[ue],xe=typeof _e=="object"&&typeof _e.value<"u"?_e.value:B[_e];if(!(S&&xe===null)){var Te=isArray$4(B)?typeof s=="function"?s(pe,_e):pe:pe+(w?"."+_e:"["+_e+"]");F.set(t,W);var Ae=getSideChannel();Ae.set(sentinel,F),pushToArray(te,r(xe,Te,s,l,v,S,s==="comma"&&N&&isArray$4(B)?null:x,T,A,w,E,D,$,N,z,Ae))}}return te},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],v=defaults$2.filter;return(typeof t.filter=="function"||isArray$4(t.filter))&&(v=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:v,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,v;typeof s.filter=="function"?(v=s.filter,o=v("",o)):isArray$4(s.filter)&&(v=s.filter,l=v);var S=[];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 A=T==="comma"&&t&&t.commaRoundTrip;l||(l=Object.keys(o)),s.sort&&l.sort(s.sort);for(var w=getSideChannel(),E=0;E<l.length;++E){var D=l[E];s.skipNulls&&o[D]===null||pushToArray(S,stringify$2(o[D],D,T,A,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,w))}var $=S.join(s.delimiter),N=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?N+="utf8=%26%2310003%3B&":N+="utf8=%E2%9C%93&"),$.length>0?N+$:""},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,v=o.parameterLimit===1/0?void 0:o.parameterLimit,S=l.split(o.delimiter,v),x=-1,T,A=o.charset;if(o.charsetSentinel)for(T=0;T<S.length;++T)S[T].indexOf("utf8=")===0&&(S[T]===charsetSentinel?A="utf-8":S[T]===isoSentinel&&(A="iso-8859-1"),x=T,T=S.length);for(T=0;T<S.length;++T)if(T!==x){var w=S[T],E=w.indexOf("]="),D=E===-1?w.indexOf("="):E+1,$,N;D===-1?($=o.decoder(w,defaults$1.decoder,A,"key"),N=o.strictNullHandling?null:""):($=o.decoder(w.slice(0,D),defaults$1.decoder,A,"key"),N=utils$4.maybeMap(parseArrayValue(w.slice(D+1),o),function(z){return o.decoder(z,defaults$1.decoder,A,"value")})),N&&o.interpretNumericEntities&&A==="iso-8859-1"&&(N=interpretNumericEntities(N)),w.indexOf("[]=")>-1&&(N=isArray$3(N)?[N]:N),has$1.call(s,$)?s[$]=utils$4.combine(s[$],N):s[$]=N}return s},parseObject=function(r,t,o,s){for(var l=s?t:parseArrayValue(t,o),v=r.length-1;v>=0;--v){var S,x=r[v];if(x==="[]"&&o.parseArrays)S=[].concat(l);else{S=o.plainObjects?Object.create(null):{};var T=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,A=parseInt(T,10);!o.parseArrays&&T===""?S={0:l}:!isNaN(A)&&x!==T&&String(A)===T&&A>=0&&o.parseArrays&&A<=o.arrayLimit?(S=[],S[A]=l):T!=="__proto__"&&(S[T]=l)}l=S}return l},parseKeys=function(t,o,s,l){if(t){var v=s.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,S=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,T=s.depth>0&&S.exec(v),A=T?v.slice(0,T.index):v,w=[];if(A){if(!s.plainObjects&&has$1.call(Object.prototype,A)&&!s.allowPrototypes)return;w.push(A)}for(var E=0;s.depth>0&&(T=x.exec(v))!==null&&E<s.depth;){if(E+=1,!s.plainObjects&&has$1.call(Object.prototype,T[1].slice(1,-1))&&!s.allowPrototypes)return;w.push(T[1])}return T&&w.push("["+v.slice(T.index)+"]"),parseObject(w,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):{},v=Object.keys(s),S=0;S<v.length;++S){var x=v[S],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(N){var z,F;for(z in N)F=N[z],F!==void 0&&N.hasOwnProperty(z)&&(s[z]=F);return this},o.status=null,o.set=function(N){var z=o.isStarted();N=l(N,s.minimum,1),o.status=N===1?null:N;var F=o.render(!z),B=F.querySelector(s.barSelector),G=s.speed,W=s.easing;return F.offsetWidth,x(function(X){s.positionUsing===""&&(s.positionUsing=o.getPositioningCSS()),T(B,S(N,G,W)),N===1?(T(F,{transition:"none",opacity:1}),F.offsetWidth,setTimeout(function(){T(F,{transition:"all "+G+"ms linear",opacity:0}),setTimeout(function(){o.remove(),X()},G)},G)):setTimeout(X,G)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var N=function(){setTimeout(function(){o.status&&(o.trickle(),N())},s.trickleSpeed)};return s.trickle&&N(),this},o.done=function(N){return!N&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(N){var z=o.status;return z?(typeof N!="number"&&(N=(1-z)*l(Math.random()*z,.1,.95)),z=l(z+N,0,.994),o.set(z)):o.start()},o.trickle=function(){return o.inc(Math.random()*s.trickleRate)},function(){var N=0,z=0;o.promise=function(F){return!F||F.state()==="resolved"?this:(z===0&&o.start(),N++,z++,F.always(function(){z--,z===0?(N=0,o.done()):o.set((N-z)/N)}),this)}}(),o.render=function(N){if(o.isRendered())return document.getElementById("nprogress");w(document.documentElement,"nprogress-busy");var z=document.createElement("div");z.id="nprogress",z.innerHTML=s.template;var F=z.querySelector(s.barSelector),B=N?"-100":v(o.status||0),G=document.querySelector(s.parent),W;return T(F,{transition:"all 0 linear",transform:"translate3d("+B+"%,0,0)"}),s.showSpinner||(W=z.querySelector(s.spinnerSelector),W&&$(W)),G!=document.body&&w(G,"nprogress-custom-parent"),G.appendChild(z),z},o.remove=function(){E(document.documentElement,"nprogress-busy"),E(document.querySelector(s.parent),"nprogress-custom-parent");var N=document.getElementById("nprogress");N&&$(N)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var N=document.body.style,z="WebkitTransform"in N?"Webkit":"MozTransform"in N?"Moz":"msTransform"in N?"ms":"OTransform"in N?"O":"";return z+"Perspective"in N?"translate3d":z+"Transform"in N?"translate":"margin"};function l(N,z,F){return N<z?z:N>F?F:N}function v(N){return(-1+N)*100}function S(N,z,F){var B;return s.positionUsing==="translate3d"?B={transform:"translate3d("+v(N)+"%,0,0)"}:s.positionUsing==="translate"?B={transform:"translate("+v(N)+"%,0)"}:B={"margin-left":v(N)+"%"},B.transition="all "+z+"ms "+F,B}var x=function(){var N=[];function z(){var F=N.shift();F&&F(z)}return function(F){N.push(F),N.length==1&&z()}}(),T=function(){var N=["Webkit","O","Moz","ms"],z={};function F(X){return X.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(ee,Q){return Q.toUpperCase()})}function B(X){var ee=document.body.style;if(X in ee)return X;for(var Q=N.length,te=X.charAt(0).toUpperCase()+X.slice(1),ie;Q--;)if(ie=N[Q]+te,ie in ee)return ie;return X}function G(X){return X=F(X),z[X]||(z[X]=B(X))}function W(X,ee,Q){ee=G(ee),X.style[ee]=Q}return function(X,ee){var Q=arguments,te,ie;if(Q.length==2)for(te in ee)ie=ee[te],ie!==void 0&&ee.hasOwnProperty(te)&&W(X,te,ie);else W(X,Q[1],Q[2])}}();function A(N,z){var F=typeof N=="string"?N:D(N);return F.indexOf(" "+z+" ")>=0}function w(N,z){var F=D(N),B=F+z;A(F,z)||(N.className=B.substring(1))}function E(N,z){var F=D(N),B;A(N,z)&&(B=F.replace(" "+z+" "," "),N.className=B.substring(1,B.length-1))}function D(N){return(" "+(N.className||"")+" ").replace(/\s+/gi," ")}function $(N){N&&N.parentNode&&N.parentNode.removeChild(N)}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}},Ot=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(t){return new Promise(o=>{Ot.requests.push(s=>{t.headers.Authorization=formatToken(s),o(t)})})}httpInterceptorsRequest(){Ot.axiosInstance.interceptors.request.use(async t=>(NProgress.start(),typeof t.beforeRequestCallback=="function"?(t.beforeRequestCallback(t),t):Ot.initConfig.beforeRequestCallback?(Ot.initConfig.beforeRequestCallback(t),t):["/refreshToken","/login"].some(s=>t.url.indexOf(s)>-1)?t:new Promise(s=>{const l=getToken();if(l){const v=new Date().getTime();parseInt(l.expires)-v<=0?(Ot.isRefreshing||(Ot.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:l.refreshToken}).then(x=>{const T=x.data.accessToken;t.headers.Authorization=formatToken(T),Ot.requests.forEach(A=>A(T)),Ot.requests=[]}).finally(()=>{Ot.isRefreshing=!1})),s(Ot.retryOriginalRequest(t))):(t.headers.Authorization=formatToken(l.accessToken),s(t))}else s(t)})),t=>Promise.reject(t))}httpInterceptorsResponse(){Ot.axiosInstance.interceptors.response.use(o=>{const s=o.config;return NProgress.done(),typeof s.beforeResponseCallback=="function"?(s.beforeResponseCallback(o),o.data):(Ot.initConfig.beforeResponseCallback&&Ot.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 v={method:t,url:o,...s,...l};return new Promise((S,x)=>{Ot.axiosInstance.request(v).then(T=>{S(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=Ot;ar(PureHttp,"requests",[]),ar(PureHttp,"isRefreshing",!1),ar(PureHttp,"initConfig",{}),ar(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=tr().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&r.multiTagsCache?tr().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(t=tr().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:t.multiTagsCache}},getters:{getMultiTagsCache(r){return r.multiTagsCache}},actions:{multiTagsCacheChange(r){this.multiTagsCache=r,r?tr().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):tr().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache(r){this.getMultiTagsCache&&tr().setItem(`${responsiveStorageNameSpace()}tags`,r)},handleTags(r,t,o){var s,l,v,S,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||gt(T==null?void 0:T.name)||((l=T==null?void 0:T.meta)==null?void 0:l.title.length)===0||Le((v=T==null?void 0:T.meta)==null?void 0:v.showLink)&&!((S=T==null?void 0:T.meta)!=null&&S.showLink))return;const A=T.path,w=this.multiTags.some(N=>N.path===A),E=this.multiTags.some(N=>St(N==null?void 0:N.query,T==null?void 0:T.query)),D=this.multiTags.some(N=>St(N==null?void 0:N.params,T==null?void 0:T.params));if(w&&E&&D)return;const $=((x=T==null?void 0:T.meta)==null?void 0:x.dynamicLevel)??-1;if($>0&&this.multiTags.filter(N=>(N==null?void 0:N.path)===A).length>=$){const N=this.multiTags.findIndex(z=>(z==null?void 0:z.path)===A);N!==-1&&this.multiTags.splice(N,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(A=>A.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=er().getItem(sessionKey))==null?void 0:r.username)??"",roles:((t=er().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)):er().getItem(sessionKey)}function setToken(r){var S,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 v(T,A){useUserStoreHook().SET_USERNAME(T),useUserStoreHook().SET_ROLES(A),er().setItem(sessionKey,{refreshToken:s,expires:t,username:T,roles:A})}if(r.username&&r.roles){const{username:T,roles:A}=r;v(T,A)}else{const T=((S=er().getItem(sessionKey))==null?void 0:S.username)??"",A=((x=er().getItem(sessionKey))==null?void 0:x.roles)??[];v(T,A)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=r=>"Bearer "+r;(function(){const r=mr(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 v=`${location.origin}${location.pathname}${Vt(location.hash,"?")}?${JSON.stringify(r).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(v)}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"},v={},S={},x=[];for(const A of r){const w=A[l.parentId];v[w]==null&&(v[w]=[]),S[A[l.id]]=A,v[w].push(A)}for(const A of r){const w=A[l.parentId];S[w]==null&&x.push(A)}for(const A of x)T(A);function T(A){if(v[A[l.id]]!==null&&(A[l.childrenList]=v[A[l.id]]),A[l.childrenList])for(const w of A[l.childrenList])T(w)}return x},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-8e120936.js"),["static/js/frameView-8e120936.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-be17e92f.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-4038271a.js"),["static/js/cascader-4038271a.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-11281b56.js"),["static/js/debounce-11281b56.js","static/js/message-6f31e976.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-3a3d326e.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-f6586c3e.js"),["static/js/execl-f6586c3e.js","static/js/xlsx-f5126985.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-fbb18f42.js"),["static/js/icon-select-fbb18f42.js","static/css/icon-select-e8efdfdc.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-98f9ab8f.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-1c8cd517.js"),["static/js/line-tree-1c8cd517.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-e82317f5.js"),["static/js/menu-tree-e82317f5.js","static/js/hooks-a12c1294.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-752d65f1.js"),["static/js/pdf-752d65f1.js","static/js/_vue_commonjs-external-c09696f7.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-82d3e27f.js"),["static/js/print-82d3e27f.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-4eee4c12.js","static/js/app-713d5fa9.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-a6c6fa61.js"),["static/js/qrcode-a6c6fa61.js","static/js/message-6f31e976.js","static/js/index-2a7cbc86.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-204c486b.js"),["static/js/swiper-204c486b.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-3f6ab192.js"),["static/js/timeline-3f6ab192.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-a12c1294.js","static/js/iphone-89710f1a.js","static/css/timeline-12434188.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-b2d08b06.js"),["static/js/horizontal-b2d08b06.js","static/js/vue-virtual-scroller.esm-2a0ddd3e.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-b8bc487b.js"),["static/js/index-b8bc487b.js","static/js/vertical-fabca678.js","static/js/vue-virtual-scroller.esm-2a0ddd3e.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-b2d08b06.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-fabca678.js"),["static/js/vertical-fabca678.js","static/js/vue-virtual-scroller.esm-2a0ddd3e.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-3f53bc03.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-453b1fd7.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-97386fc0.js"),["static/js/index-97386fc0.js","static/js/columns-453b1fd7.js","static/css/index-cb8197dd.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-ba5c9799.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-64dc6ec4.js"),["static/js/basic-64dc6ec4.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-15420b2b.js"),["static/js/index-15420b2b.js","static/js/basic-64dc6ec4.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-4fa90e10.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-33077e2c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-33077e2c.js"),["static/js/menuDynamic-33077e2c.js","static/js/index.esm-ba027bbc.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-4fa90e10.js"),["static/js/menuGroup-4fa90e10.js","static/js/index.esm-ba027bbc.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-daef50b5.js"),["static/js/index-daef50b5.js","static/js/propTypes-3b04af70.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-15d5b175.js"),["static/js/index-15d5b175.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-f7a391a0.js"),["static/js/index-f7a391a0.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-a3057bb7.js"),["static/js/form-a3057bb7.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-a9403ca2.js"),["static/js/index-a9403ca2.js","static/js/message-6f31e976.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-e905535c.js"),["static/js/index-e905535c.js","static/js/sortable.esm-e674cde8.js","static/js/app-713d5fa9.js","static/js/hooks-a12c1294.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-6e270144.js"),["static/js/index-6e270144.js","static/js/styles-fb9bfda2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-aa0ab421.js"),["static/js/index-aa0ab421.js","static/css/index-c6f744fa.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-0733de1c.js"),["static/js/index-0733de1c.js","static/js/message-6f31e976.js","static/js/hooks-a12c1294.js","static/js/check-f53d8364.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-cf07a724.js"),["static/js/index-cf07a724.js","static/css/index-53a917f7.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index-505cb84c.js"),["static/js/index-505cb84c.js","static/js/message-6f31e976.js","static/js/home-filled-05cc090c.js","static/js/hooks-a12c1294.js","static/css/index-fa517f4b.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-6b80812b.js"),["static/js/index-6b80812b.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-9c2c68da.js"),["static/js/index-9c2c68da.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-bdd5ab08.js"),["static/js/index-bdd5ab08.js","static/js/index-771e958b.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-81a525a6.js"),["static/js/index-81a525a6.js","static/js/hooks-a12c1294.js","static/css/index-12dd4e77.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index-fc643953.js"),["static/js/index-fc643953.js","static/js/back_top-98ec2857.js","static/css/index-d102724b.css"]),"/src/views/editor/components/base.vue":()=>__vitePreload(()=>import("./base-bc869899.js"),["static/js/base-bc869899.js","static/js/base.vue_vue_type_script_setup_true_lang-c462fdcc.js","static/js/index.esm-6e095cf4.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/multi.vue":()=>__vitePreload(()=>import("./multi-4a1cb7eb.js"),["static/js/multi-4a1cb7eb.js","static/js/multi.vue_vue_type_script_setup_true_lang-a34e2a7e.js","static/js/index-47090b5c.js","static/js/index.esm-6e095cf4.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/picUpload.vue":()=>__vitePreload(()=>import("./picUpload-dbc8480f.js"),["static/js/picUpload-dbc8480f.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-90c4ac2f.js","static/js/index.esm-6e095cf4.js","static/css/index-f38a3df6.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-40d96463.js"),["static/js/index-40d96463.js","static/js/base.vue_vue_type_script_setup_true_lang-c462fdcc.js","static/js/index.esm-6e095cf4.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-a34e2a7e.js","static/js/index-47090b5c.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-90c4ac2f.js","static/css/index-2bb08053.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-e5029d98.js"),["static/js/index-e5029d98.js","static/css/index-18755a0a.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-e7355192.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-05378b47.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-d185a892.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-33a1ea57.js"),["static/js/index-33a1ea57.js","static/js/hooks-a12c1294.js","static/js/styles-fb9bfda2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-2c297e1e.js"),["static/js/index-2c297e1e.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-1403059d.js"),["static/js/Card-1403059d.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-df222037.js"),["static/js/DialogForm-df222037.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-6d11c564.js","static/js/message-6f31e976.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-22601707.js"),["static/js/index-22601707.js","static/js/Card-1403059d.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css","static/js/list-3e287078.js","static/js/message-6f31e976.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-6d11c564.js","static/js/hooks-a12c1294.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-6bfbb40a.js"),["static/js/phone-6bfbb40a.js","static/js/phone.vue_vue_type_script_setup_true_lang-f0cbdae7.js","static/js/motion-a9ba222e.js","static/js/message-6f31e976.js","static/js/verifyCode-5c45ecaf.js","static/js/hooks-a12c1294.js","static/js/iphone-89710f1a.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-138b3b31.js"),["static/js/qrCode-138b3b31.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-e407f499.js","static/js/motion-a9ba222e.js","static/js/index-2a7cbc86.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-e9257a76.js"),["static/js/regist-e9257a76.js","static/js/regist.vue_vue_type_script_setup_true_lang-9e7aa039.js","static/js/motion-a9ba222e.js","static/js/message-6f31e976.js","static/js/verifyCode-5c45ecaf.js","static/js/hooks-a12c1294.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-d8e946db.js"),["static/js/update-d8e946db.js","static/js/update.vue_vue_type_script_setup_true_lang-8622675c.js","static/js/motion-a9ba222e.js","static/js/message-6f31e976.js","static/js/verifyCode-5c45ecaf.js","static/js/hooks-a12c1294.js","static/js/lock-fill-c966ff17.js","static/js/iphone-89710f1a.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-7e71cf0b.js"),["static/js/index-7e71cf0b.js","static/js/motion-a9ba222e.js","static/js/message-6f31e976.js","static/js/verifyCode-5c45ecaf.js","static/js/phone.vue_vue_type_script_setup_true_lang-f0cbdae7.js","static/js/hooks-a12c1294.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-e407f499.js","static/js/index-2a7cbc86.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-9e7aa039.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-8622675c.js","static/js/dark-08c5ced8.js","static/js/epTheme-11b37036.js","static/js/app-713d5fa9.js","static/js/check-f53d8364.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-be914bdb.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-f9b60cce.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-9b74b1b4.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-f0630e7a.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-9312b9c4.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-1610e1d6.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-7912148c.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-58c82a2b.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-467f31c8.js"),["static/js/base-467f31c8.js","static/js/base.vue_vue_type_script_setup_true_lang-edadd1d0.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-c788b5e4.js"),["static/js/border-c788b5e4.js","static/js/border.vue_vue_type_script_setup_true_lang-a6781784.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-4ad2454e.js"),["static/js/columns-4ad2454e.js","static/js/message-6f31e976.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-85bc9b21.js"),["static/js/index-85bc9b21.js","static/js/index.vue_vue_type_script_setup_true_lang-b8a46766.js","static/js/columns-4ad2454e.js","static/js/message-6f31e976.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-73af0200.js"),["static/js/customIndex-73af0200.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-eb667c3a.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-4033104a.js"),["static/js/expand-4033104a.js","static/js/expand.vue_vue_type_script_setup_true_lang-d9e692ed.js","static/js/data-91deb383.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-c1304a8c.js"),["static/js/fixColumn-c1304a8c.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-ec737fbe.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-bee4265b.js"),["static/js/fixHeader-bee4265b.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c8b7496f.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-5b2c3963.js"),["static/js/fluidHeight-5b2c3963.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-d99586b1.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-aea1cc5e.js"),["static/js/groupHeader-aea1cc5e.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-7df648d6.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-ab885ff9.js"),["static/js/columns-ab885ff9.js","static/js/message-6f31e976.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-71d735e5.js"),["static/js/index-71d735e5.js","static/js/index.vue_vue_type_script_setup_true_lang-9c4d4f61.js","static/js/columns-ab885ff9.js","static/js/message-6f31e976.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-cfa505f3.js"),["static/js/imgPreview-cfa505f3.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-6248338b.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-1fee4483.js"),["static/js/layout-1fee4483.js","static/js/layout.vue_vue_type_script_setup_true_lang-3441b4d1.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-edb80902.js"),["static/js/list-edb80902.js","static/js/base.vue_vue_type_script_setup_true_lang-edadd1d0.js","static/js/data-91deb383.js","static/js/stripe.vue_vue_type_script_setup_true_lang-0c2e9d80.js","static/js/border.vue_vue_type_script_setup_true_lang-a6781784.js","static/js/status.vue_vue_type_style_index_0_lang-8287d74a.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c8b7496f.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-ec737fbe.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-d99586b1.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-7df648d6.js","static/js/radio.vue_vue_type_script_setup_true_lang-22adedec.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-2555f209.js","static/js/sortable.vue_vue_type_script_setup_true_lang-cee0b462.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-b8a46766.js","static/js/columns-4ad2454e.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-9c4d4f61.js","static/js/columns-ab885ff9.js","static/js/expand.vue_vue_type_script_setup_true_lang-d9e692ed.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-eb667c3a.js","static/js/layout.vue_vue_type_script_setup_true_lang-3441b4d1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-6248338b.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-8dc5d844.js"),["static/js/multipleChoice-8dc5d844.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-2555f209.js","static/js/data-91deb383.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-5e318446.js"),["static/js/radio-5e318446.js","static/js/radio.vue_vue_type_script_setup_true_lang-22adedec.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-cbddcbba.js"),["static/js/sortable-cbddcbba.js","static/js/sortable.vue_vue_type_script_setup_true_lang-cee0b462.js","static/js/data-91deb383.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-42770dec.js"),["static/js/status-42770dec.js","static/js/status.vue_vue_type_style_index_0_lang-8287d74a.js","static/js/data-91deb383.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-a50f7ff8.js"),["static/js/stripe-a50f7ff8.js","static/js/stripe.vue_vue_type_script_setup_true_lang-0c2e9d80.js","static/js/data-91deb383.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-896ed1dc.js"),["static/js/high-896ed1dc.js","static/js/list-91efd6e4.js","static/js/index.vue_vue_type_script_setup_true_lang-1d16d3a6.js","static/js/columns-4e3b73ef.js","static/js/data-5870e2fd.js","static/js/index.vue_vue_type_script_setup_true_lang-9737e2c4.js","static/js/columns-04964300.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-0ef8d7c9.js","static/js/columns-70239efe.js","static/js/index.vue_vue_type_script_setup_true_lang-c9deb414.js","static/js/columns-e797b8cf.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd72fc1.js","static/js/columns-5e5dce50.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-f10707b2.js","static/js/columns-a7e47e08.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-f302f3d5.js","static/js/columns-ea8b3d4a.js","static/js/index.vue_vue_type_script_setup_true_lang-d133dec4.js","static/js/columns-2e9acbbf.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-d6c3bcf5.js","static/js/columns-dfcbbe42.js","static/js/index.vue_vue_type_script_setup_true_lang-ea4ae9ee.js","static/js/index.vue_vue_type_script_setup_true_lang-123dbf2b.js","static/js/columns-0aeb0756.js","static/js/index.vue_vue_type_script_setup_true_lang-b1f00755.js","static/js/columns-4652194b.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-e797b8cf.js"),["static/js/columns-e797b8cf.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-82f0bb32.js"),["static/js/index-82f0bb32.js","static/js/index.vue_vue_type_script_setup_true_lang-c9deb414.js","static/js/columns-e797b8cf.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-70239efe.js"),["static/js/columns-70239efe.js","static/js/sortable.esm-e674cde8.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-8b2060dc.js"),["static/js/index-8b2060dc.js","static/js/index.vue_vue_type_script_setup_true_lang-0ef8d7c9.js","static/js/columns-70239efe.js","static/js/sortable.esm-e674cde8.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-04964300.js"),["static/js/columns-04964300.js","static/js/sortable.esm-e674cde8.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-93bf84b1.js"),["static/js/index-93bf84b1.js","static/js/index.vue_vue_type_script_setup_true_lang-9737e2c4.js","static/js/columns-04964300.js","static/js/sortable.esm-e674cde8.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-dfcbbe42.js"),["static/js/columns-dfcbbe42.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-3d2d8254.js"),["static/js/index-3d2d8254.js","static/js/index.vue_vue_type_script_setup_true_lang-d6c3bcf5.js","static/js/columns-dfcbbe42.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-a7e47e08.js"),["static/js/columns-a7e47e08.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-990b77a6.js"),["static/js/index-990b77a6.js","static/js/index.vue_vue_type_script_setup_true_lang-f10707b2.js","static/js/columns-a7e47e08.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-5e5dce50.js"),["static/js/columns-5e5dce50.js","static/js/xlsx-f5126985.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-518238da.js"),["static/js/index-518238da.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd72fc1.js","static/js/columns-5e5dce50.js","static/js/xlsx-f5126985.js","static/js/data-5870e2fd.js","static/js/message-6f31e976.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-91efd6e4.js"),["static/js/list-91efd6e4.js","static/js/index.vue_vue_type_script_setup_true_lang-1d16d3a6.js","static/js/columns-4e3b73ef.js","static/js/data-5870e2fd.js","static/js/index.vue_vue_type_script_setup_true_lang-9737e2c4.js","static/js/columns-04964300.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-0ef8d7c9.js","static/js/columns-70239efe.js","static/js/index.vue_vue_type_script_setup_true_lang-c9deb414.js","static/js/columns-e797b8cf.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-0bd72fc1.js","static/js/columns-5e5dce50.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-f10707b2.js","static/js/columns-a7e47e08.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-f302f3d5.js","static/js/columns-ea8b3d4a.js","static/js/index.vue_vue_type_script_setup_true_lang-d133dec4.js","static/js/columns-2e9acbbf.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-d6c3bcf5.js","static/js/columns-dfcbbe42.js","static/js/index.vue_vue_type_script_setup_true_lang-ea4ae9ee.js","static/js/index.vue_vue_type_script_setup_true_lang-123dbf2b.js","static/js/columns-0aeb0756.js","static/js/index.vue_vue_type_script_setup_true_lang-b1f00755.js","static/js/columns-4652194b.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-4e3b73ef.js"),["static/js/columns-4e3b73ef.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-7fc87587.js"),["static/js/index-7fc87587.js","static/js/index.vue_vue_type_script_setup_true_lang-1d16d3a6.js","static/js/columns-4e3b73ef.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-2e9acbbf.js"),["static/js/columns-2e9acbbf.js","static/js/print-a6e42845.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-4468f405.js"),["static/js/index-4468f405.js","static/js/index.vue_vue_type_script_setup_true_lang-d133dec4.js","static/js/columns-2e9acbbf.js","static/js/print-a6e42845.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-eb243b74.js"),["static/js/index-eb243b74.js","static/js/index.vue_vue_type_script_setup_true_lang-ea4ae9ee.js","static/js/index.vue_vue_type_script_setup_true_lang-123dbf2b.js","static/js/columns-0aeb0756.js","static/js/message-6f31e976.js","static/js/data-5870e2fd.js","static/js/index.vue_vue_type_script_setup_true_lang-b1f00755.js","static/js/columns-4652194b.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-4652194b.js"),["static/js/columns-4652194b.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-d73f59fb.js"),["static/js/index-d73f59fb.js","static/js/index.vue_vue_type_script_setup_true_lang-b1f00755.js","static/js/columns-4652194b.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-0aeb0756.js"),["static/js/columns-0aeb0756.js","static/js/message-6f31e976.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-30ee12e7.js"),["static/js/index-30ee12e7.js","static/js/index.vue_vue_type_script_setup_true_lang-123dbf2b.js","static/js/columns-0aeb0756.js","static/js/message-6f31e976.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-ea8b3d4a.js"),["static/js/columns-ea8b3d4a.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-a0a9f61d.js"),["static/js/index-a0a9f61d.js","static/js/index.vue_vue_type_script_setup_true_lang-f302f3d5.js","static/js/columns-ea8b3d4a.js","static/js/data-5870e2fd.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-883eba27.js"),["static/js/index-883eba27.js","static/js/list-edb80902.js","static/js/base.vue_vue_type_script_setup_true_lang-edadd1d0.js","static/js/data-91deb383.js","static/js/stripe.vue_vue_type_script_setup_true_lang-0c2e9d80.js","static/js/border.vue_vue_type_script_setup_true_lang-a6781784.js","static/js/status.vue_vue_type_style_index_0_lang-8287d74a.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c8b7496f.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-ec737fbe.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-d99586b1.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-7df648d6.js","static/js/radio.vue_vue_type_script_setup_true_lang-22adedec.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-2555f209.js","static/js/sortable.vue_vue_type_script_setup_true_lang-cee0b462.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-b8a46766.js","static/js/columns-4ad2454e.js","static/js/message-6f31e976.js","static/js/index.vue_vue_type_script_setup_true_lang-9c4d4f61.js","static/js/columns-ab885ff9.js","static/js/expand.vue_vue_type_script_setup_true_lang-d9e692ed.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-eb667c3a.js","static/js/layout.vue_vue_type_script_setup_true_lang-3441b4d1.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-6248338b.js","static/css/index-c6b6432d.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-2ad7a947.js"),["static/js/fail-2ad7a947.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-09c08439.js"),["static/js/success-09c08439.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-db55b247.js"),["static/js/form-db55b247.js","static/js/form.vue_vue_type_script_setup_true_lang-f7f23899.js","static/js/index-47090b5c.js","static/js/hooks-2777bcf3.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-05b372c9.js"),["static/js/index-05b372c9.js","static/js/hook-259f25a0.js","static/js/form.vue_vue_type_script_setup_true_lang-f7f23899.js","static/js/index-47090b5c.js","static/js/hooks-2777bcf3.js","static/js/message-6f31e976.js","static/js/system-75614cde.js","static/js/refresh-bdd510f9.js","static/js/epTheme-11b37036.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-a12c1294.js","static/js/edit-pen-37b5ced2.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js","static/css/index-bf90facc.css"]),"/src/views/system/dept/utils/hook.tsx":()=>__vitePreload(()=>import("./hook-259f25a0.js"),["static/js/hook-259f25a0.js","static/js/form.vue_vue_type_script_setup_true_lang-f7f23899.js","static/js/index-47090b5c.js","static/js/hooks-2777bcf3.js","static/js/message-6f31e976.js","static/js/system-75614cde.js"]),"/src/views/system/role/form.vue":()=>__vitePreload(()=>import("./form-dee62dd9.js"),["static/js/form-dee62dd9.js","static/js/form.vue_vue_type_script_setup_true_lang-0fb31c7c.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-8d8f2df7.js"),["static/js/index-8d8f2df7.js","static/js/hook-17a8a4a0.js","static/js/form.vue_vue_type_script_setup_true_lang-0fb31c7c.js","static/js/message-6f31e976.js","static/js/system-75614cde.js","static/js/hooks-2777bcf3.js","static/js/refresh-bdd510f9.js","static/js/epTheme-11b37036.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-a12c1294.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-7c3c2130.css"]),"/src/views/system/role/utils/hook.tsx":()=>__vitePreload(()=>import("./hook-17a8a4a0.js"),["static/js/hook-17a8a4a0.js","static/js/form.vue_vue_type_script_setup_true_lang-0fb31c7c.js","static/js/message-6f31e976.js","static/js/system-75614cde.js","static/js/hooks-2777bcf3.js"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-eb4fa811.js"),["static/js/hook-eb4fa811.js","static/js/message-6f31e976.js","static/js/system-75614cde.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-078f819a.js"),["static/js/index-078f819a.js","static/js/tree-d7f79c3f.js","static/js/system-75614cde.js","static/js/hooks-a12c1294.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-eb4fa811.js","static/js/message-6f31e976.js","static/js/refresh-bdd510f9.js","static/js/epTheme-11b37036.js","static/js/sortable.esm-e674cde8.js","static/js/admin-line-92b9acda.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-438b436c.js","static/css/index-92c82461.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-d7f79c3f.js"),["static/js/tree-d7f79c3f.js","static/js/system-75614cde.js","static/js/hooks-a12c1294.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-4af468f1.js"),["static/js/index-4af468f1.js","static/js/hooks-73bd9553.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-9e69b6f1.js"),["static/js/params-detail-9e69b6f1.js","static/js/hooks-73bd9553.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-e5ff03da.js"),["static/js/query-detail-e5ff03da.js","static/js/hooks-73bd9553.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-41ea39e2.js"),["static/js/Bar-41ea39e2.js","static/js/Bar.vue_vue_type_script_setup_true_lang-402eb711.js","static/js/app-713d5fa9.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-b1c1bb8a.js"),["static/js/Line-b1c1bb8a.js","static/js/Line.vue_vue_type_script_setup_true_lang-4eee4c12.js","static/js/app-713d5fa9.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-4c029548.js"),["static/js/Pie-4c029548.js","static/js/Pie.vue_vue_type_script_setup_true_lang-457d686f.js","static/js/app-713d5fa9.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-3147f8f0.js"),["static/js/index-3147f8f0.js","static/js/Bar.vue_vue_type_script_setup_true_lang-402eb711.js","static/js/app-713d5fa9.js","static/js/Pie.vue_vue_type_script_setup_true_lang-457d686f.js","static/js/Line.vue_vue_type_script_setup_true_lang-4eee4c12.js","static/js/list-3e287078.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-dba21543.css"])});function handRank(r){const{name:t,path:o,parentId:s,meta:l}=r;return P$1(s)?!!(P$1(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=tn(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=tn(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)?wr(r,t).length>0:!0}function filterNoPermissionTree(r){var s;const t=((s=er().getItem(sessionKey))==null?void 0:s.roles)??[],o=tn(r).filter(l=>{var v;return isOneOfArray((v=l.meta)==null?void 0:v.roles,t)});return o.forEach(l=>l.children&&(l.children=filterNoPermissionTree(l.children))),filterChildrenTree(o)}function getParentPaths(r,t,o="path"){function s(l,v,S){for(let x=0;x<l.length;x++){const T=l[x];if(T[o]===v)return S;if(!(!T.children||!T.children.length)){if(S.push(T.path),s(T.children,v,S).length)return S;S.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=er().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(tn(l)),er().setItem(t,l),s(router)})})}else return new Promise(t=>{getAsyncRoutes().then(({data:o})=>{handleAsyncRoutes(tn(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;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",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(v=>v.includes(o.component)):t.findIndex(v=>v.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?!!(C(r)?t.includes(r):xr(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}){const o=this.cachePageList.findIndex(s=>s===t);switch(r){case"refresh":this.cachePageList=this.cachePageList.filter(s=>s!==t);break;case"add":this.cachePageList.push(t);break;case"delete":o!==-1&&this.cachePageList.splice(o,1);break}(()=>{let s=this.cachePageList.length;const l=Tr(useMultiTagsStoreHook().multiTags,"name");for(;s>0;)l.findIndex(v=>v===this.cachePageList[s-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[s-1]),1),s--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-6dedd829.js"),["static/js/index-6dedd829.js","static/js/menu-a4fe64fb.js","static/js/set-up-729eb907.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-08c5ced8.js","static/js/epTheme-11b37036.js","static/js/app-713d5fa9.js","static/js/hooks-a12c1294.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/js/back_top-98ec2857.js","static/css/index-6bfc0cd3.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-7e71cf0b.js"),["static/js/index-7e71cf0b.js","static/js/motion-a9ba222e.js","static/js/message-6f31e976.js","static/js/verifyCode-5c45ecaf.js","static/js/phone.vue_vue_type_script_setup_true_lang-f0cbdae7.js","static/js/hooks-a12c1294.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-e407f499.js","static/js/index-2a7cbc86.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-9e7aa039.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-8622675c.js","static/js/dark-08c5ced8.js","static/js/epTheme-11b37036.js","static/js/app-713d5fa9.js","static/js/check-f53d8364.js","static/css/index-90a3ebb5.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-e4c87040.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-e5029d98.js"),["static/js/index-e5029d98.js","static/css/index-18755a0a.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.flat(1/0))))),constantMenus=ascending(routes.flat(1/0)).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.flat(1/0))))))}),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 S,x,T;(S=r.meta)!=null&&S.keepAlive&&(handleAliveRoute(r,"add"),(t.name===void 0||t.name==="Redirect")&&handleAliveRoute(r));const s=er().getItem(sessionKey);NProgress.start();const l=gt(r==null?void 0:r.name);l||r.matched.some(A=>{if(!A.meta.title)return"";const w=getConfig().Title;w?document.title=`${transformI18n(A.meta.title)} | ${w}`:document.title=transformI18n(A.meta.title)});function v(){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?(Mt(r==null?void 0:r.name),NProgress.done()):v():(usePermissionStoreHook().wholeMenus.length===0&&r.path!=="/login"&&initRouter().then(A=>{var w,E;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:D}=r,$=findRouteByPath(D,A.options.routes[0].children);if(getTopMenu(!0),$&&((w=$.meta)!=null&&w.title))if(P$1($.parentId)&&((E=$.meta)!=null&&E.backstage)){const{path:N,name:z,meta:F}=$.children[0];useMultiTagsStoreHook().handleTags("push",{path:N,name:z,meta:F})}else{const{path:N,name:z,meta:F}=$;useMultiTagsStoreHook().handleTags("push",{path:N,name:z,meta:F})}}A.push(r.fullPath)}),v())):r.path!=="/login"?whiteList.indexOf(r.path)!==-1?o():o({path:"/login"}):o()});router.afterEach(()=>{NProgress.done()});function isObject$4(r){return r!==null&&typeof r=="object"}function _defu(r,t,o=".",s){if(!isObject$4(t))return _defu(r,{},o,s);const l=Object.assign({},t);for(const v in r){if(v==="__proto__"||v==="constructor")continue;const S=r[v];S!=null&&(s&&s(l,v,S,o)||(Array.isArray(S)&&Array.isArray(l[v])?l[v]=[...S,...l[v]]:isObject$4(S)&&isObject$4(l[v])?l[v]=_defu(S,l[v],(o?`${o}.`:"")+v.toString(),s):l[v]=S))}return l}function createDefu(r){return(...t)=>t.reduce((o,s)=>_defu(o,s,"",r),{})}const defu=createDefu(),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,v=!1;const S=new WeakSet,x={schedule:(T,A=!1,w=!1)=>{const E=w&&l,D=E?t:o;return A&&S.add(T),D.indexOf(T)===-1&&(D.push(T),E&&l&&(s=t.length)),T},cancel:T=>{const A=o.indexOf(T);A!==-1&&o.splice(A,1),S.delete(T)},process:T=>{if(l){v=!0;return}if(l=!0,[t,o]=[o,t],o.length=0,s=t.length,s)for(let A=0;A<s;A++){const w=t[A];w(T),S.has(w)&&(x.schedule(w),r())}l=!1,v&&(v=!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,v=!1)=>(runNextFrame||startLoop(),o.schedule(s,l,v)),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,v;warning(r<=maxDuration*1e3);let S=1-t;S=clamp$2(minDamping,maxDamping,S),r=clamp$2(minDuration,maxDuration,r/1e3),S<1?(l=A=>{const w=A*S,E=w*r,D=w-o,$=calcAngularFreq(A,S),N=Math.exp(-E);return safeMin-D/$*N},v=A=>{const E=A*S*r,D=E*o+o,$=Math.pow(S,2)*Math.pow(A,2)*r,N=Math.exp(-E),z=calcAngularFreq(Math.pow(A,2),S);return(-l(A)+safeMin>0?-1:1)*((D-$)*N)/z}):(l=A=>{const w=Math.exp(-A*r),E=(A-o)*r+1;return-safeMin+w*E},v=A=>{const w=Math.exp(-A*r),E=(o-A)*(r*r);return w*E});const x=5/r,T=approximateRoot(l,v,x);if(r=r*1e3,isNaN(T))return{stiffness:100,damping:10,duration:r};{const A=Math.pow(T,2)*s;return{stiffness:A,damping:S*2*Math.sqrt(s*A),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,v=__rest(r,["from","to","restSpeed","restDelta"]);const S={done:!1,value:t};let{stiffness:x,damping:T,mass:A,velocity:w,duration:E,isResolvedFromDuration:D}=getSpringOptions(v),$=zero,N=zero;function z(){const F=w?-(w/1e3):0,B=o-t,G=T/(2*Math.sqrt(x*A)),W=Math.sqrt(x/A)/1e3;if(l===void 0&&(l=Math.min(Math.abs(o-t)/100,.4)),G<1){const X=calcAngularFreq(W,G);$=ee=>{const Q=Math.exp(-G*W*ee);return o-Q*((F+G*W*B)/X*Math.sin(X*ee)+B*Math.cos(X*ee))},N=ee=>{const Q=Math.exp(-G*W*ee);return G*W*Q*(Math.sin(X*ee)*(F+G*W*B)/X+B*Math.cos(X*ee))-Q*(Math.cos(X*ee)*(F+G*W*B)-X*B*Math.sin(X*ee))}}else if(G===1)$=X=>o-Math.exp(-W*X)*(B+(F+W*B)*X);else{const X=W*Math.sqrt(G*G-1);$=ee=>{const Q=Math.exp(-G*W*ee),te=Math.min(X*ee,300);return o-Q*((F+G*W*B)*Math.sinh(te)+X*B*Math.cosh(te))/X}}}return z(),{next:F=>{const B=$(F);if(D)S.done=F>=E;else{const G=N(F)*1e3,W=Math.abs(G)<=s,X=Math.abs(o-B)<=l;S.done=W&&X}return S.value=S.done?o:B,S},flipTarget:()=>{w=-w,[t,o]=[o,t],z()}}}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,v,S,x]=s.match(floatRegex);return{[r]:parseFloat(l),[t]:parseFloat(v),[o]:parseFloat(S),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 v=>{let S=s;for(let x=0;x<l;x++)S=S.replace(x<o?colorToken:numberToken,x<o?color$1.transform(v[x]):sanitize(v[x]));return S}}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 v=maxDefaults.has(t)?1:0;return s!==o&&(v*=100),t+"("+v+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,v=0,S=0;if(!t)l=v=S=o;else{const x=o<.5?o*(1+t):o+t-o*t,T=2*o-x;l=hueToRgb(T,x,r+1/3),v=hueToRgb(T,x,r),S=hueToRgb(T,x,r-1/3)}return{red:Math.round(l*255),green:Math.round(v*255),blue:Math.round(S*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),v=s.parse(t);o===hsla&&(l=hslaToRgba(l),o=rgba),s===hsla&&(v=hslaToRgba(v),s=rgba);const S=Object.assign({},l);return x=>{for(const T in S)T!=="alpha"&&(S[T]=mixLinearColor(l[T],v[T],x));return S.alpha=mix(l.alpha,v.alpha,x),o.transform(S)}},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((v,S)=>getMixer(v,t[S]));return v=>{for(let S=0;S<s;S++)o[S]=l[S](v);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 v in s)o[v]=s[v](l);return o}};function analyse(r){const t=complex.parse(r),o=t.length;let s=0,l=0,v=0;for(let S=0;S<o;S++)s||typeof t[S]=="number"?s++:t[S].hue!==void 0?v++:l++;return{parsed:t,numNumbers:s,numRGB:l,numHSL:v}}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):S=>`${S>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]),v=r.length-1;for(let S=0;S<v;S++){let x=l(r[S],r[S+1]);if(t){const T=Array.isArray(t)?t[S]: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 v=0,S=!1;if(l<=r[0]?S=!0:l>=r[s]&&(v=s-1,S=!0),!S){let T=1;for(;T<o&&!(r[T]>l||T===s);T++);v=T-1}const x=progress(r[v],r[v+1],l);return t[v](x)}}function interpolate(r,t,{clamp:o=!0,ease:s,mixer:l}={}){const v=r.length;invariant(v===t.length),invariant(!s||!Array.isArray(s)||s.length===v-1),r[0]>r[v-1]&&(r=[].concat(r),t=[].concat(t),r.reverse(),t.reverse());const S=createMixers(t,s,l),x=v===2?fastInterpolate(r,S):slowInterpolate(r,S);return o?T=>x(clamp$2(r[0],r[v-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 v={done:!1,value:r},S=Array.isArray(t)?t:[r,t],x=convertOffsetToTimes(s&&s.length===S.length?s:defaultOffset(S),l);function T(){return interpolate(x,S,{ease:Array.isArray(o)?o:defaultEasing(S,o)})}let A=T();return{next:w=>(v.value=A(w),v.done=w>=l,v),flipTarget:()=>{S.reverse(),A=T()}}}function decay({velocity:r=0,from:t=0,power:o=.8,timeConstant:s=350,restDelta:l=.5,modifyTarget:v}){const S={done:!1,value:t};let x=o*r;const T=t+x,A=v===void 0?T:v(T);return A!==T&&(x=A-t),{next:w=>{const E=-x*Math.exp(-w/s);return S.done=!(E>l||E<-l),S.value=S.done?A:A+E,S},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:v=framesync,elapsed:S=0,repeat:x=0,repeatType:T="loop",repeatDelay:A=0,onPlay:w,onStop:E,onComplete:D,onRepeat:$,onUpdate:N}=r,z=__rest(r,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:F}=z,B,G=0,W=z.duration,X,ee=!1,Q=!0,te;const ie=detectAnimationFromOptions(z);!((o=(t=ie).needsInterpolation)===null||o===void 0)&&o.call(t,s,F)&&(te=interpolate([0,100],[s,F],{clamp:!1}),s=0,F=100);const le=ie(Object.assign(Object.assign({},z),{from:s,to:F}));function pe(){G++,T==="reverse"?(Q=G%2===0,S=reverseElapsed(S,W,A,Q)):(S=loopElapsed(S,W,A),T==="mirror"&&le.flipTarget()),ee=!1,$&&$()}function ue(){B.stop(),D&&D()}function _e(Te){if(Q||(Te=-Te),S+=Te,!ee){const Ae=le.next(Math.max(0,S));X=Ae.value,te&&(X=te(X)),ee=Q?Ae.done:S<=0}N==null||N(X),ee&&(G===0&&(W??(W=S)),G<x?hasRepeatDelayElapsed(S,W,A,Q)&&pe():ue())}function xe(){w==null||w(),B=v(_e),B.start()}return l&&xe(),{stop:()=>{E==null||E(),B.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:v=750,bounceStiffness:S=500,bounceDamping:x=10,restDelta:T=1,modifyTarget:A,driver:w,onUpdate:E,onComplete:D,onStop:$}){let N;function z(W){return o!==void 0&&W<o||s!==void 0&&W>s}function F(W){return o===void 0?s:s===void 0||Math.abs(o-W)<Math.abs(s-W)?o:s}function B(W){N==null||N.stop(),N=animate(Object.assign(Object.assign({},W),{driver:w,onUpdate:X=>{var ee;E==null||E(X),(ee=W.onUpdate)===null||ee===void 0||ee.call(W,X)},onComplete:D,onStop:$}))}function G(W){B(Object.assign({type:"spring",stiffness:S,damping:x,restDelta:T},W))}if(z(r))G({from:r,velocity:t,to:F(r)});else{let W=l*t+r;typeof A<"u"&&(W=A(W));const X=F(W),ee=X===o?-1:1;let Q,te;const ie=le=>{Q=te,te=le,t=velocityPerSecond(le-Q,getFrameData().delta),(ee===1&&le>X||ee===-1&&le<X)&&G({from:le,to:X,velocity:t})};B({type:"decay",from:r,velocity:t,timeConstant:v,power:l,restDelta:T,modifyTarget:A,onUpdate:z(W)?ie:void 0})}return{stop:()=>N==null?void 0:N.stop()}}const a=(r,t)=>1-3*t+3*r,b=(r,t)=>3*t-6*r,c$1=r=>3*r,calcBezier=(r,t,o)=>((a(t,o)*r+b(t,o))*r+c$1(t))*r,getSlope=(r,t,o)=>3*a(t,o)*r*r+2*b(t,o)*r+c$1(t),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(r,t,o,s,l){let v,S,x=0;do S=t+(o-t)/2,v=calcBezier(S,s,l)-r,v>0?o=S:t=S;while(Math.abs(v)>subdivisionPrecision&&++x<subdivisionMaxIterations);return S}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate(r,t,o,s){for(let l=0;l<newtonIterations;++l){const v=getSlope(t,o,s);if(v===0)return t;const S=calcBezier(t,o,s)-r;t-=S/v}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 S=0;S<kSplineTableSize;++S)l[S]=calcBezier(S*kSampleStepSize,r,o);function v(S){let x=0,T=1;const A=kSplineTableSize-1;for(;T!==A&&l[T]<=S;++T)x+=kSampleStepSize;--T;const w=(S-l[T])/(l[T+1]-l[T]),E=x+w*kSampleStepSize,D=getSlope(E,r,o);return D>=newtonMinSlope?newtonRaphsonIterate(S,E,r,o):D===0?E:binarySubdivide(S,x,x+kSampleStepSize,r,o)}return S=>S===0||S===1?S:calcBezier(v(S),t,s)}function makeMap(r,t){const o=Object.create(null),s=r.split(",");for(let l=0;l<s.length;l++)o[s[l]]=!0;return t?l=>!!o[l.toLowerCase()]:l=>!!o[l]}const HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",isHTMLTag=makeMap(HTML_TAGS),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()}}function isFloat(r){return!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=Vue.ref({}),t=s=>{const l=v=>{r.value[v]&&(r.value[v].stop(),r.value[v].destroy(),delete r.value[v])};s?isArray$2(s)?s.forEach(l):l(s):Object.keys(r.value).forEach(l)},o=(s,l,v)=>{if(r.value[s])return r.value[s];const S=getMotionValue(l);return S.onChange(x=>v[s]=x),r.value[s]=S,S};return tryOnUnmounted(t),{motionValues:r,get:o,stop:t}}function isKeyframesTarget(r){return Array.isArray(r)}function underDampedSpring(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(r){return{type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(r){return{type:"spring",stiffness:550,damping:r===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:"keyframes",ease:"linear",duration:300}}function keyframes(r){return{type:"keyframes",duration:800,values:r}}const 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};function getDefaultTransition(r,t){let o;return isKeyframesTarget(t)?o=keyframes:o=defaultTransitions[r]||defaultTransitions.default,{to:t,...o(t)}}const 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];function getValueAsType(r,t){return 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};function 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}function isEasingArray(r){return Array.isArray(r)&&typeof r[0]!="number"}function isAnimatable(r,t){return 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,...v}){return!!Object.keys(v).length}function getValueTransition(r,t){return r[t]||r.default||r}function getAnimation(r,t,o,s,l){const v=getValueTransition(s,r);let S=v.from===null||v.from===void 0?t.get():v.from;const x=isAnimatable(r,o);S==="none"&&x&&typeof o=="string"&&(S=getAnimatableNone(r,o));const T=isAnimatable(r,S);function A(E){const D={from:S,to:o,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:$=>t.set($)};return v.type==="inertia"||v.type==="decay"?inertia({...D,...v}):animate({...getPopmotionAnimationOptions(v,D,r),onUpdate:$=>{D.onUpdate($),v.onUpdate&&v.onUpdate($)},onComplete:()=>{s.onComplete&&s.onComplete(),l&&l(),E&&E()}})}function w(E){return t.set(o),s.onComplete&&s.onComplete(),l&&l(),E&&E(),{stop:()=>{}}}return!T||!x||v.type===!1?w:A}function useMotionTransitions(){const{motionValues:r,stop:t,get:o}=useMotionValues();return{motionValues:r,stop:t,push:(l,v,S,x={},T)=>{const A=S[l],w=o(l,A,S);if(x&&x.immediate){w.set(v);return}const E=getAnimation(l,w,v,x,T);w.start(E)}}}function useMotionControls(r,t={},{motionValues:o,push:s,stop:l}=useMotionTransitions()){const v=Vue.unref(t),S=Vue.ref(!1);Vue.watch(o,E=>{S.value=Object.values(E).filter(D=>D.isAnimating()).length>0},{immediate:!0,deep:!0});const x=E=>{if(!v||!v[E])throw new Error(`The variant ${E} does not exist.`);return v[E]},T=E=>(typeof E=="string"&&(E=x(E)),Promise.all(Object.entries(E).map(([D,$])=>{if(D!=="transition")return new Promise(N=>s(D,$,r,E.transition||getDefaultTransition(D,E[D]),N))}).filter(Boolean)));return{isAnimating:S,apply:T,set:E=>{const D=isObject$5(E)?E:x(E);Object.entries(D).forEach(([$,N])=>{$!=="transition"&&s($,N,r,{immediate:!0})})},leave:async E=>{let D;if(v&&(v.leave&&(D=v.leave),!v.leave&&v.initial&&(D=v.initial)),!D){E();return}await T(D),E()},stop:l}}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=Vue.unref(o),v=Vue.ref(!1),S=Vue.ref(!1),x=Vue.ref(!1),T=Vue.computed(()=>{let w=[];return l&&(l.hovered&&(w=[...w,...Object.keys(l.hovered)]),l.tapped&&(w=[...w,...Object.keys(l.tapped)]),l.focused&&(w=[...w,...Object.keys(l.focused)])),w}),A=Vue.computed(()=>{const w={};Object.assign(w,t.value),v.value&&l.hovered&&Object.assign(w,l.hovered),S.value&&l.tapped&&Object.assign(w,l.tapped),x.value&&l.focused&&Object.assign(w,l.focused);for(const E in w)T.value.includes(E)||delete w[E];return w});l.hovered&&(useEventListener(r,"mouseenter",()=>v.value=!0),useEventListener(r,"mouseleave",()=>{v.value=!1,S.value=!1}),useEventListener(r,"mouseout",()=>{v.value=!1,S.value=!1})),l.tapped&&(supportsMouseEvents()&&(useEventListener(r,"mousedown",()=>S.value=!0),useEventListener(r,"mouseup",()=>S.value=!1)),supportsPointerEvents()&&(useEventListener(r,"pointerdown",()=>S.value=!0),useEventListener(r,"pointerup",()=>S.value=!1)),supportsTouchEvents()&&(useEventListener(r,"touchstart",()=>S.value=!0),useEventListener(r,"touchend",()=>S.value=!1))),l.focused&&(useEventListener(r,"focus",()=>x.value=!0),useEventListener(r,"blur",()=>x.value=!1)),Vue.watch(A,s)}function registerLifeCycleHooks({set:r,target:t,variants:o,variant:s}){const l=Vue.unref(o);Vue.watch(()=>t,()=>{l&&(l.initial&&r("initial"),l.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function registerVariantsSync({state:r,apply:t}){Vue.watch(r,o=>{o&&t(o)},{immediate:!0})}function registerVisibilityHooks({target:r,variants:t,variant:o}){const s=Vue.unref(t);s&&(s.visible||s.visibleOnce)&&useIntersectionObserver(r,([{isIntersecting:l}])=>{s.visible?l?o.value="visible":o.value="initial":s.visibleOnce&&(l&&o.value!=="visibleOnce"?o.value="visibleOnce":o.value||(o.value="initial"))})}function useMotionFeatures(r,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&registerLifeCycleHooks(r),t.syncVariants&&registerVariantsSync(r),t.visibilityHooks&&registerVisibilityHooks(r),t.eventListeners&&registerEventListeners(r)}function reactiveStyle(r={}){const t=Vue.reactive({...r}),o=Vue.ref({});return Vue.watch(t,()=>{const s={};for(const[l,v]of Object.entries(t)){const S=getValueType(l),x=getValueAsType(v,S);s[l]=x}o.value=s},{immediate:!0,deep:!0}),{state:t,style:o}}function usePermissiveTarget(r,t){Vue.watch(()=>unrefElement(r),o=>{o&&t(o)},{immediate:!0})}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(r={},t=!0){const o=Vue.reactive({...r}),s=Vue.ref("");return Vue.watch(o,l=>{let v="",S=!1;if(t&&(l.x||l.y||l.z)){const x=[l.x||0,l.y||0,l.z||0].map(px.transform).join(",");v+=`translate3d(${x}) `,S=!0}for(const[x,T]of Object.entries(l)){if(t&&(x==="x"||x==="y"||x==="z"))continue;const A=getValueType(x),w=getValueAsType(T,A);v+=`${translateAlias[x]||x}(${w}) `}t&&!S&&(v+="translateZ(0px) "),s.value=v.trim()},{immediate:!0,deep:!0}),{state:o,transform:s}}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 variantToStyle(r){const{transform:t,style:o}=splitValues(r),{transform:s}=reactiveTransform(t),{style:l}=reactiveStyle(o);return s.value&&(l.value.transform=s.value),l.value}function useElementStyle(r,t){let o,s;const{state:l,style:v}=reactiveStyle();return usePermissiveTarget(r,S=>{s=S;for(const x of Object.keys(valueTypes))S.style[x]===null||S.style[x]===""||isTransformProp(x)||isTransformOriginProp(x)||(l[x]=S.style[x]);o&&Object.entries(o).forEach(([x,T])=>S.style[x]=T),t&&t(l)}),Vue.watch(v,S=>{if(!s){o=S;return}for(const x in S)s.style[x]=S[x]},{immediate:!0}),{style:l}}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[v,S]=l.split("("),T=S.split(",").map(w=>o(w.endsWith(")")?w.replace(")",""):w.trim())),A=T.length===1?T[0]:T;return{...s,[v]:A}},{})}function stateFromTransform(r,t){Object.entries(parseTransform(t)).forEach(([o,s])=>{const l=["x","y","z"];if(o==="translate3d"){if(s===0){l.forEach(v=>r[v]=0);return}s.forEach((v,S)=>r[l[S]]=v);return}if(s=parseFloat(s),o==="translateX"){r.x=s;return}if(o==="translateY"){r.y=s;return}if(o==="translateZ"){r.z=s;return}r[o]=s})}function useElementTransform(r,t){let o,s;const{state:l,transform:v}=reactiveTransform();return usePermissiveTarget(r,S=>{s=S,S.style.transform&&stateFromTransform(l,S.style.transform),o&&(S.style.transform=o),t&&t(l)}),Vue.watch(v,S=>{if(!s){o=S;return}s.style.transform=S},{immediate:!0}),{transform:l}}function useMotionProperties(r,t){const o=Vue.reactive({}),s=S=>Object.entries(S).forEach(([x,T])=>o[x]=T),{style:l}=useElementStyle(r,s),{transform:v}=useElementTransform(r,s);return Vue.watch(o,S=>{Object.entries(S).forEach(([x,T])=>{const A=isTransformProp(x)?v:l;A[x]&&A[x]===T||(A[x]=T)})},{immediate:!0,deep:!0}),usePermissiveTarget(r,()=>t&&s(t)),{motionProperties:o,style:l,transform:v}}function useMotionVariants(r={}){const t=Vue.unref(r),o=Vue.ref();return{state:Vue.computed(()=>{if(o.value)return t[o.value]}),variant:o}}function useMotion(r,t={},o){const{motionProperties:s}=useMotionProperties(r),{variant:l,state:v}=useMotionVariants(t),S=useMotionControls(s,t),x={target:r,variant:l,variants:t,state:v,motionProperties:s,...S};return useMotionFeatures(x,o),x}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"];function resolveVariants(r,t){const o=r.props?r.props:r.data&&r.data.attrs?r.data.attrs:{};o&&(o.variants&&isObject$5(o.variants)&&(t.value={...t.value,...o.variants}),directivePropsKeys.forEach(s=>{if(s==="delay"){if(o&&o[s]&&typeof o[s]=="number"){const l=o[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:l,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:l,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:l,...t.value.visibleOnce.transition}))}return}s==="visible-once"&&(s="visibleOnce"),o&&o[s]&&isObject$5(o[s])&&(t.value[s]=o[s])}))}function directive(r){return{created:(o,s,l)=>{const v=s.value&&typeof s.value=="string"?s.value:l.key;v&&motionState[v]&&motionState[v].stop();const S=Vue.ref(r||{});typeof s.value=="object"&&(S.value=s.value),resolveVariants(l,S);const x=useMotion(o,S);o.motionInstance=x,v&&(motionState[v]=x)},getSSRProps(o,s){let{initial:l}=o.value||s&&(s==null?void 0:s.props)||{};l=Vue.unref(l);const v=defu((r==null?void 0:r.initial)||{},l||{});return!v||Object.keys(v).length===0?void 0:{style:variantToStyle(v)}}}}const 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,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},component=Vue.defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(r){var x;const t=Vue.useSlots(),o=Vue.reactive({});if(!r.is&&!t.default)return()=>Vue.h("div",{});const s=Vue.computed(()=>{let T;return r.preset&&(T=presets[r.preset]),T}),l=Vue.computed(()=>({initial:r.initial,enter:r.enter,leave:r.leave,visible:r.visible,visibleOnce:r.visibleOnce,hovered:r.hovered,tapped:r.tapped,focused:r.focused})),v=Vue.computed(()=>{const T={...l.value,...s.value||{},...r.variants||{}};return r.delay&&(T.enter.transition={...T.enter.transition},T.enter.transition.delay=parseInt(r.delay)),T}),S=Vue.computed(()=>{if(!r.is)return;let T=r.is;return typeof S.value=="string"&&!isHTMLTag(T)&&(T=Vue.resolveComponent(T)),T});if(((x=process==null?void 0:process.env)==null?void 0:x.NODE_ENV)==="development"||process!=null&&process.dev){const T=A=>{var w;(w=A.variants)!=null&&w.initial&&A.set("initial"),setTimeout(()=>{var E,D,$;(E=A.variants)!=null&&E.enter&&A.apply("enter"),(D=A.variants)!=null&&D.visible&&A.apply("visible"),($=A.variants)!=null&&$.visibleOnce&&A.apply("visibleOnce")},10)};Vue.onUpdated(()=>Object.entries(o).forEach(([A,w])=>T(w)))}return{slots:t,component:S,motionConfig:v,instances:o}},render({slots:r,motionConfig:t,instances:o,component:s}){var x;const l=variantToStyle(t.initial||{}),v=(T,A)=>(T.props||(T.props={}),T.props.style=l,T.props.onVnodeMounted=({el:w})=>{const E=useMotion(w,t);o[A]=E},T);if(s){const T=Vue.h(s,void 0,r);return v(T,0),T}return(((x=r.default)==null?void 0:x.call(r))||[]).map((T,A)=>v(T,A))}});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()),r.component("Motion",component),!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.]+))/),v=r.match(/Edge?\/([\d.]+)/),S=/micromessenger/i.test(r);s&&(o.firefox=!0,o.version=s[1]),l&&(o.ie=!0,o.version=l[1]),v&&(o.edge=!0,o.version=v[1],o.newEdge=+v[1].split(".")[0]>18),S&&(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 v=/(\d+)px/.exec(s),S=v&&+v[1]||DEFAULT_FONT_SIZE,x=0;if(s.indexOf("mono")>=0)x=S*o.length;else for(var T=0;T<o.length;T++){var A=DEFAULT_TEXT_WIDTH_MAP[o[T]];x+=A==null?S:A*S}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 v=r.constructor;if(v.from)t=v.from(r);else{t=new v(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 S in r)r.hasOwnProperty(S)&&S!==protoKey&&(t[S]=clone$3(r[S]))}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],v=t[s];isObject$3(v)&&isObject$3(l)&&!isArray$1(v)&&!isArray$1(l)&&!isDom(v)&&!isDom(l)&&!isBuiltInObject(v)&&!isBuiltInObject(l)&&!isPrimitive(v)&&!isPrimitive(l)?merge(l,v,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 v=s[l];(o?t[v]!=null:r[v]==null)&&(r[v]=t[v])}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 v=s[l];v!=="constructor"&&(o?t[v]!=null:r[v]==null)&&(r[v]=t[v])}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 v in r)r.hasOwnProperty(v)&&t.call(o,r[v],v,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,v=r.length;l<v;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,v=r.length;l<v;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,v=r.length;l<v;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(v,S){o?s.set(v,S):s.set(S,v)}}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,v=s-this._x,S=l-this._y;this._x=s,this._y=l,o.drift(v,S,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 v=this._$handlers;if(typeof o=="function"&&(l=s,s=o,o=null),!s||!t)return this;var S=this._$eventProcessor;o!=null&&S&&S.normalizeQuery&&(o=S.normalizeQuery(o)),v[t]||(v[t]=[]);for(var x=0;x<v[t].length;x++)if(v[t][x].h===s)return this;var T={h:s,query:o,ctx:l||this,callAtLast:s.zrEventfulCallAtLast},A=v[t].length-1,w=v[t][A];return w&&w.callAtLast?v[t].splice(A,0,T):v[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=[],v=0,S=s[t].length;v<S;v++)s[t][v].h!==o&&l.push(s[t][v]);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],v=this._$eventProcessor;if(l)for(var S=o.length,x=l.length,T=0;T<x;T++){var A=l[T];if(!(v&&v.filter&&A.query!=null&&!v.filter(t,A.query)))switch(S){case 0:A.h.call(A.ctx);break;case 1:A.h.call(A.ctx,o[0]);break;case 2:A.h.call(A.ctx,o[0],o[1]);break;default:A.h.apply(A.ctx,o);break}}return v&&v.afterTrigger&&v.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],v=this._$eventProcessor;if(l)for(var S=o.length,x=o[S-1],T=l.length,A=0;A<T;A++){var w=l[A];if(!(v&&v.filter&&w.query!=null&&!v.filter(t,w.query)))switch(S){case 0:w.h.call(x);break;case 1:w.h.call(x,o[0]);break;case 2:w.h.call(x,o[0],o[1]);break;default:w.h.apply(x,o.slice(1,S-1));break}}return v&&v.afterTrigger&&v.afterTrigger(t),this},r}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant(r,t,o,s,l,v){var S=s+"-"+l,x=r.length;if(v.hasOwnProperty(S))return v[S];if(t===1){var T=Math.round(Math.log((1<<x)-1&~l)/LN2);return r[o][T]}for(var A=s|1<<o,w=o+1;s&1<<w;)w++;for(var E=0,D=0,$=0;D<x;D++){var N=1<<D;N&l||(E+=($%2?-1:1)*r[o][D]*determinant(r,t-1,w,A,l|N,v),$++)}return v[S]=E,E}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 v=[],S=0;S<8;S++)for(var x=0;x<8;x++)v[x]==null&&(v[x]=0),v[x]+=((S+x)%2?-1:1)*determinant(o,7,S===0?1:0,1<<S,1<<x,s)/l*t[S];return function(T,A,w){var E=A*v[6]+w*v[7]+1;T[0]=(A*v[0]+w*v[1]+v[2])/E,T[1]=(A*v[3]+w*v[4]+v[5])/E}}}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 v=t[EVENT_SAVED_PROP]||(t[EVENT_SAVED_PROP]={}),S=prepareCoordMarkers(t,v),x=preparePointerTransformer(S,v,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"],v=0;v<4;v++){var S=document.createElement("div"),x=S.style,T=v%2,A=(v>>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[A]+":0",s[1-T]+":auto",l[1-A]+":auto",""].join("!important;"),r.appendChild(S),o.push(S)}return o}function preparePointerTransformer(r,t,o){for(var s=o?"invTrans":"trans",l=t[s],v=t.srcCoords,S=[],x=[],T=!0,A=0;A<4;A++){var w=r[A].getBoundingClientRect(),E=2*A,D=w.left,$=w.top;S.push(D,$),T=T&&v&&D===v[E]&&$===v[E+1],x.push(r[A].offsetLeft,r[A].offsetTop)}return T&&l?l:(t.srcCoords=S,t[s]=o?buildTransformer(x,S):buildTransformer(S,x))}function isCanvasEl(r){return r.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};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 v=r.getBoundingClientRect();o.zrX=s-v.left,o.zrY=l-v.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 S=s!=="touchend"?t.targetTouches[0]:t.changedTouches[0];S&&clientToLocal(r,S,t,o)}else{clientToLocal(r,t,t,o);var v=getWheelDeltaMayPolyfill(t);t.zrDelta=v?v/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),v=s>0?-1:s<0?1:o>0?-1:1;return 3*l*v}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 v={points:[],touches:[],target:o,event:t},S=0,x=l.length;S<x;S++){var T=l[S],A=clientToLocal(s,T,{});v.points.push([A.zrX,A.zrY]),v.touches.push(T)}this._track.push(v)}},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 v=dist(s)/dist(l);!isFinite(v)&&(v=1),t.pinchScale=v;var S=center(s);return t.pinchX=S[0],t.pinchY=S[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],v=t[0]*o[2]+t[2]*o[3],S=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]=v,r[3]=S,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],v=t[4],S=t[1],x=t[3],T=t[5],A=Math.sin(o),w=Math.cos(o);return r[0]=s*w+S*A,r[1]=-s*A+S*w,r[2]=l*w+x*A,r[3]=-l*A+w*x,r[4]=w*v+A*T,r[5]=w*T-A*v,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],v=t[1],S=t[3],x=t[5],T=o*S-v*s;return T?(T=1/T,r[0]=S*T,r[1]=-v*T,r[2]=-s*T,r[3]=o*T,r[4]=(s*x-S*l)*T,r[5]=(v*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 v=1-l;t.x=v*o.x+l*s.x,t.y=v*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,v=create();return translate(v,v,[-o.x,-o.y]),scale$1(v,v,[s,l]),translate(v,v,[t.x,t.y]),v},r.prototype.intersect=function(t,o){if(!t)return!1;t instanceof r||(t=r.create(t));var s=this,l=s.x,v=s.x+s.width,S=s.y,x=s.y+s.height,T=t.x,A=t.x+t.width,w=t.y,E=t.y+t.height,D=!(v<T||A<l||x<w||E<S);if(o){var $=1/0,N=0,z=Math.abs(v-T),F=Math.abs(A-l),B=Math.abs(x-w),G=Math.abs(E-S),W=Math.min(z,F),X=Math.min(B,G);v<T||A<l?W>N&&(N=W,z<F?Point$1.set(maxTv$1,-z,0):Point$1.set(maxTv$1,F,0)):W<$&&($=W,z<F?Point$1.set(minTv$1,z,0):Point$1.set(minTv$1,-F,0)),x<w||E<S?X>N&&(N=X,B<G?Point$1.set(maxTv$1,0,-B):Point$1.set(maxTv$1,0,G)):W<$&&($=W,B<G?Point$1.set(minTv$1,0,B):Point$1.set(minTv$1,0,-G))}return o&&Point$1.copy(o,D?minTv$1:maxTv$1),D},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],v=s[3],S=s[4],x=s[5];t.x=o.x*l+S,t.y=o.y*v+x,t.width=o.width*l,t.height=o.height*v,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),A=mathMax$8(lt.y,rb.y,lb.y,rt.y);t.width=T-t.x,t.height=A-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,v,S){var x=r.call(this)||this;return x._hovered=new HoveredResult(0,0),x.storage=o,x.painter=s,x.painterRoot=v,x._pointerSize=S,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,v=isOutsideBoundary(this,s,l),S=this._hovered,x=S.target;x&&!x.__zr&&(S=this.findHover(S.x,S.y),x=S.target);var T=this._hovered=v?new HoveredResult(s,l):this.findHover(s,l),A=T.target,w=this.proxy;w.setCursor&&w.setCursor(A?A.cursor:"default"),x&&A!==x&&this.dispatchToElement(S,"mouseout",o),this.dispatchToElement(T,"mousemove",o),A&&A!==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 v=o.target;if(!(v&&v.silent)){for(var S="on"+s,x=makeEventPacket(s,o,l);v&&(v[S]&&(x.cancelBubble=!!v[S].call(v,x)),v.trigger(s,x),v=v.__hostTarget?v.__hostTarget:v.parent,!x.cancelBubble););x.cancelBubble||(this.trigger(s,x),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(T){typeof T[S]=="function"&&T[S].call(T,x),T.trigger&&T.trigger(s,x)}))}},t.prototype.findHover=function(o,s,l){var v=this.storage.getDisplayList(),S=new HoveredResult(o,s);if(setHoverTarget(v,S,o,s,l),this._pointerSize&&!S.target){for(var x=[],T=this._pointerSize,A=T/2,w=new BoundingRect$1(o-A,s-A,T,T),E=v.length-1;E>=0;E--){var D=v[E];D!==l&&!D.ignore&&!D.ignoreCoarsePointer&&(!D.parent||!D.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(D.getBoundingRect()),D.transform&&tmpRect$1.applyTransform(D.transform),tmpRect$1.intersect(w)&&x.push(D))}if(x.length)for(var $=4,N=Math.PI/12,z=Math.PI*2,F=0;F<A;F+=$)for(var B=0;B<z;B+=N){var G=o+F*Math.cos(B),W=s+F*Math.sin(B);if(setHoverTarget(x,S,G,W,l),S.target)return S}}return S},t.prototype.processGesture=function(o,s){this._gestureMgr||(this._gestureMgr=new GestureMgr);var l=this._gestureMgr;s==="start"&&l.clear();var v=l.recognize(o,this.findHover(o.zrX,o.zrY,null).target,this.proxy.dom);if(s==="end"&&l.clear(),v){var S=v.type;o.gestureEvent=S;var x=new HoveredResult;x.target=v.target,this.dispatchToElement(x,S,v.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),v,S;if((r!=="mouseup"||!l)&&(v=this.findHover(o,s),S=v.target),r==="mousedown")this._downEl=S,this._downPoint=[t.zrX,t.zrY],this._upEl=S;else if(r==="mouseup")this._upEl=S;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(v,r,t)}});function isHover(r,t,o){if(r[r.rectHover?"rectContain":"contain"](t,o)){for(var s=r,l=void 0,v=!1;s;){if(s.ignoreClip&&(v=!0),!v){var S=s.getClipPath();if(S&&!S.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 v=r.length-1;v>=0;v--){var S=r[v],x=void 0;if(S!==l&&!S.ignore&&(x=isHover(S,o,s))&&(!t.topTarget&&(t.topTarget=S),x!==SILENT)){t.target=S;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 v=r[s],S=t,x=s,T;S<x;)T=S+x>>>1,l(v,r[T])<0?x=T:S=T+1;var A=s-S;switch(A){case 3:r[S+3]=r[S+2];case 2:r[S+2]=r[S+1];case 1:r[S+1]=r[S];break;default:for(;A>0;)r[S+A]=r[S+A-1],A--}r[S]=v}}function gallopLeft(r,t,o,s,l,v){var S=0,x=0,T=1;if(v(r,t[o+l])>0){for(x=s-l;T<x&&v(r,t[o+l+T])>0;)S=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x),S+=l,T+=l}else{for(x=l+1;T<x&&v(r,t[o+l-T])<=0;)S=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x);var A=S;S=l-T,T=l-A}for(S++;S<T;){var w=S+(T-S>>>1);v(r,t[o+w])>0?S=w+1:T=w}return T}function gallopRight(r,t,o,s,l,v){var S=0,x=0,T=1;if(v(r,t[o+l])<0){for(x=l+1;T<x&&v(r,t[o+l-T])<0;)S=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x);var A=S;S=l-T,T=l-A}else{for(x=s-l;T<x&&v(r,t[o+l+T])>=0;)S=T,T=(T<<1)+1,T<=0&&(T=x);T>x&&(T=x),S+=l,T+=l}for(S++;S<T;){var w=S+(T-S>>>1);v(r,t[o+w])<0?T=w:S=w+1}return T}function TimSort(r,t){var o=DEFAULT_MIN_GALLOPING,s,l,v=0;r.length;var S=[];s=[],l=[];function x($,N){s[v]=$,l[v]=N,v+=1}function T(){for(;v>1;){var $=v-2;if($>=1&&l[$-1]<=l[$]+l[$+1]||$>=2&&l[$-2]<=l[$]+l[$-1])l[$-1]<l[$+1]&&$--;else if(l[$]>l[$+1])break;w($)}}function A(){for(;v>1;){var $=v-2;$>0&&l[$-1]<l[$+1]&&$--,w($)}}function w($){var N=s[$],z=l[$],F=s[$+1],B=l[$+1];l[$]=z+B,$===v-3&&(s[$+1]=s[$+2],l[$+1]=l[$+2]),v--;var G=gallopRight(r[F],r,N,z,0,t);N+=G,z-=G,z!==0&&(B=gallopLeft(r[N+z-1],r,F,B,B-1,t),B!==0&&(z<=B?E(N,z,F,B):D(N,z,F,B)))}function E($,N,z,F){var B=0;for(B=0;B<N;B++)S[B]=r[$+B];var G=0,W=z,X=$;if(r[X++]=r[W++],--F===0){for(B=0;B<N;B++)r[X+B]=S[G+B];return}if(N===1){for(B=0;B<F;B++)r[X+B]=r[W+B];r[X+F]=S[G];return}for(var ee=o,Q,te,ie;;){Q=0,te=0,ie=!1;do if(t(r[W],S[G])<0){if(r[X++]=r[W++],te++,Q=0,--F===0){ie=!0;break}}else if(r[X++]=S[G++],Q++,te=0,--N===1){ie=!0;break}while((Q|te)<ee);if(ie)break;do{if(Q=gallopRight(r[W],S,G,N,0,t),Q!==0){for(B=0;B<Q;B++)r[X+B]=S[G+B];if(X+=Q,G+=Q,N-=Q,N<=1){ie=!0;break}}if(r[X++]=r[W++],--F===0){ie=!0;break}if(te=gallopLeft(S[G],r,W,F,0,t),te!==0){for(B=0;B<te;B++)r[X+B]=r[W+B];if(X+=te,W+=te,F-=te,F===0){ie=!0;break}}if(r[X++]=S[G++],--N===1){ie=!0;break}ee--}while(Q>=DEFAULT_MIN_GALLOPING||te>=DEFAULT_MIN_GALLOPING);if(ie)break;ee<0&&(ee=0),ee+=2}if(o=ee,o<1&&(o=1),N===1){for(B=0;B<F;B++)r[X+B]=r[W+B];r[X+F]=S[G]}else{if(N===0)throw new Error;for(B=0;B<N;B++)r[X+B]=S[G+B]}}function D($,N,z,F){var B=0;for(B=0;B<F;B++)S[B]=r[z+B];var G=$+N-1,W=F-1,X=z+F-1,ee=0,Q=0;if(r[X--]=r[G--],--N===0){for(ee=X-(F-1),B=0;B<F;B++)r[ee+B]=S[B];return}if(F===1){for(X-=N,G-=N,Q=X+1,ee=G+1,B=N-1;B>=0;B--)r[Q+B]=r[ee+B];r[X]=S[W];return}for(var te=o;;){var ie=0,le=0,pe=!1;do if(t(S[W],r[G])<0){if(r[X--]=r[G--],ie++,le=0,--N===0){pe=!0;break}}else if(r[X--]=S[W--],le++,ie=0,--F===1){pe=!0;break}while((ie|le)<te);if(pe)break;do{if(ie=N-gallopRight(S[W],r,$,N,N-1,t),ie!==0){for(X-=ie,G-=ie,N-=ie,Q=X+1,ee=G+1,B=ie-1;B>=0;B--)r[Q+B]=r[ee+B];if(N===0){pe=!0;break}}if(r[X--]=S[W--],--F===1){pe=!0;break}if(le=F-gallopLeft(r[G],S,0,F,F-1,t),le!==0){for(X-=le,W-=le,F-=le,Q=X+1,ee=W+1,B=0;B<le;B++)r[Q+B]=S[ee+B];if(F<=1){pe=!0;break}}if(r[X--]=r[G--],--N===0){pe=!0;break}te--}while(ie>=DEFAULT_MIN_GALLOPING||le>=DEFAULT_MIN_GALLOPING);if(pe)break;te<0&&(te=0),te+=2}if(o=te,o<1&&(o=1),F===1){for(X-=N,G-=N,Q=X+1,ee=G+1,B=N-1;B>=0;B--)r[Q+B]=r[ee+B];r[X]=S[W]}else{if(F===0)throw new Error;for(ee=X-(F-1),B=0;B<F;B++)r[ee+B]=S[B]}}return{mergeRuns:T,forceMergeRuns:A,pushRun:x}}function sort(r,t,o,s){o||(o=0),s||(s=r.length);var l=s-o;if(!(l<2)){var v=0;if(l<DEFAULT_MIN_MERGE){v=makeAscendingRun(r,o,s,t),binaryInsertionSort(r,o,s,o+v,t);return}var S=TimSort(r,t),x=minRunLength(l);do{if(v=makeAscendingRun(r,o,s,t),v<x){var T=l;T>x&&(T=x),binaryInsertionSort(r,o,o+T,o+v,t),v=T}S.pushRun(o,v),S.mergeRuns(),l-=v,o+=v}while(l!==0);S.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,v=o.length;l<v;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 v=l,S=t;v;)v.parent=S,v.updateTransform(),o.push(v),S=v,v=v.getClipPath()}if(t.childrenRef){for(var x=t.childrenRef(),T=0;T<x.length;T++){var A=x[T];t.__dirty&&(A.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(A,o,s)}t.__dirty=0}else{var w=t;o&&o.length?w.__clipPaths=o:w.__clipPaths&&w.__clipPaths.length>0&&(w.__clipPaths=[]),isNaN(w.z)&&(logInvalidZError(),w.z=0),isNaN(w.z2)&&(logInvalidZError(),w.z2=0),isNaN(w.zlevel)&&(logInvalidZError(),w.zlevel=0),this._displayList[this._displayListLen++]=w}var E=t.getDecalElement&&t.getDecalElement();E&&this._updateAndAddDisplayable(E,o,s);var D=t.getTextGuideLine();D&&this._updateAndAddDisplayable(D,o,s);var $=t.getTextContent();$&&this._updateAndAddDisplayable($,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$1;requestAnimationFrame$1=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$2=requestAnimationFrame$1;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 v=1-l;return v*v*(v*r+3*l*t)+l*l*(l*s+3*v*o)}function cubicDerivativeAt(r,t,o,s,l){var v=1-l;return 3*(((t-r)*v+2*(o-t)*l)*v+(s-o)*l*l)}function cubicRootAt(r,t,o,s,l,v){var S=s+3*(t-o)-r,x=3*(o-t*2+r),T=3*(t-r),A=r-l,w=x*x-3*S*T,E=x*T-9*S*A,D=T*T-3*x*A,$=0;if(isAroundZero(w)&&isAroundZero(E))if(isAroundZero(x))v[0]=0;else{var N=-T/x;N>=0&&N<=1&&(v[$++]=N)}else{var z=E*E-4*w*D;if(isAroundZero(z)){var F=E/w,N=-x/S+F,B=-F/2;N>=0&&N<=1&&(v[$++]=N),B>=0&&B<=1&&(v[$++]=B)}else if(z>0){var G=mathSqrt$3(z),W=w*x+1.5*S*(-E+G),X=w*x+1.5*S*(-E-G);W<0?W=-mathPow$2(-W,ONE_THIRD):W=mathPow$2(W,ONE_THIRD),X<0?X=-mathPow$2(-X,ONE_THIRD):X=mathPow$2(X,ONE_THIRD);var N=(-x-(W+X))/(3*S);N>=0&&N<=1&&(v[$++]=N)}else{var ee=(2*w*x-3*S*E)/(2*mathSqrt$3(w*w*w)),Q=Math.acos(ee)/3,te=mathSqrt$3(w),ie=Math.cos(Q),N=(-x-2*te*ie)/(3*S),B=(-x+te*(ie+THREE_SQRT*Math.sin(Q)))/(3*S),le=(-x+te*(ie-THREE_SQRT*Math.sin(Q)))/(3*S);N>=0&&N<=1&&(v[$++]=N),B>=0&&B<=1&&(v[$++]=B),le>=0&&le<=1&&(v[$++]=le)}}return $}function cubicExtrema(r,t,o,s,l){var v=6*o-12*t+6*r,S=9*t+3*s-3*r-9*o,x=3*t-3*r,T=0;if(isAroundZero(S)){if(isNotAroundZero$1(v)){var A=-x/v;A>=0&&A<=1&&(l[T++]=A)}}else{var w=v*v-4*S*x;if(isAroundZero(w))l[0]=-v/(2*S);else if(w>0){var E=mathSqrt$3(w),A=(-v+E)/(2*S),D=(-v-E)/(2*S);A>=0&&A<=1&&(l[T++]=A),D>=0&&D<=1&&(l[T++]=D)}}return T}function cubicSubdivide(r,t,o,s,l,v){var S=(t-r)*l+r,x=(o-t)*l+t,T=(s-o)*l+o,A=(x-S)*l+S,w=(T-x)*l+x,E=(w-A)*l+A;v[0]=r,v[1]=S,v[2]=A,v[3]=E,v[4]=E,v[5]=w,v[6]=T,v[7]=s}function cubicProjectPoint(r,t,o,s,l,v,S,x,T,A,w){var E,D=.005,$=1/0,N,z,F,B;_v0[0]=T,_v0[1]=A;for(var G=0;G<1;G+=.05)_v1[0]=cubicAt(r,o,l,S,G),_v1[1]=cubicAt(t,s,v,x,G),F=distSquare(_v0,_v1),F<$&&(E=G,$=F);$=1/0;for(var W=0;W<32&&!(D<EPSILON_NUMERIC);W++)N=E-D,z=E+D,_v1[0]=cubicAt(r,o,l,S,N),_v1[1]=cubicAt(t,s,v,x,N),F=distSquare(_v1,_v0),N>=0&&F<$?(E=N,$=F):(_v2[0]=cubicAt(r,o,l,S,z),_v2[1]=cubicAt(t,s,v,x,z),B=distSquare(_v2,_v0),z<=1&&B<$?(E=z,$=B):D*=.5);return w&&(w[0]=cubicAt(r,o,l,S,E),w[1]=cubicAt(t,s,v,x,E)),mathSqrt$3($)}function cubicLength(r,t,o,s,l,v,S,x,T){for(var A=r,w=t,E=0,D=1/T,$=1;$<=T;$++){var N=$*D,z=cubicAt(r,o,l,S,N),F=cubicAt(t,s,v,x,N),B=z-A,G=F-w;E+=Math.sqrt(B*B+G*G),A=z,w=F}return E}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 v=r-2*t+o,S=2*(t-r),x=r-s,T=0;if(isAroundZero(v)){if(isNotAroundZero$1(S)){var A=-x/S;A>=0&&A<=1&&(l[T++]=A)}}else{var w=S*S-4*v*x;if(isAroundZero(w)){var A=-S/(2*v);A>=0&&A<=1&&(l[T++]=A)}else if(w>0){var E=mathSqrt$3(w),A=(-S+E)/(2*v),D=(-S-E)/(2*v);A>=0&&A<=1&&(l[T++]=A),D>=0&&D<=1&&(l[T++]=D)}}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 v=(t-r)*s+r,S=(o-t)*s+t,x=(S-v)*s+v;l[0]=r,l[1]=v,l[2]=x,l[3]=x,l[4]=S,l[5]=o}function quadraticProjectPoint(r,t,o,s,l,v,S,x,T){var A,w=.005,E=1/0;_v0[0]=S,_v0[1]=x;for(var D=0;D<1;D+=.05){_v1[0]=quadraticAt(r,o,l,D),_v1[1]=quadraticAt(t,s,v,D);var $=distSquare(_v0,_v1);$<E&&(A=D,E=$)}E=1/0;for(var N=0;N<32&&!(w<EPSILON_NUMERIC);N++){var z=A-w,F=A+w;_v1[0]=quadraticAt(r,o,l,z),_v1[1]=quadraticAt(t,s,v,z);var $=distSquare(_v1,_v0);if(z>=0&&$<E)A=z,E=$;else{_v2[0]=quadraticAt(r,o,l,F),_v2[1]=quadraticAt(t,s,v,F);var B=distSquare(_v2,_v0);F<=1&&B<E?(A=F,E=B):w*=.5}}return T&&(T[0]=quadraticAt(r,o,l,A),T[1]=quadraticAt(t,s,v,A)),mathSqrt$3(E)}function quadraticLength(r,t,o,s,l,v,S){for(var x=r,T=t,A=0,w=1/S,E=1;E<=S;E++){var D=E*w,$=quadraticAt(r,o,l,D),N=quadraticAt(t,s,v,D),z=$-x,F=N-T;A+=Math.sqrt(z*z+F*F),x=$,T=N}return A}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(r){var t=r&&regexp.exec(r);if(t){var o=t[1].split(","),s=+trim$1(o[0]),l=+trim$1(o[1]),v=+trim$1(o[2]),S=+trim$1(o[3]);if(isNaN(s+l+v+S))return;var x=[];return function(T){return T<=0?0:T>=1?1:cubicRootAt(0,s,v,1,T,x)&&cubicAt(0,l,S,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,v=l/s;v<0&&(v=0),v=Math.min(v,1);var S=this.easingFunc,x=S?S(v):v;if(this.onframe(x),v===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,v=null;if(l[t]==null){var S=s.len(),x=this._lastRemovedEntry;if(S>=this._maxSize&&S>0){var T=s.head;s.remove(T),delete l[T.key],v=T.value,this._lastRemovedEntry=T}x?x.value=o:x=new Entry(o),x.key=t,s.insertEntry(x),l[t]=x}return v},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&&copyRgba(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 v=parseInt(s.slice(1,4),16);if(!(v>=0&&v<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,(v&3840)>>4|(v&3840)>>8,v&240|(v&240)>>4,v&15|(v&15)<<4,l===5?parseInt(s.slice(4),16)/15:1),putToCache(r,t),t}else if(l===7||l===9){var v=parseInt(s.slice(1,7),16);if(!(v>=0&&v<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,(v&16711680)>>16,(v&65280)>>8,v&255,l===9?parseInt(s.slice(7),16)/255:1),putToCache(r,t),t}return}var S=s.indexOf("("),x=s.indexOf(")");if(S!==-1&&x+1===l){var T=s.substr(0,S),A=s.substr(S+1,x-(S+1)).split(","),w=1;switch(T){case"rgba":if(A.length!==4)return A.length===3?setRgba(t,+A[0],+A[1],+A[2],1):setRgba(t,0,0,0,1);w=parseCssFloat(A.pop());case"rgb":if(A.length>=3)return setRgba(t,parseCssInt(A[0]),parseCssInt(A[1]),parseCssInt(A[2]),A.length===3?w:parseCssFloat(A[3])),putToCache(r,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(A.length!==4){setRgba(t,0,0,0,1);return}return A[3]=parseCssFloat(A[3]),hsla2rgba(A,t),putToCache(r,t),t;case"hsl":if(A.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(A,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]),v=l<=.5?l*(s+1):l+s-l*s,S=l*2-v;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(S,v,o+1/3)*255),clampCssByte(cssHueToRgb(S,v,o)*255),clampCssByte(cssHueToRgb(S,v,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),v=Math.max(t,o,s),S=v-l,x=(v+l)/2,T,A;if(S===0)T=0,A=0;else{x<.5?A=S/(v+l):A=S/(2-v-l);var w=((v-t)/6+S/2)/S,E=((v-o)/6+S/2)/S,D=((v-s)/6+S/2)/S;t===v?T=D-E:o===v?T=1/3+w-D:s===v&&(T=2/3+E-w),T<0&&(T+=1),T>1&&(T-=1)}var $=[T*360,A,x];return r[3]!=null&&$.push(r[3]),$}}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),v=Math.ceil(s),S=t[l],x=t[v],T=s-l;return o[0]=clampCssByte(lerpNumber(S[0],x[0],T)),o[1]=clampCssByte(lerpNumber(S[1],x[1],T)),o[2]=clampCssByte(lerpNumber(S[2],x[2],T)),o[3]=clampCssFloat(lerpNumber(S[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),v=Math.ceil(s),S=parse$1(t[l]),x=parse$1(t[v]),T=s-l,A=stringify([clampCssByte(lerpNumber(S[0],x[0],T)),clampCssByte(lerpNumber(S[1],x[1],T)),clampCssByte(lerpNumber(S[2],x[2],T)),clampCssFloat(lerpNumber(S[3],x[3],T))],"rgba");return o?{color:A,leftIndex:l,rightIndex:v,value:s}:A}}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,v=0;v<l;v++)r[v]=interpolateNumber$1(t[v],o[v],s);return r}function interpolate2DArray(r,t,o,s){for(var l=t.length,v=l&&t[0].length,S=0;S<l;S++){r[S]||(r[S]=[]);for(var x=0;x<v;x++)r[S][x]=interpolateNumber$1(t[S][x],o[S][x],s)}return r}function add1DArray(r,t,o,s){for(var l=t.length,v=0;v<l;v++)r[v]=t[v]+o[v]*s;return r}function add2DArray(r,t,o,s){for(var l=t.length,v=l&&t[0].length,S=0;S<l;S++){r[S]||(r[S]=[]);for(var x=0;x<v;x++)r[S][x]=t[S][x]+o[S][x]*s}return r}function fillColorStops(r,t){for(var o=r.length,s=t.length,l=o>s?t:r,v=Math.min(o,s),S=l[v-1]||{color:[0,0,0,0],offset:0},x=v;x<Math.max(o,s);x++)l.push({offset:S.offset,color:S.color.slice()})}function fillArray(r,t,o){var s=r,l=t;if(!(!s.push||!l.push)){var v=s.length,S=l.length;if(v!==S){var x=v>S;if(x)s.length=S;else for(var T=v;T<S;T++)s.push(o===1?l[T]:arraySlice.call(l[T]))}for(var A=s[0]&&s[0].length,T=0;T<s.length;T++)if(o===1)isNaN(s[T])&&(s[T]=l[T]);else for(var w=0;w<A;w++)isNaN(s[T][w])&&(s[T][w]=l[T][w])}}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,v=l.length,S=!1,x=VALUE_TYPE_UNKOWN,T=o;if(isArrayLike(o)){var A=guessArrayDim(o);x=A,(A===1&&!isNumber(o[0])||A===2&&!isNumber(o[0][0]))&&(S=!0)}else if(isNumber(o)&&!eqNaN(o))x=VALUE_TYPE_NUMBER;else if(isString(o))if(!isNaN(+o))x=VALUE_TYPE_NUMBER;else{var w=parse$1(o);w&&(T=w,x=VALUE_TYPE_COLOR)}else if(isGradientObject(o)){var E=extend({},T);E.colorStops=map$2(o.colorStops,function($){return{offset:$.offset,color:parse$1($.color)}}),isLinearGradient(o)?x=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(o)&&(x=VALUE_TYPE_RADIAL_GRADIENT),T=E}v===0?this.valType=x:(x!==this.valType||x===VALUE_TYPE_UNKOWN)&&(S=!0),this.discrete=this.discrete||S;var D={time:t,value:T,rawValue:o,percent:0};return s&&(D.easing=s,D.easingFunc=isFunction(s)?s:easingFuncs$1[s]||createCubicEasingFunc(s)),l.push(D),D},r.prototype.prepare=function(t,o){var s=this.keyframes;this._needsSort&&s.sort(function(z,F){return z.time-F.time});for(var l=this.valType,v=s.length,S=s[v-1],x=this.discrete,T=isArrayValueType(l),A=isGradientValueType(l),w=0;w<v;w++){var E=s[w],D=E.value,$=S.value;E.percent=E.time/t,x||(T&&w!==v-1?fillArray(D,$,l):A&&fillColorStops(D.colorStops,$.colorStops))}if(!x&&l!==VALUE_TYPE_RADIAL_GRADIENT&&o&&this.needsAnimate()&&o.needsAnimate()&&l===o.valType&&!o._finished){this._additiveTrack=o;for(var N=s[0].value,w=0;w<v;w++)l===VALUE_TYPE_NUMBER?s[w].additiveValue=s[w].value-N:l===VALUE_TYPE_COLOR?s[w].additiveValue=add1DArray([],s[w].value,N,-1):isArrayValueType(l)&&(s[w].additiveValue=l===VALUE_TYPE_1D_ARRAY?add1DArray([],s[w].value,N,-1):add2DArray([],s[w].value,N,-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",v=this.valType,S=this.keyframes,x=S.length,T=this.propName,A=v===VALUE_TYPE_COLOR,w,E=this._lastFr,D=Math.min,$,N;if(x===1)$=N=S[0];else{if(o<0)w=0;else if(o<this._lastFrP){var z=D(E+1,x-1);for(w=z;w>=0&&!(S[w].percent<=o);w--);w=D(w,x-2)}else{for(w=E;w<x&&!(S[w].percent>o);w++);w=D(w-1,x-2)}N=S[w+1],$=S[w]}if($&&N){this._lastFr=w,this._lastFrP=o;var F=N.percent-$.percent,B=F===0?1:D((o-$.percent)/F,1);N.easingFunc&&(B=N.easingFunc(B));var G=s?this._additiveValue:A?tmpRgba:t[T];if((isArrayValueType(v)||A)&&!G&&(G=this._additiveValue=[]),this.discrete)t[T]=B<1?$.rawValue:N.rawValue;else if(isArrayValueType(v))v===VALUE_TYPE_1D_ARRAY?interpolate1DArray(G,$[l],N[l],B):interpolate2DArray(G,$[l],N[l],B);else if(isGradientValueType(v)){var W=$[l],X=N[l],ee=v===VALUE_TYPE_LINEAR_GRADIENT;t[T]={type:ee?"linear":"radial",x:interpolateNumber$1(W.x,X.x,B),y:interpolateNumber$1(W.y,X.y,B),colorStops:map$2(W.colorStops,function(te,ie){var le=X.colorStops[ie];return{offset:interpolateNumber$1(te.offset,le.offset,B),color:rgba2String(interpolate1DArray([],te.color,le.color,B))}}),global:X.global},ee?(t[T].x2=interpolateNumber$1(W.x2,X.x2,B),t[T].y2=interpolateNumber$1(W.y2,X.y2,B)):t[T].r=interpolateNumber$1(W.r,X.r,B)}else if(A)interpolate1DArray(G,$[l],N[l],B),s||(t[T]=rgba2String(G));else{var Q=interpolateNumber$1($[l],N[l],B);s?this._additiveValue=Q:t[T]=Q}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 v=this._tracks,S=0;S<s.length;S++){var x=s[S],T=v[x];if(!T){T=v[x]=new Track(x);var A=void 0,w=this._getAdditiveTrack(x);if(w){var E=w.keyframes,D=E[E.length-1];A=D&&D.value,w.valType===VALUE_TYPE_COLOR&&A&&(A=rgba2String(A))}else A=this._target[x];if(A==null)continue;t>0&&T.addKeyframe(0,cloneValue(A),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 v=s[l].getTrack(t);v&&(o=v)}return o},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var o=this,s=[],l=this._maxTime||0,v=0;v<this._trackKeys.length;v++){var S=this._trackKeys[v],x=this._tracks[S],T=this._getAdditiveTrack(S),A=x.keyframes,w=A.length;if(x.prepare(l,T),x.needsAnimate())if(!this._allowDiscrete&&x.discrete){var E=A[w-1];E&&(o._target[x.propName]=E.rawValue),x.setFinished()}else s.push(x)}if(s.length||this._force){var D=new Clip$1({life:l,loop:this._loop,delay:this._delay||0,onframe:function($){o._started=2;var N=o._additiveAnimators;if(N){for(var z=!1,F=0;F<N.length;F++)if(N[F]._clip){z=!0;break}z||(o._additiveAnimators=null)}for(var F=0;F<s.length;F++)s[F].step(o._target,$);var B=o._onframeCbs;if(B)for(var F=0;F<B.length;F++)B[F](o._target,$)},ondestroy:function(){o._doneCallback()}});this._clip=D,this.animation&&this.animation.addClip(D),t&&D.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,v=0;v<t.length;v++){var S=s[t[v]];S&&!S.isFinished()&&(o?S.step(this._target,1):this._started===1&&S.step(this._target,0),S.setFinished())}for(var x=!0,v=0;v<l.length;v++)if(!s[l[v]].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 v=o[l],S=this._tracks[v];if(!(!S||S.isFinished())){var x=S.keyframes,T=x[s?0:x.length-1];T&&(t[v]=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],v=this._tracks[l];if(v){var S=v.keyframes;if(S.length>1){var x=S.pop();v.addKeyframe(x.time,t[l]),v.prepare(this._maxTime,v.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,v=this._head;v;){var S=v.next,x=v.step(s,l);x&&(v.ondestroy(),this.removeClip(v)),v=S}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$2(s),!o._paused&&o.update())}requestAnimationFrame$2(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 v=l.replace("mouse","pointer");return o.hasOwnProperty(v)?v: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(v){v=getNativeEvent(v),isLocalEl(r,v.target)||(v=normalizeGlobalEvent(r,v),t.domHandlers[s].call(r,v))}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,v=((scaleTmp[0]-s)*o+s)/scaleTmp[0]||0,S=((scaleTmp[1]-l)*o+l)/scaleTmp[1]||0;t[0]*=v,t[1]*=v,t[2]*=S,t[3]*=S}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]),v=Math.PI/2+l-Math.atan2(t[3],t[2]);s=Math.sqrt(s)*Math.cos(v),o=Math.sqrt(o),this.skewX=v,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,v=t.scaleX,S=t.scaleY,x=t.anchorX,T=t.anchorY,A=t.rotation||0,w=t.x,E=t.y,D=t.skewX?Math.tan(t.skewX):0,$=t.skewY?Math.tan(-t.skewY):0;if(s||l||x||T){var N=s+x,z=l+T;o[4]=-N*v-D*z*S,o[5]=-z*S-$*N*v}else o[4]=o[5]=0;return o[0]=v,o[3]=S,o[1]=$*v,o[2]=D*S,A&&rotate(o,o,A),o[4]+=s+w,o[5]+=l+E,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),v=getLineHeight(t),S=adjustTextX(0,l,o),x=adjustTextY(0,v,s),T=new BoundingRect$1(S,x,l,v);return T}function getBoundingRect(r,t,o,s){var l=((r||"")+"").split(`
`),v=l.length;if(v===1)return innerGetBoundingRect(l[0],t,o,s);for(var S=new BoundingRect$1(0,0,0,0),x=0;x<l.length;x++){var T=innerGetBoundingRect(l[x],t,o,s);x===0?S.copy(T):S.union(T)}return S}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,v=o.height,S=o.width,x=v/2,T=o.x,A=o.y,w="left",E="top";if(s instanceof Array)T+=parsePercent$1(s[0],o.width),A+=parsePercent$1(s[1],o.height),w=null,E=null;else switch(s){case"left":T-=l,A+=x,w="right",E="middle";break;case"right":T+=l+S,A+=x,E="middle";break;case"top":T+=S/2,A-=l,w="center",E="bottom";break;case"bottom":T+=S/2,A+=v+l,w="center";break;case"inside":T+=S/2,A+=x,w="center",E="middle";break;case"insideLeft":T+=l,A+=x,E="middle";break;case"insideRight":T+=S-l,A+=x,w="right",E="middle";break;case"insideTop":T+=S/2,A+=l,w="center";break;case"insideBottom":T+=S/2,A+=v-l,w="center",E="bottom";break;case"insideTopLeft":T+=l,A+=l;break;case"insideTopRight":T+=S-l,A+=l,w="right";break;case"insideBottomLeft":T+=l,A+=v-l,E="bottom";break;case"insideBottomRight":T+=S-l,A+=v-l,w="right",E="bottom";break}return r=r||{},r.x=T,r.y=A,r.align=w,r.verticalAlign=E,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,v=o.innerTransformable,S=void 0,x=void 0,T=!1;v.parent=l?this:null;var A=!1;if(v.copyTransform(o),s.position!=null){var w=tmpBoundingRect;s.layoutRect?w.copy(s.layoutRect):w.copy(this.getBoundingRect()),l||w.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,s,w):calculateTextPosition(tmpTextPosCalcRes,s,w),v.x=tmpTextPosCalcRes.x,v.y=tmpTextPosCalcRes.y,S=tmpTextPosCalcRes.align,x=tmpTextPosCalcRes.verticalAlign;var E=s.origin;if(E&&s.rotation!=null){var D=void 0,$=void 0;E==="center"?(D=w.width*.5,$=w.height*.5):(D=parsePercent$1(E[0],w.width),$=parsePercent$1(E[1],w.height)),A=!0,v.originX=-v.x+D+(l?0:w.x),v.originY=-v.y+$+(l?0:w.y)}}s.rotation!=null&&(v.rotation=s.rotation);var N=s.offset;N&&(v.x+=N[0],v.y+=N[1],A||(v.originX=-N[0],v.originY=-N[1]));var z=s.inside==null?typeof s.position=="string"&&s.position.indexOf("inside")>=0:s.inside,F=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),B=void 0,G=void 0,W=void 0;z&&this.canBeInsideText()?(B=s.insideFill,G=s.insideStroke,(B==null||B==="auto")&&(B=this.getInsideTextFill()),(G==null||G==="auto")&&(G=this.getInsideTextStroke(B),W=!0)):(B=s.outsideFill,G=s.outsideStroke,(B==null||B==="auto")&&(B=this.getOutsideFill()),(G==null||G==="auto")&&(G=this.getOutsideStroke(B),W=!0)),B=B||"#000",(B!==F.fill||G!==F.stroke||W!==F.autoStroke||S!==F.align||x!==F.verticalAlign)&&(T=!0,F.fill=B,F.stroke=G,F.autoStroke=W,F.align=S,F.verticalAlign=x,o.setDefaultTextStyle(F)),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],v=this.__zr.isDarkMode(),S=0;S<3;S++)s[S]=s[S]*l+(v?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),v=0;v<l.length;v++){var S=l[v];this.attrKV(S,t[S])}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],v=l.__fromStateTransition;if(!(l.getLoop()||v&&v!==PRESERVED_NORMAL_STATE)){var S=l.targetName,x=S?o[S]: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 v=s[l];t[v]!=null&&!(v in o)&&(o[v]=this[v])}},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 v=t===PRESERVED_NORMAL_STATE,S=this.hasState();if(!(!S&&v)){var x=this.currentStates,T=this.stateTransition;if(!(indexOf(x,t)>=0&&(o||x.length===1))){var A;if(this.stateProxy&&!v&&(A=this.stateProxy(t)),A||(A=this.states&&this.states[t]),!A&&!v){logError("State "+t+" not exists.");return}v||this.saveCurrentToNormalState(A);var w=!!(A&&A.hoverLayer||l);w&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,A,this._normalState,o,!s&&!this.__inHover&&T&&T.duration>0,T);var E=this._textContent,D=this._textGuide;return E&&E.useState(t,o,s,w),D&&D.useState(t,o,s,w),v?(this.currentStates=[],this._normalState={}):o?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!w&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),A}}},r.prototype.useStates=function(t,o,s){if(!t.length)this.clearStates();else{var l=[],v=this.currentStates,S=t.length,x=S===v.length;if(x){for(var T=0;T<S;T++)if(t[T]!==v[T]){x=!1;break}}if(x)return;for(var T=0;T<S;T++){var A=t[T],w=void 0;this.stateProxy&&(w=this.stateProxy(A,t)),w||(w=this.states[A]),w&&l.push(w)}var E=l[S-1],D=!!(E&&E.hoverLayer||s);D&&this._toggleHoverLayerFlag(!0);var $=this._mergeStates(l),N=this.stateTransition;this.saveCurrentToNormalState($),this._applyStateObj(t.join(","),$,this._normalState,!1,!o&&!this.__inHover&&N&&N.duration>0,N);var z=this._textContent,F=this._textGuide;z&&z.useStates(t,o,D),F&&F.useStates(t,o,D),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!D&&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(),v=indexOf(l,t),S=indexOf(l,o)>=0;v>=0?S?l.splice(v,1):l[v]=o:s&&!S&&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 v=t[l];extend(o,v),v.textConfig&&(s=s||{},extend(s,v.textConfig))}return s&&(o.textConfig=s),o},r.prototype._applyStateObj=function(t,o,s,l,v,S){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={},A=!1,w=0;w<PRIMARY_STATES_KEYS$1.length;w++){var E=PRIMARY_STATES_KEYS$1[w],D=v&&DEFAULT_ANIMATABLE_MAP[E];o&&o[E]!=null?D?(A=!0,T[E]=o[E]):this[E]=o[E]:x&&s[E]!=null&&(D?(A=!0,T[E]=s[E]):this[E]=s[E])}if(!v)for(var w=0;w<this.animators.length;w++){var $=this.animators[w],N=$.targetName;$.getLoop()||$.__changeFinalValue(N?(o||s)[N]:o||s)}A&&this._transitionState(t,T,S)},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,v=new Animator$1(l,o,s);return t&&(v.targetName=t),this.addAnimator(v,t),v},r.prototype.addAnimator=function(t,o){var s=this.__zr,l=this;t.during(function(){l.updateDuringAnimation(o)}).done(function(){var v=l.animators,S=indexOf(v,t);S>=0&&v.splice(S,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,v=[],S=0;S<l;S++){var x=s[S];!t||t===x.scope?x.stop(o):v.push(x)}return this.animators=v,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 v=animateTo(this,o,s,l),S=0;S<v.length;S++)v[S].__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,v,S){Object.defineProperty(t,s,{get:function(){if(!this[l]){var T=this[l]=[];x(this,T)}return this[l]},set:function(T){this[v]=T[0],this[S]=T[1],this[l]=T,x(this,T)}});function x(T,A){Object.defineProperty(A,0,{get:function(){return T[v]},set:function(w){T[v]=w}}),Object.defineProperty(A,1,{get:function(){return T[S]},set:function(w){T[S]=w}})}}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 v=[];animateToShallow(r,"",r,t,o,s,v,l);var S=v.length,x=!1,T=o.done,A=o.aborted,w=function(){x=!0,S--,S<=0&&(x?T&&T():A&&A())},E=function(){S--,S<=0&&(x?T&&T():A&&A())};S||T&&T(),v.length>0&&o.during&&v[0].during(function(N,z){o.during(z)});for(var D=0;D<v.length;D++){var $=v[D];w&&$.done(w),E&&$.aborted(E),o.force&&$.duration(o.duration),$.start(o.easing)}return v}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],v=r[o],S=l.length;if(is2DArray(l))for(var x=l[0].length,T=0;T<S;T++)v[T]?copyArrShallow(v[T],l[T],x):v[T]=Array.prototype.slice.call(l[T]);else copyArrShallow(v,l,S);v.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,v,S,x){for(var T=keys(s),A=l.duration,w=l.delay,E=l.additive,D=l.setToFinal,$=!isObject$3(v),N=r.animators,z=[],F=0;F<T.length;F++){var B=T[F],G=s[B];if(G!=null&&o[B]!=null&&($||v[B]))if(isObject$3(G)&&!isArrayLike(G)&&!isGradientObject(G)){if(t){x||(o[B]=G,r.updateDuringAnimation(t));continue}animateToShallow(r,B,o[B],G,l,v&&v[B],S,x)}else z.push(B);else x||(o[B]=G,r.updateDuringAnimation(t),z.push(B))}var W=z.length;if(!E&&W)for(var X=0;X<N.length;X++){var ee=N[X];if(ee.targetName===t){var Q=ee.stopTracks(z);if(Q){var te=indexOf(N,ee);N.splice(te,1)}}}if(l.force||(z=filter(z,function(ue){return!isValueSame(s[ue],o[ue])}),W=z.length),W>0||l.force&&!S.length){var ie=void 0,le=void 0,pe=void 0;if(x){le={},D&&(ie={});for(var X=0;X<W;X++){var B=z[X];le[B]=o[B],D?ie[B]=s[B]:o[B]=s[B]}}else if(D){pe={};for(var X=0;X<W;X++){var B=z[X];pe[B]=cloneValue(o[B]),copyValue(o,s,B)}}var ee=new Animator$1(o,!1,!1,E?filter(N,function(_e){return _e.targetName===t}):null);ee.targetName=t,l.scope&&(ee.scope=l.scope),D&&ie&&ee.whenWithKeys(0,ie,z),pe&&ee.whenWithKeys(0,pe,z),ee.whenWithKeys(A??500,x?le:s,z).delay(w||0),r.addAnimator(ee,t),S.push(ee)}}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,v=l.indexOf(s);v>=0&&(l.splice(v,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,v=l[s];if(o&&o!==this&&o.parent!==this&&o!==v){l[s]=o,v.parent=null;var S=this.__zr;S&&v.removeSelfFromZr(S),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,v=indexOf(l,o);return v<0?this:(l.splice(v,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 v=o[l];s&&v.removeSelfFromZr(s),v.parent=null}return o.length=0,this},t.prototype.eachChild=function(o,s){for(var l=this._children,v=0;v<l.length;v++){var S=l[v];o.call(s,S,v)}return this},t.prototype.traverse=function(o,s){for(var l=0;l<this._children.length;l++){var v=this._children[l],S=o.call(s,v);v.isGroup&&!S&&v.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,v=[],S=null,x=0;x<l.length;x++){var T=l[x];if(!(T.ignore||T.invisible)){var A=T.getBoundingRect(),w=T.getLocalTransform(v);w?(BoundingRect$1.applyTransform(s,A,w),S=S||s.clone(),S.union(s)):(S=S||A.clone(),S.union(A))}}return S||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 v=new Storage$1,S=s.renderer||"canvas";painterCtors[S]||(S=keys(painterCtors)[0]),s.useDirtyRect=s.useDirtyRect==null?!1:s.useDirtyRect;var x=new painterCtors[S](o,v,s,t),T=s.ssr||x.ssrOnly;this.storage=v,this.painter=x;var A=!env$1.node&&!env$1.worker&&!T?new HandlerProxy(x.getViewportRoot(),x.root):null,w=s.useCoarsePointer,E=w==null||w==="auto"?env$1.touchEventsSupported:!!w,D=44,$;E&&($=retrieve2(s.pointerSize,D)),this.handler=new Handler$1(v,x,A,x.root,$),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],v=t[1],S=o[0],x=o[1],T=v-l,A=x-S;if(T===0)return A===0?S:(S+x)/2;if(s)if(T>0){if(r<=l)return S;if(r>=v)return x}else{if(r>=l)return S;if(r<=v)return x}else{if(r===l)return S;if(r===v)return x}return(r-l)/T*A+S}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,v=t.indexOf("."),S=v<0?0:l-1-v;return Math.max(0,S-s)}function getPixelPrecision(r,t){var o=Math.log,s=Math.LN10,l=Math.floor(o(r[1]-r[0])/s),v=Math.round(o(Math.abs(t[1]-t[0]))/s),S=Math.min(Math.max(-l+v,0),20);return isFinite(S)?S: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($,N){return $+(isNaN(N)?0:N)},0);if(o===0)return[];for(var s=Math.pow(10,t),l=map$2(r,function($){return(isNaN($)?0:$)/o*s*100}),v=s*100,S=map$2(l,function($){return Math.floor($)}),x=reduce(S,function($,N){return $+N},0),T=map$2(l,function($,N){return $-S[N]});x<v;){for(var A=Number.NEGATIVE_INFINITY,w=null,E=0,D=T.length;E<D;++E)T[E]>A&&(A=T[E],w=E);++S[w],T[w]=0,++x}return map$2(S,function($){return $/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,v;return t?l<1.5?v=1:l<2.5?v=2:l<4?v=3:l<7?v=5:v=10:l<1?v=1:l<2?v=2:l<3?v=3:l<5?v=5:v=10,r=v*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],v=o-s;return v?l+v*(r[s]-l):l}function reformIntervals(r){r.sort(function(T,A){return x(T,A,0)?-1:1});for(var t=-1/0,o=1,s=0;s<r.length;){for(var l=r[s].interval,v=r[s].close,S=0;S<2;S++)l[S]<=t&&(l[S]=t,v[S]=S?1:1-o),t=l[S],o=v[S];l[0]===l[1]&&v[0]*v[1]!==1?r.splice(s,1):s++}return r;function x(T,A,w){return T.interval[w]<A.interval[w]||T.interval[w]===A.interval[w]&&(T.close[w]-A.close[w]===(w?-1:1)||!w&&x(T,A,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 v=o[s];!r.emphasis[t].hasOwnProperty(v)&&r[t].hasOwnProperty(v)&&(r.emphasis[t][v]=r[t][v])}}}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",v=o==="replaceAll";r=r||[],t=(t||[]).slice();var S=createHashMap();each$c(t,function(T,A){if(!isObject$3(T)){t[A]=null;return}});var x=prepareResult(r,S,o);return(s||l)&&mappingById(x,r,S,t),s&&mappingByName(x,t),s||l?mappingByIndex(x,t,l):v&&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 v=r[l];v&&v.id!=null&&t.set(v.id,l),s.push({existing:o==="replaceMerge"||isComponentIdInternal(v)?null:v,newOption:null,keyInfo:null,brandNew:null})}return s}function mappingById(r,t,o,s){each$c(s,function(l,v){if(!(!l||l.id==null)){var S=makeComparableKey(l.id),x=o.get(S);if(x!=null){var T=r[x];assert(!T.newOption,'Duplicated option on id "'+S+'".'),T.newOption=l,T.existing=t[x],s[v]=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 v=r[l].existing;if(!r[l].newOption&&v&&(v.id==null||o.id==null)&&!isComponentIdInternal(o)&&!isComponentIdInternal(v)&&keyExistAndEqual("name",v,o)){r[l].newOption=o,t[s]=null;return}}})}function mappingByIndex(r,t,o){each$c(t,function(s){if(s){for(var l,v=0;(l=r[v])&&(l.newOption||isComponentIdInternal(l.existing)||l.existing&&s.id!=null&&!keyExistAndEqual("id",s,l.existing));)v++;l?(l.newOption=s,l.brandNew=o):r.push({newOption:s,brandNew:o,existing:null,keyInfo:null}),v++}})}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,v=o.newOption,S=o.keyInfo;if(isObject$3(v)){if(S.name=v.name!=null?makeComparableKey(v.name):l?l.name:DUMMY_COMPONENT_NAME_PREFIX+s,l)S.id=makeComparableKey(l.id);else if(v.id!=null)S.id=makeComparableKey(v.id);else{var x=0;do S.id="\0"+S.name+"\0"+x++;while(t.get(S.id))}t.set(S.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),[v(o),v(s)];function l(S,x,T){for(var A=0,w=S.length;A<w;A++){var E=convertOptionIdName(S[A].seriesId,null);if(E==null)return;for(var D=normalizeToArray(S[A].dataIndex),$=T&&T[E],N=0,z=D.length;N<z;N++){var F=D[N];$&&$[F]?$[F]=null:(x[E]||(x[E]={}))[F]=1}}}function v(S,x){var T=[];for(var A in S)if(S.hasOwnProperty(A)&&S[A]!=null)if(x)T.push(+A);else{var w=v(S[A],!0);w.length&&T.push({seriesId:A,dataIndex:w})}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,v=s.queryOptionMap,S=s.others,x=S,T=o?o.defaultMainType:null;return!l&&T&&v.set(T,{}),v.each(function(A,w){var E=queryReferringComponents(r,w,A,{useDefault:T===w,enableAll:o&&o.enableAll!=null?o.enableAll:!0,enableNone:o&&o.enableNone!=null?o.enableNone:!0});x[w+"Models"]=E.models,x[w+"Model"]=E.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(),v={},S=!1;return each$c(o,function(x,T){if(T==="dataIndex"||T==="dataIndexInside"){v[T]=x;return}var A=T.match(/^(\w+)(Index|Id|Name)$/)||[],w=A[1],E=(A[2]||"").toLowerCase();if(!(!w||!E||t&&t.includeMainTypes&&indexOf(t.includeMainTypes,w)<0)){S=S||!!w;var D=l.get(w)||l.set(w,{});D[E]=x}}),{mainTypeSpecified:S,queryOptionMap:l,others:v}}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,v=o.id,S=o.name,x={models:null,specified:l!=null||v!=null||S!=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=v=S=null),x.models=r.queryComponents({mainType:t,index:l,id:v,name:S}),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 v=t==null||t==="auto";if(s==null)return s;if(isNumber(s)){var S=interpolateNumber(o||0,s,l);return round$1(S,v?Math.max(getPrecision(o||0),getPrecision(s)):t)}else{if(isString(s))return l<1?o:s;for(var x=[],T=o,A=s,w=Math.max(T?T.length:0,A.length),E=0;E<w;++E){var D=r.getDimensionInfo(E);if(D&&D.type==="ordinal")x[E]=(l<1&&T?T:A)[E];else{var $=T&&T[E]?T[E]:0,N=A[E],S=interpolateNumber($,N,l);x[E]=round$1(S,v?Math.max(getPrecision($),getPrecision(N)):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(v){__extends(S,v);function S(){return v.apply(this,arguments)||this}return S}(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 v=parseClassType(l);if(!v.sub)t[v.main]=s;else if(v.sub!==IS_CONTAINER){var S=o(v);S[v.sub]=s}}return s},r.getClass=function(s,l,v){var S=t[s];if(S&&S[IS_CONTAINER]&&(S=l?S[l]:null),v&&!S)throw new Error(l?"Component "+s+"."+(l||"")+" is used but not imported.":s+".type should be specified.");return S},r.getClassesByMainType=function(s){var l=parseClassType(s),v=[],S=t[l.main];return S&&S[IS_CONTAINER]?each$c(S,function(x,T){T!==IS_CONTAINER&&v.push(x)}):v.push(S),v},r.hasClass=function(s){var l=parseClassType(s);return!!t[l.main]},r.getAllClassMainTypes=function(){var s=[];return each$c(t,function(l,v){s.push(v)}),s},r.hasSubTypes=function(s){var l=parseClassType(s),v=t[l.main];return v&&v[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,v){for(var S={},x=0;x<r.length;x++){var T=r[x][1];if(!(l&&indexOf(l,T)>=0||v&&indexOf(v,T)<0)){var A=s.getShallow(T,t);A!=null&&(S[r[x][0]]=A)}}return S}}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 v=globalImageCache.get(r),S={hostEl:o,cb:s,cbPayload:l};return v?(t=v.image,!isImageReady(t)&&v.pending.push(S)):(t=platformApi.loadImage(r,imageOnLoad,imageOnLoad),t.__zrImageSrc=r,globalImageCache.put(r,t.__cachedImgObj={image:t,pending:[S]})),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 v=(r+"").split(`
`);l=prepareTruncateOptions(t,o,s,l);for(var S=0,x=v.length;S<x;S++)v[S]=truncateSingleLine(v[S],l);return v.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 v=l.minChar=retrieve2(s.minChar,0);l.cnCharWidth=getWidth("国",t);var S=l.ascCharWidth=getWidth("a",t);l.placeholder=retrieve2(s.placeholder,"");for(var x=r=Math.max(0,r-1),T=0;T<v&&x>=S;T++)x-=S;var A=getWidth(o,t);return A>x&&(o="",A=0),x=r-A,l.ellipsis=o,l.ellipsisWidth=A,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 v=getWidth(r,s);if(v<=o)return r;for(var S=0;;S++){if(v<=l||S>=t.maxIterations){r+=t.ellipsis;break}var x=S===0?estimateLength(r,l,t.ascCharWidth,t.cnCharWidth):v>0?Math.floor(r.length*l/v):0;r=r.substr(0,x),v=getWidth(r,s)}return r===""&&(r=t.placeholder),r}function estimateLength(r,t,o,s){for(var l=0,v=0,S=r.length;v<S&&l<t;v++){var x=r.charCodeAt(v);l+=0<=x&&x<=127?o:s}return v}function parsePlainText(r,t){r!=null&&(r+="");var o=t.overflow,s=t.padding,l=t.font,v=o==="truncate",S=getLineHeight(l),x=retrieve2(t.lineHeight,S),T=!!t.backgroundColor,A=t.lineOverflow==="truncate",w=t.width,E;w!=null&&(o==="break"||o==="breakAll")?E=r?wrapText(r,t.font,w,o==="breakAll",0).lines:[]:E=r?r.split(`
`):[];var D=E.length*x,$=retrieve2(t.height,D);if(D>$&&A){var N=Math.floor($/x);E=E.slice(0,N)}if(r&&v&&w!=null)for(var z=prepareTruncateOptions(w,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),F=0;F<E.length;F++)E[F]=truncateSingleLine(E[F],z);for(var B=$,G=0,F=0;F<E.length;F++)G=Math.max(getWidth(E[F],l),G);w==null&&(w=G);var W=G;return s&&(B+=s[0]+s[2],W+=s[1]+s[3],w+=s[1]+s[3]),T&&(W=w),{lines:E,height:$,outerWidth:W,outerHeight:B,lineHeight:x,calculatedLineHeight:S,contentWidth:G,contentHeight:D,width:w}}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,v=t.overflow,S=(v==="break"||v==="breakAll")&&s!=null?{width:s,accumWidth:0,breakAll:v==="breakAll"}:null,x=STYLE_REG.lastIndex=0,T;(T=STYLE_REG.exec(r))!=null;){var A=T.index;A>x&&pushTokens(o,r.substring(x,A),t,S),pushTokens(o,T[2],t,S,T[1]),x=STYLE_REG.lastIndex}x<r.length&&pushTokens(o,r.substring(x,r.length),t,S);var w=[],E=0,D=0,$=t.padding,N=v==="truncate",z=t.lineOverflow==="truncate";function F(Pe,Ce,Re){Pe.width=Ce,Pe.lineHeight=Re,E+=Re,D=Math.max(D,Ce)}e:for(var B=0;B<o.lines.length;B++){for(var G=o.lines[B],W=0,X=0,ee=0;ee<G.tokens.length;ee++){var Q=G.tokens[ee],te=Q.styleName&&t.rich[Q.styleName]||{},ie=Q.textPadding=te.padding,le=ie?ie[1]+ie[3]:0,pe=Q.font=te.font||t.font;Q.contentHeight=getLineHeight(pe);var ue=retrieve2(te.height,Q.contentHeight);if(Q.innerHeight=ue,ie&&(ue+=ie[0]+ie[2]),Q.height=ue,Q.lineHeight=retrieve3(te.lineHeight,t.lineHeight,ue),Q.align=te&&te.align||t.align,Q.verticalAlign=te&&te.verticalAlign||"middle",z&&l!=null&&E+Q.lineHeight>l){ee>0?(G.tokens=G.tokens.slice(0,ee),F(G,X,W),o.lines=o.lines.slice(0,B+1)):o.lines=o.lines.slice(0,B);break e}var _e=te.width,xe=_e==null||_e==="auto";if(typeof _e=="string"&&_e.charAt(_e.length-1)==="%")Q.percentWidth=_e,w.push(Q),Q.contentWidth=getWidth(Q.text,pe);else{if(xe){var Te=te.backgroundColor,Ae=Te&&Te.image;Ae&&(Ae=findExistImage(Ae),isImageReady(Ae)&&(Q.width=Math.max(Q.width,Ae.width*ue/Ae.height)))}var we=N&&s!=null?s-X:null;we!=null&&we<Q.width?!xe||we<le?(Q.text="",Q.width=Q.contentWidth=0):(Q.text=truncateText(Q.text,we-le,pe,t.ellipsis,{minChar:t.truncateMinChar}),Q.width=Q.contentWidth=getWidth(Q.text,pe)):Q.contentWidth=getWidth(Q.text,pe)}Q.width+=le,X+=Q.width,te&&(W=Math.max(W,Q.lineHeight))}F(G,X,W)}o.outerWidth=o.width=retrieve2(s,D),o.outerHeight=o.height=retrieve2(l,E),o.contentHeight=E,o.contentWidth=D,$&&(o.outerWidth+=$[1]+$[3],o.outerHeight+=$[0]+$[2]);for(var B=0;B<w.length;B++){var Q=w[B],$e=Q.percentWidth;Q.width=parseInt($e,10)/100*o.width}return o}function pushTokens(r,t,o,s,l){var v=t==="",S=l&&o.rich[l]||{},x=r.lines,T=S.font||o.font,A=!1,w,E;if(s){var D=S.padding,$=D?D[1]+D[3]:0;if(S.width!=null&&S.width!=="auto"){var N=parsePercent$1(S.width,s.width)+$;x.length>0&&N+s.accumWidth>s.width&&(w=t.split(`
`),A=!0),s.accumWidth=N}else{var z=wrapText(t,T,s.width,s.breakAll,s.accumWidth);s.accumWidth=z.accumWidth+$,E=z.linesWidths,w=z.lines}}else w=t.split(`
`);for(var F=0;F<w.length;F++){var B=w[F],G=new RichTextToken;if(G.styleName=l,G.text=B,G.isLineHolder=!B&&!v,typeof S.width=="number"?G.width=S.width:G.width=E?E[F]:getWidth(B,T),!F&&!A){var W=(x[x.length-1]||(x[0]=new RichTextLine)).tokens,X=W.length;X===1&&W[0].isLineHolder?W[0]=G:(B||!X||v)&&W.push(G)}else x.push(new RichTextLine([G]))}}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 v=[],S=[],x="",T="",A=0,w=0,E=0;E<r.length;E++){var D=r.charAt(E);if(D===`
`){T&&(x+=T,w+=A),v.push(x),S.push(w),x="",T="",A=0,w=0;continue}var $=getWidth(D,t),N=s?!1:!isWordBreakChar(D);if(v.length?w+$>o:l+w+$>o){w?(x||T)&&(N?(x||(x=T,T="",A=0,w=A),v.push(x),S.push(w-A),T+=D,A+=$,x="",w=A):(T&&(x+=T,T="",A=0),v.push(x),S.push(w),x=D,w=$)):N?(v.push(T),S.push(A),T=D,A=$):(v.push(D),S.push($));continue}w+=$,N?(T+=D,A+=$):(T&&(x+=T,T="",A=0),x+=D)}return!v.length&&!x&&(x=r,T="",A=0),T&&(x+=T),x&&(v.push(x),S.push(w)),v.length===1&&(w+=l),{accumWidth:w,lines:v,linesWidths:S}}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 v=s[l];v==="style"?this.useStyle(o[v]):r.prototype.attrKV.call(this,v,o[v])}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,v){var S=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,o,s)||S&&!S[0]&&!S[3])return!1;if(l&&this.__clipPaths){for(var x=0;x<this.__clipPaths.length;++x)if(this.__clipPaths[x].isZeroArea())return!1}if(v&&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),v=this.getBoundingRect();return v.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(),v=this.style,S=v.shadowBlur||0,x=v.shadowOffsetX||0,T=v.shadowOffsetY||0;o=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),s?BoundingRect$1.applyTransform(o,l,s):o.copy(l),(S||x||T)&&(o.width+=S*2+Math.abs(x),o.height+=S*2+Math.abs(T),o.x=Math.min(o.x,o.x+x-S),o.y=Math.min(o.y,o.y+T-S));var A=this.dirtyRectTolerance;o.isZero()||(o.x=Math.floor(o.x-A),o.y=Math.floor(o.y-A),o.width=Math.ceil(o.width+1+A*2),o.height=Math.ceil(o.height+1+A*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,v,S,x){r.prototype._applyStateObj.call(this,o,s,l,v,S,x);var T=!(s&&v),A;if(s&&s.style?S?v?A=s.style:(A=this._mergeStyle(this.createStyle(),l.style),this._mergeStyle(A,s.style)):(A=this._mergeStyle(this.createStyle(),v?this.style:l.style),this._mergeStyle(A,s.style)):T&&(A=l.style),A)if(S){var w=this.style;if(this.style=this.createStyle(T?{}:w),T)for(var E=keys(w),D=0;D<E.length;D++){var $=E[D];$ in A&&(A[$]=A[$],this.style[$]=w[$])}for(var N=keys(A),D=0;D<N.length;D++){var $=N[D];this.style[$]=this.style[$]}this._transitionState(o,{style:A},x,this.getAnimationStyleProps())}else this.useStyle(A);for(var z=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,D=0;D<z.length;D++){var $=z[D];s&&s[$]!=null?this[$]=s[$]:T&&l[$]!=null&&(this[$]=l[$])}},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,v=0;v<o.length;v++){var S=o[v];S.style&&(l=l||{},this._mergeStyle(l,S.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,v){l[0]=mathMin$7(r,o),l[1]=mathMin$7(t,s),v[0]=mathMax$7(r,o),v[1]=mathMax$7(t,s)}var xDim=[],yDim=[];function fromCubic(r,t,o,s,l,v,S,x,T,A){var w=cubicExtrema,E=cubicAt,D=w(r,o,l,S,xDim);T[0]=1/0,T[1]=1/0,A[0]=-1/0,A[1]=-1/0;for(var $=0;$<D;$++){var N=E(r,o,l,S,xDim[$]);T[0]=mathMin$7(N,T[0]),A[0]=mathMax$7(N,A[0])}D=w(t,s,v,x,yDim);for(var $=0;$<D;$++){var z=E(t,s,v,x,yDim[$]);T[1]=mathMin$7(z,T[1]),A[1]=mathMax$7(z,A[1])}T[0]=mathMin$7(r,T[0]),A[0]=mathMax$7(r,A[0]),T[0]=mathMin$7(S,T[0]),A[0]=mathMax$7(S,A[0]),T[1]=mathMin$7(t,T[1]),A[1]=mathMax$7(t,A[1]),T[1]=mathMin$7(x,T[1]),A[1]=mathMax$7(x,A[1])}function fromQuadratic(r,t,o,s,l,v,S,x){var T=quadraticExtremum,A=quadraticAt,w=mathMax$7(mathMin$7(T(r,o,l),1),0),E=mathMax$7(mathMin$7(T(t,s,v),1),0),D=A(r,o,l,w),$=A(t,s,v,E);S[0]=mathMin$7(r,l,D),S[1]=mathMin$7(t,v,$),x[0]=mathMax$7(r,l,D),x[1]=mathMax$7(t,v,$)}function fromArc(r,t,o,s,l,v,S,x,T){var A=min$1,w=max$1,E=Math.abs(l-v);if(E%PI2$6<1e-4&&E>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(v)*o+r,end[1]=mathSin$3(v)*s+t,A(x,start,end),w(T,start,end),l=l%PI2$6,l<0&&(l=l+PI2$6),v=v%PI2$6,v<0&&(v=v+PI2$6),l>v&&!S?v+=PI2$6:l<v&&S&&(l+=PI2$6),S){var D=v;v=l,l=D}for(var $=0;$<v;$+=Math.PI/2)$>l&&(extremity[0]=mathCos$3($)*o+r,extremity[1]=mathSin$3($)*s+t,A(x,extremity,x),w(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),v=s>this._ux||l>this._uy;if(this.addData(CMD$2.L,t,o),this._ctx&&v&&this._ctx.lineTo(t,o),v)this._xi=t,this._yi=o,this._pendingPtDist=0;else{var S=s*s+l*l;S>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=o,this._pendingPtDist=S)}return this},r.prototype.bezierCurveTo=function(t,o,s,l,v,S){return this._drawPendingPt(),this.addData(CMD$2.C,t,o,s,l,v,S),this._ctx&&this._ctx.bezierCurveTo(t,o,s,l,v,S),this._xi=v,this._yi=S,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,v,S){this._drawPendingPt(),tmpAngles[0]=l,tmpAngles[1]=v,normalizeArcAngles(tmpAngles,S),l=tmpAngles[0],v=tmpAngles[1];var x=v-l;return this.addData(CMD$2.A,t,o,s,s,l,x,0,S?0:1),this._ctx&&this._ctx.arc(t,o,s,l,v,S),this._xi=mathCos$2(v)*s+t,this._yi=mathSin$2(v)*s+o,this},r.prototype.arcTo=function(t,o,s,l,v){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,o,s,l,v),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,v=0;v<o;v++)s+=t[v].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(l+s));for(var v=0;v<o;v++)for(var S=t[v].data,x=0;x<S.length;x++)this.data[l++]=S[x];this._len=l},r.prototype.addData=function(t,o,s,l,v,S,x,T,A){if(this._saveData){var w=this.data;this._len+arguments.length>w.length&&(this._expandData(),w=this.data);for(var E=0;E<arguments.length;E++)w[this._len++]=arguments[E]}},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,v=0,S;for(S=0;S<this._len;){var x=t[S++],T=S===1;switch(T&&(o=t[S],s=t[S+1],l=o,v=s),x){case CMD$2.M:o=l=t[S++],s=v=t[S++],min2[0]=l,min2[1]=v,max2[0]=l,max2[1]=v;break;case CMD$2.L:fromLine(o,s,t[S],t[S+1],min2,max2),o=t[S++],s=t[S++];break;case CMD$2.C:fromCubic(o,s,t[S++],t[S++],t[S++],t[S++],t[S],t[S+1],min2,max2),o=t[S++],s=t[S++];break;case CMD$2.Q:fromQuadratic(o,s,t[S++],t[S++],t[S],t[S+1],min2,max2),o=t[S++],s=t[S++];break;case CMD$2.A:var A=t[S++],w=t[S++],E=t[S++],D=t[S++],$=t[S++],N=t[S++]+$;S+=1;var z=!t[S++];T&&(l=mathCos$2($)*E+A,v=mathSin$2($)*D+w),fromArc(A,w,E,D,$,N,z,min2,max2),o=mathCos$2(N)*E+A,s=mathSin$2(N)*D+w;break;case CMD$2.R:l=o=t[S++],v=s=t[S++];var F=t[S++],B=t[S++];fromLine(l,v,l+F,v+B,min2,max2);break;case CMD$2.Z:o=l,s=v;break}min$1(min,min,min2),max$1(max,max,max2)}return S===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,v=0,S=0,x=0,T=0;this._pathSegLen||(this._pathSegLen=[]);for(var A=this._pathSegLen,w=0,E=0,D=0;D<o;){var $=t[D++],N=D===1;N&&(v=t[D],S=t[D+1],x=v,T=S);var z=-1;switch($){case CMD$2.M:v=x=t[D++],S=T=t[D++];break;case CMD$2.L:{var F=t[D++],B=t[D++],G=F-v,W=B-S;(mathAbs$1(G)>s||mathAbs$1(W)>l||D===o-1)&&(z=Math.sqrt(G*G+W*W),v=F,S=B);break}case CMD$2.C:{var X=t[D++],ee=t[D++],F=t[D++],B=t[D++],Q=t[D++],te=t[D++];z=cubicLength(v,S,X,ee,F,B,Q,te,10),v=Q,S=te;break}case CMD$2.Q:{var X=t[D++],ee=t[D++],F=t[D++],B=t[D++];z=quadraticLength(v,S,X,ee,F,B,10),v=F,S=B;break}case CMD$2.A:var ie=t[D++],le=t[D++],pe=t[D++],ue=t[D++],_e=t[D++],xe=t[D++],Te=xe+_e;D+=1,t[D++],N&&(x=mathCos$2(_e)*pe+ie,T=mathSin$2(_e)*ue+le),z=mathMax$6(pe,ue)*mathMin$6(PI2$5,Math.abs(xe)),v=mathCos$2(Te)*pe+ie,S=mathSin$2(Te)*ue+le;break;case CMD$2.R:{x=v=t[D++],T=S=t[D++];var Ae=t[D++],we=t[D++];z=Ae*2+we*2;break}case CMD$2.Z:{var G=x-v,W=T-S;z=Math.sqrt(G*G+W*W),v=x,S=T;break}}z>=0&&(A[E++]=z,w+=z)}return this._pathLen=w,w},r.prototype.rebuildPath=function(t,o){var s=this.data,l=this._ux,v=this._uy,S=this._len,x,T,A,w,E,D,$=o<1,N,z,F=0,B=0,G,W=0,X,ee;if(!($&&(this._pathSegLen||this._calculateLength(),N=this._pathSegLen,z=this._pathLen,G=o*z,!G)))e:for(var Q=0;Q<S;){var te=s[Q++],ie=Q===1;switch(ie&&(A=s[Q],w=s[Q+1],x=A,T=w),te!==CMD$2.L&&W>0&&(t.lineTo(X,ee),W=0),te){case CMD$2.M:x=A=s[Q++],T=w=s[Q++],t.moveTo(A,w);break;case CMD$2.L:{E=s[Q++],D=s[Q++];var le=mathAbs$1(E-A),pe=mathAbs$1(D-w);if(le>l||pe>v){if($){var ue=N[B++];if(F+ue>G){var _e=(G-F)/ue;t.lineTo(A*(1-_e)+E*_e,w*(1-_e)+D*_e);break e}F+=ue}t.lineTo(E,D),A=E,w=D,W=0}else{var xe=le*le+pe*pe;xe>W&&(X=E,ee=D,W=xe)}break}case CMD$2.C:{var Te=s[Q++],Ae=s[Q++],we=s[Q++],$e=s[Q++],Pe=s[Q++],Ce=s[Q++];if($){var ue=N[B++];if(F+ue>G){var _e=(G-F)/ue;cubicSubdivide(A,Te,we,Pe,_e,tmpOutX),cubicSubdivide(w,Ae,$e,Ce,_e,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}F+=ue}t.bezierCurveTo(Te,Ae,we,$e,Pe,Ce),A=Pe,w=Ce;break}case CMD$2.Q:{var Te=s[Q++],Ae=s[Q++],we=s[Q++],$e=s[Q++];if($){var ue=N[B++];if(F+ue>G){var _e=(G-F)/ue;quadraticSubdivide(A,Te,we,_e,tmpOutX),quadraticSubdivide(w,Ae,$e,_e,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}F+=ue}t.quadraticCurveTo(Te,Ae,we,$e),A=we,w=$e;break}case CMD$2.A:var Re=s[Q++],Ye=s[Q++],We=s[Q++],qe=s[Q++],Qe=s[Q++],ht=s[Q++],st=s[Q++],Tt=!s[Q++],yt=We>qe?We:qe,Me=mathAbs$1(We-qe)>.001,Be=Qe+ht,De=!1;if($){var ue=N[B++];F+ue>G&&(Be=Qe+ht*(G-F)/ue,De=!0),F+=ue}if(Me&&t.ellipse?t.ellipse(Re,Ye,We,qe,st,Qe,Be,Tt):t.arc(Re,Ye,yt,Qe,Be,Tt),De)break e;ie&&(x=mathCos$2(Qe)*We+Re,T=mathSin$2(Qe)*qe+Ye),A=mathCos$2(Be)*We+Re,w=mathSin$2(Be)*qe+Ye;break;case CMD$2.R:x=A=s[Q],T=w=s[Q+1],E=s[Q++],D=s[Q++];var Ue=s[Q++],xt=s[Q++];if($){var ue=N[B++];if(F+ue>G){var ft=G-F;t.moveTo(E,D),t.lineTo(E+mathMin$6(ft,Ue),D),ft-=Ue,ft>0&&t.lineTo(E+Ue,D+mathMin$6(ft,xt)),ft-=xt,ft>0&&t.lineTo(E+mathMax$6(Ue-ft,0),D+xt),ft-=Ue,ft>0&&t.lineTo(E,D+mathMax$6(xt-ft,0));break e}F+=ue}t.rect(E,D,Ue,xt);break;case CMD$2.Z:if($){var ue=N[B++];if(F+ue>G){var _e=(G-F)/ue;t.lineTo(A*(1-_e)+x*_e,w*(1-_e)+T*_e);break e}F+=ue}t.closePath(),A=x,w=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,v,S){if(l===0)return!1;var x=l,T=0,A=r;if(S>t+x&&S>s+x||S<t-x&&S<s-x||v>r+x&&v>o+x||v<r-x&&v<o-x)return!1;if(r!==o)T=(t-s)/(r-o),A=(r*s-o*t)/(r-o);else return Math.abs(v-r)<=x/2;var w=T*v-S+A,E=w*w/(T*T+1);return E<=x/2*x/2}function containStroke$3(r,t,o,s,l,v,S,x,T,A,w){if(T===0)return!1;var E=T;if(w>t+E&&w>s+E&&w>v+E&&w>x+E||w<t-E&&w<s-E&&w<v-E&&w<x-E||A>r+E&&A>o+E&&A>l+E&&A>S+E||A<r-E&&A<o-E&&A<l-E&&A<S-E)return!1;var D=cubicProjectPoint(r,t,o,s,l,v,S,x,A,w,null);return D<=E/2}function containStroke$2(r,t,o,s,l,v,S,x,T){if(S===0)return!1;var A=S;if(T>t+A&&T>s+A&&T>v+A||T<t-A&&T<s-A&&T<v-A||x>r+A&&x>o+A&&x>l+A||x<r-A&&x<o-A&&x<l-A)return!1;var w=quadraticProjectPoint(r,t,o,s,l,v,x,T,null);return w<=A/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,v,S,x,T){if(S===0)return!1;var A=S;x-=r,T-=t;var w=Math.sqrt(x*x+T*T);if(w-A>o||w+A<o)return!1;if(Math.abs(s-l)%PI2$3<1e-4)return!0;if(v){var E=s;s=normalizeRadian(l),l=normalizeRadian(E)}else s=normalizeRadian(s),l=normalizeRadian(l);s>l&&(l+=PI2$3);var D=Math.atan2(T,x);return D<0&&(D+=PI2$3),D>=s&&D<=l||D+PI2$3>=s&&D+PI2$3<=l}function windingLine(r,t,o,s,l,v){if(v>t&&v>s||v<t&&v<s||s===t)return 0;var S=(v-t)/(s-t),x=s<t?1:-1;(S===1||S===0)&&(x=s<t?.5:-.5);var T=S*(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,v,S,x,T,A){if(A>t&&A>s&&A>v&&A>x||A<t&&A<s&&A<v&&A<x)return 0;var w=cubicRootAt(t,s,v,x,A,roots);if(w===0)return 0;for(var E=0,D=-1,$=void 0,N=void 0,z=0;z<w;z++){var F=roots[z],B=F===0||F===1?.5:1,G=cubicAt(r,o,l,S,F);G<T||(D<0&&(D=cubicExtrema(t,s,v,x,extrema),extrema[1]<extrema[0]&&D>1&&swapExtrema(),$=cubicAt(t,s,v,x,extrema[0]),D>1&&(N=cubicAt(t,s,v,x,extrema[1]))),D===2?F<extrema[0]?E+=$<t?B:-B:F<extrema[1]?E+=N<$?B:-B:E+=x<N?B:-B:F<extrema[0]?E+=$<t?B:-B:E+=x<$?B:-B)}return E}function windingQuadratic(r,t,o,s,l,v,S,x){if(x>t&&x>s&&x>v||x<t&&x<s&&x<v)return 0;var T=quadraticRootAt(t,s,v,x,roots);if(T===0)return 0;var A=quadraticExtremum(t,s,v);if(A>=0&&A<=1){for(var w=0,E=quadraticAt(t,s,v,A),D=0;D<T;D++){var $=roots[D]===0||roots[D]===1?.5:1,N=quadraticAt(r,o,l,roots[D]);N<S||(roots[D]<A?w+=E<t?$:-$:w+=v<E?$:-$)}return w}else{var $=roots[0]===0||roots[0]===1?.5:1,N=quadraticAt(r,o,l,roots[0]);return N<S?0:v<t?$:-$}}function windingArc(r,t,o,s,l,v,S,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 A=Math.abs(s-l);if(A<1e-4)return 0;if(A>=PI2$2-1e-4){s=0,l=PI2$2;var w=v?1:-1;return S>=roots[0]+r&&S<=roots[1]+r?w:0}if(s>l){var E=s;s=l,l=E}s<0&&(s+=PI2$2,l+=PI2$2);for(var D=0,$=0;$<2;$++){var N=roots[$];if(N+r>S){var z=Math.atan2(x,N),w=v?1:-1;z<0&&(z=PI2$2+z),(z>=s&&z<=l||z+PI2$2>=s&&z+PI2$2<=l)&&(z>Math.PI/2&&z<Math.PI*1.5&&(w=-w),D+=w)}}return D}function containPath(r,t,o,s,l){for(var v=r.data,S=r.len(),x=0,T=0,A=0,w=0,E=0,D,$,N=0;N<S;){var z=v[N++],F=N===1;switch(z===CMD$1.M&&N>1&&(o||(x+=windingLine(T,A,w,E,s,l))),F&&(T=v[N],A=v[N+1],w=T,E=A),z){case CMD$1.M:w=v[N++],E=v[N++],T=w,A=E;break;case CMD$1.L:if(o){if(containStroke$4(T,A,v[N],v[N+1],t,s,l))return!0}else x+=windingLine(T,A,v[N],v[N+1],s,l)||0;T=v[N++],A=v[N++];break;case CMD$1.C:if(o){if(containStroke$3(T,A,v[N++],v[N++],v[N++],v[N++],v[N],v[N+1],t,s,l))return!0}else x+=windingCubic(T,A,v[N++],v[N++],v[N++],v[N++],v[N],v[N+1],s,l)||0;T=v[N++],A=v[N++];break;case CMD$1.Q:if(o){if(containStroke$2(T,A,v[N++],v[N++],v[N],v[N+1],t,s,l))return!0}else x+=windingQuadratic(T,A,v[N++],v[N++],v[N],v[N+1],s,l)||0;T=v[N++],A=v[N++];break;case CMD$1.A:var B=v[N++],G=v[N++],W=v[N++],X=v[N++],ee=v[N++],Q=v[N++];N+=1;var te=!!(1-v[N++]);D=Math.cos(ee)*W+B,$=Math.sin(ee)*X+G,F?(w=D,E=$):x+=windingLine(T,A,D,$,s,l);var ie=(s-B)*X/W+B;if(o){if(containStroke$1(B,G,X,ee,ee+Q,te,t,ie,l))return!0}else x+=windingArc(B,G,X,ee,ee+Q,te,ie,l);T=Math.cos(ee+Q)*W+B,A=Math.sin(ee+Q)*X+G;break;case CMD$1.R:w=T=v[N++],E=A=v[N++];var le=v[N++],pe=v[N++];if(D=w+le,$=E+pe,o){if(containStroke$4(w,E,D,E,t,s,l)||containStroke$4(D,E,D,$,t,s,l)||containStroke$4(D,$,w,$,t,s,l)||containStroke$4(w,$,w,E,t,s,l))return!0}else x+=windingLine(D,E,D,$,s,l),x+=windingLine(w,$,w,E,s,l);break;case CMD$1.Z:if(o){if(containStroke$4(T,A,w,E,t,s,l))return!0}else x+=windingLine(T,A,w,E,s,l);T=w,A=E;break}}return!o&&!isAroundEqual$1(A,E)&&(x+=windingLine(T,A,w,E,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 v=l.style;for(var S in s)v[S]!==s[S]&&(v[S]=s[S]);v.fill=s.fill?s.decal:null,v.decal=null,v.shadowColor=null,s.strokeFirst&&(v.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 v=0;v<s.length;v++){var S=s[v],x=o[S];S==="style"?this.style?extend(this.style,x):this.useStyle(x):S==="shape"?extend(this.shape,x):r.prototype.attrKV.call(this,S,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,v=!!(l&&l.isDarkMode()),S=lum(o,0)<DARK_MODE_THRESHOLD;if(v===S)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 v=!1;this.path||(v=!0,this.createPathProxy());var S=this.path;(v||this.__dirty&SHAPE_CHANGED_BIT)&&(S.beginPath(),this.buildPath(S,this.shape,!1),this.pathUpdated()),o=S.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,A=s.lineWidth;if(!this.hasFill()){var w=this.strokeContainThreshold;A=Math.max(A,w??4)}T>1e-10&&(x.width+=A/T,x.height+=A/T,x.x-=A/T/2,x.y-=A/T/2)}return x}return o},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),v=this.getBoundingRect(),S=this.style;if(o=l[0],s=l[1],v.contain(o,s)){var x=this.path;if(this.hasStroke()){var T=S.lineWidth,A=S.strokeNoScale?this.getLineScale():1;if(A>1e-10&&(this.hasFill()||(T=Math.max(T,this.strokeContainThreshold)),containStroke(x,T/A,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,v,S,x){r.prototype._applyStateObj.call(this,o,s,l,v,S,x);var T=!(s&&v),A;if(s&&s.shape?S?v?A=s.shape:(A=extend({},l.shape),extend(A,s.shape)):(A=extend({},v?this.shape:l.shape),extend(A,s.shape)):T&&(A=l.shape),A)if(S){this.shape=extend({},this.shape);for(var w={},E=keys(A),D=0;D<E.length;D++){var $=E[D];typeof A[$]=="object"?this.shape[$]=A[$]:w[$]=A[$]}this._transitionState(o,{shape:w},x)}else this.shape=A,this.dirtyShape()},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,v=0;v<o.length;v++){var S=o[v];S.shape&&(l=l||{},this._mergeStyle(l,S.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(v){__extends(S,v);function S(x){var T=v.call(this,x)||this;return o.init&&o.init.call(T,x),T}return S.prototype.getDefaultStyle=function(){return clone$3(o.style)},S.prototype.getDefaultShape=function(){return clone$3(o.shape)},S}(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 v=o.lineWidth;l.x-=v/2,l.y-=v/2,l.width+=v,l.height+=v}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 v=isImageLike(s.image)?s.image:this.__image;if(!v)return 0;var S=o==="width"?"height":"width",x=s[S];return x==null?v[o]:v[o]/v[S]*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,v=t.height,S=t.r,x,T,A,w;l<0&&(o=o+l,l=-l),v<0&&(s=s+v,v=-v),typeof S=="number"?x=T=A=w=S:S instanceof Array?S.length===1?x=T=A=w=S[0]:S.length===2?(x=A=S[0],T=w=S[1]):S.length===3?(x=S[0],T=w=S[1],A=S[2]):(x=S[0],T=S[1],A=S[2],w=S[3]):x=T=A=w=0;var E;x+T>l&&(E=x+T,x*=l/E,T*=l/E),A+w>l&&(E=A+w,A*=l/E,w*=l/E),T+A>v&&(E=T+A,T*=v/E,A*=v/E),x+w>v&&(E=x+w,x*=v/E,w*=v/E),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+v-A),A!==0&&r.arc(o+l-A,s+v-A,A,0,Math.PI/2),r.lineTo(o+w,s+v),w!==0&&r.arc(o+w,s+v-w,w,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,v=t.y1,S=t.y2;r.x1=s,r.x2=l,r.y1=v,r.y2=S;var x=o&&o.lineWidth;return x&&(round(s*2)===round(l*2)&&(r.x1=r.x2=subPixelOptimize$1(s,x,!0)),round(v*2)===round(S*2)&&(r.y1=r.y2=subPixelOptimize$1(v,x,!0))),r}}function subPixelOptimizeRect$1(r,t,o){if(t){var s=t.x,l=t.y,v=t.width,S=t.height;r.x=s,r.y=l,r.width=v,r.height=S;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+v,x,!1)-r.x,v===0?0:1),r.height=Math.max(subPixelOptimize$1(l+S,x,!1)-r.y,S===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,v,S,x;if(this.subPixelOptimize){var T=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,s,this.style);l=T.x,v=T.y,S=T.width,x=T.height,T.r=s.r,s=T}else l=s.x,v=s.y,S=s.width,x=s.height;s.r?buildPath$2(o,s):o.rect(l,v,S,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=[],v=null,S=0;S<s.length;S++){var x=s[S],T=x.getBoundingRect(),A=x.getLocalTransform(l);A?(o.copy(T),o.applyTransform(A),v=v||o.clone(),v.union(o)):(v=v||T.clone(),v.union(T))}this._rect=v||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,v=o.rich||l&&{};return extend(o,s),l&&v?(this._mergeRich(v,l),o.rich=v):v&&(o.rich=v),o},t.prototype._mergeRich=function(o,s){for(var l=keys(s),v=0;v<l.length;v++){var S=l[v];o[S]=o[S]||{},extend(o[S],s[S])}},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,v=getStyleText(o),S=parsePlainText(v,o),x=needDrawBackground(o),T=!!o.backgroundColor,A=S.outerHeight,w=S.outerWidth,E=S.contentWidth,D=S.lines,$=S.lineHeight,N=this._defaultStyle,z=o.x||0,F=o.y||0,B=o.align||N.align||"left",G=o.verticalAlign||N.verticalAlign||"top",W=z,X=adjustTextY(F,S.contentHeight,G);if(x||l){var ee=adjustTextX(z,w,B),Q=adjustTextY(F,A,G);x&&this._renderBackground(o,o,ee,Q,w,A)}X+=$/2,l&&(W=getTextXForPadding(z,B,l),G==="top"?X+=l[0]:G==="bottom"&&(X-=l[2]));for(var te=0,ie=!1,le=getFill("fill"in o?o.fill:(ie=!0,N.fill)),pe=getStroke("stroke"in o?o.stroke:!T&&(!N.autoStroke||ie)?(te=DEFAULT_STROKE_LINE_WIDTH,N.stroke):null),ue=o.textShadowBlur>0,_e=o.width!=null&&(o.overflow==="truncate"||o.overflow==="break"||o.overflow==="breakAll"),xe=S.calculatedLineHeight,Te=0;Te<D.length;Te++){var Ae=this._getOrCreateChild(TSpan$1),we=Ae.createStyle();Ae.useStyle(we),we.text=D[Te],we.x=W,we.y=X,B&&(we.textAlign=B),we.textBaseline="middle",we.opacity=o.opacity,we.strokeFirst=!0,ue&&(we.shadowBlur=o.textShadowBlur||0,we.shadowColor=o.textShadowColor||"transparent",we.shadowOffsetX=o.textShadowOffsetX||0,we.shadowOffsetY=o.textShadowOffsetY||0),we.stroke=pe,we.fill=le,pe&&(we.lineWidth=o.lineWidth||te,we.lineDash=o.lineDash,we.lineDashOffset=o.lineDashOffset||0),we.font=s,setSeparateFont(we,o),X+=$,_e&&Ae.setBoundingRect(new BoundingRect$1(adjustTextX(we.x,o.width,we.textAlign),adjustTextY(we.y,xe,we.textBaseline),E,xe))}},t.prototype._updateRichTexts=function(){var o=this.style,s=getStyleText(o),l=parseRichText(s,o),v=l.width,S=l.outerWidth,x=l.outerHeight,T=o.padding,A=o.x||0,w=o.y||0,E=this._defaultStyle,D=o.align||E.align,$=o.verticalAlign||E.verticalAlign,N=adjustTextX(A,S,D),z=adjustTextY(w,x,$),F=N,B=z;T&&(F+=T[3],B+=T[0]);var G=F+v;needDrawBackground(o)&&this._renderBackground(o,o,N,z,S,x);for(var W=!!o.backgroundColor,X=0;X<l.lines.length;X++){for(var ee=l.lines[X],Q=ee.tokens,te=Q.length,ie=ee.lineHeight,le=ee.width,pe=0,ue=F,_e=G,xe=te-1,Te=void 0;pe<te&&(Te=Q[pe],!Te.align||Te.align==="left");)this._placeToken(Te,o,ie,B,ue,"left",W),le-=Te.width,ue+=Te.width,pe++;for(;xe>=0&&(Te=Q[xe],Te.align==="right");)this._placeToken(Te,o,ie,B,_e,"right",W),le-=Te.width,_e-=Te.width,xe--;for(ue+=(v-(ue-F)-(G-_e)-le)/2;pe<=xe;)Te=Q[pe],this._placeToken(Te,o,ie,B,ue+Te.width/2,"center",W),ue+=Te.width,pe++;B+=ie}},t.prototype._placeToken=function(o,s,l,v,S,x,T){var A=s.rich[o.styleName]||{};A.text=o.text;var w=o.verticalAlign,E=v+l/2;w==="top"?E=v+o.height/2:w==="bottom"&&(E=v+l-o.height/2);var D=!o.isLineHolder&&needDrawBackground(A);D&&this._renderBackground(A,s,x==="right"?S-o.width:x==="center"?S-o.width/2:S,E-o.height/2,o.width,o.height);var $=!!A.backgroundColor,N=o.textPadding;N&&(S=getTextXForPadding(S,x,N),E-=o.height/2-N[0]-o.innerHeight/2);var z=this._getOrCreateChild(TSpan$1),F=z.createStyle();z.useStyle(F);var B=this._defaultStyle,G=!1,W=0,X=getFill("fill"in A?A.fill:"fill"in s?s.fill:(G=!0,B.fill)),ee=getStroke("stroke"in A?A.stroke:"stroke"in s?s.stroke:!$&&!T&&(!B.autoStroke||G)?(W=DEFAULT_STROKE_LINE_WIDTH,B.stroke):null),Q=A.textShadowBlur>0||s.textShadowBlur>0;F.text=o.text,F.x=S,F.y=E,Q&&(F.shadowBlur=A.textShadowBlur||s.textShadowBlur||0,F.shadowColor=A.textShadowColor||s.textShadowColor||"transparent",F.shadowOffsetX=A.textShadowOffsetX||s.textShadowOffsetX||0,F.shadowOffsetY=A.textShadowOffsetY||s.textShadowOffsetY||0),F.textAlign=x,F.textBaseline="middle",F.font=o.font||DEFAULT_FONT,F.opacity=retrieve3(A.opacity,s.opacity,1),setSeparateFont(F,A),ee&&(F.lineWidth=retrieve3(A.lineWidth,s.lineWidth,W),F.lineDash=retrieve2(A.lineDash,s.lineDash),F.lineDashOffset=s.lineDashOffset||0,F.stroke=ee),X&&(F.fill=X);var te=o.contentWidth,ie=o.contentHeight;z.setBoundingRect(new BoundingRect$1(adjustTextX(F.x,te,F.textAlign),adjustTextY(F.y,ie,F.textBaseline),te,ie))},t.prototype._renderBackground=function(o,s,l,v,S,x){var T=o.backgroundColor,A=o.borderWidth,w=o.borderColor,E=T&&T.image,D=T&&!E,$=o.borderRadius,N=this,z,F;if(D||o.lineHeight||A&&w){z=this._getOrCreateChild(Rect$2),z.useStyle(z.createStyle()),z.style.fill=null;var B=z.shape;B.x=l,B.y=v,B.width=S,B.height=x,B.r=$,z.dirtyShape()}if(D){var G=z.style;G.fill=T||null,G.fillOpacity=retrieve2(o.fillOpacity,1)}else if(E){F=this._getOrCreateChild(ZRImage$1),F.onload=function(){N.dirtyStyle()};var W=F.style;W.image=T.image,W.x=l,W.y=v,W.width=S,W.height=x}if(A&&w){var G=z.style;G.lineWidth=A,G.stroke=w,G.strokeOpacity=retrieve2(o.strokeOpacity,1),G.lineDash=o.borderDash,G.lineDashOffset=o.borderDashOffset||0,z.strokeContainThreshold=0,z.hasFill()&&z.hasStroke()&&(G.strokeFirst=!0,G.lineWidth*=2)}var X=(z||F).style;X.shadowBlur=o.shadowBlur||0,X.shadowColor=o.shadowColor||"transparent",X.shadowOffsetX=o.shadowOffsetX||0,X.shadowOffsetY=o.shadowOffsetY||0,X.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(v){var S=getECData(v);S.seriesIndex=r,S.dataIndex=o,S.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,v={},S=0;S<t.length;S++){var x=t[S],T=l[x];v[x]=T??(s&&s[x])}for(var S=0;S<r.animators.length;S++){var A=r.animators[S];A.__fromStateTransition&&A.__fromStateTransition.indexOf(o)<0&&A.targetName==="style"&&A.saveTo(v,t)}return v}function createEmphasisDefaultState(r,t,o,s){var l=o&&indexOf(o,"select")>=0,v=!1;if(r instanceof Path$1){var S=getSavedStates(r),x=l&&S.selectFill||S.normalFill,T=l&&S.selectStroke||S.normalStroke;if(hasFillOrStroke(x)||hasFillOrStroke(T)){s=s||{};var A=s.style||{};A.fill==="inherit"?(v=!0,s=extend({},s),A=extend({},A),A.fill=x):!hasFillOrStroke(A.fill)&&hasFillOrStroke(x)?(v=!0,s=extend({},s),A=extend({},A),A.fill=liftColor(x)):!hasFillOrStroke(A.stroke)&&hasFillOrStroke(T)&&(v||(s=extend({},s),A=extend({},A)),A.stroke=liftColor(T)),s.style=A}}if(s&&s.z2==null){v||(s=extend({},s));var w=r.z2EmphasisLift;s.z2=r.z2+(w??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,v=s?null:getFromStateStyle(r,["opacity"],t,{opacity:1});o=o||{};var S=o.style||{};return S.opacity==null&&(o=extend({},o),S=extend({opacity:s?l:v.opacity*.1},S),o.style=S),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,v){var S=getComponentStates(v),x=l==="series",T=x?r.getViewOfSeriesModel(v):r.getViewOfComponentModel(v);!x&&s.push(T),S.isBlured&&(T.group.traverse(function(A){singleLeaveBlur(A)}),x&&o.push(v)),S.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 v(A,w){for(var E=0;E<w.length;E++){var D=A.getItemGraphicEl(w[E]);D&&leaveBlur(D)}}if(r!=null&&!(!t||t==="none")){var S=l.getSeriesByIndex(r),x=S.coordinateSystem;x&&x.master&&(x=x.master);var T=[];l.eachSeries(function(A){var w=S===A,E=A.coordinateSystem;E&&E.master&&(E=E.master);var D=E&&x?E===x:w;if(!(o==="series"&&!w||o==="coordinateSystem"&&!D||t==="series"&&w)){var $=s.getViewOfSeriesModel(A);if($.group.traverse(function(F){singleEnterBlur(F)}),isArrayLike(t))v(A.getData(),t);else if(isObject$3(t))for(var N=keys(t),z=0;z<N.length;z++)v(A.getData(N[z]),t[N[z]]);T.push(A),getComponentStates(A).isBlured=!0}}),l.eachComponent(function(A,w){if(A!=="series"){var E=s.getViewOfComponentModel(w);E&&E.toggleBlurSeries&&E.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(v){singleEnterBlur(v)})}}}function blurSeriesFromHighlightPayload(r,t,o){var s=r.seriesIndex,l=r.getData(t.dataType);if(l){var v=queryDataIndex(l,t);v=(isArray$1(v)?v[0]:v)||0;var S=l.getItemGraphicEl(v);if(!S)for(var x=l.count(),T=0;!S&&T<x;)S=l.getItemGraphicEl(T++);if(S){var A=getECData(S);blurSeries(s,A.focus,A.blurScope,o)}else{var w=r.get(["emphasis","focus"]),E=r.get(["emphasis","blurScope"]);w!=null&&blurSeries(s,w,E,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 v=s.getModel().getComponent(r,t);if(!v)return l;var S=s.getViewOfComponentModel(v);if(!S||!S.findHighDownDispatchers)return l;for(var x=S.findHighDownDispatchers(o),T,A=0;A<x.length;A++)if(getECData(x[A]).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),v=l.dispatchers,S=l.focusSelf;v?(S&&blurComponent(s.componentMainType,s.componentIndex,o),each$c(v,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(v){return leaveEmphasisWhenMouseOut(v,t)}):leaveEmphasisWhenMouseOut(r,t)}function toggleSelectionFromPayload(r,t,o){if(isSelectChangePayload(t)){var s=t.dataType,l=r.getData(s),v=queryDataIndex(l,t);isArray$1(v)||(v=[v]),r[t.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":t.type===SELECT_ACTION_TYPE?"select":"unselect"](v,s)}}function updateSeriesElementSelection(r){var t=r.getAllData();each$c(t,function(o){var s=o.data,l=o.type;s.eachItemGraphicEl(function(v,S){r.isSelected(S,l)?enterSelect(v):leaveSelect(v)})})}function getAllSelectedIndices(r){var t=[];return r.eachSeries(function(o){var s=o.getAllData();each$c(s,function(l){l.data;var v=l.type,S=o.getSelectedDataIndices();if(S.length>0){var x={dataIndex:S,seriesIndex:o.seriesIndex};v!=null&&(x.dataType=v),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 v=OTHER_STATES[l],S=t.getModel([v,o]),x=r.ensureState(v);x.style=s?s(S):S[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,v,S,x,T,A,w=CMD.M,E=CMD.C,D=CMD.L,$=CMD.R,N=CMD.A,z=CMD.Q;for(S=0,x=0;S<s;){switch(l=o[S++],x=S,v=0,l){case w:v=1;break;case D:v=1;break;case E:v=3;break;case z:v=2;break;case N:var F=t[4],B=t[5],G=mathSqrt$2(t[0]*t[0]+t[1]*t[1]),W=mathSqrt$2(t[2]*t[2]+t[3]*t[3]),X=mathAtan2(-t[1]/W,t[0]/G);o[S]*=G,o[S++]+=F,o[S]*=W,o[S++]+=B,o[S++]*=G,o[S++]*=W,o[S++]+=X,o[S++]+=X,S+=2,x=S;break;case $:A[0]=o[S++],A[1]=o[S++],applyTransform$1(A,A,t),o[x++]=A[0],o[x++]=A[1],A[0]+=o[S++],A[1]+=o[S++],applyTransform$1(A,A,t),o[x++]=A[0],o[x++]=A[1]}for(T=0;T<v;T++){var ee=points[T];ee[0]=o[S++],ee[1]=o[S++],applyTransform$1(ee,ee,t),o[x++]=ee[0],o[x++]=ee[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,v,S,x,T,A,w){var E=T*(PI$3/180),D=mathCos$1(E)*(r-o)/2+mathSin$1(E)*(t-s)/2,$=-1*mathSin$1(E)*(r-o)/2+mathCos$1(E)*(t-s)/2,N=D*D/(S*S)+$*$/(x*x);N>1&&(S*=mathSqrt$1(N),x*=mathSqrt$1(N));var z=(l===v?-1:1)*mathSqrt$1((S*S*(x*x)-S*S*($*$)-x*x*(D*D))/(S*S*($*$)+x*x*(D*D)))||0,F=z*S*$/x,B=z*-x*D/S,G=(r+o)/2+mathCos$1(E)*F-mathSin$1(E)*B,W=(t+s)/2+mathSin$1(E)*F+mathCos$1(E)*B,X=vAngle([1,0],[(D-F)/S,($-B)/x]),ee=[(D-F)/S,($-B)/x],Q=[(-1*D-F)/S,(-1*$-B)/x],te=vAngle(ee,Q);if(vRatio(ee,Q)<=-1&&(te=PI$3),vRatio(ee,Q)>=1&&(te=0),te<0){var ie=Math.round(te/PI$3*1e6)/1e6;te=PI$3*2+ie%2*PI$3}w.addData(A,G,W,S,x,X,te,E,v)}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,v=s,S,x=PathProxy$1.CMD,T=r.match(commandReg);if(!T)return t;for(var A=0;A<T.length;A++){for(var w=T[A],E=w.charAt(0),D=void 0,$=w.match(numberReg)||[],N=$.length,z=0;z<N;z++)$[z]=parseFloat($[z]);for(var F=0;F<N;){var B=void 0,G=void 0,W=void 0,X=void 0,ee=void 0,Q=void 0,te=void 0,ie=o,le=s,pe=void 0,ue=void 0;switch(E){case"l":o+=$[F++],s+=$[F++],D=x.L,t.addData(D,o,s);break;case"L":o=$[F++],s=$[F++],D=x.L,t.addData(D,o,s);break;case"m":o+=$[F++],s+=$[F++],D=x.M,t.addData(D,o,s),l=o,v=s,E="l";break;case"M":o=$[F++],s=$[F++],D=x.M,t.addData(D,o,s),l=o,v=s,E="L";break;case"h":o+=$[F++],D=x.L,t.addData(D,o,s);break;case"H":o=$[F++],D=x.L,t.addData(D,o,s);break;case"v":s+=$[F++],D=x.L,t.addData(D,o,s);break;case"V":s=$[F++],D=x.L,t.addData(D,o,s);break;case"C":D=x.C,t.addData(D,$[F++],$[F++],$[F++],$[F++],$[F++],$[F++]),o=$[F-2],s=$[F-1];break;case"c":D=x.C,t.addData(D,$[F++]+o,$[F++]+s,$[F++]+o,$[F++]+s,$[F++]+o,$[F++]+s),o+=$[F-2],s+=$[F-1];break;case"S":B=o,G=s,pe=t.len(),ue=t.data,S===x.C&&(B+=o-ue[pe-4],G+=s-ue[pe-3]),D=x.C,ie=$[F++],le=$[F++],o=$[F++],s=$[F++],t.addData(D,B,G,ie,le,o,s);break;case"s":B=o,G=s,pe=t.len(),ue=t.data,S===x.C&&(B+=o-ue[pe-4],G+=s-ue[pe-3]),D=x.C,ie=o+$[F++],le=s+$[F++],o+=$[F++],s+=$[F++],t.addData(D,B,G,ie,le,o,s);break;case"Q":ie=$[F++],le=$[F++],o=$[F++],s=$[F++],D=x.Q,t.addData(D,ie,le,o,s);break;case"q":ie=$[F++]+o,le=$[F++]+s,o+=$[F++],s+=$[F++],D=x.Q,t.addData(D,ie,le,o,s);break;case"T":B=o,G=s,pe=t.len(),ue=t.data,S===x.Q&&(B+=o-ue[pe-4],G+=s-ue[pe-3]),o=$[F++],s=$[F++],D=x.Q,t.addData(D,B,G,o,s);break;case"t":B=o,G=s,pe=t.len(),ue=t.data,S===x.Q&&(B+=o-ue[pe-4],G+=s-ue[pe-3]),o+=$[F++],s+=$[F++],D=x.Q,t.addData(D,B,G,o,s);break;case"A":W=$[F++],X=$[F++],ee=$[F++],Q=$[F++],te=$[F++],ie=o,le=s,o=$[F++],s=$[F++],D=x.A,processArc(ie,le,o,s,Q,te,W,X,ee,D,t);break;case"a":W=$[F++],X=$[F++],ee=$[F++],Q=$[F++],te=$[F++],ie=o,le=s,o+=$[F++],s+=$[F++],D=x.A,processArc(ie,le,o,s,Q,te,W,X,ee,D,t);break}}(E==="z"||E==="Z")&&(D=x.Z,t.addData(D),o=l,s=v),S=D}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 v=l.getContext();v&&l.rebuildPath(v,1)}else{var v=l;o.rebuildPath(v,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(v,l);function v(S){var x=l.call(this,S)||this;return x.applyTransform=o.applyTransform,x.buildPath=o.buildPath,x}return v}(SVGPath);return s}function mergePath$1(r,t){for(var o=[],s=r.length,l=0;l<s;l++){var v=r[l];o.push(v.getUpdatedPathProxy(!0))}var S=new Path$1(t);return S.createPathProxy(),S.buildPath=function(x){if(isPathProxy(x)){x.appendPath(o);var T=x.getContext();T&&x.rebuildPath(T,1)}},S}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,v=s.cx,S=s.cy,x=s.rx,T=s.ry,A=x*l,w=T*l;o.moveTo(v-x,S),o.bezierCurveTo(v-x,S-w,v-A,S-T,v,S-T),o.bezierCurveTo(v+A,S-T,v+x,S-w,v+x,S),o.bezierCurveTo(v+x,S+w,v+A,S+T,v,S+T),o.bezierCurveTo(v-A,S+T,v-x,S+w,v-x,S),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,v,S,x){var T=o-r,A=s-t,w=S-l,E=x-v,D=E*T-w*A;if(!(D*D<e))return D=(w*(t-v)-E*(r-l))/D,[r+D*T,t+D*A]}function computeCornerTangents(r,t,o,s,l,v,S){var x=r-o,T=t-s,A=(S?v:-v)/mathSqrt(x*x+T*T),w=A*T,E=-A*x,D=r+w,$=t+E,N=o+w,z=s+E,F=(D+N)/2,B=($+z)/2,G=N-D,W=z-$,X=G*G+W*W,ee=l-v,Q=D*z-N*$,te=(W<0?-1:1)*mathSqrt(mathMax$5(0,ee*ee*X-Q*Q)),ie=(Q*W-G*te)/X,le=(-Q*G-W*te)/X,pe=(Q*W+G*te)/X,ue=(-Q*G+W*te)/X,_e=ie-F,xe=le-B,Te=pe-F,Ae=ue-B;return _e*_e+xe*xe>Te*Te+Ae*Ae&&(ie=pe,le=ue),{cx:ie,cy:le,x0:-w,y0:-E,x1:ie*(l/ee-1),y1:le*(l/ee-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),v=s>0,S=l>0;if(!(!v&&!S)){if(v||(s=l,l=0),l>s){var x=s;s=l,l=x}var T=t.startAngle,A=t.endAngle;if(!(isNaN(T)||isNaN(A))){var w=t.cx,E=t.cy,D=!!t.clockwise,$=mathAbs(A-T),N=$>PI2$1&&$%PI2$1;if(N>e&&($=N),!(s>e))r.moveTo(w,E);else if($>PI2$1-e)r.moveTo(w+s*mathCos(T),E+s*mathSin(T)),r.arc(w,E,s,T,A,!D),l>e&&(r.moveTo(w+l*mathCos(A),E+l*mathSin(A)),r.arc(w,E,l,A,T,D));else{var z=void 0,F=void 0,B=void 0,G=void 0,W=void 0,X=void 0,ee=void 0,Q=void 0,te=void 0,ie=void 0,le=void 0,pe=void 0,ue=void 0,_e=void 0,xe=void 0,Te=void 0,Ae=s*mathCos(T),we=s*mathSin(T),$e=l*mathCos(A),Pe=l*mathSin(A),Ce=$>e;if(Ce){var Re=t.cornerRadius;Re&&(o=normalizeCornerRadius(Re),z=o[0],F=o[1],B=o[2],G=o[3]);var Ye=mathAbs(s-l)/2;if(W=mathMin$5(Ye,B),X=mathMin$5(Ye,G),ee=mathMin$5(Ye,z),Q=mathMin$5(Ye,F),le=te=mathMax$5(W,X),pe=ie=mathMax$5(ee,Q),(te>e||ie>e)&&(ue=s*mathCos(A),_e=s*mathSin(A),xe=l*mathCos(T),Te=l*mathSin(T),$<PI$2)){var We=intersect(Ae,we,xe,Te,ue,_e,$e,Pe);if(We){var qe=Ae-We[0],Qe=we-We[1],ht=ue-We[0],st=_e-We[1],Tt=1/mathSin(mathACos((qe*ht+Qe*st)/(mathSqrt(qe*qe+Qe*Qe)*mathSqrt(ht*ht+st*st)))/2),yt=mathSqrt(We[0]*We[0]+We[1]*We[1]);le=mathMin$5(te,(s-yt)/(Tt+1)),pe=mathMin$5(ie,(l-yt)/(Tt-1))}}}if(!Ce)r.moveTo(w+Ae,E+we);else if(le>e){var Me=mathMin$5(B,le),Be=mathMin$5(G,le),De=computeCornerTangents(xe,Te,Ae,we,s,Me,D),Ue=computeCornerTangents(ue,_e,$e,Pe,s,Be,D);r.moveTo(w+De.cx+De.x0,E+De.cy+De.y0),le<te&&Me===Be?r.arc(w+De.cx,E+De.cy,le,mathATan2(De.y0,De.x0),mathATan2(Ue.y0,Ue.x0),!D):(Me>0&&r.arc(w+De.cx,E+De.cy,Me,mathATan2(De.y0,De.x0),mathATan2(De.y1,De.x1),!D),r.arc(w,E,s,mathATan2(De.cy+De.y1,De.cx+De.x1),mathATan2(Ue.cy+Ue.y1,Ue.cx+Ue.x1),!D),Be>0&&r.arc(w+Ue.cx,E+Ue.cy,Be,mathATan2(Ue.y1,Ue.x1),mathATan2(Ue.y0,Ue.x0),!D))}else r.moveTo(w+Ae,E+we),r.arc(w,E,s,T,A,!D);if(!(l>e)||!Ce)r.lineTo(w+$e,E+Pe);else if(pe>e){var Me=mathMin$5(z,pe),Be=mathMin$5(F,pe),De=computeCornerTangents($e,Pe,ue,_e,l,-Be,D),Ue=computeCornerTangents(Ae,we,xe,Te,l,-Me,D);r.lineTo(w+De.cx+De.x0,E+De.cy+De.y0),pe<ie&&Me===Be?r.arc(w+De.cx,E+De.cy,pe,mathATan2(De.y0,De.x0),mathATan2(Ue.y0,Ue.x0),!D):(Be>0&&r.arc(w+De.cx,E+De.cy,Be,mathATan2(De.y0,De.x0),mathATan2(De.y1,De.x1),!D),r.arc(w,E,l,mathATan2(De.cy+De.y1,De.cx+De.x1),mathATan2(Ue.cy+Ue.y1,Ue.cx+Ue.x1),D),Me>0&&r.arc(w+Ue.cx,E+Ue.cy,Me,mathATan2(Ue.y1,Ue.x1),mathATan2(Ue.y0,Ue.x0),!D))}else r.lineTo(w+$e,E+Pe),r.arc(w,E,l,A,T,D)}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,v=s.cy,S=Math.PI*2;o.moveTo(l+s.r,v),o.arc(l,v,s.r,0,S,!1),o.moveTo(l+s.r0,v),o.arc(l,v,s.r0,0,S,!0)},t}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(r,t,o,s){var l=[],v=[],S=[],x=[],T,A,w,E;if(s){w=[1/0,1/0],E=[-1/0,-1/0];for(var D=0,$=r.length;D<$;D++)min$1(w,w,r[D]),max$1(E,E,r[D]);min$1(w,w,s[0]),max$1(E,E,s[1])}for(var D=0,$=r.length;D<$;D++){var N=r[D];if(o)T=r[D?D-1:$-1],A=r[(D+1)%$];else if(D===0||D===$-1){l.push(clone$2(r[D]));continue}else T=r[D-1],A=r[D+1];sub(v,A,T),scale$2(v,v,t);var z=distance(N,T),F=distance(N,A),B=z+F;B!==0&&(z/=B,F/=B),scale$2(S,v,-z),scale$2(x,v,F);var G=add([],N,S),W=add([],N,x);s&&(max$1(G,G,w),min$1(G,G,E),max$1(W,W,w),min$1(W,W,E)),l.push(G),l.push(W)}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 v=smoothBezier(l,s,o,t.smoothConstraint);r.moveTo(l[0][0],l[0][1]);for(var S=l.length,x=0;x<(o?S:S-1);x++){var T=v[x*2],A=v[x*2+1],w=l[(x+1)%S];r.bezierCurveTo(T[0],T[1],A[0],A[1],w[0],w[1])}}else{r.moveTo(l[0][0],l[0][1]);for(var x=1,E=l.length;x<E;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,v,S,x;if(this.subPixelOptimize){var T=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,s,this.style);l=T.x1,v=T.y1,S=T.x2,x=T.y2}else l=s.x1,v=s.y1,S=s.x2,x=s.y2;var A=s.percent;A!==0&&(o.moveTo(l,v),A<1&&(S=l*(1-A)+S*A,x=v*(1-A)+x*A),o.lineTo(S,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,v=s.y1,S=s.x2,x=s.y2,T=s.cpx1,A=s.cpy1,w=s.cpx2,E=s.cpy2,D=s.percent;D!==0&&(o.moveTo(l,v),w==null||E==null?(D<1&&(quadraticSubdivide(l,T,S,D,out),T=out[1],S=out[2],quadraticSubdivide(v,A,x,D,out),A=out[1],x=out[2]),o.quadraticCurveTo(T,A,S,x)):(D<1&&(cubicSubdivide(l,T,w,S,D,out),T=out[1],w=out[2],S=out[3],cubicSubdivide(v,A,E,x,D,out),A=out[1],E=out[2],x=out[3]),o.bezierCurveTo(T,A,w,E,S,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,v=s.cy,S=Math.max(s.r,0),x=s.startAngle,T=s.endAngle,A=s.clockwise,w=Math.cos(x),E=Math.sin(x);o.moveTo(w*S+l,E*S+v),o.arc(l,v,S,x,T,!A)},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||[],v=0;v<l.length;v++)l[v].buildPath(o,l[v].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,v,S,x){var T=r.call(this,S)||this;return T.x=o??0,T.y=s??0,T.x2=l??1,T.y2=v??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,v,S){var x=r.call(this,v)||this;return x.x=o??.5,x.y=s??.5,x.r=l??.5,x.type="radial",x.global=S||!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,v=t.x,S=t.y,x=v+t.width,T=S+t.height;if(s[0].set(v,S),s[1].set(x,S),s[2].set(x,T),s[3].set(v,T),o)for(var A=0;A<4;A++)s[A].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 A=0;A<2;A++)this._origin[A]=l[A].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,v,S){for(var x=!0,T=0;T<2;T++){var A=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,v)return x;var w=Math.abs(extent2[0]-extent[1]),E=Math.abs(extent[0]-extent2[1]);Math.min(w,E)>l.len()&&(w<E?Point$1.scale(l,A,-w*S):Point$1.scale(l,A,E*S))}else if(s){var w=Math.abs(extent2[0]-extent[1]),E=Math.abs(extent[0]-extent2[1]);Math.min(w,E)<s.len()&&(w<E?Point$1.scale(s,A,w*S):Point$1.scale(s,A,-E*S))}}return x},r.prototype._getProjMinMaxOnAxis=function(t,o,s){for(var l=this._axes[t],v=this._origin,S=o[0].dot(l)+v[t],x=S,T=S,A=1;A<o.length;A++){var w=o[A].dot(l)+v[t];x=Math.min(w,x),T=Math.max(w,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],v=l.getBoundingRect().clone();l.needLocalTransform()&&v.applyTransform(l.getLocalTransform(m$2)),o.union(v)}this._rect=o}return this._rect},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),v=this.getBoundingRect();if(v.contain(l[0],l[1]))for(var S=0;S<this._displayables.length;S++){var x=this._displayables[S];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 v;if(t&&t.ecModel){var S=t.ecModel.getUpdatePayload();v=S&&S.animation}var x=t&&t.isAnimationEnabled(),T=r==="update";if(x){var A=void 0,w=void 0,E=void 0;s?(A=retrieve2(s.duration,200),w=retrieve2(s.easing,"cubicOut"),E=0):(A=t.getShallow(T?"animationDurationUpdate":"animationDuration"),w=t.getShallow(T?"animationEasingUpdate":"animationEasing"),E=t.getShallow(T?"animationDelayUpdate":"animationDelay")),v&&(v.duration!=null&&(A=v.duration),v.easing!=null&&(w=v.easing),v.delay!=null&&(E=v.delay)),isFunction(E)&&(E=E(o,l)),isFunction(A)&&(A=A(o));var D={duration:A||0,delay:E,easing:w};return D}else return null}function animateOrSetProps(r,t,o,s,l,v,S){var x=!1,T;isFunction(l)?(S=v,v=l,l=null):isObject$3(l)&&(v=l.cb,S=l.during,x=l.isFrom,T=l.removeOpt,l=l.dataIndex);var A=r==="leave";A||t.stopAnimation("leave");var w=getAnimationConfig(r,s,l,A?T||{}:null,s&&s.getAnimationDelayParams?s.getAnimationDelayParams(t,l):null);if(w&&w.duration>0){var E=w.duration,D=w.delay,$=w.easing,N={duration:E,delay:D||0,easing:$,done:v,force:!!v||!!S,setToFinal:!A,scope:r,during:S};x?t.animateFrom(o,N):t.animateTo(o,N)}else t.stopAnimation(),!x&&t.attr(o),S&&S(1),v&&v()}function updateProps$1(r,t,o,s,l,v){animateOrSetProps("update",r,t,o,s,l,v)}function initProps(r,t,o,s,l,v){animateOrSetProps("enter",r,t,o,s,l,v)}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,v){isElementRemoved(r)||animateOrSetProps("leave",r,t,o,s,l,v)}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 v={width:l.width,height:l.height};s.setStyle(centerGraphic(t,v))}}});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 v=r.x+r.width/2,S=r.y+r.height/2;return{x:v-s/2,y:S-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]),v=[r==="left"?-s:r==="right"?s:0,r==="top"?-l:r==="bottom"?l:0];return v=applyTransform(v,t,o),Math.abs(v[0])>Math.abs(v[1])?v[0]>0?"right":"left":v[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(S){var x={};return S.traverse(function(T){isNotGroup(T)&&T.anid&&(x[T.anid]=T)}),x}function l(S){var x={x:S.x,y:S.y,rotation:S.rotation};return isPath(S)&&(x.shape=extend({},S.shape)),x}var v=s(r);t.traverse(function(S){if(isNotGroup(S)&&S.anid){var x=v[S.anid];if(x){var T=l(S);S.attr(l(x)),updateProps$1(S,T,o,getECData(S).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),v=mathMin$4(r.y+r.height,t.y+t.height);if(s>=o&&v>=l)return{x:o,y:l,width:s-o,height:v-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 v=0,S=l[l.length-1];v<l.length;v++){var x=l[v];if(lineLineIntersect(r,t,o,s,x[0],x[1],S[0],S[1]))return!0;S=x}}function lineLineIntersect(r,t,o,s,l,v,S,x){var T=o-r,A=s-t,w=S-l,E=x-v,D=crossProduct2d(w,E,T,A);if(nearZero(D))return!1;var $=r-l,N=t-v,z=crossProduct2d($,N,T,A)/D;if(z<0||z>1)return!1;var F=crossProduct2d($,N,w,E)/D;return!(F<0||F>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,v=o.mainType,S=o.componentIndex,x={componentType:v,name:s,$vars:["name"]};x[v+"Index"]=S;var T=r.formatterParamsExtra;T&&each$c(keys(T),function(w){hasOwn(x,w)||(x[w]=T[w],x.$vars.push(w))});var A=getECData(r.el);A.componentMainType=v,A.componentIndex=S,A.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],v=r.ensureState(s);v.style=v.style||{},v.style.text=l}var S=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(S,!0)}function getLabelText(r,t,o){var s=r.labelFetcher,l=r.labelDataIndex,v=r.labelDimIndex,S=t.normal,x;s&&(x=s.getFormattedLabel(l,"normal",null,v,S&&S.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},A=0;A<SPECIAL_STATES.length;A++){var w=SPECIAL_STATES[A],E=t[w];T[w]=retrieve2(s?s.getFormattedLabel(l,w,null,v,E&&E.get("formatter")):null,x)}return T}function setLabelStyle(r,t,o,s){o=o||EMPTY_OBJ;for(var l=r instanceof ZRText$1,v=!1,S=0;S<DISPLAY_STATES.length;S++){var x=t[DISPLAY_STATES[S]];if(x&&x.getShallow("show")){v=!0;break}}var T=l?r:r.getTextContent();if(v){l||(T||(T=new ZRText$1,r.setTextContent(T)),r.stateProxy&&(T.stateProxy=r.stateProxy));var A=getLabelText(o,t),w=t.normal,E=!!w.getShallow("show"),D=createTextStyle$1(w,s&&s.normal,o,!1,!l);D.text=A.normal,l||r.setTextConfig(createTextConfig(w,o,!1));for(var S=0;S<SPECIAL_STATES.length;S++){var $=SPECIAL_STATES[S],x=t[$];if(x){var N=T.ensureState($),z=!!retrieve2(x.getShallow("show"),E);if(z!==E&&(N.ignore=!z),N.style=createTextStyle$1(x,s&&s[$],o,!0,!l),N.style.text=A[$],!l){var F=r.ensureState($);F.textConfig=createTextConfig(x,o,!0)}}}T.silent=!!w.getShallow("silent"),T.style.x!=null&&(D.x=T.style.x),T.style.y!=null&&(D.y=T.style.y),T.ignore=!E,T.useStyle(D),T.dirty(),o.enableTextSetter&&(labelInner(T).setLabelText=function(B){var G=getLabelText(o,t,B);setLabelText(T,G)})}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 v={};return setTextStyleCommon(v,r,o,s,l),t&&extend(v,t),v}function createTextConfig(r,t,o){t=t||{};var s={},l,v=r.getShallow("rotate"),S=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),v!=null&&(v*=Math.PI/180,s.rotation=v),S!=null&&(s.distance=S),s.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",s}function setTextStyleCommon(r,t,o,s,l){o=o||EMPTY_OBJ;var v=t.ecModel,S=v&&v.option.textStyle,x=getRichItemNames(t),T;if(x){T={};for(var A in x)if(x.hasOwnProperty(A)){var w=t.getModel(["rich",A]);setTokenTextStyle(T[A]={},w,S,o,s,l,!1,!0)}}T&&(r.rich=T);var E=t.get("overflow");E&&(r.overflow=E);var D=t.get("minMargin");D!=null&&(r.margin=D),setTokenTextStyle(r,t,S,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 v=s[l];t[v]=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,v,S,x){o=!l&&o||EMPTY_OBJ;var T=s&&s.inheritColor,A=t.getShallow("color"),w=t.getShallow("textBorderColor"),E=retrieve2(t.getShallow("opacity"),o.opacity);(A==="inherit"||A==="auto")&&(T?A=T:A=null),(w==="inherit"||w==="auto")&&(T?w=T:w=null),v||(A=A||o.color,w=w||o.textBorderColor),A!=null&&(r.fill=A),w!=null&&(r.stroke=w);var D=retrieve2(t.getShallow("textBorderWidth"),o.textBorderWidth);D!=null&&(r.lineWidth=D);var $=retrieve2(t.getShallow("textBorderType"),o.textBorderType);$!=null&&(r.lineDash=$);var N=retrieve2(t.getShallow("textBorderDashOffset"),o.textBorderDashOffset);N!=null&&(r.lineDashOffset=N),!l&&E==null&&!x&&(E=s&&s.defaultOpacity),E!=null&&(r.opacity=E),!l&&!v&&r.fill==null&&s.inheritColor&&(r.fill=s.inheritColor);for(var z=0;z<TEXT_PROPS_WITH_GLOBAL.length;z++){var F=TEXT_PROPS_WITH_GLOBAL[z],B=retrieve2(t.getShallow(F),o[F]);B!=null&&(r[F]=B)}for(var z=0;z<TEXT_PROPS_SELF.length;z++){var F=TEXT_PROPS_SELF[z],B=t.getShallow(F);B!=null&&(r[F]=B)}if(r.verticalAlign==null){var G=t.getShallow("baseline");G!=null&&(r.verticalAlign=G)}if(!S||!s.disableBox){for(var z=0;z<TEXT_PROPS_BOX.length;z++){var F=TEXT_PROPS_BOX[z],B=t.getShallow(F);B!=null&&(r[F]=B)}var W=t.getShallow("borderType");W!=null&&(r.borderDash=W),(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 v=t.normal;l.valueAnimation=v.get("valueAnimation"),l.valueAnimation&&(l.precision=v.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 v=this.parentModel;v&&(l=v.getShallow(t))}return l},r.prototype.getModel=function(t,o){var s=t!=null,l=s?this.parsePath(t):null,v=s?this._doGet(l):this.option;return o=o||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(l)),new r(v,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 v=parseClassType(o).main;r.hasSubTypes(o)&&t[v]&&(l=t[v](s))}return l}}function enableTopologicalTravel(r,t){r.topologicalTravel=function(v,S,x,T){if(!v.length)return;var A=o(S),w=A.graph,E=A.noEntryList,D={};for(each$c(v,function(G){D[G]=!0});E.length;){var $=E.pop(),N=w[$],z=!!D[$];z&&(x.call(T,$,N.originalDeps.slice()),delete D[$]),each$c(N.successor,z?B:F)}each$c(D,function(){var G="";throw new Error(G)});function F(G){w[G].entryCount--,w[G].entryCount===0&&E.push(G)}function B(G){D[G]=!0,F(G)}};function o(v){var S={},x=[];return each$c(v,function(T){var A=s(S,T),w=A.originalDeps=t(T),E=l(w,v);A.entryCount=E.length,A.entryCount===0&&x.push(T),each$c(E,function(D){indexOf(A.predecessor,D)<0&&A.predecessor.push(D);var $=s(S,D);indexOf($.successor,D)<0&&$.successor.push(T)})}),{graph:S,noEntryList:x}}function s(v,S){return v[S]||(v[S]={predecessor:[],successor:[]}),v[S]}function l(v,S){var x=[];return each$c(v,function(T){indexOf(S,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),v=l[fullYearGetterName(o)](),S=l[monthGetterName(o)]()+1,x=Math.floor((S-1)/3)+1,T=l[dateGetterName(o)](),A=l["get"+(o?"UTC":"")+"Day"](),w=l[hoursGetterName(o)](),E=(w-1)%12+1,D=l[minutesGetterName(o)](),$=l[secondsGetterName(o)](),N=l[millisecondsGetterName(o)](),z=s instanceof Model$1?s:getLocaleModel(s||SYSTEM_LANG)||getDefaultLocaleModel(),F=z.getModel("time"),B=F.get("month"),G=F.get("monthAbbr"),W=F.get("dayOfWeek"),X=F.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,v+"").replace(/{yy}/g,v%100+"").replace(/{Q}/g,x+"").replace(/{MMMM}/g,B[S-1]).replace(/{MMM}/g,G[S-1]).replace(/{MM}/g,pad(S,2)).replace(/{M}/g,S+"").replace(/{dd}/g,pad(T,2)).replace(/{d}/g,T+"").replace(/{eeee}/g,W[A]).replace(/{ee}/g,X[A]).replace(/{e}/g,A+"").replace(/{HH}/g,pad(w,2)).replace(/{H}/g,w+"").replace(/{hh}/g,pad(E+"",2)).replace(/{h}/g,E+"").replace(/{mm}/g,pad(D,2)).replace(/{m}/g,D+"").replace(/{ss}/g,pad($,2)).replace(/{s}/g,$+"").replace(/{SSS}/g,pad(N,3)).replace(/{S}/g,N+"")}function leveledFormat(r,t,o,s,l){var v=null;if(isString(o))v=o;else if(isFunction(o))v=o(r.value,t,{level:r.level});else{var S=extend({},defaultLeveledFormatter);if(r.level>0)for(var x=0;x<primaryTimeUnits.length;++x)S[primaryTimeUnits[x]]="{primary|"+S[primaryTimeUnits[x]]+"}";var T=o?o.inherit===!1?o:defaults(o,S):S,A=getUnitFromValue(r.value,l);if(T[A])v=T[A];else if(T.inherit){for(var w=timeUnits.indexOf(A),x=w-1;x>=0;--x)if(T[A]){v=T[A];break}v=v||S.none}if(isArray$1(v)){var E=r.level==null?0:r.level>=0?r.level:v.length+r.level;E=Math.min(E,v.length-1),v=v[E]}}return format$1(new Date(r.value),v,l,s)}function getUnitFromValue(r,t){var o=parseDate(r),s=o[monthGetterName(t)]()+1,l=o[dateGetterName(t)](),v=o[hoursGetterName(t)](),S=o[minutesGetterName(t)](),x=o[secondsGetterName(t)](),T=o[millisecondsGetterName(t)](),A=T===0,w=A&&x===0,E=w&&S===0,D=E&&v===0,$=D&&l===1,N=$&&s===1;return N?"year":$?"month":D?"day":E?"hour":w?"minute":A?"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,v,S,x){var T=new ZRText$1({style:{text:r,font:t,align:o,verticalAlign:s,padding:l,rich:v,overflow:S?"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(w){return w&&trim$1(w)?w:"-"}function v(w){return!!(w!=null&&!isNaN(w)&&isFinite(w))}var S=t==="time",x=r instanceof Date;if(S||x){var T=S?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)&&v(r)?r+"":"-";var A=numericToNumber(r);return v(A)?addCommas(A):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||[],v=0;v<l.length;v++){var S=TPL_VAR_ALIAS[v];r=r.replace(wrapVar(S),wrapVar(S,0))}for(var x=0;x<s;x++)for(var T=0;T<l.length;T++){var A=t[x][l[T]];r=r.replace(wrapVar(TPL_VAR_ALIAS[T],x),o?encodeHTML(A):A)}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 v=o.renderMode||"html";if(!s)return"";if(v==="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 S=o.markerId||"markerX";return{renderMode:v,content:"{"+S+"|} ",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",v=s[l+"FullYear"](),S=s[l+"Month"]()+1,x=s[l+"Date"](),T=s[l+"Hours"](),A=s[l+"Minutes"](),w=s[l+"Seconds"](),E=s[l+"Milliseconds"]();return r=r.replace("MM",pad(S,2)).replace("M",S).replace("yyyy",v).replace("yy",pad(v%100+"",2)).replace("dd",pad(x,2)).replace("d",x).replace("hh",pad(T,2)).replace("h",T).replace("mm",pad(A,2)).replace("m",A).replace("ss",pad(w,2)).replace("s",w).replace("SSS",pad(E,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 v=0,S=0;s==null&&(s=1/0),l==null&&(l=1/0);var x=0;t.eachChild(function(T,A){var w=T.getBoundingRect(),E=t.childAt(A+1),D=E&&E.getBoundingRect(),$,N;if(r==="horizontal"){var z=w.width+(D?-D.x+w.x:0);$=v+z,$>s||T.newline?(v=0,$=z,S+=x+o,x=w.height):x=Math.max(x,w.height)}else{var F=w.height+(D?-D.y+w.y:0);N=S+F,N>l||T.newline?(v+=x+o,S=0,N=F,x=w.width):x=Math.max(x,w.width)}T.newline||(T.x=v,T.y=S,T.markRedraw(),r==="horizontal"?v=$+o:S=N+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,v=parsePercent(r.left,s),S=parsePercent(r.top,l),x=parsePercent(r.right,s),T=parsePercent(r.bottom,l),A=parsePercent(r.width,s),w=parsePercent(r.height,l),E=o[2]+o[0],D=o[1]+o[3],$=r.aspect;switch(isNaN(A)&&(A=s-x-D-v),isNaN(w)&&(w=l-T-E-S),$!=null&&(isNaN(A)&&isNaN(w)&&($>s/l?A=s*.8:w=l*.8),isNaN(A)&&(A=$*w),isNaN(w)&&(w=A/$)),isNaN(v)&&(v=s-x-A-D),isNaN(S)&&(S=l-T-w-E),r.left||r.right){case"center":v=s/2-A/2-o[3];break;case"right":v=s-A-D;break}switch(r.top||r.bottom){case"middle":case"center":S=l/2-w/2-o[0];break;case"bottom":S=l-w-E;break}v=v||0,S=S||0,isNaN(A)&&(A=s-D-v-(x||0)),isNaN(w)&&(w=l-E-S-(T||0));var N=new BoundingRect$1(v+o[3],S+o[0],A,w);return N.margin=o,N}function positionElement(r,t,o,s,l,v){var S=!l||!l.hv||l.hv[0],x=!l||!l.hv||l.hv[1],T=l&&l.boundingMode||"all";if(v=v||r,v.x=r.x,v.y=r.y,!S&&!x)return!1;var A;if(T==="raw")A=r.type==="group"?new BoundingRect$1(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(A=r.getBoundingRect(),r.needLocalTransform()){var w=r.getLocalTransform();A=A.clone(),A.applyTransform(w)}var E=getLayoutRect(defaults({width:A.width,height:A.height},t),o,s),D=S?E.x-A.x:0,$=x?E.y-A.y:0;return T==="raw"?(v.x=D,v.y=$):(v.x+=D,v.y+=$),v===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=S(HV_NAMES[0],0),v=S(HV_NAMES[1],1);A(HV_NAMES[0],r,l),A(HV_NAMES[1],r,v);function S(w,E){var D={},$=0,N={},z=0,F=2;if(each$b(w,function(W){N[W]=r[W]}),each$b(w,function(W){x(t,W)&&(D[W]=N[W]=t[W]),T(D,W)&&$++,T(N,W)&&z++}),s[E])return T(t,w[1])?N[w[2]]=null:T(t,w[2])&&(N[w[1]]=null),N;if(z===F||!$)return N;if($>=F)return D;for(var B=0;B<w.length;B++){var G=w[B];if(!x(D,G)&&x(r,G)){D[G]=r[G];break}}return D}function x(w,E){return w.hasOwnProperty(E)}function T(w,E){return w[E]!=null&&w[E]!=="auto"}function A(w,E,D){each$b(w,function($){E[$]=D[$]})}}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 v=r.call(this,o,s,l)||this;return v.uid=getUID("ec_cpt_model"),v}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),v=l?getLayoutParams(o):{},S=s.getTheme();merge(o,S.get(this.mainType)),merge(o,this.getDefaultOption()),l&&mergeLayoutParam(o,v,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=[],v=o;v;){var S=v.prototype.defaultOption;S&&l.push(S),v=v.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",v=o+"Id";return queryReferringComponents(this.ecModel,o,{index:this.get(l,!0),id:this.get(v,!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 v=[],S=[],x=t.ecModel,T=innerGlobalModel(x).datasetMap,A=l.uid+"_"+o.seriesLayoutBy,w,E;r=r.slice(),each$c(r,function(z,F){var B=isObject$3(z)?z:r[F]={name:z};B.type==="ordinal"&&w==null&&(w=F,E=N(B)),s[B.name]=[]});var D=T.get(A)||T.set(A,{categoryWayDim:E,valueWayDim:0});each$c(r,function(z,F){var B=z.name,G=N(z);if(w==null){var W=D.valueWayDim;$(s[B],W,G),$(S,W,G),D.valueWayDim+=G}else if(w===F)$(s[B],0,G),$(v,0,G);else{var W=D.categoryWayDim;$(s[B],W,G),$(S,W,G),D.categoryWayDim+=G}});function $(z,F,B){for(var G=0;G<B;G++)z.push(F+G)}function N(z){var F=z.dimsDef;return F?F.length:1}return v.length&&(s.itemName=v),S.length&&(s.seriesName=S),s}function makeSeriesEncodeForNameBased(r,t,o){var s={},l=querySeriesUpstreamDatasetModel(r);if(!l)return s;var v=t.sourceFormat,S=t.dimensionsDefine,x;(v===SOURCE_FORMAT_OBJECT_ROWS||v===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(S,function(w,E){(isObject$3(w)?w.name:w)==="name"&&(x=E)});var T=function(){for(var w={},E={},D=[],$=0,N=Math.min(5,o);$<N;$++){var z=doGuessOrdinal(t.data,v,t.seriesLayoutBy,S,t.startIndex,$);D.push(z);var F=z===BE_ORDINAL.Not;if(F&&w.v==null&&$!==x&&(w.v=$),(w.n==null||w.n===w.v||!F&&D[w.n]===BE_ORDINAL.Not)&&(w.n=$),B(w)&&D[w.n]!==BE_ORDINAL.Not)return w;F||(z===BE_ORDINAL.Might&&E.v==null&&$!==x&&(E.v=$),(E.n==null||E.n===E.v)&&(E.n=$))}function B(G){return G.v!=null&&G.n!=null}return B(w)?w:B(E)?E:null}();if(T){s.value=[T.v];var A=x??T.n;s.itemName=[A],s.seriesName=[A]}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,v){var S,x=5;if(isTypedArray(r))return BE_ORDINAL.Not;var T,A;if(s){var w=s[v];isObject$3(w)?(T=w.name,A=w.type):isString(w)&&(T=w)}if(A!=null)return A==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(t===SOURCE_FORMAT_ARRAY_ROWS){var E=r;if(o===SERIES_LAYOUT_BY_ROW){for(var D=E[v],$=0;$<(D||[]).length&&$<x;$++)if((S=X(D[l+$]))!=null)return S}else for(var $=0;$<E.length&&$<x;$++){var N=E[l+$];if(N&&(S=X(N[v]))!=null)return S}}else if(t===SOURCE_FORMAT_OBJECT_ROWS){var z=r;if(!T)return BE_ORDINAL.Not;for(var $=0;$<z.length&&$<x;$++){var F=z[$];if(F&&(S=X(F[T]))!=null)return S}}else if(t===SOURCE_FORMAT_KEYED_COLUMNS){var B=r;if(!T)return BE_ORDINAL.Not;var D=B[T];if(!D||isTypedArray(D))return BE_ORDINAL.Not;for(var $=0;$<D.length&&$<x;$++)if((S=X(D[$]))!=null)return S}else if(t===SOURCE_FORMAT_ORIGINAL)for(var G=r,$=0;$<G.length&&$<x;$++){var F=G[$],W=getDataItemValue(F);if(!isArray$1(W))return BE_ORDINAL.Not;if((S=X(W[v]))!=null)return S}function X(ee){var Q=isString(ee);if(ee!=null&&isFinite(ee)&&ee!=="")return Q?BE_ORDINAL.Might:BE_ORDINAL.Not;if(Q&&ee!=="-")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)),v=this.get("colorLayer",!0);return getFromPalette(this,innerColor,l,v,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,v,S){v=v||r;var x=t(v),T=x.paletteIdx||0,A=x.paletteNameMap=x.paletteNameMap||{};if(A.hasOwnProperty(l))return A[l];var w=S==null||!s?o:getNearestPalette(s,S);if(w=w||o,!(!w||!w.length)){var E=w[T];return l&&(A[l]=E),x.paletteIdx=(T+1)%w.length,E}}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,v,S,x){v=v||{},this.option=null,this._theme=new Model$1(v),this._locale=new Model$1(S),this._optionManager=x},t.prototype.setOption=function(o,s,l){var v=normalizeSetOptionInput(s);this._optionManager.setOption(o,l,v),this._resetOption(null,v)},t.prototype.resetOption=function(o,s){return this._resetOption(o,normalizeSetOptionInput(s))},t.prototype._resetOption=function(o,s){var l=!1,v=this._optionManager;if(!o||o==="recreate"){var S=v.mountOption(o==="recreate");!this.option||o==="recreate"?initBase(this,S):(this.restoreData(),this._mergeOption(S,s)),l=!0}if((o==="timeline"||o==="media")&&this.restoreData(),!o||o==="recreate"||o==="timeline"){var x=v.getTimelineOption(this);x&&(l=!0,this._mergeOption(x,s))}if(!o||o==="recreate"||o==="media"){var T=v.getMediaOption(this);T.length&&each$c(T,function(A){l=!0,this._mergeOption(A,s)},this)}return l},t.prototype.mergeOption=function(o){this._mergeOption(o,null)},t.prototype._mergeOption=function(o,s){var l=this.option,v=this._componentsMap,S=this._componentsCount,x=[],T=createHashMap(),A=s&&s.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(o,function(E,D){E!=null&&(ComponentModel$1.hasClass(D)?D&&(x.push(D),T.set(D,!0)):l[D]=l[D]==null?clone$3(E):merge(l[D],E,!0))}),A&&A.each(function(E,D){ComponentModel$1.hasClass(D)&&!T.get(D)&&(x.push(D),T.set(D,!0))}),ComponentModel$1.topologicalTravel(x,ComponentModel$1.getAllClassMainTypes(),w,this);function w(E){var D=concatInternalOptions(this,E,normalizeToArray(o[E])),$=v.get(E),N=$?A&&A.get(E)?"replaceMerge":"normalMerge":"replaceAll",z=mappingToExists($,D,N);setComponentTypeToKeyInfo(z,E,ComponentModel$1),l[E]=null,v.set(E,null),S.set(E,0);var F=[],B=[],G=0,W;each$c(z,function(X,ee){var Q=X.existing,te=X.newOption;if(!te)Q&&(Q.mergeOption({},this),Q.optionUpdated({},!1));else{var ie=E==="series",le=ComponentModel$1.getClass(E,X.keyInfo.subType,!ie);if(!le)return;if(E==="tooltip"){if(W)return;W=!0}if(Q&&Q.constructor===le)Q.name=X.keyInfo.name,Q.mergeOption(te,this),Q.optionUpdated(te,!1);else{var pe=extend({componentIndex:ee},X.keyInfo);Q=new le(te,this,this,pe),extend(Q,pe),X.brandNew&&(Q.__requireNewView=!0),Q.init(te,this,this),Q.optionUpdated(null,!0)}}Q?(F.push(Q.option),B.push(Q),G++):(F.push(void 0),B.push(void 0))},this),l[E]=F,v.set(E,B),S.set(E,G),E==="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 v=normalizeToArray(s),S=v.length,x=!1,T=S-1;T>=0;T--)v[T]&&!isComponentIdInternal(v[T])?x=!0:(v[T]=null,!x&&S--);v.length=S,o[l]=v}}),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 v=l[s||0];if(v)return v;if(s==null){for(var S=0;S<l.length;S++)if(l[S])return l[S]}}},t.prototype.queryComponents=function(o){var s=o.mainType;if(!s)return[];var l=o.index,v=o.id,S=o.name,x=this._componentsMap.get(s);if(!x||!x.length)return[];var T;return l!=null?(T=[],each$c(normalizeToArray(l),function(A){x[A]&&T.push(x[A])})):v!=null?T=queryByIdOrName("id",v,x):S!=null?T=queryByIdOrName("name",S,x):T=filter(x,function(A){return!!A}),filterBySubType(T,o)},t.prototype.findComponents=function(o){var s=o.query,l=o.mainType,v=x(s),S=v?this.queryComponents(v):filter(this._componentsMap.get(l),function(A){return!!A});return T(filterBySubType(S,o));function x(A){var w=l+"Index",E=l+"Id",D=l+"Name";return A&&(A[w]!=null||A[E]!=null||A[D]!=null)?{mainType:l,index:A[w],id:A[E],name:A[D]}:null}function T(A){return o.filter?filter(A,o.filter):A}},t.prototype.eachComponent=function(o,s,l){var v=this._componentsMap;if(isFunction(o)){var S=s,x=o;v.each(function(E,D){for(var $=0;E&&$<E.length;$++){var N=E[$];N&&x.call(S,D,N,N.componentIndex)}})}else for(var T=isString(o)?v.get(o):isObject$3(o)?this.findComponents(o):null,A=0;T&&A<T.length;A++){var w=T[A];w&&s.call(l,w,w.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 v=this._componentsMap.get("series")[l];o.call(s,v,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(v){var S=this._componentsMap.get("series")[v];S.subType===o&&s.call(l,S,v)},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(v){var S=this._componentsMap.get("series")[v];o.call(s,S,v)&&l.push(v)},this),this._seriesIndices=l,this._seriesIndicesMap=createHashMap(l)},t.prototype.restoreData=function(o){reCreateSeriesIndices(this);var s=this._componentsMap,l=[];s.each(function(v,S){ComponentModel$1.hasClass(S)&&l.push(S)}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),function(v){each$c(s.get(v),function(S){S&&(v!=="series"||!isNotTargetSeries(S,o))&&S.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(v){if(v!=null){var S=convertOptionIdName(v,null);S!=null&&s.set(v,!0)}}),filter(o,function(v){return v&&s.get(v[r])})}else{var l=convertOptionIdName(t,null);return filter(o,function(v){return v&&l!=null&&v[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,v){var S=l.create(t,o);s=s.concat(S||[])}),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(S){S&&S.data&&isTypedArray(S.data)&&setAsPrimitive(S.data)}),each$c(normalizeToArray(t.dataset),function(S){S&&S.source&&isTypedArray(S.source)&&setAsPrimitive(S.source)})),t=clone$3(t);var l=this._optionBackup,v=parseRawOption(t,o,!l);this._newBaseOption=v.baseOption,l?(v.timelineOptions.length&&(l.timelineOptions=v.timelineOptions),v.mediaList.length&&(l.mediaList=v.mediaList),v.mediaDefault&&(l.mediaDefault=v.mediaDefault)):this._optionBackup=v},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,v=this._mediaDefault,S=[],x=[];if(!l.length&&!v)return x;for(var T=0,A=l.length;T<A;T++)applyMediaQuery(l[T].query,o,s)&&S.push(T);return!S.length&&v&&(S=[-1]),S.length&&!indicesEquals(S,this._currentMediaIndices)&&(x=map$2(S,function(w){return clone$3(w===-1?v.option:l[w].option)})),this._currentMediaIndices=S,x},r}();function parseRawOption(r,t,o){var s=[],l,v,S=r.baseOption,x=r.timeline,T=r.options,A=r.media,w=!!r.media,E=!!(T||x||S&&S.timeline);S?(v=S,v.timeline||(v.timeline=x)):((E||w)&&(r.options=r.media=null),v=r),w&&isArray$1(A)&&each$c(A,function($){$&&$.option&&($.query?s.push($):l||(l=$))}),D(v),each$c(T,function($){return D($)}),each$c(s,function($){return D($.option)});function D($){each$c(t,function(N){N($,o)})}return{baseOption:v,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(v,S){var x=S.match(QUERY_REG);if(!(!x||!x[1]||!x[2])){var T=x[1],A=x[2].toLowerCase();compare(s[A],v,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],v=t.normal,S=t.emphasis;v&&v[l]&&(r[l]=r[l]||{},r[l].normal?merge(r[l].normal,v[l]):r[l].normal=v[l],v[l]=null),S&&S[l]&&(r[l]=r[l]||{},r[l].emphasis?merge(r[l].emphasis,S[l]):r[l].emphasis=S[l],S[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,v=TEXT_STYLE_OPTIONS.length;l<v;l++){var S=TEXT_STYLE_OPTIONS[l];s.hasOwnProperty(S)&&(o[S]=s[S])}}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 v=r.links||r.edges;if(v&&!isTypedArray(v))for(var S=0;S<v.length;S++)compatEC3CommonStyles(v[S]);each$c(r.categories,function(A){removeEC3NormalStatus(A)})}if(l&&!isTypedArray(l))for(var S=0;S<l.length;S++)compatEC3CommonStyles(l[S]);if(t=r.markPoint,t&&t.data)for(var x=t.data,S=0;S<x.length;S++)compatEC3CommonStyles(x[S]);if(o=r.markLine,o&&o.data)for(var T=o.data,S=0;S<T.length;S++)isArray$1(T[S])?(compatEC3CommonStyles(T[S][0]),compatEC3CommonStyles(T[S][1])):compatEC3CommonStyles(T[S]);r.type==="gauge"?(compatTextStyle(r,"axisLabel"),compatTextStyle(r,"title"),compatTextStyle(r,"detail")):r.type==="treemap"?(convertNormalEmphasis(r.breadcrumb,"itemStyle"),each$c(r.levels,function(A){removeEC3NormalStatus(A)})):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(v){isObject$3(v)&&(convertNormalEmphasis(v,"label"),convertNormalEmphasis(v,"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(","),v=r,S,x=0;x<l.length-1;x++)S=l[x],v[S]==null&&(v[S]={}),v=v[S];(s||v[l[x]]==null)&&(v[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 v=0;v<l.length;v++)compatPieLabel(l[v]);o.hoverOffset!=null&&(o.emphasis=o.emphasis||{},(o.emphasis.scaleSize=null)&&(o.emphasis.scaleSize=o.hoverOffset))}else if(s==="gauge"){var S=get(o,"pointer.color");S!=null&&set(o,"itemStyle.color",S)}else if(s==="bar"){compatBarItemStyle(o),compatBarItemStyle(o.backgroundStyle),compatBarItemStyle(o.emphasis);var l=o.data;if(l&&!isTypedArray(l))for(var v=0;v<l.length;v++)typeof l[v]=="object"&&(compatBarItemStyle(l[v]),compatBarItemStyle(l[v]&&l[v].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,[]),v=o.getData(),S={stackResultDimension:v.getCalculationInfo("stackResultDimension"),stackedOverDimension:v.getCalculationInfo("stackedOverDimension"),stackedDimension:v.getCalculationInfo("stackedDimension"),stackedByDimension:v.getCalculationInfo("stackedByDimension"),isStackedByIndex:v.getCalculationInfo("isStackedByIndex"),data:v,seriesModel:o};if(!S.stackedDimension||!(S.isStackedByIndex||S.stackedByDimension))return;l.length&&v.setCalculationInfo("stackedOnSeries",l[l.length-1].seriesModel),l.push(S)}}),t.each(calculateStack)}function calculateStack(r){each$c(r,function(t,o){var s=[],l=[NaN,NaN],v=[t.stackResultDimension,t.stackedOverDimension],S=t.data,x=t.isStackedByIndex,T=t.seriesModel.get("stackStrategy")||"samesign";S.modify(v,function(A,w,E){var D=S.get(t.stackedDimension,E);if(isNaN(D))return l;var $,N;x?N=S.getRawIndex(E):$=S.get(t.stackedByDimension,E);for(var z=NaN,F=o-1;F>=0;F--){var B=r[F];if(x||(N=B.data.rawIndexOf(B.stackedByDimension,$)),N>=0){var G=B.data.getByRawIndex(B.stackResultDimension,N);if(T==="all"||T==="positive"&&G>0||T==="negative"&&G<0||T==="samesign"&&D>=0&&G>0||T==="samesign"&&D<=0&&G<0){D=addSafe(D,G),z=G;break}}}return s[0]=D,s[1]=z,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),v=new SourceImpl({data:r,sourceFormat:o,seriesLayoutBy:s,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:clone$3(t)});return v}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 v in r)if(hasOwn(r,v)&&isArrayLike(r[v])){t=SOURCE_FORMAT_KEYED_COLUMNS;break}}return t}function determineSourceDimensions(r,t,o,s,l){var v,S;if(!r)return{dimensionsDefine:normalizeDimensionsOption(l),startIndex:S,dimensionsDetectedCount:v};if(t===SOURCE_FORMAT_ARRAY_ROWS){var x=r;s==="auto"||s==null?arrayRowsTravelFirst(function(A){A!=null&&A!=="-"&&(isString(A)?S==null&&(S=1):S=0)},o,x,10):S=isNumber(s)?s:s?1:0,!l&&S===1&&(l=[],arrayRowsTravelFirst(function(A,w){l[w]=A!=null?A+"":""},o,x,1/0)),v=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(A,w){l.push(w)}));else if(t===SOURCE_FORMAT_ORIGINAL){var T=getDataItemValue(r[0]);v=isArray$1(T)&&T.length||1}return{startIndex:S,dimensionsDefine:normalizeDimensionsOption(l),dimensionsDetectedCount:v}}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 v=t.get(l.name);return v?l.name+="-"+v.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 v=o[0]||[],l=0;l<v.length&&l<s;l++)r(v[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(S,x,T){var A=T.sourceFormat,w=T.seriesLayoutBy,E=T.startIndex,D=T.dimensionsDefine,$=providerMethods[getMethodMapKey(A,w)];if(extend(S,$),A===SOURCE_FORMAT_TYPED_ARRAY)S.getItem=o,S.count=l,S.fillStorage=s;else{var N=getRawSourceItemGetter(A,w);S.getItem=bind$1(N,null,x,E,D);var z=getRawSourceDataCounter(A,w);S.count=bind$1(z,null,x,E,D)}};var o=function(S,x){S=S-this._offset,x=x||[];for(var T=this._data,A=this._dimSize,w=A*S,E=0;E<A;E++)x[E]=T[w+E];return x},s=function(S,x,T,A){for(var w=this._data,E=this._dimSize,D=0;D<E;D++){for(var $=A[D],N=$[0]==null?1/0:$[0],z=$[1]==null?-1/0:$[1],F=x-S,B=T[D],G=0;G<F;G++){var W=w[G*E+D];B[S+G]=W,W<N&&(N=W),W>z&&(z=W)}$[0]=N,$[1]=z}},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:v},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:v},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(S){var x=this._data;each$c(S,function(T,A){for(var w=x[A]||(x[A]=[]),E=0;E<(T||[]).length;E++)w.push(T[E])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:v},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(S){this._data=S},clean:function(){this._offset+=this.count(),this._data=null}},t);function v(S){for(var x=0;x<S.length;x++)this._data.push(S[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 v=l||[],S=r,x=0;x<S.length;x++){var T=S[x];v[x]=T?T[s]:null}return v},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(r,t,o,s,l){for(var v=l||[],S=0;S<o.length;S++){var x=o[S].name,T=r[x];v[S]=T?T[s]:null}return v},_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(),v=l.getSource().sourceFormat;if(o!=null){var S=r.getDimensionIndex(o),x=l.getDimensionProperty(S);return getRawSourceValueGetter(v)(s,S,x)}else{var T=s;return v===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),v=s.getRawIndex(t),S=s.getName(t),x=s.getRawDataItem(t),T=s.getItemVisual(t,"style"),A=T&&T[s.getItemVisual(t,"drawType")||"fill"],w=T&&T.stroke,E=this.mainType,D=E==="series",$=s.userOutput&&s.userOutput.get();return{componentType:E,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:D?this.subType:null,seriesIndex:this.seriesIndex,seriesId:D?this.id:null,seriesName:D?this.name:null,name:S,dataIndex:v,data:x,dataType:o,value:l,color:A,borderColor:w,dimensionNames:$?$.fullDimensions:null,encode:$?$.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,o,s,l,v,S){o=o||"normal";var x=this.getData(s),T=this.getDataParams(t,s);if(S&&(T.value=S.interpolatedValue),l!=null&&isArray$1(T.value)&&(T.value=T.value[l]),!v){var A=x.getItemModel(t);v=A.get(o==="normal"?["label","formatter"]:[o,"label","formatter"])}if(isFunction(v))return T.status=o,T.dimensionIndex=l,v(T);if(isString(v)){var w=formatTpl(v,T);return w.replace(DIMENSION_LABEL_REG,function(E,D){var $=D.length,N=D;N.charAt(0)==="["&&N.charAt($-1)==="]"&&(N=+N.slice(1,$-1));var z=retrieveRawValue(x,t,N);if(S&&isArray$1(S.interpolatedValue)){var F=x.getDimensionIndex(N);F>=0&&(z=S.interpolatedValue[F])}return z!=null?z+"":""})}},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 v;this._plan&&!s&&(v=this._plan(this.context));var S=w(this._modBy),x=this._modDataCount||0,T=w(t&&t.modBy),A=t&&t.modDataCount||0;(S!==T||x!==A)&&(v="reset");function w(G){return!(G>=1)&&(G=1),G}var E;(this._dirty||v==="reset")&&(this._dirty=!1,E=this._doReset(s)),this._modBy=T,this._modDataCount=A;var D=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var $=this._dueIndex,N=Math.min(D!=null?this._dueIndex+D:1/0,this._dueEnd);if(!s&&(E||$<N)){var z=this._progress;if(isArray$1(z))for(var F=0;F<z.length;F++)this._doProgress(z[F],$,N,T,A);else this._doProgress(z,$,N,T,A)}this._dueIndex=N;var B=this._settedOutputEnd!=null?this._settedOutputEnd:N;this._outputDueEnd=B}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,v){iterator.reset(o,s,l,v),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,v={reset:function(T,A,w,E){t=T,r=A,o=w,s=E,l=Math.ceil(s/o),v.next=o>1&&s>0?x:S}};return v;function S(){return t<r?t++:null}function x(){var T=t%l*o+Math.ceil(t/l),A=t>=r?null:T<s?T:t;return t++,A}}();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),v=isNaN(s),S=isNaN(l);if(v&&(s=this._incomparable),S&&(l=this._incomparable),v&&S){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,v=r.startIndex,S="";r.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(S);var x=[],T={},A=r.dimensionsDefine;if(A)each$c(A,function(z,F){var B=z.name,G={index:F,name:B,displayName:z.displayName};if(x.push(G),B!=null){var W="";hasOwn(T,B)&&throwError(W),T[B]=G}});else for(var w=0;w<r.dimensionsDetectedCount;w++)x.push({index:w});var E=getRawSourceItemGetter(l,SERIES_LAYOUT_BY_COLUMN);t.__isBuiltIn&&(o.getRawDataItem=function(z){return E(s,v,x,z)},o.getRawData=bind$1(getRawData,null,r)),o.cloneRawData=bind$1(cloneRawData,null,r);var D=getRawSourceDataCounter(l,SERIES_LAYOUT_BY_COLUMN);o.count=bind$1(D,null,s,v,x);var $=getRawSourceValueGetter(l);o.retrieveValue=function(z,F){var B=E(s,v,x,z);return N(B,F)};var N=o.retrieveValueFromItem=function(z,F){if(z!=null){var B=x[F];if(B)return $(z,F,B.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=[],v=0,S=o.length;v<S;v++)l.push(o[v].slice());return l}else if(t===SOURCE_FORMAT_OBJECT_ROWS){for(var l=[],v=0,S=o.length;v<S;v++)l.push(extend({},o[v]));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,v="";l||throwError(v);for(var S=0,x=l;S<x;S++){var T=s[S];t=applySingleDataTransform(T,t),S!==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 v=r.type,S=externalTransformMap.get(v);S||throwError(l);var x=map$2(t,function(A){return createExternalSource(A,S)}),T=normalizeToArray(S.transform({upstream:x[0],upstreamList:x,config:clone$3(r.config)}));return map$2(T,function(A,w){var E="";isObject$3(A)||throwError(E),A.data||throwError(E);var D=detectSourceFormat(A.data);isSupportedSourceFormat(D)||throwError(E);var $,N=t[0];if(N&&w===0&&!A.dimensions){var z=N.startIndex;z&&(A.data=N.data.slice(0,z).concat(A.data)),$={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:z,dimensions:N.metaRawOption.dimensions}}else $={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:A.dimensions};return createSource(A.data,$,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 v=dataCtors[o||"float"];if(l){var S=r[t],x=S&&S.length;if(x!==s){for(var T=new v(s),A=0;A<x;A++)T[A]=S[A];r[t]=T}}else r[t]=new v(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(),v=this.defaultDimValueGetter=defaultDimValueGetters[l.sourceFormat];this._dimValueGetter=s||v,this._rawExtent=[],shouldRetrieveDataByName(l),this._dimensions=map$2(o,function(S){return{type:S.type,property:S.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,v=s.get(t);if(v!=null){if(l[v].type===o)return v}else v=l.length;return l[v]={type:o},s.set(t,v),this._chunks[v]=new dataCtors[o||"float"](this._rawCount),this._rawExtent[v]=getInitialExtent(),v},r.prototype.collectOrdinalMeta=function(t,o){var s=this._chunks[t],l=this._dimensions[t],v=this._rawExtent,S=l.ordinalOffset||0,x=s.length;S===0&&(v[t]=getInitialExtent());for(var T=v[t],A=S;A<x;A++){var w=s[A]=o.parseAndCollect(s[A]);isNaN(w)||(T[0]=Math.min(w,T[0]),T[1]=Math.max(w,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,v=l.length,S=this._rawExtent,x=this.count(),T=x+Math.max(t.length,o||0),A=0;A<v;A++){var w=l[A];prepareStore(s,A,w.type,T,!0)}for(var E=[],D=x;D<T;D++)for(var $=D-x,N=0;N<v;N++){var w=l[N],z=defaultDimValueGetters.arrayRows.call(this,t[$]||E,w.property,$,N);s[N][D]=z;var F=S[N];z<F[0]&&(F[0]=z),z>F[1]&&(F[1]=z)}return this._rawCount=this._count=T,{start:x,end:T}},r.prototype._initDataFromProvider=function(t,o,s){for(var l=this._provider,v=this._chunks,S=this._dimensions,x=S.length,T=this._rawExtent,A=map$2(S,function(G){return G.property}),w=0;w<x;w++){var E=S[w];T[w]||(T[w]=getInitialExtent()),prepareStore(v,w,E.type,o,s)}if(l.fillStorage)l.fillStorage(t,o,v,T);else for(var D=[],$=t;$<o;$++){D=l.getItem($,D);for(var N=0;N<x;N++){var z=v[N],F=this._dimValueGetter(D,A[N],$,N);z[$]=F;var B=T[N];F<B[0]&&(B[0]=F),F>B[1]&&(B[1]=F)}}!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 v=0;v<this._dimensions.length;v++)l.push(v)}else l=t;for(var v=0,S=l.length;v<S;v++)s.push(this.get(l[v],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,v=this.count();l<v;l++){var S=this.get(t,l);isNaN(S)||(s+=S)}return s},r.prototype.getMedian=function(t){var o=[];this.each([t],function(v){isNaN(v)||o.push(v)});var s=o.sort(function(v,S){return v-S}),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,v=this._count-1;l<=v;){var S=(l+v)/2|0;if(o[S]<t)l=S+1;else if(o[S]>t)v=S-1;else return S}return-1},r.prototype.indicesOfNearest=function(t,o,s){var l=this._chunks,v=l[t],S=[];if(!v)return S;s==null&&(s=1/0);for(var x=1/0,T=-1,A=0,w=0,E=this.count();w<E;w++){var D=this.getRawIndex(w),$=o-v[D],N=Math.abs($);N<=s&&((N<x||N===x&&$>=0&&T<0)&&(x=N,T=$,A=0),$===T&&(S[A++]=w))}return S.length=A,S},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 v=0;v<l;v++)t[v]=o[v]}else t=new s(o.buffer,0,l)}else{var s=getIndicesCtor(this._rawCount);t=new s(this.count());for(var v=0;v<t.length;v++)t[v]=v}return t},r.prototype.filter=function(t,o){if(!this._count)return this;for(var s=this.clone(),l=s.count(),v=getIndicesCtor(s._rawCount),S=new v(l),x=[],T=t.length,A=0,w=t[0],E=s._chunks,D=0;D<l;D++){var $=void 0,N=s.getRawIndex(D);if(T===0)$=o(D);else if(T===1){var z=E[w][N];$=o(z,D)}else{for(var F=0;F<T;F++)x[F]=E[t[F]][N];x[F]=D,$=o.apply(null,x)}$&&(S[A++]=N)}return A<l&&(s._indices=S),s._count=A,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),v=l.length;if(!v)return this;var S=o.count(),x=getIndicesCtor(o._rawCount),T=new x(S),A=0,w=l[0],E=t[w][0],D=t[w][1],$=o._chunks,N=!1;if(!o._indices){var z=0;if(v===1){for(var F=$[l[0]],B=0;B<s;B++){var G=F[B];(G>=E&&G<=D||isNaN(G))&&(T[A++]=z),z++}N=!0}else if(v===2){for(var F=$[l[0]],W=$[l[1]],X=t[l[1]][0],ee=t[l[1]][1],B=0;B<s;B++){var G=F[B],Q=W[B];(G>=E&&G<=D||isNaN(G))&&(Q>=X&&Q<=ee||isNaN(Q))&&(T[A++]=z),z++}N=!0}}if(!N)if(v===1)for(var B=0;B<S;B++){var te=o.getRawIndex(B),G=$[l[0]][te];(G>=E&&G<=D||isNaN(G))&&(T[A++]=te)}else for(var B=0;B<S;B++){for(var ie=!0,te=o.getRawIndex(B),le=0;le<v;le++){var pe=l[le],G=$[pe][te];(G<t[pe][0]||G>t[pe][1])&&(ie=!1)}ie&&(T[A++]=o.getRawIndex(B))}return A<S&&(o._indices=T),o._count=A,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,v=[],S=o.length,x=t.count(),T=[],A=t._rawExtent,w=0;w<o.length;w++)A[o[w]]=getInitialExtent();for(var E=0;E<x;E++){for(var D=t.getRawIndex(E),$=0;$<S;$++)T[$]=l[o[$]][D];T[S]=E;var N=s&&s.apply(null,T);if(N!=null){typeof N!="object"&&(v[0]=N,N=v);for(var w=0;w<N.length;w++){var z=o[w],F=N[w],B=A[z],G=l[z];G&&(G[D]=F),F<B[0]&&(B[0]=F),F>B[1]&&(B[1]=F)}}}},r.prototype.lttbDownSample=function(t,o){var s=this.clone([t],!0),l=s._chunks,v=l[t],S=this.count(),x=0,T=Math.floor(1/o),A=this.getRawIndex(0),w,E,D,$=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(S/T)+2)*2,S));$[x++]=A;for(var N=1;N<S-1;N+=T){for(var z=Math.min(N+T,S-1),F=Math.min(N+T*2,S),B=(F+z)/2,G=0,W=z;W<F;W++){var X=this.getRawIndex(W),ee=v[X];isNaN(ee)||(G+=ee)}G/=F-z;var Q=N,te=Math.min(N+T,S),ie=N-1,le=v[A];w=-1,D=Q;for(var pe=-1,ue=0,W=Q;W<te;W++){var X=this.getRawIndex(W),ee=v[X];if(isNaN(ee)){ue++,pe<0&&(pe=X);continue}E=Math.abs((ie-B)*(ee-le)-(ie-W)*(G-le)),E>w&&(w=E,D=X)}ue>0&&ue<te-Q&&($[x++]=Math.min(pe,D),D=Math.max(pe,D)),$[x++]=D,A=D}return $[x++]=this.getRawIndex(S-1),s._count=x,s._indices=$,s.getRawIndex=this._getRawIdx,s},r.prototype.downSample=function(t,o,s,l){for(var v=this.clone([t],!0),S=v._chunks,x=[],T=Math.floor(1/o),A=S[t],w=this.count(),E=v._rawExtent[t]=getInitialExtent(),D=new(getIndicesCtor(this._rawCount))(Math.ceil(w/T)),$=0,N=0;N<w;N+=T){T>w-N&&(T=w-N,x.length=T);for(var z=0;z<T;z++){var F=this.getRawIndex(N+z);x[z]=A[F]}var B=s(x),G=this.getRawIndex(Math.min(N+l(x,B)||0,w-1));A[G]=B,B<E[0]&&(E[0]=B),B>E[1]&&(E[1]=B),D[$++]=G}return v._count=$,v._indices=D,v._updateGetRawIdx(),v},r.prototype.each=function(t,o){if(this._count)for(var s=t.length,l=this._chunks,v=0,S=this.count();v<S;v++){var x=this.getRawIndex(v);switch(s){case 0:o(v);break;case 1:o(l[t[0]][x],v);break;case 2:o(l[t[0]][x],l[t[1]][x],v);break;default:for(var T=0,A=[];T<s;T++)A[T]=l[t[T]][x];A[T]=v,o.apply(null,A)}}},r.prototype.getDataExtent=function(t){var o=this._chunks[t],s=getInitialExtent();if(!o)return s;var l=this.count(),v=!this._indices,S;if(v)return this._rawExtent[t].slice();if(S=this._extent[t],S)return S.slice();S=s;for(var x=S[0],T=S[1],A=0;A<l;A++){var w=this.getRawIndex(A),E=o[w];E<x&&(x=E),E>T&&(T=E)}return S=[x,T],this._extent[t]=S,S},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,v=0;v<l.length;v++)s.push(l[v][o]);return s},r.prototype.clone=function(t,o){var s=new r,l=this._chunks,v=t&&reduce(t,function(x,T){return x[T]=!0,x},{});if(v)for(var S=0;S<l.length;S++)s._chunks[S]=v[S]?cloneChunk(l[S]):l[S];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,v){return parseDataValue(o[v],this._dimensions[v])}defaultDimValueGetters={arrayRows:t,objectRows:function(o,s,l,v){return parseDataValue(o[s],this._dimensions[v])},keyedColumns:t,original:function(o,s,l,v){var S=o&&(o.value==null?o:o.value);return parseDataValue(S instanceof Array?S[v]:S,this._dimensions[v])},typedArray:function(o,s,l,v){return o[v]}}}(),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,v;if(isSeries(t)){var S=t,x=void 0,T=void 0,A=void 0;if(s){var w=o[0];w.prepareSource(),A=w.getSource(),x=A.data,T=A.sourceFormat,v=[w._getVersionSign()]}else x=S.get("data",!0),T=isTypedArray(x)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,v=[];var E=this._getSourceMetaRawOption()||{},D=A&&A.metaRawOption||{},$=retrieve2(E.seriesLayoutBy,D.seriesLayoutBy)||null,N=retrieve2(E.sourceHeader,D.sourceHeader),z=retrieve2(E.dimensions,D.dimensions),F=$!==D.seriesLayoutBy||!!N!=!!D.sourceHeader||z;l=F?[createSource(x,{seriesLayoutBy:$,sourceHeader:N,dimensions:z},T)]:[]}else{var B=t;if(s){var G=this._applyTransform(o);l=G.sourceList,v=G.upstreamSignList}else{var W=B.get("source",!0);l=[createSource(W,this._getSourceMetaRawOption(),null)],v=[]}}this._setLocalSource(l,v)},r.prototype._applyTransform=function(t){var o=this._sourceHost,s=o.get("transform",!0),l=o.get("fromTransformResult",!0);if(l!=null){var v="";t.length!==1&&doThrow(v)}var S,x=[],T=[];return each$c(t,function(A){A.prepareSource();var w=A.getSource(l||0),E="";l!=null&&!w&&doThrow(E),x.push(w),T.push(A._getVersionSign())}),s?S=applyDataTransform(s,x,{datasetIndex:o.componentIndex}):l!=null&&(S=[cloneSourceShallow(x[0])]),{sourceList:S,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,v=this._storeList,S=v[l];S||(S=v[l]={});var x=S[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)),S[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 v=t;o=v.get("seriesLayoutBy",!0),s=v.get("sourceHeader",!0),l=v.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",v=r.color||"#464646",S=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(S+"")+"px;color:"+encodeHTML(v)+";font-weight:"+encodeHTML(x+"")}:{nameStyle:{fontSize:s,fill:o,fontWeight:l},valueStyle:{fontSize:S,fill:v,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 v=getBlockGapLevel(l);v>=t&&(t=v+ +(s&&(!v||isSectionFragment(l)&&!l.noHeader)))}),t}return 0}function buildSection(r,t,o,s){var l=t.noHeader,v=getGap(getBlockGapLevel(t)),S=[],x=t.blocks||[];assert(!x||isArray$1(x)),x=x||[];var T=r.orderMode;if(t.sortBlocks&&T){x=x.slice();var A={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(A,T)){var w=new SortOrderComparator(A[T],null);x.sort(function(N,z){return w.evaluate(N.sortParam,z.sortParam)})}else T==="seriesDesc"&&x.reverse()}each$c(x,function(N,z){var F=t.valueFormatter,B=getBuilder(N)(F?extend(extend({},r),{valueFormatter:F}):r,N,z>0?v.html:0,s);B!=null&&S.push(B)});var E=r.renderMode==="richText"?S.join(v.richText):wrapBlockHTML(S.join(""),l?o:v.html);if(l)return E;var D=makeValueReadable(t.header,"ordinal",r.useUTC),$=getTooltipTextStyle(s,r.renderMode).nameStyle;return r.renderMode==="richText"?wrapInlineNameRichText(r,D,$)+v.richText+E:wrapBlockHTML('<div style="'+$+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(D)+"</div>"+E,o)}function buildNameValue(r,t,o,s){var l=r.renderMode,v=t.noName,S=t.noValue,x=!t.markerType,T=t.name,A=r.useUTC,w=t.valueFormatter||r.valueFormatter||function(X){return X=isArray$1(X)?X:[X],map$2(X,function(ee,Q){return makeValueReadable(ee,isArray$1($)?$[Q]:$,A)})};if(!(v&&S)){var E=x?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",l),D=v?"":makeValueReadable(T,"ordinal",A),$=t.valueType,N=S?[]:w(t.value),z=!x||!v,F=!x&&v,B=getTooltipTextStyle(s,l),G=B.nameStyle,W=B.valueStyle;return l==="richText"?(x?"":E)+(v?"":wrapInlineNameRichText(r,D,G))+(S?"":wrapInlineValueRichText(r,N,z,F,W)):wrapBlockHTML((x?"":E)+(v?"":wrapInlineNameHTML(D,!x,G))+(S?"":wrapInlineValueHTML(N,z,F,W)),o)}}function buildTooltipMarkup(r,t,o,s,l,v){if(r){var S=getBuilder(r),x={useUTC:l,renderMode:o,orderMode:s,markupStyleCreator:t,valueFormatter:r.valueFormatter};return S(x,r,0,v)}}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",v=t?"float:right;margin-left:"+l:"";return r=isArray$1(r)?r:[r],'<span style="'+v+";"+s+'">'+map$2(r,function(S){return encodeHTML(S)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText(r,t,o){return r.markupStyleCreator.wrapRichTextStyle(t,o)}function wrapInlineValueRichText(r,t,o,s,l){var v=[l],S=s?10:20;return o&&v.push({padding:[0,0,0,S],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(isArray$1(t)?t.join(" "):t,v)}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,v=getTooltipMarker({color:o,type:t,renderMode:s,markerId:l});return isString(v)?v:(this.richTextStyles[l]=v.style,v.content)},r.prototype.wrapRichTextStyle=function(t,o){var s={};isArray$1(o)?each$c(o,function(v){return extend(s,v)}):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(),v=l.mapDimensionsAll("defaultedTooltip"),S=v.length,x=t.getRawValue(o),T=isArray$1(x),A=retrieveVisualColorForTooltipMarker(t,o),w,E,D,$;if(S>1||T&&!S){var N=formatTooltipArrayValue(x,t,o,v,A);w=N.inlineValues,E=N.inlineValueTypes,D=N.blocks,$=N.inlineValues[0]}else if(S){var z=l.getDimensionInfo(v[0]);$=w=retrieveRawValue(l,o,v[0]),E=z.type}else $=w=T?x[0]:x;var F=isNameSpecified(t),B=F&&t.name||"",G=l.getName(o),W=s?B:G;return createTooltipMarkup("section",{header:B,noHeader:s||!F,sortParam:$,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:A,name:W,noName:!trim$1(W),value:w,valueType:E})].concat(D||[])})}function formatTooltipArrayValue(r,t,o,s,l){var v=t.getData(),S=reduce(r,function(E,D,$){var N=v.getDimensionInfo($);return E=E||N&&N.tooltip!==!1&&N.displayName!=null},!1),x=[],T=[],A=[];s.length?each$c(s,function(E){w(retrieveRawValue(v,o,E),E)}):each$c(r,w);function w(E,D){var $=v.getDimensionInfo(D);!$||$.otherDims.tooltip===!1||(S?A.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:l,name:$.displayName,value:E,valueType:$.type})):(x.push(E),T.push($.type)))}return{inlineValues:x,inlineValueTypes:T,blocks:A}}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 v=inner$b(this).sourceManager=new SourceManager(this);v.prepareSource();var S=this.getInitialData(o,l);wrapData(S,this),this.dataTask.context.data=S,inner$b(this).dataBeforeProcessed=S,autoSeriesName(this),this._initSelectedMapFromData(S)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),v=l?getLayoutParams(o):{},S=this.subType;ComponentModel$1.hasClass(S)&&(S+="Series"),merge(o,s.getTheme().get(this.subType)),merge(o,this.getDefaultOption()),defaultEmphasis(o,"label",["show"]),this.fillDataTextStyle(o.data),l&&mergeLayoutParam(o,v,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 v=inner$b(this).sourceManager;v.dirty(),v.prepareSource();var S=this.getInitialData(o,s);wrapData(S,this),this.dataTask.dirty(),this.dataTask.context.data=S,inner$b(this).dataBeforeProcessed=S,autoSeriesName(this),this._initSelectedMapFromData(S)},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 v=this.ecModel,S=PaletteMixin.prototype.getColorFromPalette.call(this,o,s,l);return S||(S=v.getColorFromPalette(o,s,l)),S},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 v=this.option.selectedMode,S=this.getData(s);if(v==="series"||l==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var x=0;x<o.length;x++){var T=o[x],A=getSelectionKey(S,T);l[A]=!1,this._selectedDataIndicesMap[A]=-1}}},t.prototype.toggleSelect=function(o,s){for(var l=[],v=0;v<o.length;v++)l[0]=o[v],this.isSelected(o[v],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=[],v=0;v<s.length;v++){var S=o[s[v]];S>=0&&l.push(S)}return l},t.prototype.isSelected=function(o,s){var l=this.option.selectedMap;if(!l)return!1;var v=this.getData(s);return(l==="all"||l[getSelectionKey(v,o)])&&!v.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,v,S=this.option,x=S.selectedMode,T=s.length;if(!(!x||!T)){if(x==="series")S.selectedMap="all";else if(x==="multiple"){isObject$3(S.selectedMap)||(S.selectedMap={});for(var A=S.selectedMap,w=0;w<T;w++){var E=s[w],D=getSelectionKey(o,E);A[D]=!0,this._selectedDataIndicesMap[D]=o.getRawIndex(E)}}else if(x==="single"||x===!0){var $=s[T-1],D=getSelectionKey(o,$);S.selectedMap=(l={},l[D]=!0,l),this._selectedDataIndicesMap=(v={},v[D]=o.getRawIndex($),v)}}},t.prototype._initSelectedMapFromData=function(o){if(!this.option.selectedMap){var s=[];o.hasItemOption&&o.each(function(l){var v=o.getRawDataItem(l);v&&v.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 v=t.getDimensionInfo(l);v.displayName&&s.push(v.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,v=!!o.progressiveRender,S=o.large=!!(s&&s.large),x=o.progressiveRender=!!(s&&s.progressiveRender);return(l!==S||v!==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 v=t.getData(l&&l.dataType);v&&toggleHighlight(v,l,"emphasis")},r.prototype.downplay=function(t,o,s,l){var v=t.getData(l&&l.dataType);v&&toggleHighlight(v,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(v){elSetState(r.getItemGraphicEl(v),o,l)}):r.eachItemGraphicEl(function(v){elSetState(v,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,v=t.pipelineContext.progressiveRender,S=r.view,x=l&&inner$a(l).updateMethod,T=v?"incrementalPrepareRender":x&&S[x]?x:"render";return T!=="render"&&S[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,v=0,S=null,x,T,A,w;t=t||0;function E(){v=new Date().getTime(),S=null,r.apply(T,A||[])}var D=function(){for(var $=[],N=0;N<arguments.length;N++)$[N]=arguments[N];s=new Date().getTime(),T=this,A=$;var z=w||t,F=w||o;w=null,x=s-(F?l:v)-z,clearTimeout(S),F?S=setTimeout(E,z):x>=0?E():S=setTimeout(E,-x),l=s};return D.clear=function(){S&&(clearTimeout(S),S=null)},D.debounceNextCall=function($){w=$},D}function createOrUpdate(r,t,o,s){var l=r[t];if(l){var v=l[ORIGIN_METHOD]||l,S=l[THROTTLE_TYPE],x=l[RATE];if(x!==o||S!==s){if(o==null||!s)return r[t]=v;l=r[t]=throttle(v,o,s==="debounce"),l[ORIGIN_METHOD]=v,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),v=getStyleMapper(r,s),S=v(l),x=l.getShallow("decal");x&&(o.setVisual("decal",x),x.dirty=!0);var T=getDefaultColorKey(r,s),A=S[T],w=isFunction(A)?A:null,E=S.fill==="auto"||S.stroke==="auto";if(!S[T]||w||E){var D=r.getColorFromPalette(r.name,null,t.getSeriesCount());S[T]||(S[T]=D,o.setVisual("colorFromPalette",!0)),S.fill=S.fill==="auto"||isFunction(S.fill)?D:S.fill,S.stroke=S.stroke==="auto"||isFunction(S.stroke)?D:S.stroke}if(o.setVisual("style",S),o.setVisual("drawType",T),!t.isSeriesFiltered(r)&&w)return o.setVisual("colorFromPalette",!1),{dataEach:function($,N){var z=r.getDataParams(N),F=extend({},S);F[T]=w(z),$.setItemVisual(N,"style",F)}}}},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),v=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(S,x){var T=S.getRawDataItem(x);if(T&&T[s]){sharedModel.option=T[s];var A=l(sharedModel),w=S.ensureUniqueItemVisual(x,"style");extend(w,A),sharedModel.option.decal&&(S.setItemVisual(x,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),v in A&&S.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,v=t.get(l);v||(v={},t.set(l,v)),inner$9(o).scope=v}}),r.eachSeries(function(o){if(!(o.isColorBySeries()||r.isSeriesFiltered(o))){var s=o.getRawData(),l={},v=o.getData(),S=inner$9(o).scope,x=o.visualStyleAccessPath||"itemStyle",T=getDefaultColorKey(o,x);v.each(function(A){var w=v.getRawIndex(A);l[w]=A}),s.each(function(A){var w=l[A],E=v.getItemVisual(w,"colorFromPalette");if(E){var D=v.ensureUniqueItemVisual(w,"style"),$=s.getName(A)||A+"",N=s.count();D[T]=o.getColorFromPalette($,S,N)}})}})}},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}),v=new Rect$2({style:{fill:"none"},textContent:l,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});o.add(v);var S;return t.showSpinner&&(S=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}),S.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),S.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),o.add(S)),o.resize=function(){var x=l.getBoundingRect().width,T=t.showSpinner?t.spinnerRadius:0,A=(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),w=r.getHeight()/2;t.showSpinner&&S.setShape({cx:A,cy:w}),v.setShape({x:A-T,y:w-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,v=!o&&s.progressiveEnabled&&(!l||l.progressiveRender)&&t.__idxInPipeline>s.blockIndex,S=v?s.step:null,x=l&&l.modDataCount,T=x!=null?Math.ceil(x/S):null;return{step:S,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(),v=l.count(),S=s.progressiveEnabled&&o.incrementalPrepareRender&&v>=s.threshold,x=t.get("large")&&v>=t.get("largeThreshold"),T=t.get("progressiveChunkMode")==="mod"?v:null;t.pipelineContext=s.context={progressiveRender:S,modDataCount:T,large:x}},r.prototype.restorePipelines=function(t){var o=this,s=o._pipelineMap=createHashMap();t.eachSeries(function(l){var v=l.getProgressive(),S=l.uid;s.set(S,{id:S,head:null,tail:null,threshold:l.getProgressiveThreshold(),progressiveEnabled:v&&!(l.preventIncremental&&l.preventIncremental()),blockIndex:-1,step:Math.round(v||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 v=t.get(l.uid)||t.set(l.uid,{}),S="";assert(!(l.reset&&l.overallReset),S),l.reset&&this._createSeriesStageTask(l,v,o,s),l.overallReset&&this._createOverallStageTask(l,v,o,s)},this)},r.prototype.prepareView=function(t,o,s,l){var v=t.renderTask,S=v.context;S.model=o,S.ecModel=s,S.api=l,v.__block=!t.incrementalPrepareRender,this._pipe(o,v)},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 v=!1,S=this;each$c(t,function(T,A){if(!(l.visualType&&l.visualType!==T.visualType)){var w=S._stageTaskMap.get(T.uid),E=w.seriesTaskMap,D=w.overallTask;if(D){var $,N=D.agentStubMap;N.each(function(F){x(l,F)&&(F.dirty(),$=!0)}),$&&D.dirty(),S.updatePayload(D,s);var z=S.getPerformArgs(D,l.block);N.each(function(F){F.perform(z)}),D.perform(z)&&(v=!0)}else E&&E.each(function(F,B){x(l,F)&&F.dirty();var G=S.getPerformArgs(F,l.block);G.skip=!T.performRawSeries&&o.isSeriesFiltered(F.context.model),S.updatePayload(F,s),F.perform(G)&&(v=!0)})}});function x(T,A){return T.setDirty&&(!T.dirtyMap||T.dirtyMap.get(A.__pipeline.id))}this.unfinished=v||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 v=this,S=o.seriesTaskMap,x=o.seriesTaskMap=createHashMap(),T=t.seriesType,A=t.getTargetSeries;t.createOnAllSeries?s.eachRawSeries(w):T?s.eachRawSeriesByType(T,w):A&&A(s,l).each(w);function w(E){var D=E.uid,$=x.set(D,S&&S.get(D)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));$.context={model:E,ecModel:s,api:l,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:v},v._pipe(E,$)}},r.prototype._createOverallStageTask=function(t,o,s,l){var v=this,S=o.overallTask=o.overallTask||createTask({reset:overallTaskReset});S.context={ecModel:s,api:l,overallReset:t.overallReset,scheduler:v};var x=S.agentStubMap,T=S.agentStubMap=createHashMap(),A=t.seriesType,w=t.getTargetSeries,E=!0,D=!1,$="";assert(!t.createOnAllSeries,$),A?s.eachRawSeriesByType(A,N):w?w(s,l).each(N):(E=!1,each$c(s.getSeries(),N));function N(z){var F=z.uid,B=T.set(F,x&&x.get(F)||(D=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));B.context={model:z,overallProgress:E},B.agent=S,B.__block=E,v._pipe(z,B)}D&&S.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 v=t.start;v<t.end;v++)l.dataEach(s,v);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 v=parseClassType(t);o.mainType=v.main||null,o.subType=v.sub||null}else{var S=["Index","Name","Id"],x={name:1,dataIndex:1,dataType:1};each$c(t,function(T,A){for(var w=!1,E=0;E<S.length;E++){var D=S[E],$=A.lastIndexOf(D);if($>0&&$===A.length-D.length){var N=A.slice(0,$);N!=="data"&&(o.mainType=N,o[D.toLowerCase()]=T,w=!0)}}x.hasOwnProperty(A)&&(s[A]=T,w=!0),w||(l[A]=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,v=s.packedEvent,S=s.model,x=s.view;if(!S||!x)return!0;var T=o.cptQuery,A=o.dataQuery;return w(T,S,"mainType")&&w(T,S,"subType")&&w(T,S,"index","componentIndex")&&w(T,S,"name")&&w(T,S,"id")&&w(A,v,"name")&&w(A,v,"dataIndex")&&w(A,v,"dataType")&&(!x.filterForExposedEvent||x.filterForExposedEvent(t,o.otherQuery,l,v));function w(E,D,$,N){return E[$]==null||D[N||$]===E[$]}},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={},v=!1,S=0;S<SYMBOL_PROPS_WITH_CB.length;S++){var x=SYMBOL_PROPS_WITH_CB[S],T=r.get(x);isFunction(T)?(v=!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 A=keys(l);function w(E,D){for(var $=r.getRawValue(D),N=r.getDataParams(D),z=0;z<A.length;z++){var F=A[z];E.setItemVisual(D,F,l[F]($,N))}}return{dataEach:v?w:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var o=r.getData();function s(l,v){for(var S=l.getItemModel(v),x=0;x<SYMBOL_PROPS.length;x++){var T=SYMBOL_PROPS[x],A=S.getShallow(T,!0);A!=null&&l.setItemVisual(v,T,A)}}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 v=[];return s.eachComponent({mainType:"series",subType:r,query:l},function(S){v.push(S.seriesIndex)}),v}each$c([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(s){t(s[0],function(l,v,S){l=extend({},l),S.dispatchAction(extend(l,{type:s[1],seriesIndex:o(v,l)}))})})}function handleSeriesLegacySelectEvents(r,t,o,s,l){var v=r+t;o.isSilent(v)||s.eachComponent({mainType:"series",subType:"pie"},function(S){for(var x=S.seriesIndex,T=S.option.selectedMap,A=l.selected,w=0;w<A.length;w++)if(A[w].seriesIndex===x){var E=S.getData(),D=queryDataIndex(E,l.fromActionPayload);o.trigger(v,{type:v,seriesId:S.id,name:isArray$1(D)?E.getName(D[0]):E.getName(D),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,v=t.height/2;r.moveTo(o,s-v),r.lineTo(o+l,s+v),r.lineTo(o-l,s+v),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,v=t.height/2;r.moveTo(o,s-v),r.lineTo(o+l,s),r.lineTo(o,s+v),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,v=Math.max(l,t.height),S=l/2,x=S*S/(v-S),T=s-v+S+x,A=Math.asin(x/S),w=Math.cos(A)*S,E=Math.sin(A),D=Math.cos(A),$=S*.6,N=S*.7;r.moveTo(o-w,T+x),r.arc(o,T,S,Math.PI-A,Math.PI*2+A),r.bezierCurveTo(o+w-E*$,T+x+D*$,o,s-N,o,s),r.bezierCurveTo(o,s-N,o-w+E*$,T+x+D*$,o-w,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,v=t.y,S=s/3*2;r.moveTo(l,v),r.lineTo(l+S,v+o),r.lineTo(l,v+o/4*3),r.lineTo(l-S,v+o),r.lineTo(l,v),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 v=Math.min(o,s);l.x=r,l.y=t,l.width=v,l.height=v},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,v,S){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),S?"center":"cover"):r.indexOf("path://")===0?T=makePath(r.slice(7),{},new BoundingRect$1(t,o,s,l),S?"center":"cover"):T=new SymbolClz$1({shape:{symbolType:r,x:t,y:o,width:s,height:l}}),T.__isEmptyBrush=x,T.setColor=symbolPathSetColor,v&&T.setColor(v),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,v=t.y==null?0:t.y,S=t.y2==null?0:t.y2;t.global||(s=s*o.width+o.x,l=l*o.width+o.x,v=v*o.height+o.y,S=S*o.height+o.y),s=isSafeNum(s)?s:0,l=isSafeNum(l)?l:1,v=isSafeNum(v)?v:0,S=isSafeNum(S)?S:0;var x=r.createLinearGradient(s,v,l,S);return x}function createRadialGradient(r,t,o){var s=o.width,l=o.height,v=Math.min(s,l),S=t.x==null?.5:t.x,x=t.y==null?.5:t.y,T=t.r==null?.5:t.r;t.global||(S=S*s+o.x,x=x*l+o.y,T=T*v),S=isSafeNum(S)?S:.5,x=isSafeNum(x)?x:.5,T=T>=0&&isSafeNum(T)?T:.5;var A=r.createRadialGradient(S,x,0,S,x,T);return A}function getCanvasGradient(r,t,o){for(var s=t.type==="radial"?createRadialGradient(r,t,o):createLinearGradient(r,t,o),l=t.colorStops,v=0;v<l.length;v++)s.addColorStop(l[v].offset,l[v].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],v=["paddingLeft","paddingTop"][t],S=["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[v])||0)-(parseInt10(x[S])||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(v){return v/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 v=new DOMMatrix;v.translateSelf(t.x||0,t.y||0),v.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),v.scaleSelf(t.scaleX||1,t.scaleY||1),l.setTransform(v)}return l}}function brushPath(r,t,o,s){var l,v=styleHasStroke(o),S=styleHasFill(o),x=o.strokePercent,T=x<1,A=!t.path;(!t.silent||T)&&A&&t.createPathProxy();var w=t.path||pathProxyForDraw,E=t.__dirty;if(!s){var D=o.fill,$=o.stroke,N=S&&!!D.colorStops,z=v&&!!$.colorStops,F=S&&!!D.image,B=v&&!!$.image,G=void 0,W=void 0,X=void 0,ee=void 0,Q=void 0;(N||z)&&(Q=t.getBoundingRect()),N&&(G=E?getCanvasGradient(r,D,Q):t.__canvasFillGradient,t.__canvasFillGradient=G),z&&(W=E?getCanvasGradient(r,$,Q):t.__canvasStrokeGradient,t.__canvasStrokeGradient=W),F&&(X=E||!t.__canvasFillPattern?createCanvasPattern(r,D,t):t.__canvasFillPattern,t.__canvasFillPattern=X),B&&(ee=E||!t.__canvasStrokePattern?createCanvasPattern(r,$,t):t.__canvasStrokePattern,t.__canvasStrokePattern=X),N?r.fillStyle=G:F&&(X?r.fillStyle=X:S=!1),z?r.strokeStyle=W:B&&(ee?r.strokeStyle=ee:v=!1)}var te=t.getGlobalScale();w.setScale(te[0],te[1],t.segmentIgnoreThreshold);var ie,le;r.setLineDash&&o.lineDash&&(l=getLineDash(t),ie=l[0],le=l[1]);var pe=!0;(A||E&SHAPE_CHANGED_BIT)&&(w.setDPR(r.dpr),T?w.setContext(null):(w.setContext(r),pe=!1),w.reset(),t.buildPath(w,t.shape,s),w.toStatic(),t.pathUpdated()),pe&&w.rebuildPath(r,T?x:1),ie&&(r.setLineDash(ie),r.lineDashOffset=le),s||(o.strokeFirst?(v&&doStrokePath(r,o),S&&doFillPath(r,o)):(S&&doFillPath(r,o),v&&doStrokePath(r,o))),ie&&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,v=o.y||0,S=t.getWidth(),x=t.getHeight(),T=s.width/s.height;if(S==null&&x!=null?S=x*T:x==null&&S!=null?x=S/T:S==null&&x==null&&(S=s.width,x=s.height),o.sWidth&&o.sHeight){var A=o.sx||0,w=o.sy||0;r.drawImage(s,A,w,o.sWidth,o.sHeight,l,v,S,x)}else if(o.sx&&o.sy){var A=o.sx,w=o.sy,E=S-A,D=x-w;r.drawImage(s,A,w,E,D,l,v,S,x)}else r.drawImage(s,l,v,S,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 v=void 0,S=void 0;r.setLineDash&&o.lineDash&&(s=getLineDash(t),v=s[0],S=s[1]),v&&(r.setLineDash(v),r.lineDashOffset=S),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)),v&&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 v=!1;if(!s&&(o=o||{},t===o))return!1;if(s||t.opacity!==o.opacity){flushPathDrawn(r,l),v=!0;var S=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(S)?DEFAULT_COMMON_STYLE.opacity:S}(s||t.blend!==o.blend)&&(v||(flushPathDrawn(r,l),v=!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])&&(v||(flushPathDrawn(r,l),v=!0),r[T]=r.dpr*(t[T]||0))}return(s||t.shadowColor!==o.shadowColor)&&(v||(flushPathDrawn(r,l),v=!0),r.shadowColor=t.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),v}function bindPathAndTextCommonStyle(r,t,o,s,l){var v=getStyle(t,l.inHover),S=s?null:o&&getStyle(o,l.inHover)||{};if(v===S)return!1;var x=bindCommonProps(r,v,S,s,l);if((s||v.fill!==S.fill)&&(x||(flushPathDrawn(r,l),x=!0),isValidStrokeFillStyle(v.fill)&&(r.fillStyle=v.fill)),(s||v.stroke!==S.stroke)&&(x||(flushPathDrawn(r,l),x=!0),isValidStrokeFillStyle(v.stroke)&&(r.strokeStyle=v.stroke)),(s||v.opacity!==S.opacity)&&(x||(flushPathDrawn(r,l),x=!0),r.globalAlpha=v.opacity==null?1:v.opacity),t.hasStroke()){var T=v.lineWidth,A=T/(v.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==A&&(x||(flushPathDrawn(r,l),x=!0),r.lineWidth=A)}for(var w=0;w<STROKE_PROPS.length;w++){var E=STROKE_PROPS[w],D=E[0];(s||v[D]!==S[D])&&(x||(flushPathDrawn(r,l),x=!0),r[D]=v[D]||E[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 v=r[l];s=s||v.isZeroArea(),setContextTransform(t,v),t.beginPath(),v.buildPath(t,v.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 v=t.__clipPaths,S=o.prevElClipPaths,x=!1,T=!1;if((!S||isClipPathChanged(v,S))&&(S&&S.length&&(flushPathDrawn(r,o),r.restore(),T=x=!0,o.prevElClipPaths=null,o.allClipped=!1,o.prevEl=null),v&&v.length&&(flushPathDrawn(r,o),r.save(),updateClipStatus(v,r,o),x=!0),o.prevElClipPaths=v),o.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var A=o.prevEl;A||(T=x=!0);var w=t instanceof Path$1&&t.autoBatch&&canPathBatch(t.style);x||isTransformChanged(l,A.transform)?(flushPathDrawn(r,o),setContextTransform(r,t)):w||flushPathDrawn(r,o);var E=getStyle(t,o.inHover);t instanceof Path$1?(o.lastDrawType!==DRAW_TYPE_PATH&&(T=!0,o.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(r,t,A,T,o),(!w||!o.batchFill&&!o.batchStroke)&&r.beginPath(),brushPath(r,t,E,w),w&&(o.batchFill=E.fill||"",o.batchStroke=E.stroke||"")):t instanceof TSpan$1?(o.lastDrawType!==DRAW_TYPE_TEXT&&(T=!0,o.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(r,t,A,T,o),brushText(r,t,E)):t instanceof ZRImage$1?(o.lastDrawType!==DRAW_TYPE_IMAGE&&(T=!0,o.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(r,t,A,T,o),brushImage(r,t,E)):t.getTemporalDisplayables&&(o.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(T=!0,o.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(r,t,o)),w&&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 v={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:o.viewWidth,viewHeight:o.viewHeight,inHover:o.inHover},S,x;for(S=t.getCursor(),x=s.length;S<x;S++){var T=s[S];T.beforeBrush&&T.beforeBrush(),T.innerBeforeBrush(),brush(r,T,v,S===x-1),T.innerAfterBrush(),T.afterBrush&&T.afterBrush(),v.prevEl=T}for(var A=0,w=l.length;A<w;A++){var T=l[A];T.beforeBrush&&T.beforeBrush(),T.innerBeforeBrush(),brush(r,T,v,A===w-1),T.innerAfterBrush(),T.afterBrush&&T.afterBrush(),v.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 v=decalMap.get(r);if(v)return v;var S=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});S.backgroundColor==="none"&&(S.backgroundColor=null);var x={repeat:"repeat"};return T(x),x.rotation=S.rotation,x.scaleX=x.scaleY=l?1:1/o,decalMap.set(r,x),r.dirty=!1,x;function T(A){for(var w=[o],E=!0,D=0;D<decalKeys.length;++D){var $=S[decalKeys[D]];if($!=null&&!isArray$1($)&&!isString($)&&!isNumber($)&&typeof $!="boolean"){E=!1;break}w.push($)}var N;if(E){N=w.join(",")+(l?"-svg":"");var z=decalCache.get(N);z&&(l?A.svgElement=z:A.image=z)}var F=normalizeDashArrayX(S.dashArrayX),B=normalizeDashArrayY(S.dashArrayY),G=normalizeSymbolArray(S.symbol),W=getLineBlockLengthX(F),X=getLineBlockLengthY(B),ee=!l&&platformApi.createCanvas(),Q=l&&{tag:"g",attrs:{},key:"dcl",children:[]},te=le(),ie;ee&&(ee.width=te.width*o,ee.height=te.height*o,ie=ee.getContext("2d")),pe(),E&&decalCache.put(N,ee||Q),A.image=ee,A.svgElement=Q,A.svgWidth=te.width,A.svgHeight=te.height;function le(){for(var ue=1,_e=0,xe=W.length;_e<xe;++_e)ue=getLeastCommonMultiple(ue,W[_e]);for(var Te=1,_e=0,xe=G.length;_e<xe;++_e)Te=getLeastCommonMultiple(Te,G[_e].length);ue*=Te;var Ae=X*W.length*G.length;return{width:Math.max(1,Math.min(ue,S.maxTileWidth)),height:Math.max(1,Math.min(Ae,S.maxTileHeight))}}function pe(){ie&&(ie.clearRect(0,0,ee.width,ee.height),S.backgroundColor&&(ie.fillStyle=S.backgroundColor,ie.fillRect(0,0,ee.width,ee.height)));for(var ue=0,_e=0;_e<B.length;++_e)ue+=B[_e];if(ue<=0)return;for(var xe=-X,Te=0,Ae=0,we=0;xe<te.height;){if(Te%2===0){for(var $e=Ae/2%G.length,Pe=0,Ce=0,Re=0;Pe<te.width*2;){for(var Ye=0,_e=0;_e<F[we].length;++_e)Ye+=F[we][_e];if(Ye<=0)break;if(Ce%2===0){var We=(1-S.symbolSize)*.5,qe=Pe+F[we][Ce]*We,Qe=xe+B[Te]*We,ht=F[we][Ce]*S.symbolSize,st=B[Te]*S.symbolSize,Tt=Re/2%G[$e].length;yt(qe,Qe,ht,st,G[$e][Tt])}Pe+=F[we][Ce],++Re,++Ce,Ce===F[we].length&&(Ce=0)}++we,we===F.length&&(we=0)}xe+=B[Te],++Ae,++Te,Te===B.length&&(Te=0)}function yt(Me,Be,De,Ue,xt){var ft=l?1:o,wt=createSymbol(xt,Me*ft,Be*ft,De*ft,Ue*ft,S.color,S.symbolKeepAspect);if(l){var ct=s.painter.renderOneToVNode(wt);ct&&Q.children.push(ct)}else brushSingle(ie,wt)}}}}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(S){var x=s.getItemVisual(S,"decal");if(x){var T=s.ensureUniqueItemVisual(S,"style");T.decal=createOrUpdatePatternFromDecal(x,t)}});var l=s.getVisual("decal");if(l){var v=s.getVisual("style");v.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 v=r.call(this,new ECEventProcessor)||this;v._chartsViews=[],v._chartsMap={},v._componentsViews=[],v._componentsMap={},v._pendingActions=[],l=l||{},isString(s)&&(s=themeStorage[s]),v._dom=o;var S="canvas",x="auto",T=!1,A=v._zr=init$1(o,{renderer:l.renderer||S,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});v._ssr=l.ssr,v._throttledZrFlush=throttle(bind$1(A.flush,A),17),s=clone$3(s),s&&globalBackwardCompat(s,!0),v._theme=s,v._locale=createLocaleObject(l.locale||SYSTEM_LANG),v._coordSysMgr=new CoordinateSystem;var w=v._api=createExtensionAPI(v);function E(D,$){return D.__prio-$.__prio}return sort(visualFuncs,E),sort(dataProcessorFuncs,E),v._scheduler=new Scheduler$1(v,w,dataProcessorFuncs,visualFuncs),v._messageCenter=new MessageCenter,v._initEvents(),v.resize=bind$1(v.resize,v),A.animation.on("frame",v._onframe,v),bindRenderedEvent(A,v),bindMouseEvent(A,v),setAsPrimitive(v),v}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,v=this._model,S=this._api;o.unfinished=!1;do{var x=+new Date;o.performSeriesTasks(v),o.performDataProcessorTasks(v),updateStreamModes(this,v),o.performVisualTasks(v),renderSeries(this,this._model,S,"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 v,S,x;if(isObject$3(s)&&(l=s.lazyUpdate,v=s.silent,S=s.replaceMerge,x=s.transition,s=s.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||s){var T=new OptionManager$1(this._api),A=this._theme,w=this._model=new GlobalModel$1;w.scheduler=this._scheduler,w.ssr=this._ssr,w.init(null,null,null,A,this._locale,T)}this._model.setOption(o,{replaceMerge:S},optionPreprocessorFuncs);var E={seriesTransition:x,optionChanged:!0};if(l)this[PENDING_UPDATE]={silent:v,updateParams:E},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,E)}catch(D){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,D}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,v),triggerUpdatedEvent.call(this,v)}}},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,v=[],S=this;each$c(s,function(T){l.eachComponent({mainType:T},function(A){var w=S._componentsMap[A.__viewId];w.group.ignore||(v.push(w),w.group.ignore=!0)})});var x=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(o).toDataURL("image/"+(o&&o.type||"png"));return each$c(v,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,v=Math.min,S=Math.max,x=1/0;if(connectedGroups[l]){var T=x,A=x,w=-x,E=-x,D=[],$=o&&o.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(W,X){if(W.group===l){var ee=s?W.getZr().painter.getSvgDom().innerHTML:W.renderToCanvas(clone$3(o)),Q=W.getDom().getBoundingClientRect();T=v(Q.left,T),A=v(Q.top,A),w=S(Q.right,w),E=S(Q.bottom,E),D.push({dom:ee,left:Q.left,top:Q.top})}}),T*=$,A*=$,w*=$,E*=$;var N=w-T,z=E-A,F=platformApi.createCanvas(),B=init$1(F,{renderer:s?"svg":"canvas"});if(B.resize({width:N,height:z}),s){var G="";return each$c(D,function(W){var X=W.left-T,ee=W.top-A;G+='<g transform="translate('+X+","+ee+')">'+W.dom+"</g>"}),B.painter.getSvgRoot().innerHTML=G,o.connectedBackgroundColor&&B.painter.setBackgroundColor(o.connectedBackgroundColor),B.refreshImmediately(),B.painter.toDataURL()}else return o.connectedBackgroundColor&&B.add(new Rect$2({shape:{x:0,y:0,width:N,height:z},style:{fill:o.connectedBackgroundColor}})),each$c(D,function(W){var X=new ZRImage$1({style:{x:W.left*$-T,y:W.top*$-A,image:W.dom}});B.add(X)}),B.refreshImmediately(),F.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,v,S=parseFinder$1(l,o);return each$c(S,function(x,T){T.indexOf("Models")>=0&&each$c(x,function(A){var w=A.coordinateSystem;if(w&&w.containPoint)v=v||!!w.containPoint(s);else if(T==="seriesModels"){var E=this._chartsMap[A.__viewId];E&&E.containPoint&&(v=v||E.containPoint(s,A))}},this)},this),!!v},t.prototype.getVisual=function(o,s){var l=this._model,v=parseFinder$1(l,o,{defaultMainType:"series"}),S=v.seriesModel,x=S.getData(),T=v.hasOwnProperty("dataIndexInside")?v.dataIndexInside:v.hasOwnProperty("dataIndex")?x.indexOfRawIndex(v.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(v){var S=o.getModel(),x=v.target,T,A=s==="globalout";if(A?T={}:x&&findEventDispatcher(x,function(N){var z=getECData(N);if(z&&z.dataIndex!=null){var F=z.dataModel||S.getSeriesByIndex(z.seriesIndex);return T=F&&F.getDataParams(z.dataIndex,z.dataType)||{},!0}else if(z.eventData)return T=extend({},z.eventData),!0},!0),T){var w=T.componentType,E=T.componentIndex;(w==="markLine"||w==="markPoint"||w==="markArea")&&(w="series",E=T.seriesIndex);var D=w&&E!=null&&S.getComponent(w,E),$=D&&o[D.mainType==="series"?"_chartsMap":"_componentsMap"][D.__viewId];T.event=v,T.type=s,o._$eventProcessor.eventInfo={targetEl:x,packedEvent:T,model:D,view:$},o.trigger(s,T)}};l.zrEventfulCallAtLast=!0,o._zr.on(s,l,o)}),each$c(eventActionMap,function(s,l){o._messageCenter.on(l,function(v){this.trigger(l,v)},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,v=s._model;each$c(s._componentsViews,function(S){S.dispose(v,l)}),each$c(s._chartsViews,function(S){S.dispose(v,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"),v=o&&o.silent;this[PENDING_UPDATE]&&(v==null&&(v=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(S){throw this[IN_MAIN_PROCESS_KEY]=!1,S}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,v),triggerUpdatedEvent.call(this,v)}}},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),v=this._zr;this._loadingFX=l,v.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 v=s.flush;v?this._zr.flush():v!==!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(),v=l.getSeriesByIndex(s);v.appendData(o),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare$1=function(E){var D=E._scheduler;D.restorePipelines(E._model),D.prepareStageTasks(),prepareView(E,!0),prepareView(E,!1),D.plan()},prepareView=function(E,D){for(var $=E._model,N=E._scheduler,z=D?E._componentsViews:E._chartsViews,F=D?E._componentsMap:E._chartsMap,B=E._zr,G=E._api,W=0;W<z.length;W++)z[W].__alive=!1;D?$.eachComponent(function(Q,te){Q!=="series"&&X(te)}):$.eachSeries(X);function X(Q){var te=Q.__requireNewView;Q.__requireNewView=!1;var ie="_ec_"+Q.id+"_"+Q.type,le=!te&&F[ie];if(!le){var pe=parseClassType(Q.type),ue=D?ComponentView$1.getClass(pe.main,pe.sub):ChartView$1.getClass(pe.sub);le=new ue,le.init($,G),F[ie]=le,z.push(le),B.add(le.group)}Q.__viewId=le.__id=ie,le.__alive=!0,le.__model=Q,le.group.__ecComponentInfo={mainType:Q.mainType,index:Q.componentIndex},!D&&N.prepareView(le,Q,$,G)}for(var W=0;W<z.length;){var ee=z[W];ee.__alive?W++:(!D&&ee.renderTask.dispose(),B.remove(ee.group),ee.dispose($,G),z.splice(W,1),F[ee.__id]===ee&&delete F[ee.__id],ee.__id=ee.group.__ecComponentInfo=null)}},updateDirectly=function(E,D,$,N,z){var F=E._model;if(F.setUpdatePayload($),!N){each$c([].concat(E._componentsViews).concat(E._chartsViews),ee);return}var B={};B[N+"Id"]=$[N+"Id"],B[N+"Index"]=$[N+"Index"],B[N+"Name"]=$[N+"Name"];var G={mainType:N,query:B};z&&(G.subType=z);var W=$.excludeSeriesId,X;W!=null&&(X=createHashMap(),each$c(normalizeToArray(W),function(Q){var te=convertOptionIdName(Q,null);te!=null&&X.set(te,!0)})),F&&F.eachComponent(G,function(Q){var te=X&&X.get(Q.id)!=null;if(!te)if(isHighDownPayload($))if(Q instanceof SeriesModel$1)$.type===HIGHLIGHT_ACTION_TYPE&&!$.notBlur&&!Q.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(Q,$,E._api);else{var ie=findComponentHighDownDispatchers(Q.mainType,Q.componentIndex,$.name,E._api),le=ie.focusSelf,pe=ie.dispatchers;$.type===HIGHLIGHT_ACTION_TYPE&&le&&!$.notBlur&&blurComponent(Q.mainType,Q.componentIndex,E._api),pe&&each$c(pe,function(ue){$.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(ue):leaveEmphasis(ue)})}else isSelectChangePayload($)&&Q instanceof SeriesModel$1&&(toggleSelectionFromPayload(Q,$,E._api),updateSeriesElementSelection(Q),markStatusToUpdate(E))},E),F&&F.eachComponent(G,function(Q){var te=X&&X.get(Q.id)!=null;te||ee(E[N==="series"?"_chartsMap":"_componentsMap"][Q.__viewId])},E);function ee(Q){Q&&Q.__alive&&Q[D]&&Q[D](Q.__model,F,E._api,$)}},updateMethods={prepareAndUpdate:function(E){prepare$1(this),updateMethods.update.call(this,E,{optionChanged:E.newOption!=null})},update:function(E,D){var $=this._model,N=this._api,z=this._zr,F=this._coordSysMgr,B=this._scheduler;if($){$.setUpdatePayload(E),B.restoreData($,E),B.performSeriesTasks($),F.create($,N),B.performDataProcessorTasks($,E),updateStreamModes(this,$),F.update($,N),o($),B.performVisualTasks($,E),render$2(this,$,N,E,D);var G=$.get("backgroundColor")||"transparent",W=$.get("darkMode");z.setBackgroundColor(G),W!=null&&W!=="auto"&&z.setDarkMode(W),lifecycle$1.trigger("afterupdate",$,N)}},updateTransform:function(E){var D=this,$=this._model,N=this._api;if($){$.setUpdatePayload(E);var z=[];$.eachComponent(function(B,G){if(B!=="series"){var W=D.getViewOfComponentModel(G);if(W&&W.__alive)if(W.updateTransform){var X=W.updateTransform(G,$,N,E);X&&X.update&&z.push(W)}else z.push(W)}});var F=createHashMap();$.eachSeries(function(B){var G=D._chartsMap[B.__viewId];if(G.updateTransform){var W=G.updateTransform(B,$,N,E);W&&W.update&&F.set(B.uid,1)}else F.set(B.uid,1)}),o($),this._scheduler.performVisualTasks($,E,{setDirty:!0,dirtyMap:F}),renderSeries(this,$,N,E,{},F),lifecycle$1.trigger("afterupdate",$,N)}},updateView:function(E){var D=this._model;D&&(D.setUpdatePayload(E),ChartView$1.markUpdateMethod(E,"updateView"),o(D),this._scheduler.performVisualTasks(D,E,{setDirty:!0}),render$2(this,D,this._api,E,{}),lifecycle$1.trigger("afterupdate",D,this._api))},updateVisual:function(E){var D=this,$=this._model;$&&($.setUpdatePayload(E),$.eachSeries(function(N){N.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(E,"updateVisual"),o($),this._scheduler.performVisualTasks($,E,{visualType:"visual",setDirty:!0}),$.eachComponent(function(N,z){if(N!=="series"){var F=D.getViewOfComponentModel(z);F&&F.__alive&&F.updateVisual(z,$,D._api,E)}}),$.eachSeries(function(N){var z=D._chartsMap[N.__viewId];z.updateVisual(N,$,D._api,E)}),lifecycle$1.trigger("afterupdate",$,this._api))},updateLayout:function(E){updateMethods.update.call(this,E)}},doConvertPixel=function(E,D,$,N){if(E._disposed){E.id;return}for(var z=E._model,F=E._coordSysMgr.getCoordinateSystems(),B,G=parseFinder$1(z,$),W=0;W<F.length;W++){var X=F[W];if(X[D]&&(B=X[D](z,G,N))!=null)return B}},updateStreamModes=function(E,D){var $=E._chartsMap,N=E._scheduler;D.eachSeries(function(z){N.updateStreamModes(z,$[z.__viewId])})},doDispatchAction=function(E,D){var $=this,N=this.getModel(),z=E.type,F=E.escapeConnect,B=actions[z],G=B.actionInfo,W=(G.update||"update").split(":"),X=W.pop(),ee=W[0]!=null&&parseClassType(W[0]);this[IN_MAIN_PROCESS_KEY]=!0;var Q=[E],te=!1;E.batch&&(te=!0,Q=map$2(E.batch,function(Te){return Te=defaults(extend({},Te),E),Te.batch=null,Te}));var ie=[],le,pe=isSelectChangePayload(E),ue=isHighDownPayload(E);if(ue&&allLeaveBlur(this._api),each$c(Q,function(Te){if(le=B.action(Te,$._model,$._api),le=le||extend({},Te),le.type=G.event||le.type,ie.push(le),ue){var Ae=preParseFinder(E),we=Ae.queryOptionMap,$e=Ae.mainTypeSpecified,Pe=$e?we.keys()[0]:"series";updateDirectly($,X,Te,Pe),markStatusToUpdate($)}else pe?(updateDirectly($,X,Te,"series"),markStatusToUpdate($)):ee&&updateDirectly($,X,Te,ee.main,ee.sub)}),X!=="none"&&!ue&&!pe&&!ee)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,E),this[PENDING_UPDATE]=null):updateMethods[X].call(this,E)}catch(Te){throw this[IN_MAIN_PROCESS_KEY]=!1,Te}if(te?le={type:G.event||z,escapeConnect:F,batch:ie}:le=ie[0],this[IN_MAIN_PROCESS_KEY]=!1,!D){var _e=this._messageCenter;if(_e.trigger(le.type,le),pe){var xe={type:"selectchanged",escapeConnect:F,selected:getAllSelectedIndices(N),isFromClick:E.isFromClick||!1,fromAction:E.type,fromActionPayload:E};_e.trigger(xe.type,xe)}}},flushPendingActions=function(E){for(var D=this._pendingActions;D.length;){var $=D.shift();doDispatchAction.call(this,$,E)}},triggerUpdatedEvent=function(E){!E&&this.trigger("updated")},bindRenderedEvent=function(E,D){E.on("rendered",function($){D.trigger("rendered",$),E.animation.isFinished()&&!D[PENDING_UPDATE]&&!D._scheduler.unfinished&&!D._pendingActions.length&&D.trigger("finished")})},bindMouseEvent=function(E,D){E.on("mouseover",function($){var N=$.target,z=findEventDispatcher(N,isHighDownDispatcher);z&&(handleGlobalMouseOverForHighDown(z,$,D._api),markStatusToUpdate(D))}).on("mouseout",function($){var N=$.target,z=findEventDispatcher(N,isHighDownDispatcher);z&&(handleGlobalMouseOutForHighDown(z,$,D._api),markStatusToUpdate(D))}).on("click",function($){var N=$.target,z=findEventDispatcher(N,function(G){return getECData(G).dataIndex!=null},!0);if(z){var F=z.selected?"unselect":"select",B=getECData(z);D._api.dispatchAction({type:F,dataType:B.dataType,dataIndexInside:B.dataIndex,seriesIndex:B.seriesIndex,isFromClick:!0})}})};function o(E){E.clearColorPalette(),E.eachSeries(function(D){D.clearColorPalette()})}function s(E){var D=[],$=[],N=!1;if(E.eachComponent(function(G,W){var X=W.get("zlevel")||0,ee=W.get("z")||0,Q=W.getZLevelKey();N=N||!!Q,(G==="series"?$:D).push({zlevel:X,z:ee,idx:W.componentIndex,type:G,key:Q})}),N){var z=D.concat($),F,B;sort(z,function(G,W){return G.zlevel===W.zlevel?G.z-W.z:G.zlevel-W.zlevel}),each$c(z,function(G){var W=E.getComponent(G.type,G.idx),X=G.zlevel,ee=G.key;F!=null&&(X=Math.max(F,X)),ee?(X===F&&ee!==B&&X++,B=ee):B&&(X===F&&X++,B=""),F=X,W.setZLevel(X)})}}render$2=function(E,D,$,N,z){s(D),renderComponents(E,D,$,N,z),each$c(E._chartsViews,function(F){F.__alive=!1}),renderSeries(E,D,$,N,z),each$c(E._chartsViews,function(F){F.__alive||F.remove(D,$)})},renderComponents=function(E,D,$,N,z,F){each$c(F||E._componentsViews,function(B){var G=B.__model;A(G,B),B.render(G,D,$,N),x(G,B),w(G,B)})},renderSeries=function(E,D,$,N,z,F){var B=E._scheduler;z=extend(z||{},{updatedSeries:D.getSeries()}),lifecycle$1.trigger("series:beforeupdate",D,$,z);var G=!1;D.eachSeries(function(W){var X=E._chartsMap[W.__viewId];X.__alive=!0;var ee=X.renderTask;B.updatePayload(ee,N),A(W,X),F&&F.get(W.uid)&&ee.dirty(),ee.perform(B.getPerformArgs(ee))&&(G=!0),X.group.silent=!!W.get("silent"),S(W,X),updateSeriesElementSelection(W)}),B.unfinished=G||B.unfinished,lifecycle$1.trigger("series:layoutlabels",D,$,z),lifecycle$1.trigger("series:transition",D,$,z),D.eachSeries(function(W){var X=E._chartsMap[W.__viewId];x(W,X),w(W,X)}),v(E,D),lifecycle$1.trigger("series:afterupdate",D,$,z)},markStatusToUpdate=function(E){E[STATUS_NEEDS_UPDATE_KEY]=!0,E.getZr().wakeUp()},applyChangedStates=function(E){E[STATUS_NEEDS_UPDATE_KEY]&&(E.getZr().storage.traverse(function(D){isElementRemoved(D)||l(D)}),E[STATUS_NEEDS_UPDATE_KEY]=!1)};function l(E){for(var D=[],$=E.currentStates,N=0;N<$.length;N++){var z=$[N];z==="emphasis"||z==="blur"||z==="select"||D.push(z)}E.selected&&E.states.select&&D.push("select"),E.hoverState===HOVER_STATE_EMPHASIS&&E.states.emphasis?D.push("emphasis"):E.hoverState===HOVER_STATE_BLUR&&E.states.blur&&D.push("blur"),E.useStates(D)}function v(E,D){var $=E._zr,N=$.storage,z=0;N.traverse(function(F){F.isGroup||z++}),z>D.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&D.eachSeries(function(F){if(!F.preventUsingHoverLayer){var B=E._chartsMap[F.__viewId];B.__alive&&B.eachRendered(function(G){G.states.emphasis&&(G.states.emphasis.hoverLayer=!0)})}})}function S(E,D){var $=E.get("blendMode")||null;D.eachRendered(function(N){N.isGroup||(N.style.blend=$)})}function x(E,D){if(!E.preventAutoZ){var $=E.get("z")||0,N=E.get("zlevel")||0;D.eachRendered(function(z){return T(z,$,N,-1/0),!0})}}function T(E,D,$,N){var z=E.getTextContent(),F=E.getTextGuideLine(),B=E.isGroup;if(B)for(var G=E.childrenRef(),W=0;W<G.length;W++)N=Math.max(T(G[W],D,$,N),N);else E.z=D,E.zlevel=$,N=Math.max(E.z2,N);if(z&&(z.z=D,z.zlevel=$,isFinite(N)&&(z.z2=N+2)),F){var X=E.textGuideLineConfig;F.z=D,F.zlevel=$,isFinite(N)&&(F.z2=N+(X&&X.showAbove?1:-1))}return N}function A(E,D){D.eachRendered(function($){if(!isElementRemoved($)){var N=$.getTextContent(),z=$.getTextGuideLine();$.stateTransition&&($.stateTransition=null),N&&N.stateTransition&&(N.stateTransition=null),z&&z.stateTransition&&(z.stateTransition=null),$.hasState()?($.prevStates=$.currentStates,$.clearStates()):$.prevStates&&($.prevStates=null)}})}function w(E,D){var $=E.getModel("stateAnimation"),N=E.isAnimationEnabled(),z=$.get("duration"),F=z>0?{duration:z,delay:$.get("delay"),easing:$.get("easing")}:null;D.eachRendered(function(B){if(B.states&&B.states.emphasis){if(isElementRemoved(B))return;if(B instanceof Path$1&&savePathStates(B),B.__dirty){var G=B.prevStates;G&&B.useStates(G)}if(N){B.stateTransition=F;var W=B.getTextContent(),X=B.getTextGuideLine();W&&(W.stateTransition=F),X&&(X.stateTransition=F)}B.__dirty&&l(B)}})}createExtensionAPI=function(E){return new(function(D){__extends($,D);function $(){return D!==null&&D.apply(this,arguments)||this}return $.prototype.getCoordinateSystems=function(){return E._coordSysMgr.getCoordinateSystems()},$.prototype.getComponentByElement=function(N){for(;N;){var z=N.__ecComponentInfo;if(z!=null)return E._model.getComponent(z.mainType,z.index);N=N.parent}},$.prototype.enterEmphasis=function(N,z){enterEmphasis(N,z),markStatusToUpdate(E)},$.prototype.leaveEmphasis=function(N,z){leaveEmphasis(N,z),markStatusToUpdate(E)},$.prototype.enterBlur=function(N){enterBlur(N),markStatusToUpdate(E)},$.prototype.leaveBlur=function(N){leaveBlur(N),markStatusToUpdate(E)},$.prototype.enterSelect=function(N){enterSelect(N),markStatusToUpdate(E)},$.prototype.leaveSelect=function(N){leaveSelect(N),markStatusToUpdate(E)},$.prototype.getModel=function(){return E.getModel()},$.prototype.getViewOfComponentModel=function(N){return E.getViewOfComponentModel(N)},$.prototype.getViewOfSeriesModel=function(N){return E.getViewOfSeriesModel(N)},$}(ExtensionAPI$1))(E)},enableConnect=function(E){function D($,N){for(var z=0;z<$.length;z++){var F=$[z];F[CONNECT_STATUS_KEY]=N}}each$c(eventActionMap,function($,N){E._messageCenter.on(N,function(z){if(connectedGroups[E.group]&&E[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(z&&z.escapeConnect)return;var F=E.makeActionFromEvent(z),B=[];each$c(instances,function(G){G!==E&&G.group===E.group&&B.push(G)}),D(B,CONNECT_STATUS_PENDING),each$c(B,function(G){G[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&G.dispatchAction(F)}),D(B,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 v=[],S=0;S<arguments.length;S++)v[S]=arguments[S];t&&t.apply&&t.apply(this,v),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 v=new ECharts(r,t,o);return v.id="ec_"+idBase++,instances[v.id]=v,s&&setAttribute(r,DOM_ATTRIBUTE_KEY,v.id),enableConnect(v),lifecycle$1.trigger("afterinit",v),v}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 v=Scheduler$1.wrapStageHandler(o,l);v.__prio=t,v.__raw=o,r.push(v)}}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,v,S){this._old=t,this._new=o,this._oldKeyGetter=s||defaultKeyGetter,this._newKeyGetter=l||defaultKeyGetter,this.context=v,this._diffModeMultiple=S==="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),v=new Array(o.length);this._initIndexMap(t,null,l,"_oldKeyGetter"),this._initIndexMap(o,s,v,"_newKeyGetter");for(var S=0;S<t.length;S++){var x=l[S],T=s[x],A=dataIndexMapValueLength(T);if(A>1){var w=T.shift();T.length===1&&(s[x]=T[0]),this._update&&this._update(w,S)}else A===1?(s[x]=null,this._update&&this._update(T,S)):this._remove&&this._remove(S)}this._performRestAdd(v,s)},r.prototype._executeMultiple=function(){var t=this._old,o=this._new,s={},l={},v=[],S=[];this._initIndexMap(t,s,v,"_oldKeyGetter"),this._initIndexMap(o,l,S,"_newKeyGetter");for(var x=0;x<v.length;x++){var T=v[x],A=s[T],w=l[T],E=dataIndexMapValueLength(A),D=dataIndexMapValueLength(w);if(E>1&&D===1)this._updateManyToOne&&this._updateManyToOne(w,A),l[T]=null;else if(E===1&&D>1)this._updateOneToMany&&this._updateOneToMany(w,A),l[T]=null;else if(E===1&&D===1)this._update&&this._update(w,A),l[T]=null;else if(E>1&&D>1)this._updateManyToMany&&this._updateManyToMany(w,A),l[T]=null;else if(E>1)for(var $=0;$<E;$++)this._remove&&this._remove(A[$]);else this._remove&&this._remove(A)}this._performRestAdd(S,l)},r.prototype._performRestAdd=function(t,o){for(var s=0;s<t.length;s++){var l=t[s],v=o[l],S=dataIndexMapValueLength(v);if(S>1)for(var x=0;x<S;x++)this._add&&this._add(v[x]);else S===1&&this._add&&this._add(v);o[l]=null}},r.prototype._initIndexMap=function(t,o,s,l){for(var v=this._diffModeMultiple,S=0;S<t.length;S++){var x="_ec_"+this[l](t[S],S);if(v||(s[S]=x),!!o){var T=o[x],A=dataIndexMapValueLength(T);A===0?(o[x]=S,v&&s.push(x)):A===1?o[x]=[T,S]:T.push(S)}}},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(),v=[],S=[],x={};each$c(r.dimensions,function(D){var $=r.getDimensionInfo(D),N=$.coordDim;if(N){var z=$.coordDimIndex;getOrCreateEncodeArr(s,N)[z]=D,$.isExtraCoord||(l.set(N,1),mayLabelDimType($.type)&&(v[0]=D),getOrCreateEncodeArr(x,N)[z]=r.getDimensionIndex($.name)),$.defaultTooltip&&S.push(D)}VISUAL_DIMENSIONS.each(function(F,B){var G=getOrCreateEncodeArr(s,B),W=$.otherDims[B];W!=null&&W!==!1&&(G[W]=$.name)})});var T=[],A={};l.each(function(D,$){var N=s[$];A[$]=N[0],T=T.concat(N)}),o.dataDimsOnCoord=T,o.dataDimIndicesOnCoord=map$2(T,function(D){return r.getDimensionInfo(D).storeDimIndex}),o.encodeFirstDimNotExtra=A;var w=s.label;w&&w.length&&(v=w.slice());var E=s.tooltip;return E&&E.length?S=E.slice():S.length||(S=v.slice()),s.defaultedLabel=v,s.defaultedTooltip=S,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="",v=[],S=0,x=0;S<t;S++){var T=void 0,A=void 0,w=void 0,E=this.dimensions[x];if(E&&E.storeDimIndex===S)T=o?E.name:null,A=E.type,w=E.ordinalMeta,x++;else{var D=this.getSourceDimension(S);D&&(T=o?D.name:null,A=D.type)}v.push({property:T,type:A,ordinalMeta:w}),o&&T!=null&&(!E||!E.isCalculationCoord)&&(l+=s?T.replace(/\`/g,"`1").replace(/\$/g,"`2"):T),l+="$",l+=dimTypeShort[A]||"f",w&&(l+=w.uid),l+="$"}var $=this.source,N=[$.seriesLayoutBy,$.startIndex,l].join("$$");return{dimensions:v,hash:N}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],o=0,s=0;o<this._fullDimCount;o++){var l=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)v.isCalculationCoord||(l=v.name),s++;else{var S=this.getSourceDimension(o);S&&(l=S.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 v={},S=[],x={},T=!1,A={},w=0;w<s.length;w++){var E=s[w],D=isString(E)?new SeriesDimensionDefine$1({name:E}):E instanceof SeriesDimensionDefine$1?E:new SeriesDimensionDefine$1(E),$=D.name;D.type=D.type||"float",D.coordDim||(D.coordDim=$,D.coordDimIndex=0);var N=D.otherDims=D.otherDims||{};S.push($),v[$]=D,A[$]!=null&&(T=!0),D.createInvertedIndices&&(x[$]=[]),N.itemName===0&&(this._nameDimIdx=w),N.itemId===0&&(this._idDimIdx=w),l&&(D.storeDimIndex=w)}if(this.dimensions=S,this._dimInfos=v,this._initGetDimensionInfo(T),this.hostModel=o,this._invertedIndicesMap=x,this._dimOmitted){var z=this._dimIdxToName=createHashMap();each$c(S,function(F){z.set(v[F].storeDimIndex,F)})}}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,v;if(t instanceof DataStore$1&&(v=t),!v){var S=this.dimensions,x=isSourceInstance(t)||isArrayLike(t)?new DefaultDataProvider(t,S.length):t;v=new DataStore$1;var T=map$1(S,function(A){return{type:l._dimInfos[A].type,property:A}});v.initData(x,T,s)}this._store=v,this._nameList=(o||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,v.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,v=s.end,S=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),o)for(var x=l;x<v;x++){var T=x-l;this._nameList[x]=o[T],S&&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 v=this._nameList,S=this._idList,x=l.getSource().sourceFormat,T=x===SOURCE_FORMAT_ORIGINAL;if(T&&!l.pure)for(var A=[],w=t;w<o;w++){var E=l.getItem(w,A);if(!this.hasItemOption&&isDataItemOption(E)&&(this.hasItemOption=!0),E){var D=E.name;v[w]==null&&D!=null&&(v[w]=convertOptionIdName(D,null));var $=E.id;S[w]==null&&$!=null&&(S[w]=convertOptionIdName($,null))}}if(this._shouldMakeIdFromName())for(var w=t;w<o;w++)makeIdFromName(this,w);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(v){return s._getStoreDimIndex(v)}),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,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.each(v,l?bind$1(o,l):o)},r.prototype.filterSelf=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]);var l=s||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);return this._store=this._store.filter(v,l?bind$1(o,l):o),this},r.prototype.selectRange=function(t){var o=this,s={},l=keys(t);return each$c(l,function(v){var S=o._getStoreDimIndex(v);s[S]=t[v]}),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 v=s||l||this,S=map$1(normalizeDimensions(t),this._getStoreDimIndex,this),x=cloneListForMapAndSample(this);return x._store=this._store.map(S,v?bind$1(o,v):o),x},r.prototype.modify=function(t,o,s,l){var v=s||l||this,S=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.modify(S,v?bind$1(o,v):o)},r.prototype.downSample=function(t,o,s,l){var v=cloneListForMapAndSample(this);return v._store=this._store.downSample(this._getStoreDimIndex(t),o,s,l),v},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 v=l[o];return v==null&&(v=this.getVisual(o),isArray$1(v)?v=v.slice():isObject$1(v)&&(v=extend({},v)),l[o]=v),v},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 v=t._dimInfos[l],S=v.ordinalMeta,x=t._store;if(S){s=o[l]=new CtorInt32Array(S.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(v.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,v=t._nameDimIdx,S=t._idDimIdx,x=s[o],T=l[o];if(x==null&&v!=null&&(s[o]=x=getIdNameFromStore(t,v,o)),T==null&&S!=null&&(l[o]=T=getIdNameFromStore(t,S,o)),T==null&&x!=null){var A=t._nameRepeatCount,w=A[x]=(A[x]||0)+1;T=x,w>1&&(T+="__ec__"+w),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(),v=[],S=getDimCount(r,o,s,t.dimensionsCount),x=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(S),T=s===r.dimensionsDefine,A=T?ensureSourceDimNameMap(r):createDimNameMap(s),w=t.encodeDefine;!w&&t.encodeDefaulter&&(w=t.encodeDefaulter(r,S));for(var E=createHashMap(w),D=new CtorInt32Array$1(S),$=0;$<D.length;$++)D[$]=-1;function N(le){var pe=D[le];if(pe<0){var ue=s[le],_e=isObject$3(ue)?ue:{name:ue},xe=new SeriesDimensionDefine$1,Te=_e.name;Te!=null&&A.get(Te)!=null&&(xe.name=xe.displayName=Te),_e.type!=null&&(xe.type=_e.type),_e.displayName!=null&&(xe.displayName=_e.displayName);var Ae=v.length;return D[le]=Ae,xe.storeDimIndex=le,v.push(xe),xe}return v[pe]}if(!x)for(var $=0;$<S;$++)N($);E.each(function(le,pe){var ue=normalizeToArray(le).slice();if(ue.length===1&&!isString(ue[0])&&ue[0]<0){E.set(pe,!1);return}var _e=E.set(pe,[]);each$c(ue,function(xe,Te){var Ae=isString(xe)?A.get(xe):xe;Ae!=null&&Ae<S&&(_e[Te]=Ae,F(N(Ae),pe,Te))})});var z=0;each$c(o,function(le){var pe,ue,_e,xe;if(isString(le))pe=le,xe={};else{xe=le,pe=xe.name;var Te=xe.ordinalMeta;xe.ordinalMeta=null,xe=extend({},xe),xe.ordinalMeta=Te,ue=xe.dimsDef,_e=xe.otherDims,xe.name=xe.coordDim=xe.coordDimIndex=xe.dimsDef=xe.otherDims=null}var Ae=E.get(pe);if(Ae!==!1){if(Ae=normalizeToArray(Ae),!Ae.length)for(var we=0;we<(ue&&ue.length||1);we++){for(;z<S&&N(z).coordDim!=null;)z++;z<S&&Ae.push(z++)}each$c(Ae,function($e,Pe){var Ce=N($e);if(T&&xe.type!=null&&(Ce.type=xe.type),F(defaults(Ce,xe),pe,Pe),Ce.name==null&&ue){var Re=ue[Pe];!isObject$3(Re)&&(Re={name:Re}),Ce.name=Ce.displayName=Re.name,Ce.defaultTooltip=Re.defaultTooltip}_e&&defaults(Ce.otherDims,_e)})}});function F(le,pe,ue){VISUAL_DIMENSIONS.get(pe)!=null?le.otherDims[pe]=ue:(le.coordDim=pe,le.coordDimIndex=ue,l.set(pe,!0))}var B=t.generateCoord,G=t.generateCoordCount,W=G!=null;G=B?G||1:0;var X=B||"value";function ee(le){le.name==null&&(le.name=le.coordDim)}if(x)each$c(v,function(le){ee(le)}),v.sort(function(le,pe){return le.storeDimIndex-pe.storeDimIndex});else for(var Q=0;Q<S;Q++){var te=N(Q),ie=te.coordDim;ie==null&&(te.coordDim=genCoordDimName(X,l,W),te.coordDimIndex=0,(!B||G<=0)&&(te.isExtraCoord=!0),G--),ee(te),te.type==null&&(guessOrdinal(r,Q)===BE_ORDINAL.Must||te.isExtraCoord&&(te.otherDims.itemName!=null||te.otherDims.seriesName!=null))&&(te.type="ordinal")}return removeDuplication(v),new SeriesDataSchema({source:r,dimensions:v,fullDimensionCount:S,dimensionOmitted:x})}function removeDuplication(r){for(var t=createHashMap(),o=0;o<r.length;o++){var s=r[o],l=s.name,v=t.get(l)||0;v>0&&(s.name=l+(v-1)),v++,t.set(l,v)}}function getDimCount(r,t,o,s){var l=Math.max(r.dimensionsDetectedCount||1,t.length,o.length,s||0);return each$c(t,function(v){var S;isObject$3(v)&&(S=v.dimsDef)&&(l=Math.max(l,S.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],v=r.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["x","y"],o.set("x",l),o.set("y",v),isCategory(l)&&(s.set("x",l),t.firstCategoryDimIndex=0),isCategory(v)&&(s.set("y",v),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],v=l.findAxisModel("radiusAxis"),S=l.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],o.set("radius",v),o.set("angle",S),isCategory(v)&&(s.set("radius",v),t.firstCategoryDimIndex=0),isCategory(S)&&(s.set("angle",S),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,v=l.getComponent("parallel",r.get("parallelIndex")),S=t.coordSysDims=v.dimensions.slice();each$c(v.parallelAxisIndex,function(x,T){var A=l.getComponent("parallelAxis",x),w=S[T];o.set(w,A),isCategory(A)&&(s.set(w,A),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,v,S,x;isLegacyDimensionsInput(t)?v=t:(S=t.schema,v=S.dimensions,x=t.store);var T=!!(r&&r.get("stack")),A,w,E,D;if(each$c(v,function(G,W){isString(G)&&(v[W]=G={name:G}),T&&!G.isExtraCoord&&(!s&&!A&&G.ordinalMeta&&(A=G),!w&&G.type!=="ordinal"&&G.type!=="time"&&(!l||l===G.coordDim)&&(w=G))}),w&&!s&&!A&&(s=!0),w){E="__\0ecstackresult_"+r.id,D="__\0ecstackedover_"+r.id,A&&(A.createInvertedIndices=!0);var $=w.coordDim,N=w.type,z=0;each$c(v,function(G){G.coordDim===$&&z++});var F={name:E,coordDim:$,coordDimIndex:z,type:N,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:v.length},B={name:D,coordDim:D,coordDimIndex:z+1,type:N,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:v.length+1};S?(x&&(F.storeDimIndex=x.ensureCalculationDimension(D,N),B.storeDimIndex=x.ensureCalculationDimension(E,N)),S.appendCalculationDimension(F),S.appendCalculationDimension(B)):(v.push(F),v.push(B))}return{stackedDimension:w&&w.name,stackedByDimension:A&&A.name,isStackedByIndex:s,stackedOverDimension:D,stackResultDimension:E}}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(v){var S={name:v},x=t.axisMap.get(v);if(x){var T=x.get("type");S.type=getDimensionTypeByAxis(T)}return S})),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(v,S){var x=v.coordDim,T=o.categoryAxisMap.get(x);T&&(s==null&&(s=S),v.ordinalMeta=T.getOrdinalMeta(),t&&(v.createInvertedIndices=!0)),v.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,v=!1;r?(v=!0,l=createSourceFromSeriesDataOption(r)):(l=s.getSource(),v=l.sourceFormat===SOURCE_FORMAT_ORIGINAL);var S=getCoordSysInfoBySeries(t),x=getCoordSysDimDefs(t,S),T=o.useEncodeDefaulter,A=isFunction(T)?T:T?curry$1(makeSeriesEncodeForAxisCoordSys,x,t):null,w={coordDimensions:x,generateCoord:o.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:A,canOmitUnusedDimensions:!v},E=prepareSeriesDataSchema(l,w),D=injectOrdinalMeta(E.dimensions,o.createInvertedIndices,S),$=v?null:s.getSharedDataStore(E),N=enableDataStack(t,{schema:E,store:$}),z=new SeriesData$1(E,t);z.setCalculationInfo(N);var F=D!=null&&isNeedCompleteOrdinalData(l)?function(B,G,W,X){return X===D?W:this.defaultDimValueGetter(B,G,W,X)}:null;return z.hasItemOption=!1,z.initData(v?l:$,null,F),z}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={},v=r[1]-r[0],S=l.interval=nice(v/t,!0);o!=null&&S<o&&(S=l.interval=o),s!=null&&S>s&&(S=l.interval=s);var x=l.intervalPrecision=getIntervalPrecision(S),T=l.niceTickExtent=[round$1(Math.ceil(r[0]/S)*S,x),round$1(Math.floor(r[1]/S)*S,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(v){return isObject$3(v)?v.value:v})})),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=[],v=this._ticksByOrdinalNumber=[],S=0,x=this._ordinalMeta.categories.length,T=Math.min(x,s.length);S<T;++S){var A=s[S];l[S]=A,v[A]=S}for(var w=0;S<x;++S){for(;v[w]!=null;)w++;l.push(w),v[w]=S}},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,v=this._niceExtent,S=this._intervalPrecision,x=[];if(!s)return x;var T=1e4;l[0]<v[0]&&(o?x.push({value:roundNumber(v[0]-s,S)}):x.push({value:l[0]}));for(var A=v[0];A<=v[1]&&(x.push({value:A}),A=roundNumber(A+s,S),A!==x[x.length-1].value);)if(x.length>T)return[];var w=x.length?x[x.length-1].value:v[1];return l[1]>w&&(o?x.push({value:roundNumber(w+s,S)}):x.push({value:l[1]})),x},t.prototype.getMinorTicks=function(o){for(var s=this.getTicks(!0),l=[],v=this.getExtent(),S=1;S<s.length;S++){for(var x=s[S],T=s[S-1],A=0,w=[],E=x.value-T.value,D=E/o;A<o-1;){var $=roundNumber(T.value+(A+1)*D);$>v[0]&&$<v[1]&&w.push($),A++}l.push(w)}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 v=roundNumber(o.value,l,!0);return addCommas(v)},t.prototype.calcNiceTicks=function(o,s,l){o=o||5;var v=this._extent,S=v[1]-v[0];if(isFinite(S)){S<0&&(S=-S,v.reverse());var x=intervalScaleNiceTicks(v,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 v=s[1]-s[0];isFinite(v)||(s[0]=0,s[1]=1),this.calcNiceTicks(o.splitNumber,o.minInterval,o.maxInterval);var S=this._interval;o.fixMin||(s[0]=roundNumber(Math.floor(s[0]/S)*S)),o.fixMax||(s[1]=roundNumber(Math.ceil(s[1]/S)*S))},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 A=T.coordinateSystem,w=A.getBaseAxis();if(!(w.type!=="time"&&w.type!=="value"))for(var E=T.getData(),D=w.dim+"_"+w.index,$=E.getDimensionIndex(E.mapDimension(w.dim)),N=E.getStore(),z=0,F=N.count();z<F;++z){var B=N.get($,z);t[D]?t[D].push(B):t[D]=[B]}});var o={};for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l){l.sort(function(T,A){return T-A});for(var v=null,S=1;S<l.length;++S){var x=l[S]-l[S-1];x>0&&(v=v===null?x:Math.min(v,x))}o[s]=v}}return o}function makeColumnLayout(r){var t=getValueAxesMinGaps(r),o=[];return each$c(r,function(s){var l=s.coordinateSystem,v=l.getBaseAxis(),S=v.getExtent(),x;if(v.type==="category")x=v.getBandWidth();else if(v.type==="value"||v.type==="time"){var T=v.dim+"_"+v.index,A=t[T],w=Math.abs(S[1]-S[0]),E=v.scale.getExtent(),D=Math.abs(E[1]-E[0]);x=A?w/D*A:w}else{var $=s.getData();x=Math.abs(S[1]-S[0])/$.count()}var N=parsePercent(s.get("barWidth"),x),z=parsePercent(s.get("barMaxWidth"),x),F=parsePercent(s.get("barMinWidth")||(isInLargeMode(s)?.5:1),x),B=s.get("barGap"),G=s.get("barCategoryGap");o.push({bandWidth:x,barWidth:N,barMaxWidth:z,barMinWidth:F,barGap:B,barCategoryGap:G,axisKey:getAxisKey(v),stackId:getSeriesStackId(s)})}),doCalBarWidthAndOffset(o)}function doCalBarWidthAndOffset(r){var t={};each$c(r,function(s,l){var v=s.axisKey,S=s.bandWidth,x=t[v]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},T=x.stacks;t[v]=x;var A=s.stackId;T[A]||x.autoWidthCount++,T[A]=T[A]||{width:0,maxWidth:0};var w=s.barWidth;w&&!T[A].width&&(T[A].width=w,w=Math.min(x.remainedWidth,w),x.remainedWidth-=w);var E=s.barMaxWidth;E&&(T[A].maxWidth=E);var D=s.barMinWidth;D&&(T[A].minWidth=D);var $=s.barGap;$!=null&&(x.gap=$);var N=s.barCategoryGap;N!=null&&(x.categoryGap=N)});var o={};return each$c(t,function(s,l){o[l]={};var v=s.stacks,S=s.bandWidth,x=s.categoryGap;if(x==null){var T=keys(v).length;x=Math.max(35-T*4,15)+"%"}var A=parsePercent(x,S),w=parsePercent(s.gap,1),E=s.remainedWidth,D=s.autoWidthCount,$=(E-A)/(D+(D-1)*w);$=Math.max($,0),each$c(v,function(B){var G=B.maxWidth,W=B.minWidth;if(B.width){var X=B.width;G&&(X=Math.min(X,G)),W&&(X=Math.max(X,W)),B.width=X,E-=X+w*X,D--}else{var X=$;G&&G<X&&(X=Math.min(G,E)),W&&W>X&&(X=W),X!==$&&(B.width=X,E-=X+w*X,D--)}}),$=(E-A)/(D+(D-1)*w),$=Math.max($,0);var N=0,z;each$c(v,function(B,G){B.width||(B.width=$),z=B,N+=B.width*(1+w)}),z&&(N-=z.width*w);var F=-N/2;each$c(v,function(B,G){o[l][G]=o[l][G]||{bandWidth:S,offset:F,width:B.width},F+=B.width*(1+w)})}),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 v=l.getData(),S=l.coordinateSystem,x=S.getBaseAxis(),T=getSeriesStackId(l),A=s[getAxisKey(x)][T],w=A.offset,E=A.width;v.setLayout({bandWidth:A.bandWidth,offset:w,size:E})})}function createProgressiveLayout(r){return{seriesType:r,plan:createRenderPlanner(),reset:function(t){if(isOnCartesian(t)){var o=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),v=s.getOtherAxis(l),S=o.getDimensionIndex(o.mapDimension(v.dim)),x=o.getDimensionIndex(o.mapDimension(l.dim)),T=t.get("showBackground",!0),A=o.mapDimension(v.dim),w=o.getCalculationInfo("stackResultDimension"),E=isDimensionStacked(o,A)&&!!o.getCalculationInfo("stackedOnSeries"),D=v.isHorizontal(),$=getValueAxisStart(l,v),N=isInLargeMode(t),z=t.get("barMinHeight")||0,F=w&&o.getDimensionIndex(w),B=o.getLayout("size"),G=o.getLayout("offset");return{progress:function(W,X){for(var ee=W.count,Q=N&&createFloat32Array(ee*3),te=N&&T&&createFloat32Array(ee*3),ie=N&&createFloat32Array(ee),le=s.master.getRect(),pe=D?le.width:le.height,ue,_e=X.getStore(),xe=0;(ue=W.next())!=null;){var Te=_e.get(E?F:S,ue),Ae=_e.get(x,ue),we=$,$e=void 0;E&&($e=+Te-_e.get(S,ue));var Pe=void 0,Ce=void 0,Re=void 0,Ye=void 0;if(D){var We=s.dataToPoint([Te,Ae]);if(E){var qe=s.dataToPoint([$e,Ae]);we=qe[0]}Pe=we,Ce=We[1]+G,Re=We[0]-we,Ye=B,Math.abs(Re)<z&&(Re=(Re<0?-1:1)*z)}else{var We=s.dataToPoint([Ae,Te]);if(E){var qe=s.dataToPoint([Ae,$e]);we=qe[1]}Pe=We[0]+G,Ce=we,Re=B,Ye=We[1]-we,Math.abs(Ye)<z&&(Ye=(Ye<=0?-1:1)*z)}N?(Q[xe]=Pe,Q[xe+1]=Ce,Q[xe+2]=D?Re:Ye,te&&(te[xe]=D?le.x:Pe,te[xe+1]=D?Ce:le.y,te[xe+2]=pe),ie[ue]=ue):X.setItemLayout(ue,{x:Pe,y:Ce,width:Re,height:Ye}),xe+=3}N&&X.setLayout({largePoints:Q,largeDataIndices:ie,largeBackgroundPoints:te,valueAxisHorizontal:D})}}}}}}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 v=this.getSetting("useUTC"),S=this.getSetting("locale");return leveledFormat(o,s,l,S,v)},t.prototype.getTicks=function(){var o=this._interval,s=this._extent,l=[];if(!o)return l;l.push({value:s[0],level:0});var v=this.getSetting("useUTC"),S=getIntervalTicks(this._minLevelUnit,this._approxInterval,v,s);return l=l.concat(S),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 v=this._extent,S=v[1]-v[0];this._approxInterval=S/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),v=parseDate(o),S=function(N){return getUnitValue(l,N,s)===getUnitValue(v,N,s)},x=function(){return S("year")},T=function(){return x()&&S("month")},A=function(){return T()&&S("day")},w=function(){return A()&&S("hour")},E=function(){return w()&&S("minute")},D=function(){return E()&&S("second")},$=function(){return D()&&S("millisecond")};switch(r){case"year":return x();case"month":return T();case"day":return A();case"hour":return w();case"minute":return E();case"second":return D();case"millisecond":return $()}}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,v=timeUnits,S=0;function x(pe,ue,_e,xe,Te,Ae,we){for(var $e=new Date(ue),Pe=ue,Ce=$e[xe]();Pe<_e&&Pe<=s[1];)we.push({value:Pe}),Ce+=pe,$e[Te](Ce),Pe=$e.getTime();we.push({value:Pe,notAdd:!0})}function T(pe,ue,_e){var xe=[],Te=!ue.length;if(!isUnitValueSame(getPrimaryTimeUnit(pe),s[0],s[1],o)){Te&&(ue=[{value:getFirstTimestampOfUnit(new Date(s[0]),pe,o)},{value:s[1]}]);for(var Ae=0;Ae<ue.length-1;Ae++){var we=ue[Ae].value,$e=ue[Ae+1].value;if(we!==$e){var Pe=void 0,Ce=void 0,Re=void 0,Ye=!1;switch(pe){case"year":Pe=Math.max(1,Math.round(t/ONE_DAY/365)),Ce=fullYearGetterName(o),Re=fullYearSetterName(o);break;case"half-year":case"quarter":case"month":Pe=getMonthInterval(t),Ce=monthGetterName(o),Re=monthSetterName(o);break;case"week":case"half-week":case"day":Pe=getDateInterval(t),Ce=dateGetterName(o),Re=dateSetterName(o),Ye=!0;break;case"half-day":case"quarter-day":case"hour":Pe=getHourInterval(t),Ce=hoursGetterName(o),Re=hoursSetterName(o);break;case"minute":Pe=getMinutesAndSecondsInterval(t,!0),Ce=minutesGetterName(o),Re=minutesSetterName(o);break;case"second":Pe=getMinutesAndSecondsInterval(t,!1),Ce=secondsGetterName(o),Re=secondsSetterName(o);break;case"millisecond":Pe=getMillisecondsInterval(t),Ce=millisecondsGetterName(o),Re=millisecondsSetterName(o);break}x(Pe,we,$e,Ce,Re,Ye,xe),pe==="year"&&_e.length>1&&Ae===0&&_e.unshift({value:_e[0].value-Pe})}}for(var Ae=0;Ae<xe.length;Ae++)_e.push(xe[Ae]);return xe}}for(var A=[],w=[],E=0,D=0,$=0;$<v.length&&S++<l;++$){var N=getPrimaryTimeUnit(v[$]);if(isPrimaryTimeUnit(v[$])){T(v[$],A[A.length-1]||[],w);var z=v[$+1]?getPrimaryTimeUnit(v[$+1]):null;if(N!==z){if(w.length){D=E,w.sort(function(pe,ue){return pe.value-ue.value});for(var F=[],B=0;B<w.length;++B){var G=w[B].value;(B===0||w[B-1].value!==G)&&(F.push(w[B]),G>=s[0]&&G<=s[1]&&E++)}var W=(s[1]-s[0])/t;if(E>W*1.5&&D>W/1.5||(A.push(F),E>W||r===v[$]))break}w=[]}}}for(var X=filter(map$2(A,function(pe){return filter(pe,function(ue){return ue.value>=s[0]&&ue.value<=s[1]&&!ue.notAdd})}),function(pe){return pe.length>0}),ee=[],Q=X.length-1,$=0;$<X.length;++$)for(var te=X[$],ie=0;ie<te.length;++ie)ee.push({value:te[ie].value,level:Q-$});ee.sort(function(pe,ue){return pe.value-ue.value});for(var le=[],$=0;$<ee.length;++$)($===0||ee[$].value!==ee[$-1].value)&&le.push(ee[$]);return le}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,v=s.getExtent(),S=intervalScaleProto.getTicks.call(this,o);return map$2(S,function(x){var T=x.value,A=round$1(mathPow$1(this.base,T));return A=T===l[0]&&this._fixMin?fixRoundingError(A,v[0]):A,A=T===l[1]&&this._fixMax?fixRoundingError(A,v[1]):A,{value:A}},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,v=l.getExtent();return this._fixMin&&(s[0]=fixRoundingError(s[0],v[0])),this._fixMax&&(s[1]=fixRoundingError(s[1],v[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 v=quantity(l),S=o/l*v;for(S<=.5&&(v*=10);!isNaN(v)&&Math.abs(v)<1&&Math.abs(v)>0;)v*=10;var x=[round$1(mathCeil(s[0]/v)*v),round$1(mathFloor(s[1]/v)*v)];this._interval=v,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 v=this._modelMinRaw=o.get("min",!0);isFunction(v)?this._modelMinNum=parseAxisModelMinMax(t,v({min:s[0],max:s[1]})):v!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(t,v));var S=this._modelMaxRaw=o.get("max",!0);if(isFunction(S)?this._modelMaxNum=parseAxisModelMinMax(t,S({min:s[0],max:s[1]})):S!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(t,S)),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,v=this._boundaryGapInner,S=t?null:s-o||Math.abs(o),x=this._modelMinRaw==="dataMin"?o:this._modelMinNum,T=this._modelMaxRaw==="dataMax"?s:this._modelMaxNum,A=x!=null,w=T!=null;x==null&&(x=t?l?0:NaN:o-v[0]*S),T==null&&(T=t?l?l-1:NaN:s+v[1]*S),(x==null||!isFinite(x))&&(x=NaN),(T==null||!isFinite(T))&&(T=NaN);var E=eqNaN(x)||eqNaN(T)||t&&!l;this._needCrossZero&&(x>0&&T>0&&!A&&(x=0),x<0&&T<0&&!w&&(T=0));var D=this._determinedMin,$=this._determinedMax;return D!=null&&(x=D,A=!0),$!=null&&(T=$,w=!0),{min:x,max:T,minFixed:A,maxFixed:w,isBlank:E}},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,v=s.max,S=t.ecModel;if(S&&o==="time"){var x=prepareLayoutBarSeries("bar",S),T=!1;if(each$c(x,function(E){T=T||E.getBaseAxis()===t.axis}),T){var A=makeColumnLayout(x),w=adjustScaleForOverflow(l,v,t,A);l=w.min,v=w.max}}return{extent:[l,v],fixMin:s.minFixed,fixMax:s.maxFixed}}function adjustScaleForOverflow(r,t,o,s){var l=o.axis.getExtent(),v=l[1]-l[0],S=retrieveColumnLayout(s,o.axis);if(S===void 0)return{min:r,max:t};var x=1/0;each$c(S,function($){x=Math.min($.offset,x)});var T=-1/0;each$c(S,function($){T=Math.max($.offset+$.width,T)}),x=Math.abs(x),T=Math.abs(T);var A=x+T,w=t-r,E=1-(x+T)/v,D=w/E-w;return t+=D*(T/A),r-=D*(x/A),{min:r,max:t}}function niceScaleExtent(r,t){var o=t,s=getScaleExtent(r,o),l=s.extent,v=o.get("splitNumber");r instanceof LogScale$1&&(r.base=o.get("logBase"));var S=r.type,x=o.get("interval"),T=S==="interval"||S==="time";r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:v,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,v){return r.scale.getFormattedLabel(l,v,s)}}(t):isString(t)?function(s){return function(l){var v=r.scale.getLabel(l),S=s.replace("{value}",v??"");return S}}(t):isFunction(t)?function(s){return function(l,v){return o!=null&&(v=l.value-o),s(getAxisRawValue(r,l),v,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,v=o.getExtent();o instanceof OrdinalScale$1?l=o.count():(s=o.getTicks(),l=s.length);var S=r.getLabelModel(),x=makeLabelFormatter(r),T,A=1;l>40&&(A=Math.ceil(l/40));for(var w=0;w<l;w+=A){var E=s?s[w]:{value:v[0]+w},D=x(E,w),$=S.getTextRect(D),N=rotateTextRect($,S.get("rotate")||0);T?T.union(N):T=N}return T}}function rotateTextRect(r,t){var o=t*Math.PI/180,s=r.width,l=r.height,v=s*Math.abs(Math.cos(o))+Math.abs(l*Math.sin(o)),S=s*Math.abs(Math.sin(o))+Math.abs(l*Math.cos(o)),x=new BoundingRect$1(r.x,r.y,v,S);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 v=1;v<r.length;v++){var S=r[v];s+=windingLine(l[0],l[1],S[0],S[1],t,o),l=S}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 v=r[l];s&&(v=s.project(v)),v&&isFinite(v[0])&&isFinite(v[1])&&(min$1(t,t,v),max$1(o,o,v))}}function centroid(r){for(var t=0,o=0,s=0,l=r.length,v=r[l-1][0],S=r[l-1][1],x=0;x<l;x++){var T=r[x][0],A=r[x][1],w=v*A-T*S;t+=w,o+=(v+T)*w,s+=(S+A)*w,v=T,S=A}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 v=r.call(this,o)||this;return v.type="geoJSON",v.geometries=s,v._center=l&&[l[0],l[1]],v}return t.prototype.calcCenter=function(){for(var o=this.geometries,s,l=0,v=0;v<o.length;v++){var S=o[v],x=S.exterior,T=x&&x.length;T>l&&(s=S,l=T)}if(s)return centroid(s.exterior);var A=this.getBoundingRect();return[A.x+A.width/2,A.y+A.height/2]},t.prototype.getBoundingRect=function(o){var s=this._rect;if(s&&!o)return s;var l=[1/0,1/0],v=[-1/0,-1/0],S=this.geometries;return each$c(S,function(x){x.type==="polygon"?updateBBoxFromPoints(x.exterior,l,v,o):each$c(x.points,function(T){updateBBoxFromPoints(T,l,v,o)})}),isFinite(l[0])&&isFinite(l[1])&&isFinite(v[0])&&isFinite(v[1])||(l[0]=l[1]=v[0]=v[1]=0),s=new BoundingRect$1(l[0],l[1],v[0]-l[0],v[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 v=0,S=l.length;v<S;v++){var x=l[v];if(x.type==="polygon"){var T=x.exterior,A=x.interiors;if(contain(T,o[0],o[1])){for(var w=0;w<(A?A.length:0);w++)if(contain(A[w],o[0],o[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(o,s,l,v){var S=this.getBoundingRect(),x=S.width/S.height;l?v||(v=l/x):l=x*v;for(var T=new BoundingRect$1(o,s,l,v),A=S.calculateTransform(T),w=this.geometries,E=0;E<w.length;E++){var D=w[E];D.type==="polygon"?(transformPoints(D.exterior,A),each$c(D.interiors,function($){transformPoints($,A)})):each$c(D.points,function($){transformPoints($,A)})}S=this._rect,S.copy(T),this._center=[S.x+S.width/2,S.y+S.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],v=identity(TMP_TRANSFORM),S=o;S&&!S.isGeoSVGGraphicRoot;)mul(v,S.getLocalTransform(),v),S=S.parent;return invert(v,v),applyTransform$1(l,l,v),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 v=l.geometry,S=v.encodeOffsets,x=v.coordinates;if(S)switch(v.type){case"LineString":v.coordinates=decodeRing(x,S,o);break;case"Polygon":decodeRings(x,S,o);break;case"MultiLineString":decodeRings(x,S,o);break;case"MultiPolygon":each$c(x,function(T,A){return decodeRings(T,S[A],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],v=t[1],S=0;S<r.length;S+=2){var x=r.charCodeAt(S)-64,T=r.charCodeAt(S+1)-64;x=x>>1^-(x&1),T=T>>1^-(T&1),x+=l,T+=v,l=x,v=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,v=[];switch(l.type){case"Polygon":var S=l.coordinates;v.push(new GeoJSONPolygonGeometry(S[0],S.slice(1)));break;case"MultiPolygon":each$c(l.coordinates,function(T){T[0]&&v.push(new GeoJSONPolygonGeometry(T[0],T.slice(1)))});break;case"LineString":v.push(new GeoJSONLineStringGeometry([l.coordinates]));break;case"MultiLineString":v.push(new GeoJSONLineStringGeometry(l.coordinates))}var x=new GeoJSONRegion(s[t||"name"],v,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 v,S;return isFunction(s)?v=makeLabelsByCustomizedCategoryInterval(r,s):(S=s==="auto"?makeAutoCategoryInterval(r):s,v=makeLabelsByNumericCategoryInterval(r,S)),listCacheSet(o,s,{labels:v,labelCategoryInterval:S})}function makeCategoryTicks(r,t){var o=getListCache(r,"ticks"),s=getOptionCategoryInterval(t),l=listCacheGet(o,s);if(l)return l;var v,S;if((!t.get("show")||r.scale.isBlank())&&(v=[]),isFunction(s))v=makeLabelsByCustomizedCategoryInterval(r,s,!0);else if(s==="auto"){var x=makeCategoryLabelsActually(r,r.getLabelModel());S=x.labelCategoryInterval,v=map$2(x.labels,function(T){return T.tickValue})}else S=s,v=makeLabelsByNumericCategoryInterval(r,S,!0);return listCacheSet(o,s,{ticks:v,tickCategoryInterval:S})}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,v=l.getExtent(),S=l.count();if(v[1]-v[0]<1)return 0;var x=1;S>40&&(x=Math.max(1,Math.floor(S/40)));for(var T=v[0],A=r.dataToCoord(T+1)-r.dataToCoord(T),w=Math.abs(A*Math.cos(s)),E=Math.abs(A*Math.sin(s)),D=0,$=0;T<=v[1];T+=x){var N=0,z=0,F=getBoundingRect(o({value:T}),t.font,"center","top");N=F.width*1.3,z=F.height*1.3,D=Math.max(D,N,7),$=Math.max($,z,7)}var B=D/w,G=$/E;isNaN(B)&&(B=1/0),isNaN(G)&&(G=1/0);var W=Math.max(0,Math.floor(Math.min(B,G))),X=inner$7(r.model),ee=r.getExtent(),Q=X.lastAutoInterval,te=X.lastTickCount;return Q!=null&&te!=null&&Math.abs(Q-W)<=1&&Math.abs(te-S)<=1&&Q>W&&X.axisExtent0===ee[0]&&X.axisExtent1===ee[1]?W=Q:(X.lastTickCount=S,X.lastAutoInterval=W,X.axisExtent0=ee[0],X.axisExtent1=ee[1]),W}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,v=l.getExtent(),S=r.getLabelModel(),x=[],T=Math.max((t||0)+1,1),A=v[0],w=l.count();A!==0&&T>1&&w/T>2&&(A=Math.round(Math.ceil(A/T)*T));var E=shouldShowAllLabels(r),D=S.get("showMinLabel")||E,$=S.get("showMaxLabel")||E;D&&A!==v[0]&&z(v[0]);for(var N=A;N<=v[1];N+=T)z(N);$&&N-T!==v[1]&&z(v[1]);function z(F){var B={value:F};x.push(o?F:{formattedLabel:s(B),rawLabel:l.getLabel(B),tickValue:F})}return x}function makeLabelsByCustomizedCategoryInterval(r,t,o){var s=r.scale,l=makeLabelFormatter(r),v=[];return each$c(s.getTicks(),function(S){var x=s.getLabel(S),T=S.value;t(S.value,x)&&v.push(o?T:{formattedLabel:l(S),rawLabel:x,tickValue:T})}),v}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 v=linearMap$2(t,s,NORMALIZED_EXTENT,o);return this.scale.scale(v)},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,v=map$2(l,function(x){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(x):x),tickValue:x}},this),S=o.get("alignWithLabel");return fixOnBandTicksCoords(this,v,S,t.clamp),v},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(v){return map$2(v,function(S){return{coord:this.dataToCoord(S),tickValue:S}},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 v=r.getExtent(),S,x;if(l===1)t[0].coord=v[0],S=t[1]={coord:v[0]};else{var T=t[l-1].tickValue-t[0].tickValue,A=(t[l-1].coord-t[0].coord)/T;each$c(t,function($){$.coord-=A/2});var w=r.scale.getExtent();x=1+w[1]-t[l-1].tickValue,S={coord:t[l-1].coord+A*x},t.push(S)}var E=v[0]>v[1];D(t[0].coord,v[0])&&(s?t[0].coord=v[0]:t.shift()),s&&D(v[0],t[0].coord)&&t.unshift({coord:v[0]}),D(v[1],S.coord)&&(s?S.coord=v[1]:t.pop()),s&&D(S.coord,v[1])&&t.push({coord:v[1]});function D($,N){return $=round$1($),N=round$1(N),E?$>N:$<N}}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,v,S,x){var T=l-r,A=v-t,w=o-r,E=s-t,D=Math.sqrt(w*w+E*E);w/=D,E/=D;var $=T*w+A*E,N=$/D;x&&(N=Math.min(Math.max(N,0),1)),N*=D;var z=S[0]=r+N*w,F=S[1]=t+N*E;return Math.sqrt((z-l)*(z-l)+(F-v)*(F-v))}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),v=Math.cos(t);if(v<l){var S=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,S/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 v=dir.dot(t),S=Math.cos(o);if(v<S){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,A=Math.acos(dir2.dot(t)),w=T+A-o;if(w>=T)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,x/Math.tan(Math.PI/2-w));var E=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(E))return;E<0?Point$1.copy(tmpProjPoint,pt1):E>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(r[1])}}}}function setLabelLineState(r,t,o,s){var l=o==="normal",v=l?r:r.ensureState(o);v.ignore=t;var S=s.get("smooth");S&&S===!0&&(S=.3),v.shape=v.shape||{},S>0&&(v.shape.smooth=S);var x=s.getModel("lineStyle").getLineStyle();l?r.useStyle(x):v.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]),v=dist$1(s[1],s[2]);if(!l||!v){r.lineTo(s[1][0],s[1][1]),r.lineTo(s[2][0],s[2][1]);return}var S=Math.min(l,v)*o,x=lerp$1([],s[1],s[0],S/l),T=lerp$1([],s[1],s[2],S/v),A=lerp$1([],x,T,.5);r.bezierCurveTo(x[0],x[1],x[0],x[1],A[0],A[1]),r.bezierCurveTo(T[0],T[1],T[0],T[1],s[2][0],s[2][1])}else for(var w=1;w<s.length;w++)r.lineTo(s[w][0],s[w][1])}function setLabelLineStyle(r,t,o){var s=r.getTextGuideLine(),l=r.getTextContent();if(!l){s&&r.removeTextGuideLine();return}for(var v=t.normal,S=v.get("show"),x=l.ignore,T=0;T<DISPLAY_STATES.length;T++){var A=DISPLAY_STATES[T],w=t[A],E=A==="normal";if(w){var D=w.get("show"),$=E?x:retrieve2(l.states[A]&&l.states[A].ignore,x);if($||!retrieve2(D,S)){var N=E?s:s&&s.states[A];N&&(N.ignore=!0);continue}s||(s=new Polyline$1,r.setTextGuideLine(s),!E&&(x||!S)&&setLabelLineState(s,!0,"normal",t.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),setLabelLineState(s,!1,A,w)}}if(s){defaults(s.style,o),s.style.fill=null;var z=v.get("showAbove"),F=r.textGuideLineConfig=r.textGuideLineConfig||{};F.showAbove=z||!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,v=l.getComputedTransform(),S=l.getBoundingRect(),x=!v||v[1]<1e-5&&v[2]<1e-5,T=l.style.margin||0,A=S.clone();A.applyTransform(v),A.x-=T/2,A.y-=T/2,A.width+=T,A.height+=T;var w=x?new OrientedBoundingRect$1(S,v):null;t.push({label:l,labelLine:s.labelLine,rect:A,localRect:S,obb:w,priority:s.priority,defaultAttr:s.defaultAttr,layoutOption:s.computedLayoutOption,axisAligned:x,transform:v})}}return t}function shiftLayout(r,t,o,s,l,v){var S=r.length;if(S<2)return;r.sort(function(ie,le){return ie.rect[t]-le.rect[t]});for(var x=0,T,A=!1,w=0,E=0;E<S;E++){var D=r[E],$=D.rect;T=$[t]-x,T<0&&($[t]-=T,D.label[t]-=T,A=!0);var N=Math.max(-T,0);w+=N,x=$[t]+$[o]}w>0&&v&&ee(-w/S,0,S);var z=r[0],F=r[S-1],B,G;W(),B<0&&Q(-B,.8),G<0&&Q(G,.8),W(),X(B,G,1),X(G,B,-1),W(),B<0&&te(-B),G<0&&te(G);function W(){B=z.rect[t]-s,G=l-F.rect[t]-F.rect[o]}function X(ie,le,pe){if(ie<0){var ue=Math.min(le,-ie);if(ue>0){ee(ue*pe,0,S);var _e=ue+ie;_e<0&&Q(-_e*pe,1)}else Q(-ie*pe,1)}}function ee(ie,le,pe){ie!==0&&(A=!0);for(var ue=le;ue<pe;ue++){var _e=r[ue],xe=_e.rect;xe[t]+=ie,_e.label[t]+=ie}}function Q(ie,le){for(var pe=[],ue=0,_e=1;_e<S;_e++){var xe=r[_e-1].rect,Te=Math.max(r[_e].rect[t]-xe[t]-xe[o],0);pe.push(Te),ue+=Te}if(ue){var Ae=Math.min(Math.abs(ie)/ue,le);if(ie>0)for(var _e=0;_e<S-1;_e++){var we=pe[_e]*Ae;ee(we,0,_e+1)}else for(var _e=S-1;_e>0;_e--){var we=pe[_e-1]*Ae;ee(-we,_e,S)}}}function te(ie){var le=ie<0?-1:1;ie=Math.abs(ie);for(var pe=Math.ceil(ie/(S-1)),ue=0;ue<S-1;ue++)if(le>0?ee(pe,0,ue+1):ee(-pe,S-ue-1,S),ie-=pe,ie<=0)return}return A}function shiftLayoutOnY(r,t,o,s){return shiftLayout(r,"y","height",t,o,s)}function hideOverlap(r){var t=[];r.sort(function(z,F){return F.priority-z.priority});var o=new BoundingRect$1(0,0,0,0);function s(z){if(!z.ignore){var F=z.ensureState("emphasis");F.ignore==null&&(F.ignore=!1)}z.ignore=!0}for(var l=0;l<r.length;l++){var v=r[l],S=v.axisAligned,x=v.localRect,T=v.transform,A=v.label,w=v.labelLine;o.copy(v.rect),o.width-=.1,o.height-=.1,o.x+=.05,o.y+=.05;for(var E=v.obb,D=!1,$=0;$<t.length;$++){var N=t[$];if(o.intersect(N.rect)){if(S&&N.axisAligned){D=!0;break}if(N.obb||(N.obb=new OrientedBoundingRect$1(N.localRect,N.transform)),E||(E=new OrientedBoundingRect$1(x,T)),E.intersect(N.obb)){D=!0;break}}}D?(s(A),w&&s(w)):(A.attr("ignore",v.defaultAttr.ignore),w&&w.attr("ignore",v.defaultAttr.labelGuideIgnore),t.push(v))}}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(),v=t.getHeight(),S=s.style;return S&&(S.position="absolute",S.left="0",S.top="0",S.width=l+"px",S.height=v+"px",s.setAttribute("data-zr-dom-id",r)),s.width=l*o,s.height=v*o,s}var Layer=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this)||this;v.motionBlur=!1,v.lastFrameAlpha=.7,v.dpr=1,v.virtual=!1,v.config={},v.incremental=!1,v.zlevel=0,v.maxRepaintRectCount=5,v.__dirty=!0,v.__firstTimePaint=!0,v.__used=!1,v.__drawIndex=0,v.__startIndex=0,v.__endIndex=0,v.__prevStartIndex=null,v.__prevEndIndex=null;var S;l=l||devicePixelRatio,typeof o=="string"?S=createDom(o,s,l):isObject$3(o)&&(S=o,o=S.id),v.id=o,v.dom=S;var x=S.style;return x&&(disableUserSelect(S),S.onselectstart=function(){return!1},x.padding="0",x.margin="0",x.borderWidth="0"),v.painter=s,v.dpr=l,v}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,v){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var S=[],x=this.maxRepaintRectCount,T=!1,A=new BoundingRect$1(0,0,0,0);function w(G){if(!(!G.isFinite()||G.isZero()))if(S.length===0){var W=new BoundingRect$1(0,0,0,0);W.copy(G),S.push(W)}else{for(var X=!1,ee=1/0,Q=0,te=0;te<S.length;++te){var ie=S[te];if(ie.intersect(G)){var le=new BoundingRect$1(0,0,0,0);le.copy(ie),le.union(G),S[te]=le,X=!0;break}else if(T){A.copy(G),A.union(ie);var pe=G.width*G.height,ue=ie.width*ie.height,_e=A.width*A.height,xe=_e-pe-ue;xe<ee&&(ee=xe,Q=te)}}if(T&&(S[Q].union(G),X=!0),!X){var W=new BoundingRect$1(0,0,0,0);W.copy(G),S.push(W)}T||(T=S.length>=x)}}for(var E=this.__startIndex;E<this.__endIndex;++E){var D=o[E];if(D){var $=D.shouldBePainted(l,v,!0,!0),N=D.__isRendered&&(D.__dirty&REDRAW_BIT||!$)?D.getPrevPaintRect():null;N&&w(N);var z=$&&(D.__dirty&REDRAW_BIT||!D.__isRendered)?D.getPaintRect():null;z&&w(z)}}for(var E=this.__prevStartIndex;E<this.__prevEndIndex;++E){var D=s[E],$=D.shouldBePainted(l,v,!0,!0);if(D&&(!$||!D.__zr)&&D.__isRendered){var N=D.getPrevPaintRect();N&&w(N)}}var F;do{F=!1;for(var E=0;E<S.length;){if(S[E].isZero()){S.splice(E,1);continue}for(var B=E+1;B<S.length;)S[E].intersect(S[B])?(F=!0,S[E].union(S[B]),S.splice(B,1)):B++;E++}}while(F);return this._paintRects=S,S},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(o,s){var l=this.dpr,v=this.dom,S=v.style,x=this.domBack;S&&(S.width=o+"px",S.height=s+"px"),v.width=o*l,v.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 v=this.dom,S=this.ctx,x=v.width,T=v.height;s=s||this.clearColor;var A=this.motionBlur&&!o,w=this.lastFrameAlpha,E=this.dpr,D=this;A&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(v,0,0,x/E,T/E));var $=this.domBack;function N(z,F,B,G){if(S.clearRect(z,F,B,G),s&&s!=="transparent"){var W=void 0;if(isGradientObject(s)){var X=s.global||s.__width===B&&s.__height===G;W=X&&s.__canvasGradient||getCanvasGradient(S,s,{x:0,y:0,width:B,height:G}),s.__canvasGradient=W,s.__width=B,s.__height=G}else isImagePatternObject(s)&&(s.scaleX=s.scaleX||E,s.scaleY=s.scaleY||E,W=createCanvasPattern(S,s,{dirty:function(){D.setUnpainted(),D.__painter.refresh()}}));S.save(),S.fillStyle=W||s,S.fillRect(z,F,B,G),S.restore()}A&&(S.save(),S.globalAlpha=w,S.drawImage($,z,F,B,G),S.restore())}!l||A?N(0,0,x,T):l.length&&each$c(l,function(z){N(z.x*E,z.y*E,z.width*E,z.height*E)})},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 v=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=s=extend({},s||{}),this.dpr=s.devicePixelRatio||devicePixelRatio,this._singleCanvas=v,this.root=t;var S=t.style;S&&(disableUserSelect(t),t.innerHTML=""),this.storage=o;var x=this._zlevelList;this._prevDisplayList=[];var T=this._layers;if(v){var w=t,E=w.width,D=w.height;s.width!=null&&(E=s.width),s.height!=null&&(D=s.height),this.dpr=s.devicePixelRatio||1,w.width=E*this.dpr,w.height=D*this.dpr,this._width=E,this._height=D;var $=new Layer$1(w,this,this.dpr);$.__builtin__=!0,$.initContext(),T[CANVAS_ZLEVEL]=$,$.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 A=this._domRoot=createRoot(this._width,this._height);t.appendChild(A)}}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 v=0;v<l.length;v++){var S=l[v],x=this._layers[S];if(!x.__builtin__&&x.refresh){var T=v===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},v,S=0;S<o;S++){var x=t[S];x.__inHover&&(s||(s=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),v||(v=s.ctx,v.save()),brush(v,x,l,S===o-1))}v&&v.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 v=this._doPaintList(t,o,s),S=v.finished,x=v.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),x&&this._paintHoverList(t),S)this.eachLayer(function(A){A.afterBrush&&A.afterBrush()});else{var T=this;requestAnimationFrame$2(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,v=[],S=this._opts.useDirtyRect,x=0;x<this._zlevelList.length;x++){var T=this._zlevelList[x],A=this._layers[T];A.__builtin__&&A!==this._hoverlayer&&(A.__dirty||s)&&v.push(A)}for(var w=!0,E=!1,D=function(z){var F=v[z],B=F.ctx,G=S&&F.createRepaintRects(t,o,$._width,$._height),W=s?F.__startIndex:F.__drawIndex,X=!s&&F.incremental&&Date.now,ee=X&&Date.now(),Q=F.zlevel===$._zlevelList[0]?$._backgroundColor:null;if(F.__startIndex===F.__endIndex)F.clear(!1,Q,G);else if(W===F.__startIndex){var te=t[W];(!te.incremental||!te.notClear||s)&&F.clear(!1,Q,G)}W===-1&&(console.error("For some unknown reason. drawIndex is -1"),W=F.__startIndex);var ie,le=function(xe){var Te={inHover:!1,allClipped:!1,prevEl:null,viewWidth:l._width,viewHeight:l._height};for(ie=W;ie<F.__endIndex;ie++){var Ae=t[ie];if(Ae.__inHover&&(E=!0),l._doPaintEl(Ae,F,S,xe,Te,ie===F.__endIndex-1),X){var we=Date.now()-ee;if(we>15)break}}Te.prevElClipPaths&&B.restore()};if(G)if(G.length===0)ie=F.__endIndex;else for(var pe=$.dpr,ue=0;ue<G.length;++ue){var _e=G[ue];B.save(),B.beginPath(),B.rect(_e.x*pe,_e.y*pe,_e.width*pe,_e.height*pe),B.clip(),le(_e),B.restore()}else B.save(),le(),B.restore();F.__drawIndex=ie,F.__drawIndex<F.__endIndex&&(w=!1)},$=this,N=0;N<v.length;N++)D(N);return env$1.wxa&&each$c(this._layers,function(z){z&&z.ctx&&z.ctx.draw&&z.ctx.draw()}),{finished:w,needsRefreshHover:E}},r.prototype._doPaintEl=function(t,o,s,l,v,S){var x=o.ctx;if(s){var T=t.getPaintRect();(!l||T&&T.intersect(l))&&(brush(x,t,v,S),t.setPrevPaintRect(T))}else brush(x,t,v,S)},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,v=l.length,S=this._domRoot,x=null,T=-1;if(!s[t]&&isLayerValid(o)){if(v>0&&t>l[0]){for(T=0;T<v-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 A=x.dom;A.nextSibling?S.insertBefore(o.dom,A.nextSibling):S.appendChild(o.dom)}else S.firstChild?S.insertBefore(o.dom,S.firstChild):S.appendChild(o.dom);o.__painter=this}},r.prototype.eachLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l];t.call(o,this._layers[v],v)}},r.prototype.eachBuiltinLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l],S=this._layers[v];S.__builtin__&&t.call(o,S,v)}},r.prototype.eachOtherLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l],S=this._layers[v];S.__builtin__||t.call(o,S,v)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(E,D){E.__dirty=E.__used=!1});function o(E){v&&(v.__endIndex!==E&&(v.__dirty=!0),v.__endIndex=E)}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 v=null,S=0,x,T;for(T=0;T<t.length;T++){var l=t[T],A=l.zlevel,w=void 0;x!==A&&(x=A,S=0),l.incremental?(w=this.getLayer(A+INCREMENTAL_INC,this._needsManuallyCompositing),w.incremental=!0,S=1):w=this.getLayer(A+(S>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),w.__builtin__||logError("ZLevel "+A+" has been used by unkown layer "+w.id),w!==v&&(w.__used=!0,w.__startIndex!==T&&(w.__dirty=!0),w.__startIndex=T,w.incremental?w.__drawIndex=-1:w.__drawIndex=T,o(T),v=w),l.__dirty&REDRAW_BIT&&!l.__inHover&&(w.__dirty=!0,w.incremental&&w.__drawIndex<0&&(w.__drawIndex=T))}o(T),this.eachBuiltinLayer(function(E,D){!E.__used&&E.getElementCount()>0&&(E.__dirty=!0,E.__startIndex=E.__endIndex=E.__drawIndex=0),E.__dirty&&E.__drawIndex<0&&(E.__drawIndex=E.__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 v=this._zlevelList[l];if(v===t||v===t+EL_AFTER_INCREMENTAL_INC){var S=this._layers[v];merge(S,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,v=this.root;if(t!=null&&(l.width=t),o!=null&&(l.height=o),t=getSize$1(v,0,l),o=getSize$1(v,1,l),s.style.display="",this._width!==t||o!==this._height){s.style.width=t+"px",s.style.height=o+"px";for(var S in this._layers)this._layers.hasOwnProperty(S)&&this._layers[S].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,v=o.dom.height;this.eachLayer(function(E){E.__builtin__?s.drawImage(E.dom,0,0,l,v):E.renderToCanvas&&(s.save(),E.renderToCanvas(s),s.restore())})}else for(var S={inHover:!1,viewWidth:this._width,viewHeight:this._height},x=this.storage.getDisplayList(!0),T=0,A=x.length;T<A;T++){var w=x[T];brush(s,w,S,T===A-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 v=this.getData().getVisual("symbol"),S=this.getData().getVisual("symbolRotate"),x=v==="none"?"circle":v,T=o.itemHeight*.8,A=createSymbol(x,(o.itemWidth-T)/2,(o.itemHeight-T)/2,T,T,o.itemStyle.fill);s.add(A),A.setStyle(o.itemStyle);var w=o.iconRotate==="inherit"?S:o.iconRotate||0;return A.rotation=w*Math.PI/180,A.setOrigin([o.itemWidth/2,o.itemHeight/2]),x.indexOf("empty")>-1&&(A.style.stroke=A.style.fill,A.style.fill="#fff",A.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 v=[],S=0;S<o.length;S++)v.push(retrieveRawValue(r,t,o[S]));return v.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 v=r.getDimensionIndex(o[l]);v>=0&&s.push(t[v])}return s.join(" ")}var Symbol$1=function(r){__extends(t,r);function t(o,s,l,v){var S=r.call(this)||this;return S.updateData(o,s,l,v),S}return t.prototype._createSymbol=function(o,s,l,v,S){this.removeAll();var x=createSymbol(o,-1,-1,2,2,null,S);x.attr({z2:100,culling:!0,scaleX:v[0]/2,scaleY:v[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,v){this.silent=!1;var S=o.getItemVisual(s,"symbol")||"circle",x=o.hostModel,T=t.getSymbolSize(o,s),A=S!==this._symbolType,w=v&&v.disableAnimation;if(A){var E=o.getItemVisual(s,"symbolKeepAspect");this._createSymbol(S,o,s,T,E)}else{var D=this.childAt(0);D.silent=!1;var $={scaleX:T[0]/2,scaleY:T[1]/2};w?D.attr($):updateProps$1(D,$,x,s),saveOldStyle(D)}if(this._updateCommon(o,s,T,l,v),A){var D=this.childAt(0);if(!w){var $={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:D.style.opacity}};D.scaleX=D.scaleY=0,D.style.opacity=0,initProps(D,$,x,s)}}w&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(o,s,l,v,S){var x=this.childAt(0),T=o.hostModel,A,w,E,D,$,N,z,F,B;if(v&&(A=v.emphasisItemStyle,w=v.blurItemStyle,E=v.selectItemStyle,D=v.focus,$=v.blurScope,z=v.labelStatesModels,F=v.hoverScale,B=v.cursorStyle,N=v.emphasisDisabled),!v||o.hasItemOption){var G=v&&v.itemModel?v.itemModel:o.getItemModel(s),W=G.getModel("emphasis");A=W.getModel("itemStyle").getItemStyle(),E=G.getModel(["select","itemStyle"]).getItemStyle(),w=G.getModel(["blur","itemStyle"]).getItemStyle(),D=W.get("focus"),$=W.get("blurScope"),N=W.get("disabled"),z=getLabelStatesModels(G),F=W.getShallow("scale"),B=G.getShallow("cursor")}var X=o.getItemVisual(s,"symbolRotate");x.attr("rotation",(X||0)*Math.PI/180||0);var ee=normalizeSymbolOffset(o.getItemVisual(s,"symbolOffset"),l);ee&&(x.x=ee[0],x.y=ee[1]),B&&x.attr("cursor",B);var Q=o.getItemVisual(s,"style"),te=Q.fill;if(x instanceof ZRImage$1){var ie=x.style;x.useStyle(extend({image:ie.image,x:ie.x,y:ie.y,width:ie.width,height:ie.height},Q))}else x.__isEmptyBrush?x.useStyle(extend({},Q)):x.useStyle(Q),x.style.decal=null,x.setColor(te,S&&S.symbolInnerColor),x.style.strokeNoScale=!0;var le=o.getItemVisual(s,"liftZ"),pe=this._z2;le!=null?pe==null&&(this._z2=x.z2,x.z2+=le):pe!=null&&(x.z2=pe,this._z2=null);var ue=S&&S.useNameLabel;setLabelStyle(x,z,{labelFetcher:T,labelDataIndex:s,defaultText:_e,inheritColor:te,defaultOpacity:Q.opacity});function _e(Ae){return ue?o.getName(Ae):getDefaultLabel(o,Ae)}this._sizeX=l[0]/2,this._sizeY=l[1]/2;var xe=x.ensureState("emphasis");xe.style=A,x.ensureState("select").style=E,x.ensureState("blur").style=w;var Te=F==null||F===!0?Math.max(1.1,3/this._sizeY):isFinite(F)&&F>0?+F:1;xe.scaleX=this._sizeX*Te,xe.scaleY=this._sizeY*Te,this.setSymbolScale(1),toggleHoverEmphasis(this,D,$,N)},t.prototype.setSymbolScale=function(o){this.scaleX=this.scaleY=o},t.prototype.fadeOut=function(o,s,l){var v=this.childAt(0),S=getECData(this).dataIndex,x=l&&l.animation;if(this.silent=v.silent=!0,l&&l.fadeLabel){var T=v.getTextContent();T&&removeElement(T,{style:{opacity:0}},s,{dataIndex:S,removeOpt:x,cb:function(){v.removeTextContent()}})}else v.removeTextContent();removeElement(v,{style:{opacity:0},scaleX:0,scaleY:0},s,{dataIndex:S,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,v=this._data,S=this._SymbolCtor,x=o.disableAnimation,T=makeSeriesScope(t),A={disableAnimation:x},w=o.getSymbolPoint||function(E){return t.getItemLayout(E)};v||s.removeAll(),t.diff(v).add(function(E){var D=w(E);if(symbolNeedsDraw(t,D,E,o)){var $=new S(t,E,T,A);$.setPosition(D),t.setItemGraphicEl(E,$),s.add($)}}).update(function(E,D){var $=v.getItemGraphicEl(D),N=w(E);if(!symbolNeedsDraw(t,N,E,o)){s.remove($);return}var z=t.getItemVisual(E,"symbol")||"circle",F=$&&$.getSymbolType&&$.getSymbolType();if(!$||F&&F!==z)s.remove($),$=new S(t,E,T,A),$.setPosition(N);else{$.updateData(t,E,T,A);var B={x:N[0],y:N[1]};x?$.attr(B):updateProps$1($,B,l)}s.add($),t.setItemGraphicEl(E,$)}).remove(function(E){var D=v.getItemGraphicEl(E);D&&D.fadeOut(function(){s.remove(D)},l)}).execute(),this._getSymbolPoint=w,this._data=t},r.prototype.updateLayout=function(){var t=this,o=this._data;o&&o.eachItemGraphicEl(function(s,l){var v=t._getSymbolPoint(l);s.setPosition(v),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 v=t.start;v<t.end;v++){var S=o.getItemLayout(v);if(symbolNeedsDraw(o,S,v,s)){var x=new this._SymbolCtor(o,v,this._seriesScope);x.traverse(l),x.setPosition(S),this.group.add(x),o.setItemGraphicEl(v,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),v=getValueStart(l,o),S=s.dim,x=l.dim,T=t.mapDimension(x),A=t.mapDimension(S),w=x==="x"||x==="radius"?1:0,E=map$2(r.dimensions,function(N){return t.mapDimension(N)}),D=!1,$=t.getCalculationInfo("stackResultDimension");return isDimensionStacked(t,E[0])&&(D=!0,E[0]=$),isDimensionStacked(t,E[1])&&(D=!0,E[1]=$),{dataDimsForPoint:E,valueStart:v,valueAxisDim:x,baseAxisDim:S,stacked:!!D,valueDim:T,baseDim:A,baseDataOffset:w,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 v=r.baseDataOffset,S=[];return S[v]=o.get(r.baseDim,s),S[1-v]=l,t.dataToPoint(S)}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,v,S,x){for(var T=diffData(r,t),A=[],w=[],E=[],D=[],$=[],N=[],z=[],F=prepareDataCoordInfo(l,t,S),B=r.getLayout("points")||[],G=t.getLayout("points")||[],W=0;W<T.length;W++){var X=T[W],ee=!0,Q=void 0,te=void 0;switch(X.cmd){case"=":Q=X.idx*2,te=X.idx1*2;var ie=B[Q],le=B[Q+1],pe=G[te],ue=G[te+1];(isNaN(ie)||isNaN(le))&&(ie=pe,le=ue),A.push(ie,le),w.push(pe,ue),E.push(o[Q],o[Q+1]),D.push(s[te],s[te+1]),z.push(t.getRawIndex(X.idx1));break;case"+":var _e=X.idx,xe=F.dataDimsForPoint,Te=l.dataToPoint([t.get(xe[0],_e),t.get(xe[1],_e)]);te=_e*2,A.push(Te[0],Te[1]),w.push(G[te],G[te+1]);var Ae=getStackedOnPoint(F,l,t,_e);E.push(Ae[0],Ae[1]),D.push(s[te],s[te+1]),z.push(t.getRawIndex(_e));break;case"-":ee=!1}ee&&($.push(X),N.push(N.length))}N.sort(function(ht,st){return z[ht]-z[st]});for(var we=A.length,$e=createFloat32Array(we),Pe=createFloat32Array(we),Ce=createFloat32Array(we),Re=createFloat32Array(we),Ye=[],W=0;W<N.length;W++){var We=N[W],qe=W*2,Qe=We*2;$e[qe]=A[Qe],$e[qe+1]=A[Qe+1],Pe[qe]=w[Qe],Pe[qe+1]=w[Qe+1],Ce[qe]=E[Qe],Ce[qe+1]=E[Qe+1],Re[qe]=D[Qe],Re[qe+1]=D[Qe+1],Ye[W]=$[We]}return{current:$e,next:Pe,stackedOnCurrent:Ce,stackedOnNext:Re,status:Ye}}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,v,S,x,T){for(var A,w,E,D,$,N,z=o,F=0;F<s;F++){var B=t[z*2],G=t[z*2+1];if(z>=l||z<0)break;if(isPointNull$1(B,G)){if(T){z+=v;continue}break}if(z===o)r[v>0?"moveTo":"lineTo"](B,G),E=B,D=G;else{var W=B-A,X=G-w;if(W*W+X*X<.5){z+=v;continue}if(S>0){for(var ee=z+v,Q=t[ee*2],te=t[ee*2+1];Q===B&&te===G&&F<s;)F++,ee+=v,z+=v,Q=t[ee*2],te=t[ee*2+1],B=t[z*2],G=t[z*2+1],W=B-A,X=G-w;var ie=F+1;if(T)for(;isPointNull$1(Q,te)&&ie<s;)ie++,ee+=v,Q=t[ee*2],te=t[ee*2+1];var le=.5,pe=0,ue=0,_e=void 0,xe=void 0;if(ie>=s||isPointNull$1(Q,te))$=B,N=G;else{pe=Q-A,ue=te-w;var Te=B-A,Ae=Q-B,we=G-w,$e=te-G,Pe=void 0,Ce=void 0;if(x==="x"){Pe=Math.abs(Te),Ce=Math.abs(Ae);var Re=pe>0?1:-1;$=B-Re*Pe*S,N=G,_e=B+Re*Ce*S,xe=G}else if(x==="y"){Pe=Math.abs(we),Ce=Math.abs($e);var Ye=ue>0?1:-1;$=B,N=G-Ye*Pe*S,_e=B,xe=G+Ye*Ce*S}else Pe=Math.sqrt(Te*Te+we*we),Ce=Math.sqrt(Ae*Ae+$e*$e),le=Ce/(Ce+Pe),$=B-pe*S*(1-le),N=G-ue*S*(1-le),_e=B+pe*S*le,xe=G+ue*S*le,_e=mathMin$3(_e,mathMax$3(Q,B)),xe=mathMin$3(xe,mathMax$3(te,G)),_e=mathMax$3(_e,mathMin$3(Q,B)),xe=mathMax$3(xe,mathMin$3(te,G)),pe=_e-B,ue=xe-G,$=B-pe*Pe/Ce,N=G-ue*Pe/Ce,$=mathMin$3($,mathMax$3(A,B)),N=mathMin$3(N,mathMax$3(w,G)),$=mathMax$3($,mathMin$3(A,B)),N=mathMax$3(N,mathMin$3(w,G)),pe=B-$,ue=G-N,_e=B+pe*Ce/Pe,xe=G+ue*Ce/Pe}r.bezierCurveTo(E,D,$,N,B,G),E=_e,D=xe}else r.lineTo(B,G)}A=B,w=G,z+=v}return F}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,v=0,S=l.length/2;if(s.connectNulls){for(;S>0&&isPointNull$1(l[S*2-2],l[S*2-1]);S--);for(;v<S&&isPointNull$1(l[v*2],l[v*2+1]);v++);}for(;v<S;)v+=drawSegment(o,l,v,S,S,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,v=l.data,S=PathProxy$1.CMD,x,T,A=s==="x",w=[],E=0;E<v.length;){var D=v[E++],$=void 0,N=void 0,z=void 0,F=void 0,B=void 0,G=void 0,W=void 0;switch(D){case S.M:x=v[E++],T=v[E++];break;case S.L:if($=v[E++],N=v[E++],W=A?(o-x)/($-x):(o-T)/(N-T),W<=1&&W>=0){var X=A?(N-T)*W+T:($-x)*W+x;return A?[o,X]:[X,o]}x=$,T=N;break;case S.C:$=v[E++],N=v[E++],z=v[E++],F=v[E++],B=v[E++],G=v[E++];var ee=A?cubicRootAt(x,$,z,B,o,w):cubicRootAt(T,N,F,G,o,w);if(ee>0)for(var Q=0;Q<ee;Q++){var te=w[Q];if(te<=1&&te>=0){var X=A?cubicAt(T,N,F,G,te):cubicAt(x,$,z,B,te);return A?[o,X]:[X,o]}}x=B,T=G;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,v=s.stackedOnPoints,S=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(;S<x&&isPointNull$1(l[S*2],l[S*2+1]);S++);}for(;S<x;){var A=drawSegment(o,l,S,x,x,1,s.smooth,T,s.connectNulls);drawSegment(o,v,S+A-1,A,x,-1,s.stackedOnSmooth,T,s.connectNulls),S+=A+1,o.closePath()}},t}(Path$1);function createGridClipPath(r,t,o,s,l){var v=r.getArea(),S=v.x,x=v.y,T=v.width,A=v.height,w=o.get(["lineStyle","width"])||2;S-=w/2,x-=w/2,T+=w,A+=w,S=Math.floor(S),T=Math.round(T);var E=new Rect$2({shape:{x:S,y:x,width:T,height:A}});if(t){var D=r.getBaseAxis(),$=D.isHorizontal(),N=D.inverse;$?(N&&(E.shape.x+=T),E.shape.width=0):(N||(E.shape.y+=A),E.shape.height=0);var z=isFunction(l)?function(F){l(F,E)}:null;initProps(E,{shape:{width:T,height:A,x:S,y:x}},o,null,s,z)}return E}function createPolarClipPath(r,t,o){var s=r.getArea(),l=round$1(s.r0,1),v=round$1(s.r,1),S=new Sector$1({shape:{cx:round$1(r.cx,1),cy:round$1(r.cy,1),r0:l,r:v,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}});if(t){var x=r.getBaseAxis().dim==="angle";x?S.shape.endAngle=s.startAngle:S.shape.r=l,initProps(S,{shape:{endAngle:s.endAngle,r:v}},o)}return S}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,v=0;v<r.length;){var S=r[v++],x=r[v++];isNaN(S)||(t=Math.min(S,t),s=Math.max(S,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],v=bboxFromPoints(t),S=v[0],x=v[1];return Math.max(Math.abs(s[0]-S[0]),Math.abs(s[1]-S[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),v=0;v<s;v++){var S=getStackedOnPoint(o,r,t,v);l[v*2]=S[0],l[v*2+1]=S[1]}return l}function turnPointsIntoStep(r,t,o,s){var l=t.getBaseAxis(),v=l.dim==="x"||l.dim==="radius"?0:1,S=[],x=0,T=[],A=[],w=[],E=[];if(s){for(x=0;x<r.length;x+=2)!isNaN(r[x])&&!isNaN(r[x+1])&&E.push(r[x],r[x+1]);r=E}for(x=0;x<r.length-2;x+=2)switch(w[0]=r[x+2],w[1]=r[x+3],A[0]=r[x],A[1]=r[x+1],S.push(A[0],A[1]),o){case"end":T[v]=w[v],T[1-v]=A[1-v],S.push(T[0],T[1]);break;case"middle":var D=(A[v]+w[v])/2,$=[];T[v]=$[v]=D,T[1-v]=A[1-v],$[1-v]=w[1-v],S.push(T[0],T[1]),S.push($[0],$[1]);break;default:T[v]=A[v],T[1-v]=w[1-v],S.push(T[0],T[1])}return S.push(r[x++],r[x++]),S}function clipColorStops(r,t){var o=[],s=r.length,l,v;function S(w,E,D){var $=w.coord,N=(D-$)/(E.coord-$),z=lerp(N,[w.color,E.color]);return{coord:D,color:z}}for(var x=0;x<s;x++){var T=r[x],A=T.coord;if(A<0)l=T;else if(A>t){v?o.push(S(v,T,t)):l&&o.push(S(l,T,0),S(l,T,t));break}else l&&(o.push(S(l,T,0)),l=null),o.push(T),v=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,v,S=s.length-1;S>=0;S--){var x=r.getDimensionInfo(s[S].dimension);if(l=x&&x.coordDim,l==="x"||l==="y"){v=s[S];break}}if(v){var T=t.getAxis(l),A=map$2(v.stops,function(W){return{coord:T.toGlobalCoord(T.dataToCoord(W.value)),color:W.color}}),w=A.length,E=v.outerColors.slice();w&&A[0].coord>A[w-1].coord&&(A.reverse(),E.reverse());var D=clipColorStops(A,l==="x"?o.getWidth():o.getHeight()),$=D.length;if(!$&&w)return A[0].coord<0?E[1]?E[1]:A[w-1].color:E[0]?E[0]:A[0].color;var N=10,z=D[0].coord-N,F=D[$-1].coord+N,B=F-z;if(B<.001)return"transparent";each$c(D,function(W){W.offset=(W.coord-z)/B}),D.push({offset:$?D[$-1].offset:.5,color:E[1]||"transparent"}),D.unshift({offset:$?D[0].offset:.5,color:E[0]||"transparent"});var G=new LinearGradient$1(0,0,0,0,D,!0);return G[l]=z,G[l+"2"]=F,G}}}function getIsIgnoreFunc(r,t,o){var s=r.get("showAllSymbol"),l=s==="auto";if(!(s&&!l)){var v=o.getAxesByScale("ordinal")[0];if(v&&!(l&&canShowAllSymbolForCategory(v,t))){var S=t.mapDimension(v.dim),x={};return each$c(v.getViewLabels(),function(T){var A=v.scale.getRawOrdinalNumber(T.tickValue);x[A]=1}),function(T){return!x.hasOwnProperty(t.get(S,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(),v=Math.max(1,Math.round(l/5)),S=0;S<l;S+=v)if(SymbolClz.getSymbolSize(t,S)[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,v,S,x=0,T=-1,A=0;A<s;A++)if(S=r[A*2+l],!(isNaN(S)||isNaN(r[A*2+1-l]))){if(A===0){v=S;continue}if(v<=t&&S>=t||v>=t&&S<=t){T=A;break}x=A,v=S}return{range:[x,T],t:(t-v)/(S-v)}}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"),v=l.get("valueAnimation"),S=s.getData(),x={lastFrameIndex:0},T=anyStateShowEndLabel(s)?function($,N){r._endLabelOnDuring($,N,S,x,v,l,t)}:null,A=t.getBaseAxis().isHorizontal(),w=createGridClipPath(t,o,s,function(){var $=r._endLabel;$&&o&&x.originalX!=null&&$.attr({x:x.originalX,y:x.originalY})},T);if(!s.get("clip",!0)){var E=w.shape,D=Math.max(E.width,E.height);A?(E.y-=D,E.height+=D*2):(E.x-=D,E.width+=D*2)}return T&&T(1,w),w}else return createPolarClipPath(t,o,s)}function getEndLabelStateSpecified(r,t){var o=t.getBaseAxis(),s=o.isHorizontal(),l=o.inverse,v=s?l?"right":"left":"center",S=s?"middle":l?"top":"bottom";return{normal:{align:r.get("align")||v,verticalAlign:r.get("verticalAlign")||S}}}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 v=this,S=o.coordinateSystem,x=this.group,T=o.getData(),A=o.getModel("lineStyle"),w=o.getModel("areaStyle"),E=T.getLayout("points")||[],D=S.type==="polar",$=this._coordSys,N=this._symbolDraw,z=this._polyline,F=this._polygon,B=this._lineGroup,G=!s.ssr&&o.isAnimationEnabled(),W=!w.isEmpty(),X=w.get("origin"),ee=prepareDataCoordInfo(S,T,X),Q=W&&getStackedOnPoints(S,T,ee),te=o.get("showSymbol"),ie=o.get("connectNulls"),le=te&&!D&&getIsIgnoreFunc(o,T,S),pe=this._data;pe&&pe.eachItemGraphicEl(function(st,Tt){st.__temp&&(x.remove(st),pe.setItemGraphicEl(Tt,null))}),te||N.remove(),x.add(B);var ue=D?!1:o.get("step"),_e;S&&S.getArea&&o.get("clip",!0)&&(_e=S.getArea(),_e.width!=null?(_e.x-=.1,_e.y-=.1,_e.width+=.2,_e.height+=.2):_e.r0&&(_e.r0-=.5,_e.r+=.5)),this._clipShapeForSymbol=_e;var xe=getVisualGradient(T,S,l)||T.getVisual("style")[T.getVisual("drawType")];if(!(z&&$.type===S.type&&ue===this._step))te&&N.updateData(T,{isIgnore:le,clipShape:_e,disableAnimation:!0,getSymbolPoint:function(st){return[E[st*2],E[st*2+1]]}}),G&&this._initSymbolLabelAnimation(T,S,_e),ue&&(E=turnPointsIntoStep(E,S,ue,ie),Q&&(Q=turnPointsIntoStep(Q,S,ue,ie))),z=this._newPolyline(E),W?F=this._newPolygon(E,Q):F&&(B.remove(F),F=this._polygon=null),D||this._initOrUpdateEndLabel(o,S,convertToColorString(xe)),B.setClipPath(createLineClipPath(this,S,!0,o));else{W&&!F?F=this._newPolygon(E,Q):F&&!W&&(B.remove(F),F=this._polygon=null),D||this._initOrUpdateEndLabel(o,S,convertToColorString(xe));var Te=B.getClipPath();if(Te){var Ae=createLineClipPath(this,S,!1,o);initProps(Te,{shape:Ae.shape},o)}else B.setClipPath(createLineClipPath(this,S,!0,o));te&&N.updateData(T,{isIgnore:le,clipShape:_e,disableAnimation:!0,getSymbolPoint:function(st){return[E[st*2],E[st*2+1]]}}),(!isPointsSame(this._stackedOnPoints,Q)||!isPointsSame(this._points,E))&&(G?this._doUpdateAnimation(T,Q,S,l,ue,X,ie):(ue&&(E=turnPointsIntoStep(E,S,ue,ie),Q&&(Q=turnPointsIntoStep(Q,S,ue,ie))),z.setShape({points:E}),F&&F.setShape({points:E,stackedOnPoints:Q})))}var we=o.getModel("emphasis"),$e=we.get("focus"),Pe=we.get("blurScope"),Ce=we.get("disabled");if(z.useStyle(defaults(A.getLineStyle(),{fill:"none",stroke:xe,lineJoin:"bevel"})),setStatesStylesFromModel(z,o,"lineStyle"),z.style.lineWidth>0&&o.get(["emphasis","lineStyle","width"])==="bolder"){var Re=z.getState("emphasis").style;Re.lineWidth=+z.style.lineWidth+1}getECData(z).seriesIndex=o.seriesIndex,toggleHoverEmphasis(z,$e,Pe,Ce);var Ye=getSmooth(o.get("smooth")),We=o.get("smoothMonotone");if(z.setShape({smooth:Ye,smoothMonotone:We,connectNulls:ie}),F){var qe=T.getCalculationInfo("stackedOnSeries"),Qe=0;F.useStyle(defaults(w.getAreaStyle(),{fill:xe,opacity:.7,lineJoin:"bevel",decal:T.getVisual("style").decal})),qe&&(Qe=getSmooth(qe.get("smooth"))),F.setShape({smooth:Ye,stackedOnSmooth:Qe,smoothMonotone:We,connectNulls:ie}),setStatesStylesFromModel(F,o,"areaStyle"),getECData(F).seriesIndex=o.seriesIndex,toggleHoverEmphasis(F,$e,Pe,Ce)}var ht=function(st){v._changePolyState(st)};T.eachItemGraphicEl(function(st){st&&(st.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=T,this._coordSys=S,this._stackedOnPoints=Q,this._points=E,this._step=ue,this._valueOrigin=X,o.get("triggerLineEvent")&&(this.packEventData(o,z),F&&this.packEventData(o,F))},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,v){var S=o.getData(),x=queryDataIndex(S,v);if(this._changePolyState("emphasis"),!(x instanceof Array)&&x!=null&&x>=0){var T=S.getLayout("points"),A=S.getItemGraphicEl(x);if(!A){var w=T[x*2],E=T[x*2+1];if(isNaN(w)||isNaN(E)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(w,E))return;var D=o.get("zlevel")||0,$=o.get("z")||0;A=new SymbolClz(S,x),A.x=w,A.y=E,A.setZ(D,$);var N=A.getSymbolPath().getTextContent();N&&(N.zlevel=D,N.z=$,N.z2=this._polyline.z2+1),A.__temp=!0,S.setItemGraphicEl(x,A),A.stopSymbolAnimation(!0),this.group.add(A)}A.highlight()}else ChartView$1.prototype.highlight.call(this,o,s,l,v)},t.prototype.downplay=function(o,s,l,v){var S=o.getData(),x=queryDataIndex(S,v);if(this._changePolyState("normal"),x!=null&&x>=0){var T=S.getItemGraphicEl(x);T&&(T.__temp?(S.setItemGraphicEl(x,null),this.group.remove(T)):T.downplay())}else ChartView$1.prototype.downplay.call(this,o,s,l,v)},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 v,S,x=s.getBaseAxis(),T=x.inverse;s.type==="cartesian2d"?(v=x.isHorizontal(),S=!1):s.type==="polar"&&(v=x.dim==="angle",S=!0);var A=o.hostModel,w=A.get("animationDuration");isFunction(w)&&(w=w(null));var E=A.get("animationDelay")||0,D=isFunction(E)?E(null):E;o.eachItemGraphicEl(function($,N){var z=$;if(z){var F=[$.x,$.y],B=void 0,G=void 0,W=void 0;if(l)if(S){var X=l,ee=s.pointToCoord(F);v?(B=X.startAngle,G=X.endAngle,W=-ee[1]/180*Math.PI):(B=X.r0,G=X.r,W=ee[0])}else{var Q=l;v?(B=Q.x,G=Q.x+Q.width,W=$.x):(B=Q.y+Q.height,G=Q.y,W=$.y)}var te=G===B?0:(W-B)/(G-B);T&&(te=1-te);var ie=isFunction(E)?E(N):w*te+D,le=z.getSymbolPath(),pe=le.getTextContent();z.attr({scaleX:0,scaleY:0}),z.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:ie}),pe&&pe.animateFrom({style:{opacity:0}},{duration:300,delay:ie}),le.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(o,s,l){var v=o.getModel("endLabel");if(anyStateShowEndLabel(o)){var S=o.getData(),x=this._polyline,T=S.getLayout("points");if(!T){x.removeTextContent(),this._endLabel=null;return}var A=this._endLabel;A||(A=this._endLabel=new ZRText$1({z2:200}),A.ignoreClip=!0,x.setTextContent(this._endLabel),x.disableLabelAnimation=!0);var w=getLastIndexNotNull(T);w>=0&&(setLabelStyle(x,getLabelStatesModels(o,"endLabel"),{inheritColor:l,labelFetcher:o,labelDataIndex:w,defaultText:function(E,D,$){return $!=null?getDefaultInterpolatedLabel(S,$):getDefaultLabel(S,E)},enableTextSetter:!0},getEndLabelStateSpecified(v,s)),x.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(o,s,l,v,S,x,T){var A=this._endLabel,w=this._polyline;if(A){o<1&&v.originalX==null&&(v.originalX=A.x,v.originalY=A.y);var E=l.getLayout("points"),D=l.hostModel,$=D.get("connectNulls"),N=x.get("precision"),z=x.get("distance")||0,F=T.getBaseAxis(),B=F.isHorizontal(),G=F.inverse,W=s.shape,X=G?B?W.x:W.y+W.height:B?W.x+W.width:W.y,ee=(B?z:0)*(G?-1:1),Q=(B?0:-z)*(G?-1:1),te=B?"x":"y",ie=getIndexRange(E,X,te),le=ie.range,pe=le[1]-le[0],ue=void 0;if(pe>=1){if(pe>1&&!$){var _e=getPointAtIndex(E,le[0]);A.attr({x:_e[0]+ee,y:_e[1]+Q}),S&&(ue=D.getRawValue(le[0]))}else{var _e=w.getPointOn(X,te);_e&&A.attr({x:_e[0]+ee,y:_e[1]+Q});var xe=D.getRawValue(le[0]),Te=D.getRawValue(le[1]);S&&(ue=interpolateRawValues(l,N,xe,Te,ie.t))}v.lastFrameIndex=le[0]}else{var Ae=o===1||v.lastFrameIndex>0?le[0]:0,_e=getPointAtIndex(E,Ae);S&&(ue=D.getRawValue(Ae)),A.attr({x:_e[0]+ee,y:_e[1]+Q})}S&&labelInner(A).setLabelText(ue)}},t.prototype._doUpdateAnimation=function(o,s,l,v,S,x,T){var A=this._polyline,w=this._polygon,E=o.hostModel,D=lineAnimationDiff(this._data,o,this._stackedOnPoints,s,this._coordSys,l,this._valueOrigin),$=D.current,N=D.stackedOnCurrent,z=D.next,F=D.stackedOnNext;if(S&&($=turnPointsIntoStep(D.current,l,S,T),N=turnPointsIntoStep(D.stackedOnCurrent,l,S,T),z=turnPointsIntoStep(D.next,l,S,T),F=turnPointsIntoStep(D.stackedOnNext,l,S,T)),getBoundingDiff($,z)>3e3||w&&getBoundingDiff(N,F)>3e3){A.stopAnimation(),A.setShape({points:z}),w&&(w.stopAnimation(),w.setShape({points:z,stackedOnPoints:F}));return}A.shape.__points=D.current,A.shape.points=$;var B={shape:{points:z}};D.current!==$&&(B.shape.__points=D.next),A.stopAnimation(),updateProps$1(A,B,E),w&&(w.setShape({points:$,stackedOnPoints:N}),w.stopAnimation(),updateProps$1(w,{shape:{stackedOnPoints:F}},E),A.shape.points!==w.shape.points&&(w.shape.points=A.shape.points));for(var G=[],W=D.status,X=0;X<W.length;X++){var ee=W[X].cmd;if(ee==="="){var Q=o.getItemGraphicEl(W[X].idx1);Q&&G.push({el:Q,ptIdx:X})}}A.animators&&A.animators.length&&A.animators[0].during(function(){w&&w.dirtyShape();for(var te=A.shape.__points,ie=0;ie<G.length;ie++){var le=G[ie].el,pe=G[ie].ptIdx*2;le.x=te[pe],le.y=te[pe+1],le.markRedraw()}})},t.prototype.remove=function(o){var s=this.group,l=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),l&&l.eachItemGraphicEl(function(v,S){v.__temp&&(s.remove(v),l.setItemGraphicEl(S,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,v=o.pipelineContext,S=t||v.large;if(l){var x=map$2(l.dimensions,function($){return s.mapDimension($)}).slice(0,2),T=x.length,A=s.getCalculationInfo("stackResultDimension");isDimensionStacked(s,x[0])&&(x[0]=A),isDimensionStacked(s,x[1])&&(x[1]=A);var w=s.getStore(),E=s.getDimensionIndex(x[0]),D=s.getDimensionIndex(x[1]);return T&&{progress:function($,N){for(var z=$.end-$.start,F=S&&createFloat32Array(z*T),B=[],G=[],W=$.start,X=0;W<$.end;W++){var ee=void 0;if(T===1){var Q=w.get(E,W);ee=l.dataToPoint(Q,null,G)}else B[0]=w.get(E,W),B[1]=w.get(D,W),ee=l.dataToPoint(B,null,G);S?(F[X++]=ee[0],F[X++]=ee[1]):N.setItemLayout(W,ee.slice())}S&&N.setLayout("points",F)}}}}}}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(),v=t.get("sampling"),S=t.coordinateSystem,x=l.count();if(x>10&&S.type==="cartesian2d"&&v){var T=S.getBaseAxis(),A=S.getOtherAxis(T),w=T.getExtent(),E=s.getDevicePixelRatio(),D=Math.abs(w[1]-w[0])*(E||1),$=Math.round(x/D);if(isFinite($)&&$>1){v==="lttb"&&t.setData(l.lttbDownSample(l.mapDimension(A.dim),1/$));var N=void 0;isString(v)?N=samplers[v]:isFunction(v)&&(N=v),N&&t.setData(l.downSample(l.mapDimension(A.dim),1/$,N,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 v=this.coordinateSystem;if(v&&v.clampData){var S=v.clampData(o),x=v.dataToPoint(S);if(l)each$c(v.getAxes(),function(D,$){if(D.type==="category"&&s!=null){var N=D.getTicksCoords(),z=S[$],F=s[$]==="x1"||s[$]==="y1";if(F&&(z+=1),N.length<2)return;if(N.length===2){x[$]=D.toGlobalCoord(D.getExtent()[F?1:0]);return}for(var B=void 0,G=void 0,W=1,X=0;X<N.length;X++){var ee=N[X].coord,Q=X===N.length-1?N[X-1].tickValue+W:N[X].tickValue;if(Q===z){G=ee;break}else if(Q<z)B=ee;else if(B!=null&&Q>z){G=(ee+B)/2;break}X===1&&(W=Q-N[0].tickValue)}G==null&&(B?B&&(G=N[N.length-1].coord):G=N[0].coord),x[$]=D.toGlobalCoord(G)}});else{var T=this.getData(),A=T.getLayout("offset"),w=T.getLayout("size"),E=v.getBaseAxis().isHorizontal()?0:1;x[E]+=A+w/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,v=s.cy,S=Math.max(s.r0||0,0),x=Math.max(s.r,0),T=(x-S)*.5,A=S+T,w=s.startAngle,E=s.endAngle,D=s.clockwise,$=Math.PI*2,N=D?E-w<$:w-E<$;N||(w=E-(D?$:-$));var z=Math.cos(w),F=Math.sin(w),B=Math.cos(E),G=Math.sin(E);N?(o.moveTo(z*S+l,F*S+v),o.arc(z*A+l,F*A+v,T,-Math.PI+w,w,!D)):o.moveTo(z*x+l,F*x+v),o.arc(l,v,x,w,E,!D),o.arc(B*A+l,G*A+v,T,E-Math.PI*2,E-Math.PI,!D),S!==0&&o.arc(l,v,S,E,w,D)},t}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition(r,t){t=t||{};var o=t.isRoundCap;return function(s,l,v){var S=l.position;if(!S||S instanceof Array)return calculateTextPosition(s,l,v);var x=r(S),T=l.distance!=null?l.distance:5,A=this.shape,w=A.cx,E=A.cy,D=A.r,$=A.r0,N=(D+$)/2,z=A.startAngle,F=A.endAngle,B=(z+F)/2,G=o?Math.abs(D-$)/2:0,W=Math.cos,X=Math.sin,ee=w+D*W(z),Q=E+D*X(z),te="left",ie="top";switch(x){case"startArc":ee=w+($-T)*W(B),Q=E+($-T)*X(B),te="center",ie="top";break;case"insideStartArc":ee=w+($+T)*W(B),Q=E+($+T)*X(B),te="center",ie="bottom";break;case"startAngle":ee=w+N*W(z)+adjustAngleDistanceX(z,T+G,!1),Q=E+N*X(z)+adjustAngleDistanceY(z,T+G,!1),te="right",ie="middle";break;case"insideStartAngle":ee=w+N*W(z)+adjustAngleDistanceX(z,-T+G,!1),Q=E+N*X(z)+adjustAngleDistanceY(z,-T+G,!1),te="left",ie="middle";break;case"middle":ee=w+N*W(B),Q=E+N*X(B),te="center",ie="middle";break;case"endArc":ee=w+(D+T)*W(B),Q=E+(D+T)*X(B),te="center",ie="bottom";break;case"insideEndArc":ee=w+(D-T)*W(B),Q=E+(D-T)*X(B),te="center",ie="top";break;case"endAngle":ee=w+N*W(F)+adjustAngleDistanceX(F,T+G,!0),Q=E+N*X(F)+adjustAngleDistanceY(F,T+G,!0),te="left",ie="middle";break;case"insideEndAngle":ee=w+N*W(F)+adjustAngleDistanceX(F,-T+G,!0),Q=E+N*X(F)+adjustAngleDistanceY(F,-T+G,!0),te="right",ie="middle";break;default:return calculateTextPosition(s,l,v)}return s=s||{},s.x=ee,s.y=Q,s.align=te,s.verticalAlign=ie,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,v=l.clockwise?l.startAngle:l.endAngle,S=l.clockwise?l.endAngle:l.startAngle,x=(v+S)/2,T,A=o(t);switch(A){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":T=x;break;case"startAngle":case"insideStartAngle":T=v;break;case"endAngle":case"insideEndAngle":T=S;break;default:r.setTextConfig({rotation:0});return}var w=Math.PI*1.5-T;A==="middle"&&w>Math.PI/2&&w<Math.PI*1.5&&(w-=Math.PI),r.setTextConfig({rotation:w})}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(v){return parsePercent$1(v,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,v){this._model=o,this._removeOnRenderedListener(l),this._updateDrawMode(o);var S=o.get("coordinateSystem");(S==="cartesian2d"||S==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(o,s,l):this._renderNormal(o,s,l,v))},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,v){var S=this.group,x=o.getData(),T=this._data,A=o.coordinateSystem,w=A.getBaseAxis(),E;A.type==="cartesian2d"?E=w.isHorizontal():A.type==="polar"&&(E=w.dim==="angle");var D=o.isAnimationEnabled()?o:null,$=shouldRealtimeSort(o,A);$&&this._enableRealtimeSort($,x,l);var N=o.get("clip",!0)||$,z=getClipArea(A,x);S.removeClipPath();var F=o.get("roundCap",!0),B=o.get("showBackground",!0),G=o.getModel("backgroundStyle"),W=G.get("borderRadius")||0,X=[],ee=this._backgroundEls,Q=v&&v.isInitSort,te=v&&v.type==="changeAxisOrder";function ie(ue){var _e=getLayout[A.type](x,ue),xe=createBackgroundEl(A,E,_e);return xe.useStyle(G.getItemStyle()),A.type==="cartesian2d"?xe.setShape("r",W):xe.setShape("cornerRadius",W),X[ue]=xe,xe}x.diff(T).add(function(ue){var _e=x.getItemModel(ue),xe=getLayout[A.type](x,ue,_e);if(B&&ie(ue),!(!x.hasValue(ue)||!isValidLayout[A.type](xe))){var Te=!1;N&&(Te=clip[A.type](z,xe));var Ae=elementCreator[A.type](o,x,ue,xe,E,D,w.model,!1,F);$&&(Ae.forceLabelAnimation=!0),updateStyle(Ae,x,ue,_e,xe,o,E,A.type==="polar"),Q?Ae.attr({shape:xe}):$?updateRealtimeAnimation($,D,Ae,xe,ue,E,!1,!1):initProps(Ae,{shape:xe},o,ue),x.setItemGraphicEl(ue,Ae),S.add(Ae),Ae.ignore=Te}}).update(function(ue,_e){var xe=x.getItemModel(ue),Te=getLayout[A.type](x,ue,xe);if(B){var Ae=void 0;ee.length===0?Ae=ie(_e):(Ae=ee[_e],Ae.useStyle(G.getItemStyle()),A.type==="cartesian2d"?Ae.setShape("r",W):Ae.setShape("cornerRadius",W),X[ue]=Ae);var we=getLayout[A.type](x,ue),$e=createBackgroundShape(E,we,A);updateProps$1(Ae,{shape:$e},D,ue)}var Pe=T.getItemGraphicEl(_e);if(!x.hasValue(ue)||!isValidLayout[A.type](Te)){S.remove(Pe);return}var Ce=!1;if(N&&(Ce=clip[A.type](z,Te),Ce&&S.remove(Pe)),Pe?saveOldStyle(Pe):Pe=elementCreator[A.type](o,x,ue,Te,E,D,w.model,!!Pe,F),$&&(Pe.forceLabelAnimation=!0),te){var Re=Pe.getTextContent();if(Re){var Ye=labelInner(Re);Ye.prevValue!=null&&(Ye.prevValue=Ye.value)}}else updateStyle(Pe,x,ue,xe,Te,o,E,A.type==="polar");Q?Pe.attr({shape:Te}):$?updateRealtimeAnimation($,D,Pe,Te,ue,E,!0,te):updateProps$1(Pe,{shape:Te},o,ue,null),x.setItemGraphicEl(ue,Pe),Pe.ignore=Ce,S.add(Pe)}).remove(function(ue){var _e=T.getItemGraphicEl(ue);_e&&removeElementWithFadeOut(_e,o,ue)}).execute();var le=this._backgroundGroup||(this._backgroundGroup=new Group$3);le.removeAll();for(var pe=0;pe<X.length;++pe)le.add(X[pe]);S.add(le),this._backgroundEls=X,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 v=this;if(s.count()){var S=o.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(s,o,l),this._isFirstFrame=!1;else{var x=function(T){var A=s.getItemGraphicEl(T),w=A&&A.shape;return w&&Math.abs(S.isHorizontal()?w.height:w.width)||0};this._onRendered=function(){v._updateSortWithinSameData(s,x,S,l)},l.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(o,s,l){var v=[];return o.each(o.mapDimension(s.dim),function(S,x){var T=l(x);T=T??NaN,v.push({dataIndex:x,mappedValue:T,ordinalNumber:S})}),v.sort(function(S,x){return x.mappedValue-S.mappedValue}),{ordinalNumbers:map$2(v,function(S){return S.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(o,s,l){for(var v=l.scale,S=o.mapDimension(l.dim),x=Number.MAX_VALUE,T=0,A=v.getOrdinalMeta().categories.length;T<A;++T){var w=o.rawIndexOf(S,v.getRawOrdinalNumber(T)),E=w<0?Number.MIN_VALUE:s(o.indexOfRawIndex(w));if(E>x)return!0;x=E}return!1},t.prototype._isOrderDifferentInView=function(o,s){for(var l=s.scale,v=l.getExtent(),S=Math.max(0,v[0]),x=Math.min(v[1],l.getOrdinalMeta().categories.length-1);S<=x;++S)if(o.ordinalNumbers[S]!==l.getRawOrdinalNumber(S))return!0},t.prototype._updateSortWithinSameData=function(o,s,l,v){if(this._isOrderChangedWithinSameData(o,s,l)){var S=this._dataSort(o,l,s);this._isOrderDifferentInView(S,l)&&(this._removeOnRenderedListener(v),v.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",axisId:l.index,sortInfo:S}))}},t.prototype._dispatchInitSort=function(o,s,l){var v=s.baseAxis,S=this._dataSort(o,v,function(x){return o.get(o.mapDimension(s.otherAxis.dim),x)});l.dispatchAction({type:"changeAxisOrder",componentType:v.dim+"Axis",isInitSort:!0,axisId:v.index,sortInfo:S})},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(v){removeElementWithFadeOut(v,o,getECData(v).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,v=r.y+r.height,S=mathMax$2(t.x,r.x),x=mathMin$2(t.x+t.width,l),T=mathMax$2(t.y,r.y),A=mathMin$2(t.y+t.height,v),w=x<S,E=A<T;return t.x=w&&S>l?x:S,t.y=E&&T>v?A:T,t.width=w?0:x-S,t.height=E?0:A-T,o<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height),w||E},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),v=mathMax$2(t.r0,r.r0);t.r=l,t.r0=v;var S=l-v<0;if(o<0){var s=t.r;t.r=t.r0,t.r0=s}return S}},elementCreator={cartesian2d:function(r,t,o,s,l,v,S,x,T){var A=new Rect$2({shape:extend({},s),z2:1});if(A.__dataIndex=o,A.name="item",v){var w=A.shape,E=l?"height":"width";w[E]=0}return A},polar:function(r,t,o,s,l,v,S,x,T){var A=!l&&T?Sausage:Sector$1,w=new A({shape:s,z2:1});w.name="item";var E=createPolarPositionMapping(l);if(w.calculateTextPosition=createSectorCalculateTextPosition(E,{isRoundCap:A===Sausage}),v){var D=w.shape,$=l?"r":"endAngle",N={};D[$]=l?s.r0:s.startAngle,N[$]=s[$],(x?updateProps$1:initProps)(w,{shape:N},v)}return w}};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,v,S,x){var T,A;v?(A={x:s.x,width:s.width},T={y:s.y,height:s.height}):(A={y:s.y,height:s.height},T={x:s.x,width:s.width}),x||(S?updateProps$1:initProps)(o,{shape:T},t,l,null);var w=t?r.baseAxis.model:null;(S?updateProps$1:initProps)(o,{shape:A},w,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,v=s.width>0?1:-1,S=s.height>0?1:-1;return{x:s.x+v*l/2,y:s.y+S*l/2,width:s.width-v*l,height:s.height-S*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,v,S,x){var T=t.getItemVisual(o,"style");if(x){if(!v.get("roundCap")){var w=r.shape,E=getSectorCornerRadius(s.getModel("itemStyle"),w,!0);extend(w,E),r.setShape(w)}}else{var A=s.get(["itemStyle","borderRadius"])||0;r.setShape("r",A)}r.useStyle(T);var D=s.getShallow("cursor");D&&r.attr("cursor",D);var $=x?S?l.r>=l.r0?"endArc":"startArc":l.endAngle>=l.startAngle?"endAngle":"startAngle":S?l.height>=0?"bottom":"top":l.width>=0?"right":"left",N=getLabelStatesModels(s);setLabelStyle(r,N,{labelFetcher:v,labelDataIndex:o,defaultText:getDefaultLabel(v.getData(),o),inheritColor:T.fill,defaultOpacity:T.opacity,defaultOutsidePosition:$});var z=r.getTextContent();if(x&&z){var F=s.get(["label","position"]);r.textConfig.inside=F==="middle"?!0:null,setSectorTextRotation(r,F==="outside"?$:F,createPolarPositionMapping(S),s.get(["label","rotate"]))}setLabelValueAnimation(z,N,v.getRawValue(o),function(G){return getDefaultInterpolatedLabel(t,G)});var B=s.getModel(["emphasis"]);toggleHoverEmphasis(r,B.get("focus"),B.get("blurScope"),B.get("disabled")),setStatesStylesFromModel(r,s),isZeroOnPolar(l)&&(r.style.fill="none",r.style.stroke="none",each$c(r.states,function(G){G.style&&(G.style.fill=G.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),v=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(s,l,v)}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,v=this.baseDimIdx,S=1-this.baseDimIdx,x=[],T=[],A=this.barWidth,w=0;w<l.length;w+=3)T[v]=A,T[S]=l[w+2],x[v]=l[w+v],x[S]=l[w+S],o.rect(x[0],x[1],T[0],T[1])},t}(Path$1);function createLarge(r,t,o,s){var l=r.getData(),v=l.getLayout("valueAxisHorizontal")?1:0,S=l.getLayout("largeDataIndices"),x=l.getLayout("size"),T=r.getModel("backgroundStyle"),A=l.getLayout("largeBackgroundPoints");if(A){var w=new LargePath({shape:{points:A},incremental:!!s,silent:!0,z2:0});w.baseDimIdx=v,w.largeDataIndices=S,w.barWidth=x,w.useStyle(T.getItemStyle()),t.add(w),o&&o.push(w)}var E=new LargePath({shape:{points:l.getLayout("largePoints")},incremental:!!s,ignoreCoarsePointer:!0,z2:1});E.baseDimIdx=v,E.largeDataIndices=S,E.barWidth=x,t.add(E),E.useStyle(l.getVisual("style")),getECData(E).seriesIndex=r.seriesIndex,r.get("silent")||(E.on("mousedown",largePathUpdateDataIndex),E.on("mousemove",largePathUpdateDataIndex)),o&&o.push(E)}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,v=r.shape.points,S=r.largeDataIndices,x=[],T=[],A=r.barWidth,w=0,E=v.length/3;w<E;w++){var D=w*3;if(T[s]=A,T[l]=v[D+2],x[s]=v[D+s],x[l]=v[D+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 S[w]}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(),v=t;return{cx:l.cx,cy:l.cy,r0:r?l.r0:v.r0,r:r?l.r:v.r,startAngle:r?v.startAngle:0,endAngle:r?v.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 v=parsePercent(o.width,t.getWidth()),S=parsePercent(o.height,t.getHeight()),x=Math.min(v,S),T=parsePercent(l[0],x/2),A=parsePercent(l[1],x/2),w,E,D=r.coordinateSystem;if(D){var $=D.dataToPoint(s);w=$[0]||0,E=$[1]||0}else isArray$1(s)||(s=[s,s]),w=parsePercent(s[0],v)+o.x,E=parsePercent(s[1],S)+o.y;return{cx:w,cy:E,r0:T,r:A}}function pieLayout(r,t,o){t.eachSeriesByType(r,function(s){var l=s.getData(),v=l.mapDimension("value"),S=getViewRect(s,o),x=getBasicPieLayout(s,o),T=x.cx,A=x.cy,w=x.r,E=x.r0,D=-s.get("startAngle")*RADIAN$1,$=s.get("minAngle")*RADIAN$1,N=0;l.each(v,function(pe){!isNaN(pe)&&N++});var z=l.getSum(v),F=Math.PI/(z||N)*2,B=s.get("clockwise"),G=s.get("roseType"),W=s.get("stillShowZeroSum"),X=l.getDataExtent(v);X[0]=0;var ee=PI2,Q=0,te=D,ie=B?1:-1;if(l.setLayout({viewRect:S,r:w}),l.each(v,function(pe,ue){var _e;if(isNaN(pe)){l.setItemLayout(ue,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:T,cy:A,r0:E,r:G?NaN:w});return}G!=="area"?_e=z===0&&W?F:pe*F:_e=PI2/N,_e<$?(_e=$,ee-=$):Q+=pe;var xe=te+ie*_e;l.setItemLayout(ue,{angle:_e,startAngle:te,endAngle:xe,clockwise:B,cx:T,cy:A,r0:E,r:G?linearMap$2(pe,X,[E,w]):w}),te=xe}),ee<PI2&&N)if(ee<=.001){var le=PI2/N;l.each(v,function(pe,ue){if(!isNaN(pe)){var _e=l.getItemLayout(ue);_e.angle=le,_e.startAngle=D+ie*ue*le,_e.endAngle=D+ie*(ue+1)*le}})}else F=ee/Q,te=D,l.each(v,function(pe,ue){if(!isNaN(pe)){var _e=l.getItemLayout(ue),xe=_e.angle===$?$:pe*F;_e.startAngle=te,_e.endAngle=te+ie*xe,te+=ie*xe}})})}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(v){for(var S=l.getName(v),x=0;x<s.length;x++)if(!s[x].isSelected(S))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide(r,t,o,s,l,v,S,x,T,A){if(r.length<2)return;function w(z){for(var F=z.rB,B=F*F,G=0;G<z.list.length;G++){var W=z.list[G],X=Math.abs(W.label.y-o),ee=s+W.len,Q=ee*ee,te=Math.sqrt((1-Math.abs(X*X/B))*Q),ie=t+(te+W.len2)*l,le=ie-W.label.x,pe=W.targetTextWidth-le*l;constrainTextWidth(W,pe,!0),W.label.x=ie}}function E(z){for(var F={list:[],maxY:0},B={list:[],maxY:0},G=0;G<z.length;G++)if(z[G].labelAlignTo==="none"){var W=z[G],X=W.label.y>o?B:F,ee=Math.abs(W.label.y-o);if(ee>=X.maxY){var Q=W.label.x-t-W.len2*l,te=s+W.len,ie=Math.abs(Q)<te?Math.sqrt(ee*ee/(1-Q*Q/te/te)):te;X.rB=ie,X.maxY=ee}X.list.push(W)}w(F),w(B)}for(var D=r.length,$=0;$<D;$++)if(r[$].position==="outer"&&r[$].labelAlignTo==="labelLine"){var N=r[$].label.x-A;r[$].linePoints[1][0]+=N,r[$].label.x=A}shiftLayoutOnY(r,T,T+S)&&E(r)}function avoidOverlap(r,t,o,s,l,v,S,x){for(var T=[],A=[],w=Number.MAX_VALUE,E=-Number.MAX_VALUE,D=0;D<r.length;D++){var $=r[D].label;isPositionCenter(r[D])||($.x<t?(w=Math.min(w,$.x),T.push(r[D])):(E=Math.max(E,$.x),A.push(r[D])))}for(var D=0;D<r.length;D++){var N=r[D];if(!isPositionCenter(N)&&N.linePoints){if(N.labelStyleWidth!=null)continue;var $=N.label,z=N.linePoints,F=void 0;N.labelAlignTo==="edge"?$.x<t?F=z[2][0]-N.labelDistance-S-N.edgeDistance:F=S+l-N.edgeDistance-z[2][0]-N.labelDistance:N.labelAlignTo==="labelLine"?$.x<t?F=w-S-N.bleedMargin:F=S+l-E-N.bleedMargin:$.x<t?F=$.x-S-N.bleedMargin:F=S+l-$.x-N.bleedMargin,N.targetTextWidth=F,constrainTextWidth(N,F)}}adjustSingleSide(A,t,o,s,1,l,v,S,x,E),adjustSingleSide(T,t,o,s,-1,l,v,S,x,w);for(var D=0;D<r.length;D++){var N=r[D];if(!isPositionCenter(N)&&N.linePoints){var $=N.label,z=N.linePoints,B=N.labelAlignTo==="edge",G=$.style.padding,W=G?G[1]+G[3]:0,X=$.style.backgroundColor?0:W,ee=N.rect.width+X,Q=z[1][0]-z[2][0];B?$.x<t?z[2][0]=S+N.edgeDistance+ee+N.labelDistance:z[2][0]=S+l-N.edgeDistance-ee-N.labelDistance:($.x<t?z[2][0]=$.x+N.labelDistance:z[2][0]=$.x-N.labelDistance,z[1][0]=z[2][0]+Q),z[1][1]=z[2][1]=$.y}}}function constrainTextWidth(r,t,o){if(o===void 0&&(o=!1),r.labelStyleWidth==null){var s=r.label,l=s.style,v=r.rect,S=l.backgroundColor,x=l.padding,T=x?x[1]+x[3]:0,A=l.overflow,w=v.width+(S?0:T);if(t<w||o){var E=v.height;if(A&&A.match("break")){s.setStyle("backgroundColor",null),s.setStyle("width",t-T);var D=s.getBoundingRect();s.setStyle("width",Math.ceil(D.width)),s.setStyle("backgroundColor",S)}else{var $=t-T,N=t<w?$:o?$>r.unconstrainedWidth?null:$:null;s.setStyle("width",N)}var z=s.getBoundingRect();v.width=z.width;var F=(s.style.margin||0)+2.1;v.height=z.height+F,v.y-=(v.height-E)/2}}}function isPositionCenter(r){return r.position==="center"}function pieLabelLayout(r){var t=r.getData(),o=[],s,l,v=!1,S=(r.get("minShowLabelAngle")||0)*RADIAN,x=t.getLayout("viewRect"),T=t.getLayout("r"),A=x.width,w=x.x,E=x.y,D=x.height;function $(Q){Q.ignore=!0}function N(Q){if(!Q.ignore)return!0;for(var te in Q.states)if(Q.states[te].ignore===!1)return!0;return!1}t.each(function(Q){var te=t.getItemGraphicEl(Q),ie=te.shape,le=te.getTextContent(),pe=te.getTextGuideLine(),ue=t.getItemModel(Q),_e=ue.getModel("label"),xe=_e.get("position")||ue.get(["emphasis","label","position"]),Te=_e.get("distanceToLabelLine"),Ae=_e.get("alignTo"),we=parsePercent(_e.get("edgeDistance"),A),$e=_e.get("bleedMargin"),Pe=ue.getModel("labelLine"),Ce=Pe.get("length");Ce=parsePercent(Ce,A);var Re=Pe.get("length2");if(Re=parsePercent(Re,A),Math.abs(ie.endAngle-ie.startAngle)<S){each$c(le.states,$),le.ignore=!0,pe&&(each$c(pe.states,$),pe.ignore=!0);return}if(N(le)){var Ye=(ie.startAngle+ie.endAngle)/2,We=Math.cos(Ye),qe=Math.sin(Ye),Qe,ht,st,Tt;s=ie.cx,l=ie.cy;var yt=xe==="inside"||xe==="inner";if(xe==="center")Qe=ie.cx,ht=ie.cy,Tt="center";else{var Me=(yt?(ie.r+ie.r0)/2*We:ie.r*We)+s,Be=(yt?(ie.r+ie.r0)/2*qe:ie.r*qe)+l;if(Qe=Me+We*3,ht=Be+qe*3,!yt){var De=Me+We*(Ce+T-ie.r),Ue=Be+qe*(Ce+T-ie.r),xt=De+(We<0?-1:1)*Re,ft=Ue;Ae==="edge"?Qe=We<0?w+we:w+A-we:Qe=xt+(We<0?-Te:Te),ht=ft,st=[[Me,Be],[De,Ue],[xt,ft]]}Tt=yt?"center":Ae==="edge"?We>0?"right":"left":We>0?"left":"right"}var wt=Math.PI,ct=0,Xe=_e.get("rotate");if(isNumber(Xe))ct=Xe*(wt/180);else if(xe==="center")ct=0;else if(Xe==="radial"||Xe===!0){var Ct=We<0?-Ye+wt:-Ye;ct=Ct}else if(Xe==="tangential"&&xe!=="outside"&&xe!=="outer"){var Rt=Math.atan2(We,qe);Rt<0&&(Rt=wt*2+Rt);var Lt=qe>0;Lt&&(Rt=wt+Rt),ct=Rt-wt}if(v=!!ct,le.x=Qe,le.y=ht,le.rotation=ct,le.setStyle({verticalAlign:"middle"}),yt){le.setStyle({align:Tt});var Kt=le.states.select;Kt&&(Kt.x+=le.x,Kt.y+=le.y)}else{var Et=le.getBoundingRect().clone();Et.applyTransform(le.getComputedTransform());var Yt=(le.style.margin||0)+2.1;Et.y-=Yt/2,Et.height+=Yt,o.push({label:le,labelLine:pe,position:xe,len:Ce,len2:Re,minTurnAngle:Pe.get("minTurnAngle"),maxSurfaceAngle:Pe.get("maxSurfaceAngle"),surfaceNormal:new Point$1(We,qe),linePoints:st,textAlign:Tt,labelDistance:Te,labelAlignTo:Ae,edgeDistance:we,bleedMargin:$e,rect:Et,unconstrainedWidth:Et.width,labelStyleWidth:le.style.width})}te.setTextConfig({inside:yt})}}),!v&&r.get("avoidLabelOverlap")&&avoidOverlap(o,s,l,T,A,D,w,E);for(var z=0;z<o.length;z++){var F=o[z],B=F.label,G=F.labelLine,W=isNaN(B.x)||isNaN(B.y);if(B){B.setStyle({align:F.textAlign}),W&&(each$c(B.states,$),B.ignore=!0);var X=B.states.select;X&&(X.x+=B.x,X.y+=B.y)}if(G){var ee=F.linePoints;W||!ee?(each$c(G.states,$),G.ignore=!0):(limitTurnAngle(ee,F.minTurnAngle),limitSurfaceAngle(ee,F.surfaceNormal,F.maxSurfaceAngle),G.setShape({points:ee}),B.__hostTarget.textGuideLineConfig={anchor:new Point$1(ee[0][0],ee[0][1])})}}}var PiePiece=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this)||this;v.z2=2;var S=new ZRText$1;return v.setTextContent(S),v.updateData(o,s,l,!0),v}return t.prototype.updateData=function(o,s,l,v){var S=this,x=o.hostModel,T=o.getItemModel(s),A=T.getModel("emphasis"),w=o.getItemLayout(s),E=extend(getSectorCornerRadius(T.getModel("itemStyle"),w,!0),w);if(isNaN(E.startAngle)){S.setShape(E);return}if(v){S.setShape(E);var D=x.getShallow("animationType");x.ecModel.ssr?(initProps(S,{scaleX:0,scaleY:0},x,{dataIndex:s,isFrom:!0}),S.originX=E.cx,S.originY=E.cy):D==="scale"?(S.shape.r=w.r0,initProps(S,{shape:{r:w.r}},x,s)):l!=null?(S.setShape({startAngle:l,endAngle:l}),initProps(S,{shape:{startAngle:w.startAngle,endAngle:w.endAngle}},x,s)):(S.shape.endAngle=w.startAngle,updateProps$1(S,{shape:{endAngle:w.endAngle}},x,s))}else saveOldStyle(S),updateProps$1(S,{shape:E},x,s);S.useStyle(o.getItemVisual(s,"style")),setStatesStylesFromModel(S,T);var $=(w.startAngle+w.endAngle)/2,N=x.get("selectedOffset"),z=Math.cos($)*N,F=Math.sin($)*N,B=T.getShallow("cursor");B&&S.attr("cursor",B),this._updateLabel(x,o,s),S.ensureState("emphasis").shape=extend({r:w.r+(A.get("scale")&&A.get("scaleSize")||0)},getSectorCornerRadius(A.getModel("itemStyle"),w)),extend(S.ensureState("select"),{x:z,y:F,shape:getSectorCornerRadius(T.getModel(["select","itemStyle"]),w)}),extend(S.ensureState("blur"),{shape:getSectorCornerRadius(T.getModel(["blur","itemStyle"]),w)});var G=S.getTextGuideLine(),W=S.getTextContent();G&&extend(G.ensureState("select"),{x:z,y:F}),extend(W.ensureState("select"),{x:z,y:F}),toggleHoverEmphasis(this,A.get("focus"),A.get("blurScope"),A.get("disabled"))},t.prototype._updateLabel=function(o,s,l){var v=this,S=s.getItemModel(l),x=S.getModel("labelLine"),T=s.getItemVisual(l,"style"),A=T&&T.fill,w=T&&T.opacity;setLabelStyle(v,getLabelStatesModels(S),{labelFetcher:s.hostModel,labelDataIndex:l,inheritColor:A,defaultOpacity:w,defaultText:o.getFormattedLabel(l,"normal")||s.getName(l)});var E=v.getTextContent();v.setTextConfig({position:null,rotation:null}),E.attr({z2:10});var D=o.get(["label","position"]);if(D!=="outside"&&D!=="outer")v.removeTextGuideLine();else{var $=this.getTextGuideLine();$||($=new Polyline$1,this.setTextGuideLine($)),setLabelLineStyle(this,getLabelLineStatesModels(S),{stroke:A,opacity:retrieve3(x.get(["lineStyle","opacity"]),w,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,v){var S=o.getData(),x=this._data,T=this.group,A;if(!x&&S.count()>0){for(var w=S.getItemLayout(0),E=1;isNaN(w&&w.startAngle)&&E<S.count();++E)w=S.getItemLayout(E);w&&(A=w.startAngle)}if(this._emptyCircleSector&&T.remove(this._emptyCircleSector),S.count()===0&&o.get("showEmptyCircle")){var D=new Sector$1({shape:getBasicPieLayout(o,l)});D.useStyle(o.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=D,T.add(D)}S.diff(x).add(function($){var N=new PiePiece(S,$,A);S.setItemGraphicEl($,N),T.add(N)}).update(function($,N){var z=x.getItemGraphicEl(N);z.updateData(S,$,A),z.off("click"),T.add(z),S.setItemGraphicEl($,z)}).remove(function($){var N=x.getItemGraphicEl($);removeElementWithFadeOut(N,o,$)}).execute(),pieLabelLayout(o),o.get("animationTypeUpdate")!=="expansion"&&(this._data=S)},t.prototype.dispose=function(){},t.prototype.containPoint=function(o,s){var l=s.getData(),v=l.getItemLayout(0);if(v){var S=o[0]-v.cx,x=o[1]-v.cy,T=Math.sqrt(S*S+x*x);return T<=v.r&&T>=v.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,v=new SeriesData$1(l,r);return v.initData(s,o),v}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),v=l.seats;if(!v){var S=[];s.each(s.mapDimension("value"),function(T){S.push(T)}),v=l.seats=getPercentSeats(S,s.hostModel.get("percentPrecision"))}var x=r.prototype.getDataParams.call(this,o);return x.percent=v[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 v=s.mapDimension("value"),S=s.get(v,l);return!(isNumber(S)&&!isNaN(S)&&S<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,v){var S=merge(merge({},axisDefault[v],!0),s,!0),x=function(T){__extends(A,T);function A(){var w=T!==null&&T.apply(this,arguments)||this;return w.type=t+"Axis."+v,w}return A.prototype.mergeDefaultAndTheme=function(w,E){var D=fetchLayoutMode(this),$=D?getLayoutParams(w):{},N=E.getTheme();merge(w,N.get(v+"Axis")),merge(w,this.getDefaultOption()),w.type=getAxisType(w),D&&mergeLayoutParam(w,$,D)},A.prototype.optionUpdated=function(){var w=this.option;w.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},A.prototype.getCategories=function(w){var E=this.option;if(E.type==="category")return w?E.data:this.__ordinalMeta.categories},A.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},A.type=t+"Axis."+v,A.defaultOption=S,A}(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(),v=s.getExtent(),S=this.dataToPoint([l[0],v[0]]),x=this.dataToPoint([l[1],v[1]]),T=l[1]-l[0],A=v[1]-v[0];if(!(!T||!A)){var w=(x[0]-S[0])/T,E=(x[1]-S[1])/A,D=S[0]-l[0]*w,$=S[1]-v[0]*E,N=this._transform=[w,0,0,E,D,$];this._invTransform=invert([],N)}}},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),v=this.dataToPoint(s),S=this.getArea(),x=new BoundingRect$1(l[0],l[1],v[0]-l[0],v[1]-l[1]);return S.intersect(x)},t.prototype.dataToPoint=function(o,s,l){l=l||[];var v=o[0],S=o[1];if(this._transform&&v!=null&&isFinite(v)&&S!=null&&isFinite(S))return applyTransform$1(l,o,this._transform);var x=this.getAxis("x"),T=this.getAxis("y");return l[0]=x.toGlobalCoord(x.dataToCoord(v,s)),l[1]=T.toGlobalCoord(T.dataToCoord(S,s)),l},t.prototype.clampData=function(o,s){var l=this.getAxis("x").scale,v=this.getAxis("y").scale,S=l.getExtent(),x=v.getExtent(),T=l.parse(o[0]),A=v.parse(o[1]);return s=s||[],s[0]=Math.min(Math.max(Math.min(S[0],S[1]),T),Math.max(S[0],S[1])),s[1]=Math.min(Math.max(Math.min(x[0],x[1]),A),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 v=this.getAxis("x"),S=this.getAxis("y");return l[0]=v.coordToData(v.toLocalCoord(o[0]),s),l[1]=S.coordToData(S.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]),v=Math.min(s[0],s[1]),S=Math.max(o[0],o[1])-l,x=Math.max(s[0],s[1])-v;return new BoundingRect$1(l,v,S,x)},t}(Cartesian$1),Axis2D=function(r){__extends(t,r);function t(o,s,l,v,S){var x=r.call(this,o,s,l)||this;return x.index=0,x.type=v||"value",x.position=S||"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,v={},S=l.getAxesOnZeroOf()[0],x=l.position,T=S?"onZero":x,A=l.dim,w=s.getRect(),E=[w.x,w.x+w.width,w.y,w.y+w.height],D={left:0,right:1,top:0,bottom:1,onZero:2},$=t.get("offset")||0,N=A==="x"?[E[2]-$,E[3]+$]:[E[0]-$,E[1]+$];if(S){var z=S.toGlobalCoord(S.dataToCoord(0));N[D.onZero]=Math.max(Math.min(z,N[1]),N[0])}v.position=[A==="y"?N[D[T]]:E[0],A==="x"?N[D[T]]:E[3]],v.rotation=Math.PI/2*(A==="x"?0:1);var F={top:-1,bottom:1,left:-1,right:1};v.labelDirection=v.tickDirection=v.nameDirection=F[x],v.labelOffset=S?N[D[x]]-N[D.onZero]:0,t.get(["axisTick","inside"])&&(v.tickDirection=-v.tickDirection),retrieve(o.labelInside,t.get(["axisLabel","inside"]))&&(v.labelDirection=-v.labelDirection);var B=t.get(["axisLabel","rotate"]);return v.labelRotate=T==="top"?-B:B,v.z2=1,v}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$/,""),v=r.getReferringComponents(l,SINGLE_REFERRING).models[0];t[s]=v}),t}var mathLog=Math.log;function alignScaleTicks(r,t,o){var s=IntervalScale$1.prototype,l=s.getTicks.call(o),v=s.getTicks.call(o,!0),S=l.length-1,x=s.getInterval.call(o),T=getScaleExtent(r,t),A=T.extent,w=T.fixMin,E=T.fixMax;if(r.type==="log"){var D=mathLog(r.base);A=[mathLog(A[0])/D,mathLog(A[1])/D]}r.setExtent(A[0],A[1]),r.calcNiceExtent({splitNumber:S,fixMin:w,fixMax:E});var $=s.getExtent.call(r);w&&(A[0]=$[0]),E&&(A[1]=$[1]);var N=s.getInterval.call(r),z=A[0],F=A[1];if(w&&E)N=(F-z)/S;else if(w)for(F=A[0]+N*S;F<A[1]&&isFinite(F)&&isFinite(A[1]);)N=increaseInterval(N),F=A[0]+N*S;else if(E)for(z=A[1]-N*S;z>A[0]&&isFinite(z)&&isFinite(A[0]);)N=increaseInterval(N),z=A[1]-N*S;else{var B=r.getTicks().length-1;B>S&&(N=increaseInterval(N));var G=N*S;F=Math.ceil(A[1]/N)*N,z=round$1(F-G),z<0&&A[0]>=0?(z=0,F=round$1(G)):F>0&&A[1]<=0&&(F=0,z=-round$1(G))}var W=(l[0].value-v[0].value)/x,X=(l[S].value-v[S].value)/x;s.setExtent.call(r,z+N*W,F+N*X),s.setInterval.call(r,N),(W||X)&&s.setNiceExtent.call(r,z+N,F-N)}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(S){var x,T=keys(S),A=T.length;if(A){for(var w=[],E=A-1;E>=0;E--){var D=+T[E],$=S[D],N=$.model,z=$.scale;isIntervalOrLogScale(z)&&N.get("alignTicks")&&N.get("interval")==null?w.push($):(niceScaleExtent(z,N),isIntervalOrLogScale(z)&&(x=$))}w.length&&(x||(x=w.pop(),niceScaleExtent(x.scale,x.model)),each$c(w,function(F){alignScaleTicks(F.scale,F.model,x.scale)}))}}l(s.x),l(s.y);var v={};each$c(s.x,function(S){fixAxisOnZero(s,"y",S,v)}),each$c(s.y,function(S){fixAxisOnZero(s,"x",S,v)}),this.resize(this.model,o)},r.prototype.resize=function(t,o,s){var l=t.getBoxLayoutParams(),v=!s&&t.get("containLabel"),S=getLayoutRect(l,{width:o.getWidth(),height:o.getHeight()});this._rect=S;var x=this._axesList;T(),v&&(each$c(x,function(A){if(!A.model.get(["axisLabel","inside"])){var w=estimateLabelUnionRect(A);if(w){var E=A.isHorizontal()?"height":"width",D=A.model.get(["axisLabel","margin"]);S[E]-=w[E]+D,A.position==="top"?S.y+=w.height+D:A.position==="left"&&(S.x+=w.width+D)}}}),T()),each$c(this._coordsList,function(A){A.calcAffineTransform()});function T(){each$c(x,function(A){var w=A.isHorizontal(),E=w?[0,S.width]:[0,S.height],D=A.inverse?1:0;A.setExtent(E[D],E[1-D]),updateAxisTransform(A,w?S.x:S.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,v=this._coordsList;l<v.length;l++)if(v[l].getAxis("x").index===t||v[l].getAxis("y").index===o)return v[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],v=t.gridModel,S=this._coordsList,x,T;if(o)x=o.coordinateSystem,indexOf(S,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(v){var A=v.coordinateSystem;A===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,v=this,S={left:!1,right:!1,top:!1,bottom:!1},x={x:{},y:{}},T={x:0,y:0};if(o.eachComponent("xAxis",A("x"),this),o.eachComponent("yAxis",A("y"),this),!T.x||!T.y){this._axesMap={},this._axesList=[];return}this._axesMap=x,each$c(x.x,function(w,E){each$c(x.y,function(D,$){var N="x"+E+"y"+$,z=new Cartesian2D(N);z.master=l,z.model=t,l._coordsMap[N]=z,l._coordsList.push(z),z.addAxis(w),z.addAxis(D)})});function A(w){return function(E,D){if(isAxisUsedInTheGrid(E,t)){var $=E.get("position");w==="x"?$!=="top"&&$!=="bottom"&&($=S.bottom?"top":"bottom"):$!=="left"&&$!=="right"&&($=S.left?"right":"left"),S[$]=!0;var N=new Axis2D$1(w,createScaleByModel(E),[0,0],E.get("type"),$),z=N.type==="category";N.onBand=z&&E.get("boundaryGap"),N.inverse=E.get("inverse"),E.axis=N,N.model=E,N.grid=v,N.index=D,v._axesList.push(N),x[w][D]=N,T[w]++}}}},r.prototype._updateScale=function(t,o){each$c(this._axesList,function(l){if(l.scale.setExtent(1/0,-1/0),l.type==="category"){var v=l.model.get("categorySortInfo");l.scale.setSortInfo(v)}}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var v=findAxisModels(l),S=v.xAxisModel,x=v.yAxisModel;if(!isAxisUsedInTheGrid(S,o)||!isAxisUsedInTheGrid(x,o))return;var T=this.getCartesian(S.componentIndex,x.componentIndex),A=l.getData(),w=T.getAxis("x"),E=T.getAxis("y");s(A,w),s(A,E)}},this);function s(l,v){each$c(getDataDimensionsOnAxis(l,v.dim),function(S){v.scale.unionExtentFromData(l,S)})}},r.prototype.getTooltipAxes=function(t){var o=[],s=[];return each$c(this.getCartesians(),function(l){var v=t!=null&&t!=="auto"?l.getAxis(t):l.getBaseAxis(),S=l.getOtherAxis(v);indexOf(o,v)<0&&o.push(v),indexOf(s,S)<0&&s.push(S)}),{baseAxes:o,otherAxes:s}},r.create=function(t,o){var s=[];return t.eachComponent("grid",function(l,v){var S=new r(l,t,o);S.name="grid_"+v,S.resize(l,o,!0),l.coordinateSystem=S,s.push(S)}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var v=findAxisModels(l),S=v.xAxisModel,x=v.yAxisModel,T=S.getCoordSysModel(),A=T.coordinateSystem;l.coordinateSystem=A.getCartesian(S.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 v?[v]:[]};var l=r[t],v,S=o.model,x=S.get(["axisLine","onZero"]),T=S.get(["axisLine","onZeroAxisIndex"]);if(!x)return;if(T!=null)canOnZeroToAxis(l[T])&&(v=l[T]);else for(var A in l)if(l.hasOwnProperty(A)&&canOnZeroToAxis(l[A])&&!s[w(l[A])]){v=l[A];break}v&&(s[w(v)]=!0);function w(E){return E.dim+"_"+E.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),v,S;return isRadianAroundZero(l)?(S=s>0?"top":"bottom",v="center"):isRadianAroundZero(l-PI)?(S=s>0?"bottom":"top",v="center"):(S="middle",l>0&&l<PI?v=s>0?"right":"left":v=s>0?"left":"right"),{rotation:l,textAlign:v,textVerticalAlign:S}},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 v=t.axis.getExtent(),S=s.transform,x=[v[0],0],T=[v[1],0],A=x[0]>T[0];S&&(applyTransform$1(x,x,S),applyTransform$1(T,T,S));var w=extend({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),E=new Line$1({shape:{x1:x[0],y1:x[1],x2:T[0],y2:T[1]},style:w,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(E.shape,E.style.lineWidth),E.anid="line",o.add(E);var D=t.get(["axisLine","symbol"]);if(D!=null){var $=t.get(["axisLine","symbolSize"]);isString(D)&&(D=[D,D]),(isString($)||isNumber($))&&($=[$,$]);var N=normalizeSymbolOffset(t.get(["axisLine","symbolOffset"])||0,$),z=$[0],F=$[1];each$c([{rotate:r.rotation+Math.PI/2,offset:N[0],r:0},{rotate:r.rotation-Math.PI/2,offset:N[1],r:Math.sqrt((x[0]-T[0])*(x[0]-T[0])+(x[1]-T[1])*(x[1]-T[1]))}],function(B,G){if(D[G]!=="none"&&D[G]!=null){var W=createSymbol(D[G],-z/2,-F/2,z,F,w.stroke,!0),X=B.r+B.offset,ee=A?T:x;W.attr({rotation:B.rotate,x:ee[0]+X*Math.cos(r.rotation),y:ee[1]-X*Math.sin(r.rotation),silent:!0,z2:11}),o.add(W)}})}}},axisTickLabel:function(r,t,o,s){var l=buildAxisMajorTicks(o,s,t,r),v=buildAxisLabel(o,s,t,r);if(fixMinMaxLabelShow(t,v,l),buildAxisMinorTicks(o,s,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var S=prepareLayoutList(map$2(v,function(x){return{label:x,priority:x.z2,defaultAttr:{ignore:x.ignore}}}));hideOverlap(S)}},axisName:function(r,t,o,s){var l=retrieve(r.axisName,t.get("name"));if(l){var v=t.get("nameLocation"),S=r.nameDirection,x=t.getModel("nameTextStyle"),T=t.get("nameGap")||0,A=t.axis.getExtent(),w=A[0]>A[1]?-1:1,E=[v==="start"?A[0]-w*T:v==="end"?A[1]+w*T:(A[0]+A[1])/2,isNameLocationCenter(v)?r.labelOffset+S*T:0],D,$=t.get("nameRotate");$!=null&&($=$*PI/180);var N;isNameLocationCenter(v)?D=AxisBuilder.innerTextLayout(r.rotation,$??r.rotation,S):(D=endTextLayout(r.rotation,v,$||0,A),N=r.axisNameAvailableWidth,N!=null&&(N=Math.abs(N/Math.sin(D.rotation)),!isFinite(N)&&(N=null)));var z=x.getFont(),F=t.get("nameTruncate",!0)||{},B=F.ellipsis,G=retrieve(r.nameTruncateMaxWidth,F.maxWidth,N),W=new ZRText$1({x:E[0],y:E[1],rotation:D.rotation,silent:AxisBuilder.isLabelSilent(t),style:createTextStyle$1(x,{text:l,font:z,overflow:"truncate",width:G,ellipsis:B,fill:x.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:x.get("align")||D.textAlign,verticalAlign:x.get("verticalAlign")||D.textVerticalAlign}),z2:1});if(setTooltipConfig({el:W,componentModel:t,itemName:l}),W.__fullText=l,W.anid="name",t.get("triggerEvent")){var X=AxisBuilder.makeAxisEventDataBase(t);X.targetType="axisName",X.name=l,getECData(W).eventData=X}s.add(W),W.updateTransform(),o.add(W),W.decomposeTransform()}}};function endTextLayout(r,t,o,s){var l=remRadian(o-r),v,S,x=s[0]>s[1],T=t==="start"&&!x||t!=="start"&&x;return isRadianAroundZero(l-PI/2)?(S=T?"bottom":"top",v="center"):isRadianAroundZero(l-PI*1.5)?(S=T?"top":"bottom",v="center"):(S="middle",l<PI*1.5&&l>PI/2?v=T?"left":"right":v=T?"right":"left"),{rotation:l,textAlign:v,textVerticalAlign:S}}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 v=t[0],S=t[1],x=t[t.length-1],T=t[t.length-2],A=o[0],w=o[1],E=o[o.length-1],D=o[o.length-2];s===!1?(ignoreEl(v),ignoreEl(A)):isTwoLabelOverlapped(v,S)&&(s?(ignoreEl(S),ignoreEl(w)):(ignoreEl(v),ignoreEl(A))),l===!1?(ignoreEl(x),ignoreEl(E)):isTwoLabelOverlapped(T,x)&&(l?(ignoreEl(T),ignoreEl(D)):(ignoreEl(x),ignoreEl(E)))}}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 v=[],S=[],x=[],T=0;T<r.length;T++){var A=r[T].coord;S[0]=A,S[1]=0,x[0]=A,x[1]=o,t&&(applyTransform$1(S,S,t),applyTransform$1(x,x,t));var w=new Line$1({shape:{x1:S[0],y1:S[1],x2:x[0],y2:x[1]},style:s,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(w.shape,w.style.lineWidth),w.anid=l+"_"+r[T].tickValue,v.push(w)}return v}function buildAxisMajorTicks(r,t,o,s){var l=o.axis,v=o.getModel("axisTick"),S=v.get("show");if(S==="auto"&&s.handleAutoShown&&(S=s.handleAutoShown("axisTick")),!(!S||l.scale.isBlank())){for(var x=v.getModel("lineStyle"),T=s.tickDirection*v.get("length"),A=l.getTicksCoords(),w=createTicks(A,t.transform,T,defaults(x.getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])}),"ticks"),E=0;E<w.length;E++)r.add(w[E]);return w}}function buildAxisMinorTicks(r,t,o,s){var l=o.axis,v=o.getModel("minorTick");if(!(!v.get("show")||l.scale.isBlank())){var S=l.getMinorTicksCoords();if(S.length)for(var x=v.getModel("lineStyle"),T=s*v.get("length"),A=defaults(x.getLineStyle(),defaults(o.getModel("axisTick").getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])})),w=0;w<S.length;w++)for(var E=createTicks(S[w],t.transform,T,A,"minorticks_"+w),D=0;D<E.length;D++)r.add(E[D])}}function buildAxisLabel(r,t,o,s){var l=o.axis,v=retrieve(s.axisLabelShow,o.get(["axisLabel","show"]));if(!(!v||l.scale.isBlank())){var S=o.getModel("axisLabel"),x=S.get("margin"),T=l.getViewLabels(),A=(retrieve(s.labelRotate,S.get("rotate"))||0)*PI/180,w=AxisBuilder.innerTextLayout(s.rotation,A,s.labelDirection),E=o.getCategories&&o.getCategories(!0),D=[],$=AxisBuilder.isLabelSilent(o),N=o.get("triggerEvent");return each$c(T,function(z,F){var B=l.scale.type==="ordinal"?l.scale.getRawOrdinalNumber(z.tickValue):z.tickValue,G=z.formattedLabel,W=z.rawLabel,X=S;if(E&&E[B]){var ee=E[B];isObject$3(ee)&&ee.textStyle&&(X=new Model$1(ee.textStyle,S,o.ecModel))}var Q=X.getTextColor()||o.get(["axisLine","lineStyle","color"]),te=l.dataToCoord(B),ie=new ZRText$1({x:te,y:s.labelOffset+s.labelDirection*x,rotation:w.rotation,silent:$,z2:10+(z.level||0),style:createTextStyle$1(X,{text:G,align:X.getShallow("align",!0)||w.textAlign,verticalAlign:X.getShallow("verticalAlign",!0)||X.getShallow("baseline",!0)||w.textVerticalAlign,fill:isFunction(Q)?Q(l.type==="category"?W:l.type==="value"?B+"":B,F):Q})});if(ie.anid="label_"+B,N){var le=AxisBuilder.makeAxisEventDataBase(o);le.targetType="axisLabel",le.value=W,le.tickIndex=F,l.type==="category"&&(le.dataIndex=B),getECData(ie).eventData=le}t.add(ie),ie.updateTransform(),D.push(ie),r.add(ie),ie.decomposeTransform()}),D}}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"),v=l.get("link",!0)||[],S=[];each$c(o.getCoordinateSystems(),function(x){if(!x.axisPointerEnabled)return;var T=makeKey(x.model),A=r.coordSysAxesInfo[T]={};r.coordSysMap[T]=x;var w=x.model,E=w.getModel("tooltip",s);if(each$c(x.getAxes(),curry$1(z,!1,null)),x.getTooltipAxes&&s&&E.get("show")){var D=E.get("trigger")==="axis",$=E.get(["axisPointer","type"])==="cross",N=x.getTooltipAxes(E.get(["axisPointer","axis"]));(D||$)&&each$c(N.baseAxes,curry$1(z,$?"cross":!0,D)),$&&each$c(N.otherAxes,curry$1(z,"cross",!1))}function z(F,B,G){var W=G.model.getModel("axisPointer",l),X=W.get("show");if(!(!X||X==="auto"&&!F&&!isHandleTrigger(W))){B==null&&(B=W.get("triggerTooltip")),W=F?makeAxisPointerModel(G,E,l,t,F,B):W;var ee=W.get("snap"),Q=makeKey(G.model),te=B||ee||G.type==="category",ie=r.axesInfo[Q]={key:Q,axis:G,coordSys:x,axisPointerModel:W,triggerTooltip:B,involveSeries:te,snap:ee,useHandle:isHandleTrigger(W),seriesModels:[],linkGroup:null};A[Q]=ie,r.seriesInvolved=r.seriesInvolved||te;var le=getLinkGroupIndex(v,G);if(le!=null){var pe=S[le]||(S[le]={axesInfo:{}});pe.axesInfo[Q]=ie,pe.mapper=v[le].mapper,ie.linkGroup=pe}}}})}function makeAxisPointerModel(r,t,o,s,l,v){var S=t.getModel("axisPointer"),x=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],T={};each$c(x,function(D){T[D]=clone$3(S.get(D))}),T.snap=r.type!=="category"&&!!v,S.get("type")==="cross"&&(T.type="line");var A=T.label||(T.label={});if(A.show==null&&(A.show=!1),l==="cross"){var w=S.get(["label","show"]);if(A.show=w??!0,!v){var E=T.lineStyle=S.get("crossStyle");E&&defaults(A,E.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),v=o.get(["tooltip","show"],!0);!s||l==="none"||l===!1||l==="item"||v===!1||o.get(["axisPointer","show"],!0)===!1||each$c(r.coordSysAxesInfo[makeKey(s.model)],function(S){var x=S.axis;s.getAxis(x.dim)===x&&(S.seriesModels.push(o),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=o.getData().count())})})}function getLinkGroupIndex(r,t){for(var o=t.model,s=t.dim,l=0;l<r.length;l++){var v=r[l]||{};if(checkPropInLink(v[s+"AxisId"],o.id)||checkPropInLink(v[s+"AxisIndex"],o.componentIndex)||checkPropInLink(v[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,v=o.get("status"),S=o.get("value");S!=null&&(S=s.parse(S));var x=isHandleTrigger(o);v==null&&(l.status=x?"show":"hide");var T=s.getExtent().slice();T[0]>T[1]&&T.reverse(),(S==null||S>T[1])&&(S=T[1]),S<T[0]&&(S=T[0]),l.value=S,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,v){this.axisPointerClass&&fixValue(o),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(o,l,!0)},t.prototype.updateAxisPointer=function(o,s,l,v){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 v=t.getAxisPointerClass(this.axisPointerClass);if(v){var S=getAxisPointerModel(o);S?(this._axisPointer||(this._axisPointer=new v)).render(o,S,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 v=o.getModel("splitArea"),S=v.getModel("areaStyle"),x=S.get("color"),T=s.coordinateSystem.getRect(),A=l.getTicksCoords({tickModel:v,clamp:!0});if(A.length){var w=x.length,E=inner$6(r).splitAreaColors,D=createHashMap(),$=0;if(E)for(var N=0;N<A.length;N++){var z=E.get(A[N].tickValue);if(z!=null){$=(z+(w-1)*N)%w;break}}var F=l.toGlobalCoord(A[0].coord),B=S.getAreaStyle();x=isArray$1(x)?x:[x];for(var N=1;N<A.length;N++){var G=l.toGlobalCoord(A[N].coord),W=void 0,X=void 0,ee=void 0,Q=void 0;l.isHorizontal()?(W=F,X=T.y,ee=G-W,Q=T.height,F=W+ee):(W=T.x,X=F,ee=T.width,Q=G-X,F=X+Q);var te=A[N-1].tickValue;te!=null&&D.set(te,$),t.add(new Rect$2({anid:te!=null?"area_"+te:null,shape:{x:W,y:X,width:ee,height:Q},style:defaults({fill:x[$]},B),autoBatch:!0,silent:!0})),$=($+1)%w}inner$6(r).splitAreaColors=D}}}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,v){this.group.removeAll();var S=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),A=new AxisBuilder$1(o,extend({handleAutoShown:function(E){for(var D=x.coordinateSystem.getCartesians(),$=0;$<D.length;$++)if(isIntervalOrLogScale(D[$].getOtherAxis(o.axis).scale))return!0;return!1}},T));each$c(axisBuilderAttrs,A.add,A),this._axisGroup.add(A.getGroup()),each$c(selfBuilderAttrs,function(E){o.get([E,"show"])&&axisElementBuilders[E](this,this._axisGroup,o,x)},this);var w=v&&v.type==="changeAxisOrder"&&v.isInitSort;w||groupTransition(S,this._axisGroup,o),r.prototype.render.call(this,o,s,l,v)}},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 v=o.getModel("splitLine"),S=v.getModel("lineStyle"),x=S.get("color");x=isArray$1(x)?x:[x];for(var T=s.coordinateSystem.getRect(),A=l.isHorizontal(),w=0,E=l.getTicksCoords({tickModel:v}),D=[],$=[],N=S.getLineStyle(),z=0;z<E.length;z++){var F=l.toGlobalCoord(E[z].coord);A?(D[0]=F,D[1]=T.y,$[0]=F,$[1]=T.y+T.height):(D[0]=T.x,D[1]=F,$[0]=T.x+T.width,$[1]=F);var B=w++%x.length,G=E[z].tickValue,W=new Line$1({anid:G!=null?"line_"+E[z].tickValue:null,autoBatch:!0,shape:{x1:D[0],y1:D[1],x2:$[0],y2:$[1]},style:defaults({stroke:x[B]},N),silent:!0});subPixelOptimizeLine(W.shape,N.lineWidth),t.add(W)}}},minorSplitLine:function(r,t,o,s){var l=o.axis,v=o.getModel("minorSplitLine"),S=v.getModel("lineStyle"),x=s.coordinateSystem.getRect(),T=l.isHorizontal(),A=l.getMinorTicksCoords();if(A.length)for(var w=[],E=[],D=S.getLineStyle(),$=0;$<A.length;$++)for(var N=0;N<A[$].length;N++){var z=l.toGlobalCoord(A[$][N].coord);T?(w[0]=z,w[1]=x.y,E[0]=z,E[1]=x.y+x.height):(w[0]=x.x,w[1]=z,E[0]=x.x+x.width,E[1]=z);var F=new Line$1({anid:"minor_line_"+A[$][N].tickValue,autoBatch:!0,shape:{x1:w[0],y1:w[1],x2:E[0],y2:E[1]},style:D,silent:!0});subPixelOptimizeLine(F.shape,D.lineWidth),t.add(F)}},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),v=bind$1(s._mousemoveHandler,s),S=bind$1(s._mouseupHandler,s),x=bind$1(s._mousewheelHandler,s),T=bind$1(s._pinchHandler,s);return s.enable=function(A,w){this.disable(),this._opt=defaults(clone$3(w)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),A==null&&(A=!0),(A===!0||A==="move"||A==="pan")&&(o.on("mousedown",l),o.on("mousemove",v),o.on("mouseup",S)),(A===!0||A==="scale"||A==="zoom")&&(o.on("mousewheel",x),o.on("pinch",T))},s.disable=function(){o.off("mousedown",l),o.off("mousemove",v),o.off("mouseup",S),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,v=o.offsetY;this.pointerChecker&&this.pointerChecker(o,l,v)&&(this._x=l,this._y=v,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,v=this._x,S=this._y,x=s-v,T=l-S;this._x=s,this._y=l,this._opt.preventDefaultMouseMove&&stop(o.event),trigger$1(this,"pan","moveOnMouseMove",o,{dx:x,dy:T,oldX:v,oldY:S,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),v=o.wheelDelta,S=Math.abs(v),x=o.offsetX,T=o.offsetY;if(!(v===0||!s&&!l)){if(s){var A=S>3?1.4:S>1?1.2:1.1,w=v>0?A:1/A;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",o,{scale:w,originX:x,originY:T,isAvailableBehavior:null})}if(l){var E=Math.abs(v),D=(v>0?1:-1)*(E>3?.4:E>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",o,{scrollDelta:D,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 v=r.visualHandlers[s];this.applyVisual=v.applyVisual,this.getColorMapper=v.getColorMapper,this._normalizedToVisual=v._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,v=isArray$1(t)?[]:isObject$3(t)?{}:(l=!0,null);return r.eachVisual(t,function(S,x){var T=o.call(s,S,x);l?v=T:v[x]=T}),v},r.retrieveVisuals=function(t){var o={},s;return t&&each$9(r.visualHandlers,function(l,v){t.hasOwnProperty(v)&&(o[v]=t[v],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,v=1/0,S=0,x=o.length;S<x;S++){var T=o[S].value;if(T!=null){if(T===t||isString(T)&&T===t+"")return S;s&&D(T,S)}}for(var S=0,x=o.length;S<x;S++){var A=o[S],w=A.interval,E=A.close;if(w){if(w[0]===-1/0){if(littleThan(E[1],t,w[1]))return S}else if(w[1]===1/0){if(littleThan(E[0],w[0],t))return S}else if(littleThan(E[0],w[0],t)&&littleThan(E[1],t,w[1]))return S;s&&D(w[0],S),s&&D(w[1],S)}}if(s)return t===1/0?o.length-1:t===-1/0?0:l;function D($,N){var z=Math.abs($-t);z<v&&(v=z,l=N)}},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 v=!!l;return!s&&(o=this._normalizeData(o)),l=fastLerp(o,t.parsedVisual,l),v?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(S,x){o[S]=x}),!isArray$1(s)){var l=[];isObject$3(s)?each$9(s,function(S,x){var T=o[x];l[T??CATEGORY_DEFAULT_VISUAL_INDEX]=S}):l[CATEGORY_DEFAULT_VISUAL_INDEX]=s,s=setVisualToOption(r,l)}for(var v=t.length-1;v>=0;v--)s[v]==null&&(delete o[t[v]],t.pop())}function normalizeVisualRange(r,t){var o=r.visual,s=[];isObject$3(o)?each$9(o,function(v){s.push(v)}):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,v){r=r||0;var S=o[1]-o[0];if(l!=null&&(l=restrict(l,[0,S])),v!=null&&(v=Math.max(v,l??0)),s==="all"){var x=Math.abs(t[1]-t[0]);x=restrict(x,[0,S]),l=v=restrict(x,[l,v]),s=0}t[0]=restrict(t[0],o),t[1]=restrict(t[1],o);var T=getSpanSign(t,s);t[s]+=r;var A=l||0,w=o.slice();T.sign<0?w[0]+=A:w[1]-=A,t[s]=restrict(t[s],w);var E;return E=getSpanSign(t,s),l!=null&&(E.sign!==T.sign||E.span<l)&&(t[1-s]=t[s]+T.sign*l),E=getSpanSign(t,s),v!=null&&E.span>v&&(t[1-s]=t[s]+E.sign*v),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,v){this._handlers[v]=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,v){s.on(v,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(D){return merge(clone$3(DEFAULT_BRUSH_OPT),D,!0)});var s="\0-brush-index-",l=this._covers,v=this._covers=[],S=this,x=this._creatingCover;return new DataDiffer$1(l,o,A,T).add(w).update(w).remove(E).execute(),this;function T(D,$){return(D.id!=null?D.id:s+$)+"-"+D.brushType}function A(D,$){return T(D.__brushOption,$)}function w(D,$){var N=o[D];if($!=null&&l[$]===x)v[D]=l[$];else{var z=v[D]=$!=null?(l[$].__brushOption=N,l[$]):endCreating(S,createCover(S,N));updateCoverAfterCreation(S,z)}}function E(D){l[D]!==x&&S.group.remove(l[D])}},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,v=r._transform;return each$c(s,function(S){S.isTargetByCursor(t,o,v)&&(l=S)}),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,v=clone$3(l.range);return{brushType:l.brushType,panelId:l.panelId,range:v}});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],v=o[1]-s[1],S=mathPow(l*l+v*v,.5);return S>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(v){l.add(new Rect$2({name:v.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,r,t,l,v),ondragend:curry$1(trigger,t,{isEnd:!0})}))}),l}function updateBaseRect(r,t,o,s){var l=s.brushStyle.lineWidth||0,v=mathMax$1(l,MIN_RESIZE_LINE_WIDTH),S=o[0][0],x=o[1][0],T=S-l/2,A=x-l/2,w=o[0][1],E=o[1][1],D=w-v+l/2,$=E-v+l/2,N=w-S,z=E-x,F=N+l,B=z+l;updateRectShape(r,t,"main",S,x,N,z),s.transformable&&(updateRectShape(r,t,"w",T,A,v,B),updateRectShape(r,t,"e",D,A,v,B),updateRectShape(r,t,"n",T,A,F,v),updateRectShape(r,t,"s",T,$,F,v),updateRectShape(r,t,"nw",T,A,v,v),updateRectShape(r,t,"ne",D,A,v,v),updateRectShape(r,t,"sw",T,$,v,v),updateRectShape(r,t,"se",D,$,v,v))}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(v){var S=t.childOfName(v.join("")),x=v.length===1?getGlobalDirection1(r,v[0]):getGlobalDirection2(r,v);S&&S.attr({silent:!s,invisible:!s,cursor:s?CURSOR_MAP[x]+"-resize":null})})}function updateRectShape(r,t,o,s,l,v,S){var x=t.childOfName(o);x&&x.setShape(pointsToRect(clipByPanel(r,t,[[s,l],[s+v,l+S]])))}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)],v=[mathMax$1(r,o),mathMax$1(t,s)];return[[l[0],v[0]],[l[1],v[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,v){var S=o.__brushOption,x=r.toRectRange(S.range),T=toLocalDelta(t,l,v);each$c(s,function(A){var w=DIRECTION_MAP[A];x[w[0]][w[1]]+=T[w[0]]}),S.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,v=toLocalDelta(r,o,s);each$c(l,function(S){S[0]+=v[0],S[1]+=v[1]}),updateCoverAfterCreation(r,t),trigger(r,{isEnd:!1})}function toLocalDelta(r,t,o){var s=r.group,l=s.transformCoordToLocal(t,o),v=s.transformCoordToLocal(0,0);return[l[0]-v[0],l[1]-v[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,v=getPanelByPoint(r,t,o);if(!r._dragging)for(var S=0;S<l.length;S++){var x=l[S].__brushOption;if(v&&(v===BRUSH_PANEL_GLOBAL||x.panelId===v.panelId)&&coverRenderers[x.brushType].contain(l[S],o[0],o[1]))return}v&&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,v=r._creatingPanel,S=r._brushOption,x;if(r._track.push(o.slice()),shouldShowCover(r)||l){if(v&&!l){S.brushMode==="single"&&clearCovers(r);var T=clone$3(S);T.brushType=determineBrushType(T.brushType,v),T.panelId=v===BRUSH_PANEL_GLOBAL?null:v.panelId,l=r._creatingCover=createCover(r,T),r._covers.push(l)}if(l){var A=coverRenderers[determineBrushType(r._brushType,v)],w=l.__brushOption;w.range=A.getCreatingRange(clipByPanel(r,l,r._track)),s&&(endCreating(r,l),A.updateCommon(r,l)),updateCoverShape(r,l),x={isEnd:s}}}else s&&S.brushMode==="single"&&S.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),v=updateCoverByMouse(r,t,l,!0);r._dragging=!1,r._track=[],r._creatingCover=null,v&&trigger(r,v)}}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 v,S=getPanelByCover(t,o);if(S!==BRUSH_PANEL_GLOBAL&&S.getLinearBrushOtherExtent)v=S.getLinearBrushOtherExtent(r);else{var x=t._zr;v=[0,[x.getWidth(),x.getHeight()][1-r]]}var T=[s,v];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,v=s?r.x:r.y;return[v,v+(l||0)]}}function makeRectIsTargetByCursor(r,t,o){var s=normalizeRect(r);return function(l,v){return s.contain(v[0],v[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,v,S;if(t==="text")S=s;else{S={},hasOwn(s,"text")&&(S.text=s.text),hasOwn(s,"rich")&&(S.rich=s.rich),hasOwn(s,"textFill")&&(S.fill=s.textFill),hasOwn(s,"textStroke")&&(S.stroke=s.textStroke),hasOwn(s,"fontFamily")&&(S.fontFamily=s.fontFamily),hasOwn(s,"fontSize")&&(S.fontSize=s.fontSize),hasOwn(s,"fontStyle")&&(S.fontStyle=s.fontStyle),hasOwn(s,"fontWeight")&&(S.fontWeight=s.fontWeight),v={type:"text",style:S,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(S,r),each$c(S.rich,function(T){convertEC4CompatibleRichItem(T,T)}),{textConfig:l,textContent:v}}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 v=r+"Animation",S=getAnimationConfig(r,s,l)||{},x=transitionInnerStore(t).userDuring;return S.duration>0&&(S.during=x?bind$1(duringCall,{el:t,userDuring:x}):null,S.setToFinal=!0,S.scope=r),extend(S,o[v]),S}function applyUpdateTransition(r,t,o,s){s=s||{};var l=s.dataIndex,v=s.isInit,S=s.clearStyle,x=o.isAnimationEnabled(),T=transitionInnerStore(r),A=t.style;T.userDuring=t.during;var w={},E={};if(prepareTransformAllPropsFinal(r,t,E),prepareShapeOrExtraAllPropsFinal("shape",t,E),prepareShapeOrExtraAllPropsFinal("extra",t,E),!v&&x&&(prepareTransformTransitionFrom(r,t,w),prepareShapeOrExtraTransitionFrom("shape",r,t,w),prepareShapeOrExtraTransitionFrom("extra",r,t,w),prepareStyleTransitionFrom(r,t,A,w)),E.style=A,applyPropsDirectly(r,E,S),applyMiscProps(r,t),x)if(v){var D={};each$c(ELEMENT_ANIMATABLE_PROPS,function(N){var z=N?t[N]:t;z&&z.enterFrom&&(N&&(D[N]=D[N]||{}),extend(N?D[N]:D,z.enterFrom))});var $=getElementAnimationConfig("enter",r,t,o,l);$.duration>0&&r.animateFrom(D,$)}else applyPropsTransition(r,t,l||0,o,w);updateLeaveTo(r,t),A?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],v=l?t[l]:t;v&&v.leaveTo&&(o||(o=transitionInnerStore(r).leaveToProps={}),l&&(o[l]=o[l]||{}),extend(l?o[l]:o,v.leaveTo))}}function applyLeaveTransition(r,t,o,s){if(r){var l=r.parent,v=transitionInnerStore(r).leaveToProps;if(v){var S=getElementAnimationConfig("update",r,t,o,0);S.done=function(){l.remove(r),s&&s()},r.animateTo(v,S)}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,v=0;v<l.length;v++){var S=l[v];S.targetName==="style"&&S.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 v=getElementAnimationConfig("update",r,t,s,o);v.duration>0&&r.animateFrom(l,v)}}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 v=t[r],S;if(v){var x=o.transition,T=l.transition;if(T)if(!S&&(S=s[r]={}),isTransitionAll(T))extend(S,v);else for(var A=normalizeToArray(T),w=0;w<A.length;w++){var E=A[w],D=v[E];S[E]=D}else if(isTransitionAll(x)||indexOf(x,r)>=0){!S&&(S=s[r]={});for(var $=keys(v),w=0;w<$.length;w++){var E=$[w],D=v[E];isNonStyleTransitionEnabled(l[E],D)&&(S[E]=D)}}}}}function prepareShapeOrExtraAllPropsFinal(r,t,o){var s=t[r];if(s)for(var l=o[r]={},v=keys(s),S=0;S<v.length;S++){var x=v[S];l[x]=cloneValue(s[x])}}function prepareTransformTransitionFrom(r,t,o){for(var s=t.transition,l=isTransitionAll(s)?TRANSFORMABLE_PROPS:normalizeToArray(s||[]),v=0;v<l.length;v++){var S=l[v];if(!(S==="style"||S==="shape"||S==="extra")){var x=r[S];o[S]=x}}}function prepareTransformAllPropsFinal(r,t,o){for(var s=0;s<LEGACY_TRANSFORM_PROPS.length;s++){var l=LEGACY_TRANSFORM_PROPS[s],v=LEGACY_TRANSFORM_PROPS_MAP[l],S=t[l];S&&(o[v[0]]=S[0],o[v[1]]=S[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,v;if(l){var S=o.transition,x=t.transition;if(S&&!isTransitionAll(S)){var T=normalizeToArray(S);!v&&(v=s.style={});for(var A=0;A<T.length;A++){var w=T[A],E=l[w];v[w]=E}}else if(r.getAnimationStyleProps&&(isTransitionAll(x)||isTransitionAll(S)||indexOf(x,"style")>=0)){var D=r.getAnimationStyleProps(),$=D?D.style:null;if($){!v&&(v=s.style={});for(var N=keys(o),A=0;A<N.length;A++){var w=N[A];if($[w]){var E=l[w];v[w]=E}}}}}}}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 v=getAnimationConfig("enter",o,0);l=v&&v.duration}if(!(!s||!l)){var S=getStateToRestore(r);each$c(ELEMENT_ANIMATABLE_PROPS,function(x){if(!(x&&!r[x])){var T;s.sort(function(A,w){return A.percent-w.percent}),each$c(s,function(A){var w=r.animators,E=x?A[x]:A;if(E){var D=keys(E);if(x||(D=filter(D,function(z){return indexOf(KEYFRAME_EXCLUDE_KEYS,z)<0})),!!D.length){T||(T=r.animate(x,t.loop,!0),T.scope="keyframe");for(var $=0;$<w.length;$++)w[$]!==T&&w[$].targetName===T.targetName&&w[$].stopTracks(D);x&&(S[x]=S[x]||{});var N=x?S[x]:S;each$c(D,function(z){N[z]=((x?r[x]:r)||{})[z]}),T.whenWithKeys(l*A.percent,E,D,A.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 v=o.get("value"),S=o.get("status");if(this._axisModel=t,this._axisPointerModel=o,this._api=s,!(!l&&this._lastValue===v&&this._lastStatus===S)){this._lastValue=v,this._lastStatus=S;var x=this._group,T=this._handle;if(!S||S==="hide"){x&&x.hide(),T&&T.hide();return}x&&x.show(),T&&T.show();var A={};this.makeElOption(A,v,t,o,s);var w=A.graphicKey;w!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=w;var E=this._moveAnimation=this.determineAnimation(t,o);if(!x)x=this._group=new Group$3,this.createPointerEl(x,A,t,o),this.createLabelEl(x,A,t,o),s.getZr().add(x);else{var D=curry$1(updateProps,o,E);this.updatePointerEl(x,A,D),this.updateLabelEl(x,A,D,o)}updateMandatoryProps(x,o,!0),this._renderHandle(v)}},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,v=l.type==="category",S=o.get("snap");if(!S&&!v)return!1;if(s==="auto"||s==null){var x=this.animationThreshold;if(v&&l.getBandWidth()>x)return!0;if(S){var T=getAxisInfo(t).seriesDataCount,A=l.getExtent();return Math.abs(A[0]-A[1])/T>x}return!1}return s===!0},r.prototype.makeElOption=function(t,o,s,l,v){},r.prototype.createPointerEl=function(t,o,s,l){var v=o.pointer;if(v){var S=inner$5(t).pointerEl=new graphic$1[v.type](clone(o.pointer));t.add(S)}},r.prototype.createLabelEl=function(t,o,s,l){if(o.label){var v=inner$5(t).labelEl=new ZRText$1(clone(o.label));t.add(v),updateLabelShowHide(v,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 v=inner$5(t).labelEl;v&&(v.setStyle(o.label.style),s(v,{x:o.label.x,y:o.label.y}),updateLabelShowHide(v,l))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var o=this._axisPointerModel,s=this._api.getZr(),l=this._handle,v=o.getModel("handle"),S=o.get("status");if(!v.get("show")||!S||S==="hide"){l&&s.remove(l),this._handle=null;return}var x;this._handle||(x=!0,l=this._handle=createIcon(v.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(A){stop(A.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(v.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var T=v.get("size");isArray$1(T)||(T=[T,T]),l.scaleX=T[0]/2,l.scaleY=T[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",v.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(v){v.type!=="group"&&(s!=null&&(v.z=s),l!=null&&(v.zlevel=l),v.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 v=o.get("value"),S=getValueLabel(v,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),A=x.getFont(),w=getBoundingRect(S,A),E=l.position,D=w.width+T[1]+T[3],$=w.height+T[0]+T[2],N=l.align;N==="right"&&(E[0]-=D),N==="center"&&(E[0]-=D/2);var z=l.verticalAlign;z==="bottom"&&(E[1]-=$),z==="middle"&&(E[1]-=$/2),confineInContainer(E,D,$,s);var F=x.get("backgroundColor");(!F||F==="auto")&&(F=t.get(["axisLine","lineStyle","color"])),r.label={x:E[0],y:E[1],style:createTextStyle$1(x,{text:S,font:A,fill:x.getTextColor(),padding:T,backgroundColor:F}),z2:10}}function confineInContainer(r,t,o,s){var l=s.getWidth(),v=s.getHeight();r[0]=Math.min(r[0]+t,l)-t,r[1]=Math.min(r[1]+o,v)-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 v=t.scale.getLabel({value:r},{precision:l.precision}),S=l.formatter;if(S){var x={value:getAxisRawValue(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};each$c(s,function(T){var A=o.getSeriesByIndex(T.seriesIndex),w=T.dataIndexInside,E=A&&A.getDataParams(w);E&&x.seriesData.push(E)}),isString(S)?v=S.replace("{value}",v):isFunction(S)&&(v=S(x))}return v}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,v){var S=AxisBuilder$1.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=l.get(["label","margin"]),buildLabelElOption(t,s,l,v,{position:getTransformedPosition(s.axis,r,o),align:S.textAlign,verticalAlign:S.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,v,S){var x=l.axis,T=x.grid,A=v.get("type"),w=getCartesian(T,x).getOtherAxis(x).getGlobalExtent(),E=x.toGlobalCoord(x.dataToCoord(s,!0));if(A&&A!=="none"){var D=buildElStyle(v),$=pointerShapeBuilder[A](x,E,w);$.style=D,o.graphicKey=$.type,o.pointer=$}var N=layout$1(T.model,l);buildCartesianSingleLabelElOption(s,o,N,l,v,S)},t.prototype.getHandleTransform=function(o,s,l){var v=layout$1(s.axis.grid.model,s,{labelInside:!1});v.labelMargin=l.get(["handle","margin"]);var S=getTransformedPosition(s.axis,o,v);return{x:S[0],y:S[1],rotation:v.rotation+(v.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(o,s,l,v){var S=l.axis,x=S.grid,T=S.getGlobalExtent(!0),A=getCartesian(x,S).getOtherAxis(S).getGlobalExtent(),w=S.dim==="x"?0:1,E=[o.x,o.y];E[w]+=s[w],E[w]=Math.min(T[1],E[w]),E[w]=Math.max(T[0],E[w]);var D=(A[1]+A[0])/2,$=[D,D];$[w]=E[w];var N=[{verticalAlign:"middle"},{align:"center"}];return{x:E[0],y:E[1],rotation:o.rotation,cursorPoint:$,tooltipOption:N[w]}},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(v){var S=makeDispatchAction$1(t);each$8(inner$4(r).records,function(x){x&&l(x,v,S.dispatchAction)}),dispatchTooltipFinally(S.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 v=s.getComponent("tooltip"),S=o.get("triggerOn")||v&&v.get("triggerOn")||"mousemove|click";register("axisPointer",l,function(x,T,A){S!=="none"&&(x==="leave"||S.indexOf(x)>=0)&&A({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 v=l.getData(),S=queryDataIndex(v,r);if(S==null||S<0||isArray$1(S))return{point:[]};var x=v.getItemGraphicEl(S),T=l.coordinateSystem;if(l.getTooltipPosition)o=l.getTooltipPosition(S)||[];else if(T&&T.dataToPoint)if(r.isStacked){var A=T.getBaseAxis(),w=T.getOtherAxis(A),E=w.dim,D=A.dim,$=E==="x"||E==="radius"?1:0,N=v.mapDimension(D),z=[];z[$]=v.get(N,S),z[1-$]=v.get(v.getCalculationInfo("stackResultDimension"),S),o=T.dataToPoint(z)||[]}else o=T.dataToPoint(v.getValues(map$2(T.dimensions,function(B){return v.mapDimension(B)}),S))||[];else if(x){var F=x.getBoundingRect().clone();F.applyTransform(x.transform),o=[F.x+F.width/2,F.y+F.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],v=r,S=r.dispatchAction||bind$1(o.dispatchAction,o),x=t.getComponent("axisPointer").coordSysAxesInfo;if(x){illegalPoint(l)&&(l=findPointFromSeries({seriesIndex:v.seriesIndex,dataIndex:v.dataIndex},t).point);var T=illegalPoint(l),A=v.axesInfo,w=x.axesInfo,E=s==="leave"||illegalPoint(l),D={},$={},N={list:[],map:{}},z={showPointer:curry$1(showPointer,$),showTooltip:curry$1(showTooltip,N)};each$c(x.coordSysMap,function(B,G){var W=T||B.containPoint(l);each$c(x.coordSysAxesInfo[G],function(X,ee){var Q=X.axis,te=findInputAxisInfo(A,X);if(!E&&W&&(!A||te)){var ie=te&&te.value;ie==null&&!T&&(ie=Q.pointToData(l)),ie!=null&&processOnAxis(X,ie,z,!1,D)}})});var F={};return each$c(w,function(B,G){var W=B.linkGroup;W&&!$[G]&&each$c(W.axesInfo,function(X,ee){var Q=$[ee];if(X!==B&&Q){var te=Q.value;W.mapper&&(te=B.axis.scale.parse(W.mapper(te,makeMapperParam(X),makeMapperParam(B)))),F[B.key]=te}})}),each$c(F,function(B,G){processOnAxis(w[G],B,z,!0,D)}),updateModelActually($,w,D),dispatchTooltipActually(N,l,r,S),dispatchHighDownActually(w,S,o),D}}function processOnAxis(r,t,o,s,l){var v=r.axis;if(!(v.scale.isBlank()||!v.containData(t))){if(!r.involveSeries){o.showPointer(r,t);return}var S=buildPayloadsBySeries(t,r),x=S.payloadBatch,T=S.snapToValue;x[0]&&l.seriesIndex==null&&extend(l,x[0]),!s&&r.snap&&v.containData(T)&&T!=null&&(t=T),o.showPointer(r,t,x),o.showTooltip(r,S,T)}}function buildPayloadsBySeries(r,t){var o=t.axis,s=o.dim,l=r,v=[],S=Number.MAX_VALUE,x=-1;return each$c(t.seriesModels,function(T,A){var w=T.getData().mapDimensionsAll(s),E,D;if(T.getAxisTooltipData){var $=T.getAxisTooltipData(w,r,o);D=$.dataIndices,E=$.nestestValue}else{if(D=T.getData().indicesOfNearest(w[0],r,o.type==="category"?.5:null),!D.length)return;E=T.getData().get(w[0],D[0])}if(!(E==null||!isFinite(E))){var N=r-E,z=Math.abs(N);z<=S&&((z<S||N>=0&&x<0)&&(S=z,x=N,l=E,v.length=0),each$c(D,function(F){v.push({seriesIndex:T.seriesIndex,dataIndexInside:F,dataIndex:T.getData().getRawIndex(F)})}))}}),{payloadBatch:v,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,v=t.axis,S=v.model,x=t.axisPointerModel;if(!(!t.triggerTooltip||!l.length)){var T=t.coordSys.model,A=makeKey(T),w=r.map[A];w||(w=r.map[A]={coordSysId:T.id,coordSysIndex:T.componentIndex,coordSysType:T.type,coordSysMainType:T.mainType,dataByAxis:[]},r.list.push(w)),w.dataByAxis.push({axisDim:v.dim,axisIndex:S.componentIndex,axisType:S.type,axisId:S.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,v){var S=l.axisPointerModel.option,x=r[v];x?(!l.useHandle&&(S.status="show"),S.value=x.value,S.seriesDataIndices=(x.payloadBatch||[]).slice()):!l.useHandle&&(S.status="hide"),S.status==="show"&&s.push({axisDim:l.axis.dim,axisIndex:l.axis.model.componentIndex,value:S.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",v=inner$3(s)[l]||{},S=inner$3(s)[l]={};each$c(r,function(A,w){var E=A.axisPointerModel.option;E.status==="show"&&each$c(E.seriesDataIndices,function(D){var $=D.seriesIndex+" | "+D.dataIndex;S[$]=D})});var x=[],T=[];each$c(v,function(A,w){!S[w]&&T.push(A)}),each$c(S,function(A,w){!v[w]&&x.push(A)}),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],v=o.$action||"merge";v==="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:v==="replace"?r[t]=s:v==="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 v=s[l];r[v]==null&&t[v]!=null&&(r[v]=t[v])}}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,v=(s?l:o).elements,S=l.elements=s?[]:l.elements,x=[];this._flatten(v,x,null);var T=mappingToExists(S,x,"normalMerge"),A=this._elOptionsToUpdate=[];each$c(T,function(w,E){var D=w.newOption;D&&(A.push(D),setKeyInfoToNewElOption(w,D),mergeNewElOptionToExist(S,E,D),setLayoutInfoToExist(S[E],D))},this),l.elements=filter(S,function(w){return w&&delete w.$action,w!=null})},t.prototype._flatten=function(o,s,l){each$c(o,function(v){if(v){l&&(v.parentOption=l),s.push(v);var S=v.children;S&&S.length&&this._flatten(S,s,v),delete v.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,v=this.group,S=o.get("z"),x=o.get("zlevel");each$c(s,function(T){var A=convertOptionIdName(T.id,null),w=A!=null?l.get(A):null,E=convertOptionIdName(T.parentId,null),D=E!=null?l.get(E):v,$=T.type,N=T.style;$==="text"&&N&&T.hv&&T.hv[1]&&(N.textVerticalAlign=N.textBaseline=N.verticalAlign=N.align=null);var z=T.textContent,F=T.textConfig;if(N&&isEC4CompatibleStyle(N,$,!!F,!!z)){var B=convertFromEC4CompatibleStyle(N,$,!0);!F&&B.textConfig&&(F=T.textConfig=B.textConfig),!z&&B.textContent&&(z=B.textContent)}var G=getCleanedElOption(T),W=T.$action||"merge",X=W==="merge",ee=W==="replace";if(X){var Q=!w,te=w;Q?te=createEl(A,D,T.type,l):(te&&(inner$2(te).isNew=!1),stopPreviousKeyframeAnimationAndRestore(te)),te&&(applyUpdateTransition(te,G,o,{isInit:Q}),updateCommonAttrs(te,T,S,x))}else if(ee){removeEl(w,T,l,o);var ie=createEl(A,D,T.type,l);ie&&(applyUpdateTransition(ie,G,o,{isInit:!0}),updateCommonAttrs(ie,T,S,x))}else W==="remove"&&(updateLeaveTo(w,T),removeEl(w,T,l,o));var le=l.get(A);if(le&&z)if(X){var pe=le.getTextContent();pe?pe.attr(z):le.setTextContent(new ZRText$1(z))}else ee&&le.setTextContent(new ZRText$1(z));if(le){var ue=T.clipPath;if(ue){var _e=ue.type,xe=void 0,Q=!1;if(X){var Te=le.getClipPath();Q=!Te||inner$2(Te).type!==_e,xe=Q?newEl(_e):Te}else ee&&(Q=!0,xe=newEl(_e));le.setClipPath(xe),applyUpdateTransition(xe,ue,o,{isInit:Q}),applyKeyframeAnimation(xe,ue.keyframeAnimation,o)}var Ae=inner$2(le);le.setTextConfig(F),Ae.option=T,setEventData(le,o,T),setTooltipConfig({el:le,componentModel:o,itemName:le.name,itemTooltipOption:T.tooltip}),applyKeyframeAnimation(le,T.keyframeAnimation,o)}})}},t.prototype._relocate=function(o,s){for(var l=o.option.elements,v=this.group,S=this._elMap,x=s.getWidth(),T=s.getHeight(),A=["x","y"],w=0;w<l.length;w++){var E=l[w],D=convertOptionIdName(E.id,null),$=D!=null?S.get(D):null;if(!(!$||!$.isGroup)){var N=$.parent,z=N===v,F=inner$2($),B=inner$2(N);F.width=parsePercent(F.option.width,z?x:B.width)||0,F.height=parsePercent(F.option.height,z?T:B.height)||0}}for(var w=l.length-1;w>=0;w--){var E=l[w],D=convertOptionIdName(E.id,null),$=D!=null?S.get(D):null;if($){var N=$.parent,B=inner$2(N),G=N===v?{width:x,height:T}:{width:B.width,height:B.height},W={},X=positionElement($,E,G,null,{hv:E.hv,boundingMode:E.bounding},W);if(!inner$2($).isNew&&X){for(var ee=E.transition,Q={},te=0;te<A.length;te++){var ie=A[te],le=W[ie];ee&&(isTransitionAll(ee)||indexOf(ee,ie)>=0)?Q[ie]=le:$[ie]=le}updateProps$1($,Q,o,0)}else $.attr(W)}}},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(v){removeEl(v,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 v=l[0];hasOwn(t,v)?r[v]=retrieve2(t[v],l[1]):r[v]==null&&(r[v]=l[1])}),each$c(keys(t),function(l){if(l.indexOf("on")===0){var v=t[l];r[l]=isFunction(v)?v: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(w){l.get(w.uid)||x(w)});var v;do v=!1,r.eachComponent("dataZoom",S);while(v);function S(w){!l.get(w.uid)&&T(w)&&(x(w),v=!0)}function x(w){l.set(w.uid,!0),s.push(w),A(w)}function T(w){var E=!1;return w.eachTargetAxis(function(D,$){var N=o.get(D);N&&N[$]&&(E=!0)}),E}function A(w){w.eachTargetAxis(function(E,D){(o.get(E)||o.set(E,[]))[D]=!0})}return s}function collectReferCoordSysModelInfo(r){var t=r.ecModel,o={infoList:[],infoMap:createHashMap()};return r.eachTargetAxis(function(s,l){var v=t.getComponent(getAxisMainType(s),l);if(v){var S=v.getCoordSysModel();if(S){var x=S.uid,T=o.infoMap.get(x);T||(T={model:S,axisModels:[]},o.infoList.push(T),o.infoMap.set(x,T)),T.axisModels.push(v)}}}),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 v=retrieveRawOption(o);this.settledOption=v,this.mergeDefaultAndTheme(o,l),this._doInit(v)},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(v,S){this._rangePropMode[S]==="value"&&(s[v[0]]=l[v[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(v){v.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(o){var s=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(l){var v=this.getReferringComponents(getAxisMainType(l),MULTIPLE_REFERRING);if(v.specified){s=!0;var S=new DataZoomAxisInfo;each$c(v.models,function(x){S.add(x.componentIndex)}),o.set(l,S)}},this),s},t.prototype._fillAutoTargetAxisByOrient=function(o,s){var l=this.ecModel,v=!0;if(v){var S=s==="vertical"?"y":"x",x=l.findComponents({mainType:S+"Axis"});T(x,S)}if(v){var x=l.findComponents({mainType:"singleAxis",filter:function(w){return w.get("orient",!0)===s}});T(x,"single")}function T(A,w){var E=A[0];if(E){var D=new DataZoomAxisInfo;if(D.add(E.componentIndex),o.set(w,D),v=!1,w==="x"||w==="y"){var $=E.getReferringComponents("grid",SINGLE_REFERRING).models[0];$&&each$c(A,function(N){E.componentIndex!==N.componentIndex&&$===N.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&D.add(N.componentIndex)})}}}v&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(A){if(v){var w=l.findComponents({mainType:getAxisMainType(A),filter:function(D){return D.get("type",!0)==="category"}});if(w[0]){var E=new DataZoomAxisInfo;E.add(w[0].componentIndex),o.set(A,E),v=!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(v,S){var x=o[v[0]]!=null,T=o[v[1]]!=null;x&&!T?s[S]="percent":!x&&T?s[S]="value":l?s[S]=l[S]:x&&(s[S]="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,v){each$c(l.indexList,function(S){o.call(s,v,S)})})},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(v){(o[v[0]]!=null||o[v[1]]!=null)&&(s[v[0]]=l[v[0]]=o[v[0]],s[v[1]]=l[v[1]]=o[v[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(),v=0;v<l.length;v++)for(var S=l[v],x=this._targetAxisInfoMap.get(S),T=0;T<x.indexList.length;T++){var A=this.getAxisProxy(S,x.indexList[T]);if(A.hostedBy(this))return A;s||(s=A)}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,v){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,v=this._dataZoomModel.getRangePropMode(),S=[0,100],x=[],T=[],A;each$7(["start","end"],function(D,$){var N=t[D],z=t[D+"Value"];v[$]==="percent"?(N==null&&(N=S[$]),z=l.parse(linearMap$2(N,S,o))):(A=!0,z=z==null?o[$]:l.parse(z),N=linearMap$2(z,o,S)),T[$]=z==null||isNaN(z)?o[$]:z,x[$]=N==null||isNaN(N)?S[$]:N}),asc$1(T),asc$1(x);var w=this._minMaxSpan;A?E(T,x,o,S,!1):E(x,T,S,o,!0);function E(D,$,N,z,F){var B=F?"Span":"ValueSpan";sliderMove(0,D,N,"all",w["min"+B],w["max"+B]);for(var G=0;G<2;G++)$[G]=linearMap$2(D[G],N,z,!0),F&&($[G]=l.parse($[G]))}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(),v=t.get("filterMode"),S=this._valueWindow;if(v==="none")return;each$7(l,function(T){var A=T.getData(),w=A.mapDimensionsAll(s);if(w.length){if(v==="weakFilter"){var E=A.getStore(),D=map$2(w,function($){return A.getDimensionIndex($)},A);A.filterSelf(function($){for(var N,z,F,B=0;B<w.length;B++){var G=E.get(D[B],$),W=!isNaN(G),X=G<S[0],ee=G>S[1];if(W&&!X&&!ee)return!0;W&&(F=!0),X&&(N=!0),ee&&(z=!0)}return F&&N&&z})}else each$7(w,function($){if(v==="empty")T.setData(A=A.map($,function(z){return x(z)?z:NaN}));else{var N={};N[$]=S,A.selectRange(N)}});each$7(w,function($){A.setApproximateExtent(S,$)})}});function x(T){return T>=S[0]&&T<=S[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},o=this._dataZoomModel,s=this._dataExtent;each$7(["min","max"],function(l){var v=o.get(l+"Span"),S=o.get(l+"ValueSpan");S!=null&&(S=this.getAxisModel().axis.scale.parse(S)),S!=null?v=linearMap$2(s[0]+S,s,[0,100],!0):v!=null&&(S=linearMap$2(v,[0,100],s,!0)-s[0]),t[l+"Span"]=v,t[l+"ValueSpan"]=S},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 v=t.axis.scale.rawExtentInfo;o[0]!==0&&v.setDeterminedMinMax("min",+s[0].toFixed(l)),o[1]!==100&&v.setDeterminedMinMax("max",+s[1].toFixed(l)),v.freeze()}},r}();function calculateDataExtent(r,t,o){var s=[1/0,-1/0];each$7(o,function(S){unionAxisExtentFromData(s,S.getData(),t)});var l=r.getAxisModel(),v=ensureScaleRawExtentInfo(l.axis.scale,l,s).calculate();return[v.min,v.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(r){function t(l){r.eachComponent("dataZoom",function(v){v.eachTargetAxis(function(S,x){var T=r.getComponent(getAxisMainType(S),x);l(S,x,T,v)})})}t(function(l,v,S,x){S.__dzAxisProxy=null});var o=[];t(function(l,v,S,x){S.__dzAxisProxy||(S.__dzAxisProxy=new AxisProxy$1(l,v,x,r),o.push(S.__dzAxisProxy))});var s=createHashMap();return each$c(o,function(l){each$c(l.getTargetSeriesModels(),function(v){s.set(v.uid,v)})}),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(),v=s.getDataValueWindow();o.setCalculatedRange({start:l[0],end:l[1],startValue:v[0],endValue:v[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 v=getFeature(l);v&&(v.getDefaultOption&&(v.defaultOption=v.getDefaultOption(o)),merge(s,v.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"),v={width:o.getWidth(),height:o.getHeight()},S=getLayoutRect(s,v,l);box(t.get("orient"),r,t.get("itemGap"),S.width,S.height),positionElement(r,s,v,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,v){var S=this.group;if(S.removeAll(),!o.get("show"))return;var x=+o.get("itemSize"),T=o.get("orient")==="vertical",A=o.get("feature")||{},w=this._features||(this._features={}),E=[];each$c(A,function(N,z){E.push(z)}),new DataDiffer$1(this._featureNames||[],E).add(D).update(D).remove(curry$1(D,null)).execute(),this._featureNames=E;function D(N,z){var F=E[N],B=E[z],G=A[F],W=new Model$1(G,o,o.ecModel),X;if(v&&v.newTitle!=null&&v.featureName===F&&(G.title=v.newTitle),F&&!B){if(isUserFeatureName(F))X={onclick:W.option.onclick,featureName:F};else{var ee=getFeature(F);if(!ee)return;X=new ee}w[F]=X}else if(X=w[B],!X)return;X.uid=getUID("toolbox-feature"),X.model=W,X.ecModel=s,X.api=l;var Q=X instanceof ToolboxFeature;if(!F&&B){Q&&X.dispose&&X.dispose(s,l);return}if(!W.get("show")||Q&&X.unusable){Q&&X.remove&&X.remove(s,l);return}$(W,X,F),W.setIconStatus=function(te,ie){var le=this.option,pe=this.iconPaths;le.iconStatus=le.iconStatus||{},le.iconStatus[te]=ie,pe[te]&&(ie==="emphasis"?enterEmphasis:leaveEmphasis)(pe[te])},X instanceof ToolboxFeature&&X.render&&X.render(W,s,l,v)}function $(N,z,F){var B=N.getModel("iconStyle"),G=N.getModel(["emphasis","iconStyle"]),W=z instanceof ToolboxFeature&&z.getIcons?z.getIcons():N.get("icon"),X=N.get("title")||{},ee,Q;isString(W)?(ee={},ee[F]=W):ee=W,isString(X)?(Q={},Q[F]=X):Q=X;var te=N.iconPaths={};each$c(ee,function(ie,le){var pe=createIcon(ie,{},{x:-x/2,y:-x/2,width:x,height:x});pe.setStyle(B.getItemStyle());var ue=pe.ensureState("emphasis");ue.style=G.getItemStyle();var _e=new ZRText$1({style:{text:Q[le],align:G.get("textAlign"),borderRadius:G.get("textBorderRadius"),padding:G.get("textPadding"),fill:null},ignore:!0});pe.setTextContent(_e),setTooltipConfig({el:pe,componentModel:o,itemName:le,formatterParamsExtra:{title:Q[le]}}),pe.__title=Q[le],pe.on("mouseover",function(){var xe=G.getItemStyle(),Te=T?o.get("right")==null&&o.get("left")!=="right"?"right":"left":o.get("bottom")==null&&o.get("top")!=="bottom"?"bottom":"top";_e.setStyle({fill:G.get("textFill")||xe.fill||xe.stroke||"#000",backgroundColor:G.get("textBackgroundColor")}),pe.setTextConfig({position:G.get("textPosition")||Te}),_e.ignore=!o.get("showTitle"),l.enterEmphasis(this)}).on("mouseout",function(){N.get(["iconStatus",le])!=="emphasis"&&l.leaveEmphasis(this),_e.hide()}),(N.get(["iconStatus",le])==="emphasis"?enterEmphasis:leaveEmphasis)(pe),S.add(pe),pe.on("click",bind$1(z.onclick,z,s,l,le)),te[le]=pe})}layout(S,o,l),S.add(makeBackground(S.getBoundingRect(),o)),T||S.eachChild(function(N){var z=N.__title,F=N.ensureState("emphasis"),B=F.textConfig||(F.textConfig={}),G=N.getTextContent(),W=G&&G.ensureState("emphasis");if(W&&!isFunction(W)&&z){var X=W.style||(W.style={}),ee=getBoundingRect(z,ZRText$1.makeFont(X)),Q=N.x+S.x,te=N.y+S.y+x,ie=!1;te+ee.height>l.getHeight()&&(B.position="top",ie=!0);var le=ie?-5-ee.height:x+10;Q+ee.width/2>l.getWidth()?(B.position=["100%",le],X.align="right"):Q-ee.width/2<0&&(B.position=[0,le],X.align="left")}})},t.prototype.updateView=function(o,s,l,v){each$c(this._features,function(S){S instanceof ToolboxFeature&&S.updateView&&S.updateView(S.model,s,l,v)})},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,v=l.get("name")||o.get("title.0.text")||"echarts",S=s.getZr().painter.getType()==="svg",x=S?"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")}),A=env$1.browser;if(isFunction(MouseEvent)&&(A.newEdge||!A.ie&&!A.edge)){var w=document.createElement("a");w.download=v+"."+x,w.target="_blank",w.href=T;var E=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(E)}else if(window.navigator.msSaveOrOpenBlob||S){var D=T.split(","),$=D[0].indexOf("base64")>-1,N=S?decodeURIComponent(D[1]):D[1];$&&(N=window.atob(N));var z=v+"."+x;if(window.navigator.msSaveOrOpenBlob){for(var F=N.length,B=new Uint8Array(F);F--;)B[F]=N.charCodeAt(F);var G=new Blob([B]);window.navigator.msSaveOrOpenBlob(G,z)}else{var W=document.createElement("iframe");document.body.appendChild(W);var X=W.contentWindow,ee=X.document;ee.open("image/svg+xml","replace"),ee.write(N),ee.close(),X.focus(),ee.execCommand("SaveAs",!0,z),document.body.removeChild(W)}}else{var Q=l.get("lang"),te='<body style="margin:0;"><img src="'+T+'" style="max-width:100%;" title="'+(Q&&Q[0]||"")+'" /></body>',ie=window.open();ie.document.write(te),ie.document.title=v}},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(v){s[v]&&(l[v]=s[v])}),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 v=this.model,S=v.get(["seriesIndex",l]);if(seriesOptGenreator[l]){var x={series:[]},T=function(E){var D=E.subType,$=E.id,N=seriesOptGenreator[l](D,$,E,v);N&&(defaults(N,E.option),x.series.push(N));var z=E.coordinateSystem;if(z&&z.type==="cartesian2d"&&(l==="line"||l==="bar")){var F=z.getAxesByScale("ordinal")[0];if(F){var B=F.dim,G=B+"Axis",W=E.getReferringComponents(G,SINGLE_REFERRING).models[0],X=W.componentIndex;x[G]=x[G]||[];for(var ee=0;ee<=X;ee++)x[G][X]=x[G][X]||{};x[G][X].boundaryGap=l==="bar"}}};each$c(radioTypes,function(E){indexOf(E,l)>=0&&each$c(E,function(D){v.setIconStatus(D,"normal")})}),v.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:S==null?null:{seriesIndex:S}},T);var A,w=l;l==="stack"&&(A=merge({stack:v.option.title.tiled,tiled:v.option.title.stack},v.option.title),v.get(["iconStatus",l])!=="emphasis"&&(w="tiled")),s.dispatchAction({type:"changeMagicType",currentType:w,newOption:x,newTitle:A,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 v=l.coordinateSystem;if(v&&(v.type==="cartesian2d"||v.type==="polar")){var S=v.getBaseAxis();if(S.type==="category"){var x=S.dim+"_"+S.index;t[x]||(t[x]={categoryAxis:S,valueAxis:v.getOtherAxis(S),series:[]},s.push({axisDim:S.dim,axisIndex:S.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,v=o.valueAxis,S=v.dim,x=[" "].concat(map$2(o.series,function($){return $.name})),T=[l.model.getCategories()];each$c(o.series,function($){var N=$.getRawData();T.push($.getRawData().mapArray(N.mapDimension(S),function(z){return z}))});for(var A=[x.join(ITEM_SPLITER)],w=0;w<T[0].length;w++){for(var E=[],D=0;D<T.length;D++)E.push(T[D][w]);A.push(E.join(ITEM_SPLITER))}t.push(A.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 v=arguments.length,S=arguments[v-1],x=o.getName(S),T=0;T<v-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:[]}}),v=0;v<t.length;v++){var S=trim(t[v]).split(itemSplitRegex);s.push(S.shift());for(var x=0;x<S.length;x++)l[x]&&(l[x].data[v]=S[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 v=trim(t[l]);if(v){var S=v.split(itemSplitRegex),x="",T=void 0,A=!1;isNaN(S[0])?(A=!0,x=S[0],S=S.slice(1),s[l]={name:x,value:[]},T=s[l].value):T=s[l]=[];for(var w=0;w<S.length;w++)T.push(+S[w]);T.length===1&&(A?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,v){if(isTSVFormat(l)){var S=parseTSVContents(l),x=t[v],T=x.axisDim+"Axis";x&&(s[T]=s[T]||[],s[T][x.axisIndex]={data:S.categories},s.series=s.series.concat(S.series))}else{var S=parseListContents(l);s.series.push(S)}}),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(),v=this.model;this._dom&&l.removeChild(this._dom);var S=document.createElement("div");S.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",S.style.backgroundColor=v.get("backgroundColor")||"#fff";var x=document.createElement("h4"),T=v.get("lang")||[];x.innerHTML=T[0]||v.get("title"),x.style.cssText="margin:10px 20px",x.style.color=v.get("textColor");var A=document.createElement("div"),w=document.createElement("textarea");A.style.cssText="overflow:auto";var E=v.get("optionToContent"),D=v.get("contentToOption"),$=getContentFromModel(o);if(isFunction(E)){var N=E(s.getOption());isString(N)?A.innerHTML=N:isDom(N)&&A.appendChild(N)}else{w.readOnly=v.get("readOnly");var z=w.style;z.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",z.color=v.get("textColor"),z.borderColor=v.get("textareaBorderColor"),z.backgroundColor=v.get("textareaColor"),w.value=$.value,A.appendChild(w)}var F=$.meta,B=document.createElement("div");B.style.cssText="position:absolute;bottom:5px;left:0;right:0";var G="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",W=document.createElement("div"),X=document.createElement("div");G+=";background-color:"+v.get("buttonColor"),G+=";color:"+v.get("buttonTextColor");var ee=this;function Q(){l.removeChild(S),ee._dom=null}addEventListener(W,"click",Q),addEventListener(X,"click",function(){if(D==null&&E!=null||D!=null&&E==null){Q();return}var te;try{isFunction(D)?te=D(A,s.getOption()):te=parseContents(w.value,F)}catch(ie){throw Q(),new Error("Data view format error "+ie)}te&&s.dispatchAction({type:"changeDataView",newOption:te}),Q()}),W.innerHTML=T[1],X.innerHTML=T[2],X.style.cssText=W.style.cssText=G,!v.get("readOnly")&&B.appendChild(X),B.appendChild(W),S.appendChild(x),S.appendChild(A),S.appendChild(B),A.style.height=l.clientHeight-80+"px",l.appendChild(S),this._dom=S},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 v=isObject$3(o)&&!isArray$1(o);v||(o={value:o});var S=l.name!=null&&o.name==null;return o=defaults(o,l),S&&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 v=l.get("data");o.push({name:s.name,data:tryMergeDataOption(s.data,v)})}}),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 v=o.length-1;v>=0;v--){var S=o[v];if(S[l])break}if(v<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,v){for(var S=t.length-1;S>=0;S--)if(l=t[S][v],l){s[v]=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 v=parseFinder(o,t);each$c(targetInfoBuilders,function(S,x){(!s||!s.include||indexOf(s.include,x)>=0)&&S(v,l._targetInfoList)})}return r.prototype.setOutputRanges=function(t,o){return this.matchOutputRanges(t,o,function(s,l,v){if((s.coordRanges||(s.coordRanges=[])).push(l),!s.coordRange){s.coordRange=l;var S=coordConvert[s.brushType](0,v,l);s.__rangeOffset={offset:diffProcessor[s.brushType](S.values,s.range,[1,1]),xyMinMax:S.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,o,s){each$c(t,function(l){var v=this.findTargetInfo(l,o);v&&v!==!0&&each$c(v.coordSyses,function(S){var x=coordConvert[l.brushType](1,S,l.range,!0);s(l,x.values,S,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 v=coordConvert[s.brushType](0,l.coordSys,s.coordRange),S=s.__rangeOffset;s.range=S?diffProcessor[s.brushType](v.values,S.offset,getScales(v.xyMinMax,S.xyMinMax)):v.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),v=0;v<s.length;v++){var S=s[v],x=t.panelId;if(x){if(S.panelId===x)return S}else for(var T=0;T<targetInfoMatchers.length;T++)if(targetInfoMatchers[T](l,S))return S}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,v=createHashMap(),S={},x={};!o&&!s&&!l||(each$c(o,function(T){var A=T.axis.grid.model;v.set(A.id,A),S[A.id]=!0}),each$c(s,function(T){var A=T.axis.grid.model;v.set(A.id,A),x[A.id]=!0}),each$c(l,function(T){v.set(T.id,T),S[T.id]=!0,x[T.id]=!0}),v.each(function(T){var A=T.coordinateSystem,w=[];each$c(A.getCartesians(),function(E,D){(indexOf(o,E.getAxis("x").model)>=0||indexOf(s,E.getAxis("y").model)>=0)&&w.push(E)}),t.push({panelId:"grid--"+T.id,gridModel:T,coordSysModel:T,coordSys:w[0],coordSyses:w,getPanelRect:panelRectBuilders.grid,xAxisDeclared:S[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),v=r?t.pointToData([o[0][1],o[1][1]],s):t.dataToPoint([o[0][1],o[1][1]],s),S=[formatMinMax([l[0],v[0]]),formatMinMax([l[1],v[1]])];return{values:S,xyMinMax:S}},polygon:function(r,t,o,s){var l=[[1/0,-1/0],[1/0,-1/0]],v=map$2(o,function(S){var x=r?t.pointToData(S,s):t.dataToPoint(S,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:v,xyMinMax:l}}};function axisConvert(r,t,o,s){var l=o.getAxis(["x","y"][r]),v=formatMinMax(map$2([0,1],function(x){return t?l.coordToData(l.toLocalCoord(s[x]),!0):l.toGlobalCoord(l.dataToCoord(s[x]))})),S=[];return S[r]=v,S[1-r]=[NaN,NaN],{values:v,xyMinMax:S}}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,v){this._brushController||(this._brushController=new BrushController$1(l.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(o,s,this,v,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={},v=this.ecModel;this._brushController.updateCovers([]);var S=new BrushTargetManager$1(makeAxisFinder(this.model),v,{include:["grid"]});S.matchOutputRanges(s,v,function(A,w,E){if(E.type==="cartesian2d"){var D=A.brushType;D==="rect"?(x("x",E,w[0]),x("y",E,w[1])):x({lineX:"x",lineY:"y"}[D],E,w)}}),push(v,l),this._dispatchZoomAction(l);function x(A,w,E){var D=w.getAxis(A),$=D.model,N=T(A,$,v),z=N.findRepresentativeAxisProxy($).getMinMaxSpan();(z.minValueSpan!=null||z.maxValueSpan!=null)&&(E=sliderMove(0,E.slice(),D.scale.getExtent(),0,z.minValueSpan,z.maxValueSpan)),N&&(l[N.id]={dataZoomId:N.id,startValue:E[0],endValue:E[1]})}function T(A,w,E){var D;return E.eachComponent({mainType:"dataZoom",subType:"select"},function($){var N=$.getAxisModel(A,w.componentIndex);N&&(D=$)}),D}},t.prototype._dispatchZoomAction=function(o){var s=[];each$5(o,function(l,v){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 v=o._isZoomActive;s&&s.type==="takeGlobalCursor"&&(v=s.key==="dataZoomSelect"?s.dataZoomSelectActive:!1),o._isZoomActive=v,r.setIconStatus("zoom",v?"emphasis":"normal");var S=new BrushTargetManager$1(makeAxisFinder(r),t,{include:["grid"]}),x=S.makePanelOpts(l,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"});o._brushController.setPanels(x).enableBrush(v&&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=[],v=makeAxisFinder(s),S=parseFinder$1(r,v);each$5(S.xAxisModels,function(T){return x(T,"xAxis","xAxisIndex")}),each$5(S.yAxisModels,function(T){return x(T,"yAxis","yAxisIndex")});function x(T,A,w){var E=T.componentIndex,D={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+A+E};D[w]=E,l.push(D)}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 v=mirrorPos(o),S=Math.max(Math.round(l)*1.5,6),x="",T=CSS_TRANSFORM_VENDOR+":",A;indexOf(["left","right"],v)>-1?(x+="top:50%",T+="translateY(-50%) rotate("+(A=v==="left"?-225:-45)+"deg)"):(x+="left:50%",T+="translateX(-50%) rotate("+(A=v==="top"?225:45)+"deg)");var w=A*Math.PI/180,E=S+l,D=E*Math.abs(Math.cos(w))+E*Math.abs(Math.sin(w)),$=Math.round(((D-Math.SQRT2*l)/2+Math.SQRT2*l-(D-E)/2)*100)/100;x+=";"+v+":-"+$+"px";var N=t+" solid "+l+"px;",z=["position:absolute;width:"+S+"px;height:"+S+"px;z-index:-1;",x+";"+T+";","border-bottom:"+N,"border-right:"+N,"background-color:"+s+";"];return'<div style="'+z.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 v=env$1.transform3dSupported,S="translate"+(v?"3d":"")+"("+s+","+l+(v?",0":"")+")";return o?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+S+";":[["top",0],["left",0],[TRANSFORM_VENDOR,S]]}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"),v=r.get("textShadowBlur")||0,S=r.get("textShadowOffsetX")||0,x=r.get("textShadowOffsetY")||0;return l&&v&&t.push("text-shadow:"+S+"px "+x+"px "+v+"px "+l),each$c(["decoration","align"],function(T){var A=r.get(T);A&&t.push("text-"+T+":"+A)}),t.join(";")}function assembleCssText(r,t,o){var s=[],l=r.get("transitionDuration"),v=r.get("backgroundColor"),S=r.get("shadowBlur"),x=r.get("shadowColor"),T=r.get("shadowOffsetX"),A=r.get("shadowOffsetY"),w=r.getModel("textStyle"),E=getPaddingFromTooltipModel(r,"html"),D=T+"px "+A+"px "+S+"px "+x;return s.push("box-shadow:"+D),t&&l&&s.push(assembleTransition(l,o)),v&&s.push("background-color:"+v),each$c(["width","color","radius"],function($){var N="border-"+$,z=toCamelCase(N),F=r.get(z);F!=null&&s.push(N+":"+F+($==="color"?"":"px"))}),s.push(assembleFont(w)),E!=null&&s.push("padding:"+normalizeCssArray(E).join("px ")+"px"),s.join(";")+";"}function makeStyleCoord$1(r,t,o,s,l){var v=t&&t.painter;if(o){var S=v&&v.getViewportRoot();S&&transformLocalCoord(r,S,document.body,s,l)}else{r[0]=s,r[1]=l;var x=v&&v.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 v=this._zr=o.getZr(),S=this._appendToBody=s&&s.appendToBody;makeStyleCoord$1(this._styleCoord,v,S,o.getWidth()/2,o.getHeight()/2),S?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 A=v.handler,w=v.painter.getViewportRoot();normalizeEvent(w,T,!0),A.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 v=t.get("alwaysShowContent");v&&this._moveIfResized(),this._alwaysShowContent=v,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,v=this._styleCoord;s.innerHTML?l.cssText=gCssText+assembleCssText(t,!this._firstShow,this._longHide)+assembleTransform(v[0],v[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,v){var S=this.el;if(t==null){S.innerHTML="";return}var x="";if(isString(v)&&s.get("trigger")==="item"&&!shouldTooltipConfine(s)&&(x=assembleArrow(s,l,v)),isString(t))S.innerHTML=t+x;else if(t){S.innerHTML="",isArray$1(t)||(t=[t]);for(var T=0;T<t.length;T++)isDom(t[T])&&t[T].parentNode!==S&&S.appendChild(t[T]);if(x&&S.childNodes.length){var A=document.createElement("div");A.innerHTML=x,S.appendChild(A)}}},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,v=assembleTransform(s[0],s[1]);each$c(v,function(S){l[S[0]]=S[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,v){var S=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(A){S.el.style[A]=s.get(A)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(A){S.el.style[A]=x.get(A)||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 v=s.style,S=mathMaxWith0(v.borderWidth||0),x=calcShadowOuterSize(v);s.x=t+S+x.left,s.y=o+S+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"),v=this._renderMode=getTooltipRenderMode(l.get("renderMode"));this._tooltipContent=v==="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 v=this._tooltipContent;v.update(o),v.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,v,S){s!=="none"&&(s.indexOf(l)>=0?this._tryShow(v,S):l==="leave"&&this._hide(S))},this))},t.prototype._keepShow=function(){var o=this._tooltipModel,s=this._ecModel,l=this._api,v=o.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&v!=="none"&&v!=="click"){var S=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!l.isDisposed()&&S.manuallyShowTip(o,s,l,{x:S._lastX,y:S._lastY,dataByCoordSys:S._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(o,s,l,v){if(!(v.from===this.uid||env$1.node||!l.getDom())){var S=makeDispatchAction(v,l);this._ticket="";var x=v.dataByCoordSys,T=findComponentReference(v,s,l);if(T){var A=T.el.getBoundingRect().clone();A.applyTransform(T.el.transform),this._tryShow({offsetX:A.x+A.width/2,offsetY:A.y+A.height/2,target:T.el,position:v.position,positionDefault:"bottom"},S)}else if(v.tooltip&&v.x!=null&&v.y!=null){var w=proxyRect;w.x=v.x,w.y=v.y,w.update(),getECData(w).tooltipConfig={name:null,option:v.tooltip},this._tryShow({offsetX:v.x,offsetY:v.y,target:w},S)}else if(x)this._tryShow({offsetX:v.x,offsetY:v.y,position:v.position,dataByCoordSys:x,tooltipOption:v.tooltipOption},S);else if(v.seriesIndex!=null){if(this._manuallyAxisShowTip(o,s,l,v))return;var E=findPointFromSeries(v,s),D=E.point[0],$=E.point[1];D!=null&&$!=null&&this._tryShow({offsetX:D,offsetY:$,target:E.el,position:v.position,positionDefault:"bottom"},S)}else v.x!=null&&v.y!=null&&(l.dispatchAction({type:"updateAxisPointer",x:v.x,y:v.y}),this._tryShow({offsetX:v.x,offsetY:v.y,position:v.position,target:l.getZr().findHover(v.x,v.y).target},S))}},t.prototype.manuallyHideTip=function(o,s,l,v){var S=this._tooltipContent;this._tooltipModel&&S.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,v.from!==this.uid&&this._hide(makeDispatchAction(v,l))},t.prototype._manuallyAxisShowTip=function(o,s,l,v){var S=v.seriesIndex,x=v.dataIndex,T=s.getComponent("axisPointer").coordSysAxesInfo;if(!(S==null||x==null||T==null)){var A=s.getSeriesByIndex(S);if(A){var w=A.getData(),E=buildTooltipModel([w.getItemModel(x),A,(A.coordinateSystem||{}).model],this._tooltipModel);if(E.get("trigger")==="axis")return l.dispatchAction({type:"updateAxisPointer",seriesIndex:S,dataIndex:x,position:v.position}),!0}}},t.prototype._tryShow=function(o,s){var l=o.target,v=this._tooltipModel;if(v){this._lastX=o.offsetX,this._lastY=o.offsetY;var S=o.dataByCoordSys;if(S&&S.length)this._showAxisTooltip(S,o);else if(l){this._lastDataByCoordSys=null;var x,T;findEventDispatcher(l,function(A){if(getECData(A).dataIndex!=null)return x=A,!0;if(getECData(A).tooltipConfig!=null)return T=A,!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,v=this._tooltipModel,S=[s.offsetX,s.offsetY],x=buildTooltipModel([s.tooltipOption],v),T=this._renderMode,A=[],w=createTooltipMarkup("section",{blocks:[],noHeader:!0}),E=[],D=new TooltipMarkupStyleCreator;each$c(o,function(G){each$c(G.dataByAxis,function(W){var X=l.getComponent(W.axisDim+"Axis",W.axisIndex),ee=W.value;if(!(!X||ee==null)){var Q=getValueLabel(ee,X.axis,l,W.seriesDataIndices,W.valueLabelOpt),te=createTooltipMarkup("section",{header:Q,noHeader:!trim$1(Q),sortBlocks:!0,blocks:[]});w.blocks.push(te),each$c(W.seriesDataIndices,function(ie){var le=l.getSeriesByIndex(ie.seriesIndex),pe=ie.dataIndexInside,ue=le.getDataParams(pe);if(!(ue.dataIndex<0)){ue.axisDim=W.axisDim,ue.axisIndex=W.axisIndex,ue.axisType=W.axisType,ue.axisId=W.axisId,ue.axisValue=getAxisRawValue(X.axis,{value:ee}),ue.axisValueLabel=Q,ue.marker=D.makeTooltipMarker("item",convertToColorString(ue.color),T);var _e=normalizeTooltipFormatResult(le.formatTooltip(pe,!0,null)),xe=_e.frag;if(xe){var Te=buildTooltipModel([le],v).get("valueFormatter");te.blocks.push(Te?extend({valueFormatter:Te},xe):xe)}_e.text&&E.push(_e.text),A.push(ue)}})}})}),w.blocks.reverse(),E.reverse();var $=s.position,N=x.get("order"),z=buildTooltipMarkup(w,D,T,N,l.get("useUTC"),x.get("textStyle"));z&&E.unshift(z);var F=T==="richText"?`
`:"<br/>",B=E.join(F);this._showOrMove(x,function(){this._updateContentNotChangedOnAxis(o,A)?this._updatePosition(x,$,S[0],S[1],this._tooltipContent,A):this._showTooltipContent(x,B,A,Math.random()+"",S[0],S[1],$,null,D)})},t.prototype._showSeriesItemTooltip=function(o,s,l){var v=this._ecModel,S=getECData(s),x=S.seriesIndex,T=v.getSeriesByIndex(x),A=S.dataModel||T,w=S.dataIndex,E=S.dataType,D=A.getData(E),$=this._renderMode,N=o.positionDefault,z=buildTooltipModel([D.getItemModel(w),A,T&&(T.coordinateSystem||{}).model],this._tooltipModel,N?{position:N}:null),F=z.get("trigger");if(!(F!=null&&F!=="item")){var B=A.getDataParams(w,E),G=new TooltipMarkupStyleCreator;B.marker=G.makeTooltipMarker("item",convertToColorString(B.color),$);var W=normalizeTooltipFormatResult(A.formatTooltip(w,!1,E)),X=z.get("order"),ee=z.get("valueFormatter"),Q=W.frag,te=Q?buildTooltipMarkup(ee?extend({valueFormatter:ee},Q):Q,G,$,X,v.get("useUTC"),z.get("textStyle")):W.text,ie="item_"+A.name+"_"+w;this._showOrMove(z,function(){this._showTooltipContent(z,te,B,ie,o.offsetX,o.offsetY,o.position,o.target,G)}),l({type:"showTip",dataIndexInside:w,dataIndex:D.getRawIndex(w),seriesIndex:x,from:this.uid})}},t.prototype._showComponentItemTooltip=function(o,s,l){var v=getECData(s),S=v.tooltipConfig,x=S.option||{};if(isString(x)){var T=x;x={content:T,formatter:T}}var A=[x],w=this._ecModel.getComponent(v.componentMainType,v.componentIndex);w&&A.push(w),A.push({formatter:x.content});var E=o.positionDefault,D=buildTooltipModel(A,this._tooltipModel,E?{position:E}:null),$=D.get("content"),N=Math.random()+"",z=new TooltipMarkupStyleCreator;this._showOrMove(D,function(){var F=clone$3(D.get("formatterParams")||{});this._showTooltipContent(D,$,F,N,o.offsetX,o.offsetY,o.position,s,z)}),l({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(o,s,l,v,S,x,T,A,w){if(this._ticket="",!(!o.get("showContent")||!o.get("show"))){var E=this._tooltipContent;E.setEnterable(o.get("enterable"));var D=o.get("formatter");T=T||o.get("position");var $=s,N=this._getNearestPoint([S,x],l,o.get("trigger"),o.get("borderColor")),z=N.color;if(D)if(isString(D)){var F=o.ecModel.get("useUTC"),B=isArray$1(l)?l[0]:l,G=B&&B.axisType&&B.axisType.indexOf("time")>=0;$=D,G&&($=format$1(B.axisValue,$,F)),$=formatTpl($,l,!0)}else if(isFunction(D)){var W=bind$1(function(X,ee){X===this._ticket&&(E.setContent(ee,w,o,z,T),this._updatePosition(o,T,S,x,E,l,A))},this);this._ticket=v,$=D(l,v,W)}else $=D;E.setContent($,w,o,z,T),E.show(o,z),this._updatePosition(o,T,S,x,E,l,A)}},t.prototype._getNearestPoint=function(o,s,l,v){if(l==="axis"||isArray$1(s))return{color:v||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(s))return{color:v||s.color||s.borderColor}},t.prototype._updatePosition=function(o,s,l,v,S,x,T){var A=this._api.getWidth(),w=this._api.getHeight();s=s||o.get("position");var E=S.getSize(),D=o.get("align"),$=o.get("verticalAlign"),N=T&&T.getBoundingRect().clone();if(T&&N.applyTransform(T.transform),isFunction(s)&&(s=s([l,v],x,S.el,N,{viewSize:[A,w],contentSize:E.slice()})),isArray$1(s))l=parsePercent(s[0],A),v=parsePercent(s[1],w);else if(isObject$3(s)){var z=s;z.width=E[0],z.height=E[1];var F=getLayoutRect(z,{width:A,height:w});l=F.x,v=F.y,D=null,$=null}else if(isString(s)&&T){var B=calcTooltipPosition(s,N,E,o.get("borderWidth"));l=B[0],v=B[1]}else{var B=refixTooltipPosition(l,v,S,A,w,D?null:20,$?null:20);l=B[0],v=B[1]}if(D&&(l-=isCenterAlign(D)?E[0]/2:D==="right"?E[0]:0),$&&(v-=isCenterAlign($)?E[1]/2:$==="bottom"?E[1]:0),shouldTooltipConfine(o)){var B=confineTooltipPosition(l,v,S,A,w);l=B[0],v=B[1]}S.moveTo(l,v)},t.prototype._updateContentNotChangedOnAxis=function(o,s){var l=this._lastDataByCoordSys,v=this._cbParamsList,S=!!l&&l.length===o.length;return S&&each$c(l,function(x,T){var A=x.dataByAxis||[],w=o[T]||{},E=w.dataByAxis||[];S=S&&A.length===E.length,S&&each$c(A,function(D,$){var N=E[$]||{},z=D.seriesDataIndices||[],F=N.seriesDataIndices||[];S=S&&D.value===N.value&&D.axisType===N.axisType&&D.axisId===N.axisId&&z.length===F.length,S&&each$c(z,function(B,G){var W=F[G];S=S&&B.seriesIndex===W.seriesIndex&&B.dataIndex===W.dataIndex}),v&&each$c(D.seriesDataIndices,function(B){var G=B.seriesIndex,W=s[G],X=v[G];W&&X&&X.data!==W.data&&(S=!1)})})}),this._lastDataByCoordSys=o,this._cbParamsList=s,!!S},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 v=r.length-1;v>=0;v--){var S=r[v];S&&(S instanceof Model$1&&(S=S.get("tooltip",!0)),isString(S)&&(S={formatter:S}),S&&(l=new Model$1(S,l,s)))}return l}function makeDispatchAction(r,t){return r.dispatchAction||bind$1(t.dispatchAction,t)}function refixTooltipPosition(r,t,o,s,l,v,S){var x=o.getSize(),T=x[0],A=x[1];return v!=null&&(r+T+v+2>s?r-=T+v:r+=v),S!=null&&(t+A+S>l?t-=A+S:t+=S),[r,t]}function confineTooltipPosition(r,t,o,s,l){var v=o.getSize(),S=v[0],x=v[1];return r=Math.min(r+S,s)-S,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],v=o[1],S=Math.ceil(Math.SQRT2*s)+8,x=0,T=0,A=t.width,w=t.height;switch(r){case"inside":x=t.x+A/2-l/2,T=t.y+w/2-v/2;break;case"top":x=t.x+A/2-l/2,T=t.y-v-S;break;case"bottom":x=t.x+A/2-l/2,T=t.y+w+S;break;case"left":x=t.x-l-S,T=t.y+w/2-v/2;break;case"right":x=t.x+A+S,T=t.y+w/2-v/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 v=queryReferringComponents(t,l,s.get(l),{useDefault:!1,enableAll:!1,enableNone:!1}),S=v.models[0];if(S){var x=o.getViewOfComponentModel(S),T;if(x.group.traverse(function(A){var w=getECData(A).tooltipConfig;if(w&&w.name===r.name)return T=A,!0}),T)return{componentMainType:l,componentIndex:S.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(v){var S=s[v]=l();each$4(r[v],function(x,T){if(VisualMapping$1.isValidType(T)){var A={type:T,visual:x};o&&o(A,v),S[T]=new VisualMapping$1(A),T==="opacity"&&(A=clone$3(A),A.type="colorAlpha",S.__hidden.__alphaForOpacity=new VisualMapping$1(A))}})}),s;function l(){var v=function(){};v.prototype.__hidden=v.prototype;var S=new v;return S}}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(v){var S=VisualMapping$1.prepareVisualTypes(t[v]);l[v]=S}),{progress:function(S,x){var T;s!=null&&(T=x.getDimensionIndex(s));function A(ee){return getItemVisualFromData(x,E,ee)}function w(ee,Q){setItemVisualFromData(x,E,ee,Q)}for(var E,D=x.getStore();(E=S.next())!=null;){var $=x.getRawDataItem(E);if(!($&&$.visualMap===!1))for(var N=s!=null?D.get(T,E):E,z=o(N),F=t[z],B=l[z],G=0,W=B.length;G<W;G++){var X=B[G];F[X]&&F[X].applyVisual(N,A,w)}}}}}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 v=this.group,S=o.getModel("textStyle"),x=o.getModel("subtextStyle"),T=o.get("textAlign"),A=retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),w=new ZRText$1({style:createTextStyle$1(S,{text:o.get("text"),fill:S.getTextColor()},{disableBox:!0}),z2:10}),E=w.getBoundingRect(),D=o.get("subtext"),$=new ZRText$1({style:createTextStyle$1(x,{text:D,fill:x.getTextColor(),y:E.height+o.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),N=o.get("link"),z=o.get("sublink"),F=o.get("triggerEvent",!0);w.silent=!N&&!F,$.silent=!z&&!F,N&&w.on("click",function(){windowOpen(N,"_"+o.get("target"))}),z&&$.on("click",function(){windowOpen(z,"_"+o.get("subtarget"))}),getECData(w).eventData=getECData($).eventData=F?{componentType:"title",componentIndex:o.componentIndex}:null,v.add(w),D&&v.add($);var B=v.getBoundingRect(),G=o.getBoxLayoutParams();G.width=B.width,G.height=B.height;var W=getLayoutRect(G,{width:l.getWidth(),height:l.getHeight()},o.get("padding"));T||(T=o.get("left")||o.get("right"),T==="middle"&&(T="center"),T==="right"?W.x+=W.width:T==="center"&&(W.x+=W.width/2)),A||(A=o.get("top")||o.get("bottom"),A==="center"&&(A="middle"),A==="bottom"?W.y+=W.height:A==="middle"&&(W.y+=W.height/2),A=A||"top"),v.x=W.x,v.y=W.y,v.markRedraw();var X={align:T,verticalAlign:A};w.setStyle(X),$.setStyle(X),B=v.getBoundingRect();var ee=W.margin,Q=o.getItemStyle(["color","opacity"]);Q.fill=o.get("backgroundColor");var te=new Rect$2({shape:{x:B.x-ee[3],y:B.y-ee[0],width:B.width+ee[1]+ee[3],height:B.height+ee[0]+ee[2],r:o.get("borderRadius")},style:Q,subPixelOptimize:!0,silent:!0});v.add(te)}},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(v,S){isString(v)&&(v={type:v}),s[S]=merge(v,getDefaultSelectorOptions(l,v.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 v=o[l].get("name");if(this.isSelected(v)){this.select(v),s=!0;break}}!s&&this.select(o[0].get("name"))}},t.prototype._updateData=function(o){var s=[],l=[];o.eachRawSeries(function(T){var A=T.name;l.push(A);var w;if(T.legendVisualProvider){var E=T.legendVisualProvider,D=E.getAllNames();o.isSeriesFiltered(T)||(l=l.concat(D)),D.length?s=s.concat(D):w=!0}else w=!0;w&&isNameSpecified(T)&&s.push(T.name)}),this._availableNames=l;var v=this.get("data")||s,S=createHashMap(),x=map$2(v,function(T){return(isString(T)||isNumber(T))&&(T={name:T}),S.get(T.name)?null:(S.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 v=this._data;each$c(v,function(S){s[S.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 v=l.get("name",!0);s.hasOwnProperty(v)||(s[v]=!0),s[v]=!s[v]})},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 v=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!o.get("show",!0)){var S=o.get("align"),x=o.get("orient");(!S||S==="auto")&&(S=o.get("left")==="right"&&x==="vertical"?"right":"left");var T=o.get("selector",!0),A=o.get("selectorPosition",!0);T&&(!A||A==="auto")&&(A=x==="horizontal"?"end":"start"),this.renderInner(S,o,s,l,T,x,A);var w=o.getBoxLayoutParams(),E={width:l.getWidth(),height:l.getHeight()},D=o.get("padding"),$=getLayoutRect(w,E,D),N=this.layoutInner(o,S,$,v,T,A),z=getLayoutRect(defaults({width:N.width,height:N.height},w),E,D);this.group.x=z.x-N.x,this.group.y=z.y-N.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(N,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,v,S,x,T){var A=this.getContentGroup(),w=createHashMap(),E=s.get("selectedMode"),D=[];l.eachRawSeries(function($){!$.get("legendHoverLink")&&D.push($.id)}),each$3(s.getData(),function($,N){var z=$.get("name");if(!this.newlineDisabled&&(z===""||z===`
`)){var F=new Group$1;F.newline=!0,A.add(F);return}var B=l.getSeriesByName(z)[0];if(!w.get(z))if(B){var G=B.getData(),W=G.getVisual("legendLineStyle")||{},X=G.getVisual("legendIcon"),ee=G.getVisual("style"),Q=this._createItem(B,z,N,$,s,o,W,ee,X,E,v);Q.on("click",curry(dispatchSelectAction,z,null,v,D)).on("mouseover",curry(dispatchHighlightAction,B.name,null,v,D)).on("mouseout",curry(dispatchDownplayAction,B.name,null,v,D)),w.set(z,!0)}else l.eachRawSeries(function(te){if(!w.get(z)&&te.legendVisualProvider){var ie=te.legendVisualProvider;if(!ie.containName(z))return;var le=ie.indexOfName(z),pe=ie.getItemVisual(le,"style"),ue=ie.getItemVisual(le,"legendIcon"),_e=parse$1(pe.fill);_e&&_e[3]===0&&(_e[3]=.2,pe=extend(extend({},pe),{fill:stringify(_e,"rgba")}));var xe=this._createItem(te,z,N,$,s,o,{},pe,ue,E,v);xe.on("click",curry(dispatchSelectAction,null,z,v,D)).on("mouseover",curry(dispatchHighlightAction,null,z,v,D)).on("mouseout",curry(dispatchDownplayAction,null,z,v,D)),w.set(z,!0)}},this)},this),S&&this._createSelector(S,s,v,x,T)},t.prototype._createSelector=function(o,s,l,v,S){var x=this.getSelectorGroup();each$3(o,function(A){var w=A.type,E=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){l.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(E);var D=s.getModel("selectorLabel"),$=s.getModel(["emphasis","selectorLabel"]);setLabelStyle(E,{normal:D,emphasis:$},{defaultText:A.title}),enableHoverEmphasis(E)})},t.prototype._createItem=function(o,s,l,v,S,x,T,A,w,E,D){var $=o.visualDrawType,N=S.get("itemWidth"),z=S.get("itemHeight"),F=S.isSelected(s),B=v.get("symbolRotate"),G=v.get("symbolKeepAspect"),W=v.get("icon");w=W||w||"roundRect";var X=getLegendStyle(w,v,T,A,$,F,D),ee=new Group$1,Q=v.getModel("textStyle");if(isFunction(o.getLegendIcon)&&(!W||W==="inherit"))ee.add(o.getLegendIcon({itemWidth:N,itemHeight:z,icon:w,iconRotate:B,itemStyle:X.itemStyle,lineStyle:X.lineStyle,symbolKeepAspect:G}));else{var te=W==="inherit"&&o.getData().getVisual("symbol")?B==="inherit"?o.getData().getVisual("symbolRotate"):B:0;ee.add(getDefaultLegendIcon({itemWidth:N,itemHeight:z,icon:w,iconRotate:te,itemStyle:X.itemStyle,lineStyle:X.lineStyle,symbolKeepAspect:G}))}var ie=x==="left"?N+5:-5,le=x,pe=S.get("formatter"),ue=s;isString(pe)&&pe?ue=pe.replace("{name}",s??""):isFunction(pe)&&(ue=pe(s));var _e=v.get("inactiveColor");ee.add(new ZRText$1({style:createTextStyle$1(Q,{text:ue,x:ie,y:z/2,fill:F?Q.getTextColor():_e,align:le,verticalAlign:"middle"})}));var xe=new Rect$2({shape:ee.getBoundingRect(),invisible:!0}),Te=v.getModel("tooltip");return Te.get("show")&&setTooltipConfig({el:xe,componentModel:S,itemName:s,itemTooltipOption:Te.option}),ee.add(xe),ee.eachChild(function(Ae){Ae.silent=!0}),xe.silent=!E,this.getContentGroup().add(ee),enableHoverEmphasis(ee),ee.__legendDataIndex=l,ee},t.prototype.layoutInner=function(o,s,l,v,S,x){var T=this.getContentGroup(),A=this.getSelectorGroup();box(o.get("orient"),T,o.get("itemGap"),l.width,l.height);var w=T.getBoundingRect(),E=[-w.x,-w.y];if(A.markRedraw(),T.markRedraw(),S){box("horizontal",A,o.get("selectorItemGap",!0));var D=A.getBoundingRect(),$=[-D.x,-D.y],N=o.get("selectorButtonGap",!0),z=o.getOrient().index,F=z===0?"width":"height",B=z===0?"height":"width",G=z===0?"y":"x";x==="end"?$[z]+=w[F]+N:E[z]+=D[F]+N,$[1-z]+=w[B]/2-D[B]/2,A.x=$[0],A.y=$[1],T.x=E[0],T.y=E[1];var W={x:0,y:0};return W[F]=w[F]+N+D[F],W[B]=Math.max(w[B],D[B]),W[G]=Math.min(0,D[G]+$[1-z]),W}else return T.x=E[0],T.y=E[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,v,S){function x(F,B){F.lineWidth==="auto"&&(F.lineWidth=B.lineWidth>0?2:0),each$3(F,function(G,W){F[W]==="inherit"&&(F[W]=B[W])})}var T=t.getModel("itemStyle"),A=T.getItemStyle(),w=r.lastIndexOf("empty",0)===0?"fill":"stroke",E=T.getShallow("decal");A.decal=!E||E==="inherit"?s.decal:createOrUpdatePatternFromDecal(E,S),A.fill==="inherit"&&(A.fill=s[l]),A.stroke==="inherit"&&(A.stroke=s[w]),A.opacity==="inherit"&&(A.opacity=(l==="fill"?s:o).opacity),x(A,s);var D=t.getModel("lineStyle"),$=D.getLineStyle();if(x($,o),A.fill==="auto"&&(A.fill=s.fill),A.stroke==="auto"&&(A.stroke=s.fill),$.stroke==="auto"&&($.stroke=s.fill),!v){var N=t.get("inactiveBorderWidth"),z=A[w];A.lineWidth=N==="auto"?s.lineWidth>0&&z?2:0:A.lineWidth,A.fill=t.get("inactiveColor"),A.stroke=t.get("inactiveBorderColor"),$.stroke=D.get("inactiveColor"),$.lineWidth=D.get("inactiveWidth")}return{itemStyle:A,lineStyle:$}}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",v;return o.eachComponent("legend",function(S){l&&v!=null?S[v?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?S[r]():(S[r](t.name),v=S.isSelected(t.name));var x=S.getData();each$c(x,function(T){var A=T.get("name");if(!(A===`
`||A==="")){var w=S.isSelected(A);s.hasOwnProperty(A)?s[A]=s[A]&&w:s[A]=w}})}),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 v=getLayoutParams(o);r.prototype.init.call(this,o,s,l),mergeAndNormalizeLayoutParams(this,o,v)},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,v,S,x,T){var A=this;r.prototype.renderInner.call(this,o,s,l,v,S,x,T);var w=this._controllerGroup,E=s.get("pageIconSize",!0),D=isArray$1(E)?E:[E,E];N("pagePrev",0);var $=s.getModel("pageTextStyle");w.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:$.getTextColor(),font:$.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),N("pageNext",1);function N(z,F){var B=z+"DataIndex",G=createIcon(s.get("pageIcons",!0)[s.getOrient().name][F],{onclick:bind$1(A._pageGo,A,B,s,v)},{x:-D[0]/2,y:-D[1]/2,width:D[0],height:D[1]});G.name=z,w.add(G)}},t.prototype.layoutInner=function(o,s,l,v,S,x){var T=this.getSelectorGroup(),A=o.getOrient().index,w=WH[A],E=XY[A],D=WH[1-A],$=XY[1-A];S&&box("horizontal",T,o.get("selectorItemGap",!0));var N=o.get("selectorButtonGap",!0),z=T.getBoundingRect(),F=[-z.x,-z.y],B=clone$3(l);S&&(B[w]=l[w]-z[w]-N);var G=this._layoutContentAndController(o,v,B,A,w,D,$,E);if(S){if(x==="end")F[A]+=G[w]+N;else{var W=z[w]+N;F[A]-=W,G[E]-=W}G[w]+=z[w]+N,F[1-A]+=G[$]+G[D]/2-z[D]/2,G[D]=Math.max(G[D],z[D]),G[$]=Math.min(G[$],z[$]+F[1-A]),T.x=F[0],T.y=F[1],T.markRedraw()}return G},t.prototype._layoutContentAndController=function(o,s,l,v,S,x,T,A){var w=this.getContentGroup(),E=this._containerGroup,D=this._controllerGroup;box(o.get("orient"),w,o.get("itemGap"),v?l.width:null,v?null:l.height),box("horizontal",D,o.get("pageButtonItemGap",!0));var $=w.getBoundingRect(),N=D.getBoundingRect(),z=this._showController=$[S]>l[S],F=[-$.x,-$.y];s||(F[v]=w[A]);var B=[0,0],G=[-N.x,-N.y],W=retrieve2(o.get("pageButtonGap",!0),o.get("itemGap",!0));if(z){var X=o.get("pageButtonPosition",!0);X==="end"?G[v]+=l[S]-N[S]:B[v]+=N[S]+W}G[1-v]+=$[x]/2-N[x]/2,w.setPosition(F),E.setPosition(B),D.setPosition(G);var ee={x:0,y:0};if(ee[S]=z?l[S]:$[S],ee[x]=Math.max($[x],N[x]),ee[T]=Math.min(0,N[T]+G[1-v]),E.__rectSize=l[S],z){var Q={x:0,y:0};Q[S]=Math.max(l[S]-N[S]-W,0),Q[x]=ee[x],E.setClipPath(new Rect$2({shape:Q})),E.__rectSize=Q[S]}else D.eachChild(function(ie){ie.attr({invisible:!0,silent:!0})});var te=this._getPageInfo(o);return te.pageIndex!=null&&updateProps$1(w,{x:te.contentPosition[0],y:te.contentPosition[1]},z?o:null),this._updatePageInfoView(o,te),ee},t.prototype._pageGo=function(o,s,l){var v=this._getPageInfo(s)[o];v!=null&&l.dispatchAction({type:"legendScroll",scrollDataIndex:v,legendId:s.id})},t.prototype._updatePageInfoView=function(o,s){var l=this._controllerGroup;each$c(["pagePrev","pageNext"],function(w){var E=w+"DataIndex",D=s[E]!=null,$=l.childOfName(w);$&&($.setStyle("fill",D?o.get("pageIconColor",!0):o.get("pageIconInactiveColor",!0)),$.cursor=D?"pointer":"default")});var v=l.childOfName("pageText"),S=o.get("pageFormatter"),x=s.pageIndex,T=x!=null?x+1:0,A=s.pageCount;v&&S&&v.setStyle("text",isString(S)?S.replace("{current}",T==null?"":T+"").replace("{total}",A==null?"":A+""):S({current:T,total:A}))},t.prototype._getPageInfo=function(o){var s=o.get("scrollDataIndex",!0),l=this.getContentGroup(),v=this._containerGroup.__rectSize,S=o.getOrient().index,x=WH[S],T=XY[S],A=this._findTargetItemIndex(s),w=l.children(),E=w[A],D=w.length,$=D?1:0,N={contentPosition:[l.x,l.y],pageCount:$,pageIndex:$-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!E)return N;var z=X(E);N.contentPosition[S]=-z.s;for(var F=A+1,B=z,G=z,W=null;F<=D;++F)W=X(w[F]),(!W&&G.e>B.s+v||W&&!ee(W,B.s))&&(G.i>B.i?B=G:B=W,B&&(N.pageNextDataIndex==null&&(N.pageNextDataIndex=B.i),++N.pageCount)),G=W;for(var F=A-1,B=z,G=z,W=null;F>=-1;--F)W=X(w[F]),(!W||!ee(G,W.s))&&B.i<G.i&&(G=B,N.pagePrevDataIndex==null&&(N.pagePrevDataIndex=B.i),++N.pageCount,++N.pageIndex),B=W;return N;function X(Q){if(Q){var te=Q.getBoundingRect(),ie=te[T]+Q[T];return{s:ie,e:ie+te[x],i:Q.__legendDataIndex}}}function ee(Q,te){return Q.e>=te&&Q.s<=te+v}},t.prototype._findTargetItemIndex=function(o){if(!this._showController)return 0;var s,l=this.getContentGroup(),v;return l.eachChild(function(S,x){var T=S.__legendDataIndex;v==null&&T!=null&&(v=x),T===o&&(s=x)}),s??v},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 v=s[l],S=o.get(v),x=S.dataZoomInfoMap;if(x){var T=t.uid,A=x.get(T);A&&(x.removeKey(T),x.keys().length||disposeCoordSysRecord(o,S))}}}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(v){var S=[];o.dataZoomInfoMap.each(function(x){if(v.isAvailableBehavior(x.model.option)){var T=(x.getRange||{})[l],A=T&&T(x.dzReferCoordSysInfo,o.model.mainType,o.controller,v);!x.model.get("disabled",!0)&&A&&S.push({dataZoomId:x.model.id,start:A[0],end:A[1]})}}),S.length&&o.dispatchAction(S)})}),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(v){var S=v.model,x=S.get("disabled",!0)?!1:S.get("zoomLock",!0)?"move":!0;s[o+x]>s[o+t]&&(t=x),l=l&&S.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(v){v.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(v){var S=collectReferCoordSysModelInfo(v);each$c(S.infoList,function(x){var T=x.model.uid,A=l.get(T)||l.set(T,createCoordSysRecord(o,x.model)),w=A.dataZoomInfoMap||(A.dataZoomInfoMap=createHashMap());w.set(v.uid,{dzReferCoordSysInfo:x,model:v,getRange:null})})}),l.each(function(v){var S=v.controller,x,T=v.dataZoomInfoMap;if(T){var A=T.keys()[0];A!=null&&(x=T.get(A))}if(!x){disposeCoordSysRecord(l,v);return}var w=mergeControllerParams(T);S.enable(w.controlType,w.opt),S.setPointerChecker(v.containsPoint),createOrUpdate(v,"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,v=l.slice(),S=r.axisModels[0];if(S){var x=getDirectionInfo[t](null,[s.originX,s.originY],S,o,r),T=(x.signal>0?x.pixelStart+x.pixelLength-x.pixel:x.pixel-x.pixelStart)/x.pixelLength*(v[1]-v[0])+v[0],A=Math.max(1/s.scale,0);v[0]=(v[0]-T)*A+T,v[1]=(v[1]-T)*A+T;var w=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,v,[0,100],0,w.minSpan,w.maxSpan),this.range=v,l[0]!==v[0]||l[1]!==v[1])return v}},pan:makeMover(function(r,t,o,s,l,v){var S=getDirectionInfo[s]([v.oldX,v.oldY],[v.newX,v.newY],t,l,o);return S.signal*(r[1]-r[0])*S.pixel/S.pixelLength}),scrollMove:makeMover(function(r,t,o,s,l,v){var S=getDirectionInfo[s]([0,0],[v.scrollDelta,v.scrollDelta],t,l,o);return S.signal*(r[1]-r[0])*v.scrollDelta})};function makeMover(r){return function(t,o,s,l){var v=this.range,S=v.slice(),x=t.axisModels[0];if(x){var T=r(S,x,t,o,s,l);if(sliderMove(T,S,[0,100],"all"),this.range=S,v[0]!==S[0]||v[1]!==S[1])return S}}}var getDirectionInfo={grid:function(r,t,o,s,l){var v=o.axis,S={},x=l.model.coordinateSystem.getRect();return r=r||[0,0],v.dim==="x"?(S.pixel=t[0]-r[0],S.pixelLength=x.width,S.pixelStart=x.x,S.signal=v.inverse?1:-1):(S.pixel=t[1]-r[1],S.pixelLength=x.height,S.pixelStart=x.y,S.signal=v.inverse?-1:1),S},polar:function(r,t,o,s,l){var v=o.axis,S={},x=l.model.coordinateSystem,T=x.getRadiusAxis().getExtent(),A=x.getAngleAxis().getExtent();return r=r?x.pointToCoord(r):[0,0],t=x.pointToCoord(t),o.mainType==="radiusAxis"?(S.pixel=t[0]-r[0],S.pixelLength=T[1]-T[0],S.pixelStart=T[0],S.signal=v.inverse?1:-1):(S.pixel=t[1]-r[1],S.pixelLength=A[1]-A[0],S.pixelStart=A[0],S.signal=v.inverse?-1:1),S},singleAxis:function(r,t,o,s,l){var v=o.axis,S=l.model.coordinateSystem.getRect(),x={};return r=r||[0,0],v.orient==="horizontal"?(x.pixel=t[0]-r[0],x.pixelLength=S.width,x.pixelStart=S.x,x.signal=v.inverse?1:-1):(x.pixel=t[1]-r[1],x.pixelLength=S.height,x.pixelStart=S.y,x.signal=v.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,v){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}(!v||v.type!=="dataZoom"||v.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"),v=l?DEFAULT_MOVE_HANDLE_SIZE:0,S=this._findCoordRect(),x={width:s.getWidth(),height:s.getHeight()},T=this._orient===HORIZONTAL?{right:x.width-S.x-S.width,top:x.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-v,width:S.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:S.y,width:DEFAULT_FILLER_SIZE,height:S.height},A=getLayoutParams(o.option);each$c(["right","top","width","height"],function(E){A[E]==="ph"&&(A[E]=T[E])});var w=getLayoutRect(A,x);this._location={x:w.x,y:w.y},this._size=[w.width,w.height],this._orient===VERTICAL&&this._size.reverse()},t.prototype._positionGroup=function(){var o=this.group,s=this._location,l=this._orient,v=this.dataZoomModel.getFirstTargetAxisModel(),S=v&&v.get("inverse"),x=this._displayables.sliderGroup,T=(this._dataShadowInfo||{}).otherAxisInverse;x.attr(l===HORIZONTAL&&!S?{scaleY:T?1:-1,scaleX:1}:l===HORIZONTAL&&S?{scaleY:T?1:-1,scaleX:-1}:l===VERTICAL&&!S?{scaleY:T?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:T?-1:1,scaleX:-1,rotation:Math.PI/2});var A=o.getBoundingRect([x]);o.x=s.x-A.x,o.y=s.y-A.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,v=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 S=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();v?(S.on("mousedown",this._onBrushStart,this),S.cursor="crosshair",x.on("mousemove",this._onBrush),x.on("mouseup",this._onBrushEnd)):(x.off("mousemove",this._onBrush),x.off("mouseup",this._onBrushEnd)),l.add(S)},t.prototype._renderDataShadow=function(){var o=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!o)return;var s=this._size,l=this._shadowSize||[],v=o.series,S=v.getRawData(),x=v.getShadowDim&&v.getShadowDim(),T=x&&S.getDimensionInfo(x)?v.getShadowDim():o.otherDim;if(T==null)return;var A=this._shadowPolygonPts,w=this._shadowPolylinePts;if(S!==this._shadowData||T!==this._shadowDim||s[0]!==l[0]||s[1]!==l[1]){var E=S.getDataExtent(T),D=(E[1]-E[0])*.3;E=[E[0]-D,E[1]+D];var $=[0,s[1]],N=[0,s[0]],z=[[s[0],0],[0,0]],F=[],B=N[1]/(S.count()-1),G=0,W=Math.round(S.count()/s[0]),X;S.each([T],function(le,pe){if(W>0&&pe%W){G+=B;return}var ue=le==null||isNaN(le)||le==="",_e=ue?0:linearMap$2(le,E,$,!0);ue&&!X&&pe?(z.push([z[z.length-1][0],0]),F.push([F[F.length-1][0],0])):!ue&&X&&(z.push([G,0]),F.push([G,0])),z.push([G,_e]),F.push([G,_e]),G+=B,X=ue}),A=this._shadowPolygonPts=z,w=this._shadowPolylinePts=F}this._shadowData=S,this._shadowDim=T,this._shadowSize=[s[0],s[1]];var ee=this.dataZoomModel;function Q(le){var pe=ee.getModel(le?"selectedDataBackground":"dataBackground"),ue=new Group$3,_e=new Polygon$1({shape:{points:A},segmentIgnoreThreshold:1,style:pe.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),xe=new Polyline$1({shape:{points:w},segmentIgnoreThreshold:1,style:pe.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return ue.add(_e),ue.add(xe),ue}for(var te=0;te<3;te++){var ie=Q(te===1);this._displayables.sliderGroup.add(ie),this._displayables.dataShadowSegs.push(ie)}},t.prototype._prepareDataShadowInfo=function(){var o=this.dataZoomModel,s=o.get("showDataShadow");if(s!==!1){var l,v=this.ecModel;return o.eachTargetAxis(function(S,x){var T=o.getAxisProxy(S,x).getTargetSeriesModels();each$c(T,function(A){if(!l&&!(s!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,A.get("type"))<0)){var w=v.getComponent(getAxisMainType(S),x).axis,E=getOtherDim(S),D,$=A.coordinateSystem;E!=null&&$.getOtherAxis&&(D=$.getOtherAxis(w).inverse),E=A.getData().mapDimension(E),l={thisAxis:w,series:A,thisDim:S,otherDim:E,otherAxisInverse:D}}},this)},this),l}},t.prototype._renderHandle=function(){var o=this.group,s=this._displayables,l=s.handles=[null,null],v=s.handleLabels=[null,null],S=this._displayables.sliderGroup,x=this._size,T=this.dataZoomModel,A=this.api,w=T.get("borderRadius")||0,E=T.get("brushSelect"),D=s.filler=new Rect({silent:E,style:{fill:T.get("fillerColor")},textConfig:{position:"inside"}});S.add(D),S.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:x[0],height:x[1],r:w},style:{stroke:T.get("dataBackgroundColor")||T.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(W){var X=T.get("handleIcon");!symbolBuildProxies[X]&&X.indexOf("path://")<0&&X.indexOf("image://")<0&&(X="path://"+X);var ee=createSymbol(X,-1,0,2,2,null,!0);ee.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,W),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var Q=ee.getBoundingRect(),te=T.get("handleSize");this._handleHeight=parsePercent(te,this._size[1]),this._handleWidth=Q.width/Q.height*this._handleHeight,ee.setStyle(T.getModel("handleStyle").getItemStyle()),ee.style.strokeNoScale=!0,ee.rectHover=!0,ee.ensureState("emphasis").style=T.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(ee);var ie=T.get("handleColor");ie!=null&&(ee.style.fill=ie),S.add(l[W]=ee);var le=T.getModel("textStyle");o.add(v[W]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(le,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:le.getTextColor(),font:le.getFont()}),z2:10}))},this);var $=D;if(E){var N=parsePercent(T.get("moveHandleSize"),x[1]),z=s.moveHandle=new Rect$2({style:T.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:x[1]-.5,height:N}}),F=N*.8,B=s.moveHandleIcon=createSymbol(T.get("moveHandleIcon"),-F/2,-F/2,F,F,"#fff",!0);B.silent=!0,B.y=x[1]+N/2-.5,z.ensureState("emphasis").style=T.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var G=Math.min(x[1]/2,Math.max(N,10));$=s.moveZone=new Rect$2({invisible:!0,shape:{y:x[1]-G,height:N+G}}),$.on("mouseover",function(){A.enterEmphasis(z)}).on("mouseout",function(){A.leaveEmphasis(z)}),S.add(z),S.add(B),S.add($)}$.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,v=this._handleEnds,S=this._getViewExtent(),x=l.findRepresentativeAxisProxy().getMinMaxSpan(),T=[0,100];sliderMove(s,v,S,l.get("zoomLock")?"all":o,x.minSpan!=null?linearMap$2(x.minSpan,T,S,!0):null,x.maxSpan!=null?linearMap$2(x.maxSpan,T,S,!0):null);var A=this._range,w=this._range=asc$2([linearMap$2(v[0],S,T,!0),linearMap$2(v[1],S,T,!0)]);return!A||A[0]!==w[0]||A[1]!==w[1]},t.prototype._updateView=function(o){var s=this._displayables,l=this._handleEnds,v=asc$2(l.slice()),S=this._size;each$c([0,1],function($){var N=s.handles[$],z=this._handleHeight;N.attr({scaleX:z/2,scaleY:z/2,x:l[$]+($?-1:1),y:S[1]/2-z/2})},this),s.filler.setShape({x:v[0],y:0,width:v[1]-v[0],height:S[1]});var x={x:v[0],width:v[1]-v[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,A=[0,v[0],v[1],S[0]],w=0;w<T.length;w++){var E=T[w],D=E.getClipPath();D||(D=new Rect$2,E.setClipPath(D)),D.setShape({x:A[w],y:0,width:A[w+1]-A[w],height:S[1]})}this._updateDataInfo(o)},t.prototype._updateDataInfo=function(o){var s=this.dataZoomModel,l=this._displayables,v=l.handleLabels,S=this._orient,x=["",""];if(s.get("showDetail")){var T=s.findRepresentativeAxisProxy();if(T){var A=T.getAxisModel().axis,w=this._range,E=o?T.calculateDataWindow({start:w[0],end:w[1]}).valueWindow:T.getDataValueWindow();x=[this._formatLabel(E[0],A),this._formatLabel(E[1],A)]}}var D=asc$2(this._handleEnds.slice());$.call(this,0),$.call(this,1);function $(N){var z=getTransform$1(l.handles[N].parent,this.group),F=transformDirection(N===0?"right":"left",z),B=this._handleWidth/2+LABEL_GAP,G=applyTransform([D[N]+(N===0?-B:B),this._size[1]/2],z);v[N].setStyle({x:G[0],y:G[1],verticalAlign:S===HORIZONTAL?"middle":F,align:S===HORIZONTAL?F:"center",text:x[N]})}},t.prototype._formatLabel=function(o,s){var l=this.dataZoomModel,v=l.get("labelFormatter"),S=l.get("labelPrecision");(S==null||S==="auto")&&(S=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(S,20));return isFunction(v)?v(o,x):isString(v)?v.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,v){this._dragging=!0,stop(v.event);var S=this._displayables.sliderGroup.getLocalTransform(),x=applyTransform([s,l],S,!0),T=this._updateInterval(o,x[0]),A=this.dataZoomModel.get("realtime");this._updateView(!A),T&&A&&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 v=this._handleEnds,S=(v[0]+v[1])/2,x=this._updateInterval("all",l[0]-S);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,v=+new Date;if(!(v-this._brushStartTime<200&&Math.abs(l.width)<5)){var S=this._getViewExtent(),x=[0,100];this._range=asc$2([linearMap$2(l.x,S,x,!0),linearMap$2(l.x+l.width,S,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,v=this.dataZoomModel,S=l.brushRect;S||(S=l.brushRect=new Rect({silent:!0,style:v.getModel("brushStyle").getItemStyle()}),l.sliderGroup.add(S)),S.attr("ignore",!1);var x=this._brushStart,T=this._displayables.sliderGroup,A=T.transformCoordToLocal(o,s),w=T.transformCoordToLocal(x.x,x.y),E=this._size;A[0]=Math.max(Math.min(E[0],A[0]),0),S.setShape({x:w[0],y:0,width:A[0]-w[0],height:E[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 v=this.api.getWidth(),S=this.api.getHeight();o={x:v*.2,y:S*.2,width:v*.6,height:S*.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,v){s.push(v)}):s=normalizeToArray(o),s},t.prototype.eachTargetSeries=function(o,s){each$c(this.getTargetSeriesIndices(),function(l){var v=this.ecModel.getSeriesByIndex(l);v&&o.call(s,v)},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 v=this.option,S=v.precision,x=this.dataBound,T=v.formatter,A;l=l||["<",">"],isArray$1(o)&&(o=o.slice(),A=!0);var w=s?o:A?[E(o[0]),E(o[1])]:E(o);if(isString(T))return T.replace("{value}",A?w[0]:w).replace("{value2}",A?w[1]:w);if(isFunction(T))return A?T(o[0],o[1]):T(o);if(A)return o[0]===x[0]?l[0]+" "+w[1]:o[1]===x[1]?l[1]+" "+w[0]:w[0]+" - "+w[1];return w;function E(D){return D===x[0]?"min":D===x[1]?"max":(+D).toFixed(Math.min(S,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,v=l.length-1;v>=0;v--){var S=l[v],x=o.getDimensionInfo(S);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},v=s.target||(s.target={}),S=s.controller||(s.controller={});merge(v,l),merge(S,l);var x=this.isCategory();T.call(this,v),T.call(this,S),A.call(this,v,"inRange","outOfRange"),w.call(this,S);function T(E){isArray(s.color)&&!E.inRange&&(E.inRange={color:s.color.slice().reverse()}),E.inRange=E.inRange||{color:o.get("gradientColor")}}function A(E,D,$){var N=E[D],z=E[$];N&&!z&&(z=E[$]={},each$2(N,function(F,B){if(VisualMapping$1.isValidType(B)){var G=visualDefault$1.get(B,"inactive",x);G!=null&&(z[B]=G,B==="color"&&!z.hasOwnProperty("opacity")&&!z.hasOwnProperty("colorAlpha")&&(z.opacity=[0,0]))}}))}function w(E){var D=(E.inRange||{}).symbol||(E.outOfRange||{}).symbol,$=(E.inRange||{}).symbolSize||(E.outOfRange||{}).symbolSize,N=this.get("inactiveColor"),z=this.getItemSymbol(),F=z||"roundRect";each$2(this.stateList,function(B){var G=this.itemSize,W=E[B];W||(W=E[B]={color:x?N:[N]}),W.symbol==null&&(W.symbol=D&&clone$3(D)||(x?F:[F])),W.symbolSize==null&&(W.symbolSize=$&&clone$3($)||(x?G[0]:[G[0],G[0]])),W.symbol=mapVisual(W.symbol,function(Q){return Q==="none"?F:Q});var X=W.symbolSize;if(X!=null){var ee=-1/0;eachVisual(X,function(Q){Q>ee&&(ee=Q)}),W.symbolSize=mapVisual(X,function(Q){return linearMap$1(Q,[0,ee],[0,G[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 v=[],S=l.getData();S.each(this.getDataDimensionIndex(S),function(x,T){o[0]<=x&&x<=o[1]&&v.push(T)},this),s.push({seriesId:l.id,dataIndex:v})},this),s},t.prototype.getVisualMeta=function(o){var s=getColorStopValues(this,"outOfRange",this.getExtent()),l=getColorStopValues(this,"inRange",this.option.range.slice()),v=[];function S($,N){v.push({value:$,color:o($,N)})}for(var x=0,T=0,A=l.length,w=s.length;T<w&&(!l.length||s[T]<=l[0]);T++)s[T]<l[x]&&S(s[T],"outOfRange");for(var E=1;x<A;x++,E=0)E&&v.length&&S(l[x],"outOfRange"),S(l[x],"inRange");for(var E=1;T<w;T++)(!l.length||l[l.length-1]<s[T])&&(E&&(v.length&&S(v[v.length-1].value,"outOfRange"),E=0),S(s[T],"outOfRange"));var D=v.length;return{stops:v,outerColors:[D?v[0].color:"transparent",D?v[D-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,v=o[0],S=[],x=0;x<=s&&v<o[1];x++)S.push(v),v+=l;return S.push(o[1]),S}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,v){if(this.visualMapModel=o,o.get("show")===!1){this.group.removeAll();return}this.doRender(o,s,l,v)},t.prototype.renderBackground=function(o){var s=this.visualMapModel,l=normalizeCssArray(s.get("padding")||0),v=o.getBoundingRect();o.add(new Rect$2({z2:-1,silent:!0,shape:{x:v.x-l[3],y:v.y-l[0],width:v.width+l[3]+l[1],height:v.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 v=l.forceState,S=this.visualMapModel,x={};if(s==="color"){var T=S.get("contentColor");x.color=T}function A($){return x[$]}function w($,N){x[$]=N}var E=S.controllerVisuals[v||S.getValueState(o)],D=VisualMapping$1.prepareVisualTypes(E);return each$c(D,function($){var N=E[$];l.convertOpacityToAlpha&&$==="opacity"&&($="colorAlpha",N=E.__alphaForOpacity),VisualMapping$1.dependsOn($,s)&&N&&N.applyVisual(o,A,w)}),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,v){},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 v={width:t.getWidth(),height:t.getHeight()},S=s.orient==="horizontal"?1:0,x=paramsSet[S],T=[0,null,10],A={},w=0;w<3;w++)A[paramsSet[1-S][w]]=T[w],A[x[w]]=w===2?o[0]:s[x[w]];var E=[["x","width",3],["y","height",0]][S],D=getLayoutRect(A,v,s.padding);return x[(D.margin[E[2]]||0)+D[E[0]]+D[E[1]]*.5<v[E[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,v){this._api=l,(!v||v.type!=="selectDataRange"||v.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 v=s[1-l];v=v!=null?v+"":"";var S=this.visualMapModel,x=S.get("textGap"),T=S.itemSize,A=this._shapes.mainGroup,w=this._applyTransform([T[0]/2,l===0?-x:T[1]+x],A),E=this._applyTransform(l===0?"bottom":"top",A),D=this._orient,$=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1($,{x:w[0],y:w[1],verticalAlign:D==="horizontal"?"middle":E,align:D==="horizontal"?E:"center",text:v})}))}},t.prototype._renderBar=function(o){var s=this.visualMapModel,l=this._shapes,v=s.itemSize,S=this._orient,x=this._useHandle,T=getItemAlign(s,this.api,v),A=l.mainGroup=this._createBarGroup(T),w=new Group$3;A.add(w),w.add(l.outOfRange=createPolygon()),w.add(l.inRange=createPolygon(null,x?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),w.setClipPath(new Rect$2({shape:{x:0,y:0,width:v[0],height:v[1],r:3}}));var E=s.textStyleModel.getTextRect("国"),D=mathMax(E.width,E.height);x&&(l.handleThumbs=[],l.handleLabels=[],l.handleLabelPoints=[],this._createHandle(s,A,0,v,D,S),this._createHandle(s,A,1,v,D,S)),this._createIndicator(s,A,v,D,S),o.add(A)},t.prototype._createHandle=function(o,s,l,v,S,x){var T=bind$1(this._dragHandle,this,l,!1),A=bind$1(this._dragHandle,this,l,!0),w=parsePercent$1(o.get("handleSize"),v[0]),E=createSymbol(o.get("handleIcon"),-w/2,-w/2,w,w,null,!0),D=getCursor(this._orient);E.attr({cursor:D,draggable:!0,drift:T,ondragend:A,onmousemove:function(B){stop(B.event)}}),E.x=v[0]/2,E.useStyle(o.getModel("handleStyle").getItemStyle()),E.setStyle({strokeNoScale:!0,strokeFirst:!0}),E.style.lineWidth*=2,E.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(E,!0),s.add(E);var $=this.visualMapModel.textStyleModel,N=new ZRText$1({cursor:D,draggable:!0,drift:T,onmousemove:function(B){stop(B.event)},ondragend:A,style:createTextStyle$1($,{x:0,y:0,text:""})});N.ensureState("blur").style={opacity:.1},N.stateTransition={duration:200},this.group.add(N);var z=[w,0],F=this._shapes;F.handleThumbs[l]=E,F.handleLabelPoints[l]=z,F.handleLabels[l]=N},t.prototype._createIndicator=function(o,s,l,v,S){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 A=o.getModel("indicatorStyle").getItemStyle();if(T instanceof ZRImage$1){var w=T.style;T.useStyle(extend({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},A))}else T.useStyle(A);s.add(T);var E=this.visualMapModel.textStyleModel,D=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(E,{x:0,y:0,text:""})});this.group.add(D);var $=[(S==="horizontal"?v/2:HOVER_LINK_OUT)+l[0]/2,0],N=this._shapes;N.indicator=T,N.indicatorLabel=D,N.indicatorLabelPoint=$,this._firstShowIndicator=!0},t.prototype._dragHandle=function(o,s,l,v){if(this._useHandle){if(this._dragging=!s,!s){var S=this._applyTransform([l,v],this._shapes.mainGroup,!0);this._updateInterval(o,S[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(),v=[0,o.itemSize[1]];this._handleEnds=[linearMap(s[0],l,v,!0),linearMap(s[1],l,v,!0)]},t.prototype._updateInterval=function(o,s){s=s||0;var l=this.visualMapModel,v=this._handleEnds,S=[0,l.itemSize[1]];sliderMove(s,v,S,o,0);var x=l.getExtent();this._dataInterval=[linearMap(v[0],S,x,!0),linearMap(v[1],S,x,!0)]},t.prototype._updateView=function(o){var s=this.visualMapModel,l=s.getExtent(),v=this._shapes,S=[0,s.itemSize[1]],x=o?S:this._handleEnds,T=this._createBarVisual(this._dataInterval,l,x,"inRange"),A=this._createBarVisual(l,l,S,"outOfRange");v.inRange.setStyle({fill:T.barColor}).setShape("points",T.barPoints),v.outOfRange.setStyle({fill:A.barColor}).setShape("points",A.barPoints),this._updateHandle(x,T)},t.prototype._createBarVisual=function(o,s,l,v){var S={forceState:v,convertOpacityToAlpha:!0},x=this._makeColorGradient(o,S),T=[this.getControllerVisual(o[0],"symbolSize",S),this.getControllerVisual(o[1],"symbolSize",S)],A=this._createBarPoints(l,T);return{barColor:new LinearGradient$1(0,0,0,1,x),barPoints:A,handlesColor:[x[0].color,x[x.length-1].color]}},t.prototype._makeColorGradient=function(o,s){var l=100,v=[],S=(o[1]-o[0])/l;v.push({color:this.getControllerVisual(o[0],"color",s),offset:0});for(var x=1;x<l;x++){var T=o[0]+S*x;if(T>o[1])break;v.push({color:this.getControllerVisual(T,"color",s),offset:x/l})}return v.push({color:this.getControllerVisual(o[1],"color",s),offset:1}),v},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,v=this.visualMapModel,S=l.handleThumbs,x=l.handleLabels,T=v.itemSize,A=v.getExtent();each$1([0,1],function(w){var E=S[w];E.setStyle("fill",s.handlesColor[w]),E.y=o[w];var D=linearMap(o[w],[0,T[1]],A,!0),$=this.getControllerVisual(D,"symbolSize");E.scaleX=E.scaleY=$/T[0],E.x=T[0]-$/2;var N=applyTransform(l.handleLabelPoints[w],getTransform$1(E,this.group));x[w].setStyle({x:N[0],y:N[1],text:v.formatValueText(this._dataInterval[w]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",l.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(o,s,l,v){var S=this.visualMapModel,x=S.getExtent(),T=S.itemSize,A=[0,T[1]],w=this._shapes,E=w.indicator;if(E){E.attr("invisible",!1);var D={convertOpacityToAlpha:!0},$=this.getControllerVisual(o,"color",D),N=this.getControllerVisual(o,"symbolSize"),z=linearMap(o,x,A,!0),F=T[0]-N/2,B={x:E.x,y:E.y};E.y=z,E.x=F;var G=applyTransform(w.indicatorLabelPoint,getTransform$1(E,this.group)),W=w.indicatorLabel;W.attr("invisible",!1);var X=this._applyTransform("left",w.mainGroup),ee=this._orient,Q=ee==="horizontal";W.setStyle({text:(l||"")+S.formatValueText(s),verticalAlign:Q?X:"middle",align:Q?"center":X});var te={x:F,y:z,style:{fill:$}},ie={style:{x:G[0],y:G[1]}};if(S.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var le={duration:100,easing:"cubicInOut",additive:!0};E.x=B.x,E.y=B.y,E.animateTo(te,le),W.animateTo(ie,le)}else E.attr(te),W.attr(ie);this._firstShowIndicator=!1;var pe=this._shapes.handleLabels;if(pe)for(var ue=0;ue<pe.length;ue++)this._api.enterBlur(pe[ue])}},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,v=o._applyTransform([s.offsetX,s.offsetY],o._shapes.mainGroup,!0,!0);v[1]=mathMin(mathMax(0,v[1]),l[1]),o._doHoverLinkToSeries(v[1],0<=v[0]&&v[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,v=l.itemSize;if(l.option.hoverLink){var S=[0,v[1]],x=l.getExtent();o=mathMin(mathMax(S[0],o),S[1]);var T=getHalfHoverLinkSize(l,x,S),A=[o-T,o+T],w=linearMap(o,S,x,!0),E=[linearMap(A[0],S,x,!0),linearMap(A[1],S,x,!0)];A[0]<S[0]&&(E[0]=-1/0),A[1]>S[1]&&(E[1]=1/0),s&&(E[0]===-1/0?this._showIndicator(w,E[1],"< ",T):E[1]===1/0?this._showIndicator(w,E[0],"> ",T):this._showIndicator(w,w,"≈ ",T));var D=this._hoverLinkDataIndices,$=[];(s||useHoverLinkOnHandle(l))&&($=this._hoverLinkDataIndices=l.findTargetDataIndices(E));var N=compressBatches(D,$);this._dispatchHighDown("downplay",makeHighDownBatch(N[0],l)),this._dispatchHighDown("highlight",makeHighDownBatch(N[1],l))}},t.prototype._hoverLinkFromSeriesMouseOver=function(o){var s;if(findEventDispatcher(o.target,function(T){var A=getECData(T);if(A.dataIndex!=null)return s=A,!0},!0),!!s){var l=this.ecModel.getSeriesByIndex(s.seriesIndex),v=this.visualMapModel;if(v.isTargetSeries(l)){var S=l.getData(s.dataType),x=S.getStore().get(v.getDataDimensionIndex(S),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,v){var S=getTransform$1(s,v?null:this.group);return isArray$1(o)?applyTransform(o,S,l):transformDirection(o,S,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 v=l.getVisualMeta(bind$1(getColorVisual,null,r,l))||{stops:[],outerColors:[]},S=l.getDataDimensionIndex(o);S>=0&&(v.dimension=S,s.push(v))}}),r.getData().setVisual("visualMeta",s)}}];function getColorVisual(r,t,o,s){for(var l=t.targetVisuals[s],v=VisualMapping$1.prepareVisualTypes(l),S={color:getVisualFromData(r.getData(),"color")},x=0,T=v.length;x<T;x++){var A=v[x],w=l[A==="opacity"?"__alphaForOpacity":A];w&&w.applyVisual(o,E,D)}return S.color;function E($){return S[$]}function D($,N){S[$]=N}}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 v=this.option.categories;this.resetVisual(function(S,x){l==="categories"?(S.mappingMethod="category",S.categories=clone$3(v)):(S.dataExtent=this.getExtent(),S.mappingMethod="piecewise",S.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(),v=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 A=!1;each$c(this.stateList,function(w){A=A||S(o,w,T)||S(o.target,w,T)},this),!A&&each$c(this.stateList,function(w){(o[w]||(o[w]={}))[T]=visualDefault$1.get(T,w==="inRange"?"active":"inactive",v)})},this);function S(x,T,A){return x&&x[T]&&x[T].hasOwnProperty(A)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(o,s){var l=this.option,v=this._pieceList,S=(s?l:o).selected||{};if(l.selected=S,each$c(v,function(T,A){var w=this.getSelectedMapKey(T);S.hasOwnProperty(w)||(S[w]=!0)},this),l.selectedMode==="single"){var x=!1;each$c(v,function(T,A){var w=this.getSelectedMapKey(T);S[w]&&(x?S[w]=!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(v){var S=[],x=v.getData();x.each(this.getDataDimensionIndex(x),function(T,A){var w=VisualMapping$1.findPieceIndex(T,l);w===o&&S.push(A)},this),s.push({seriesId:v.id,dataIndex:S})},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=["",""],v=this;function S(w,E){var D=v.getRepresentValue({interval:w});E||(E=v.getValueState(D));var $=o(D,E);w[0]===-1/0?l[0]=$:w[1]===1/0?l[1]=$:s.push({value:w[0],color:$},{value:w[1],color:$})}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 A=-1/0;return each$c(x,function(w){var E=w.interval;E&&(E[0]>A&&S([A,E[0]],"outOfRange"),S(E.slice()),A=E[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 v=(s[1]-s[0])/l;+v.toFixed(o)!==v&&o<5;)o++;t.precision=o,v=+v.toFixed(o),t.minOpen&&r.push({interval:[-1/0,s[0]],close:[0,0]});for(var S=0,x=s[0];S<l;x+=v,S++){var T=S===l-1?s[1]:x+v;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(A,w){A.index=w,A.text=this.formatValueText(A.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 v=l.value=o.value;l.interval=[v,v],l.close=[1,1]}else{for(var S=l.interval=[],x=l.close=[0,0],T=[1,0,1],A=[-1/0,1/0],w=[],E=0;E<2;E++){for(var D=[["gte","gt","min"],["lte","lt","max"]][E],$=0;$<3&&S[E]==null;$++)S[E]=o[D[$]],x[E]=T[$],w[E]=$===2;S[E]==null&&(S[E]=A[E])}w[0]&&S[1]===1/0&&(x[0]=0),w[1]&&S[0]===-1/0&&(x[1]=0),S[0]===S[1]&&x[0]&&x[1]&&(l.value=S[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"),v=s.textStyleModel,S=v.getFont(),x=v.getTextColor(),T=this._getItemAlign(),A=s.itemSize,w=this._getViewData(),E=w.endsText,D=retrieve(s.get("showLabel",!0),!E);E&&this._renderEndsText(o,E[0],A,D,T),each$c(w.viewPieceList,function($){var N=$.piece,z=new Group$3;z.onclick=bind$1(this._onItemClick,this,N),this._enableHoverLink(z,$.indexInModelPieceList);var F=s.getRepresentValue(N);if(this._createItemSymbol(z,F,[0,0,A[0],A[1]]),D){var B=this.visualMapModel.getValueState(F);z.add(new ZRText$1({style:{x:T==="right"?-l:A[0]+l,y:A[1]/2,text:N.text,verticalAlign:"middle",align:T,font:S,fill:x,opacity:B==="outOfRange"?.5:1}}))}o.add(z)},this),E&&this._renderEndsText(o,E[1],A,D,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 v("highlight")}).on("mouseout",function(){return v("downplay")});var v=function(S){var x=l.visualMapModel;x.option.hoverLink&&l.api.dispatchAction({type:S,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,v,S){if(s){var x=new Group$3,T=this.visualMapModel.textStyleModel;x.add(new ZRText$1({style:createTextStyle$1(T,{x:v?S==="right"?l[0]:0:l[0]/2,y:l[1]/2,verticalAlign:"middle",align:v?S:"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"),v=o.get("orient"),S=o.get("inverse");return(v==="horizontal"?S:!S)?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,v=l.selectedMode;if(v){var S=clone$3(l.selected),x=s.getSelectedMapKey(o);v==="single"||v===!0?(S[x]=!0,each$c(S,function(T,A){S[A]=A===x})):S[x]=!S[x],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:S})}},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$1=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=(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$1.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={};P(c,{Vue:()=>Vue});m$1(c,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:v}=t,S=A=>l+A,x=s===3?(0,c.reactive)(v):v;Object.keys(x).length===0&&console.warn("key cannot be empty"),Object.keys(x).forEach(A=>{let w=x[A];o.set(S(A),w),Reflect.defineProperty(x,A,{get:()=>o.get(S(A)),set:E=>o.set(S(A),E),configurable:!0}),s===2&&r.util.defineReactive(x,A,x[A])});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})},de=Object.prototype.hasOwnProperty,_=(r,t)=>de.call(r,t),H=r=>r!==null&&typeof r=="object",ce=((r,t)=>{if(!H(r)||H(o=r)&&o.__epPropKey)return r;var o;const{values:s,required:l,default:v,type:S,validator:x}=r,T=s||x?w=>{let E=!1,D=[];if(s&&(D=Array.from(s),_(r,"default")&&D.push(v),E||(E=D.includes(w))),x&&(E||(E=x(w))),!E&&D.length>0){const $=[...new Set(D)].map(N=>JSON.stringify(N)).join(", ");Vue.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${$}], got value ${JSON.stringify(w)}.`)}return E}:void 0,A={type:S,required:!!l,validator:T,__epPropKey:!0};return _(r,"default")&&(A.default=v),A})({type:String,values:["","default","small","large"],required:!1});var ge={data:{type:Array,default:()=>[]},size:ce,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,tooltipOptions:Object,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 fe={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},...ge},K=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:r=>()=>Vue.createVNode(Vue.Fragment,null,[r.render(r.params)])});var L$1=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,be=Object.prototype.hasOwnProperty,M=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of me(t))!be.call(r,l)&&l!==o&&L$1(r,l,{get:()=>t[l],enumerable:!(s=ye(t,l))||s.enumerable});return r},he=Object.prototype.toString;function V(r){return typeof r=="function"}function Oe(r){return function(t,o){return he.call(t)===`[object ${o}]`}(r,"Boolean")}var h={};((r,t)=>{for(var o in t)L$1(r,o,{get:t[o],enumerable:!0})})(h,{Vue:()=>Vue}),M(h,Vue,"default");var ve=()=>{let r,t=(0,h.ref)(!1),o=()=>{t.value=document.documentElement.classList.contains("dark")};return function(s){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(s)}(()=>{r.takeRecords(),r.disconnect()}),(0,h.onBeforeMount)(()=>{o(),r=new MutationObserver(o),r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};const k=Vue.defineComponent({name:"PureTable",props:fe,emits:["page-size-change","page-current-change"],setup(r,{slots:t,attrs:o,emit:s,expose:l}){const{isDark:v}=ve(),S=Vue.getCurrentInstance();function x(){var Q;return(Q=S==null?void 0:S.proxy)==null?void 0:Q.$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:A,loading:w,loadingConfig:E,alignWhole:D,headerAlign:$,showOverflowTooltip:N,pagination:z}=Vue.toRefs(r);let F=Vue.computed(()=>{if(!Vue.unref(E))return;let{text:Q,spinner:te,svg:ie,viewBox:le}=Vue.unref(E);return{"element-loading-text":Q,"element-loading-spinner":te,"element-loading-svg":ie,"element-loading-svg-view-box":le}});const B=Vue.computed(()=>{var Q,te;if(Vue.unref(w))return{"element-loading-background":((te=(Q=Vue.unref(E))==null?void 0:Q.background)!=null?te:v.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),G=Vue.computed(()=>{var Q;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:Vue.unref(z).align==="left"?"flex-start":Vue.unref(z).align==="center"?"center":"flex-end"},(Q=Vue.unref(z).style)!=null?Q:{})});let W=Vue.unref(z)&&Vue.unref(z).currentPage&&Vue.unref(z).pageSize;const X=(Q,te)=>{const{cellRenderer:ie,slot:le,headerRenderer:pe,headerSlot:ue,hide:_e,children:xe,prop:Te,...Ae}=Q;if(V(_e)&&_e(o))return _e(o);if(Oe(_e)&&_e)return _e;const we={default:Ce=>{var Re;return ie?Vue.createVNode(K,{render:ie,params:Object.assign(Ce,{index:Ce.$index,props:r,attrs:o})},null):le?(Re=t==null?void 0:t[le])==null?void 0:Re.call(t,Object.assign(Ce,{index:Ce.$index,props:r,attrs:o})):void 0}};let $e=pe?{header:Ce=>Vue.createVNode(K,{render:pe,params:Object.assign(Ce,{index:Ce.$index,props:r,attrs:o})},null),...we}:t!=null&&t[ue]?{header:Ce=>{var Re;return(Re=t==null?void 0:t[ue])==null?void 0:Re.call(t,Object.assign(Ce,{index:Ce.$index,props:r,attrs:o}))},...we}:we;return(xe==null?void 0:xe.length)>0&&($e=xe.map(X)),Vue.createVNode(ElementPlus.ElTableColumn,Vue.mergeProps({key:te},Ae,{prop:V(Te)&&Te(te)?Te(te):Te,align:Q!=null&&Q.align?Q.align:Vue.unref(D),headerAlign:Q!=null&&Q.headerAlign?Q.headerAlign:Vue.unref($),showOverflowTooltip:Q!=null&&Q.showOverflowTooltip?Q.showOverflowTooltip:Vue.unref(N)}),typeof(Pe=$e)=="function"||Object.prototype.toString.call(Pe)==="[object Object]"&&!Vue.isVNode(Pe)?$e:{default:()=>[$e]});var Pe};l({getTableRef:x,getTableDoms:T});let ee=()=>{var Q,te;return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(ElementPlus.ElTable,Vue.mergeProps(r,o,{ref:`TableRef${r.key}`}),{default:()=>Vue.unref(A).map(X),append:()=>t.append&&t.append(),empty:()=>t.empty&&t.empty()}),W?Vue.createVNode(ElementPlus.ElPagination,Vue.mergeProps(o,{class:"pure-pagination",style:Vue.unref(G)},Vue.unref(z),{small:r!=null&&r.paginationSmall?r==null?void 0:r.paginationSmall:!!Vue.unref(z).small&&Vue.unref(z).small,layout:(Q=Vue.unref(z).layout)!=null?Q:"total, sizes, prev, pager, next, jumper",pageSizes:(te=Vue.unref(z).pageSizes)!=null?te:[5,10,15,20],onSizeChange:ie=>(le=>{Vue.unref(z).pageSize=le,s("page-size-change",le)})(ie),onCurrentChange:ie=>(le=>{Vue.unref(z).currentPage=le,s("page-current-change",le)})(ie)}),null):null])};return()=>Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps({class:"pure-table",style:"width:100%"},Vue.unref(B),Vue.unref(F)),[ee()]),[[Vue.resolveDirective("loading"),Vue.unref(w)]])}}),je=Object.assign(k,{install:function(r){r.component(k.name,k)}}),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:v,labelAlign:S,loading:x}=Vue.toRefs(r),T={title:()=>(t==null?void 0:t.title)&&t.title({props:r,attrs:o})},A={extra:()=>(t==null?void 0:t.extra)&&t.extra({props:r,attrs:o})},w=t!=null&&t.title&&!(t!=null&&t.extra)?T:t!=null&&t.extra&&!(t!=null&&t.title)?A:t!=null&&t.title&&(t!=null&&t.extra)?Object.assign(T,A):null;return()=>{var E;return Vue.withDirectives(Vue.createVNode(ElementPlus.ElDescriptions,Vue.mergeProps(r,o,{"element-loading-text":(E=Vue.unref(x).text)!=null?E:"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((D,$)=>{let N=Vue.unref(s).map(W=>W[D==null?void 0:D.prop]);const z={default:()=>{var W;return D!=null&&D.cellRenderer?Vue.createVNode(j,{render:D.cellRenderer,params:{props:r,attrs:o,index:$,value:N[0]}},null):D!=null&&D.slot?(W=t==null?void 0:t[D.slot])==null?void 0:W.call(t,{props:r,attrs:o,index:$,value:N[0]}):Vue.createVNode(Vue.Fragment,null,D!=null&&D.value?[Vue.unref(D.value)]:[N])}},F=D!=null&&D.labelRenderer?{label:()=>Vue.createVNode(j,{render:D.labelRenderer,params:{props:r,attrs:o,index:$,value:N[0]}},null),...z}:z;return B=D==null?void 0:D.hide,typeof B=="function"&&(D!=null&&D.hide(o))?D==null?void 0:D.hide(o):Vue.createVNode(ElementPlus.ElDescriptionsItem,Vue.mergeProps(D,{key:$,align:D.align?D.align:Vue.unref(v),labelAlign:D.labelAlign?D.labelAlign:Vue.unref(S)}),typeof(G=F)=="function"||Object.prototype.toString.call(G)==="[object Object]"&&!Vue.isVNode(G)?F:{default:()=>[F]});var B,G})],...w}),[[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,v,S,x,T=function(E,D){D.parentNode.insertBefore(E,D)};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(E){console&&console.log(E)}}s=function(){var E,D=document.createElement("div");D.innerHTML=r._iconfont_svg_string_2208059,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(E=document.body).firstChild?T(D,E.firstChild):E.appendChild(D))},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&&(v=s,S=r.document,x=!1,w(),S.onreadystatechange=function(){S.readyState=="complete"&&(S.onreadystatechange=null,A())})}function A(){x||(x=!0,v())}function w(){try{S.documentElement.doScroll("left")}catch{return void setTimeout(w,50)}A()}}(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(S){var x=t(S);return x&&!!x.isDetectable}function s(S){t(S).isDetectable=!0}function l(S){return!!t(S).busy}function v(S,x){t(S).busy=!!x}return{isDetectable:o,markAsDetectable:s,isBusy:l,markBusy:v}},listenerHandler=function(r){var t={};function o(S){var x=r.get(S);return x===void 0?[]:t[x]||[]}function s(S,x){var T=r.get(S);t[T]||(t[T]=[]),t[T].push(x)}function l(S,x){for(var T=o(S),A=0,w=T.length;A<w;++A)if(T[A]===x){T.splice(A,1);break}}function v(S){var x=o(S);x&&(x.length=0)}return{get:o,add:s,removeListener:l,removeAllListeners:v}},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(v){var S=o(v);return S&&S.id!==void 0?S.id:null}function l(v){var S=o(v);if(!S)throw new Error("setId required the element to have a resize detection state.");var x=t.generate();return S.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,v){l[v]=function(){var x=console[v];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,v=document.createElement("div"),S=v.getElementsByTagName("i");do v.innerHTML="<!--[if gt IE "+ ++l+"]><i></i><![endif]-->";while(S[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 v=Batch(),S,x=!1;function T(N,z){!x&&l&&s&&v.size()===0&&E(),v.add(N,z)}function A(){for(x=!0;v.size();){var N=v;v=Batch(),N.process()}x=!1}function w(N){x||(N===void 0&&(N=s),S&&(D(S),S=null),N?E():A())}function E(){S=$(A)}function D(N){var z=clearTimeout;return z(N)}function $(N){var z=function(F){return setTimeout(F,0)};return z(N)}return{add:T,force:w}};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 v(){for(var x=s;x<=o;x++)for(var T=r[x],A=0;A<T.length;A++){var w=T[A];w()}}function S(){return t}return{add:l,process:v,size:S}}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(A,w){function E(){w(A)}if(browserDetector$1.isIE(8))s(A).object={proxy:E},A.attachEvent("onresize",E);else{var D=x(A);if(!D)throw new Error("Element is not detectable by this strategy.");D.contentDocument.defaultView.addEventListener("resize",E)}}function v(A){var w=r.important?" !important; ":"; ";return(A.join(w)+w).trim()}function S(A,w,E){E||(E=w,w=A,A=null),A=A||{},A.debug;function D($,N){var z=v(["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"]),F=!1,B=window.getComputedStyle($),G=$.offsetWidth,W=$.offsetHeight;s($).startSize={width:G,height:W};function X(){function ee(){if(B.position==="static"){$.style.setProperty("position","relative",A.important?"important":"");var ie=function(le,pe,ue,_e){function xe(Ae){return Ae.replace(/[^-\d\.]/g,"")}var Te=ue[_e];Te!=="auto"&&xe(Te)!=="0"&&(le.warn("An element that is positioned static has style."+_e+"="+Te+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+_e+" will be set to 0. Element: ",pe),pe.style.setProperty(_e,"0",A.important?"important":""))};ie(t,$,B,"top"),ie(t,$,B,"right"),ie(t,$,B,"bottom"),ie(t,$,B,"left")}}function Q(){F||ee();function ie(pe,ue){if(!pe.contentDocument){var _e=s(pe);_e.checkForObjectDocumentTimeoutId&&window.clearTimeout(_e.checkForObjectDocumentTimeoutId),_e.checkForObjectDocumentTimeoutId=setTimeout(function(){_e.checkForObjectDocumentTimeoutId=0,ie(pe,ue)},100);return}ue(pe.contentDocument)}var le=this;ie(le,function(ue){N($)})}B.position!==""&&(ee(),F=!0);var te=document.createElement("object");te.style.cssText=z,te.tabIndex=-1,te.type="text/html",te.setAttribute("aria-hidden","true"),te.onload=Q,browserDetector$1.isIE()||(te.data="about:blank"),s($)&&($.appendChild(te),s($).object=te,browserDetector$1.isIE()&&(te.data="about:blank"))}o?o.add(X):X()}browserDetector$1.isIE(8)?E(w):D(w,E)}function x(A){return s(A).object}function T(A){if(s(A)){var w=x(A);w&&(browserDetector$1.isIE(8)?A.detachEvent("onresize",w.proxy):A.removeChild(w),s(A).checkForObjectDocumentTimeoutId&&window.clearTimeout(s(A).checkForObjectDocumentTimeoutId),delete s(A).object)}}return{makeDetectable:S,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 v=w(),S="erd_scroll_detection_scrollbar_style",x="erd_scroll_detection_container";function T(X){E(X,S,x)}T(window.document);function A(X){var ee=r.important?" !important; ":"; ";return(X.join(ee)+ee).trim()}function w(){var X=500,ee=500,Q=document.createElement("div");Q.style.cssText=A(["position: absolute","width: "+X*2+"px","height: "+ee*2+"px","visibility: hidden","margin: 0","padding: 0"]);var te=document.createElement("div");te.style.cssText=A(["position: absolute","width: "+X+"px","height: "+ee+"px","overflow: scroll","visibility: none","top: "+-X*3+"px","left: "+-ee*3+"px","visibility: hidden","margin: 0","padding: 0"]),te.appendChild(Q),document.body.insertBefore(te,document.body.firstChild);var ie=X-te.clientWidth,le=ee-te.clientHeight;return document.body.removeChild(te),{width:ie,height:le}}function E(X,ee,Q){function te(ue,_e){_e=_e||function(Te){X.head.appendChild(Te)};var xe=X.createElement("style");return xe.innerHTML=ue,xe.id=ee,_e(xe),xe}if(!X.getElementById(ee)){var ie=Q+"_animation",le=Q+"_animation_active",pe=`/* Created by the element-resize-detector library. */
`;pe+="."+Q+" > div::-webkit-scrollbar { "+A(["display: none"])+` }
`,pe+="."+le+" { "+A(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+ie,"animation-name: "+ie])+` }
`,pe+="@-webkit-keyframes "+ie+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,pe+="@keyframes "+ie+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",te(pe)}}function D(X){X.className+=" "+x+"_animation_active"}function $(X,ee,Q){if(X.addEventListener)X.addEventListener(ee,Q);else if(X.attachEvent)X.attachEvent("on"+ee,Q);else return t.error("[scroll] Don't know how to add event listeners.")}function N(X,ee,Q){if(X.removeEventListener)X.removeEventListener(ee,Q);else if(X.detachEvent)X.detachEvent("on"+ee,Q);else return t.error("[scroll] Don't know how to remove event listeners.")}function z(X){return s(X).container.childNodes[0].childNodes[0].childNodes[0]}function F(X){return s(X).container.childNodes[0].childNodes[0].childNodes[1]}function B(X,ee){var Q=s(X).listeners;if(!Q.push)throw new Error("Cannot add listener to an element that is not detectable.");s(X).listeners.push(ee)}function G(X,ee,Q){Q||(Q=ee,ee=X,X=null),X=X||{};function te(){if(X.debug){var Me=Array.prototype.slice.call(arguments);if(Me.unshift(l.get(ee),"Scroll: "),t.log.apply)t.log.apply(null,Me);else for(var Be=0;Be<Me.length;Be++)t.log(Me[Be])}}function ie(Me){function Be(De){var Ue=De.getRootNode&&De.getRootNode().contains(De);return De===De.ownerDocument.body||De.ownerDocument.body.contains(De)||Ue}return!Be(Me)||window.getComputedStyle(Me)===null}function le(Me){var Be=s(Me).container.childNodes[0],De=window.getComputedStyle(Be);return!De.width||De.width.indexOf("px")===-1}function pe(){var Me=window.getComputedStyle(ee),Be={};return Be.position=Me.position,Be.width=ee.offsetWidth,Be.height=ee.offsetHeight,Be.top=Me.top,Be.right=Me.right,Be.bottom=Me.bottom,Be.left=Me.left,Be.widthCSS=Me.width,Be.heightCSS=Me.height,Be}function ue(){var Me=pe();s(ee).startSize={width:Me.width,height:Me.height},te("Element start size",s(ee).startSize)}function _e(){s(ee).listeners=[]}function xe(){if(te("storeStyle invoked."),!s(ee)){te("Aborting because element has been uninstalled");return}var Me=pe();s(ee).style=Me}function Te(Me,Be,De){s(Me).lastWidth=Be,s(Me).lastHeight=De}function Ae(Me){return z(Me).childNodes[0]}function we(){return 2*v.width+1}function $e(){return 2*v.height+1}function Pe(Me){return Me+10+we()}function Ce(Me){return Me+10+$e()}function Re(Me){return Me*2+we()}function Ye(Me){return Me*2+$e()}function We(Me,Be,De){var Ue=z(Me),xt=F(Me),ft=Pe(Be),wt=Ce(De),ct=Re(Be),Xe=Ye(De);Ue.scrollLeft=ft,Ue.scrollTop=wt,xt.scrollLeft=ct,xt.scrollTop=Xe}function qe(){var Me=s(ee).container;if(!Me){Me=document.createElement("div"),Me.className=x,Me.style.cssText=A(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),s(ee).container=Me,D(Me),ee.appendChild(Me);var Be=function(){s(ee).onRendered&&s(ee).onRendered()};$(Me,"animationstart",Be),s(ee).onAnimationStart=Be}return Me}function Qe(){function Me(){var bt=s(ee).style;if(bt.position==="static"){ee.style.setProperty("position","relative",X.important?"important":"");var Gt=function(qt,Zt,fr,Qt){function hr(dr){return dr.replace(/[^-\d\.]/g,"")}var nr=fr[Qt];nr!=="auto"&&hr(nr)!=="0"&&(qt.warn("An element that is positioned static has style."+Qt+"="+nr+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Qt+" will be set to 0. Element: ",Zt),Zt.style[Qt]=0)};Gt(t,ee,bt,"top"),Gt(t,ee,bt,"right"),Gt(t,ee,bt,"bottom"),Gt(t,ee,bt,"left")}}function Be(bt,Gt,qt,Zt){return bt=bt?bt+"px":"0",Gt=Gt?Gt+"px":"0",qt=qt?qt+"px":"0",Zt=Zt?Zt+"px":"0",["left: "+bt,"top: "+Gt,"right: "+Zt,"bottom: "+qt]}if(te("Injecting elements"),!s(ee)){te("Aborting because element has been uninstalled");return}Me();var De=s(ee).container;De||(De=qe());var Ue=v.width,xt=v.height,ft=A(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),wt=A(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Be(-(1+Ue),-(1+xt),-xt,-Ue))),ct=A(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Xe=A(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Ct=A(["position: absolute","left: 0","top: 0"]),Rt=A(["position: absolute","width: 200%","height: 200%"]),Lt=document.createElement("div"),Et=document.createElement("div"),Yt=document.createElement("div"),Kt=document.createElement("div"),rr=document.createElement("div"),cr=document.createElement("div");Lt.dir="ltr",Lt.style.cssText=ft,Lt.className=x,Et.className=x,Et.style.cssText=wt,Yt.style.cssText=ct,Kt.style.cssText=Ct,rr.style.cssText=Xe,cr.style.cssText=Rt,Yt.appendChild(Kt),rr.appendChild(cr),Et.appendChild(Yt),Et.appendChild(rr),Lt.appendChild(Et),De.appendChild(Lt);function or(){var bt=s(ee);bt&&bt.onExpand?bt.onExpand():te("Aborting expand scroll handler: element has been uninstalled")}function sr(){var bt=s(ee);bt&&bt.onShrink?bt.onShrink():te("Aborting shrink scroll handler: element has been uninstalled")}$(Yt,"scroll",or),$(rr,"scroll",sr),s(ee).onExpandScroll=or,s(ee).onShrinkScroll=sr}function ht(){function Me(ct,Xe,Ct){var Rt=Ae(ct),Lt=Pe(Xe),Et=Ce(Ct);Rt.style.setProperty("width",Lt+"px",X.important?"important":""),Rt.style.setProperty("height",Et+"px",X.important?"important":"")}function Be(ct){var Xe=ee.offsetWidth,Ct=ee.offsetHeight,Rt=Xe!==s(ee).lastWidth||Ct!==s(ee).lastHeight;te("Storing current size",Xe,Ct),Te(ee,Xe,Ct),o.add(0,function(){if(Rt){if(!s(ee)){te("Aborting because element has been uninstalled");return}if(!De()){te("Aborting because element container has not been initialized");return}if(X.debug){var Et=ee.offsetWidth,Yt=ee.offsetHeight;(Et!==Xe||Yt!==Ct)&&t.warn(l.get(ee),"Scroll: Size changed before updating detector elements.")}Me(ee,Xe,Ct)}}),o.add(1,function(){if(!s(ee)){te("Aborting because element has been uninstalled");return}if(!De()){te("Aborting because element container has not been initialized");return}We(ee,Xe,Ct)}),Rt&&ct&&o.add(2,function(){if(!s(ee)){te("Aborting because element has been uninstalled");return}if(!De()){te("Aborting because element container has not been initialized");return}ct()})}function De(){return!!s(ee).container}function Ue(){function ct(){return s(ee).lastNotifiedWidth===void 0}te("notifyListenersIfNeeded invoked");var Xe=s(ee);if(ct()&&Xe.lastWidth===Xe.startSize.width&&Xe.lastHeight===Xe.startSize.height)return te("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(Xe.lastWidth===Xe.lastNotifiedWidth&&Xe.lastHeight===Xe.lastNotifiedHeight)return te("Not notifying: Size already notified");te("Current size not notified, notifying..."),Xe.lastNotifiedWidth=Xe.lastWidth,Xe.lastNotifiedHeight=Xe.lastHeight,forEach$1(s(ee).listeners,function(Ct){Ct(ee)})}function xt(){if(te("startanimation triggered."),le(ee)){te("Ignoring since element is still unrendered...");return}te("Element rendered.");var ct=z(ee),Xe=F(ee);(ct.scrollLeft===0||ct.scrollTop===0||Xe.scrollLeft===0||Xe.scrollTop===0)&&(te("Scrollbars out of sync. Updating detector elements..."),Be(Ue))}function ft(){if(te("Scroll detected."),le(ee)){te("Scroll event fired while unrendered. Ignoring...");return}Be(Ue)}if(te("registerListenersAndPositionElements invoked."),!s(ee)){te("Aborting because element has been uninstalled");return}s(ee).onRendered=xt,s(ee).onExpand=ft,s(ee).onShrink=ft;var wt=s(ee).style;Me(ee,wt.width,wt.height)}function st(){if(te("finalizeDomMutation invoked."),!s(ee)){te("Aborting because element has been uninstalled");return}var Me=s(ee).style;Te(ee,Me.width,Me.height),We(ee,Me.width,Me.height)}function Tt(){Q(ee)}function yt(){te("Installing..."),_e(),ue(),o.add(0,xe),o.add(1,Qe),o.add(2,ht),o.add(3,st),o.add(4,Tt)}te("Making detectable..."),ie(ee)?(te("Element is detached"),qe(),te("Waiting until element is attached..."),s(ee).onRendered=function(){te("Element is now attached"),yt()}):yt()}function W(X){var ee=s(X);ee&&(ee.onExpandScroll&&N(z(X),"scroll",ee.onExpandScroll),ee.onShrinkScroll&&N(F(X),"scroll",ee.onShrinkScroll),ee.onAnimationStart&&N(ee.container,"animationstart",ee.onAnimationStart),ee.container&&X.removeChild(ee.container))}return{makeDetectable:G,addListener:B,uninstall:W,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(G){return r.idHandler.get(G,!0)},set:r.idHandler.set};else{var o=idGeneratorMaker(),s=idHandlerMaker({idGenerator:o,stateHandler});t=s}var l=r.reporter;if(!l){var v=l===!1;l=reporterMaker(v)}var S=getOption(r,"batchProcessor",batchProcessorMaker({reporter:l})),x={};x.callOnAdd=!!getOption(r,"callOnAdd",!0),x.debug=!!getOption(r,"debug",!1);var T=listenerHandlerMaker(t),A=elementUtilsMaker({stateHandler}),w,E=getOption(r,"strategy","object"),D=getOption(r,"important",!1),$={reporter:l,batchProcessor:S,stateHandler,idHandler:t,important:D};if(E==="scroll"&&(browserDetector.isLegacyOpera()?(l.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):browserDetector.isIE(9)&&(l.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),E="object")),E==="scroll")w=scrollStrategyMaker($);else if(E==="object")w=objectStrategyMaker($);else throw new Error("Invalid strategy name: "+E);var N={};function z(G,W,X){function ee(ue){var _e=T.get(ue);forEach(_e,function(Te){Te(ue)})}function Q(ue,_e,xe){T.add(_e,xe),ue&&xe(_e)}if(X||(X=W,W=G,G={}),!W)throw new Error("At least one element required.");if(!X)throw new Error("Listener required.");if(isElement(W))W=[W];else if(isCollection(W))W=toArray(W);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var te=0,ie=getOption(G,"callOnAdd",x.callOnAdd),le=getOption(G,"onReady",function(){}),pe=getOption(G,"debug",x.debug);forEach(W,function(_e){stateHandler.getState(_e)||(stateHandler.initState(_e),t.set(_e));var xe=t.get(_e);if(pe&&l.log("Attaching listener to element",xe,_e),!A.isDetectable(_e)){if(pe&&l.log(xe,"Not detectable."),A.isBusy(_e)){pe&&l.log(xe,"System busy making it detectable"),Q(ie,_e,X),N[xe]=N[xe]||[],N[xe].push(function(){te++,te===W.length&&le()});return}return pe&&l.log(xe,"Making detectable..."),A.markBusy(_e,!0),w.makeDetectable({debug:pe,important:D},_e,function(Ae){if(pe&&l.log(xe,"onElementDetectable"),stateHandler.getState(Ae)){A.markAsDetectable(Ae),A.markBusy(Ae,!1),w.addListener(Ae,ee),Q(ie,Ae,X);var we=stateHandler.getState(Ae);if(we&&we.startSize){var $e=Ae.offsetWidth,Pe=Ae.offsetHeight;(we.startSize.width!==$e||we.startSize.height!==Pe)&&ee(Ae)}N[xe]&&forEach(N[xe],function(Ce){Ce()})}else pe&&l.log(xe,"Element uninstalled before being detectable.");delete N[xe],te++,te===W.length&&le()})}pe&&l.log(xe,"Already detecable, adding listener."),Q(ie,_e,X),te++}),te===W.length&&le()}function F(G){if(!G)return l.error("At least one element is required.");if(isElement(G))G=[G];else if(isCollection(G))G=toArray(G);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(G,function(W){T.removeAllListeners(W),w.uninstall(W),stateHandler.cleanState(W)})}function B(G){w.initDocument&&w.initDocument(G)}return{listenTo:z,removeListener:T.removeListener,removeAllListeners:T.removeAllListeners,uninstall:F,initDocument:B}};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,v=s.offsetHeight;t!=null&&t.instance?emitter.emit("resize",{detail:{width:l,height:v}}):o.el.dispatchEvent(new CustomEvent("resize",{detail:{width:l,height:v}}))})},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],v=typeof l;s in defaultIconSizeCustomisations$1?(l===null||l&&(v==="string"||v==="number"))&&(o[s]=l):v===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 v=parseFloat(r.slice(0,r.length-o.length));return isNaN(v)?0:(v=v/l,v%1===0?s(v):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 v=s.shift(),S=unitsTest$1.test(v);for(;;){if(S){const x=parseFloat(v);isNaN(x)?l.push(v):l.push(Math.ceil(x*t*o)/o)}else l.push(v);if(v=s.shift(),v===void 0)return l.join("");S=!S}}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 v=o.body;[o,s].forEach(N=>{const z=[],F=N.hFlip,B=N.vFlip;let G=N.rotate;F?B?G+=2:(z.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),z.push("scale(-1 1)"),l.top=l.left=0):B&&(z.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),z.push("scale(1 -1)"),l.top=l.left=0);let W;switch(G<0&&(G-=Math.floor(G/4)*4),G=G%4,G){case 1:W=l.height/2+l.top,z.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:z.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:W=l.width/2+l.left,z.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}G%2===1&&(l.left!==l.top&&(W=l.left,l.left=l.top,l.top=W),l.width!==l.height&&(W=l.width,l.width=l.height,l.height=W)),z.length&&(v='<g transform="'+z.join(" ")+'">'+v+"</g>")});const S=s.width,x=s.height,T=l.width,A=l.height;let w,E;S===null?(E=x===null?"1em":x==="auto"?A:x,w=calculateSize$1(E,T/A)):(w=S==="auto"?T:S,E=x===null?calculateSize$1(w,A/T):x==="auto"?A:x);const D={},$=(N,z)=>{isUnsetKeyword$1(z)||(D[N]=z.toString())};return $("width",w),$("height",E),D.viewBox=l.left.toString()+" "+l.top.toString()+" "+T.toString()+" "+A.toString(),{attributes:D,body:v}}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(v=>{const S=typeof t=="function"?t(v):t+(counter$1++).toString(),x=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+x+')([")]|\\.[a-z])',"g"),"$1"+S+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",v={},S=t.style,x=typeof S=="object"&&!(S instanceof Array)?S:{};for(let z in t){const F=t[z];if(F!==void 0)switch(z){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[z]=F===!0||F==="true"||F===1;break;case"flip":typeof F=="string"&&flipFromString$1(o,F);break;case"color":v.color=F;break;case"rotate":typeof F=="string"?o[z]=rotateFromString$1(F):typeof F=="number"&&(o[z]=F);break;case"ariaHidden":case"aria-hidden":F!==!0&&F!=="true"&&delete s["aria-hidden"];break;default:{const B=customisationAliases$1[z];B?(F===!0||F==="true"||F===1)&&(o[B]=!0):defaultExtendedIconCustomisations$1[z]===void 0&&(s[z]=F)}}}const T=iconToSVG$1(r,o),A=T.attributes;if(o.inline&&(v.verticalAlign="-0.125em"),l==="svg"){s.style={...v,...x},Object.assign(s,A);let z=0,F=t.id;return typeof F=="string"&&(F=F.replace(/-/g,"_")),s.innerHTML=replaceIDs$1(T.body,F?()=>F+"ID"+z++:"iconifyVue"),Vue.h("svg",s)}const{body:w,width:E,height:D}=r,$=l==="mask"||(l==="bg"?!1:w.indexOf("currentColor")!==-1),N=iconToHTML$1(w,{...A,width:E+"",height:D+""});return s.style={...v,"--svg":svgToURL$1(N),width:fixSize$1(A.width),height:fixSize$1(A.height),...commonProps$1,...$?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(),A={provider:l.length>0?l[0]:s,prefix:T,name:x};return t&&!validateIconName(A)?null:A}const v=l[0],S=v.split("-");if(S.length>1){const x={provider:s,prefix:S.shift(),name:S.join("-")};return t&&!validateIconName(x)?null:x}if(o&&s===""){const x={provider:s,prefix:"",name:v};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 v(S){if(o[S])return l[S]=[];if(!(S in l)){l[S]=null;const x=s[S]&&s[S].parent,T=x&&v(x);T&&(l[S]=[x].concat(T))}return l[S]}return(t||Object.keys(o).concat(Object.keys(s))).forEach(v),l}function internalGetIconData(r,t,o){const s=r.icons,l=r.aliases||Object.create(null);let v={};function S(x){v=mergeIconData(s[x]||l[x],v)}return S(t),o.forEach(S),mergeIconData(r,v)}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 v=s[l];v&&(t(l,internalGetIconData(r,l,v)),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 v=o[l];if(!l.match(matchIconName)||typeof v.body!="string"||!checkOptionalProps(v,defaultExtendedIconProps))return null}const s=t.aliases||Object.create(null);for(const l in s){const v=s[l],S=v.parent;if(!l.match(matchIconName)||typeof S!="string"||!o[S]&&!s[S]||!checkOptionalProps(v,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,(v,S)=>{S&&addIcon(v,S)&&(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 v=s.shift(),S=unitsTest.test(v);for(;;){if(S){const x=parseFloat(v);isNaN(x)?l.push(v):l.push(Math.ceil(x*t*o)/o)}else l.push(v);if(v=s.shift(),v===void 0)return l.join("");S=!S}}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 v=o.body;[o,s].forEach(N=>{const z=[],F=N.hFlip,B=N.vFlip;let G=N.rotate;F?B?G+=2:(z.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),z.push("scale(-1 1)"),l.top=l.left=0):B&&(z.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),z.push("scale(1 -1)"),l.top=l.left=0);let W;switch(G<0&&(G-=Math.floor(G/4)*4),G=G%4,G){case 1:W=l.height/2+l.top,z.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:z.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:W=l.width/2+l.left,z.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}G%2===1&&(l.left!==l.top&&(W=l.left,l.left=l.top,l.top=W),l.width!==l.height&&(W=l.width,l.width=l.height,l.height=W)),z.length&&(v='<g transform="'+z.join(" ")+'">'+v+"</g>")});const S=s.width,x=s.height,T=l.width,A=l.height;let w,E;S===null?(E=x===null?"1em":x==="auto"?A:x,w=calculateSize(E,T/A)):(w=S==="auto"?T:S,E=x===null?calculateSize(w,A/T):x==="auto"?A:x);const D={},$=(N,z)=>{isUnsetKeyword(z)||(D[N]=z.toString())};return $("width",w),$("height",E),D.viewBox=l.left.toString()+" "+l.top.toString()+" "+T.toString()+" "+A.toString(),{attributes:D,body:v}}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(v=>{const S=typeof t=="function"?t(v):t+(counter++).toString(),x=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+x+')([")]|\\.[a-z])',"g"),"$1"+S+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(S=>{l=Math.max(l,S.length)});const v=t+".json?icons=";s=o.maxURL-l-o.path.length-v.length}return s}function shouldAbort(r){return r===404}const prepare=(r,t,o)=>{const s=[],l=calculateMaxLength(r,t),v="icons";let S={type:v,provider:r,prefix:t,icons:[]},x=0;return o.forEach((T,A)=>{x+=T.length+1,x>=l&&A>0&&(s.push(S),S={type:v,provider:r,prefix:t,icons:[]},x=T.length),S.icons.push(T)}),s.push(S),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 v=t.prefix,x=t.icons.join(","),T=new URLSearchParams({icons:x});s+=v+".json?"+T.toString();break}case"custom":{const v=t.uri;s+=v.slice(0,1)==="/"?v.slice(1):v;break}default:o("abort",400);return}let l=503;fetchModule(r+s).then(v=>{const S=v.status;if(S!==200){setTimeout(()=>{o(shouldAbort(S)?"abort":"next",S)});return}return l=501,v.json()}).then(v=>{if(typeof v!="object"||v===null){setTimeout(()=>{v===404?o("abort",v):o("next",l)});return}setTimeout(()=>{o("success",v)})}).catch(()=>{o("next",l)})},fetchAPIModule={prepare,send};function sortIcons(r){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);r.sort((l,v)=>l.provider!==v.provider?l.provider.localeCompare(v.provider):l.prefix!==v.prefix?l.prefix.localeCompare(v.prefix):l.name.localeCompare(v.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 v=l.provider,S=l.prefix,x=l.name,T=o[v]||(o[v]=Object.create(null)),A=T[S]||(T[S]=getStorage(v,S));let w;x in A.icons?w=t.loaded:S===""||A.missing.has(x)?w=t.missing:w=t.pending;const E={provider:v,prefix:S,name:x};w.push(E)}),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(v=>{const S=v.icons,x=S.pending.length;S.pending=S.pending.filter(T=>{if(T.prefix!==l)return!0;const A=T.name;if(r.icons[A])S.loaded.push({provider:s,prefix:l,name:A});else if(r.missing.has(A))S.missing.push({provider:s,prefix:l,name:A});else return o=!0,!0;return!1}),S.pending.length!==x&&(o||removeCallback([r],v.id),v.callback(S.loaded.slice(0),S.missing.slice(0),S.pending.slice(0),v.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 v={id:s,icons:t,callback:r,abort:l};return o.forEach(S=>{(S.loaderCallbacks||(S.loaderCallbacks=[])).push(v)}),l}function listToIcons(r,t=!0,o=!1){const s=[];return r.forEach(l=>{const v=typeof l=="string"?stringToIcon(l,t,o):l;v&&s.push(v)}),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,v=r.random?Math.floor(Math.random()*l):r.index;let S;if(r.random){let Q=r.resources.slice(0);for(S=[];Q.length>1;){const te=Math.floor(Math.random()*Q.length);S.push(Q[te]),Q=Q.slice(0,te).concat(Q.slice(te+1))}S=S.concat(Q)}else S=r.resources.slice(v).concat(r.resources.slice(0,v));const x=Date.now();let T="pending",A=0,w,E=null,D=[],$=[];typeof s=="function"&&$.push(s);function N(){E&&(clearTimeout(E),E=null)}function z(){T==="pending"&&(T="aborted"),N(),D.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),D=[]}function F(Q,te){te&&($=[]),typeof Q=="function"&&$.push(Q)}function B(){return{startTime:x,payload:t,status:T,queriesSent:A,queriesPending:D.length,subscribe:F,abort:z}}function G(){T="failed",$.forEach(Q=>{Q(void 0,w)})}function W(){D.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),D=[]}function X(Q,te,ie){const le=te!=="success";switch(D=D.filter(pe=>pe!==Q),T){case"pending":break;case"failed":if(le||!r.dataAfterTimeout)return;break;default:return}if(te==="abort"){w=ie,G();return}if(le){w=ie,D.length||(S.length?ee():G());return}if(N(),W(),!r.random){const pe=r.resources.indexOf(Q.resource);pe!==-1&&pe!==r.index&&(r.index=pe)}T="completed",$.forEach(pe=>{pe(ie)})}function ee(){if(T!=="pending")return;N();const Q=S.shift();if(Q===void 0){if(D.length){E=setTimeout(()=>{N(),T==="pending"&&(W(),G())},r.timeout);return}G();return}const te={status:"pending",resource:Q,callback:(ie,le)=>{X(te,ie,le)}};D.push(te),A++,E=setTimeout(ee,r.rotate),o(Q,t,te.callback)}return setTimeout(ee),B}function initRedundancy(r){const t={...defaultConfig,...r};let o=[];function s(){o=o.filter(x=>x().status==="pending")}function l(x,T,A){const w=sendQuery(t,x,T,(E,D)=>{s(),A&&A(E,D)});return o.push(w),w}function v(x){return o.find(T=>x(T))||null}return{query:l,find:v,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 v=getAPIModule(r);if(!v)return o(void 0,424),emptyCallback$1;l=v.send;const S=getRedundancyCache(r);S&&(s=S.redundancy)}else{const v=createAPIConfig(r);if(v){s=initRedundancy(v);const S=r.resources?r.resources[0]:"",x=getAPIModule(S);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,v=x=>{const T=browserCachePrefix+x.toString(),A=getStoredItem(o,T);if(typeof A=="string"){try{const w=JSON.parse(A);if(typeof w=="object"&&typeof w.cached=="number"&&w.cached>l&&typeof w.provider=="string"&&typeof w.data=="object"&&typeof w.data.prefix=="string"&&t(w,x))return!0}catch{}removeStoredItem(o,T)}};let S=getBrowserStorageItemsCount(o);for(let x=S-1;x>=0;x--)v(x)||(x===S-1?(S--,setBrowserStorageItemsCount(o,S)):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,v=getStorage(s,l);if(!addIconSet(v,o).length)return!1;const S=o.lastModified||-1;return v.lastModifiedCached=v.lastModifiedCached?Math.min(v.lastModifiedCached,S):S,!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 v=l.data;return l.provider!==r.provider||v.prefix!==r.prefix||v.lastModified===t});return!0}function storeInBrowserStorage(r,t){browserStorageStatus||initBrowserStorage();function o(s){let l;if(!browserStorageConfig[s]||!(l=getBrowserStorage(s)))return;const v=browserStorageEmptyItems[s];let S;if(v.size)v.delete(S=Array.from(v).shift());else if(S=getBrowserStorageItemsCount(l),!setBrowserStorageItemsCount(l,S+1))return;const x={cached:Math.floor(Date.now()/browserStorageHour),provider:r.provider,data:t};return setStoredItem(l,browserCachePrefix+S.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 v;if(!l||!(v=getAPIModule(o)))return;v.prepare(o,s,l).forEach(x=>{sendAPIQuery(o,x,T=>{if(typeof T!="object")x.icons.forEach(A=>{r.missing.add(A)});else try{const A=addIconSet(r,T);if(!A.length)return;const w=r.pendingIcons;w&&A.forEach(E=>{w.delete(E)}),storeInBrowserStorage(r,T)}catch(A){console.error(A)}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),v=[];let S,x;return s.pending.forEach(T=>{const{provider:A,prefix:w}=T;if(w===x&&A===S)return;S=A,x=w,v.push(getStorage(A,w));const E=l[A]||(l[A]=Object.create(null));E[w]||(E[w]=[])}),s.pending.forEach(T=>{const{provider:A,prefix:w,name:E}=T,D=getStorage(A,w),$=D.pendingIcons||(D.pendingIcons=new Set);$.has(E)||($.add(E),l[A][w].push(E))}),v.forEach(T=>{const{provider:A,prefix:w}=T;l[A][w].length&&loadNewIcons(T,l[A][w])}),t?storeCallback(t,s,v):emptyCallback};function mergeCustomisations(r,t){const o={...r};for(const s in t){const l=t[s],v=typeof l;s in defaultIconSizeCustomisations?(l===null||l&&(v==="string"||v==="number"))&&(o[s]=l):v===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 v=parseFloat(r.slice(0,r.length-o.length));return isNaN(v)?0:(v=v/l,v%1===0?s(v):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",v={},S=t.style,x=typeof S=="object"&&!(S instanceof Array)?S:{};for(let z in t){const F=t[z];if(F!==void 0)switch(z){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[z]=F===!0||F==="true"||F===1;break;case"flip":typeof F=="string"&&flipFromString(o,F);break;case"color":v.color=F;break;case"rotate":typeof F=="string"?o[z]=rotateFromString(F):typeof F=="number"&&(o[z]=F);break;case"ariaHidden":case"aria-hidden":F!==!0&&F!=="true"&&delete s["aria-hidden"];break;default:{const B=customisationAliases[z];B?(F===!0||F==="true"||F===1)&&(o[B]=!0):defaultExtendedIconCustomisations[z]===void 0&&(s[z]=F)}}}const T=iconToSVG(r,o),A=T.attributes;if(o.inline&&(v.verticalAlign="-0.125em"),l==="svg"){s.style={...v,...x},Object.assign(s,A);let z=0,F=t.id;return typeof F=="string"&&(F=F.replace(/-/g,"_")),s.innerHTML=replaceIDs(T.body,F?()=>F+"ID"+z++:"iconifyVue"),Vue.h("svg",s)}const{body:w,width:E,height:D}=r,$=l==="mask"||(l==="bg"?!1:w.indexOf("currentColor")!==-1),N=iconToHTML(w,{...A,width:E+"",height:D+""});return s.style={...v,"--svg":svgToURL(N),width:fixSize(A.width),height:fixSize(A.height),...commonProps,...$?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证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"}]}})},{url:"/releases",method:"get",response:()=>({success:!0,data:{list:[{created_at:"2023-05-15T07:03:57Z",published_at:"2023-05-15T07:04:54Z",body:"# 4.2.0 (2023-05-15)\r\n\r\n### 🎫 Feat\r\n\r\n- 新增分段控制器组件并适配暗黑模式\r\n- 静态路由支持配置数组格式\r\n- 函数式弹框组件添加全屏、退出全屏操作按钮\r\n- 新增组件-瀑布流 `demo`\r\n- 添加 `Exclusive` 类型互斥语法糖\r\n\r\n### 🍏 Perf\r\n\r\n- 规范 `template` 模版中路由写法,不再使用 `$route` 和 `$router`,此写法 `vue-tsc` 编译不通过"},{created_at:"2023-05-11T17:45:43Z",published_at:"2023-05-11T17:47:10Z",body:"# 4.1.0 (2023-05-12)\r\n\r\n### 🎫 Feat\r\n\r\n- 函数式弹框组件添加结合 `Form` 的 `demo` 示例\r\n- 封装 `element-plus` 的 `el-col` 组件\r\n- 函数式弹框组件添加 `beforeCancel` 和 `beforeSure` 回调,可暂停弹框的关闭\r\n- 完善 `系统管理-部门管理` 页面\r\n- 优化 `PureTableBar` 组件,列展示添加拖拽功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复开启 `keepAlive` 后点击标签页的重新加载,页面缓存还存在的问题\r\n- 修复混合模式菜单下刷新页签后左侧菜单会闪烁一下的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化首页布局\r\n- 依赖更新到 `vue3.3+` 以及删除 `unplugin-vue-define-options` 插件"},{created_at:"2023-05-09T08:11:28Z",published_at:"2023-05-09T08:14:55Z",body:'# 4.0.0 (2023-05-09)\r\n\r\n[查看 4.0.0 版本优化细节](https://github.com/pure-admin/vue-pure-admin/issues/428#issuecomment-1422191158)\r\n\r\n### ✔️ refactor\r\n\r\n- 采用 `css` 伪类 `before` 写法重构菜单的激活背景,类似于 [ant.design-menu](https://ant.design/components/menu-cn#components-menu-demo-inline-collapsed)\r\n\r\n### 🎫 Feat\r\n\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 可配置首页菜单显示与隐藏\r\n- 将本地响应式存储的命名空间提升到全局配置中\r\n- 新增函数式弹框组件以及 `demo` 示例,使用更便捷\r\n- `PureTableBar` 组件添加列展示功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复当菜单折叠或展开时首页 `echarts` 图表未自适应容器\r\n- 修复当只有一个子菜单时,搜索功能搜索不到该子菜单问题\r\n- 修复全局配置 `Theme` 为 `light` 清空缓存重新登录主题配置不生效的问题\r\n- 修复菜单搜索功能弹框打开后搜索框未自动聚集的问题\r\n- 修复按 `ESC` 退出全屏后,工具栏按钮文案展示问题\r\n- 修复移动端通知栏 `tooltip` 点击穿透问题\r\n- 修复当左侧菜单收起后,切换到 `horizontal` 导航模式时文字不展示的问题\r\n- 修复导航 `tab` 关闭其他标签页无法重置状态问题\r\n- 修复 `getHistoryMode` 函数中环境变量未初始化带来的页面热更新报错\r\n- 修复导航 `tab` 过多导致关闭左侧标签页无法正常显示\r\n- 修复点击内容区全屏报错问题\r\n- 修复混合导航下打开 `showLink:false` 页面并刷新后,左侧导航栏一直处于加载状态的问题\r\n- 修复混合模式导航下调用 `initRouter` 函数导致左侧导航内存溢出问题\r\n- 修复关闭左侧、右侧、其他、全部标签页操作时缓存页面并没有销毁问题\r\n- 修复路由通过 `query` 或 `params` 传参,开启缓存后关闭标签页缓存失效问题\r\n- 修复 `params` 路由传参模式下,面包屑无法找到父级路径问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `RePureTableBar` 组件的 `buttons` 具名插槽\r\n- 优化导航样式以及菜单折叠动画\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 优化 `logo` 图和文字布局以及统一配置\r\n- 路由信息 `showLink` 设置成 `false` 后,当前路由信息不添加到标签页\r\n- 导出 `addPathMatch` 函数\r\n- `pinia` 中所有 `getters` 改为官方推荐写法,`this` 改成 `state` 可自动推导类型\r\n- 适配最新版 `pure-table` 的 `api`\r\n- 忽略 `sourcemap-codec` 和 `stable` 依赖包的 `deprecation` 警告\r\n- 从 `tsconfig.json` 文件中移除 `"incremental": true`\r\n- 更新 `stylelint` 以及相关配置至最新,强化样式校验\r\n- 面包屑去首页化,根据选择的菜单对应显示,首页不在固定到面包屑里,并优化面包屑页面的路由监听'},{created_at:"2022-12-26T06:31:04Z",published_at:"2022-12-26T06:32:38Z",body:"# 3.9.7 (2022-12-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 使用 `path.posix.resolve` 替代 `path.resolve` 避免 `windows` 环境下使用 `electron` 出现盘符问题\r\n- 默认关闭 `CachingAsyncRoutes` 动态路由缓存本地,使其在开发环境下调试更方便,不用每次修改动态路由都要先清空本地缓存的动态路由,更推荐在生产环境开启"},{created_at:"2022-12-19T04:14:18Z",published_at:"2022-12-19T04:15:41Z",body:`# 3.9.6 (2022-12-19)\r
\r
### 🎫 Chores\r
\r
- 升级 \`vite4\` 版本\r
\r
### 🐞 Bug fixes\r
\r
- 修复 \`tailwind.css\` 错误的引入方式导致 \`vite\` 的 \`hmr\` 慢的问题\r
\r
### 🍏 Perf\r
\r
- 更新 [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) 至最新版,带来更友好的类型提示\r
- 优化 [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) 组件\r
- 优化系统管理页面业务代码,带来更好的代码参考`},{created_at:"2022-12-13T06:19:31Z",published_at:"2022-12-13T06:20:30Z",body:`# 3.9.5 (2022-12-13)\r
\r
### ✔️ refactor\r
\r
- 完全移除了 \`lodash\` 和其相关库\r
[点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-5-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-lodash-%E5%92%8C%E5%85%B6%E7%9B%B8%E5%85%B3%E5%BA%93-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 表格动态列示例\r
\r
### 🐞 Bug fixes\r
\r
- 修复动态路由 \`rank\` 问题\r
- 修复暗黑主题样式问题\r
\r
### 🍏 Perf\r
\r
- 优化路由 \`rank\` ,当 \`rank\` 不存在时,根据顺序自动创建,首页路由永远在第一位`},{created_at:"2022-12-05T05:59:54Z",published_at:"2022-12-05T06:04:01Z",body:`# 3.9.4 (2022-12-05)\r
\r
### ✔️ refactor\r
\r
- 完全移除了 \`vxe-table\`,移除后,完整版整体打包大小减少 \`1.82MB\`,首启动时长基本和精简版持平 🐮\r
[点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-4-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-vxe-table-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 表格选择器(单选、多选)示例`},{created_at:"2022-12-04T08:45:47Z",published_at:"2022-12-04T08:46:59Z",body:`# 3.9.3 (2022-12-04)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 分页和加载动画示例\r
\r
### 🐞 Bug fixes\r
\r
- 修复开启 \`CachingAsyncRoutes\` 后,存入本地存储的动态路由改变造成刷新页面空白的问题\r
- 修复菜单折叠后 \`Tooltip\` 显示异常\r
\r
### 🍏 Perf\r
\r
- 扩展本地图标使用方式,完整版首启动再次减少 \`13\` 个请求\r
- 当菜单加载慢时,添加 \`loading\` 动画,优化用户体验\r
- 主题初始化放在 \`onBeforeMount\` 里,避免初始化页面闪烁`},{created_at:"2022-12-03T07:02:17Z",published_at:"2022-12-03T07:03:09Z",body:"# 3.9.2 (2022-12-03)\r\n\r\n### 🍏 Perf\r\n\r\n- 全局覆盖 `element-plus` 的 `el-dialog`、`el-drawer`、`el-message-box`、`el-notification` 组件右上角关闭图标的样式,使其表现更鲜明 [具体代码修改记录](https://github.com/xiaoxian521/vue-pure-admin/commit/c80818d792276666aaea4b18413a0f08777f2ed1)\r\n- 打包输出信息兼容不同打包输出路径\r\n- 优化一些动画"},{created_at:"2022-12-02T11:32:48Z",published_at:"2022-12-02T11:33:45Z",body:"# 3.9.1 (2022-12-02)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `CachingAsyncRoutes` 是否开启动态路由缓存本地的全局配置,默认 `true`\r\n- 添加 `TooltipEffect` 全局配置,可配置平台主体所有 `el-tooltip` 的 `effect` 属性,默认 `light`,不影响业务代码\r\n- 添加目录、菜单文字超出显示 `Tooltip` 文字提示演示\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `initRouter` 方法,兼容 `sso` 场景\r\n- 面包屑动画样式优化"},{created_at:"2022-11-30T06:11:08Z",published_at:"2022-11-30T06:12:32Z",body:`# 3.9.0 (2022-11-30)\r
\r
### 🐞 Bug fixes\r
\r
- 修复退出全屏时文字过长导致页面出现滚动条后带来的抖动问题\r
- 修复一些类型错误\r
\r
### 🍏 Perf\r
\r
- perf: 首屏加载大优化,对比 \`3.9.0\` 之前版本,首屏请求减少 \`71\` 个,首屏加载资源减少 \`4.1 MB\``},{created_at:"2022-11-27T17:25:43Z",published_at:"2022-11-27T17:27:59Z",body:"# 3.8.7 (2022-11-28)\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 打包大优化,请务必升级!使用 `unplugin-vue-define-options` 替换 `unplugin-vue-macros` ,打包速度提升数倍,使用 `unplugin-vue-macros` 以性能中等偏上的 `mac` 为例完整版打包时长为 `6` 分钟 😭,使用 `unplugin-vue-define-options` 替换后,相同电脑下打包时长为 `50` 秒 ☺️"},{created_at:"2022-11-27T08:34:46Z",published_at:"2022-11-27T08:35:49Z",body:"# 3.8.6 (2022-11-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `message` 消息提示函数,兼容 `Element Plus` 和 `Ant Design` 两种 `Message` 样式风格,使用和打包大小成本极低并适配暗黑模式,真香 😂\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 无需安装 `@vue/runtime-core` ,兼容所有 `element-plus` 组件的 `volar` 提示"},{created_at:"2022-11-26T16:03:19Z",published_at:"2022-11-26T16:04:41Z",body:"# 3.8.5 (2022-11-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 大优化,移除 `@pureadmin/components` 并采用兼容写法,平台打包大小在未启用压缩前对比优化前减少 `0.4` MB , 首屏请求减少 `2.3` MB 的资源,这对于 [精简版](https://github.com/xiaoxian521/pure-admin-thin) 来说是非常大的优化,精简版已经同步代码"},{created_at:"2022-11-26T07:07:07Z",published_at:"2022-11-26T07:08:11Z",body:"# 3.8.0 (2022-11-26)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `@pureadmin/table` 多种数据格式(深层结构)示例\r\n- 添加 `@pureadmin/table` 图像预览示例\r\n- 添加 `@pureadmin/table` 行、列拖拽示例\r\n- 添加 `@pureadmin/table` 右键菜单示例\r\n- 添加 `@pureadmin/table` 导出 `Excel` 示例\r\n- 添加 `@pureadmin/table` 编辑单元格示例\r\n- 添加 `@pureadmin/table` 水印示例\r\n- 添加 `@pureadmin/table` 打印示例\r\n- 添加 `@pureadmin/table` 内嵌 `echarts` 图表示例\r\n- 添加 `svgo` 压缩平台所有 `svg` 文件,减少体积\r\n\r\n### 🍏 Perf\r\n\r\n- 静态路由平台自动导入,无需手动引入\r\n- 更完善的全局类型提示\r\n- 优化 `vite` 依赖预构建在平台里的配置,页面切换加载速度显著加快"},{created_at:"2022-11-21T17:00:04Z",published_at:"2022-11-21T17:00:42Z",body:`# 3.7.1 (2022-11-22)\r
\r
### 🔥 hotfix\r
\r
- 修复在未开启标签页缓存时退出登录,可能存在标签页未重置的问题`},{created_at:"2022-11-21T09:14:22Z",published_at:"2022-11-21T09:15:24Z",body:"# 3.7.0 (2022-11-21)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `intro.js` 替换 `driver.js`\r\n\r\n### 🎫 Feat\r\n\r\n- 添加前端单点登录,测试地址 https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin\r\n- 为 [@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table) 添加更多的示例和 `element-plus` 的 [table](https://element-plus.org/zh-CN/component/table.html) 示例保持一致\r\n- 丰富水印功能页面(支持自定义各种颜色、阴影、文字、额外属性、设置不可删除水印以及给指定元素设置水印)\r\n- 优化菜单,添加 `MenuArrowIconNoTransition` 全局配置,在 `public/serverConfig.json` 中配置即可,对于出现左侧菜单模式,菜单展开卡顿的可设置 `MenuArrowIconNoTransition: true` 即可解决\r\n- 更换表单设计器组件演示\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复页内菜单带参互相跳转,标签没有选中高亮\r\n\r\n### 🍏 Perf\r\n\r\n- 删除已废弃的 `$baseUrl`\r\n- 兼容引入某个库导致 `global is not defined` 报错,将 `src/utils/globalPolyfills.ts` 文件引入 `src/main.ts` 即可解决\r\n- 删除 `@vitejs/plugin-legacy``vue3` 无法通过任何工具使其支持 `ie`"},{created_at:"2022-11-10T04:17:05Z",published_at:"2022-11-10T04:18:18Z",body:`# 3.6.4 (2022-11-10)\r
\r
### 🎫 Feat\r
\r
- 菜单图标 \`icon\` 支持使用在线图标\r
\r
### 🐞 Bug fixes\r
\r
- 修复 \`vxe-button\` 鼠标覆盖后字体颜色问题以及一些别的样式问题\r
\r
### 🍏 Perf\r
\r
- 优化路由守卫,如果已经登录并存在登录信息后不能跳转到路由白名单,而是继续保持在当前页面\r
- 将 \`baseURL\` 和全局环境代理删除,可直接在 \`vite.config.ts\` 编写,即方便又支持多个代理地址`},{created_at:"2022-11-01T08:18:12Z",published_at:"2022-11-01T08:19:22Z",body:"# 3.6.3 (2022-11-01)\r\n\r\n### 🎫 Feat\r\n\r\n- 静态资源分类打包\r\n- 添加弹幕组件 `demo`\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `tailwindcss` 最新版新增的 `collapse` 属性与平台 `class` 类名冲突\r\n- 修复当 `token` 过期后,如果页面有多个请求会重复刷新 `token`"},{created_at:"2022-10-27T04:58:44Z",published_at:"2022-10-27T04:59:32Z",body:"# 3.6.2 (2022-10-27)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用`@/`别名替换`/@/`别名"},{created_at:"2022-10-26T18:42:33Z",published_at:"2022-10-26T18:43:31Z",body:"# 3.6.1 (2022-10-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加打包是否启动`cdn`替换本地库配置,默认`false`不启动\r\n- 添加打包构建可选`gzip`与`brotli`压缩模式\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复`title`过长显示样式问题\r\n- 修复路由中父级`name`不应和子级`name`重复,会造成重定向跳转`404`问题\r\n\r\n### 🍏 Perf\r\n\r\n- 升级`axios`至最新版"},{created_at:"2022-10-25T05:07:18Z",published_at:"2022-10-25T05:08:18Z",body:"# 3.6.0 (2022-10-25)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加文件下载`demo`\r\n- 添加打字机组件`demo`\r\n- 添加`json`编辑器`demo`\r\n\r\n### ✔️ refactor\r\n\r\n- 重构权限模块,采用目前最常用的`RBAC`Role-Based Access List: 基于角色的权限控制( 用户 -> 角色 -> 权限 ),并更新页面权限和按钮权限`demo`示例,按钮权限支持三种操作模式(组件方式判断权限、函数方式判断权限、指令方式判断权限)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复清空缓存并返回登录页时未清空主题\r\n- 修复`horizontal`模式下`menu`在生产环境显示问题\r\n- 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题\r\n- `token`过期后调用刷新`token`接口会无限循环的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 从`tailwind.css`中移除不常用的`@apply`\r\n- 使用`/** */`替换`//`注释,对编辑器的智能提示更友好\r\n- 优化登录回车事件\r\n- 简化了一些函数,剔除了无用函数,优化了页面加载速度"},{created_at:"2022-09-10T13:44:17Z",published_at:"2022-09-10T13:46:11Z",body:"# 3.5.0 (2022-9-10)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `cssnano` ,打包时压缩 `css` 体积\r\n- 添加 `element-plus` 无缝滚动 `Table` 页面 demo\r\n- 开启 `vscode` 括号对指南\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `tailwindcss` 替换 `unocss`,新增 `tailwindcss` [使用文档](http://yiming_chang.gitee.io/pure-admin-doc/pages/39156f/)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `token` 过期,刷新死循环\r\n\r\n### 🍏 Perf\r\n\r\n- 重置路由时,清空缓存页面"},{created_at:"2022-08-23T02:31:44Z",published_at:"2022-08-23T02:32:49Z",body:"# 3.4.6 (2022-8-23)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `process` is not defined in path\r\n- 修复动态路由`children`为空数组时报错\r\n- 修复`iframe`加载失败"},{created_at:"2022-08-22T12:21:53Z",published_at:"2022-08-22T12:23:21Z",body:`# 3.4.5 (2022-8-22)\r
\r
### 🐞 Bug fixes\r
\r
- 修复本地响应式存储对象设置问题`},{created_at:"2022-08-22T09:21:18Z",published_at:"2022-08-22T09:22:26Z",body:"# 3.4.0 (2022-8-22)\r\n\r\n### 🍏 Perf\r\n\r\n- 优化路由\r\n- 优化移动端兼容性\r\n- 优化路由传参(`query`、`params` 方式刷新页面不需要再开启标签页缓存也能保留参数在`url`和`标签页`上)"},{created_at:"2022-08-19T07:29:06Z",published_at:"2022-08-19T07:31:08Z",body:`# 3.3.5 (2022-8-19)\r
\r
### 🎫 Feat\r
\r
- 将 \`element-plus\` 的 \`Table\` 二次封装到[@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table),提供灵活的配置项并集成到平台里\r
- 将 \`element-plus\` 的 \`Descriptions\` 二次封装到[@pureadmin/descriptions](https://github.com/xiaoxian521/pure-admin-descriptions),提供灵活的配置项并集成到平台里\r
- 将平台的大部分工具以及 hooks 都集中到[@pureadmin/utils](https://pure-admin-utils-docs.vercel.app/),并删除集中到这个库里的代码,减少平台体积\r
- 添加[unplugin-vue-define-options](https://www.npmjs.com/package/unplugin-vue-define-options)插件,页面可直接写 \`defineOptions({name: 自定义名称})\`\r
- 添加项目文件、语言分析工具 [cloc](https://www.npmjs.com/package/cloc)\r
- 添加登陆页国际化\r
- 添加完整路由配置表类型声明\r
- 添加虚拟列表页面 demo\r
- 添加 \`PDF\` 预览页面 demo\r
- 添加导出 \`execl\` 页面 demo\r
- 添加无 \`Layout\` 的空白页面 demo\r
\r
### ✔️ refactor\r
\r
- 重构主题色,适配 \`element-plus\` 暗黑模式(同时也解决了 \`3.3.0\` 及更低版本中同样的元素 \`css\` 被多次覆盖,导致样式不好调试的问题)\r
- 重构路由重置功能\r
\r
### 🍏 Perf\r
\r
- 兼容项目存放目录以中文命名,但我们真心不推荐中文命名,因为可能某个库没有对中文路径做转义处理,导致项目奔溃\r
- 优化接口类型\r
\r
### 🐞 Bug fixes\r
\r
- 修复路由 \`showlink\` 为 \`false\` 的异步路由,刷新后不显示\r
- 修复当没有 \`icon\` 时,垂直导航菜单折叠后文字被隐藏`},{created_at:"2022-05-11T07:51:38Z",published_at:"2022-05-11T07:52:31Z",body:`# 3.3.0 (2022-5-11)\r
\r
### 🎫 Feat\r
\r
- 添加用户管理页面 demo\r
- 添加角色管理页面 demo\r
- 添加部门管理页面 demo\r
- 添加卡片列表页面 demo\r
- 集成表单设计器\r
- 新增\`PPT\`demo\r
- 在功能菜单中新增防抖截流 demo\r
- 升级\`wangeditorV5\`(并支持国际化和自定义主题)\r
- 集成\`tauri\`版本\r
- 新增条形码功能\r
- 新增二维码功能\r
- 使用\`element-plus\`中的\`Cascader\`级联选择器编写中国省市区三级、二级联动 demo\r
- 集成\`Swiper\`插件\r
- 路由支持传\`component\`,代表组件路径\r
- 添加预发布打包模式\r
- 添加关闭某个标签的[hooks](https://github.com/xiaoxian521/vue-pure-admin/commit/5e8723a031923e79f507e5a17151d3bd88a51523)\r
\r
### ✔️ refactor\r
\r
- 重构登陆页,更偏向实际业务场景\r
- 使用\`unocss\`替换\`windicss\`\`unocss\`开发环境下性能更好,没有内存泄露,而且\`api\`使用上兼容\`windicss\`\r
\r
### 🍏 Perf\r
\r
- 优化平台的\`split-pane\`组件样式\r
- 优化国际化,路由不再传\`i18n\`字段,平台自动读取根目录\`locales\`文件夹下文件进行国际化匹配\r
- 优化图标选择器\r
- 优化\`layout\`显示用户信息[commit](https://github.com/xiaoxian521/vue-pure-admin/commit/56f9dc85e7fbe0637605c43577c794de9f8968aa)\r
\r
### 🐞 Bug fixes\r
\r
- 修复路由初始化问题Cannot access 'constantRoutes' before initialization`},{created_at:"2022-03-21T16:25:55Z",published_at:"2022-03-21T16:27:00Z",body:`# 3.2.0 (2022-3-22)\r
\r
### 🎫 Feat\r
\r
- 图标选择组件\r
- 菜单搜索功能\r
- 添加结果页面\r
- 扩展\`element-plus\`时间线组件\r
- 扩展\`element-plus\`树组件,支持连接线\r
- 添加树形选择器,支持单选和多选\r
\r
### 🍏 Perf\r
\r
- 优化错误页面 UI\r
- 优化国际化功能\r
- 优化路由\`rank\`排序,兼容路由\`meta\`中\`rank\`字段值为\`null\`的情况\r
\r
### 🐞 Bug fixes\r
\r
- 修复菜单展开折叠在部分电脑出现卡顿的情况`},{created_at:"2022-03-03T14:57:11Z",published_at:"2022-03-03T14:57:55Z",body:`# 3.1.0 (2022-3-3)\r
\r
### 🎫 Feat\r
\r
- iframe 支持动态加载\r
- 水印示例\r
- 打印示例图片、表格、echarts\r
- 添加运行、打包信息, 使用\`lodash-unified\`替换\`lodash-es\`,\`lodash-unified\`支持\`ESM\`同时兼容\`CJS\`\r
\r
### 🐞 Bug fixes\r
\r
- 修复在一个菜单页面内单独跳转到另一个菜单页面,路由页面跳转了但是标签页不显示的情况\r
- 修复后台返回动态三级及以上的路由,出现菜单与页面不对应的情况`},{created_at:"2022-02-14T15:19:32Z",published_at:"2022-02-14T15:20:32Z",body:`# 3.0 (2022-2-14)\r
\r
### 🎫 Feat\r
\r
- 添加混合导航\r
\r
### 🐞 Bug fixes\r
\r
- 修复标签页 bug`},{created_at:"2022-02-05T09:36:21Z",published_at:"2022-02-05T09:38:09Z",body:`# 2.9.0(2022-2-5)\r
\r
### 🎫 Feat\r
\r
- 添加打包大小分析,命令\`pnpm report\`\r
\r
### 🍏 Perf\r
\r
- 采用\`iconify\`按需引入图标,优化图标大小,减少网络请求\r
- 优化路由,路由可不传\`showLink: true\`,默认显示`},{created_at:"2022-01-21T08:46:48Z",published_at:"2022-01-21T08:49:38Z",body:`# 2.8.5(2022-1-21)\r
\r
### 🎫 Feat\r
\r
- 添加 \`WindiCSS\` 支持\r
- 添加线上环境删 console 插件\`vite-plugin-remove-console\`\r
\r
### ✔️ refactor\r
\r
- 使用\`@iconify-icons/ep\`替换\`@element-plus/icons-vue\``},{created_at:"2022-01-04T11:52:05Z",published_at:"2022-01-04T11:53:17Z",body:`# 2.8.0(2022-1-4)\r
\r
### 🎫 Feat\r
\r
- 添加暗黑主题\r
- 添加 element-plus 自定义主题\r
- 添加引导页\r
\r
### 🍏 Perf\r
\r
- 优化国际化,兼容 vscode 插件 i18n Ally 智能提醒\r
- 优化后端返回路由结构\r
- 优化本地存储,内置四个键\`responsive-configure\`、\`responsive-locale\`、\`responsive-layout\`、\`responsive-tags\`,分别为基本配置、国际化配置、布局配置、标签页持久化配置`},{created_at:"2021-12-18T05:56:21Z",published_at:"2021-12-18T05:57:55Z",body:`# 2.7.0(2021-12-18)\r
\r
### 🎫 Feat\r
\r
- 新增标签页复用\r
- 新增消息提醒模版\r
- 新增前端菜单树结构例子\r
- 重构路由,优化权限模块,带来更方便的体验\r
- 重构 env 环境和 http 请求,带来更方便的体验\r
- 目前平台的标签页强制关联了本地存储,下一步标签页默认放到内存中并支持可配置持久化标签页\r
- 导航菜单图标支持 fontawesome、iconfont、remixicon、element-plus/icons、自定义 svg\r
- 更新 font-awesome 到 5.0 版本,因为 5.0 以下的版本官方不再维护,但平台依旧会兼容 font-awesome4 版本\r
\r
### 🍏 Perf\r
\r
- 优化标签页,带来更好的交互体验\r
- 路由 title 支持直接写中文,可脱离国际化\r
- 路由历史模式从 env 读取并支持 base 参数\r
- 打包后的文件提供传统浏览器兼容性支持,配置 VITE_LEGACY 为 true`},{created_at:"2021-11-10T05:30:48Z",published_at:"2021-11-10T05:33:37Z",body:`# 2.6.0(2021-11-10)\r
\r
### 🎫 Feat\r
\r
- 重构导航主题色,支持多种配色\r
- 重构登录页,插画风格\r
\r
### 🍏 Perf\r
\r
- 优化导航样式\r
- 剔除导航强依赖 vxe-table\r
- 同步更新 element-plus使用 SVG Icon 替换 Font Icon`},{created_at:"2021-10-14T09:50:03Z",published_at:"2021-10-14T09:52:01Z",body:`# 2.1.0(2021-10-14)\r
\r
### 🎫 Feat\r
\r
- 路由动画(每个路由都可添加不同动画)\r
- 额外图标(比如这个是新加的页面,路由菜单右上角显示个新图标)\r
- 抽离默认配置选项\r
- 完善类型文件\r
\r
### 🐞 Bug fixes\r
\r
- 修复 element-plus 国际化使用问题\r
- 修复路由问题\r
- 修复导航适配问题`},{created_at:"2021-09-28T18:32:30Z",published_at:"2021-09-28T18:35:41Z",body:`# 2.0.1(2021-9-29)\r
\r
### 🎫 Feat\r
\r
- 添加 horizontal 水平模式导航`},{created_at:"2021-04-13T10:53:29Z",published_at:"2021-04-13T10:57:50Z",body:`# 2.0.0(2021-4-13)\r
\r
### 🎫 Chores\r
\r
- 发布 2.0.0 版本`}]}})}],__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:"/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:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})},{url:"/role",method:"post",response:({body:r})=>{let t=[{createTime:1605456e6,updateTime:1684512e6,creator:"admin",id:1,name:"超级管理员",code:"admin",status:1,remark:"超级管理员拥有最高权限"},{createTime:1605456e6,updateTime:1684512e6,creator:"admin",id:2,name:"普通角色",code:"common",status:1,remark:"普通角色拥有部分权限"}];return t=t.filter(o=>o.name.includes(r==null?void 0:r.name)),t=t.filter(o=>String(o.status).includes(String(r==null?void 0:r.status))),r.code&&(t=t.filter(o=>o.code===r.code)),{success:!0,data:{list:t,total:t.length,pageSize:10,currentPage:1}}}},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})}],__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),v=o(5),S=o(20),x=o(23),T=o(25),A;typeof window<"u"&&(A=o(27));/*!
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var w={Handler:s,Random:v,Util:l,XHR:A,RE:S,toJSONSchema:x,valid:T,heredoc:l.heredoc,setup:function(E){return A.setup(E)},_mocked:{}};w.version="1.0.1-beta3",A&&(A.Mock=w),w.mock=function(E,D,$){return arguments.length===1?s.gen(E):(arguments.length===2&&($=D,D=void 0),A&&(window.XMLHttpRequest=A),w._mocked[E+(D||"")]={rurl:E,rtype:D,template:$},w)},r.exports=w},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),v;return Handler[l]?(v=Handler[l]({type:l,template:r,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:s,context:o}),o.root||(o.root=v),v):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,v,S,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],v=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(v),r.context.templatePath.push(l),t[v]=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],v=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(v),r.context.templatePath.push(l),t[v]=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(),S=l.match(Constant.RE_KEY),S&&S[2]&&Util.type(r.template[l])==="number"&&(r.template[l]+=parseInt(S[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,v;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(v=Handler.placeholder(l,r.context.currentContext,r.context.templateCurrentContext,r),s.length===1&&l===t&&typeof v!=typeof t){t=v;break}t=t.replace(l,v)}}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 v=t.context.root,S=t.context.templateRoot,x=1;x<l.length-1;x++)v=v[l[x]],S=S[l[x]];if(v&&r in v)return v[r];if(S&&typeof S=="object"&&r in S&&o!==S[r])return S[r]=Handler.gen(S[r],r,{currentContext:v,templateCurrentContext:S}),S[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]||{},v=1,S=arguments.length,x,T,A,w,E;for(S===1&&(l=this,v=0);v<S;v++)if(x=arguments[v],!!x)for(T in x)A=l[T],w=x[T],l!==w&&w!==void 0&&(o.isArray(w)||o.isObject(w)?(o.isArray(w)&&(E=A&&o.isArray(A)?A:[]),o.isObject(w)&&(E=A&&o.isObject(A)?A:{}),l[T]=o.extend(E,w)):l[T]=w);return l},o.each=function(l,v,S){var x,T;if(this.type(l)==="number")for(x=0;x<l;x++)v(x,x);else if(l.length===+l.length)for(x=0;x<l.length&&v.call(S,l[x],x,l)!==!1;x++);else for(T in l)if(v.call(S,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 v in s)s.hasOwnProperty(v)&&l.push(v);return l},o.values=function(s){var l=[];for(var v in s)s.hasOwnProperty(v)&&l.push(s[v]);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(v){v=v==null?"":v+"";var S=(v||"").match(s.RE_KEY),x=S&&S[3]&&S[3].match(s.RE_RANGE),T=x&&x[1]&&parseInt(x[1],10),A=x&&x[2]&&parseInt(x[2],10),w=x?x[2]?l.integer(T,A):parseInt(x[1],10):void 0,E=S&&S[4]&&S[4].match(s.RE_RANGE),D=E&&E[1]&&parseInt(E[1],10),$=E&&E[2]&&parseInt(E[2],10),N=E?!E[2]&&parseInt(E[1],10)||l.integer(D,$):void 0,z={parameters:S,range:x,min:T,max:A,count:w,decimal:E,dmin:D,dmax:$,dcount:N};for(var F in z)if(z[F]!=null)return z;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,v){l=l===void 0?0:l,l=Math.max(Math.min(l,17),0),v=v===void 0?17:v,v=Math.max(Math.min(v,17),0);for(var S=this.integer(o,s)+".",x=0,T=this.natural(l,v);x<T;x++)S+=x<T-1?this.character("number"):this.character("123456789");return parseFloat(S,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 v;switch(arguments.length){case 0:v=this.natural(3,7);break;case 1:v=o,o=void 0;break;case 2:typeof arguments[0]=="string"?v=s:(v=this.natural(o,s),o=void 0);break;case 3:v=this.natural(s,l);break}for(var S="",x=0;x<v;x++)S+=this.character(o);return S},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 v=Math.max(Math.ceil((s-o)/l),0),S=0,x=new Array(v);S<v;)x[S++]=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 v(S,x){return typeof o[x]=="function"?o[x](s):o[x]in o?v(S,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 v=new Date;switch(s){case"year":v.setMonth(0);case"month":v.setDate(1);case"week":case"day":v.setHours(0);case"hour":v.setMinutes(0);case"minute":v.setSeconds(0);case"second":v.setMilliseconds(0)}switch(s){case"week":v.setDate(v.getDate()-v.getDay())}return this._formatDate(v,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,v,S,x,T){return arguments.length===4&&(T=x,x=void 0),arguments.length===3&&(T=S,S=void 0),l||(l=this.pick(this._adSize)),v&&~v.indexOf("#")&&(v=v.slice(1)),S&&~S.indexOf("#")&&(S=S.slice(1)),"http://dummyimage.com/"+l+(v?"/"+v:"")+(S?"/"+S:"")+(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 v in this._brandColors)l.push(v);return l},dataImage:function(l,v){var S;if(typeof document<"u")S=document.createElement("canvas");else{var x=s.require("canvas");S=new x}var T=S&&S.getContext&&S.getContext("2d");if(!S||!T)return"";l||(l=this.pick(this._adSize)),v=v!==void 0?v:l,l=l.split("x");var A=parseInt(l[0],10),w=parseInt(l[1],10),E=this._brandColors[this.pick(this._brandNames())],D="#FFF",$=14,N="sans-serif";return S.width=A,S.height=w,T.textAlign="center",T.textBaseline="middle",T.fillStyle=E,T.fillRect(0,0,A,w),T.fillStyle=D,T.font="bold "+$+"px "+N,T.fillText(v,A/2,w/2,A),S.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(v){return v||l[v]?l[v].nicer:this.hex()},hex:function(){var v=this._goldenRatioColor(),S=s.hsv2rgb(v),x=s.rgb2hex(S[0],S[1],S[2]);return x},rgb:function(){var v=this._goldenRatioColor(),S=s.hsv2rgb(v);return"rgb("+parseInt(S[0],10)+", "+parseInt(S[1],10)+", "+parseInt(S[2],10)+")"},rgba:function(){var v=this._goldenRatioColor(),S=s.hsv2rgb(v);return"rgba("+parseInt(S[0],10)+", "+parseInt(S[1],10)+", "+parseInt(S[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var v=this._goldenRatioColor(),S=s.hsv2hsl(v);return"hsl("+parseInt(S[0],10)+", "+parseInt(S[1],10)+", "+parseInt(S[2],10)+")"},_goldenRatioColor:function(v,S){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof v!="number"&&(v=.5),typeof S!="number"&&(S=.95),[this._hue*360,v*100,S*100]}}},function(r,t){r.exports={rgb2hsl:function(s){var l=s[0]/255,v=s[1]/255,S=s[2]/255,x=Math.min(l,v,S),T=Math.max(l,v,S),A=T-x,w,E,D;return T==x?w=0:l==T?w=(v-S)/A:v==T?w=2+(S-l)/A:S==T&&(w=4+(l-v)/A),w=Math.min(w*60,360),w<0&&(w+=360),D=(x+T)/2,T==x?E=0:D<=.5?E=A/(T+x):E=A/(2-T-x),[w,E*100,D*100]},rgb2hsv:function(s){var l=s[0],v=s[1],S=s[2],x=Math.min(l,v,S),T=Math.max(l,v,S),A=T-x,w,E,D;return T===0?E=0:E=A/T*1e3/10,T==x?w=0:l==T?w=(v-S)/A:v==T?w=2+(S-l)/A:S==T&&(w=4+(l-v)/A),w=Math.min(w*60,360),w<0&&(w+=360),D=T/255*1e3/10,[w,E,D]},hsl2rgb:function(s){var l=s[0]/360,v=s[1]/100,S=s[2]/100,x,T,A,w,E;if(v===0)return E=S*255,[E,E,E];S<.5?T=S*(1+v):T=S+v-S*v,x=2*S-T,w=[0,0,0];for(var D=0;D<3;D++)A=l+1/3*-(D-1),A<0&&A++,A>1&&A--,6*A<1?E=x+(T-x)*6*A:2*A<1?E=T:3*A<2?E=x+(T-x)*(2/3-A)*6:E=x,w[D]=E*255;return w},hsl2hsv:function(s){var l=s[0],v=s[1]/100,S=s[2]/100,x,T;return S*=2,v*=S<=1?S:2-S,T=(S+v)/2,x=2*v/(S+v),[l,x*100,T*100]},hsv2rgb:function(s){var l=s[0]/60,v=s[1]/100,S=s[2]/100,x=Math.floor(l)%6,T=l-Math.floor(l),A=255*S*(1-v),w=255*S*(1-v*T),E=255*S*(1-v*(1-T));switch(S=255*S,x){case 0:return[S,E,A];case 1:return[w,S,A];case 2:return[A,S,E];case 3:return[A,w,S];case 4:return[E,A,S];case 5:return[S,A,w]}},hsv2hsl:function(s){var l=s[0],v=s[1]/100,S=s[2]/100,x,T;return T=(2-v)*S,x=v*S,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 v(S,x,T,A){return T===void 0?s.natural(S,x):A===void 0?T:s.natural(parseInt(T,10),parseInt(A,10))}r.exports={paragraph:function(S,x){for(var T=v(3,7,S,x),A=[],w=0;w<T;w++)A.push(this.sentence());return A.join(" ")},cparagraph:function(S,x){for(var T=v(3,7,S,x),A=[],w=0;w<T;w++)A.push(this.csentence());return A.join("")},sentence:function(S,x){for(var T=v(12,18,S,x),A=[],w=0;w<T;w++)A.push(this.word());return l.capitalize(A.join(" "))+"."},csentence:function(S,x){for(var T=v(12,18,S,x),A=[],w=0;w<T;w++)A.push(this.cword());return A.join("")+"。"},word:function(S,x){for(var T=v(3,10,S,x),A="",w=0;w<T;w++)A+=s.character("lower");return A},cword:function(S,x,T){var A="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",w;switch(arguments.length){case 0:S=A,w=1;break;case 1:typeof arguments[0]=="string"?w=1:(w=S,S=A);break;case 2:typeof arguments[0]=="string"?w=x:(w=this.natural(S,x),S=A);break;case 3:w=this.natural(x,T);break}for(var E="",D=0;D<w;D++)E+=S.charAt(this.natural(0,S.length-1));return E},title:function(S,x){for(var T=v(3,7,S,x),A=[],w=0;w<T;w++)A.push(this.capitalize(this.word()));return A.join(" ")},ctitle:function(S,x){for(var T=v(3,7,S,x),A=[],w=0;w<T;w++)A.push(this.cword());return A.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(v,S,x){return s.isArray(v)?(S===void 0&&(S=1),x===void 0&&(x=S)):(v=[].slice.call(arguments),S=1,x=1),S===1&&x===1?v[this.natural(0,v.length-1)]:this.shuffle(v,S,x)},shuffle:function(v,S,x){v=v||[];for(var T=v.slice(0),A=[],w=0,E=T.length,D=0;D<E;D++)w=this.natural(0,T.length-1),A.push(T[w]),T.splice(w,1);switch(arguments.length){case 0:case 1:return A;case 2:x=S;case 3:return S=parseInt(S,10),x=parseInt(x,10),A.slice(0,this.natural(S,x))}},order:function l(v){l.cache=l.cache||{},arguments.length>1&&(v=[].slice.call(arguments,0));var S=l.options,x=S.context.templatePath.join("."),T=l.cache[x]=l.cache[x]||{index:0,array:v};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(v){var S=this.pick(s),x=this.pick(S.children);return v?[S.name,x.name].join(" "):x.name},county:function(v){var S=this.pick(s),x=this.pick(S.children),T=this.pick(x.children)||{name:"-"};return v?[S.name,x.name,T.name].join(" "):T.name},zip:function(v){for(var S="",x=0;x<(v||6);x++)S+=this.natural(0,9);return S}}},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(v){for(var S={},x=0,T;x<v.length;x++)T=v[x],!(!T||!T.id)&&(S[T.id]=T);for(var A=[],w=0;w<v.length;w++)if(T=v[w],!!T){if(T.pid==null&&T.parentId==null){A.push(T);continue}var E=S[T.pid]||S[T.parentId];E&&(E.children||(E.children=[]),E.children.push(T))}return A}var l=function(){var v=[];for(var S in o){var x=S.slice(2,6)==="0000"?void 0:S.slice(4,6)=="00"?S.slice(0,2)+"0000":S.slice(0,4)+"00";v.push({id:S,pid:x,name:o[S]})}return s(v)}();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",v=this.string(l,8)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,12);return v},uuid:function(){return this.guid()},id:function(){var l,v=0,S=["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++)v+=l[T]*S[T];return l+=x[v%11],l},increment:function(){var l=0;return function(v){return l+=+v||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(X){this.type=X,this.offset=o.offset(),this.text=o.text()}function s(X,ee){o.call(this,"alternate"),this.left=X,this.right=ee}function l(X){o.call(this,"match"),this.body=X.filter(Boolean)}function v(X,ee){o.call(this,X),this.body=ee}function S(X){v.call(this,"capture-group"),this.index=W[this.offset]||(W[this.offset]=G++),this.body=X}function x(X,ee){o.call(this,"quantified"),this.body=X,this.quantifier=ee}function T(X,ee){o.call(this,"quantifier"),this.min=X,this.max=ee,this.greedy=!0}function A(X,ee){o.call(this,"charset"),this.invert=X,this.body=ee}function w(X,ee){o.call(this,"range"),this.start=X,this.end=ee}function E(X){o.call(this,"literal"),this.body=X,this.escaped=this.body!=this.text}function D(X){o.call(this,"unicode"),this.code=X.toUpperCase()}function $(X){o.call(this,"hex"),this.code=X.toUpperCase()}function N(X){o.call(this,"octal"),this.code=X.toUpperCase()}function z(X){o.call(this,"back-reference"),this.code=X.toUpperCase()}function F(X){o.call(this,"control-character"),this.code=X.toUpperCase()}var B=function(){function X(te,ie){function le(){this.constructor=te}le.prototype=ie.prototype,te.prototype=new le}function ee(te,ie,le,pe,ue){function _e(xe,Te){function Ae(Pe){function Ce(Re){return Re.charCodeAt(0).toString(16).toUpperCase()}return Pe.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(Re){return"\\x0"+Ce(Re)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(Re){return"\\x"+Ce(Re)}).replace(/[\u0180-\u0FFF]/g,function(Re){return"\\u0"+Ce(Re)}).replace(/[\u1080-\uFFFF]/g,function(Re){return"\\u"+Ce(Re)})}var we,$e;switch(xe.length){case 0:we="end of input";break;case 1:we=xe[0];break;default:we=xe.slice(0,-1).join(", ")+" or "+xe[xe.length-1]}return $e=Te?'"'+Ae(Te)+'"':"end of input","Expected "+we+" but "+$e+" found."}this.expected=te,this.found=ie,this.offset=le,this.line=pe,this.column=ue,this.name="SyntaxError",this.message=_e(te,ie)}function Q(te){function ie(){return te.substring(He,Se)}function le(){return He}function pe(J){function se(Ee,ke,Je){var Jt,ur;for(Jt=ke;Je>Jt;Jt++)ur=te.charAt(Jt),ur===`
`?(Ee.seenCR||Ee.line++,Ee.column=1,Ee.seenCR=!1):ur==="\r"||ur==="\u2028"||ur==="\u2029"?(Ee.line++,Ee.column=1,Ee.seenCR=!0):(Ee.column++,Ee.seenCR=!1)}return lr!==J&&(lr>J&&(lr=0,Ir={line:1,column:1,seenCR:!1}),se(Ir,lr,J),lr=J),Ir}function ue(J){Sr>Se||(Se>Sr&&(Sr=Se,br=[]),br.push(J))}function _e(J){var se=0;for(J.sort();se<J.length;)J[se-1]===J[se]?J.splice(se,1):se++}function xe(){var J,se,Ee,ke,Je;return J=Se,se=Te(),se!==null?(Ee=Se,te.charCodeAt(Se)===124?(ke=Cn,Se++):(ke=null,Ie===0&&ue(Pn)),ke!==null?(Je=xe(),Je!==null?(ke=[ke,Je],Ee=ke):(Se=Ee,Ee=ze)):(Se=Ee,Ee=ze),Ee===null&&(Ee=ir),Ee!==null?(He=J,se=Mn(se,Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function Te(){var J,se,Ee,ke,Je;if(J=Se,se=we(),se===null&&(se=ir),se!==null)if(Ee=Se,Ie++,ke=Ce(),Ie--,ke===null?Ee=ir:(Se=Ee,Ee=ze),Ee!==null){for(ke=[],Je=Pe(),Je===null&&(Je=Ae());Je!==null;)ke.push(Je),Je=Pe(),Je===null&&(Je=Ae());ke!==null?(Je=$e(),Je===null&&(Je=ir),Je!==null?(He=J,se=In(se,ke,Je),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)}else Se=J,J=ze;else Se=J,J=ze;return J}function Ae(){var J;return J=Me(),J===null&&(J=ft(),J===null&&(J=Rt())),J}function we(){var J,se;return J=Se,te.charCodeAt(Se)===94?(se=zr,Se++):(se=null,Ie===0&&ue(Br)),se!==null&&(He=J,se=Dn()),se===null&&(Se=J),J=se,J}function $e(){var J,se;return J=Se,te.charCodeAt(Se)===36?(se=$n,Se++):(se=null,Ie===0&&ue(Ln)),se!==null&&(He=J,se=kn()),se===null&&(Se=J),J=se,J}function Pe(){var J,se,Ee;return J=Se,se=Ae(),se!==null?(Ee=Ce(),Ee!==null?(He=J,se=Nn(se,Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function Ce(){var J,se,Ee;return Ie++,J=Se,se=Re(),se!==null?(Ee=Tt(),Ee===null&&(Ee=ir),Ee!==null?(He=J,se=zn(se,Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),Ie--,J===null&&(se=null,Ie===0&&ue(Vn)),J}function Re(){var J;return J=Ye(),J===null&&(J=We(),J===null&&(J=qe(),J===null&&(J=Qe(),J===null&&(J=ht(),J===null&&(J=st()))))),J}function Ye(){var J,se,Ee,ke,Je,Jt;return J=Se,te.charCodeAt(Se)===123?(se=Er,Se++):(se=null,Ie===0&&ue(Pr)),se!==null?(Ee=yt(),Ee!==null?(te.charCodeAt(Se)===44?(ke=Fn,Se++):(ke=null,Ie===0&&ue(Hn)),ke!==null?(Je=yt(),Je!==null?(te.charCodeAt(Se)===125?(Jt=Hr,Se++):(Jt=null,Ie===0&&ue(Ur)),Jt!==null?(He=J,se=Gn(Ee,Je),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze),J}function We(){var J,se,Ee,ke;return J=Se,te.charCodeAt(Se)===123?(se=Er,Se++):(se=null,Ie===0&&ue(Pr)),se!==null?(Ee=yt(),Ee!==null?(te.substr(Se,2)===Gr?(ke=Gr,Se+=2):(ke=null,Ie===0&&ue(Wn)),ke!==null?(He=J,se=jn(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze),J}function qe(){var J,se,Ee,ke;return J=Se,te.charCodeAt(Se)===123?(se=Er,Se++):(se=null,Ie===0&&ue(Pr)),se!==null?(Ee=yt(),Ee!==null?(te.charCodeAt(Se)===125?(ke=Hr,Se++):(ke=null,Ie===0&&ue(Ur)),ke!==null?(He=J,se=Zn(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze),J}function Qe(){var J,se;return J=Se,te.charCodeAt(Se)===43?(se=qn,Se++):(se=null,Ie===0&&ue(Xn)),se!==null&&(He=J,se=Kn()),se===null&&(Se=J),J=se,J}function ht(){var J,se;return J=Se,te.charCodeAt(Se)===42?(se=Jn,Se++):(se=null,Ie===0&&ue(Qn)),se!==null&&(He=J,se=ei()),se===null&&(Se=J),J=se,J}function st(){var J,se;return J=Se,te.charCodeAt(Se)===63?(se=Wr,Se++):(se=null,Ie===0&&ue(Yr)),se!==null&&(He=J,se=ti()),se===null&&(Se=J),J=se,J}function Tt(){var J;return te.charCodeAt(Se)===63?(J=Wr,Se++):(J=null,Ie===0&&ue(Yr)),J}function yt(){var J,se,Ee;if(J=Se,se=[],jr.test(te.charAt(Se))?(Ee=te.charAt(Se),Se++):(Ee=null,Ie===0&&ue(Zr)),Ee!==null)for(;Ee!==null;)se.push(Ee),jr.test(te.charAt(Se))?(Ee=te.charAt(Se),Se++):(Ee=null,Ie===0&&ue(Zr));else se=ze;return se!==null&&(He=J,se=ri(se)),se===null&&(Se=J),J=se,J}function Me(){var J,se,Ee,ke;return J=Se,te.charCodeAt(Se)===40?(se=ni,Se++):(se=null,Ie===0&&ue(ii)),se!==null?(Ee=Ue(),Ee===null&&(Ee=xt(),Ee===null&&(Ee=De(),Ee===null&&(Ee=Be()))),Ee!==null?(te.charCodeAt(Se)===41?(ke=ai,Se++):(ke=null,Ie===0&&ue(oi)),ke!==null?(He=J,se=si(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze),J}function Be(){var J,se;return J=Se,se=xe(),se!==null&&(He=J,se=li(se)),se===null&&(Se=J),J=se,J}function De(){var J,se,Ee;return J=Se,te.substr(Se,2)===qr?(se=qr,Se+=2):(se=null,Ie===0&&ue(ui)),se!==null?(Ee=xe(),Ee!==null?(He=J,se=ci(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function Ue(){var J,se,Ee;return J=Se,te.substr(Se,2)===Xr?(se=Xr,Se+=2):(se=null,Ie===0&&ue(fi)),se!==null?(Ee=xe(),Ee!==null?(He=J,se=hi(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function xt(){var J,se,Ee;return J=Se,te.substr(Se,2)===Kr?(se=Kr,Se+=2):(se=null,Ie===0&&ue(di)),se!==null?(Ee=xe(),Ee!==null?(He=J,se=pi(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function ft(){var J,se,Ee,ke,Je;if(Ie++,J=Se,te.charCodeAt(Se)===91?(se=gi,Se++):(se=null,Ie===0&&ue(mi)),se!==null)if(te.charCodeAt(Se)===94?(Ee=zr,Se++):(Ee=null,Ie===0&&ue(Br)),Ee===null&&(Ee=ir),Ee!==null){for(ke=[],Je=wt(),Je===null&&(Je=ct());Je!==null;)ke.push(Je),Je=wt(),Je===null&&(Je=ct());ke!==null?(te.charCodeAt(Se)===93?(Je=yi,Se++):(Je=null,Ie===0&&ue(_i)),Je!==null?(He=J,se=Si(Ee,ke),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)}else Se=J,J=ze;else Se=J,J=ze;return Ie--,J===null&&(se=null,Ie===0&&ue(vi)),J}function wt(){var J,se,Ee,ke;return Ie++,J=Se,se=ct(),se!==null?(te.charCodeAt(Se)===45?(Ee=xi,Se++):(Ee=null,Ie===0&&ue(Ti)),Ee!==null?(ke=ct(),ke!==null?(He=J,se=Ai(se,ke),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze)):(Se=J,J=ze),Ie--,J===null&&(se=null,Ie===0&&ue(bi)),J}function ct(){var J;return Ie++,J=Ct(),J===null&&(J=Xe()),Ie--,J===null&&Ie===0&&ue(wi),J}function Xe(){var J,se;return J=Se,Ei.test(te.charAt(Se))?(se=te.charAt(Se),Se++):(se=null,Ie===0&&ue(Ci)),se!==null&&(He=J,se=Mr(se)),se===null&&(Se=J),J=se,J}function Ct(){var J;return J=Kt(),J===null&&(J=Rr(),J===null&&(J=or(),J===null&&(J=sr(),J===null&&(J=bt(),J===null&&(J=Gt(),J===null&&(J=qt(),J===null&&(J=Zt(),J===null&&(J=fr(),J===null&&(J=Qt(),J===null&&(J=hr(),J===null&&(J=nr(),J===null&&(J=dr(),J===null&&(J=Dr(),J===null&&(J=Or(),J===null&&(J=$r(),J===null&&(J=Lr(),J===null&&(J=kr()))))))))))))))))),J}function Rt(){var J;return J=Lt(),J===null&&(J=Yt(),J===null&&(J=Et())),J}function Lt(){var J,se;return J=Se,te.charCodeAt(Se)===46?(se=Pi,Se++):(se=null,Ie===0&&ue(Mi)),se!==null&&(He=J,se=Ii()),se===null&&(Se=J),J=se,J}function Et(){var J,se;return Ie++,J=Se,Di.test(te.charAt(Se))?(se=te.charAt(Se),Se++):(se=null,Ie===0&&ue(Oi)),se!==null&&(He=J,se=Mr(se)),se===null&&(Se=J),J=se,Ie--,J===null&&(se=null,Ie===0&&ue(Ri)),J}function Yt(){var J;return J=rr(),J===null&&(J=cr(),J===null&&(J=Rr(),J===null&&(J=or(),J===null&&(J=sr(),J===null&&(J=bt(),J===null&&(J=Gt(),J===null&&(J=qt(),J===null&&(J=Zt(),J===null&&(J=fr(),J===null&&(J=Qt(),J===null&&(J=hr(),J===null&&(J=nr(),J===null&&(J=dr(),J===null&&(J=En(),J===null&&(J=Dr(),J===null&&(J=Or(),J===null&&(J=$r(),J===null&&(J=Lr(),J===null&&(J=kr()))))))))))))))))))),J}function Kt(){var J,se;return J=Se,te.substr(Se,2)===vr?(se=vr,Se+=2):(se=null,Ie===0&&ue(Jr)),se!==null&&(He=J,se=$i()),se===null&&(Se=J),J=se,J}function rr(){var J,se;return J=Se,te.substr(Se,2)===vr?(se=vr,Se+=2):(se=null,Ie===0&&ue(Jr)),se!==null&&(He=J,se=Li()),se===null&&(Se=J),J=se,J}function cr(){var J,se;return J=Se,te.substr(Se,2)===rn?(se=rn,Se+=2):(se=null,Ie===0&&ue(ki)),se!==null&&(He=J,se=Ni()),se===null&&(Se=J),J=se,J}function or(){var J,se;return J=Se,te.substr(Se,2)===an?(se=an,Se+=2):(se=null,Ie===0&&ue(Vi)),se!==null&&(He=J,se=zi()),se===null&&(Se=J),J=se,J}function sr(){var J,se;return J=Se,te.substr(Se,2)===on?(se=on,Se+=2):(se=null,Ie===0&&ue(Fi)),se!==null&&(He=J,se=Bi()),se===null&&(Se=J),J=se,J}function bt(){var J,se;return J=Se,te.substr(Se,2)===sn?(se=sn,Se+=2):(se=null,Ie===0&&ue(Hi)),se!==null&&(He=J,se=Ui()),se===null&&(Se=J),J=se,J}function Gt(){var J,se;return J=Se,te.substr(Se,2)===ln?(se=ln,Se+=2):(se=null,Ie===0&&ue(Gi)),se!==null&&(He=J,se=Wi()),se===null&&(Se=J),J=se,J}function qt(){var J,se;return J=Se,te.substr(Se,2)===un?(se=un,Se+=2):(se=null,Ie===0&&ue(Yi)),se!==null&&(He=J,se=ji()),se===null&&(Se=J),J=se,J}function Zt(){var J,se;return J=Se,te.substr(Se,2)===cn?(se=cn,Se+=2):(se=null,Ie===0&&ue(Zi)),se!==null&&(He=J,se=qi()),se===null&&(Se=J),J=se,J}function fr(){var J,se;return J=Se,te.substr(Se,2)===fn?(se=fn,Se+=2):(se=null,Ie===0&&ue(Xi)),se!==null&&(He=J,se=Ki()),se===null&&(Se=J),J=se,J}function Qt(){var J,se;return J=Se,te.substr(Se,2)===hn?(se=hn,Se+=2):(se=null,Ie===0&&ue(Ji)),se!==null&&(He=J,se=Qi()),se===null&&(Se=J),J=se,J}function hr(){var J,se;return J=Se,te.substr(Se,2)===dn?(se=dn,Se+=2):(se=null,Ie===0&&ue(ea)),se!==null&&(He=J,se=ta()),se===null&&(Se=J),J=se,J}function nr(){var J,se;return J=Se,te.substr(Se,2)===pn?(se=pn,Se+=2):(se=null,Ie===0&&ue(ra)),se!==null&&(He=J,se=na()),se===null&&(Se=J),J=se,J}function dr(){var J,se;return J=Se,te.substr(Se,2)===vn?(se=vn,Se+=2):(se=null,Ie===0&&ue(ia)),se!==null&&(He=J,se=aa()),se===null&&(Se=J),J=se,J}function Rr(){var J,se,Ee;return J=Se,te.substr(Se,2)===gn?(se=gn,Se+=2):(se=null,Ie===0&&ue(oa)),se!==null?(te.length>Se?(Ee=te.charAt(Se),Se++):(Ee=null,Ie===0&&ue(mn)),Ee!==null?(He=J,se=sa(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function En(){var J,se,Ee;return J=Se,te.charCodeAt(Se)===92?(se=yn,Se++):(se=null,Ie===0&&ue(_n)),se!==null?(la.test(te.charAt(Se))?(Ee=te.charAt(Se),Se++):(Ee=null,Ie===0&&ue(ua)),Ee!==null?(He=J,se=fa(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}function Dr(){var J,se,Ee,ke;if(J=Se,te.substr(Se,2)===gr?(se=gr,Se+=2):(se=null,Ie===0&&ue(Sn)),se!==null){if(Ee=[],bn.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(xn)),ke!==null)for(;ke!==null;)Ee.push(ke),bn.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(xn));else Ee=ze;Ee!==null?(He=J,se=ha(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)}else Se=J,J=ze;return J}function Or(){var J,se,Ee,ke;if(J=Se,te.substr(Se,2)===Tn?(se=Tn,Se+=2):(se=null,Ie===0&&ue(da)),se!==null){if(Ee=[],yr.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(_r)),ke!==null)for(;ke!==null;)Ee.push(ke),yr.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(_r));else Ee=ze;Ee!==null?(He=J,se=pa(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)}else Se=J,J=ze;return J}function $r(){var J,se,Ee,ke;if(J=Se,te.substr(Se,2)===An?(se=An,Se+=2):(se=null,Ie===0&&ue(va)),se!==null){if(Ee=[],yr.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(_r)),ke!==null)for(;ke!==null;)Ee.push(ke),yr.test(te.charAt(Se))?(ke=te.charAt(Se),Se++):(ke=null,Ie===0&&ue(_r));else Ee=ze;Ee!==null?(He=J,se=ga(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)}else Se=J,J=ze;return J}function Lr(){var J,se;return J=Se,te.substr(Se,2)===gr?(se=gr,Se+=2):(se=null,Ie===0&&ue(Sn)),se!==null&&(He=J,se=ma()),se===null&&(Se=J),J=se,J}function kr(){var J,se,Ee;return J=Se,te.charCodeAt(Se)===92?(se=yn,Se++):(se=null,Ie===0&&ue(_n)),se!==null?(te.length>Se?(Ee=te.charAt(Se),Se++):(Ee=null,Ie===0&&ue(mn)),Ee!==null?(He=J,se=Mr(Ee),se===null&&(Se=J),J=se):(Se=J,J=ze)):(Se=J,J=ze),J}var Ar,pr=arguments.length>1?arguments[1]:{},Nr={regexp:xe},Vr=xe,ze=null,ir="",Cn="|",Pn='"|"',Mn=function(J,se){return se?new s(J,se[1]):J},In=function(J,se,Ee){return new l([J].concat(se).concat([Ee]))},zr="^",Br='"^"',Dn=function(){return new o("start")},$n="$",Ln='"$"',kn=function(){return new o("end")},Nn=function(J,se){return new x(J,se)},Vn="Quantifier",zn=function(J,se){return se&&(J.greedy=!1),J},Er="{",Pr='"{"',Fn=",",Hn='","',Hr="}",Ur='"}"',Gn=function(J,se){return new T(J,se)},Gr=",}",Wn='",}"',jn=function(J){return new T(J,1/0)},Zn=function(J){return new T(J,J)},qn="+",Xn='"+"',Kn=function(){return new T(1,1/0)},Jn="*",Qn='"*"',ei=function(){return new T(0,1/0)},Wr="?",Yr='"?"',ti=function(){return new T(0,1)},jr=/^[0-9]/,Zr="[0-9]",ri=function(J){return+J.join("")},ni="(",ii='"("',ai=")",oi='")"',si=function(J){return J},li=function(J){return new S(J)},qr="?:",ui='"?:"',ci=function(J){return new v("non-capture-group",J)},Xr="?=",fi='"?="',hi=function(J){return new v("positive-lookahead",J)},Kr="?!",di='"?!"',pi=function(J){return new v("negative-lookahead",J)},vi="CharacterSet",gi="[",mi='"["',yi="]",_i='"]"',Si=function(J,se){return new A(!!J,se)},bi="CharacterRange",xi="-",Ti='"-"',Ai=function(J,se){return new w(J,se)},wi="Character",Ei=/^[^\\\]]/,Ci="[^\\\\\\]]",Mr=function(J){return new E(J)},Pi=".",Mi='"."',Ii=function(){return new o("any-character")},Ri="Literal",Di=/^[^|\\\/.[()?+*$\^]/,Oi="[^|\\\\\\/.[()?+*$\\^]",vr="\\b",Jr='"\\\\b"',$i=function(){return new o("backspace")},Li=function(){return new o("word-boundary")},rn="\\B",ki='"\\\\B"',Ni=function(){return new o("non-word-boundary")},an="\\d",Vi='"\\\\d"',zi=function(){return new o("digit")},on="\\D",Fi='"\\\\D"',Bi=function(){return new o("non-digit")},sn="\\f",Hi='"\\\\f"',Ui=function(){return new o("form-feed")},ln="\\n",Gi='"\\\\n"',Wi=function(){return new o("line-feed")},un="\\r",Yi='"\\\\r"',ji=function(){return new o("carriage-return")},cn="\\s",Zi='"\\\\s"',qi=function(){return new o("white-space")},fn="\\S",Xi='"\\\\S"',Ki=function(){return new o("non-white-space")},hn="\\t",Ji='"\\\\t"',Qi=function(){return new o("tab")},dn="\\v",ea='"\\\\v"',ta=function(){return new o("vertical-tab")},pn="\\w",ra='"\\\\w"',na=function(){return new o("word")},vn="\\W",ia='"\\\\W"',aa=function(){return new o("non-word")},gn="\\c",oa='"\\\\c"',mn="any character",sa=function(J){return new F(J)},yn="\\",_n='"\\\\"',la=/^[1-9]/,ua="[1-9]",fa=function(J){return new z(J)},gr="\\0",Sn='"\\\\0"',bn=/^[0-7]/,xn="[0-7]",ha=function(J){return new N(J.join(""))},Tn="\\x",da='"\\\\x"',yr=/^[0-9a-fA-F]/,_r="[0-9a-fA-F]",pa=function(J){return new $(J.join(""))},An="\\u",va='"\\\\u"',ga=function(J){return new D(J.join(""))},ma=function(){return new o("null-character")},Se=0,He=0,lr=0,Ir={line:1,column:1,seenCR:!1},Sr=0,br=[],Ie=0;if("startRule"in pr){if(!(pr.startRule in Nr))throw new Error(`Can't start parsing from rule "`+pr.startRule+'".');Vr=Nr[pr.startRule]}if(o.offset=le,o.text=ie,Ar=Vr(),Ar!==null&&Se===te.length)return Ar;throw _e(br),He=Math.max(Se,Sr),new ee(br,He<te.length?te.charAt(He):null,He,pe(He).line,pe(He).column)}return X(ee,Error),{SyntaxError:ee,parse:Q}}(),G=1,W={};r.exports=B},function(r,t,o){var s=o(3),l=o(5),v={extend:s.extend},S=$(97,122),x=$(65,90),T=$(48,57),A=$(32,47)+$(58,64)+$(91,96)+$(123,126),w=$(32,126),E=` \f
\r \v \u2028\u2029`,D={"\\w":S+x+T+"_","\\W":A.replace("_",""),"\\s":E,"\\S":function(){for(var N=w,z=0;z<E.length;z++)N=N.replace(E[z],"");return N}(),"\\d":T,"\\D":S+x+A};function $(N,z){for(var F="",B=N;B<=z;B++)F+=String.fromCharCode(B);return F}v.gen=function(N,z,F){return F=F||{guid:1},v[N.type]?v[N.type](N,z,F):v.token(N,z,F)},v.extend({token:function(N,z,F){switch(N.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((S+x+A).split(""));case"form-feed":break;case"line-feed":return N.body||N.text;case"carriage-return":break;case"white-space":return l.pick(E.split(""));case"non-white-space":return l.pick((S+x+T).split(""));case"tab":break;case"vertical-tab":break;case"word":return l.pick((S+x+T).split(""));case"non-word":return l.pick(A.replace("_","").split(""))}return N.body||N.text},alternate:function(N,z,F){return this.gen(l.boolean()?N.left:N.right,z,F)},match:function(N,z,F){z="";for(var B=0;B<N.body.length;B++)z+=this.gen(N.body[B],z,F);return z},"capture-group":function(N,z,F){return z=this.gen(N.body,z,F),F[F.guid++]=z,z},"non-capture-group":function(N,z,F){return this.gen(N.body,z,F)},"positive-lookahead":function(N,z,F){return this.gen(N.body,z,F)},"negative-lookahead":function(N,z,F){return""},quantified:function(N,z,F){z="";for(var B=this.quantifier(N.quantifier),G=0;G<B;G++)z+=this.gen(N.body,z,F);return z},quantifier:function(N,z,F){var B=Math.max(N.min,0),G=isFinite(N.max)?N.max:B+l.integer(3,7);return l.integer(B,G)},charset:function(N,z,F){if(N.invert)return this["invert-charset"](N,z,F);var B=l.pick(N.body);return this.gen(B,z,F)},"invert-charset":function(N,z,F){for(var B=w,G=0,W;G<N.body.length;G++)switch(W=N.body[G],W.type){case"literal":B=B.replace(W.body,"");break;case"range":for(var X=this.gen(W.start,z,F).charCodeAt(),ee=this.gen(W.end,z,F).charCodeAt(),Q=X;Q<=ee;Q++)B=B.replace(String.fromCharCode(Q),"");default:var te=D[W.text];if(te)for(var ie=0;ie<=te.length;ie++)B=B.replace(te[ie],"")}return l.pick(B.split(""))},range:function(N,z,F){var B=this.gen(N.start,z,F).charCodeAt(),G=this.gen(N.end,z,F).charCodeAt();return String.fromCharCode(l.integer(B,G))},literal:function(N,z,F){return N.escaped?N.body:N.text},unicode:function(N,z,F){return String.fromCharCode(parseInt(N.code,16))},hex:function(N,z,F){return String.fromCharCode(parseInt(N.code,16))},octal:function(N,z,F){return String.fromCharCode(parseInt(N.code,8))},"back-reference":function(N,z,F){return F[N.code]||""},CONTROL_CHARACTER_MAP:function(){for(var N="@ 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(" "),z=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),F={},B=0;B<N.length;B++)F[N[B]]=z[B];return F}(),"control-character":function(N,z,F){return this.CONTROL_CHARACTER_MAP[N.code]}}),r.exports=v},function(r,t,o){r.exports=o(24)},function(r,t,o){var s=o(2),l=o(3),v=o(4);function S(x,T,A){A=A||[];var w={name:typeof T=="string"?T.replace(s.RE_KEY,"$1"):T,template:x,type:l.type(x),rule:v.parse(T)};switch(w.path=A.slice(0),w.path.push(T===void 0?"ROOT":w.name),w.type){case"array":w.items=[],l.each(x,function(E,D){w.items.push(S(E,D,w.path))});break;case"object":w.properties=[],l.each(x,function(E,D){w.properties.push(S(E,D,w.path))});break}return w}r.exports=S},function(r,t,o){r.exports=o(26)},function(r,t,o){var s=o(2),l=o(3),v=o(23);function S(A,w){for(var E=v(A),D=x.diff(E,w),$=0;$<D.length;$++);return D}var x={diff:function(w,E,D){var $=[];return this.name(w,E,D,$)&&this.type(w,E,D,$)&&(this.value(w,E,D,$),this.properties(w,E,D,$),this.items(w,E,D,$)),$},name:function(A,w,E,D){var $=D.length;return T.equal("name",A.path,E+"",A.name+"",D),D.length===$},type:function(A,w,E,D){var $=D.length;switch(A.type){case"string":if(A.template.match(s.RE_PLACEHOLDER))return!0;break;case"array":if(A.rule.parameters&&(A.rule.min!==void 0&&A.rule.max===void 0&&A.rule.count===1||A.rule.parameters[2]))return!0;break;case"function":return!0}return T.equal("type",A.path,l.type(w),A.type,D),D.length===$},value:function(A,w,E,D){var $=D.length,N=A.rule,z=A.type;if(z==="object"||z==="array"||z==="function")return!0;if(!N.parameters){switch(z){case"regexp":return T.match("value",A.path,w,A.template,D),D.length===$;case"string":if(A.template.match(s.RE_PLACEHOLDER))return D.length===$;break}return T.equal("value",A.path,w,A.template,D),D.length===$}var F;switch(z){case"number":var B=(w+"").split(".");B[0]=+B[0],N.min!==void 0&&N.max!==void 0&&(T.greaterThanOrEqualTo("value",A.path,B[0],Math.min(N.min,N.max),D),T.lessThanOrEqualTo("value",A.path,B[0],Math.max(N.min,N.max),D)),N.min!==void 0&&N.max===void 0&&T.equal("value",A.path,B[0],N.min,D,"[value] "+E),N.decimal&&(N.dmin!==void 0&&N.dmax!==void 0&&(T.greaterThanOrEqualTo("value",A.path,B[1].length,N.dmin,D),T.lessThanOrEqualTo("value",A.path,B[1].length,N.dmax,D)),N.dmin!==void 0&&N.dmax===void 0&&T.equal("value",A.path,B[1].length,N.dmin,D));break;case"boolean":break;case"string":F=w.match(new RegExp(A.template,"g")),F=F?F.length:0,N.min!==void 0&&N.max!==void 0&&(T.greaterThanOrEqualTo("repeat count",A.path,F,N.min,D),T.lessThanOrEqualTo("repeat count",A.path,F,N.max,D)),N.min!==void 0&&N.max===void 0&&T.equal("repeat count",A.path,F,N.min,D);break;case"regexp":F=w.match(new RegExp(A.template.source.replace(/^\^|\$$/g,""),"g")),F=F?F.length:0,N.min!==void 0&&N.max!==void 0&&(T.greaterThanOrEqualTo("repeat count",A.path,F,N.min,D),T.lessThanOrEqualTo("repeat count",A.path,F,N.max,D)),N.min!==void 0&&N.max===void 0&&T.equal("repeat count",A.path,F,N.min,D);break}return D.length===$},properties:function(A,w,E,D){var $=D.length,N=A.rule,z=l.keys(w);if(A.properties){if(A.rule.parameters?(N.min!==void 0&&N.max!==void 0&&(T.greaterThanOrEqualTo("properties length",A.path,z.length,Math.min(N.min,N.max),D),T.lessThanOrEqualTo("properties length",A.path,z.length,Math.max(N.min,N.max),D)),N.min!==void 0&&N.max===void 0&&N.count!==1&&T.equal("properties length",A.path,z.length,N.min,D)):T.equal("properties length",A.path,z.length,A.properties.length,D),D.length!==$)return!1;for(var F=0;F<z.length;F++)D.push.apply(D,this.diff(function(){var B;return l.each(A.properties,function(G){G.name===z[F]&&(B=G)}),B||A.properties[F]}(),w[z[F]],z[F]));return D.length===$}},items:function(A,w,E,D){var $=D.length;if(A.items){var N=A.rule;if(!A.rule.parameters)T.equal("items length",A.path,w.length,A.items.length,D);else{if(N.min!==void 0&&N.max!==void 0&&(T.greaterThanOrEqualTo("items",A.path,w.length,Math.min(N.min,N.max)*A.items.length,D,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),T.lessThanOrEqualTo("items",A.path,w.length,Math.max(N.min,N.max)*A.items.length,D,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),N.min!==void 0&&N.max===void 0){if(N.count===1)return D.length===$;T.equal("items length",A.path,w.length,N.min*A.items.length,D)}if(N.parameters[2])return D.length===$}if(D.length!==$)return!1;for(var z=0;z<w.length;z++)D.push.apply(D,this.diff(A.items[z%A.items.length],w[z],z%A.items.length));return D.length===$}}},T={message:function(A){return(A.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",A.type.toUpperCase()).replace("{ltype}",A.type.toLowerCase()).replace("{path}",l.isArray(A.path)&&A.path.join(".")||A.path).replace("{action}",A.action).replace("{expected}",A.expected).replace("{actual}",A.actual)},equal:function(A,w,E,D,$,N){if(E===D)return!0;switch(A){case"type":if(D==="regexp"&&E==="string")return!0;break}var z={path:w,type:A,actual:E,expected:D,action:"is equal to",message:N};return z.message=T.message(z),$.push(z),!1},match:function(A,w,E,D,$,N){if(D.test(E))return!0;var z={path:w,type:A,actual:E,expected:D,action:"matches",message:N};return z.message=T.message(z),$.push(z),!1},notEqual:function(A,w,E,D,$,N){if(E!==D)return!0;var z={path:w,type:A,actual:E,expected:D,action:"is not equal to",message:N};return z.message=T.message(z),$.push(z),!1},greaterThan:function(A,w,E,D,$,N){if(E>D)return!0;var z={path:w,type:A,actual:E,expected:D,action:"is greater than",message:N};return z.message=T.message(z),$.push(z),!1},lessThan:function(A,w,E,D,$,N){if(E<D)return!0;var z={path:w,type:A,actual:E,expected:D,action:"is less to",message:N};return z.message=T.message(z),$.push(z),!1},greaterThanOrEqualTo:function(A,w,E,D,$,N){if(E>=D)return!0;var z={path:w,type:A,actual:E,expected:D,action:"is greater than or equal to",message:N};return z.message=T.message(z),$.push(z),!1},lessThanOrEqualTo:function(A,w,E,D,$,N){if(E<=D)return!0;var z={path:w,type:A,actual:E,expected:D,action:"is less than or equal to",message:N};return z.message=T.message(z),$.push(z),!1}};S.Diff=x,S.Assert=T,r.exports=S},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(N,z,F,B){var G=document.createEvent("CustomEvent");return G.initCustomEvent(N,z,F,B),G}}var l={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},v="readystatechange loadstart progress abort error load timeout loadend".split(" "),S="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 A(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}A._settings={timeout:"10-100"},A.setup=function($){return s.extend(A._settings,$),A._settings},s.extend(A,l),s.extend(A.prototype,l),A.prototype.mock=!0,A.prototype.match=!1,s.extend(A.prototype,{open:function($,N,z,F,B){var G=this;s.extend(this.custom,{method:$,url:N,async:typeof z=="boolean"?z:!0,username:F,password:B,options:{url:N,type:$}}),this.custom.timeout=function(ie){if(typeof ie=="number")return ie;if(typeof ie=="string"&&!~ie.indexOf("-"))return parseInt(ie,10);if(typeof ie=="string"&&~ie.indexOf("-")){var le=ie.split("-"),pe=parseInt(le[0],10),ue=parseInt(le[1],10);return Math.round(Math.random()*(ue-pe))+pe}}(A._settings.timeout);var W=E(this.custom.options);function X(ie){for(var le=0;le<x.length;le++)try{G[x[le]]=ee[x[le]]}catch{}G.dispatchEvent(new Event(ie.type))}if(!W){var ee=w();this.custom.xhr=ee;for(var Q=0;Q<v.length;Q++)ee.addEventListener(v[Q],X);F?ee.open($,N,z,F,B):ee.open($,N,z);for(var te=0;te<S.length;te++)try{ee[S[te]]=G[S[te]]}catch{}return}this.match=!0,this.custom.template=W,this.readyState=A.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function($,N){if(!this.match){this.custom.xhr.setRequestHeader($,N);return}var z=this.custom.requestHeaders;z[$]?z[$]+=","+N:z[$]=N},timeout:0,withCredentials:!1,upload:{},send:function(N){var z=this;if(this.custom.options.body=N,!this.match){this.custom.xhr.send(N);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(F,this.custom.timeout):F();function F(){z.readyState=A.HEADERS_RECEIVED,z.dispatchEvent(new Event("readystatechange")),z.readyState=A.LOADING,z.dispatchEvent(new Event("readystatechange")),z.status=200,z.statusText=T[200],z.response=z.responseText=JSON.stringify(D(z.custom.template,z.custom.options),null,4),z.readyState=A.DONE,z.dispatchEvent(new Event("readystatechange")),z.dispatchEvent(new Event("load")),z.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=A.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),s.extend(A.prototype,{responseURL:"",status:A.UNSENT,statusText:"",getResponseHeader:function($){return this.match?this.custom.responseHeaders[$.toLowerCase()]:this.custom.xhr.getResponseHeader($)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var $=this.custom.responseHeaders,N="";for(var z in $)$.hasOwnProperty(z)&&(N+=z+": "+$[z]+`\r
`);return N},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),s.extend(A.prototype,{addEventListener:function(N,z){var F=this.custom.events;F[N]||(F[N]=[]),F[N].push(z)},removeEventListener:function(N,z){for(var F=this.custom.events[N]||[],B=0;B<F.length;B++)F[B]===z&&F.splice(B--,1)},dispatchEvent:function(N){for(var z=this.custom.events[N.type]||[],F=0;F<z.length;F++)z[F].call(this,N);var B="on"+N.type;this[B]&&this[B](N)}});function w(){var $=function(){var F=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,B=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,G=location.href,W=B.exec(G.toLowerCase())||[];return F.test(W[1])}();return window.ActiveXObject?!$&&N()||z():N();function N(){try{return new window._XMLHttpRequest}catch{}}function z(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function E($){for(var N in A.Mock._mocked){var z=A.Mock._mocked[N];if((!z.rurl||F(z.rurl,$.url))&&(!z.rtype||F(z.rtype,$.type.toLowerCase())))return z}function F(B,G){if(s.type(B)==="string")return B===G;if(s.type(B)==="regexp")return B.test(G)}}function D($,N){return s.isFunction($.template)?$.template(N):A.Mock.mock($.template)}r.exports=A}])})})(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="",v=o+1;v<r.length;){var S=r.charCodeAt(v);if(S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||S===95){l+=r[v++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(o));t.push({type:"NAME",index:o,value:l}),o=v;continue}if(s==="("){var x=1,T="",v=o+1;if(r[v]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(v));for(;v<r.length;){if(r[v]==="\\"){T+=r[v++]+r[v++];continue}if(r[v]===")"){if(x--,x===0){v++;break}}else if(r[v]==="("&&(x++,r[v+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(v));T+=r[v++]}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=v;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,v="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),S=[],x=0,T=0,A="",w=function(Q){if(T<o.length&&o[T].type===Q)return o[T++].value},E=function(Q){var te=w(Q);if(te!==void 0)return te;var ie=o[T],le=ie.type,pe=ie.index;throw new TypeError("Unexpected ".concat(le," at ").concat(pe,", expected ").concat(Q))},D=function(){for(var Q="",te;te=w("CHAR")||w("ESCAPED_CHAR");)Q+=te;return Q};T<o.length;){var $=w("CHAR"),N=w("NAME"),z=w("PATTERN");if(N||z){var F=$||"";l.indexOf(F)===-1&&(A+=F,F=""),A&&(S.push(A),A=""),S.push({name:N||x++,prefix:F,suffix:"",pattern:z||v,modifier:w("MODIFIER")||""});continue}var B=$||w("ESCAPED_CHAR");if(B){A+=B;continue}A&&(S.push(A),A="");var G=w("OPEN");if(G){var F=D(),W=w("NAME")||"",X=w("PATTERN")||"",ee=D();E("CLOSE"),S.push({name:W||(X?x++:""),pattern:W&&!X?v:X,prefix:F,suffix:ee,modifier:w("MODIFIER")||""});continue}E("END")}return S}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,v=o.start,S=v===void 0?!0:v,x=o.end,T=x===void 0?!0:x,A=o.encode,w=A===void 0?function(pe){return pe}:A,E=o.delimiter,D=E===void 0?"/#?":E,$=o.endsWith,N=$===void 0?"":$,z="[".concat(escapeString(N),"]|$"),F="[".concat(escapeString(D),"]"),B=S?"^":"",G=0,W=r;G<W.length;G++){var X=W[G];if(typeof X=="string")B+=escapeString(w(X));else{var ee=escapeString(w(X.prefix)),Q=escapeString(w(X.suffix));if(X.pattern)if(t&&t.push(X),ee||Q)if(X.modifier==="+"||X.modifier==="*"){var te=X.modifier==="*"?"?":"";B+="(?:".concat(ee,"((?:").concat(X.pattern,")(?:").concat(Q).concat(ee,"(?:").concat(X.pattern,"))*)").concat(Q,")").concat(te)}else B+="(?:".concat(ee,"(").concat(X.pattern,")").concat(Q,")").concat(X.modifier);else X.modifier==="+"||X.modifier==="*"?B+="((?:".concat(X.pattern,")").concat(X.modifier,")"):B+="(".concat(X.pattern,")").concat(X.modifier);else B+="(?:".concat(ee).concat(Q,")").concat(X.modifier)}}if(T)l||(B+="".concat(F,"?")),B+=o.endsWith?"(?=".concat(z,")"):"$";else{var ie=r[r.length-1],le=typeof ie=="string"?F.indexOf(ie[ie.length-1])>-1:ie===void 0;l||(B+="(?:".concat(F,"(?=").concat(z,"))?")),le||(B+="(?=".concat(F,"|").concat(z,")"))}return new RegExp(B,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:v,headers:S}=t;let x=s;try{x=JSON.parse(s)}catch{}o=r({method:l,body:x,query:__param2Obj__(v),headers:S})}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(je).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{$t as $,getConfig as A,Bn as B,Cr as C,store as D,FontIcon as E,Fr as F,Ge as G,H$1 as H,IconifyIconOffline as I,IconifyIconOnline as J,Ke as K,C as L,addIcon$1 as M,useResizeObserver as N,On as O,onKeyStroke as P,Qr as Q,Rn as R,getParentPaths as S,findRouteByPath as T,Un as U,Ve as V,useMultiTagsStoreHook as W,St as X,Yn as Y,Ze as Z,_export_sfc as _,_t as a,data$1 as a0,useEventListener as a1,Le as a2,Y as a3,getTopMenu as a4,useFullscreen as a5,emitter as a6,handleAliveRoute as a7,P$1 as a8,data as a9,routerArrays as aa,At as ab,onClickOutside as ac,removeToken as ad,er as ae,resetRouter as af,useMultiTagsStore as ag,useUserStoreHook as ah,router as ai,remainingPaths as aj,useWindowSize as ak,nn as al,LinearGradient$1 as am,Ne as an,initRouter as ao,getAuths as ap,hasAuth as aq,Fe as ar,handleTree as as,Tr as at,appendFieldByUniqueId as au,getNodeByUniqueId as av,Bt as aw,transformI18n as b,commonjsGlobal as c,deleteChildren as d,extractPathList as e,addDialog as f,getDefaultExportFromCjs as g,updateDialog as h,closeDialog as i,closeAllDialog as j,hot as k,lo as l,http as m,dt as n,templateRef as o,tryOnMounted as p,tryOnUnmounted as q,useDebounceFn as r,useIntervalFn as s,tn as t,usePermissionStoreHook as u,vt as v,k$1 as w,tr as x,responsiveStorageNameSpace as y,zt as z};