var ne=Object.defineProperty;var oe=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var U=(e,t,r)=>(oe(e,typeof t!="symbol"?t+"":t,r),r);const ae={},H=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));var W=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,le=Object.getOwnPropertyNames,se=Object.prototype.hasOwnProperty,q=(e,t)=>{for(var r in t)W(e,r,{get:t[r],enumerable:!0})},B=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of le(t))!se.call(e,i)&&i!==r&&W(e,i,{get:()=>t[i],enumerable:!(n=ie(t,i))||n.enumerable});return e},V=(e,t,r)=>(B(e,t,"default"),r&&B(r,t,"default"));function ce(e){let t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=window.atob(t[1]),i=n.length,o=new Uint8Array(i);for(;i--;)o[i]=n.charCodeAt(i);return new Blob([o],{type:r})}function ue(e,t,r){return new Promise((n,i)=>{let o=document.createElement("CANVAS"),u=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!u)return i();o.height=f.height,o.width=f.width,u.drawImage(f,0,0);let v=o.toDataURL(t||"image/png",r);o=null,n(v)},f.src=e})}var de=Object.prototype.toString;function k(e,t){return de.call(e)===`[object ${t}]`}function fe(e){return e!==null&&k(e,"Object")}function C(e){return typeof e<"u"}function pe(e){return!C(e)}function he(e){return e===null}function me(e){return he(e)||pe(e)}function ge(e){return J(e)||F(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:fe(e)?Object.keys(e).length===0:!1}function S(e){return!!(ge(e)||me(e))}function Ne(e){return k(e,"Number")}function F(e){return k(e,"String")}function De(e){return typeof e=="function"}function Te(e){return k(e,"Boolean")}function J(e){return e&&Array.isArray(e)}var we=typeof window>"u",K=!we;function be(e){let t="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(t,"ig").test(e)}function Ue(e){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(e)}var L=(e,t)=>!!(e!=null&&e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))),Be=(e,t,r)=>{L(e,t)||(e.className+=" "+t),r&&!L(e,r)&&(e.className+=" "+r)},Pe=(e,t,r)=>{if(L(e,t)){let n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").trim()}if(r&&L(e,r)){let n=new RegExp("(\\s|^)"+r+"(\\s|$)");e.className=e.className.replace(n," ").trim()}},He=(e,t,r)=>{let n=r||document.body,{className:i}=n,o=i.replace(t,"").trim().split(/\s+/).join(" ");n.className=e?`${o} ${t}`:o},ve=Object.prototype.toString;function ye(e,t){return e&&e.hasOwnProperty?e.hasOwnProperty(t):!1}function xe(e,t,r){if(e)if(e.forEach)e.forEach(t,r);else for(let n=0,i=e.length;n{let t=(e==null?void 0:e.type)??"rgb",r=(e==null?void 0:e.num)??0;if(r===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 n=[];for(let u=0;unew Promise(t=>setTimeout(t,e)),Ee=(e,t=200,r=!1)=>{let n,i=t,o;return function(){n&&clearTimeout(n),r?(n||e.call(o,...arguments),n=setTimeout(()=>n=null,i)):n=setTimeout(()=>e.call(o,...arguments),i)}},Fe=(e,t=1e3)=>{let r;return function(){r||(r=setTimeout(()=>{e.call(void 0,...arguments),r=null},t))}},Je=()=>{let e=navigator.userAgent.toLowerCase(),t=e.match(/midp/i)=="midp",r=e.match(/ucweb/i)=="ucweb",n=e.match(/android/i)=="android",i=e.match(/iphone os/i)=="iphone os",o=e.match(/windows ce/i)=="windows ce",u=e.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",f=e.match(/windows mobile/i)=="windows mobile";return t||r||n||i||o||u||f},je=(e,t="_blank")=>{let r=document.createElement("a");r.setAttribute("href",e),r.setAttribute("target",t),r.setAttribute("rel","noreferrer noopener"),r.setAttribute("id","external");let n=document.getElementById("external");n&&document.body.removeChild(n),document.body.appendChild(r),r.click(),r.remove()};function Ke(e,t,r,n){ue(e).then(i=>{Se(i,t,r,n)})}function Se(e,t,r,n){let i=ce(e);Ae(i,t,r,n)}function Ae(e,t,r,n){let i=typeof n<"u"?[n,e]:[e],o=new Blob(i,{type:r||"application/octet-stream"}),u=window.URL.createObjectURL(o),f=document.createElement("a");f.style.display="none",f.href=u,f.setAttribute("download",t),typeof f.download>"u"&&f.setAttribute("target","_blank"),document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(u)}function Ye(e,t,r="_self"){let n=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,i=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(n||i){let o=document.createElement("a");if(o.href=e,o.target=r,o.download!==void 0&&(o.download=t||e.substring(e.lastIndexOf("/")+1,e.length)),document.createEvent){let u=document.createEvent("MouseEvents");return u.initEvent("click",!0,!0),o.dispatchEvent(u),!0}}return e.indexOf("?")===-1&&(e+="?download"),je(e,r),!0}function Ce(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r of Object.keys(e))if(!Y(e[r],t[r]))return!1;return!0}function Le(e,t){if(!e||!t)return!1;let{length:r}=e;if(r!==t.length)return!1;for(let n=0;n{if(e.install=r=>{for(let n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(let[r,n]of Object.entries(t))e[r]=n;return e},G={};q(G,{Fs:()=>H});V(G,H);var z=class{constructor(e){U(this,"storage");this.storage=e}setItem(e,t){S(this.storage)||this.storage.setItem(e,JSON.stringify(t))}getItem(e){if(!S(this.storage))return JSON.parse(this.storage.getItem(e))}removeItem(e){S(this.storage)||this.storage.removeItem(e)}clear(){S(this.storage)||this.storage.clear()}},P=class extends z{constructor(e){super(e)}},Xe=()=>K?new P(window.localStorage):new P(""),Ze=()=>K?new z(window.sessionStorage):new z("");function Qe(e,t){return F(t)?e.substring(0,e.indexOf(t)):""}function Me(e){if(!be(e))return console.error(`${e}不符合超链接规范`),{};let t=e.indexOf("?"),r=e.slice(t+1).split("&"),n={};for(let i=0;it.some(n=>n===r))}var tt=(...e)=>[...e].reduce((t,r)=>t.filter(n=>r.includes(n))),s={};q(s,{Vue:()=>Vue});V(s,Vue);var ke=["class","style"],Re=/^on[A-Z]/;function $e(e){return Object.keys(e).map(t=>[t,e[t]])}function rt(e={}){let t=(0,s.getCurrentInstance)();if(!t)return{};let{excludeListeners:r=!1,excludeKeys:n=[]}=e,i=(0,s.shallowRef)({}),o=n.concat(ke);return t.attrs=(0,s.reactive)(t.attrs),(0,s.watchEffect)(()=>{let u=$e(t.attrs).reduce((f,[v,x])=>(!o.includes(v)&&!(r&&Re.test(v))&&(f[v]=x),f),{});i.value=u}),i}function _(e){(0,s.getCurrentInstance)()&&(0,s.onUnmounted)(e)}var nt=()=>{let e=(0,s.ref)(!1),t,r=()=>{e.value=document.documentElement.classList.contains("dark")};return _(()=>{t.takeRecords(),t.disconnect()}),(0,s.onBeforeMount)(()=>{r(),t=new MutationObserver(r),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:e}};function ze(){let{appContext:{config:{globalProperties:e}}}=(0,s.getCurrentInstance)();return e}var ot=(e,t)=>{let r=(t==null?void 0:t.theme)??(0,s.ref)("default"),n=(t==null?void 0:t.tooltipId)??"tooltipElement",i=ze().$echarts,o=null,u=(0,s.ref)({}),f=(0,s.ref)(),v=(0,s.computed)(()=>r.value!=="dark"?u.value:{backgroundColor:"transparent",...u.value});function x(l){let b=(0,s.unref)(e);!b||!(0,s.unref)(b)||(o=i.init(b,l))}function E(l,...b){var y;if(u.value=l,f.value=b,((y=(0,s.unref)(e))==null?void 0:y.offsetHeight)===0){$().then(()=>E((0,s.unref)(v),...b));return}(0,s.nextTick)(()=>{$().then(()=>{!o&&x(r.value),(l.clear??!0)&&d(),o==null||o.setOption((0,s.unref)(v)),b&&b.map(c=>{(c==null?void 0:c.type)!=="zrender"&&typeof(c==null?void 0:c.callback)=="function"&&(o==null||o.on(c==null?void 0:c.name,c!=null&&c.query?c==null?void 0:c.query:"",h=>{c==null||c.callback(h)})),(c==null?void 0:c.type)==="zrender"&&typeof(c==null?void 0:c.callback)=="function"&&(o==null||o.getZr().on(c==null?void 0:c.name,h=>{h.target||(c==null||c.callback(h))}))}),l!=null&&l.addTooltip&&N(l.addTooltip)})})}function d(){o&&o.clear()}function a(){o.resize()}function p(l){let b=(l==null?void 0:l.type)??"default",y=(l==null?void 0:l.opts)??{};o.showLoading(b,y)}function w(){o.hideLoading()}function O(l){o.appendData(l)}function m(){return o.getWidth()}function g(){return o.getHeight()}function j(){return o||x(r.value),o}function X(){return o.getDom()}function Z(){return o.getOption()}function Q(l){return o.getDataURL(l)}function M(l){return o.getConnectedDataURL(l)}function N(l){if(!l)return;let b=document.querySelector("html");if(!document.getElementById(n)){let h=document.createElement("div");h.setAttribute("id",n),h.style.display="block",b.appendChild(h)}let y=document.querySelector(`#${n}`),c=h=>{if((h==null?void 0:h.targetType)!=="axisLabel")return;let ee=` 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; `;y.style.cssText=ee,y.innerHTML=h==null?void 0:h.value,b.onmousemove=T=>{let te=T.pageX-10,re=T.pageY+15;y.style.top=re+"px",y.style.left=te+"px"}};o==null||o.on("mouseover",h=>{(l==="x"&&h.componentType=="xAxis"||l==="y"&&h.componentType=="yAxis"||l.toString()==="true"&&h.componentType.includes("Axis"))&&c(h)}),o==null||o.on("mouseout",()=>{b.onmousemove=null,y.style.cssText="display:none"})}(0,s.watch)(()=>r.value,l=>{o&&(o.dispose(),x(l),E(u.value,...f.value))});function D(){var l;!o||$(((l=u.value)==null?void 0:l.delay)??300).then(()=>{a()})}return(0,s.onMounted)(()=>{(0,s.nextTick)(()=>{window.addEventListener("resize",D)})}),_(()=>{var l;window.removeEventListener("resize",D),o&&(o.dispose(),o=null,(l=document.querySelector(`#${n}`))==null||l.remove())}),{echarts:i,clear:d,resize:a,getDom:X,getWidth:m,getOption:Z,getHeight:g,addTooltip:N,getDataURL:Q,setOptions:E,appendData:O,getInstance:j,showLoading:p,hideLoading:w,getConnectedDataURL:M}},Ie=Symbol("watermark-dom"),at=(e=(0,s.ref)(document.body))=>{let t=Ie.toString(),r=(0,s.shallowRef)(),n=()=>{let d=(0,s.unref)(r);r.value=void 0;let a=(0,s.unref)(e);!a||d&&a.removeChild(d)};function i(d,a){let p=document.createElement("canvas"),w=(a==null?void 0:a.width)??250,O=(a==null?void 0:a.height)??100;Object.assign(p,{width:w,height:O});let m=p.getContext("2d");if(m){if(m.rotate(((a==null?void 0:a.rotate)??-10*Math.PI)/120),m.font=(a==null?void 0:a.font)??"15px Reggae One",(a==null?void 0:a.gradient)&&J(a==null?void 0:a.gradient)){let g=m.createLinearGradient(0,0,w,0);a==null||a.gradient.forEach(j=>{g.addColorStop(j.value,j.color)}),m.fillStyle=g}else m.fillStyle=(a==null?void 0:a.fillStyle)??"rgba(0, 0, 0, 0.15)";if(m.textAlign="left",m.textBaseline="middle",a!=null&&a.globalAlpha&&(m.globalAlpha=a.globalAlpha),a==null?void 0:a.shadowConfig){let{shadowConfig:g}=a;m.shadowBlur=g[0],m.shadowColor=(g==null?void 0:g[1])??"#000000",m.shadowOffsetX=(g==null?void 0:g[2])??0,m.shadowOffsetY=(g==null?void 0:g[3])??0}m.fillText(d,w/((a==null?void 0:a.fillTextWidth)??20),O/((a==null?void 0:a.fillTextHeight)??2))}return p.toDataURL("image/png")}function o(d={}){let a=(0,s.unref)(r);!a||(C(d.width)&&(a.style.width=`${d.width}px`),C(d.height)&&(a.style.height=`${d.height}px`),C(d.str)&&(a.style.background=`url(${i(d.str,d.attr)}) left top repeat`))}let u=Ee(()=>{let d=(0,s.unref)(e);if(!d)return;let{clientHeight:a,clientWidth:p}=d;o({height:a,width:p})}),f=(d,a)=>{var g;if((0,s.unref)(r))return o({str:d,attr:a}),t;let p=document.createElement("div");r.value=p,p.id=t,p.style.pointerEvents="none",p.style.top="0px",p.style.left="0px",p.style.position="absolute",p.style.zIndex=(a==null?void 0:a.zIndex)??"100000";let w=(0,s.unref)(e);if(!w)return t;let{clientHeight:O,clientWidth:m}=w;return o({str:d,width:m,height:O,attr:a}),(g=w==null?void 0:w.style)!=null&&g.position||(w.style.position="relative"),w.appendChild(p),t};function v(d,{str:a,attr:p}){d[0].removedNodes[0]&&d[0].removedNodes[0].id===t&&(r.value=void 0,f(a,p))}function x(d,a){let p={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(w=>v(w,{str:d,attr:a})).observe((0,s.unref)(e),p)}function E(d,a){f(d,a),window.addEventListener("resize",u),a!=null&&a.forever&&x(d,a),(0,s.getCurrentInstance)()&&n&&n()}return _(()=>{window.removeEventListener("resize",u)}),{clear:n,setWatermark:E}};export{S as B,tt as C,Be as G,Ue as H,$ as I,Pe as J,Qe as K,Y as L,Ye as N,Fe as O,Je as R,F as S,Se as W,H as _,je as a,be as b,Ke as c,We as d,ot as e,Ee as f,Ge as g,Ne as h,Ze as i,He as j,rt as k,at as l,De as m,qe as n,Te as o,L as p,Ae as q,ze as r,Xe as s,Ve as t,et as v,Me as y,nt as z};