2026-06-06 11:30:51 +03:30
|
|
|
|
import{o as Ot,c as Dr,L as YN,d as Ta,h as Le,a as q,F as ea,p as si,j as rt,i as al,w as Kr,b as Y,t as dt,M as UN,G as Ye,N as ZN,O as l2,P as u2,e as Xv,Q as xt,g as pe,R as sr,S as ad,T as mn,U as XN,V as c2,W as f2,X as St,x as v2,Y as qN,Z as jN,$ as Wy,a0 as h2,a1 as d2,a2 as p2,a3 as KN,I as Ne,y as fn,z as ys,a4 as c_,_ as Xn}from"./index-d35b2fe0.js";import{B as QN,_ as JN}from"./button.vue_vue_type_style_index_0_lang-cc92a672.js";import{_ as eB}from"./BasicSelect.vue_vue_type_style_index_0_lang-f6f0c108.js";import{_ as tB,w as Dn}from"./_plugin-vue_export-helper-43ffde73.js";import{T as zu,K as mt,i as rB,a as aB,s as nB,u as g2}from"./shallowequal-ea4257d9.js";import{I as cw}from"./Icon-f953806c.js";import{T as iB,f as oB,d as yt,u as sB,c as lB,a as uB,w as cB,l as fB,b as vB,e as hB,g as dB,h as pB,C as y2,i as m2,j as gB,m as nr}from"./index-46a03291.js";import{c as yB,o as mB}from"./vnode-aa932a38.js";import{u as Fa,a as fw}from"./useState-5645ad4c.js";import{u as _2}from"./FormItemContext-02f2f90e.js";import{u as _B}from"./usePrice-7afab779.js";import{a as vn}from"./useDataTime-a21b0163.js";import"./toArray-2d2bb2c2.js";import"./pickAttrs-389dae7d.js";const SB={},wB={class:"bg-gradient"};function xB(r,t){return Ot(),Dr("div",wB,[YN(r.$slots,"default")])}const Fu=tB(SB,[["render",xB]]),vw="/assets/users4-80585f51.svg",hw="/assets/users3-3a96ddd8.svg",op="/assets/users5-1dc3f500.svg",bB="/assets/users2-8002992a.svg",CB={class:"grid grid-cols-1 md:grid-cols-4 gap-3"},TB={class:"flex"},DB=["src","alt"],MB={class:"flex flex-col justify-between w-full mr-2"},AB={class:"text-base font-bold"},IB={class:"flex items-center justify-end"},LB={class:"text-base font-bold"},PB={class:"mr-1"},kB={class:"grid grid-cols-1 md:grid-cols-4 gap-3 mt-3"},RB={class:"flex"},EB=["src","alt"],OB={class:"flex flex-col justify-between w-full mr-2"},NB={class:"text-base font-bold"},BB={class:"flex items-center justify-end"},VB={class:"text-base font-bold"},zB={class:"mr-1"},FB=Ta({__name:"Header",props:{statistics:{}},setup(r){const t=r,e=Le(()=>{var i,o,s,l;return[{title:"تعداد کاربران",alt:"sales-number",image:bB,value:((i=t.statistics.count_sale_order)==null?void 0:i.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران جدید 7 روز گذشته",alt:"new-users-last-7-days",image:op,value:((o=t.statistics.new_users_last_7_days)==null?void 0:o.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال این Ù‡Ù�ته",alt:"active-users-saturday-to-friday",image:hw,value:((s=t.statistics.active_users_saturday_to_friday)==null?void 0:s.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال این ماه",alt:"active-users-jalali-month",image:vw,value:((l=t.statistics.active_users_jalali_month)==null?void 0:l.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"}]}),a=Le(()=>{var i,o,s;return[{title:"کاربران جدید امروز",alt:"customers",image:op,value:t.statistics.new_customer,unit:"Ù†Ù�ر"},{title:"کاربران جدید 30 روز گذشته",alt:"new-users-last-30-days",image:op,value:((i=t.statistics.new_users_last_30_days)==null?void 0:i.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال Ù‡Ù�ته گذشته",alt:"active-users-last-week",image:hw,value:((o=t.statistics.active_users_last_week)==null?void 0:o.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال ماه گذشته",alt:"active-users-last-month",image:vw,value:((s=t.statistics.active_users_last_month)==null?void 0:s.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"}]}),n=i=>({"تعداد کاربران":"این عدد تعداد Ú©Ù„ کاربران ثبت‌نام شده در سیستم از اول تا ØØ§Ù„ا را نشان می‌دهد","کاربران جدید 7 روز گذشته":"این عدد تعداد کاربرانی است Ú©Ù‡ در 7 روز گذشته ثبت‌نام کرده‌اند","کاربران Ù�عال این Ù‡Ù�ته":"این عدد تعداد کاربرانی است Ú©Ù‡ در این Ù‡Ù�ته (از شنبه تا جمعه) ØØ¯Ø§Ù
|
2026-06-01 18:38:29 +03:30
|
|
|
|
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.
|
2026-06-06 11:30:51 +03:30
|
|
|
|
***************************************************************************** */var Jy=function(r,t){return Jy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Jy(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var dz=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),pz=function(){function r(){this.browser=new dz,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}(),ni=new pz;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ni.wxa=!0,ni.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ni.worker=!0:!ni.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ni.node=!0,ni.svgSupported=!0):gz(navigator.userAgent,ni);function gz(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const qe=ni;var I_=12,H2="sans-serif",kn=I_+"px "+H2,yz=20,mz=100,_z="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Sz(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-yz)/mz;t[a]=n}return t}var wz=Sz(_z),wa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,a){if(!r){var n=wa.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||kn),r.measureText(e);e=e||"",a=a||kn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||I_,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=wz[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}},$2=en(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),W2=en(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Dl=Object.prototype.toString,ld=Array.prototype,xz=ld.forEach,bz=ld.filter,L_=ld.slice,Cz=ld.map,Sw=function(){}.constructor,lf=Sw?Sw.prototype:null,P_="__proto__",Tz=2311;function Y2(){return Tz++}function k_(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function me(r){if(r==null||typeof r!="object")return r;var t=r,e=Dl.call(r);if(e==="[object Array]"){if(!Hu(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=me(r[a])}}else if(W2[e]){if(!Hu(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!$2[e]&&!Hu(r)&&!fl(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==P_&&(t[o]=me(r[o]))}return t}function Re(r,t,e){if(!be(t)||!be(r))return e?me(t):r;for(var a in t)if(t.hasOwnProperty(a)&
|
|
|
|
|
|
`),i=n.length;if(i===1)return Xw(n[0],t,e,a);for(var o=new Ce(0,0,0,0),s=0;s<n.length;s++){var l=Xw(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function hl(r,t,e,a){return e==="right"?a?r+=t:r-=t:e==="center"&&(a?r+=t/2:r-=t/2),r}function Bo(r,t,e,a){return e==="middle"?a?r+=t/2:r-=t/2:e==="bottom"&&(a?r+=t:r-=t),r}function Ec(r){return Qa(r).stWideCharWidth}function ba(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function oh(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,c="left",f="top";if(a instanceof Array)l+=ba(a[0],e.width),u+=ba(a[1],e.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var kp="__zr_normal__",Rp=rn.concat(["ignore"]),q5=en(rn,function(r,t){return r[t]=!0,r},{ignore:!1}),bs={},j5=new Ce(0,0,0,0),yf=[],H_=function(){function r(t){this.id=Y2(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var c=a.position!=null,f=a.autoOverflowArea,v=void 0;if((f||c)&&(v=j5,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(bs,a,v):oh(bs,a,v),i.x=bs.x,i.y=bs.y,o=bs.align,s=bs.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ba(h[0],v.width),p=ba(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+p+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var m=y.overflowRect=y.overflowRect||new Ce(0,0,0,0);i.getLocalTransform(yf),xa(yf,yf),Ce.copy(m,v),m.applyTransform(yf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,w=void 0,x=void 0;_&&this.canBeInsideText()?(S=a.insideFill,w=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),x=!0)):(S=a.outsideFill,w=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||w!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=w,y.autoStroke=x,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=Or,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cm:bm},r.prototype.getOutsid
|
2026-06-01 18:38:29 +03:30
|
|
|
|
* 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
|
2026-06-06 11:30:51 +03:30
|
|
|
|
*/var Ev={},CI={};function t3(r){delete CI[r]}function r3(r){if(!r)return!1;if(typeof r=="string")return rh(r,1)<xm;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=rh(t[n].color,1);return e/=a,e<xm}return!1}var a3=function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new v5,o=a.renderer||"canvas";Ev[o]||(o=He(Ev)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Ev[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!qe.node&&!qe.worker&&!l?new Y5(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?qe.touchEventsSupported:!!c,v=44,h;f&&(h=de(a.pointerSize,v)),this.handler=new s5(i,s,u,s.root,h),this.animation=new B5({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=r3(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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,a=Ks();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Ks();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):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._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _e&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t3(this.id))},r}();function qw(r,t){var e=new a3(Y2(),r,t);return CI[e.id]=e,e}function n3(r,t){Ev[r]=t}var Tm;function i3(r){if(typeof Tm=="function
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`);i=GI(e,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)HI(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`),r.isTruncated=s}function GI(r,t,e,a){a=a||{};var n=$({},a);e=de(e,"..."),n.maxIterations=de(a.maxIterations,2);var i=n.minChar=de(a.minChar,0),o=n.fontMeasureInfo=Qa(t),s=o.asciiCharWidth;n.placeholder=de(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var c=Ja(o,e);return c>l&&(e="",c=0),l=r-c,n.ellipsis=e,n.ellipsisWidth=c,n.contentWidth=l,n.containerWidth=r,n}function HI(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ja(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?Y3(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ja(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Y3(r,t,e){for(var a=0,n=0,i=r.length;n<i&&a<t;n++)a+=SI(e,r.charCodeAt(n));return n}function U3(r,t,e,a){var n=X_(r),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,c=i==="truncate",f=Ec(u),v=de(t.lineHeight,f),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&e!=null&&(p=e-s);var g=t.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?$I(n,t.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
|
|
|
|
|
|
`):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&c&&p!=null)for(var S=GI(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},x=0;x<y.length;x++)HI(w,y[x],S),y[x]=w.textLine,d=d||w.isTruncated;for(var b=g,T=0,C=Qa(u),x=0;x<y.length;x++)T=Math.max(Ja(C,y[x]),T);p==null&&(p=T);var D=p;return b+=l,D+=s,{lines:y,height:g,outerWidth:D,outerHeight:b,lineHeight:v,calculatedLineHeight:f,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var Z3=function(){function r(){}return r}(),nx=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),X3=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function q3(r,t,e,a,n){var i=new X3,o=X_(r);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;c==null&&e!=null&&(c=e-l);var f=t.height;f==null&&a!=null&&(f=a-u);for(var v=t.overflow,h=(v==="break"||v==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:v==="breakAll"}:null,d=Vp.lastIndex=0,p;(p=Vp.exec(o))!=null;){var g=p.index;g>d&&zp(i,o.substring(d,g),t,h),zp(i,p[2],t,h,p[1]),d=Vp.lastIndex}d<o.length&&zp(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=v==="truncate",w=t.lineOverflow==="truncate",x={};function b(Ae,Be,he){Ae.width=Be,Ae.lineHeight=he,m+=he,_=Math.max(_,Be)}e:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],D=0,M=0,L=0;L<C.tokens.length;L++){var I=C.tokens[L],P=I.styleName&&t.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,O=I.font=P.font||t.font;I.contentHeight=Ec(O);var k=de(P.height,I.contentHeight);if(I.innerHeight=k,R&&(k+=R[0]+R[2]),I.height=k,I.lineHeight=Vr(P.lineHeight,t.lineHeight,k),I.align=P&&P.align||n,I.verticalAlign=P&&P.verticalAlign||"middle",w&&f!=null&&m+I.lineHeight>f){var N=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),b(C,M,D),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<N;break e}var B=P.width,F=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")I.percentWidth=B,y.push(I),I.contentWidth=Ja(Qa(O),I.text);else{if(F){var H=P.backgroundColor,j=H&&H.image;j&&(j=$3(j),yd(j)&&(I.width=Math.max(I.width,j.width*k/j.height)))}var ee=S&&c!=null?c-M:null;ee!=null&&ee<I.width?!F||ee<E?(I.text="",I.width=I.contentWidth=0):(W3(x,I.text,ee-E,O,t.ellipsis,{minChar:t.truncateMinChar}),I.text=x.text,i.isTruncated=i.isTruncated||x.isTruncated,I.width=I.contentWidth=Ja(Qa(O),I.text)):I.contentWidth=Ja(Qa(O),I.text)}I.width+=E,M+=I.width,P&&(D=Math.max(D,I.lineHeight))}b(C,M,D)}i.outerWidth=i.width=de(c,_),i.outerHeight=i.height=de(f,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var I=y[T],ce=I.percentWidth;I.width=parseInt(ce,10)/100*i.width}return i}function zp(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,c,f;if(a){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ba(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(c=t.split(`
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`),u=!0),a.accumWidth=d}else{var p=$I(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}c||(c=t.split(`
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`));for(var g=Qa(l),y=0;y<c.length;y++){var m=c[y],_=new Z3;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[y]:Ja(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new nx)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=_:(m||!w||i)&&S.push(_)}else s.push(new nx([_]))}}function j3(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var K3=en(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Q3(r){return j3(r)?!!K3[r]:!0}function $I(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,f=Qa(t),v=0;v<r.length;v++){var h=r.charAt(v);if(h===`
|
|
|
|
|
|
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=SI(f,h.charCodeAt(0)),p=a?!1:!Q3(h);if(i.length?c+d>e:n+c+d>e){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=h,c=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}c+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}function ix(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;Ce.set(ox,hl(e,o,n),Bo(a,s,i),o,s),Ce.intersect(t,ox,null,sx);var l=sx.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=hl(l.x,l.width,n,!0),r.baseY=Bo(l.y,l.height,i,!0)}}var ox=new Ce(0,0,0,0),sx={outIntersectRect:{},clamp:!0};function X_(r){return r!=null?r+="":r=""}function J3(r){var t=X_(r.text),e=r.font,a=Ja(Qa(e),t),n=Ec(e);return Am(r,a,n,null)}function Am(r,t,e,a){var n=new Ce(hl(r.x||0,t,r.textAlign),Bo(r.y||0,e,r.textBaseline),t,e),i=a??(WI(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function WI(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Im="__zr_style_"+Math.round(Math.random()*10),Vo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},md={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Vo[Im]=!0;var lx=["z","z2","invisible"],eF=["invisible"],tF=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=He(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&rF(this,e,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Ce(0,0,0,0)),a?Ce.applyTransform(e,n,a):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Ce(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:$(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Mu,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Mu)},t.prototype.styleUpdated=function(){this.__dirty&=~Mu},t.prototype.createStyle=function(e){return fd(Vo,e)},t.prototype
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`];function Pt(r,t){return t.type=r,t}function jm(r){return r.type==="section"}function NP(r){return jm(r)?y$:m$}function BP(r){if(jm(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=BP(n);i>=t&&(t=i+ +(a&&(!i||jm(n)&&!n.noHeader)))}),t}return 0}function y$(r,t,e,a){var n=t.noHeader,i=_$(BP(t)),o=[],s=t.blocks||[];cr(!s||Z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ue(u,l)){var c=new IP(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=NP(p)(y?$($({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):Km(a,o.join(""),n?e:i.html);if(n)return f;var v=Wm(t.header,"ordinal",r.useUTC),h=OP(a,r.renderMode).nameStyle,d=EP(a);return r.renderMode==="richText"?VP(r,v,h)+i.richText+f:Km(a,'<div style="'+h+";"+d+';">'+or(v)+"</div>"+f,e)}function m$(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=Z(S)?S:[S],X(S,function(w,x){return Wm(w,Z(h)?h[x]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,n),v=i?"":Wm(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=OP(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":VP(r,v,m))+(o?"":x$(r,d,p,g,_)):Km(a,(s?"":f)+(i?"":S$(v,!s,m))+(o?"":w$(d,p,g,_)),e)}}function yb(r,t,e,a,n,i){if(r){var o=NP(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function _$(r){return{html:p$[r],richText:g$[r]}}function Km(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=EP(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function S$(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+or(r)+"</span>"}function w$(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=Z(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return or(o)}).join(" ")+"</span>"}function VP(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function x$(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Z(t)?t.join(" "):t,i)}function zP(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Qo(a)}function FP(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var ug=function(){function r(){this.richTextStyles={},this._nextStyleNameId=LI()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=iH({color:e,type:t,renderMode:a,markerId:n});return oe(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};Z(e)?A(e,function(i){return $(a,i)}):$(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function GP(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=Z(s),u=zP(t,e),c,f,v,h;if(o>1||l&&!o){var d=b$(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=pl(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=W_(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Pt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Pt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ia(_),value:c,valueType:f,dataIndex:e})].concat(v||[])})}function b$(r,t,e,a,n){var i=t.getData(),o=en(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(f){c(pl(i,e,f),f)}):A(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Pt("nameValue",{markerType:
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return ZY(o,s)+(o!=="style"?or(l):l||"")+(i?""+e+X(i,function(u){return a(u)}).join(e)+e:"")+XY(o)}return a(r)}function qY(r,t,e){e=e||{};var a=e.newline?`
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`:"",n=" {"+a,i=a+"}",o=X(He(r),function(l){return l+n+X(He(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=X(He(t),function(l){return"@keyframes "+l+n+X(He(t[l]),function(u){return u+n+X(He(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function g0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dC(r,t,e,a){return Ht("svg","root",{width:r,height:t,xmlns:cR,"xmlns:xlink":fR,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var jY=0;function hR(){return jY++}var pC={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},mo="transform-origin";function KY(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new uR;return n.reset(pI(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function QY(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[mo]=e+"px "+a+"px")}var JY={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dR(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function e9(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=g0(e.zrId);u.animation=!0,zd(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,v=He(c),h=v.length;if(h){o=v[h-1];var d=c[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=dR(n,e);return i.replace(o,s)}}function gC(r){return oe(r)?pC[r]?"cubic-bezier("+pC[r]+")":z_(r)?r:"":""}function zd(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof Dd){var s=e9(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],f=[c.getMaxTime()/1e3+"s"],v=gC(c.getClip().easing),h=c.getDelay();v?f.push(v):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function p(m){var _=m[1],S=_.length,w={},x={},b={},T="animation-timing-function";function C(he,fe,U){for(var z=he.getTracks(),Q=he.getMaxTime(),ie=0;ie<z.length;ie++){var W=z[ie];if(W.needsAnimate()){var J=W.keyframes,re=W.propName;if(U&&(re=U(re)),re)for(var ge=0;ge<J.length;ge++){var ae=J[ge],te=Math.round(ae.time/Q*100)+"%",K=gC(ae.easing),Te=ae.rawValue;(oe(Te)||$e(Te))&&(fe[te]=fe[te]||{},fe[te][re]=ae.rawValue,K&&(fe[te][T]=K))}}}}for(var D=0;D<S;D++){var M=_[D],L=M.targetName;L?L==="shape"&&C(M,x):!a&&C(M,w)}for(var I in w){var P={};ih(P,r),$(P,w[I]);var R=gI(P),E=w[I][T];b[I]=R?{transform:R}:{},QY(b[I],P),E&&(b[I][T]=E)}var O,k=!0;for(var I in x){b[I]=b[I]||{};var N=!O,E=x[I][T];N&&(O=new an);var B=O.len();O.reset(),b[I].d=KY(r,x[I],O);var F=O.len();if(!N&&B!==F){k=!1;break}E&&(b[I][T]=E)}if(!k)for(var I in b)delete b[I].d;if(!a)for(var D=0;D<S;D++){var M=_[D],L=M.targetName;L==="style"&&C(M,b,function(z){return JY[z]})}for(var H=He(b),j=!0,ee,D=1;D<H.length;D++){var ce=H[D-1],Ae=H[D];if(b[ce][mo]!==b[Ae][mo]){j=!1;break}ee=b[ce][mo]}if(j&&ee){for(var I in b)b[I][mo]&&delete b[I][mo];t[mo]=ee}if(Je(H,function(he){return He(b[he]).length>0}).length){var Be=dR(b,e);return Be+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+hR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function t9(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};yC(a,t,e,!0)}else{var n=r.states.emphasis&&r.stat
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`+g.message)}var n=new _e;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,v=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var h=a.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,v=h.height)}l=this._boundingRect=new Ce(u,c,f,v)}if(s){var d=vE(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Ve({shape:l.plain()}));var p=[];return A(e.named,function(g){m8.get(g.svgNodeTagLower)!=null&&(p.push(g),S8(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function S8(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function w8(r){var t=[],e=ve();return A(r,function(a){if(a.namedFrom==null){var n=new iY(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var M0=[126,25],wT="�海诸岛",_o=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var yo=0;yo<_o.length;yo++)for(var Os=0;Os<_o[yo].length;Os++)_o[yo][Os][0]/=10.5,_o[yo][Os][1]/=-10.5/.75,_o[yo][Os][0]+=M0[0],_o[yo][Os][1]+=M0[1];function x8(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===wT)return;t.push(new Zk(wT,X(_o,function(a){return{type:"polygon",exterior:a}}),M0))}}var b8={�海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function C8(r,t){if(r==="china"){var e=b8[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var T8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function D8(r,t){r==="china"&&t.name==="�湾"&&t.geometries.push({type:"polygon",exterior:T8[0]})}var M8="name",A8=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=ve(),this._mapName=t,this._specialAreas=a,this._geoJSON=L8(e)}return r.prototype.load=function(t,e){e=e||M8;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:I8(n)})}var i=ve(),o=[];return A(a.regions,function(s){var l=s.name;t&&ue(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new Ce(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?sY(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`+i.message)}return x8(e,n),A(n,function(i){var o=i.name;C8(e,i),D8(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function I8(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function L8(r){return oe(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var pu=ve();const zn={registerMap:function(r,t,e){if(t.svg){var a=new _8(r,t.svg);pu.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new A8(r,n,e);pu.set(r,a)}},getGeoResource:function(r){return pu.get(r)},getMapForUser:function(r){var t=pu.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=pu.get(r);if(a)return a.load(t,e)}};var aS=["rect","circle","line","ellipse","polygon","polyline","path"],P8=ve(aS),k8=ve(aS.concat(["g"])),R8=ve(aS.concat(["g"])),hE=ze();function ev(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function xT(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var E8=function(){function r(t){var e=this.group=new _e,a=this._transformGroup=new _e;e.add(a),this.uid=El("ec_map_draw"),this._controller=new ds(t.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new _e),a.add(this._svgGroup=new _e)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===t&&(s=_.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,f=l.getTransformInfo(),v=f.raw,h=f.roam,d=!u.childAt(0)||i,p=t.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new Ve({shape:g.clone()}))):this.group.removeClipPath(),d?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Ze(c,h,t);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ve(),a=ve(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],p);y&&d.push(y)}return d}function v(h){return{shape:{points:f(h)}}}n.removeAll(),A(t.geo.regions,function(h){var d=h.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new _e),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),a.set(d,{dataIdx:y,regionModel:m})}var S=[],w=[];A(h.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=AT(C,u)),A(C,function(M){S.push(new wr(v(M)))})}else{var D=T.points;u&&(D=AT(D,u,!0)),A(D,function(M){w.push(new fr(v(M)))})}});var x=c(h.getCenter(),l&&l.project);function b(T,C){if(T.length){var D=new Dd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(D),bT(t,D,y,m),CT(t,D,d,m,o,y,x),C&&(xT(D),A(D.states,xT))}}b(S),b(w,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;TT(t,h,d,y,o,g),DT(t,h,d,y,o),MT(t,h,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=ve(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,h=l.getRegionModel(s);P8.get(c)!=null&&f instanceof la&&bT(t
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`))}),t.join(`
|
|
|
|
|
|
|
|
|
|
|
|
`+Xd+`
|
|
|
|
|
|
|
|
|
|
|
|
`)}function ate(r){return X(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Cl:"")+n.join(Cl))}),a.join(`
|
|
|
|
|
|
`)}).join(`
|
|
|
|
|
|
|
|
|
|
|
|
`+Xd+`
|
|
|
|
|
|
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`)}function nte(r){var t=tte(r);return{value:Je([rte(t.seriesGroupByCategoryAxis),ate(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
2026-06-01 18:38:29 +03:30
|
|
|
|
|
|
|
|
|
|
`+Xd+`
|
|
|
|
|
|
|
|
|
|
|
|
`),meta:t.meta}}function Xh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ite(r){var t=r.slice(0,r.indexOf(`
|
|
|
|
|
|
`));if(t.indexOf(Cl)>=0)return!0}var q0=new RegExp("["+Cl+"]+","g");function ote(r){for(var t=r.split(/\n+/g),e=Xh(t.shift()).split(q0),a=[],n=X(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Xh(t[i]).split(q0);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function ste(r){for(var t=r.split(/\n+/g),e=Xh(t.shift()),a=[],n=0;n<t.length;n++){var i=Xh(t[n]);if(i){var o=i.split(q0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function lte(r,t){var e=r.split(new RegExp(`
|
|
|
|
|
|
*`+Xd+`
|
2026-06-06 11:30:51 +03:30
|
|
|
|
*`,"g")),a={series:[]};return A(e,function(n,i){if(ite(n)){var o=ote(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=ste(n);a.series.push(o)}}),a}var ute=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||G.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),v=i.get("contentToOption"),h=nte(e);if(ye(f)){var d=f(a.getOption());oe(d)?u.innerHTML=d:fl(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function x(){n.removeChild(o),w._dom=null}sm(_,"click",x),sm(S,"click",function(){if(v==null&&f!=null||v!=null&&f==null){x();return}var b;try{ye(v)?b=v(u,a.getOption()):b=lte(c.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}b&&a.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:G.color.background,textColor:G.color.primary,textareaColor:G.color.background,textareaBorderColor:G.color.border,buttonColor:G.color.accent50,buttonTextColor:G.color.neutral00};return a},t}(ra);function cte(r,t){return X(r,function(e,a){var n=t&&t[a];if(be(n)&&!Z(n)){var i=be(e)&&!Z(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=xe(e,n),o&&delete e.name,e}else return e})}ln({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push($({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:cte(a.data,i)})}}),t.mergeOption(xe({series:e},r.newOption))});const fte=ute;var KO=A,QO=ze();function vte(r,t){var e=$S(r);KO(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function hte(r){var t=$S(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return KO(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function dte(r){QO(r).snapshots=null}function pte(r){return $S(r).length}function $S(r){var t=QO(r
|
2026-06-01 18:38:29 +03:30
|
|
|
|
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=De(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=wu([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new ug;y.marker=m.makeTooltipMarker("item",Qo(y.color),h);var _=fb(u.formatTooltip(c,!1,f)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?yb(w?$({valueFormatter:w},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=De(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(oe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=me(l),l.content=or(l.content));var f=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&f.push(v),f.push({formatter:l.content});var h=e.positionDefault,d=wu(f,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new ug;this._showOrMove(d,function(){var m=me(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(oe(v)){var g=e.ecModel.get("useUTC"),y=Z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Ld(y.axisValue,h,g)),h=QL(h,n,!0)}else if(ye(v)){var _=se(function(S,w){S===this._ticket&&(f.setContent(w,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;f.setContent(h,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||Z(a))return{color:i||o};if(!Z(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ye(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),Z(a))n=ne(a[0],u),i=ne(a[1],c);else if(be(a)){var p=a;p.width=f[0],p.height=f[1];var g=ct(p,{width:u,height:c});n=g.x,i=g.y,v=null,h=null}else if(oe(a)&&l){var y=Xte(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=Ute(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=JM(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=JM(h)?f[1]/2:h==="bottom"?f[1]:0),JO(e)){var y=Zte(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&A(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from
|
2026-06-01 18:38:29 +03:30
|
|
|
|
`)){var m=new wv;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!c.get(y))if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),b=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,w,b,x,f,i);T.on("click",Hs(mA,y,null,i,h)).on("mouseover",Hs(a_,_.name,null,i,h)).on("mouseout",Hs(n_,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var D=De(C);D.seriesIndex=_.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),c.set(y,!0)}else n.eachRawSeries(function(C){var D=this;if(!c.get(y)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(y))return;var L=M.indexOfName(y),I=M.getItemVisual(L,"style"),P=M.getItemVisual(L,"legendIcon"),R=Lr(I.fill);R&&R[3]===0&&(R[3]=.2,I=$($({},I),{fill:Ka(R,"rgba")}));var E=this._createItem(C,y,p,d,a,e,{},I,P,f,i);E.on("click",Hs(mA,null,y,i,h)).on("mouseover",Hs(a_,null,y,i,h)).on("mouseout",Hs(n_,null,y,i,h)),n.ssr&&E.eachChild(function(O){var k=De(O);k.seriesIndex=C.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),v&&E.eachChild(function(O){D.packEventData(O,a,C,p,y)}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};De(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();r_(e,function(u){var c=u.type,f=new Ue({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);$t(f,{normal:v,emphasis:h},{defaultText:u.title}),Fo(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=fae(c,i,l,u,h,g,v),w=new wv,x=i.getModel("textStyle");if(ye(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(vae({itemWidth:d,itemHeight:p,icon:c,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;oe(D)&&D?M=D.replace("{name}",a??""):ye(D)&&(M=D(a));var L=g?x.getTextColor():i.get("inactiveColor");w.add(new Ue({style:it(x,{text:M,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new Ve({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Hn({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),w.add(I),w.eachChild(function(R){R.silent=!0}),I.silent=!f,this.getContentGroup().add(w),Fo(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ho(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ho("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[y]=Math.max(c[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(pt);function fae(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),r_(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill
|
2026-06-06 11:30:51 +03:30
|
|
|
|
`||n==="")){var i=r.isSelected(n);ue(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function dae(r){r.registerAction("legendToggleSelect","legendselectchanged",Pe(bu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Pe(bu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Pe(bu,"inverseSelect")),r.registerAction("legendSelect","legendselected",Pe(bu,"select")),r.registerAction("legendUnSelect","legendunselected",Pe(bu,"unSelect"))}function fN(r){r.registerComponentModel(t_),r.registerComponentView(cN),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,hae),r.registerSubTypeDefaulter("legend",function(){return"plain"}),dae(r)}var pae=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=ls(e);r.prototype.init.call(this,e,a,n),SA(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),SA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=zi(t_.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:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),t}(t_);function SA(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,nn(t,e,{type:"box",ignoreSize:!!n})}const gae=pae;var wA=_e,Oy=["width","height"],Ny=["x","y"],yae=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new wA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wA)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),v=Z(f)?f:[f,f];d("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new Ue({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Bc(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:se(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Oy[u],f=Ny[u],v=Oy[1-u],h=Ny[1-u];o&&Ho("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=me(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,v,h,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Ho(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Ho("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=de(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,c.setPosition(g),f.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),f.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=w[s],f.setClipPath(new Ve({
|
2026-06-01 18:38:29 +03:30
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${ge[0].name}</div>`;return ge.forEach(te=>{ae+=`<div style="color: ${te.color}; margin-top: 4px;">
|
|
|
|
|
|
${te.seriesName}: <span style="color: #fff; font-weight: bold;">${te.value.toLocaleString("fa-IR")}</span>
|
2026-06-06 11:30:51 +03:30
|
|
|
|
</div>`}),ae+="</div>",ae}},legend:{data:["همه شرکت کنندگان","واجدین شرایط"],top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:U,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:n.value==="daily"||n.value==="weekly"||n.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:ge=>Math.round(ge).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:[{name:"همه شرکت کنندگان",type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:z,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(239, 68, 68, 0.4)"},{offset:1,color:"rgba(239, 68, 68, 0.05)"}]}},lineStyle:{width:3,color:"#EF4444"},itemStyle:{color:"#EF4444",borderColor:"#fff",borderWidth:2}},{name:"واجدین شرایط",type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:Q,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(34, 197, 94, 0.4)"},{offset:1,color:"rgba(34, 197, 94, 0.05)"}]}},lineStyle:{width:3,color:"#22C55E"},itemStyle:{color:"#22C55E",borderColor:"#fff",borderWidth:2}}]};return J.setOption(re,!0),J},N=async()=>{try{const[U,z,Q,ie,W,J,re,ge,ae,te,K]=await Promise.allSettled([tz(),sz(),cz(),hz(),oz(10),fz(),rz(),az(),lz(),iz(),nz()]);U.status==="fulfilled"?(p.value.count_sale_order=U.value.total,p.value.new_customer=U.value.today):(p.value.count_sale_order=0,p.value.new_customer=0),z.status==="fulfilled"?(p.value.count_order=z.value.active_users_week,p.value.active_users_week=z.value.active_users_week,p.value.active_users_last_week=z.value.active_users_last_week,p.value.active_users_last_month=z.value.active_users_last_month,p.value.total_sale=String(z.value.active_users_month),p.value.active_users_saturday_to_friday=z.value.active_users_week,p.value.active_users_jalali_month=z.value.active_users_month):(p.value.count_order=0,p.value.active_users_week=0,p.value.active_users_last_week=0,p.value.active_users_last_month=0,p.value.total_sale="0",p.value.active_users_saturday_to_friday=0,p.value.active_users_jalali_month=0),Q.status==="fulfilled"?D.value=Q.value||[]:D.value=[],ie.status==="fulfilled"?C.value=ie.value||[]:C.value=[],W.status==="fulfilled"?(p.value.total_story_views=W.value.total_story_views,p.value.unique_story_viewers=W.value.unique_story_viewers,p.value.latest_story_views=W.value.latest_story_views,M.value=W.value.story_views_stats||[]):(p.value.total_story_views=0,p.value.unique_story_viewers=0,p.value.latest_story_views=0,M.value=[]),J.status==="fulfilled"?(p.value.total_competition_participants=J.value.total_competition_participants,p.value.eligible_competition_participants=J.value.eligible_competition_participants,p.value.latest_competition_participants=J.value.latest_competition_participants,p.value.latest_competition_eligible_participants=J.value.latest_competition_eligible_participants):(p.value.total_competition_participants=0,p.value.eligible_competition_participants=0,p.value.latest_competition_participants=0,p.value.latest_competition_eligible_participants=0),re.status==="fulfilled"?p.value.new_users_last_7_days=re.value:p.value.new_users_last_7_days=0,ge.status==="fulfilled"?p.value.new_users_last_30_days=ge.value:p.value.new_users_last_30_days=0,te.status==="fulfilled"?p.value.today_unique_story_viewers=te.value:p.value.today_unique_story_viewers=0,K.status==="fulfilled"?(p.value.this_week_story_views=K.value.story_view_week,p.value.today_total_story_views=K.value.story_view_last_week,p.value.this_month_jalali_story_views=K.value.story_view_month,p.value.total_story_viewers=K.value.uniqAllStoryView):(p.value.this_week_story_views=0,p.value.today_total_story_views=0,p.value.thi
|
2026-06-01 18:38:29 +03:30
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${ae[0].name}</div>`;return ae.forEach(K=>{te+=`<div style="color: ${K.color}; margin-top: 4px;">
|
|
|
|
|
|
${K.seriesName}: <span style="color: #fff; font-weight: bold;">${K.value.toLocaleString("fa-IR")}</span>
|
2026-06-06 11:30:51 +03:30
|
|
|
|
</div>`}),te+="</div>",te}},legend:{data:z.map(ae=>ae.name),top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:U,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:a.value==="daily"||a.value==="weekly"||a.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:ae=>Math.round(ae).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:re};return W.setOption(ge,!0),W},ce=async()=>{try{const U=new Date().toISOString().split("T")[0],z=o.value.map(async ae=>{const te={type:e.value,date:U,statType:ae};u.value&&c.value&&(te.startDate=u.value,te.endDate=c.value,delete te.date);const K=await ez(te);return{statType:ae,data:K||[]}}),Q=await Promise.all(z);let ie=[];const W={};o.value.forEach(ae=>{W[ae]=[]});const J=new Set;if(Q.forEach(({data:ae})=>{e.value==="hourly"?ae.forEach(te=>{if(te.hour!==void 0)J.add(String(te.hour));else if(te.day){const K=Number(te.hour)||0;J.add(`${te.day}_${K}`)}}):ae.forEach(te=>{const K=te.day||"";K&&J.add(K)})}),e.value==="hourly")for(let ae=0;ae<=24;ae++){const te=ae===24?"24:00":`${ae.toString().padStart(2,"0")}:00`;ie.push(te)}else Array.from(J).sort().forEach(te=>{if(e.value==="daily")ie.push(vn(te));else if(e.value==="weekly")try{const K=new Date(te+"T00:00:00"),Te=new Date(K);Te.setDate(K.getDate()+5);const Ge=vn(te)+" تا "+vn(Te.toISOString().split("T")[0]);ie.push(Ge)}catch{ie.push(te)}else if(e.value==="monthly"){const[K,Te]=te.split("-"),Ge=`${K}/${Te}`;ie.push(Ge)}});Q.forEach(({statType:ae,data:te})=>{const K={};e.value==="hourly"?ae==="total_views"?te.forEach(Te=>{const Ge=Number(Te.hour)||0,Ke=Number((Te==null?void 0:Te.views)||0),tt=String(Ge);K[tt]=(K[tt]||0)+Ke}):te.forEach(Te=>{const Ge=Te.day||"",Ke=Number(Te.hour)||0,tt=`${Ge}_${Ke}`,Hr=Number((Te==null?void 0:Te.views)||0);K[tt]=Hr}):te.forEach(Te=>{const Ge=Te.day||"",Ke=Number((Te==null?void 0:Te.views)||0);ae==="total_views"?K[Ge]=(K[Ge]||0)+Ke:K[Ge]=Ke}),ie.forEach(Te=>{let Ge=Te;if(e.value==="daily")Ge=nr(Te,"jYYYY/jMM/jDD").format("YYYY-MM-DD");else if(e.value==="weekly"){const tt=Te.split(" تا ");Ge=nr(tt[0],"jYYYY/jMM/jDD").format("YYYY-MM-DD")}else if(e.value==="monthly")Ge=nr(Te,"jYYYY/jMM").format("YYYY-MM");else if(e.value==="hourly")if(ae==="total_views")Ge=String(parseInt(Te.split(":")[0]));else{const tt=parseInt(Te.split(":")[0]);Ge=Object.keys(K).find(xr=>xr.endsWith(`_${tt}`))||String(tt)}const Ke=K[Ge]||0;W[ae].push(Math.round(Ke))})});const re=o.value.map(ae=>({name:ae==="cumulative_viewers"?"آمار بازدید کننده تجمیعی همه قصه ها":ae==="total_views"?"آمار بازدید همه قصه ها":"آمار بازدید کننده همه قصه ها",data:W[ae]||[],color:ae==="cumulative_viewers"?"#3B82F6":ae==="total_views"?"#F97316":"#22C55E"}));if(await mn(),!S.value){setTimeout(()=>{if(S.value){const ae=Ae(ie,re,S.value,b);ae&&(b=ae)}},100);return}const ge=Ae(ie,re,S.value,b);ge&&(b=ge)}catch{if(await mn(),S.value){const z=Ae([],[],S.value,b);z&&(b=z)}}},Ae=(U,z,Q,ie)=>{if(!Q)return ie;let W=ie;W||(W=yg(Q));const J={backgroundColor:"transparent",tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.8)",borderColor:"#3B82F6",borderWidth:1,textStyle:{color:"#fff",fontSize:12,fontFamily:"iran-sans"},axisPointer:{type:"line",lineStyle:{color:"#3B82F6",width:1,type:"dashed"},shadowStyle:{color:"rgba(59, 130, 246, 0.1)"}},formatter:re=>{let ge=`<div style="padding: 8px;">
|
2026-06-01 18:38:29 +03:30
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${re[0].name}</div>`;return re.forEach(ae=>{ge+=`<div style="color: ${ae.color}; margin-top: 4px;">
|
|
|
|
|
|
${ae.seriesName}: <span style="color: #fff; font-weight: bold;">${ae.value.toLocaleString("fa-IR")}</span>
|
2026-06-06 11:30:51 +03:30
|
|
|
|
</div>`}),ge+="</div>",ge}},legend:{data:z.map(re=>re.name),top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:U,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:e.value==="daily"||e.value==="weekly"||e.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:re=>Math.round(re).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:z.map(re=>({name:re.name,type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:re.data,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${re.color}40`},{offset:1,color:`${re.color}0D`}]}},lineStyle:{width:3,color:re.color,shadowColor:`${re.color}80`,shadowBlur:10,shadowOffsetY:5},itemStyle:{color:re.color,borderColor:"#fff",borderWidth:2,shadowBlur:8,shadowColor:`${re.color}80`},emphasis:{focus:"series",itemStyle:{color:re.color,borderColor:"#fff",borderWidth:3,shadowBlur:12,shadowColor:`${re.color}CC`}},animation:!0,animationDuration:1e3,animationEasing:"cubicOut"}))};return W.setOption(J,!0),W},Be=async()=>{var U,z;try{const Q=new Date().toISOString().split("T")[0],ie={type:n.value,date:Q};f.value&&v.value&&(ie.startDate=f.value,ie.endDate=v.value,delete ie.date);const W=await vz(ie);m.value=W||[];let J=[],re=[],ge=[];if(n.value==="hourly"){const te={};m.value.forEach(K=>{const Te=Number(K.hour)||0;te[Te]={total:Number((K==null?void 0:K.totalParticipants)||0),eligible:Number((K==null?void 0:K.eligibleParticipants)||0)}});for(let K=0;K<=24;K++){const Te=K===24?"24:00":`${K.toString().padStart(2,"0")}:00`;J.push(Te),re.push(((U=te[K])==null?void 0:U.total)||0),ge.push(((z=te[K])==null?void 0:z.eligible)||0)}}else if(n.value==="daily"){const te={};m.value.forEach(K=>{const Te=K.day||"";te[Te]={total:Number((K==null?void 0:K.totalParticipants)||0),eligible:Number((K==null?void 0:K.eligibleParticipants)||0)}}),Object.keys(te).sort().forEach(K=>{const Te=vn(K);J.push(Te),re.push(te[K].total),ge.push(te[K].eligible)})}else if(n.value==="weekly"){const te={};m.value.forEach(K=>{const Te=K.day||"";te[Te]={total:Number((K==null?void 0:K.totalParticipants)||0),eligible:Number((K==null?void 0:K.eligibleParticipants)||0)}}),Object.keys(te).sort().forEach(K=>{try{const Te=new Date(K+"T00:00:00"),Ge=new Date(Te);Ge.setDate(Te.getDate()+5);const Ke=vn(K)+" تا "+vn(Ge.toISOString().split("T")[0]);J.push(Ke),re.push(te[K].total),ge.push(te[K].eligible)}catch{J.push(K),re.push(te[K].total),ge.push(te[K].eligible)}})}else if(n.value==="monthly"){const te={};m.value.forEach(K=>{const Te=K.day||"";te[Te]={total:Number((K==null?void 0:K.totalParticipants)||0),eligible:Number((K==null?void 0:K.eligibleParticipants)||0)}}),Object.keys(te).sort().forEach(K=>{const[Te,Ge]=K.split("-"),Ke=`${Te}/${Ge}`;J.push(Ke),re.push(te[K].total),ge.push(te[K].eligible)})}if(await mn(),!w.value){setTimeout(()=>{if(w.value){const te=k(J,re,ge,w.value,T);te&&(T=te)}},100);return}const ae=k(J,re,ge,w.value,T);ae&&(T=ae)}catch{if(await mn(),w.value){const ie=k([],[],[],w.value,T);ie&&(T=ie)}}};v2(async()=>{await N(),await mn(),await j(),await ce(),await mn(),await new Promise(U=>setTimeout(U,100)),await Be(),window.addEventListener("resize",()=>{x&&x.resize(),b&&b.resize(),T&&T.resize()})}),ad(()=>{x&&(x.dispose(),x=null),b&&(b.dispose(),b=null),T&&(T.dispose(),T=null)});async function he(){if(C.value.length===0){const{message:U}=await Xn(()=>import("./index-b45fd7b4.js"),["assets/index-b45fd7b4.js","assets/index-63acc1cf.js","assets/index-d35b2fe0.js","assets/index-ee24fe8b.css","assets/vnode-aa932a38.js","assets/_plugin-vue_export-helper-43ffde73.js","assets/shallowequal-ea4257d9.js","assets/index-2f27e483.js","assets/Col-933c6a21.js","assets/button.vue_vue_type_style
|