0)return U.error(t("Config.Safe.index_95"));await H(De()),j()};return(a,t)=>{const l=Be,i=we,s=e;return ie(),fe(s,{label:a.$t("Config.Safe.index_91")},{content:oe((()=>[re("div",dt,[se(l,{value:de(Ee).limitIp,"onUpdate:value":t[0]||(t[0]=e=>de(Ee).limitIp=e),placeholder:a.$t("Config.Safe.index_92")},null,8,["value","placeholder"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Save")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_93")),1),re("span",rt,ue(a.$t("Config.Safe.index_94")),1)])),_:1},8,["label"])}}}),ut={class:"p-20px"},pt={class:"text-error"},ct={class:"text-error"},_t={class:"w-210px"},xt=Y({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(),l=ae(null),i=te({port:A(Ee.value.port)}),s={port:{trigger:["blur","input"],validator:()=>!!K(i.port)||new Error(t("Config.Safe.index_104"))}};return a({onConfirm:async()=>{var e;await n.value.validate(),await(null==(e=l.value)?void 0:e.validate());const a=De();a.port="".concat(i.port),await F(a),j("".concat(location.protocol,"//").concat(location.hostname,":").concat(i.port).concat(location.pathname))}}),(e,a)=>{const t=Ie,o=Le,d=he,r=m,f=Te;return ie(),le("div",ut,[se(t,{class:"mb-20px"},{default:oe((()=>[re("li",pt,ue(e.$t("Config.Safe.index_100")),1),re("li",ct,ue(e.$t("Config.Safe.index_101")),1)])),_:1}),se(r,{ref_key:"formRef",ref:l,model:de(i),rules:s},{default:oe((()=>[se(d,{label:e.$t("Config.Safe.index_96"),path:"port","label-width":"auto","label-style":{paddingLeft:"24px"}},{default:oe((()=>[re("div",_t,[se(o,{value:de(i).port,"onUpdate:value":a[0]||(a[0]=e=>de(i).port=e),min:1,max:65535,"show-button":!1,placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(f,{ref_key:"riskRef",ref:n},{default:oe((()=>[pe(ue(e.$t("Config.Safe.index_102"))+" ",1),re("a",{class:"bt-link",href:"https://www.aapanel.com/forum/d/599-how-to-release-the-aapanel-port",target:"_blank",onClick:Se((()=>!1),["stop"])},ue(e.$t("Config.Safe.index_103")),1)])),_:1},512)])}}}),mt={class:"w-260px"},gt={class:"text-error"},vt=Y({__name:"index",setup(a){const{t:t}=ee(),n=async()=>{l({title:t("Config.Safe.index_99"),width:400,footer:!0,component:xt})};return(a,t)=>{const l=Be,i=we,s=e;return ie(),fe(s,{label:a.$t("Config.Safe.index_96")},{content:oe((()=>[re("div",mt,[se(l,{value:de(Ee).port,disabled:!0,placeholder:""},null,8,["value"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_97")),1),re("span",gt,ue(a.$t("Config.Safe.index_98")),1)])),_:1},8,["label"])}}}),Ct={class:"px-20px pt-28px pb-8px"},St={class:"w-240px"},bt=Y({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({adminPath:Ee.value.adminPath}),i={adminPath:{trigger:["blur","input"],validator:()=>""!==l.adminPath.trim()||new Error(t("Config.Safe.index_108"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await X({admin_path:M(l.adminPath)}),Ee.value.adminPath=l.adminPath}}),(e,a)=>{const t=Be,s=he,o=m;return ie(),le("div",Ct,[se(o,{ref_key:"formRef",ref:n,model:de(l),rules:i},{default:oe((()=>[se(s,{label:e.$t("Config.Safe.index_105"),path:"adminPath"},{default:oe((()=>[re("div",St,[se(t,{value:de(l).adminPath,"onUpdate:value":a[0]||(a[0]=e=>de(l).adminPath=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),ht={class:"w-260px"},yt=Y({__name:"index",setup(a){const{t:t}=ee(),n=async()=>{l({title:t("Config.Safe.index_107"),width:440,footer:!0,component:bt})};return(a,t)=>{const l=Be,i=we,s=e;return ie(),fe(s,{label:a.$t("Config.Safe.index_105")},{content:oe((()=>[re("div",ht,[se(l,{value:de(Ee).adminPath,disabled:!0,placeholder:""},null,8,["value"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_106")),1)])),_:1},8,["label"])}}}),wt={class:"px-20px py-24px"},$t={class:"w-200px"},kt={class:"text-error"},Pt=Y({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({status_code:Ee.value.statusCode}),s={},o=[{value:403,label:t("Config.Safe.index_111")},{value:404,label:t("Config.Safe.index_112")},{value:416,label:t("Config.Safe.index_113")},{value:408,label:t("Config.Safe.index_114")},{value:400,label:t("Config.Safe.index_115")},{value:401,label:t("Config.Safe.index_116")}];return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await O({status_code:l.status_code}),Ee.value.statusCode=l.status_code}}),(e,a)=>{const t=Re,d=he,r=m,f=i;return ie(),le("div",wt,[se(r,{ref_key:"formRef",ref:n,model:de(l),rules:s},{default:oe((()=>[se(d,{label:e.$t("Config.Safe.index_118"),path:"adminPath"},{default:oe((()=>[re("div",$t,[se(t,{value:de(l).status_code,"onUpdate:value":a[0]||(a[0]=e=>de(l).status_code=e),options:o},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(f,null,{default:oe((()=>[re("li",kt,ue(e.$t("Config.Safe.index_119")),1)])),_:1})])}}}),Ut={class:"w-260px"},Bt=Y({__name:"index",setup(a){const{t:t}=ee(),n=new Map([[403,t("Config.Safe.index_111")],[404,t("Config.Safe.index_112")],[416,t("Config.Safe.index_113")],[408,t("Config.Safe.index_114")],[400,t("Config.Safe.index_115")],[401,t("Config.Safe.index_116")]]),i=be((()=>n.get(Ee.value.statusCode)||"--")),s=async()=>{l({title:t("Config.Safe.index_117"),width:420,footer:!0,component:Pt})};return(a,t)=>{const n=Be,l=we,o=e;return ie(),fe(o,{label:a.$t("Config.Safe.index_109")},{content:oe((()=>[re("div",Ut,[se(n,{value:de(i),disabled:!0,placeholder:""},null,8,["value"])]),se(l,{class:"ml-12px",type:"primary",onClick:s},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_110")),1)])),_:1},8,["label"])}}}),jt={class:"px-20px py-24px"},Lt={class:"w-120px"},Rt={class:"text-error"},zt=Y({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({day:Ee.value.pwdSetDay}),s={day:{trigger:["blur","input"],validator:()=>l.day<0?new Error(t("Config.Safe.index_128")):!(!l.day&&0!==l.day)||new Error(t("Config.Safe.index_129"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await q({expire:l.day}),He()}}),(e,a)=>{const t=Le,o=he,d=m,r=i;return ie(),le("div",jt,[se(d,{ref_key:"formRef",ref:n,model:de(l),rules:s},{default:oe((()=>[se(o,{label:e.$t("Config.Safe.index_120"),path:"day"},{default:oe((()=>[re("div",Lt,[se(t,{value:de(l).day,"onUpdate:value":a[0]||(a[0]=e=>de(l).day=e),min:0,"show-button":!1,placeholder:""},{suffix:oe((()=>[pe(ue(e.$t("Public.Unit.Day",de(l).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(r,{class:"mt-4px"},{default:oe((()=>[re("li",Rt,ue(e.$t("Config.Safe.index_126")),1),re("li",null,ue(e.$t("Config.Safe.index_127")),1)])),_:1})])}}}),Et={class:"w-260px"},It=Y({__name:"index",setup(a){const{t:t}=ee(),n=be((()=>{const{pwdSetDay:e,pwdExpireDay:a,pwdExpireTime:n}=Ee.value;return 0===e?t("Config.Safe.index_122"):t("Config.Safe.index_123",[G(n),a])})),i=async()=>{l({title:t("Config.Safe.index_124"),width:360,footer:!0,component:zt})};return(a,t)=>{const l=Be,s=we,o=e;return ie(),fe(o,{label:a.$t("Config.Safe.index_120")},{content:oe((()=>[re("div",Et,[se(l,{value:de(n),disabled:!0,placeholder:""},null,8,["value"])]),se(s,{class:"ml-12px",type:"primary",onClick:i},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_121")),1)])),_:1},8,["label"])}}}),Tt={class:"p-20px"},Dt={class:"mb-12px"},Ht={class:"mb-12px"},At={class:"mb-20px"},Ft=Y({__name:"set-add-result",props:{address:{default:""}},setup(e){const a=e,t=()=>{d(a.address)};return(e,a)=>{const n=Ke,l=we,s=i;return ie(),le("div",Tt,[re("div",Dt,ue(e.$t("Config.Safe.index_147")),1),re("div",Ht,[se(n,{value:e.address,readonly:"",rows:2},null,8,["value"])]),re("div",At,[se(l,{type:"primary",onClick:t},{default:oe((()=>[pe(ue(e.$t("Public.Btn.Copy")),1)])),_:1})]),se(s,null,{default:oe((()=>[re("li",null,ue(e.$t("Config.Safe.index_148")),1),re("li",null,ue(e.$t("Config.Safe.index_149")),1),re("li",null,ue(e.$t("Config.Safe.index_150")),1)])),_:1})])}}}),Kt={class:"p-20px pt-28px pb-8px"},Xt={class:"flex mb-24px"},Mt={class:"min-w-32px"},Ot={class:"flex-1 ml-16px"},qt={class:"leading-24px text-error text-14px"},Gt={class:"w-160px"},Jt=Y({__name:"set-add",emits:["refresh"],setup(e,{expose:a,emit:t}){const n=t,{t:i}=ee(),s=S(),o=ae(null),d=te({type:3,day:1}),r={day:{trigger:["blur","input"],validator:()=>0!==d.type||!(d.day<=0||d.day%1!=0)||new Error(i("Config.Safe.index_145"))}},f=e=>e%1==0,u=(e="")=>{const a="".concat(window.location.protocol,"//").concat(window.location.host),t="".concat(a,"/login?tmp_token=").concat(e);l({title:i("Config.Safe.index_146"),width:580,data:{address:t},component:Ft})};return a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate());const{message:a}=await J({expire_time:60*(0===d.type?24*d.day:d.type)*60+Math.floor(Date.now()/1e3)});k(a)&&(u(a.token),U.success(a.msg),n("refresh"))}}),(e,a)=>{const t=b,n=ze,l=Pe,i=he,u=Le,p=m;return ie(),le("div",Kt,[re("div",Xt,[re("div",Mt,[se(t,{name:"base-warning",size:"32",color:de(s).warningColor},null,8,["color"])]),re("div",Ot,[re("div",qt,[re("div",null,ue(e.$t("Config.Safe.index_140")),1),re("div",null,ue(e.$t("Config.Safe.index_141")),1)])])]),se(p,{ref_key:"formRef",ref:o,model:de(d),rules:r,"label-width":"140"},{default:oe((()=>[se(i,{label:e.$t("Config.Safe.index_142")},{default:oe((()=>[se(l,{value:de(d).type,"onUpdate:value":a[0]||(a[0]=e=>de(d).type=e)},{default:oe((()=>[se(n,{value:3},{default:oe((()=>[pe("3 "+ue(e.$t("Public.Unit.Hour",3)),1)])),_:1}),se(n,{value:6},{default:oe((()=>[pe("6 "+ue(e.$t("Public.Unit.Hour",6)),1)])),_:1}),se(n,{value:9},{default:oe((()=>[pe("9 "+ue(e.$t("Public.Unit.Hour",9)),1)])),_:1}),se(n,{value:12},{default:oe((()=>[pe("12 "+ue(e.$t("Public.Unit.Hour",12)),1)])),_:1}),se(n,{value:0},{default:oe((()=>[pe(ue(e.$t("Config.Safe.index_143")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),me(se(i,{label:e.$t("Config.Safe.index_144"),path:"day"},{default:oe((()=>[re("div",Gt,[se(u,{value:de(d).day,"onUpdate:value":a[1]||(a[1]=e=>de(d).day=e),min:1,"show-button":!1,validator:f},{suffix:oe((()=>[pe(ue(e.$t("Public.Unit.Day",de(d).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"]),[[ge,0===de(d).type]])])),_:1},8,["model"])])}}}),Nt={class:"p-20px h-500px"},Qt=Y({__name:"set-log",props:{id:{default:0}},setup(e){const a=e,{t:t}=ee(),{table:n,columns:l,setLoading:i}=r([{key:"type",title:t("Config.Safe.index_151"),width:120,ellipsis:{tooltip:!0}},{key:"addtime",title:t("Config.Safe.index_152"),width:140},{key:"log",title:t("Config.Safe.index_153"),ellipsis:{tooltip:!0}}]),s=async()=>{try{i(!0);const{message:e}=await N({id:a.id});n.data=C(e)?e:[]}finally{i(!1)}};return s(),(e,a)=>{const t=we,i=f,o=qe;return ie(),le("div",Nt,[se(o,null,{toolsLeft:oe((()=>[se(t,{onClick:s},{default:oe((()=>[pe(ue(e.$t("Public.Btn.Refresh")),1)])),_:1})])),table:oe((()=>[se(i,{"max-height":360,loading:de(n).loading,data:de(n).data,columns:de(l)},null,8,["loading","data","columns"])])),_:1})])}}}),Vt={class:"h-500px p-20px"},Wt=Y({__name:"set",setup(e){const{t:a}=ee(),t=()=>{l({title:a("Config.Safe.index_146"),width:580,footer:!0,component:Jt,data:{onRefresh:()=>{x()}}})},{table:n,columns:i,setLoading:s}=r([{key:"login_addr",title:a("Config.Safe.index_154"),ellipsis:{tooltip:!0},render:e=>e.login_addr||a("Config.Safe.index_155")},{key:"state",title:a("Config.Safe.index_156"),width:100,render:e=>-1===e.state?se("span",{class:"text-error"},[a("Config.Safe.index_166")]):1===e.state?a("Config.Safe.index_157"):se("span",{class:"text-primary"},[a("Config.Safe.index_155")])},{key:"login_time",title:a("Config.Safe.index_158"),width:140,render:e=>0===e.login_time?a("Config.Safe.index_155"):G(e.login_time)},{key:"expire",title:a("Config.Safe.index_159"),width:140,render:e=>G(e.expire)},u({width:160,options:e=>[{label:a("Config.Safe.index_160"),type:"error",show:e.online_state,onClick:()=>{p(e)}},{label:a("Config.Safe.index_161"),show:1===e.state||-1===e.state,onClick:()=>{d(e)}},{label:a("Public.Btn.Del"),onClick:()=>{c(e)}}]})]),d=e=>{l({title:a("Config.Safe.index_161"),width:700,data:{id:e.id},component:Qt})},p=e=>{o({title:a("Config.Safe.index_162",[e.login_addr]),content:a("Config.Safe.index_163",[e.login_addr]),onConfirm:async()=>{await W({id:e.id}),x()}})},c=e=>{o({title:a("Config.Safe.index_164"),content:a("Config.Safe.index_165"),onConfirm:async()=>{await Z({id:e.id}),x()}})},_=te({p:1,rows:10}),x=async()=>{try{s(!0);const{message:e}=await Q(xe(_));k(e)&&(n.data=C(e.data)?e.data:[],n.total=V(e.page))}finally{s(!1)}};return x(),(e,a)=>{const l=we,s=f,o=Ge,d=qe;return ie(),le("div",Vt,[se(d,null,{toolsLeft:oe((()=>[se(l,{type:"primary",onClick:t},{default:oe((()=>[pe(ue(e.$t("Config.Safe.index_146")),1)])),_:1})])),table:oe((()=>[se(s,{"max-height":340,loading:de(n).loading,data:de(n).data,columns:de(i)},null,8,["loading","data","columns"])])),pageRight:oe((()=>[se(o,{page:de(_).p,"onUpdate:page":a[0]||(a[0]=e=>de(_).p=e),"page-size":de(_).rows,"onUpdate:pageSize":a[1]||(a[1]=e=>de(_).rows=e),"item-count":de(n).total,onRefresh:x},null,8,["page","page-size","item-count"])])),_:1})])}}}),Zt=Y({__name:"index",setup(a){const{t:t}=ee(),n=()=>{l({title:t("Config.Safe.index_139"),width:740,component:Wt})};return(a,t)=>{const l=we,i=e;return ie(),fe(i,{label:a.$t("Config.Safe.index_137")},{content:oe((()=>[se(l,{type:"primary",onClick:n},{default:oe((()=>[pe(ue(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,ue(a.$t("Config.Safe.index_138")),1)])),_:1},8,["label"])}}}),Yt=E(Y({__name:"config",setup:e=>(e,a)=>(ie(),le("div",null,[se(t,null,{default:oe((()=>[pe(ue(e.$t("Config.Safe.index_1")),1)])),_:1}),se(Ve),se($a),se(Da),se(tt),se(lt),se(ot),se(ft),se(vt),se(yt),se(Bt),se(It),se(Zt)]))}),[["__scopeId","data-v-919bcd3c"]]);export{Yt as S};
+import{_ as e,a,C as t}from"./index.vue_vue_type_script_setup_true_lang8.js?v=1753954525509";import{c as n,u as l,_ as i,j as s,d as o,i as d,b as r,f,h as u}from"./public.js?v=1753954525509";import{a as p,g as c,s as _,b as x}from"./alarm.js?v=1753954525509";import{_ as m}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang10.js?v=1753954525509";import{w as v,O as C,ab as S,aC as b,aD as h,_ as y,aE as w,aF as $,c as k,m as P,aG as U,aH as B,K as j,aI as L,aJ as R,aK as E,e as z,aL as I,aM as T,aN as H,aO as D,k as A,aP as F,aQ as K,aR as J,J as M,aS as O,aT as X,X as q,aU as G,aV as N,aW as Q,aX as V,aY as W,x as Y}from"./page_layout.js?v=1753954525509";import{k as Z,P as ee,r as ae,e as te,x as ne,U as le,V as ie,Q as se,a2 as oe,X as de,W as re,a1 as fe,j as ue,a3 as pe,ah as ce,al as _e,N as xe,l as me,v as ge,aa as ve,F as Ce,au as Se,c as be}from"./vue.js?v=1753954525509";import{c5 as he,cA as ye,ay as we,_ as $e,c6 as ke,cF as Pe,cE as Ue,aq as Be,bY as je,c1 as Le,cG as Re,cJ as Ee}from"./naive.js?v=1753954525509";import{s as ze,_ as Ie,f as Te,h as He,c as De}from"./configStore.js?v=1753954525509";import{O as Ae}from"./open.js?v=1753954525509";import{_ as Fe}from"./index102.js?v=1753954525509";import{_ as Ke}from"./index100.js?v=1753954525509";import{s as Je,a as Me,g as Oe}from"./ssl-lets-progress.js?v=1753954525509";import{_ as Xe}from"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import{_ as qe}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";const Ge={class:"p-20px pt-28px pb-8px"},Ne={class:"w-300px"},Qe=Z({__name:"set",props:{open:{type:Boolean,default:!1},taskList:{default:()=>[]}},emits:["refresh"],setup(e,{expose:a,emit:t}){const l=e,i=t,{t:s}=ee(),o=ae(null),d=te({status:!0,method:[]}),r={method:{trigger:["change"],validator:()=>0!==d.method.length||new Error(s("Config.Safe.index_7"))}},f=ne([]),{loading:u,setLoading:_}=n();return(()=>{const{open:e,taskList:a}=l;a.length>0&&(d.status=e||a[0].status,d.method=a[0].sender)})(),(async()=>{try{_(!0);const{message:e}=await c();f.value=v(e)?e:[]}finally{_(!1)}})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),await p((()=>{const e=f.value.filter((e=>"panel_safe_push"===e.source))[0];return{template_id:e.id,task_data:{task_data:{tid:e.id,type:e.source,title:e.title,status:d.status,count:0,interval:600,project:"",help:600},sender:d.method,number_rule:{day_num:0,total:0},time_rule:{send_interval:0,time_range:[0,86399]}}}})()),i("refresh")}}),(e,a)=>{const t=he,n=ye,l=g,i=m,s=C;return le(),ie("div",Ge,[se(s,{show:de(u)},{default:oe((()=>[se(i,{ref_key:"formRef",ref:o,model:de(d),rules:r},{default:oe((()=>[se(n,{label:e.$t("Config.Safe.index_5")},{default:oe((()=>[se(t,{value:de(d).status,"onUpdate:value":a[0]||(a[0]=e=>de(d).status=e)},null,8,["value"])])),_:1},8,["label"]),se(n,{label:e.$t("Config.Safe.index_6"),path:"method"},{default:oe((()=>[re("div",Ne,[se(l,{value:de(d).method,"onUpdate:value":a[1]||(a[1]=e=>de(d).method=e)},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}}),Ve=Z({__name:"index",setup(a){const{t:t}=ee(),i=ae(!1),s=ae([]),o=async e=>{e?d(!0):(await _({task_id:s.value[0].id,status:0}),i.value=!1,s.value[0].status=!1)},d=(e=!1)=>{l({title:t("Config.Safe.index_4"),width:480,footer:!0,confirmText:t("Public.Btn.Save"),data:{open:e,taskList:s.value,onRefresh:u},component:Qe})},{loading:r,setLoading:f}=n(),u=async()=>{try{f(!0);const{message:e}=await x();if(v(e)){const a=e.filter((e=>"panel_safe_push"===e.keyword));a&&a.length>0?(i.value=a[0].status,s.value=a):(i.value=!1,s.value=[])}}finally{f(!1)}};return u(),(a,t)=>{const n=he,l=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_2")},{content:oe((()=>[se(n,{loading:de(r),value:de(i),"onUpdate:value":o},null,8,["loading","value"]),se(l,{class:"ml-12px h-22px px-5px",size:"small",onClick:t[0]||(t[0]=e=>d())},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_3")),1)])),_:1},8,["label"])}}}),We={class:"flex p-20px"},Ye={class:"min-w-32px"},Ze={class:"flex-1 ml-10px text-14px leading-22px"},ea={class:"flex items-center min-h-30px mb-12px text-error"},aa=Z({__name:"close",emits:["setConfirm"],setup(e,{expose:a,emit:t}){const n=t,{t:l}=ee(),i=S(),s=ae(!1),o=()=>{d>0||n("setConfirm",{disabled:!s.value})};let d=5;return(()=>{n("setConfirm",{text:l("Config.Safe.index_16",[d]),disabled:!0});const e=setInterval((()=>{d--,n("setConfirm",{text:l("Config.Safe.index_16",[d])}),d<=0&&(clearInterval(e),n("setConfirm",{text:l("Config.Safe.index_17"),disabled:!s.value}))}),1e3)})(),a({onConfirm:async()=>(await b(),await h(),setTimeout((()=>{{const e="http:"===location.protocol?"https":"http";window.location.href="".concat(e,"://").concat(window.location.host).concat(ze.value.adminPath)}}),1500),!1)}),(e,a)=>{const t=y,n=$e;return le(),ie("div",We,[re("div",Ye,[se(t,{name:"base-warning",color:de(i).warningColor,size:"32"},null,8,["color"])]),re("div",Ze,[re("div",ea,pe(e.$t("Config.Safe.index_14")),1),se(n,{checked:de(s),"onUpdate:checked":[a[0]||(a[0]=e=>ce(s)?s.value=e:null),o]},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_15")),1)])),_:1},8,["checked"])])])}}}),ta={class:"flex flex-wrap py-2px text-primary text-12px"},na={class:"mr-24px"},la={class:"mr-24px"},ia={class:"flex gap-20px mt-16px"},sa={class:"flex-1"},oa={class:"mb-8px"},da={class:"flex-1"},ra={class:"mb-8px"},fa={class:"mt-10px"},ua={class:"bt-link",href:"http://www.bt.cn/bbs/thread-704-1-1.html",target:"_blank"},pa=Z({__name:"ssl-custom",setup(e){const a=ae(""),t=ae(""),l=te({dns:[""],issuer:"--",notBefore:"--",notAfter:"--"}),s=async()=>{await w({privateKey:a.value,certPem:t.value},!0),r()},{loading:o,setLoading:d}=n(),r=async()=>{try{d(!0);const{message:e}=await $();k(e)&&(a.value=e.privateKey||"",t.value=e.certPem||"",l.dns=e.info.dns||[],l.issuer=e.info.issuer||"",l.notBefore=e.info.notBefore||"",l.notAfter=e.info.notAfter||"")}finally{d(!1)}};return r(),(e,n)=>{const d=ke,r=Ke,f=we,u=i,p=C;return le(),fe(p,{show:de(o)},{default:oe((()=>[se(d,{type:"success","show-icon":!1},{default:oe((()=>[re("div",ta,[re("div",na,[ue(pe(e.$t("Config.Safe.index_37")),1),re("b",null,pe(de(l).dns.join(",")||"--"),1)]),re("div",la,[ue(pe(e.$t("Config.Safe.index_38")),1),re("b",null,pe(de(l).issuer),1)]),re("div",null,[ue(pe(e.$t("Config.Safe.index_39")),1),re("b",null,pe(de(l).notAfter),1)])])])),_:1}),re("div",ia,[re("div",sa,[re("div",oa,pe(e.$t("Config.Safe.index_27")),1),se(r,{value:de(a),"onUpdate:value":n[0]||(n[0]=e=>ce(a)?a.value=e:null),rows:14,placeholder:""},null,8,["value"])]),re("div",da,[re("div",ra,pe(e.$t("Config.Safe.index_28")),1),se(r,{value:de(t),"onUpdate:value":n[1]||(n[1]=e=>ce(t)?t.value=e:null),rows:14,placeholder:""},null,8,["value"])])]),re("div",fa,[se(f,{type:"primary",onClick:s},{default:oe((()=>[ue(pe(e.$t("Public.Btn.Save")),1)])),_:1})]),se(u,{class:"mt-12px"},{default:oe((()=>[re("li",null,[ue(pe(e.$t("Config.Safe.index_40"))+" ",1),re("a",ua," ["+pe(e.$t("Public.Btn.Help"))+"] ",1)]),re("li",null,pe(e.$t("Config.Safe.index_42")),1),re("li",null,pe(e.$t("Config.Safe.index_43")),1)])),_:1})])),_:1},8,["show"])}}}),ca={class:"h-400px"},_a={class:"flex items-center"},xa={class:"min-w-18px mr-8px"},ma={class:"leading-18px"},ga={class:"w-400px mr-10px"},va={class:"text-primary font-bold"},Ca={class:"text-warning font-bold"},Sa={class:"text-error"},ba=Z({__name:"ssl-lets",setup(e){const{t:a}=ee(),t=ae(null),n=te({domain:"",hash:"",auth_type:"http",support:[]}),o={domain:{required:!0,trigger:"blur",message:a("Config.Safe.Ssl.index_10")}},d=ae(!1),r=ae(!1),f=ae(!1),u=()=>{g()},p=()=>{f.value=!1,r.value=!1,n.hash="",n.support=[]},c=()=>{window.open("/ssl_domain/domain")},_=async()=>{var e;await(null==(e=t.value)?void 0:e.validate());const{message:a}=await Je({domain:xe(n)});k(a)&&(a.task_id?x(a.task_id):P.success(a.result))},x=e=>{l({hideClose:!0,data:{task_id:e},component:Me})},g=async()=>{if(n.domain)try{d.value=!0;const{message:e}=await s({domain:n.domain});k(e)&&(r.value=!0,f.value=!!e.hash,n.hash=e.hash,n.support=e.support)}finally{d.value=!1}};return(async()=>{const{message:e}=await Oe();k(e)&&(n.domain=e.domain)})(),(e,a)=>{const l=y,s=ke,x=Pe,v=U,C=Ue,S=ye,b=Be,h=we,w=je,$=m,k=i;return le(),ie("div",ca,[se(s,{"show-icon":!1,class:"mb-20px"},{default:oe((()=>[re("div",_a,[re("div",xa,[se(l,{name:"base-info",size:17})]),re("span",ma,pe(e.$t("Config.Safe.Ssl.index_1")),1)])])),_:1}),se($,{ref_key:"formRef",ref:t,model:de(n),rules:o,"label-width":"140"},{default:oe((()=>[se(S,{label:e.$t("Config.Safe.Ssl.index_2")},{default:oe((()=>[se(C,{value:de(n).auth_type,"onUpdate:value":a[0]||(a[0]=e=>de(n).auth_type=e)},{default:oe((()=>[se(v,null,{default:oe((()=>[se(x,{value:"http"},{default:oe((()=>[ue(pe(e.$t("SSL.SiteSSL.index_17")),1)])),_:1}),se(x,{value:"dns"},{default:oe((()=>[ue(pe(e.$t("SSL.index_12")),1)])),_:1})])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),"dns"===de(n).auth_type?(le(),fe(S,{key:0,label:e.$t("Config.Safe.Ssl.index_4"),prop:"domain"},{default:oe((()=>[re("div",ga,[se(b,{value:de(n).domain,"onUpdate:value":a[1]||(a[1]=e=>de(n).domain=e),loading:de(d),"input-props":{spellcheck:!1},placeholder:e.$t("Config.Safe.Ssl.index_5"),clearable:"",onBlur:u,onInput:p},null,8,["value","loading","placeholder"])]),se(h,{onClick:g},{default:oe((()=>[ue(pe(e.$t("Config.Safe.Ssl.index_12")),1)])),_:1})])),_:1},8,["label"])):_e("",!0),"http"===de(n).auth_type?(le(),fe(S,{key:1,label:e.$t("Config.Safe.Ssl.index_4")},{default:oe((()=>[se(b,{class:"w-400px!",value:de(n).domain,"onUpdate:value":a[2]||(a[2]=e=>de(n).domain=e),placeholder:e.$t("Config.Safe.Ssl.index_5")},null,8,["value","placeholder"])])),_:1},8,["label"])):_e("",!0),de(r)&&"dns"===de(n).auth_type?(le(),fe(S,{key:2,label:" "},{default:oe((()=>[de(f)?(le(),fe(s,{key:0,type:"success",class:"min-w-500px"},{default:oe((()=>[re("span",va,pe(e.$t("Config.Safe.Ssl.index_6",[de(n).domain])),1)])),_:1})):(le(),fe(s,{key:1,type:"warning",class:"min-w-500px"},{default:oe((()=>[se(w,{class:"items-center"},{default:oe((()=>[re("span",Ca,pe(e.$t("Config.Safe.Ssl.index_7",[de(n).domain])),1),se(h,{type:"primary",ghost:"",size:"small",onClick:c},{default:oe((()=>[ue(pe(e.$t("Config.Safe.Ssl.index_8")),1)])),_:1})])),_:1})])),_:1}))])),_:1})):_e("",!0),se(S,{label:" "},{default:oe((()=>[se(h,{type:"primary",disabled:!de(f)&&"dns"===de(n).auth_type,onClick:_},{default:oe((()=>[ue(pe(e.$t("Config.Safe.Ssl.index_9")),1)])),_:1},8,["disabled"])])),_:1})])),_:1},8,["model"]),"http"===de(n).auth_type?(le(),fe(k,{key:0},{default:oe((()=>[re("li",Sa,pe(e.$t("SSL.SiteSSL.index_15")),1),re("li",null,pe(e.$t("Site.Cert.index_21")),1),re("li",null,pe(e.$t("Site.Cert.index_23")),1),re("li",null,pe(e.$t("Site.Cert.index_24")),1)])),_:1})):_e("",!0)])}}}),ha={class:"p-16px"},ya=Z({__name:"ssl",setup(e){const a=ae("custom"),t=[{key:"custom",label:"Custom SSL",component:pa},{key:"lets",label:"Lets Encrypt",component:ba}];return(e,n)=>{const l=Fe;return le(),ie("div",ha,[se(l,{value:de(a),"onUpdate:value":n[0]||(n[0]=e=>ce(a)?a.value=e:null),options:t},null,8,["value"])])}}}),wa={class:"bt-link",href:"https://forum.aapanel.com/d/15210-aapanel-enable-panel-ssl-use-self-signed-certificate-browser-add-secure",target:"_blank"},$a=Z({__name:"index",setup(a){const{t:t}=ee(),n=e=>{e?i():s()},i=()=>{l({title:t("Config.Safe.index_11"),width:600,footer:!0,component:Ae})},s=()=>{l({title:t("Config.Safe.index_12"),width:400,footer:!0,confirmType:"error",component:aa})},o=()=>{l({title:t("Config.Safe.index_13"),width:740,component:ya})};return(a,t)=>{const l=he,i=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_8")},{content:oe((()=>[se(l,{value:de(ze).panelSSL,"onUpdate:value":n},null,8,["value"]),se(i,{class:"ml-12px h-22px px-5px",size:"small",onClick:o},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_9")),1),re("a",wa,pe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),ka={class:"p-20px"},Pa={class:"w-280px"},Ua={class:"w-280px"},Ba={class:"text-error"},ja=Z({__name:"config",setup(e){const{t:a}=ee(),t=ae(null),n=te({open:"True",basic_user:"",basic_pwd:""}),l={basic_user:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_user.trim()||new Error(a("Config.Safe.index_56"))},basic_pwd:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_pwd.trim()||new Error(a("Config.Safe.index_58"))}},s=async()=>{var e;await(null==(e=t.value)?void 0:e.validate()),await B(xe(n)),j()};return(e,a)=>{const o=he,d=ye,r=Be,f=we,u=m,p=i;return le(),ie("div",ka,[se(u,{ref_key:"formRef",ref:t,model:de(n),rules:l},{default:oe((()=>[se(d,{label:e.$t("Config.Safe.index_54")},{default:oe((()=>[se(o,{value:de(n).open,"onUpdate:value":a[0]||(a[0]=e=>de(n).open=e),"checked-value":"True","unchecked-value":"False"},null,8,["value"])])),_:1},8,["label"]),se(d,{label:e.$t("Config.Safe.index_55"),path:"basic_user"},{default:oe((()=>[re("div",Pa,[se(r,{value:de(n).basic_user,"onUpdate:value":a[1]||(a[1]=e=>de(n).basic_user=e),placeholder:e.$t("Config.Safe.index_56")},null,8,["value","placeholder"])])])),_:1},8,["label"]),se(d,{label:e.$t("Config.Safe.index_57"),path:"basic_pwd"},{default:oe((()=>[re("div",Ua,[se(r,{value:de(n).basic_pwd,"onUpdate:value":a[2]||(a[2]=e=>de(n).basic_pwd=e),placeholder:e.$t("Config.Safe.index_58")},null,8,["value","placeholder"])])])),_:1},8,["label"]),se(d,{label:" ","show-feedback":!1},{default:oe((()=>[se(f,{type:"primary",onClick:s},{default:oe((()=>[ue(pe(e.$t("Public.Btn.Save")),1)])),_:1})])),_:1})])),_:1},8,["model"]),se(p,{class:"mt-20px pl-12px"},{default:oe((()=>[re("li",Ba,pe(e.$t("Config.Safe.index_59")),1),re("li",null,pe(e.$t("Config.Safe.index_48")),1),re("li",null,pe(e.$t("Config.Safe.index_49")),1),re("li",null,pe(e.$t("Config.Safe.index_50")),1),re("li",null,pe(e.$t("Config.Safe.index_51")),1)])),_:1})])}}}),La={class:"p-20px"},Ra={class:"text-error"},Ea={class:"flex items-center justify-between"},za={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Ia=Z({__name:"confirm",setup(e,{expose:t}){const{t:n}=ee(),i=ae();return t({onConfirm:async()=>{await i.value.validate(),l({title:n("Config.Safe.index_53"),width:500,component:ja})}}),(e,t)=>{const n=a,l=Ie,s=Te;return le(),ie("div",La,[se(n,{class:"mb-20px"},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_47")),1)])),_:1}),se(l,{class:"mb-20px"},{default:oe((()=>[re("li",Ra,pe(e.$t("Config.Safe.index_19")),1),re("li",null,pe(e.$t("Config.Safe.index_48")),1),re("li",null,pe(e.$t("Config.Safe.index_49")),1),re("li",null,pe(e.$t("Config.Safe.index_50")),1),re("li",null,pe(e.$t("Config.Safe.index_51")),1)])),_:1}),re("div",Ea,[se(s,{ref_key:"riskRef",ref:i},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_29")),1)])),_:1},512),re("a",za,pe(e.$t("Config.Safe.index_52")),1)])])}}}),Ta={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Ha=Z({__name:"index",setup(a){const{t:t}=ee(),n=async e=>{e?l({title:t("Config.Safe.index_46"),width:650,footer:!0,component:Ia}):(await B({open:"False",basic_user:"",basic_pwd:""}),j())};return(a,t)=>{const l=he,i=e;return le(),fe(i,{label:a.$t("Config.Safe.index_44")},{content:oe((()=>[se(l,{value:de(ze).basicAuth,"onUpdate:value":n},null,8,["value"])])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_45")),1),re("a",Ta,pe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),Da={class:"p-20px"},Aa={class:"mb-20px text-20px text-center text-#555"},Fa={class:"px-36px"},Ka={class:"mb-10px text-16px text-#666"},Ja={class:"mb-20px px-24px py-16px bg-#f8f8f8 rounded-4px leading-24px text-14px text-#444 font-500"},Ma={class:"text-#666"},Oa={class:"text-#666"},Xa={class:"mb-20px text-16px text-#666"},qa={class:"bt-link",href:"",target:"_blank"},Ga={class:"text-error"},Na=z(Z({__name:"config",setup(e){const a=te({key:"--",username:"--"}),t=ae(""),{loading:l,setLoading:s}=n();return(async()=>{const{message:e}=await L();k(e)&&(a.key=e.key,a.username=e.username)})(),(async()=>{try{s(!0);const{message:e}=await R({act:1});k(e)&&(t.value=e.result)}finally{s(!1)}})(),(e,n)=>{const s=E,o=C,d=i;return le(),ie("div",Da,[re("div",Aa,pe(e.$t("Config.Safe.index_70")),1),re("div",Fa,[re("div",Ka,pe(e.$t("Config.Safe.index_71")),1),re("div",Ja,[re("div",null,[ue(pe(e.$t("Config.Safe.index_72"))+" ",1),re("span",Ma,pe(de(a).username),1)]),re("div",null,[ue(pe(e.$t("Config.Safe.index_73"))+" ",1),re("span",Oa,pe(de(a).key),1)]),re("div",null,[ue(pe(e.$t("Config.Safe.index_74"))+" ",1),n[0]||(n[0]=re("span",{class:"text-#666"},"Time based",-1))])]),re("div",Xa,pe(e.$t("Config.Safe.index_75")),1),se(o,{class:"flex justify-center h-150px",show:de(l)},{default:oe((()=>[me(se(s,{value:de(t),size:150,padding:0},null,8,["value"]),[[ge,de(t)]])])),_:1},8,["show"]),se(d,null,{default:oe((()=>[re("li",null,[ue(pe(e.$t("Config.Safe.index_76"))+" ",1),re("a",qa,pe(e.$t("Config.Safe.index_77")),1)]),re("li",Ga,pe(e.$t("Config.Safe.index_78")),1)])),_:1})])])}}}),[["__scopeId","data-v-493fa0d9"]]),Qa={class:"p-20px"},Va={class:"text-error"},Wa={class:"text-error"},Ya={class:"flex items-center justify-between"},Za={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},et=Z({__name:"confirm",setup(e,{expose:t}){const{t:n}=ee(),i=ae();return t({onConfirm:async()=>{await i.value.validate();const{message:e}=await I({act:1});ze.value.dynamicPwd=!0,l({title:n("Config.Safe.index_62"),width:600,component:Na}),k(e)&&P.success(e.result)}}),(e,t)=>{const n=a,l=Ie,s=Te;return le(),ie("div",Qa,[se(n,{class:"mb-20px"},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_47")),1)])),_:1}),se(l,{class:"mb-20px"},{default:oe((()=>[re("li",Va,pe(e.$t("Config.Safe.index_19")),1),re("li",Wa,pe(e.$t("Config.Safe.index_69")),1),re("li",null,pe(e.$t("Config.Safe.index_66")),1),re("li",null,pe(e.$t("Config.Safe.index_67")),1)])),_:1}),re("div",Ya,[se(s,{ref_key:"riskRef",ref:i},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_68")),1)])),_:1},512),re("a",Za,pe(e.$t("Config.Safe.index_168")),1)])])}}}),at={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},tt=Z({__name:"index",setup(a){const{t:t}=ee(),n=async e=>{e?i():(await I({act:0},!0),ze.value.dynamicPwd=!1)},i=()=>{ze.value.dynamicPwd?l({title:t("Config.Safe.index_62"),width:600,component:Na}):l({title:t("Config.Safe.index_63"),width:670,footer:!0,component:et})};return(a,t)=>{const l=he,s=we,o=e;return le(),fe(o,{label:a.$t("Config.Safe.index_60")},{content:oe((()=>[se(l,{value:de(ze).dynamicPwd,"onUpdate:value":n},null,8,["value"]),se(s,{class:"ml-12px h-22px px-5px",size:"small",onClick:i},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_61")),1),re("a",at,pe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),nt={class:"text-error"},lt=Z({__name:"index",setup(a){const{t:t}=ee(),n=async e=>{o({title:t("Config.Safe.index_82",[t(e?"Config.Safe.index_83":"Config.Safe.index_84")]),content:()=>e?se(ve,{tag:"div",scope:"global",keypath:"Config.Safe.index_85"},{tips_:()=>se("span",{class:"text-error"},[t("Config.Safe.index_86")])}):se(Ce,null,[t("Config.Safe.index_87")]),onConfirm:async()=>{await T(),ze.value.pwdComplexity=e}})};return(a,t)=>{const l=he,i=e;return le(),fe(i,{label:a.$t("Config.Safe.index_79")},{content:oe((()=>[se(l,{value:de(ze).pwdComplexity,"onUpdate:value":n},null,8,["value"])])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_80")),1),re("span",nt,pe(a.$t("Config.Safe.index_81")),1)])),_:1},8,["label"])}}}),it={class:"w-260px"},st={class:"text-error"},ot=Z({__name:"index",setup(a){const t=async()=>{await H(He()),j()};return(a,n)=>{const l=Be,i=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_88")},{content:oe((()=>[re("div",it,[se(l,{value:de(ze).domain,"onUpdate:value":n[0]||(n[0]=e=>de(ze).domain=e),placeholder:""},null,8,["value"])]),se(i,{class:"ml-12px",type:"primary",onClick:t},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Save")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_89")),1),re("span",st,pe(a.$t("Config.Safe.index_90")),1)])),_:1},8,["label"])}}}),dt={class:"w-260px"},rt={class:"text-error"},ft=Z({__name:"index",setup(a){const{t:t}=ee(),n=async()=>{let e=/^((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}$/,a=ze.value.limitIp.split(",").join("-").split("-"),n=!0;if(a.length)for(let t=0;t0)return P.error(t("Config.Safe.index_95"));await D(He()),j()};return(a,t)=>{const l=Be,i=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_91")},{content:oe((()=>[re("div",dt,[se(l,{value:de(ze).limitIp,"onUpdate:value":t[0]||(t[0]=e=>de(ze).limitIp=e),placeholder:a.$t("Config.Safe.index_92")},null,8,["value","placeholder"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Save")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_93")),1),re("span",rt,pe(a.$t("Config.Safe.index_94")),1)])),_:1},8,["label"])}}}),ut={class:"p-20px"},pt={class:"text-error"},ct={class:"text-error"},_t={class:"w-210px"},xt=Z({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(),l=ae(null),i=te({port:A(ze.value.port)}),s={port:{trigger:["blur","input"],validator:()=>!!F(i.port)||new Error(t("Config.Safe.index_104"))}};return a({onConfirm:async()=>{var e;await n.value.validate(),await(null==(e=l.value)?void 0:e.validate());const a=He();a.port="".concat(i.port),await K(a),j("".concat(location.protocol,"//").concat(location.hostname,":").concat(i.port).concat(location.pathname))}}),(e,a)=>{const t=Ie,o=Le,d=ye,r=m,f=Te;return le(),ie("div",ut,[se(t,{class:"mb-20px"},{default:oe((()=>[re("li",pt,pe(e.$t("Config.Safe.index_100")),1),re("li",ct,pe(e.$t("Config.Safe.index_101")),1)])),_:1}),se(r,{ref_key:"formRef",ref:l,model:de(i),rules:s},{default:oe((()=>[se(d,{label:e.$t("Config.Safe.index_96"),path:"port","label-width":"auto","label-style":{paddingLeft:"24px"}},{default:oe((()=>[re("div",_t,[se(o,{value:de(i).port,"onUpdate:value":a[0]||(a[0]=e=>de(i).port=e),min:1,max:65535,"show-button":!1,placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(f,{ref_key:"riskRef",ref:n},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_102"))+" ",1),re("a",{class:"bt-link",href:"https://www.aapanel.com/forum/d/599-how-to-release-the-aapanel-port",target:"_blank",onClick:Se((()=>!1),["stop"])},pe(e.$t("Config.Safe.index_103")),1)])),_:1},512)])}}}),mt={class:"w-260px"},gt={class:"text-error"},vt=Z({__name:"index",setup(a){const{t:t}=ee(),n=async()=>{l({title:t("Config.Safe.index_99"),width:400,footer:!0,component:xt})};return(a,t)=>{const l=Be,i=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_96")},{content:oe((()=>[re("div",mt,[se(l,{value:de(ze).port,disabled:!0,placeholder:""},null,8,["value"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_97")),1),re("span",gt,pe(a.$t("Config.Safe.index_98")),1)])),_:1},8,["label"])}}}),Ct={class:"px-20px pt-28px pb-8px"},St={class:"w-240px"},bt=Z({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({adminPath:ze.value.adminPath}),i={adminPath:{trigger:["blur","input"],validator:()=>""!==l.adminPath.trim()||new Error(t("Config.Safe.index_108"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await J({admin_path:M(l.adminPath)}),ze.value.adminPath=l.adminPath}}),(e,a)=>{const t=Be,s=ye,o=m;return le(),ie("div",Ct,[se(o,{ref_key:"formRef",ref:n,model:de(l),rules:i},{default:oe((()=>[se(s,{label:e.$t("Config.Safe.index_105"),path:"adminPath"},{default:oe((()=>[re("div",St,[se(t,{value:de(l).adminPath,"onUpdate:value":a[0]||(a[0]=e=>de(l).adminPath=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),ht={class:"w-260px"},yt=Z({__name:"index",setup(a){const{t:t}=ee(),n=async()=>{l({title:t("Config.Safe.index_107"),width:440,footer:!0,component:bt})};return(a,t)=>{const l=Be,i=we,s=e;return le(),fe(s,{label:a.$t("Config.Safe.index_105")},{content:oe((()=>[re("div",ht,[se(l,{value:de(ze).adminPath,disabled:!0,placeholder:""},null,8,["value"])]),se(i,{class:"ml-12px",type:"primary",onClick:n},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_106")),1)])),_:1},8,["label"])}}}),wt={class:"px-20px py-24px"},$t={class:"w-200px"},kt={class:"text-error"},Pt=Z({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({status_code:ze.value.statusCode}),s={},o=[{value:403,label:t("Config.Safe.index_111")},{value:404,label:t("Config.Safe.index_112")},{value:416,label:t("Config.Safe.index_113")},{value:408,label:t("Config.Safe.index_114")},{value:400,label:t("Config.Safe.index_115")},{value:401,label:t("Config.Safe.index_116")}];return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await O({status_code:l.status_code}),ze.value.statusCode=l.status_code}}),(e,a)=>{const t=Re,d=ye,r=m,f=i;return le(),ie("div",wt,[se(r,{ref_key:"formRef",ref:n,model:de(l),rules:s},{default:oe((()=>[se(d,{label:e.$t("Config.Safe.index_118"),path:"adminPath"},{default:oe((()=>[re("div",$t,[se(t,{value:de(l).status_code,"onUpdate:value":a[0]||(a[0]=e=>de(l).status_code=e),options:o},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(f,null,{default:oe((()=>[re("li",kt,pe(e.$t("Config.Safe.index_119")),1)])),_:1})])}}}),Ut={class:"w-260px"},Bt=Z({__name:"index",setup(a){const{t:t}=ee(),n=new Map([[403,t("Config.Safe.index_111")],[404,t("Config.Safe.index_112")],[416,t("Config.Safe.index_113")],[408,t("Config.Safe.index_114")],[400,t("Config.Safe.index_115")],[401,t("Config.Safe.index_116")]]),i=be((()=>n.get(ze.value.statusCode)||"--")),s=async()=>{l({title:t("Config.Safe.index_117"),width:420,footer:!0,component:Pt})};return(a,t)=>{const n=Be,l=we,o=e;return le(),fe(o,{label:a.$t("Config.Safe.index_109")},{content:oe((()=>[re("div",Ut,[se(n,{value:de(i),disabled:!0,placeholder:""},null,8,["value"])]),se(l,{class:"ml-12px",type:"primary",onClick:s},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_110")),1)])),_:1},8,["label"])}}}),jt={class:"px-20px py-24px"},Lt={class:"w-120px"},Rt={class:"text-error"},Et=Z({__name:"set",setup(e,{expose:a}){const{t:t}=ee(),n=ae(null),l=te({day:ze.value.pwdSetDay}),s={day:{trigger:["blur","input"],validator:()=>l.day<0?new Error(t("Config.Safe.index_128")):!(!l.day&&0!==l.day)||new Error(t("Config.Safe.index_129"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await X({expire:l.day}),De()}}),(e,a)=>{const t=Le,o=ye,d=m,r=i;return le(),ie("div",jt,[se(d,{ref_key:"formRef",ref:n,model:de(l),rules:s},{default:oe((()=>[se(o,{label:e.$t("Config.Safe.index_120"),path:"day"},{default:oe((()=>[re("div",Lt,[se(t,{value:de(l).day,"onUpdate:value":a[0]||(a[0]=e=>de(l).day=e),min:0,"show-button":!1,placeholder:""},{suffix:oe((()=>[ue(pe(e.$t("Public.Unit.Day",de(l).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),se(r,{class:"mt-4px"},{default:oe((()=>[re("li",Rt,pe(e.$t("Config.Safe.index_126")),1),re("li",null,pe(e.$t("Config.Safe.index_127")),1)])),_:1})])}}}),zt={class:"w-260px"},It=Z({__name:"index",setup(a){const{t:t}=ee(),n=be((()=>{const{pwdSetDay:e,pwdExpireDay:a,pwdExpireTime:n}=ze.value;return 0===e?t("Config.Safe.index_122"):t("Config.Safe.index_123",[q(n),a])})),i=async()=>{l({title:t("Config.Safe.index_124"),width:360,footer:!0,component:Et})};return(a,t)=>{const l=Be,s=we,o=e;return le(),fe(o,{label:a.$t("Config.Safe.index_120")},{content:oe((()=>[re("div",zt,[se(l,{value:de(n),disabled:!0,placeholder:""},null,8,["value"])]),se(s,{class:"ml-12px",type:"primary",onClick:i},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_121")),1)])),_:1},8,["label"])}}}),Tt={class:"p-20px"},Ht={class:"mb-12px"},Dt={class:"mb-12px"},At={class:"mb-20px"},Ft=Z({__name:"set-add-result",props:{address:{default:""}},setup(e){const a=e,t=()=>{d(a.address)};return(e,a)=>{const n=Ke,l=we,s=i;return le(),ie("div",Tt,[re("div",Ht,pe(e.$t("Config.Safe.index_147")),1),re("div",Dt,[se(n,{value:e.address,readonly:"",rows:2},null,8,["value"])]),re("div",At,[se(l,{type:"primary",onClick:t},{default:oe((()=>[ue(pe(e.$t("Public.Btn.Copy")),1)])),_:1})]),se(s,null,{default:oe((()=>[re("li",null,pe(e.$t("Config.Safe.index_148")),1),re("li",null,pe(e.$t("Config.Safe.index_149")),1),re("li",null,pe(e.$t("Config.Safe.index_150")),1)])),_:1})])}}}),Kt={class:"p-20px pt-28px pb-8px"},Jt={class:"flex mb-24px"},Mt={class:"min-w-32px"},Ot={class:"flex-1 ml-16px"},Xt={class:"leading-24px text-error text-14px"},qt={class:"w-160px"},Gt=Z({__name:"set-add",emits:["refresh"],setup(e,{expose:a,emit:t}){const n=t,{t:i}=ee(),s=S(),o=ae(null),d=te({type:3,day:1}),r={day:{trigger:["blur","input"],validator:()=>0!==d.type||!(d.day<=0||d.day%1!=0)||new Error(i("Config.Safe.index_145"))}},f=e=>e%1==0,u=(e="")=>{const a="".concat(window.location.protocol,"//").concat(window.location.host),t="".concat(a,"/login?tmp_token=").concat(e);l({title:i("Config.Safe.index_146"),width:580,data:{address:t},component:Ft})};return a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate());const{message:a}=await G({expire_time:60*(0===d.type?24*d.day:d.type)*60+Math.floor(Date.now()/1e3)});k(a)&&(u(a.token),P.success(a.msg),n("refresh"))}}),(e,a)=>{const t=y,n=Ee,l=Ue,i=ye,u=Le,p=m;return le(),ie("div",Kt,[re("div",Jt,[re("div",Mt,[se(t,{name:"base-warning",size:"32",color:de(s).warningColor},null,8,["color"])]),re("div",Ot,[re("div",Xt,[re("div",null,pe(e.$t("Config.Safe.index_140")),1),re("div",null,pe(e.$t("Config.Safe.index_141")),1)])])]),se(p,{ref_key:"formRef",ref:o,model:de(d),rules:r,"label-width":"140"},{default:oe((()=>[se(i,{label:e.$t("Config.Safe.index_142")},{default:oe((()=>[se(l,{value:de(d).type,"onUpdate:value":a[0]||(a[0]=e=>de(d).type=e)},{default:oe((()=>[se(n,{value:3},{default:oe((()=>[ue("3 "+pe(e.$t("Public.Unit.Hour",3)),1)])),_:1}),se(n,{value:6},{default:oe((()=>[ue("6 "+pe(e.$t("Public.Unit.Hour",6)),1)])),_:1}),se(n,{value:9},{default:oe((()=>[ue("9 "+pe(e.$t("Public.Unit.Hour",9)),1)])),_:1}),se(n,{value:12},{default:oe((()=>[ue("12 "+pe(e.$t("Public.Unit.Hour",12)),1)])),_:1}),se(n,{value:0},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_143")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),me(se(i,{label:e.$t("Config.Safe.index_144"),path:"day"},{default:oe((()=>[re("div",qt,[se(u,{value:de(d).day,"onUpdate:value":a[1]||(a[1]=e=>de(d).day=e),min:1,"show-button":!1,validator:f},{suffix:oe((()=>[ue(pe(e.$t("Public.Unit.Day",de(d).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"]),[[ge,0===de(d).type]])])),_:1},8,["model"])])}}}),Nt={class:"p-20px h-500px"},Qt=Z({__name:"set-log",props:{id:{default:0}},setup(e){const a=e,{t:t}=ee(),{table:n,columns:l,setLoading:i}=r([{key:"type",title:t("Config.Safe.index_151"),width:120,ellipsis:{tooltip:!0}},{key:"addtime",title:t("Config.Safe.index_152"),width:140},{key:"log",title:t("Config.Safe.index_153"),ellipsis:{tooltip:!0}}]),s=async()=>{try{i(!0);const{message:e}=await N({id:a.id});n.data=v(e)?e:[]}finally{i(!1)}};return s(),(e,a)=>{const t=we,i=f,o=Xe;return le(),ie("div",Nt,[se(o,null,{toolsLeft:oe((()=>[se(t,{onClick:s},{default:oe((()=>[ue(pe(e.$t("Public.Btn.Refresh")),1)])),_:1})])),table:oe((()=>[se(i,{"max-height":360,loading:de(n).loading,data:de(n).data,columns:de(l)},null,8,["loading","data","columns"])])),_:1})])}}}),Vt={class:"h-500px p-20px"},Wt=Z({__name:"set",setup(e){const{t:a}=ee(),t=()=>{l({title:a("Config.Safe.index_146"),width:580,footer:!0,component:Gt,data:{onRefresh:()=>{x()}}})},{table:n,columns:i,setLoading:s}=r([{key:"login_addr",title:a("Config.Safe.index_154"),ellipsis:{tooltip:!0},render:e=>e.login_addr||a("Config.Safe.index_155")},{key:"state",title:a("Config.Safe.index_156"),width:100,render:e=>-1===e.state?se("span",{class:"text-error"},[a("Config.Safe.index_166")]):1===e.state?a("Config.Safe.index_157"):se("span",{class:"text-primary"},[a("Config.Safe.index_155")])},{key:"login_time",title:a("Config.Safe.index_158"),width:140,render:e=>0===e.login_time?a("Config.Safe.index_155"):q(e.login_time)},{key:"expire",title:a("Config.Safe.index_159"),width:140,render:e=>q(e.expire)},u({width:160,options:e=>[{label:a("Config.Safe.index_160"),type:"error",show:e.online_state,onClick:()=>{p(e)}},{label:a("Config.Safe.index_161"),show:1===e.state||-1===e.state,onClick:()=>{d(e)}},{label:a("Public.Btn.Del"),onClick:()=>{c(e)}}]})]),d=e=>{l({title:a("Config.Safe.index_161"),width:700,data:{id:e.id},component:Qt})},p=e=>{o({title:a("Config.Safe.index_162",[e.login_addr]),content:a("Config.Safe.index_163",[e.login_addr]),onConfirm:async()=>{await Q({id:e.id}),x()}})},c=e=>{o({title:a("Config.Safe.index_164"),content:a("Config.Safe.index_165"),onConfirm:async()=>{await V({id:e.id}),x()}})},_=te({p:1,rows:10}),x=async()=>{try{s(!0);const{message:e}=await W(xe(_));k(e)&&(n.data=v(e.data)?e.data:[],n.total=Y(e.page))}finally{s(!1)}};return x(),(e,a)=>{const l=we,s=f,o=qe,d=Xe;return le(),ie("div",Vt,[se(d,null,{toolsLeft:oe((()=>[se(l,{type:"primary",onClick:t},{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_146")),1)])),_:1})])),table:oe((()=>[se(s,{"max-height":340,loading:de(n).loading,data:de(n).data,columns:de(i)},null,8,["loading","data","columns"])])),pageRight:oe((()=>[se(o,{page:de(_).p,"onUpdate:page":a[0]||(a[0]=e=>de(_).p=e),"page-size":de(_).rows,"onUpdate:pageSize":a[1]||(a[1]=e=>de(_).rows=e),"item-count":de(n).total,onRefresh:x},null,8,["page","page-size","item-count"])])),_:1})])}}}),Yt=Z({__name:"index",setup(a){const{t:t}=ee(),n=()=>{l({title:t("Config.Safe.index_139"),width:740,component:Wt})};return(a,t)=>{const l=we,i=e;return le(),fe(i,{label:a.$t("Config.Safe.index_137")},{content:oe((()=>[se(l,{type:"primary",onClick:n},{default:oe((()=>[ue(pe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:oe((()=>[re("span",null,pe(a.$t("Config.Safe.index_138")),1)])),_:1},8,["label"])}}}),Zt=z(Z({__name:"config",setup:e=>(e,a)=>(le(),ie("div",null,[se(t,null,{default:oe((()=>[ue(pe(e.$t("Config.Safe.index_1")),1)])),_:1}),se(Ve),se($a),se(Ha),se(tt),se(lt),se(ot),se(ft),se(vt),se(yt),se(Bt),se(It),se(Yt)]))}),[["__scopeId","data-v-919bcd3c"]]);export{Zt as S};
diff --git a/BTPanel/static/vite/js/config3.js b/BTPanel/static/vite/js/config3.js
index 6a64dfd8..1f30e7c8 100644
--- a/BTPanel/static/vite/js/config3.js
+++ b/BTPanel/static/vite/js/config3.js
@@ -1 +1 @@
-import{v as s,i as a}from"./page_layout.js?v=1752142539265";const{t:t}=a.global,e=a=>s.post("/project/quota/modify_path_quota",{data:JSON.stringify({path:a.path,quota_type:a.quota_type,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:a.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),o=a=>s.post("/project/quota/modify_database_quota",{data:JSON.stringify({db_name:a.db_name,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:a.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),u=()=>s.post("/config?action=get_msg_configs");export{o as a,u as g,e as m};
+import{i as s,v as a}from"./page_layout.js?v=1753954525509";const{t:t}=s.global,e=s=>a.post("/project/quota/modify_path_quota",{data:JSON.stringify({path:s.path,quota_type:s.quota_type,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:s.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),o=s=>a.post("/project/quota/modify_database_quota",{data:JSON.stringify({db_name:s.db_name,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:s.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),u=()=>a.post("/config?action=get_msg_configs");export{o as a,u as g,e as m};
diff --git a/BTPanel/static/vite/js/config4.js b/BTPanel/static/vite/js/config4.js
index b7f48425..c5d3ec77 100644
--- a/BTPanel/static/vite/js/config4.js
+++ b/BTPanel/static/vite/js/config4.js
@@ -1 +1 @@
-import{fb as a,d as s,e}from"./page_layout.js?v=1752142539265";import{j as o,k as t}from"./tools2.js?v=1752142539265";import{k as l,r as p,U as r,X as n,V as i,Q as m,a3 as u,W as c,ah as v}from"./vue.js?v=1752142539265";import"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";import"./public.js?v=1752142539265";import"./rules.js?v=1752142539265";const j={class:"p-20px"},d={class:"mb-16px text-desc"},f=e(l({__name:"config",setup(e,{expose:l}){const f=p([]),_=p([]);return(async()=>{const{message:a}=await o();s(a)&&(f.value=Object.keys(a).filter((s=>a[s])),_.value=Object.keys(a).map((a=>({label:a,value:a}))))})(),l({onConfirm:async()=>{await t({data:f.value.reduce(((a,s)=>(a[s]=!0,a)),{})})}}),(s,e)=>{const o=a;return n(),r("div",j,[i("div",d,u(s.$t("Waf.Block.index_73")),1),m(o,{value:c(f),"onUpdate:value":e[0]||(e[0]=a=>v(f)?f.value=a:null),options:c(_)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{f as default};
+import{c as a,f3 as s,e}from"./page_layout.js?v=1753954525509";import{j as o,k as t}from"./tools2.js?v=1753954525509";import{k as l,r as p,U as r,V as n,W as i,a3 as m,Q as c,X as u,ah as v}from"./vue.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./public.js?v=1753954525509";import"./rules.js?v=1753954525509";const j={class:"p-20px"},d={class:"mb-16px text-desc"},f=e(l({__name:"config",setup(e,{expose:l}){const f=p([]),_=p([]);return(async()=>{const{message:s}=await o();a(s)&&(f.value=Object.keys(s).filter((a=>s[a])),_.value=Object.keys(s).map((a=>({label:a,value:a}))))})(),l({onConfirm:async()=>{await t({data:f.value.reduce(((a,s)=>(a[s]=!0,a)),{})})}}),(a,e)=>{const o=s;return r(),n("div",j,[i("div",d,m(a.$t("Waf.Block.index_73")),1),c(o,{value:u(f),"onUpdate:value":e[0]||(e[0]=a=>v(f)?f.value=a:null),options:u(_)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{f as default};
diff --git a/BTPanel/static/vite/js/config5.js b/BTPanel/static/vite/js/config5.js
index 7f3dab9e..7bf5de01 100644
--- a/BTPanel/static/vite/js/config5.js
+++ b/BTPanel/static/vite/js/config5.js
@@ -1 +1 @@
-import{_ as e,b as t,h as a,f as l,u as i}from"./public.js?v=1752142539265";import{d as n,j as s}from"./page_layout.js?v=1752142539265";import{k as r,l as c,n as o,g as u}from"./setting.js?v=1752142539265";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{k as p,P as d,r as m,e as y,U as g,X as _,Q as v,a2 as b,V as w,W as x,a3 as h,N as q,j as S}from"./vue.js?v=1752142539265";import{cz as W,aq as j,bZ as k,ay as E}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const U={class:"p-20px"},$={class:"w-220px"},P={class:"ml-8px text-desc"},B={class:"w-220px mr-8px"},C={class:"text-desc"},R={class:"w-220px mr-8px"},L={class:"text-desc"},z=p({__name:"form",props:{isEdit:{type:Boolean,default:!1},row:{}},emits:["refresh"],setup(t,{expose:a,emit:l}){const i=t,n=l,{t:s}=d(),o=m(null),u=y({url:"",frequency:30,cycle:60}),p={url:{trigger:["blur","input"],validator:()=>""!==u.url.trim()||new Error(s("Waf.Setting.config_55"))},frequency:{trigger:["blur","input"],validator:()=>!!u.frequency||new Error(s("Waf.Setting.config_56"))},cycle:{trigger:["blur","input"],validator:()=>!!u.cycle||new Error(s("Waf.Setting.config_57"))}};return(()=>{const{row:e,isEdit:t}=i;t&&e&&(u.url=e.url,u.frequency=e.frequency,u.cycle=e.cycle)})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),i.isEdit?await r(q(u)):await c(q(u)),n("refresh")}}),(t,a)=>{const l=j,i=W,n=k,s=f,r=e;return _(),g("div",U,[v(s,{ref_key:"formRef",ref:o,model:x(u),rules:p},{default:b((()=>[v(i,{label:"URL",path:"url"},{default:b((()=>[w("div",$,[v(l,{value:x(u).url,"onUpdate:value":a[0]||(a[0]=e=>x(u).url=e),placeholder:"/index.php"},null,8,["value"])]),w("span",P,h(t.$t("Waf.Setting.config_51")),1)])),_:1}),v(i,{label:t.$t("Waf.Setting.config_48"),path:"frequency"},{default:b((()=>[w("div",B,[v(n,{value:x(u).frequency,"onUpdate:value":a[1]||(a[1]=e=>x(u).frequency=e),min:1,"show-button":!1},null,8,["value"])]),w("span",C,h(t.$t("Public.Unit.Time",x(u).frequency)),1)])),_:1},8,["label"]),v(i,{label:t.$t("Waf.Setting.config_49"),path:"cycle"},{default:b((()=>[w("div",R,[v(n,{value:x(u).cycle,"onUpdate:value":a[2]||(a[2]=e=>x(u).cycle=e),min:1,"show-button":!1},null,8,["value"])]),w("span",L,h(t.$t("Public.Unit.Second",x(u).cycle)),1)])),_:1},8,["label"])])),_:1},8,["model"]),v(r,{class:"mt-12px"},{default:b((()=>[w("li",null,h(t.$t("Waf.Setting.config_54")),1)])),_:1})])}}}),A={class:"p-20px"},D={class:"flex mb-16px"},H=p({__name:"config",setup(e){const{t:r}=d(),c=e=>{i({title:e.title,width:570,footer:!0,data:{...e.data,onRefresh:()=>{q()}},component:z})},f=async()=>{c({title:r("Waf.Setting.config_46"),data:{isEdit:!1}})},{table:p,columns:m,setLoading:y}=t([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"frequency",title:r("Waf.Setting.config_48"),width:100,ellipsis:{tooltip:!0}},{key:"cycle",title:r("Waf.Setting.config_49"),width:120,ellipsis:{tooltip:!0},render:e=>r("Waf.Setting.config_50",[e.cycle])},a({width:100,options:e=>[{label:r("Public.Btn.Edit"),onClick:async()=>{(async e=>{c({title:r("Waf.Setting.config_47"),data:{row:e,isEdit:!0}})})(e)}},{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:e.url}),q()}}]})]),q=async()=>{try{y(!0);const{message:e}=await u();n(e)&&(p.data=Object.entries(e.cc_uri_frequency).map((([e,t])=>({url:e,frequency:s(t.frequency),cycle:s(t.cycle)}))))}finally{y(!1)}};return q(),(e,t)=>{const a=E,i=l;return _(),g("div",A,[w("div",D,[v(a,{type:"primary",onClick:f},{default:b((()=>[S(h(e.$t("Public.Btn.Add")),1)])),_:1})]),v(i,{"max-height":368,loading:x(p).loading,data:x(p).data,columns:x(m)},null,8,["loading","data","columns"])])}}});export{H as default};
+import{_ as e,b as t,h as a,f as l,u as i}from"./public.js?v=1753954525509";import{c as n,k as s}from"./page_layout.js?v=1753954525509";import{k as c,l as r,n as o,g as u}from"./setting.js?v=1753954525509";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{k as p,P as d,r as m,e as y,U as g,V as _,Q as v,a2 as b,W as w,X as x,a3 as h,N as q,j as S}from"./vue.js?v=1753954525509";import{aq as W,cA as j,c1 as k,ay as E}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const U={class:"p-20px"},$={class:"w-220px"},P={class:"ml-8px text-desc"},B={class:"w-220px mr-8px"},C={class:"text-desc"},R={class:"w-220px mr-8px"},L={class:"text-desc"},A=p({__name:"form",props:{isEdit:{type:Boolean,default:!1},row:{}},emits:["refresh"],setup(t,{expose:a,emit:l}){const i=t,n=l,{t:s}=d(),o=m(null),u=y({url:"",frequency:30,cycle:60}),p={url:{trigger:["blur","input"],validator:()=>""!==u.url.trim()||new Error(s("Waf.Setting.config_55"))},frequency:{trigger:["blur","input"],validator:()=>!!u.frequency||new Error(s("Waf.Setting.config_56"))},cycle:{trigger:["blur","input"],validator:()=>!!u.cycle||new Error(s("Waf.Setting.config_57"))}};return(()=>{const{row:e,isEdit:t}=i;t&&e&&(u.url=e.url,u.frequency=e.frequency,u.cycle=e.cycle)})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),i.isEdit?await c(q(u)):await r(q(u)),n("refresh")}}),(t,a)=>{const l=W,i=j,n=k,s=f,c=e;return g(),_("div",U,[v(s,{ref_key:"formRef",ref:o,model:x(u),rules:p},{default:b((()=>[v(i,{label:"URL",path:"url"},{default:b((()=>[w("div",$,[v(l,{value:x(u).url,"onUpdate:value":a[0]||(a[0]=e=>x(u).url=e),placeholder:"/index.php"},null,8,["value"])]),w("span",P,h(t.$t("Waf.Setting.config_51")),1)])),_:1}),v(i,{label:t.$t("Waf.Setting.config_48"),path:"frequency"},{default:b((()=>[w("div",B,[v(n,{value:x(u).frequency,"onUpdate:value":a[1]||(a[1]=e=>x(u).frequency=e),min:1,"show-button":!1},null,8,["value"])]),w("span",C,h(t.$t("Public.Unit.Time",x(u).frequency)),1)])),_:1},8,["label"]),v(i,{label:t.$t("Waf.Setting.config_49"),path:"cycle"},{default:b((()=>[w("div",R,[v(n,{value:x(u).cycle,"onUpdate:value":a[2]||(a[2]=e=>x(u).cycle=e),min:1,"show-button":!1},null,8,["value"])]),w("span",L,h(t.$t("Public.Unit.Second",x(u).cycle)),1)])),_:1},8,["label"])])),_:1},8,["model"]),v(c,{class:"mt-12px"},{default:b((()=>[w("li",null,h(t.$t("Waf.Setting.config_54")),1)])),_:1})])}}}),D={class:"p-20px"},H={class:"flex mb-16px"},N=p({__name:"config",setup(e){const{t:c}=d(),r=e=>{i({title:e.title,width:570,footer:!0,data:{...e.data,onRefresh:()=>{q()}},component:A})},f=async()=>{r({title:c("Waf.Setting.config_46"),data:{isEdit:!1}})},{table:p,columns:m,setLoading:y}=t([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"frequency",title:c("Waf.Setting.config_48"),width:100,ellipsis:{tooltip:!0}},{key:"cycle",title:c("Waf.Setting.config_49"),width:120,ellipsis:{tooltip:!0},render:e=>c("Waf.Setting.config_50",[e.cycle])},a({width:100,options:e=>[{label:c("Public.Btn.Edit"),onClick:async()=>{(async e=>{r({title:c("Waf.Setting.config_47"),data:{row:e,isEdit:!0}})})(e)}},{label:c("Public.Btn.Del"),onClick:async()=>{await o({url:e.url}),q()}}]})]),q=async()=>{try{y(!0);const{message:e}=await u();n(e)&&(p.data=Object.entries(e.cc_uri_frequency).map((([e,t])=>({url:e,frequency:s(t.frequency),cycle:s(t.cycle)}))))}finally{y(!1)}};return q(),(e,t)=>{const a=E,i=l;return g(),_("div",D,[w("div",H,[v(a,{type:"primary",onClick:f},{default:b((()=>[S(h(e.$t("Public.Btn.Add")),1)])),_:1})]),v(i,{"max-height":368,loading:x(p).loading,data:x(p).data,columns:x(m)},null,8,["loading","data","columns"])])}}});export{N as default};
diff --git a/BTPanel/static/vite/js/config6.js b/BTPanel/static/vite/js/config6.js
index e437d33e..b12b60c9 100644
--- a/BTPanel/static/vite/js/config6.js
+++ b/BTPanel/static/vite/js/config6.js
@@ -1 +1 @@
-import{b as a,h as e,f as t,_ as l,u as i}from"./public.js?v=1752142539265";import{d as n}from"./page_layout.js?v=1752142539265";import{o as s,p as r,g as o}from"./setting.js?v=1752142539265";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{_ as u}from"./index100.js?v=1752142539265";import{k as f,P as c,r as g,e as d,U as m,X as _,Q as v,a2 as y,V as b,W,j as S,a3 as h}from"./vue.js?v=1752142539265";import{cz as w,cD as x,aq as j,ay as k}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const $={class:"p-20px"},U={class:"w-100px mr-8px"},T={class:"w-220px"},R={class:"w-328px"},L={class:"w-100px"},B=f({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=c(),n=g(null),r=d({sType:"url",uri:"",param:"",type:1}),o=[{label:i("Waf.Setting.config_75"),value:"url"},{label:i("Waf.Setting.config_76"),value:"regular"}],f=[{label:i("Waf.Setting.config_68"),value:1},{label:i("Waf.Setting.config_69"),value:2},{label:i("Waf.Setting.config_70"),value:3},{label:i("Waf.Setting.config_71"),value:4}],S={uri:{trigger:["blur","input"],validator:()=>""!==r.uri.trim()||new Error(i("Waf.Setting.config_55"))}};return e({onConfirm:async()=>{var a;await(null==(a=n.value)?void 0:a.validate()),await s({stype:r.sType,uri:r.uri,param:r.param.replace(/\n/g,",").split(","),type:r.type}),l("refresh")}}),(a,e)=>{const t=x,l=j,i=w,s=u,c=p;return _(),m("div",$,[v(c,{ref_key:"formRef",ref:n,model:W(r),rules:S},{default:y((()=>[v(i,{label:a.$t("Waf.Setting.config_73"),path:"uri"},{default:y((()=>[b("div",U,[v(t,{value:W(r).sType,"onUpdate:value":e[0]||(e[0]=a=>W(r).sType=a),options:o},null,8,["value"])]),b("div",T,[v(l,{value:W(r).uri,"onUpdate:value":e[1]||(e[1]=a=>W(r).uri=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_65"),path:"param"},{default:y((()=>[b("div",R,[v(s,{value:W(r).param,"onUpdate:value":e[2]||(e[2]=a=>W(r).param=a),rows:4,placeholder:a.$t("Waf.Setting.config_74")},null,8,["value","placeholder"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_67"),path:"type","show-feedback":!1},{default:y((()=>[b("div",L,[v(t,{value:W(r).type,"onUpdate:value":e[3]||(e[3]=a=>W(r).type=a),"consistent-menu-width":!1,options:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),C={class:"p-20px"},E={class:"flex mb-16px"},P=f({__name:"config",setup(s){const{t:p}=c(),u=async()=>{var a;a={title:p("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{w()}},component:B})},{table:f,columns:g,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"param",title:p("Waf.Setting.config_65"),width:120,ellipsis:{tooltip:!0},render:a=>a.param?a.param.join(", "):"--"},{key:"sType",title:p("Waf.Setting.config_66"),width:80,render:a=>"regular"==a.sType?p("Waf.Setting.config_72"):"URL"},{key:"type",title:p("Waf.Setting.config_67"),width:90,render:a=>{var e="";switch(a.type){case 1:e=p("Waf.Setting.config_68");break;case 2:e=p("Waf.Setting.config_69");break;case 3:e=p("Waf.Setting.config_70");break;case 4:e=p("Waf.Setting.config_71")}return e}},e({width:60,options:a=>[{label:p("Public.Btn.Del"),onClick:async()=>{await r({uri:a.url}),w()}}]})]),w=async()=>{try{d(!0);const{message:a}=await o();n(a)&&(f.data=Object.entries(a.url_cc_param).map((([a,e])=>({url:a,type:e.type,param:e.param,sType:e.stype}))))}finally{d(!1)}};return w(),(a,e)=>{const i=k,n=t,s=l;return _(),m("div",C,[b("div",E,[v(i,{type:"primary",onClick:u},{default:y((()=>[S(h(a.$t("Public.Btn.Add")),1)])),_:1})]),v(n,{"max-height":368,loading:W(f).loading,data:W(f).data,columns:W(g)},null,8,["loading","data","columns"]),v(s,{class:"mt-12px"},{default:y((()=>[b("li",null,h(a.$t("Waf.Setting.config_60")),1),b("li",null,h(a.$t("Waf.Setting.config_61")),1),b("li",null,h(a.$t("Waf.Setting.config_62")),1),b("li",null,h(a.$t("Waf.Setting.config_63")),1)])),_:1})])}}});export{P as default};
+import{b as a,h as e,f as t,_ as l,u as i}from"./public.js?v=1753954525509";import{c as n}from"./page_layout.js?v=1753954525509";import{o as s,p as r,g as o}from"./setting.js?v=1753954525509";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as u}from"./index100.js?v=1753954525509";import{k as f,P as c,r as g,e as d,U as m,V as _,Q as v,a2 as y,W as b,X as W,j as S,a3 as h}from"./vue.js?v=1753954525509";import{cG as w,aq as x,cA as j,ay as k}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const $={class:"p-20px"},U={class:"w-100px mr-8px"},T={class:"w-220px"},R={class:"w-328px"},L={class:"w-100px"},B=f({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=c(),n=g(null),r=d({sType:"url",uri:"",param:"",type:1}),o=[{label:i("Waf.Setting.config_75"),value:"url"},{label:i("Waf.Setting.config_76"),value:"regular"}],f=[{label:i("Waf.Setting.config_68"),value:1},{label:i("Waf.Setting.config_69"),value:2},{label:i("Waf.Setting.config_70"),value:3},{label:i("Waf.Setting.config_71"),value:4}],S={uri:{trigger:["blur","input"],validator:()=>""!==r.uri.trim()||new Error(i("Waf.Setting.config_55"))}};return e({onConfirm:async()=>{var a;await(null==(a=n.value)?void 0:a.validate()),await s({stype:r.sType,uri:r.uri,param:r.param.replace(/\n/g,",").split(","),type:r.type}),l("refresh")}}),(a,e)=>{const t=w,l=x,i=j,s=u,c=p;return m(),_("div",$,[v(c,{ref_key:"formRef",ref:n,model:W(r),rules:S},{default:y((()=>[v(i,{label:a.$t("Waf.Setting.config_73"),path:"uri"},{default:y((()=>[b("div",U,[v(t,{value:W(r).sType,"onUpdate:value":e[0]||(e[0]=a=>W(r).sType=a),options:o},null,8,["value"])]),b("div",T,[v(l,{value:W(r).uri,"onUpdate:value":e[1]||(e[1]=a=>W(r).uri=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_65"),path:"param"},{default:y((()=>[b("div",R,[v(s,{value:W(r).param,"onUpdate:value":e[2]||(e[2]=a=>W(r).param=a),rows:4,placeholder:a.$t("Waf.Setting.config_74")},null,8,["value","placeholder"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_67"),path:"type","show-feedback":!1},{default:y((()=>[b("div",L,[v(t,{value:W(r).type,"onUpdate:value":e[3]||(e[3]=a=>W(r).type=a),"consistent-menu-width":!1,options:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),C={class:"p-20px"},E={class:"flex mb-16px"},P=f({__name:"config",setup(s){const{t:p}=c(),u=async()=>{var a;a={title:p("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{w()}},component:B})},{table:f,columns:g,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"param",title:p("Waf.Setting.config_65"),width:120,ellipsis:{tooltip:!0},render:a=>a.param?a.param.join(", "):"--"},{key:"sType",title:p("Waf.Setting.config_66"),width:80,render:a=>"regular"==a.sType?p("Waf.Setting.config_72"):"URL"},{key:"type",title:p("Waf.Setting.config_67"),width:90,render:a=>{var e="";switch(a.type){case 1:e=p("Waf.Setting.config_68");break;case 2:e=p("Waf.Setting.config_69");break;case 3:e=p("Waf.Setting.config_70");break;case 4:e=p("Waf.Setting.config_71")}return e}},e({width:60,options:a=>[{label:p("Public.Btn.Del"),onClick:async()=>{await r({uri:a.url}),w()}}]})]),w=async()=>{try{d(!0);const{message:a}=await o();n(a)&&(f.data=Object.entries(a.url_cc_param).map((([a,e])=>({url:a,type:e.type,param:e.param,sType:e.stype}))))}finally{d(!1)}};return w(),(a,e)=>{const i=k,n=t,s=l;return m(),_("div",C,[b("div",E,[v(i,{type:"primary",onClick:u},{default:y((()=>[S(h(a.$t("Public.Btn.Add")),1)])),_:1})]),v(n,{"max-height":368,loading:W(f).loading,data:W(f).data,columns:W(g)},null,8,["loading","data","columns"]),v(s,{class:"mt-12px"},{default:y((()=>[b("li",null,h(a.$t("Waf.Setting.config_60")),1),b("li",null,h(a.$t("Waf.Setting.config_61")),1),b("li",null,h(a.$t("Waf.Setting.config_62")),1),b("li",null,h(a.$t("Waf.Setting.config_63")),1)])),_:1})])}}});export{P as default};
diff --git a/BTPanel/static/vite/js/config7.js b/BTPanel/static/vite/js/config7.js
index d2b69827..5379cd54 100644
--- a/BTPanel/static/vite/js/config7.js
+++ b/BTPanel/static/vite/js/config7.js
@@ -1 +1 @@
-import{b as a,h as t,f as l,_ as s}from"./public.js?v=1752142539265";import{k as e,P as n,r as i,U as o,X as r,V as u,Q as c,at as m,ah as p,W as f,a2 as d,j as g,a3 as _}from"./vue.js?v=1752142539265";import{w as v,m as y}from"./page_layout.js?v=1752142539265";import{q as x,t as j,v as b}from"./setting.js?v=1752142539265";import{aq as h,ay as W}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const w={class:"p-20px"},S={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},k=e({__name:"config",setup(e){const{t:k}=n(),P=i(""),U=async()=>{""!==P.value.trim()?(await b({text:P.value}),P.value="",L()):y.error(k("Waf.Setting.config_81"))},{table:q,columns:B,setLoading:C}=a([{key:"rule",title:"URL"},t({width:80,options:a=>[{label:k("Public.Btn.Del"),onClick:async()=>{await x({text:a.rule}),L()}}]})]),L=async()=>{try{C(!0);const{message:a}=await j();v(a)&&(q.data=a.map((a=>({rule:a}))))}finally{C(!1)}};return L(),(a,t)=>{const e=h,n=W,i=l,v=s;return r(),o("div",w,[u("div",S,[u("div",$,[c(e,{value:f(P),"onUpdate:value":t[0]||(t[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Setting.config_78"),onKeyup:m(U,["enter"])},null,8,["value","placeholder"])]),c(n,{type:"primary",onClick:U},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:f(q).loading,data:f(q).data,columns:f(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_77")),1),u("li",null,_(a.$t("Waf.Setting.config_79")),1),u("li",null,_(a.$t("Waf.Setting.config_80")),1)])),_:1})])}}});export{k as default};
+import{b as a,h as t,f as l,_ as s}from"./public.js?v=1753954525509";import{k as e,P as n,r as i,U as o,V as r,W as u,Q as c,X as m,ah as p,at as f,a2 as d,j as g,a3 as _}from"./vue.js?v=1753954525509";import{w as v,m as y}from"./page_layout.js?v=1753954525509";import{q as x,t as j,v as b}from"./setting.js?v=1753954525509";import{aq as h,ay as W}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const w={class:"p-20px"},S={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},k=e({__name:"config",setup(e){const{t:k}=n(),P=i(""),U=async()=>{""!==P.value.trim()?(await b({text:P.value}),P.value="",L()):y.error(k("Waf.Setting.config_81"))},{table:q,columns:B,setLoading:C}=a([{key:"rule",title:"URL"},t({width:80,options:a=>[{label:k("Public.Btn.Del"),onClick:async()=>{await x({text:a.rule}),L()}}]})]),L=async()=>{try{C(!0);const{message:a}=await j();v(a)&&(q.data=a.map((a=>({rule:a}))))}finally{C(!1)}};return L(),(a,t)=>{const e=h,n=W,i=l,v=s;return o(),r("div",w,[u("div",S,[u("div",$,[c(e,{value:m(P),"onUpdate:value":t[0]||(t[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Setting.config_78"),onKeyup:f(U,["enter"])},null,8,["value","placeholder"])]),c(n,{type:"primary",onClick:U},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:m(q).loading,data:m(q).data,columns:m(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_77")),1),u("li",null,_(a.$t("Waf.Setting.config_79")),1),u("li",null,_(a.$t("Waf.Setting.config_80")),1)])),_:1})])}}});export{k as default};
diff --git a/BTPanel/static/vite/js/config8.js b/BTPanel/static/vite/js/config8.js
index f78b89b8..27f94e0a 100644
--- a/BTPanel/static/vite/js/config8.js
+++ b/BTPanel/static/vite/js/config8.js
@@ -1 +1 @@
-import{b as a,h as e,f as t,_ as l,u as i}from"./public.js?v=1752142539265";import{e as s,w as n}from"./page_layout.js?v=1752142539265";import{B as r,C as o,D as u}from"./setting.js?v=1752142539265";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{k as c,ab as f,ac as m,c as d,U as v,X as g,V as _,a3 as y,H as h,W as b,F as S,O as C,P,r as W,e as w,Q as x,a2 as j,j as E}from"./vue.js?v=1752142539265";import{cz as k,cD as O,aq as R,ay as T}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const A={class:"param-list"},U=["onClick"],D=s(c({__name:"param",props:{value:{default:()=>[]},valueModifiers:{}},emits:f(["change"],["update:value"]),setup(a,{emit:e}){const t=e,l=m(a,"value"),i=["POST","GET","PUT","OPTIONS","HEAD","DELETE","TRACE","PATCH","MOVE","COPY","LINK","UNLINK","WRAPPED","PROPFIND","PROPPATCH","MKCOL","CONNECT","SRARCH"],s=d((()=>i.length===l.value.length)),n=()=>{l.value=[],s.value||(l.value=i.map((a=>a))),t("change")};return(a,e)=>(g(),v("div",A,[_("div",{class:h(["param-item",{active:b(s)}]),onClick:n},y(a.$t("Public.SelectAll")),3),(g(),v(S,null,C(i,(a=>{return _("div",{key:a,class:h(["param-item",{active:(e=a,l.value.includes(e))}]),onClick:e=>(a=>{const e=l.value.indexOf(a);-1===e?l.value.push(a):l.value.splice(e,1),t("change")})(a)},y(a),11,U);var e})),64))]))}}),[["__scopeId","data-v-d6f769f3"]]),L={class:"p-20px"},N={class:"w-100px mr-8px"},H={class:"w-220px"},I={class:"w-328px"},$=c({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=P(),s=W(null),n=W(null),o=w({type:"refuse",url:"",param:[]}),u=[{label:i("Waf.Setting.config_111"),value:"refuse"},{label:i("Waf.Setting.config_110"),value:"accept"}],c={url:{trigger:["blur","input"],validator:()=>""!==o.url.trim()||new Error(i("Waf.Setting.config_55"))},param:{validator:()=>0!==o.param.length||new Error(i("Waf.Setting.config_112"))}},f=()=>{var a;null==(a=n.value)||a.restoreValidation()};return e({onConfirm:async()=>{var a;await(null==(a=s.value)?void 0:a.validate()),await r({type:o.type,url:o.url,param:o.param.join(",")}),l("refresh")}}),(a,e)=>{const t=O,l=R,i=k,r=p;return g(),v("div",L,[x(r,{ref_key:"formRef",ref:s,model:b(o),rules:c},{default:j((()=>[x(i,{label:a.$t("Waf.Setting.config_73"),path:"url"},{default:j((()=>[_("div",N,[x(t,{value:b(o).type,"onUpdate:value":e[0]||(e[0]=a=>b(o).type=a),options:u},null,8,["value"])]),_("div",H,[x(l,{value:b(o).url,"onUpdate:value":e[1]||(e[1]=a=>b(o).url=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),x(i,{ref_key:"paramItemRef",ref:n,label:a.$t("Waf.Setting.config_65"),path:"param"},{default:j((()=>[_("div",I,[x(D,{value:b(o).param,"onUpdate:value":e[2]||(e[2]=a=>b(o).param=a),onChange:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),B={class:"p-20px"},K={class:"flex mb-16px"},M=c({__name:"config",setup(s){const{t:r}=P(),p=async()=>{var a;a={title:r("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{d()}},component:$})},{table:c,columns:f,setLoading:m}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"type",title:r("Waf.Setting.config_73"),width:80,ellipsis:{tooltip:!0},render:a=>"refuse"===a.type?r("Waf.Setting.config_111"):r("Waf.Setting.config_110")},{key:"mode",title:r("Waf.Setting.config_93"),width:216,ellipsis:{tooltip:!0},render:a=>Object.entries(a.mode).map((([,a])=>a)).join(", ")},e({width:60,options:a=>[{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:a.url}),d()}}]})]),d=async()=>{try{m(!0);const{message:a}=await u();c.data=n(a)?a:[]}finally{m(!1)}};return d(),(a,e)=>{const i=T,s=t,n=l;return g(),v("div",B,[_("div",K,[x(i,{type:"primary",onClick:p},{default:j((()=>[E(y(a.$t("Public.Btn.Add")),1)])),_:1})]),x(s,{"max-height":270,loading:b(c).loading,data:b(c).data,columns:b(f)},null,8,["loading","data","columns"]),x(n,{class:"mt-12px"},{default:j((()=>[_("li",null,y(a.$t("Waf.Setting.config_108")),1),_("li",null,y(a.$t("Waf.Setting.config_109")),1)])),_:1})])}}});export{M as default};
+import{b as a,h as e,f as t,_ as l,u as i}from"./public.js?v=1753954525509";import{e as s,w as n}from"./page_layout.js?v=1753954525509";import{B as r,C as o,D as u}from"./setting.js?v=1753954525509";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{k as c,ab as f,ac as m,c as d,U as v,V as g,W as _,a3 as y,H as h,X as b,F as S,O as C,P,r as W,e as w,Q as x,a2 as j,j as E}from"./vue.js?v=1753954525509";import{cG as k,aq as O,cA as R,ay as A}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const T={class:"param-list"},U=["onClick"],L=s(c({__name:"param",props:{value:{default:()=>[]},valueModifiers:{}},emits:f(["change"],["update:value"]),setup(a,{emit:e}){const t=e,l=m(a,"value"),i=["POST","GET","PUT","OPTIONS","HEAD","DELETE","TRACE","PATCH","MOVE","COPY","LINK","UNLINK","WRAPPED","PROPFIND","PROPPATCH","MKCOL","CONNECT","SRARCH"],s=d((()=>i.length===l.value.length)),n=()=>{l.value=[],s.value||(l.value=i.map((a=>a))),t("change")};return(a,e)=>(v(),g("div",T,[_("div",{class:h(["param-item",{active:b(s)}]),onClick:n},y(a.$t("Public.SelectAll")),3),(v(),g(S,null,C(i,(a=>{return _("div",{key:a,class:h(["param-item",{active:(e=a,l.value.includes(e))}]),onClick:e=>(a=>{const e=l.value.indexOf(a);-1===e?l.value.push(a):l.value.splice(e,1),t("change")})(a)},y(a),11,U);var e})),64))]))}}),[["__scopeId","data-v-d6f769f3"]]),N={class:"p-20px"},D={class:"w-100px mr-8px"},H={class:"w-220px"},I={class:"w-328px"},$=c({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=P(),s=W(null),n=W(null),o=w({type:"refuse",url:"",param:[]}),u=[{label:i("Waf.Setting.config_111"),value:"refuse"},{label:i("Waf.Setting.config_110"),value:"accept"}],c={url:{trigger:["blur","input"],validator:()=>""!==o.url.trim()||new Error(i("Waf.Setting.config_55"))},param:{validator:()=>0!==o.param.length||new Error(i("Waf.Setting.config_112"))}},f=()=>{var a;null==(a=n.value)||a.restoreValidation()};return e({onConfirm:async()=>{var a;await(null==(a=s.value)?void 0:a.validate()),await r({type:o.type,url:o.url,param:o.param.join(",")}),l("refresh")}}),(a,e)=>{const t=k,l=O,i=R,r=p;return v(),g("div",N,[x(r,{ref_key:"formRef",ref:s,model:b(o),rules:c},{default:j((()=>[x(i,{label:a.$t("Waf.Setting.config_73"),path:"url"},{default:j((()=>[_("div",D,[x(t,{value:b(o).type,"onUpdate:value":e[0]||(e[0]=a=>b(o).type=a),options:u},null,8,["value"])]),_("div",H,[x(l,{value:b(o).url,"onUpdate:value":e[1]||(e[1]=a=>b(o).url=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),x(i,{ref_key:"paramItemRef",ref:n,label:a.$t("Waf.Setting.config_65"),path:"param"},{default:j((()=>[_("div",I,[x(L,{value:b(o).param,"onUpdate:value":e[2]||(e[2]=a=>b(o).param=a),onChange:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),B={class:"p-20px"},K={class:"flex mb-16px"},M=c({__name:"config",setup(s){const{t:r}=P(),p=async()=>{var a;a={title:r("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{d()}},component:$})},{table:c,columns:f,setLoading:m}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"type",title:r("Waf.Setting.config_73"),width:80,ellipsis:{tooltip:!0},render:a=>"refuse"===a.type?r("Waf.Setting.config_111"):r("Waf.Setting.config_110")},{key:"mode",title:r("Waf.Setting.config_93"),width:216,ellipsis:{tooltip:!0},render:a=>Object.entries(a.mode).map((([,a])=>a)).join(", ")},e({width:60,options:a=>[{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:a.url}),d()}}]})]),d=async()=>{try{m(!0);const{message:a}=await u();c.data=n(a)?a:[]}finally{m(!1)}};return d(),(a,e)=>{const i=A,s=t,n=l;return v(),g("div",B,[_("div",K,[x(i,{type:"primary",onClick:p},{default:j((()=>[E(y(a.$t("Public.Btn.Add")),1)])),_:1})]),x(s,{"max-height":270,loading:b(c).loading,data:b(c).data,columns:b(f)},null,8,["loading","data","columns"]),x(n,{class:"mt-12px"},{default:j((()=>[_("li",null,y(a.$t("Waf.Setting.config_108")),1),_("li",null,y(a.$t("Waf.Setting.config_109")),1)])),_:1})])}}});export{M as default};
diff --git a/BTPanel/static/vite/js/config9.js b/BTPanel/static/vite/js/config9.js
index 5e5233d2..201429ab 100644
--- a/BTPanel/static/vite/js/config9.js
+++ b/BTPanel/static/vite/js/config9.js
@@ -1 +1 @@
-import{b as a,h as l,f as t,_ as s}from"./public.js?v=1752142539265";import{k as n,P as e,r as i,U as o,X as r,V as u,Q as c,at as m,ah as f,W as p,a2 as d,j as g,a3 as _}from"./vue.js?v=1752142539265";import{w as v,m as y}from"./page_layout.js?v=1752142539265";import{E as j,F as x,G as b}from"./setting.js?v=1752142539265";import{aq as h,ay as W}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const w={class:"p-20px"},S={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},k=n({__name:"config",setup(n){const{t:k}=e(),P=i(""),U=async()=>{""!==P.value.trim()?(await b({url_find:P.value}),P.value="",q()):y.error(k("Waf.Setting.config_81"))},{table:B,columns:C,setLoading:L}=a([{key:"url",title:"URL"},l({width:80,options:a=>[{label:k("Public.Btn.Del"),onClick:async()=>{await j({url_find:a.url}),q()}}]})]),q=async()=>{try{L(!0);const{message:a}=await x();v(a)&&(B.data=a.map((a=>({url:a}))))}finally{L(!1)}};return q(),(a,l)=>{const n=h,e=W,i=t,v=s;return r(),o("div",w,[u("div",S,[u("div",$,[c(n,{value:p(P),"onUpdate:value":l[0]||(l[0]=a=>f(P)?P.value=a:null),placeholder:a.$t("Waf.Setting.config_116"),onKeyup:m(U,["enter"])},null,8,["value","placeholder"])]),c(e,{type:"primary",onClick:U},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:p(B).loading,data:p(B).data,columns:p(C)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_117")),1),u("li",null,_(a.$t("Waf.Setting.config_118")),1),u("li",null,_(a.$t("Waf.Setting.config_119")),1)])),_:1})])}}});export{k as default};
+import{b as a,h as l,f as t,_ as s}from"./public.js?v=1753954525509";import{k as n,P as e,r as i,U as o,V as r,W as u,Q as c,X as m,ah as f,at as p,a2 as d,j as g,a3 as _}from"./vue.js?v=1753954525509";import{w as v,m as y}from"./page_layout.js?v=1753954525509";import{E as j,F as x,G as b}from"./setting.js?v=1753954525509";import{aq as h,ay as W}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const w={class:"p-20px"},S={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},k=n({__name:"config",setup(n){const{t:k}=e(),P=i(""),U=async()=>{""!==P.value.trim()?(await b({url_find:P.value}),P.value="",q()):y.error(k("Waf.Setting.config_81"))},{table:B,columns:C,setLoading:L}=a([{key:"url",title:"URL"},l({width:80,options:a=>[{label:k("Public.Btn.Del"),onClick:async()=>{await j({url_find:a.url}),q()}}]})]),q=async()=>{try{L(!0);const{message:a}=await x();v(a)&&(B.data=a.map((a=>({url:a}))))}finally{L(!1)}};return q(),(a,l)=>{const n=h,e=W,i=t,v=s;return o(),r("div",w,[u("div",S,[u("div",$,[c(n,{value:m(P),"onUpdate:value":l[0]||(l[0]=a=>f(P)?P.value=a:null),placeholder:a.$t("Waf.Setting.config_116"),onKeyup:p(U,["enter"])},null,8,["value","placeholder"])]),c(e,{type:"primary",onClick:U},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:m(B).loading,data:m(B).data,columns:m(C)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_117")),1),u("li",null,_(a.$t("Waf.Setting.config_118")),1),u("li",null,_(a.$t("Waf.Setting.config_119")),1)])),_:1})])}}});export{k as default};
diff --git a/BTPanel/static/vite/js/configStore-legacy.js b/BTPanel/static/vite/js/configStore-legacy.js
index 36c2b293..0efeb84a 100644
--- a/BTPanel/static/vite/js/configStore-legacy.js
+++ b/BTPanel/static/vite/js/configStore-legacy.js
@@ -1 +1 @@
-System.register(["./vue-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265"],(function(e,a){"use strict";var t,s,u,i,n,o,l,c,p,r,d,m,v,_,b,f,h,y,g,k,w,x,I,C,S;return{setters:[e=>{t=e.k,s=e.ac,u=e.r,i=e.U,n=e.X,o=e.F,l=e.Q,c=e.a2,p=e.q,r=e.W,d=e.I,m=e.V,v=e.a3,_=e.am},e=>{b=e.ab,f=e.e,h=e.ai,y=e.d,g=e.br,k=e.w,w=e.bs,x=e.bt,I=e.bu},e=>{C=e._,S=e.b$}],execute:function(){var a=document.createElement("style");a.textContent=".confirm-tips[data-v-afc54be1]{padding:16px 20px;background-color:#f7f7f7;border:1px solid #ececec;border-radius:6px;color:#777;list-style:disc}.confirm-tips[data-v-afc54be1] li{margin-left:1.5em;line-height:16px;list-style:disc}.confirm-tips[data-v-afc54be1] li+li{margin-top:8px}\n/*$vite$:1*/",document.head.appendChild(a),e({a:async function(){const{message:e}=await g();M.value=k(e)?e:[]},b:async function(){const{message:e}=await w();y(e)&&(L.value.dynamicPwd=e.result)},c:async function(){const{message:e}=await x();y(e)&&(L.value.pwdSetDay=e.expire,L.value.pwdExpireDay=e.expire_day,L.value.pwdExpireTime=e.expire_time,L.value.pwdComplexity=e.password_safe)},d:async function(){const{message:e}=await I();y(e)&&(L.value.uaAstrict="0"!==e.status)},e:function(){E.value=null,L.value=null,M.value=[]},g:async function(){const{message:e}=await h();y(e)&&(function(e){E.value.listenIpv6="checked"===e.ipv6,E.value.offlineMode="checked"===e.is_local,E.value.debugMode="checked"===e.debug,E.value.apiInterface="checked"===e.api,E.value.lang=e.language,E.value.cdn_status=e.cdn_status,E.value.langList=e.language_list.map((e=>({label:e.title,value:e.name}))),E.value.webname=e.webname||"",E.value.session_timeout=e.session_timeout||"",E.value.session_timeout_source=e.session_timeout_source||86400,E.value.sites_path=e.sites_path||"",E.value.backup_path=e.backup_path||"",E.value.systemDate=e.systemdate||"",E.value.username=e.username||"";const{panel:a,user_info:t}=e;y(a)&&(E.value.serverIp=a.address||"",E.value.backup_info=a.backup_info),y(t)&&(E.value.account=t.data.username)}(e),function(e){const{panel:a,SSL:t}=e;L.value.panelSSL=t||location.protocol.indexOf("https:")>-1,L.value.basicAuth=e.basic_auth?.open||!1,L.value.statusCode=e.status_code||404,y(a)&&(L.value.domain=a.domain||"",L.value.limitIp=a.limitip||"",L.value.port=a.listen_port||"7800",L.value.adminPath=a.admin_path||"/")}(e))},h:function(){return{webname:E.value.webname||"",session_timeout:E.value.session_timeout_source||86400,domain:L.value.domain,limitip:L.value.limitIp,sites_path:E.value.sites_path,backup_path:E.value.backup_path,address:E.value.serverIp,systemdate:E.value.systemDate,port:L.value.port,backup_number:E.value.backup_info.backup_number,auto_backup:E.value.backup_info.auto_backup}},i:function(){E.value={listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}},L.value={panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1},M.value=[]}}),e("f",t({__name:"index",props:{checked:{type:[String,Number,Boolean]},checkedModifiers:{}},emits:["update:checked"],setup(e,{expose:a}){const t=s(e,"checked"),f=b(),h=u(0),y=u(0),g=u(!1),k=u(),w=()=>{const e=k.value.$el.getClientRects(),{x:a,y:t}=e[0];h.value=a-5,y.value=t-3,g.value=!0,x()},x=_((()=>{g.value=!1}),2500);return a({validate:()=>new Promise(((e,a)=>{t.value?e(!0):(w(),a(!1))})),showTips:w}),(e,a)=>{const s=C,u=S;return n(),i(o,null,[l(s,{ref_key:"checkboxRef",ref:k,checked:t.value,"onUpdate:checked":a[0]||(a[0]=e=>t.value=e)},{default:c((()=>[p(e.$slots,"default")])),_:3},8,["checked"]),l(u,{show:r(g),x:r(h),y:r(y),trigger:"manual",placement:"top-start",style:d({backgroundColor:r(f).errorColor,color:"#fff"}),"arrow-style":{backgroundColor:r(f).errorColor}},{default:c((()=>[m("span",null,v(e.$t("Config.Safe.index_169")),1)])),_:1},8,["show","x","y","style","arrow-style"])],64)}}}));const D={class:"confirm-tips"};e("_",f({},[["render",function(e,a){return n(),i("ul",D,[p(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-afc54be1"]]));const E=e("p",u({listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}})),L=e("s",u({panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1})),M=e("m",u([]))}}}));
+System.register(["./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,a){"use strict";var t,s,u,n,i,o,l,c,p,r,d,m,v,_,f,b,h,y,g,k,w,x,I,C,S;return{setters:[e=>{t=e.k,s=e.ac,u=e.r,n=e.an,i=e.U,o=e.V,l=e.Q,c=e.a2,p=e.q,r=e.W,d=e.a3,m=e.X,v=e.I,_=e.F},e=>{f=e.ab,b=e.e,h=e.ah,y=e.c,g=e.bs,k=e.w,w=e.bt,x=e.bu,I=e.bv},e=>{C=e._,S=e.c3}],execute:function(){var a=document.createElement("style");a.textContent=".confirm-tips[data-v-afc54be1]{padding:16px 20px;background-color:#f7f7f7;border:1px solid #ececec;border-radius:6px;color:#777;list-style:disc}.confirm-tips[data-v-afc54be1] li{margin-left:1.5em;line-height:16px;list-style:disc}.confirm-tips[data-v-afc54be1] li+li{margin-top:8px}\n",document.head.appendChild(a),e({a:async function(){const{message:e}=await g();M.value=k(e)?e:[]},b:async function(){const{message:e}=await w();y(e)&&(L.value.dynamicPwd=e.result)},c:async function(){const{message:e}=await x();y(e)&&(L.value.pwdSetDay=e.expire,L.value.pwdExpireDay=e.expire_day,L.value.pwdExpireTime=e.expire_time,L.value.pwdComplexity=e.password_safe)},d:async function(){const{message:e}=await I();y(e)&&(L.value.uaAstrict="0"!==e.status)},e:function(){E.value=null,L.value=null,M.value=[]},g:async function(){const{message:e}=await h();y(e)&&(function(e){E.value.listenIpv6="checked"===e.ipv6,E.value.offlineMode="checked"===e.is_local,E.value.debugMode="checked"===e.debug,E.value.apiInterface="checked"===e.api,E.value.lang=e.language,E.value.cdn_status=e.cdn_status,E.value.langList=e.language_list.map((e=>({label:e.title,value:e.name}))),E.value.webname=e.webname||"",E.value.session_timeout=e.session_timeout||"",E.value.session_timeout_source=e.session_timeout_source||86400,E.value.sites_path=e.sites_path||"",E.value.backup_path=e.backup_path||"",E.value.systemDate=e.systemdate||"",E.value.username=e.username||"";const{panel:a,user_info:t}=e;y(a)&&(E.value.serverIp=a.address||"",E.value.backup_info=a.backup_info),y(t)&&(E.value.account=t.data.username)}(e),function(e){const{panel:a,SSL:t}=e;L.value.panelSSL=t||location.protocol.indexOf("https:")>-1,L.value.basicAuth=e.basic_auth?.open||!1,L.value.statusCode=e.status_code||404,y(a)&&(L.value.domain=a.domain||"",L.value.limitIp=a.limitip||"",L.value.port=a.listen_port||"7800",L.value.adminPath=a.admin_path||"/")}(e))},h:function(){return{webname:E.value.webname||"",session_timeout:E.value.session_timeout_source||86400,domain:L.value.domain,limitip:L.value.limitIp,sites_path:E.value.sites_path,backup_path:E.value.backup_path,address:E.value.serverIp,systemdate:E.value.systemDate,port:L.value.port,backup_number:E.value.backup_info.backup_number,auto_backup:E.value.backup_info.auto_backup}},i:function(){E.value={listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}},L.value={panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1},M.value=[]}}),e("f",t({__name:"index",props:{checked:{type:[String,Number,Boolean]},checkedModifiers:{}},emits:["update:checked"],setup(e,{expose:a}){const t=s(e,"checked"),b=f(),h=u(0),y=u(0),g=u(!1),k=u(),w=()=>{const e=k.value.$el.getClientRects(),{x:a,y:t}=e[0];h.value=a-5,y.value=t-3,g.value=!0,x()},x=n((()=>{g.value=!1}),2500);return a({validate:()=>new Promise(((e,a)=>{t.value?e(!0):(w(),a(!1))})),showTips:w}),(e,a)=>{const s=C,u=S;return i(),o(_,null,[l(s,{ref_key:"checkboxRef",ref:k,checked:t.value,"onUpdate:checked":a[0]||(a[0]=e=>t.value=e)},{default:c((()=>[p(e.$slots,"default")])),_:3},8,["checked"]),l(u,{show:m(g),x:m(h),y:m(y),trigger:"manual",placement:"top-start",style:v({backgroundColor:m(b).errorColor,color:"#fff"}),"arrow-style":{backgroundColor:m(b).errorColor}},{default:c((()=>[r("span",null,d(e.$t("Config.Safe.index_169")),1)])),_:1},8,["show","x","y","style","arrow-style"])],64)}}}));const D={class:"confirm-tips"};e("_",b({},[["render",function(e,a){return i(),o("ul",D,[p(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-afc54be1"]]));const E=e("p",u({listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}})),L=e("s",u({panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1})),M=e("m",u([]))}}}));
diff --git a/BTPanel/static/vite/js/configStore.js b/BTPanel/static/vite/js/configStore.js
index 4999d4c9..ecd1bdee 100644
--- a/BTPanel/static/vite/js/configStore.js
+++ b/BTPanel/static/vite/js/configStore.js
@@ -1 +1 @@
-import{k as e,ac as a,r as s,U as t,X as u,F as n,Q as i,a2 as o,q as l,W as c,I as p,V as r,a3 as d,am as m}from"./vue.js?v=1752142539265";import{ab as v,e as _,ai as b,d as f,br as h,w as k,bs as w,bt as y,bu as g}from"./page_layout.js?v=1752142539265";import{_ as x,b$ as I}from"./naive.js?v=1752142539265";const S=e({__name:"index",props:{checked:{type:[String,Number,Boolean]},checkedModifiers:{}},emits:["update:checked"],setup(e,{expose:_}){const b=a(e,"checked"),f=v(),h=s(0),k=s(0),w=s(!1),y=s(),g=()=>{const e=y.value.$el.getClientRects(),{x:a,y:s}=e[0];h.value=a-5,k.value=s-3,w.value=!0,S()},S=m((()=>{w.value=!1}),2500);return _({validate:()=>new Promise(((e,a)=>{b.value?e(!0):(g(),a(!1))})),showTips:g}),(e,a)=>{const s=x,m=I;return u(),t(n,null,[i(s,{ref_key:"checkboxRef",ref:y,checked:b.value,"onUpdate:checked":a[0]||(a[0]=e=>b.value=e)},{default:o((()=>[l(e.$slots,"default")])),_:3},8,["checked"]),i(m,{show:c(w),x:c(h),y:c(k),trigger:"manual",placement:"top-start",style:p({backgroundColor:c(f).errorColor,color:"#fff"}),"arrow-style":{backgroundColor:c(f).errorColor}},{default:o((()=>[r("span",null,d(e.$t("Config.Safe.index_169")),1)])),_:1},8,["show","x","y","style","arrow-style"])],64)}}}),C={class:"confirm-tips"};const D=_({},[["render",function(e,a){return u(),t("ul",C,[l(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-afc54be1"]]),L=s({listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}}),M=s({panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1}),P=s([]);async function A(){const{message:e}=await b();f(e)&&(function(e){L.value.listenIpv6="checked"===e.ipv6,L.value.offlineMode="checked"===e.is_local,L.value.debugMode="checked"===e.debug,L.value.apiInterface="checked"===e.api,L.value.lang=e.language,L.value.cdn_status=e.cdn_status,L.value.langList=e.language_list.map((e=>({label:e.title,value:e.name}))),L.value.webname=e.webname||"",L.value.session_timeout=e.session_timeout||"",L.value.session_timeout_source=e.session_timeout_source||86400,L.value.sites_path=e.sites_path||"",L.value.backup_path=e.backup_path||"",L.value.systemDate=e.systemdate||"",L.value.username=e.username||"";const{panel:a,user_info:s}=e;f(a)&&(L.value.serverIp=a.address||"",L.value.backup_info=a.backup_info);f(s)&&(L.value.account=s.data.username)}(e),function(e){var a;const{panel:s,SSL:t}=e;M.value.panelSSL=t||location.protocol.indexOf("https:")>-1,M.value.basicAuth=(null==(a=e.basic_auth)?void 0:a.open)||!1,M.value.statusCode=e.status_code||404,f(s)&&(M.value.domain=s.domain||"",M.value.limitIp=s.limitip||"",M.value.port=s.listen_port||"7800",M.value.adminPath=s.admin_path||"/")}(e))}async function E(){const{message:e}=await h();P.value=k(e)?e:[]}async function $(){const{message:e}=await w();f(e)&&(M.value.dynamicPwd=e.result)}async function T(){const{message:e}=await y();f(e)&&(M.value.pwdSetDay=e.expire,M.value.pwdExpireDay=e.expire_day,M.value.pwdExpireTime=e.expire_time,M.value.pwdComplexity=e.password_safe)}async function j(){const{message:e}=await g();f(e)&&(M.value.uaAstrict="0"!==e.status)}function z(){return{webname:L.value.webname||"",session_timeout:L.value.session_timeout_source||86400,domain:M.value.domain,limitip:M.value.limitIp,sites_path:L.value.sites_path,backup_path:L.value.backup_path,address:L.value.serverIp,systemdate:L.value.systemDate,port:M.value.port,backup_number:L.value.backup_info.backup_number,auto_backup:L.value.backup_info.auto_backup}}function R(){L.value={listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}},M.value={panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1},P.value=[]}function U(){L.value=null,M.value=null,P.value=[]}export{D as _,E as a,$ as b,T as c,j as d,U as e,S as f,A as g,z as h,R as i,P as m,L as p,M as s};
+import{k as e,ac as a,r as s,an as t,U as u,V as n,Q as o,a2 as i,q as l,W as c,a3 as p,X as r,I as d,F as m}from"./vue.js?v=1753954525509";import{ab as v,e as _,ah as b,c as f,bs as h,w as k,bt as w,bu as y,bv as g}from"./page_layout.js?v=1753954525509";import{_ as x,c3 as I}from"./naive.js?v=1753954525509";const S=e({__name:"index",props:{checked:{type:[String,Number,Boolean]},checkedModifiers:{}},emits:["update:checked"],setup(e,{expose:_}){const b=a(e,"checked"),f=v(),h=s(0),k=s(0),w=s(!1),y=s(),g=()=>{const e=y.value.$el.getClientRects(),{x:a,y:s}=e[0];h.value=a-5,k.value=s-3,w.value=!0,S()},S=t((()=>{w.value=!1}),2500);return _({validate:()=>new Promise(((e,a)=>{b.value?e(!0):(g(),a(!1))})),showTips:g}),(e,a)=>{const s=x,t=I;return u(),n(m,null,[o(s,{ref_key:"checkboxRef",ref:y,checked:b.value,"onUpdate:checked":a[0]||(a[0]=e=>b.value=e)},{default:i((()=>[l(e.$slots,"default")])),_:3},8,["checked"]),o(t,{show:r(w),x:r(h),y:r(k),trigger:"manual",placement:"top-start",style:d({backgroundColor:r(f).errorColor,color:"#fff"}),"arrow-style":{backgroundColor:r(f).errorColor}},{default:i((()=>[c("span",null,p(e.$t("Config.Safe.index_169")),1)])),_:1},8,["show","x","y","style","arrow-style"])],64)}}}),C={class:"confirm-tips"};const D=_({},[["render",function(e,a){return u(),n("ul",C,[l(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-afc54be1"]]),L=s({listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}}),M=s({panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1}),P=s([]);async function A(){const{message:e}=await b();f(e)&&(function(e){L.value.listenIpv6="checked"===e.ipv6,L.value.offlineMode="checked"===e.is_local,L.value.debugMode="checked"===e.debug,L.value.apiInterface="checked"===e.api,L.value.lang=e.language,L.value.cdn_status=e.cdn_status,L.value.langList=e.language_list.map((e=>({label:e.title,value:e.name}))),L.value.webname=e.webname||"",L.value.session_timeout=e.session_timeout||"",L.value.session_timeout_source=e.session_timeout_source||86400,L.value.sites_path=e.sites_path||"",L.value.backup_path=e.backup_path||"",L.value.systemDate=e.systemdate||"",L.value.username=e.username||"";const{panel:a,user_info:s}=e;f(a)&&(L.value.serverIp=a.address||"",L.value.backup_info=a.backup_info);f(s)&&(L.value.account=s.data.username)}(e),function(e){var a;const{panel:s,SSL:t}=e;M.value.panelSSL=t||location.protocol.indexOf("https:")>-1,M.value.basicAuth=(null==(a=e.basic_auth)?void 0:a.open)||!1,M.value.statusCode=e.status_code||404,f(s)&&(M.value.domain=s.domain||"",M.value.limitIp=s.limitip||"",M.value.port=s.listen_port||"7800",M.value.adminPath=s.admin_path||"/")}(e))}async function E(){const{message:e}=await h();P.value=k(e)?e:[]}async function T(){const{message:e}=await w();f(e)&&(M.value.dynamicPwd=e.result)}async function $(){const{message:e}=await y();f(e)&&(M.value.pwdSetDay=e.expire,M.value.pwdExpireDay=e.expire_day,M.value.pwdExpireTime=e.expire_time,M.value.pwdComplexity=e.password_safe)}async function j(){const{message:e}=await g();f(e)&&(M.value.uaAstrict="0"!==e.status)}function z(){return{webname:L.value.webname||"",session_timeout:L.value.session_timeout_source||86400,domain:M.value.domain,limitip:M.value.limitIp,sites_path:L.value.sites_path,backup_path:L.value.backup_path,address:L.value.serverIp,systemdate:L.value.systemDate,port:M.value.port,backup_number:L.value.backup_info.backup_number,auto_backup:L.value.backup_info.auto_backup}}function R(){L.value={listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}},M.value={panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1},P.value=[]}function U(){L.value=null,M.value=null,P.value=[]}export{D as _,E as a,T as b,$ as c,j as d,U as e,S as f,A as g,z as h,R as i,P as m,L as p,M as s};
diff --git a/BTPanel/static/vite/js/count-legacy.js b/BTPanel/static/vite/js/count-legacy.js
index 7bcce406..f2600ec2 100644
--- a/BTPanel/static/vite/js/count-legacy.js
+++ b/BTPanel/static/vite/js/count-legacy.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265"],(function(e,t){"use strict";var l,a,n,s,u,c,r,i,o,d;return{setters:[e=>{l=e.b,a=e.f},e=>{n=e.k,s=e.P,u=e.Q,c=e.U,r=e.X,i=e.W,o=e.F},e=>{d=e.b$},null,null,null],execute:function(){const t={class:"p-20px"};e("default",n({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:n}=s(),{columns:m}=l([{key:"name",title:n("Waf.Site.index_15")},{key:"value",title:n("Waf.Site.index_16"),render:e=>u(d,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>u(o,null,[e.value>0?u("a",{class:"bt-link error",href:"javascript:;"},[e.value]):e.value]),default:()=>u("div",{class:"leading-18px"},[n("Waf.Site.index_42",[e.value])])})}]);return(e,l)=>{const n=a;return r(),c("div",t,[u(n,{data:e.list,columns:i(m)},null,8,["data","columns"])])}}}))}}}));
+System.register(["./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,t){"use strict";var l,a,n,s,u,c,r,i,o,d;return{setters:[e=>{l=e.b,a=e.f},e=>{n=e.k,s=e.P,u=e.Q,c=e.F,r=e.U,i=e.V,o=e.X},e=>{d=e.c3},null,null,null],execute:function(){const t={class:"p-20px"};e("default",n({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:n}=s(),{columns:m}=l([{key:"name",title:n("Waf.Site.index_15")},{key:"value",title:n("Waf.Site.index_16"),render:e=>u(d,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>u(c,null,[e.value>0?u("a",{class:"bt-link error",href:"javascript:;"},[e.value]):e.value]),default:()=>u("div",{class:"leading-18px"},[n("Waf.Site.index_42",[e.value])])})}]);return(e,l)=>{const n=a;return r(),i("div",t,[u(n,{data:e.list,columns:o(m)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/count.js b/BTPanel/static/vite/js/count.js
index ef08bd50..c859f3d5 100644
--- a/BTPanel/static/vite/js/count.js
+++ b/BTPanel/static/vite/js/count.js
@@ -1 +1 @@
-import{b as a,f as t}from"./public.js?v=1752142539265";import{k as e,P as s,Q as o,U as r,X as l,W as i,F as n}from"./vue.js?v=1752142539265";import{b$ as m}from"./naive.js?v=1752142539265";import"./page_layout.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const u={class:"p-20px"},p=e({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:p}=s(),{columns:c}=a([{key:"name",title:p("Waf.Site.index_15")},{key:"value",title:p("Waf.Site.index_16"),render:a=>o(m,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>o(n,null,[a.value>0?o("a",{class:"bt-link error",href:"javascript:;"},[a.value]):a.value]),default:()=>o("div",{class:"leading-18px"},[p("Waf.Site.index_42",[a.value])])})}]);return(a,e)=>{const s=t;return l(),r("div",u,[o(s,{data:a.list,columns:i(c)},null,8,["data","columns"])])}}});export{p as default};
+import{b as a,f as t}from"./public.js?v=1753954525509";import{k as e,P as s,Q as o,F as r,U as l,V as i,X as n}from"./vue.js?v=1753954525509";import{c3 as m}from"./naive.js?v=1753954525509";import"./page_layout.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const u={class:"p-20px"},p=e({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:p}=s(),{columns:c}=a([{key:"name",title:p("Waf.Site.index_15")},{key:"value",title:p("Waf.Site.index_16"),render:a=>o(m,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>o(r,null,[a.value>0?o("a",{class:"bt-link error",href:"javascript:;"},[a.value]):a.value]),default:()=>o("div",{class:"leading-18px"},[p("Waf.Site.index_42",[a.value])])})}]);return(a,e)=>{const s=t;return l(),i("div",u,[o(s,{data:a.list,columns:n(c)},null,8,["data","columns"])])}}});export{p as default};
diff --git a/BTPanel/static/vite/js/cron-legacy.js b/BTPanel/static/vite/js/cron-legacy.js
new file mode 100644
index 00000000..e0faccdc
--- /dev/null
+++ b/BTPanel/static/vite/js/cron-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_170)'%3e%3cpath%20d='M12.5%2021C17.1944%2021%2021%2017.1944%2021%2012.5C21%207.80558%2017.1944%204%2012.5%204C7.80558%204%204%207.80558%204%2012.5C4%2017.1944%207.80558%2021%2012.5%2021Z'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%209V12.75L15%2014.5'%20stroke='%233BAF52'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_170'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/cron.js b/BTPanel/static/vite/js/cron.js
new file mode 100644
index 00000000..e809a723
--- /dev/null
+++ b/BTPanel/static/vite/js/cron.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_170)'%3e%3cpath%20d='M12.5%2021C17.1944%2021%2021%2017.1944%2021%2012.5C21%207.80558%2017.1944%204%2012.5%204C7.80558%204%204%207.80558%204%2012.5C4%2017.1944%207.80558%2021%2012.5%2021Z'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%209V12.75L15%2014.5'%20stroke='%233BAF52'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_170'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/cron_active-legacy.js b/BTPanel/static/vite/js/cron_active-legacy.js
new file mode 100644
index 00000000..a52a2173
--- /dev/null
+++ b/BTPanel/static/vite/js/cron_active-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_159)'%3e%3cpath%20d='M12.5%2021C17.1944%2021%2021%2017.1944%2021%2012.5C21%207.80558%2017.1944%204%2012.5%204C7.80558%204%204%207.80558%204%2012.5C4%2017.1944%207.80558%2021%2012.5%2021Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%209V12.75L15%2014.5'%20stroke='%233BAF52'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_159'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/cron_active.js b/BTPanel/static/vite/js/cron_active.js
new file mode 100644
index 00000000..f051f264
--- /dev/null
+++ b/BTPanel/static/vite/js/cron_active.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_159)'%3e%3cpath%20d='M12.5%2021C17.1944%2021%2021%2017.1944%2021%2012.5C21%207.80558%2017.1944%204%2012.5%204C7.80558%204%204%207.80558%204%2012.5C4%2017.1944%207.80558%2021%2012.5%2021Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%209V12.75L15%2014.5'%20stroke='%233BAF52'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_159'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/custom-legacy.js b/BTPanel/static/vite/js/custom-legacy.js
index 91d5c7eb..36ae70d8 100644
--- a/BTPanel/static/vite/js/custom-legacy.js
+++ b/BTPanel/static/vite/js/custom-legacy.js
@@ -1 +1 @@
-System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265"],(function(e,a){"use strict";var l,r,s,t,u,n,c,o,_,g,i,p;return{setters:[e=>{l=e._},e=>{r=e.k,s=e.P,t=e.r,u=e.e,n=e.U,c=e.X,o=e.Q,_=e.a2,g=e.W},e=>{i=e.cz,p=e.aq},null,null],execute:function(){const a={class:"pt-20px"};e("default",r({__name:"custom",props:{data:{}},setup(e,{expose:r}){const{t:d}=s(),m=e,{row:v,callback:f}=m.data,y=t(null),j=u({args:""}),x={args:{required:!0,message:d("Crontab.Script.index_43"),trigger:["blur","input"]}};return r({onConfirm:async({hide:e})=>{await(y.value?.validate()),f?.(j.args,v),e()}}),(e,r)=>{const s=p,t=i,u=l;return c(),n("div",a,[o(u,{ref_key:"formRef",ref:y,model:g(j),rules:x},{default:_((()=>[o(t,{label:g(v).args_title,path:"args"},{default:_((()=>[o(s,{class:"w-250px!",value:g(j).args,"onUpdate:value":r[0]||(r[0]=e=>g(j).args=e),placeholder:g(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
+System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,r,s,t,u,n,c,o,_,g,i,p;return{setters:[e=>{l=e._},e=>{r=e.k,s=e.P,t=e.r,u=e.e,n=e.U,c=e.V,o=e.Q,_=e.a2,g=e.X},e=>{i=e.aq,p=e.cA},null,null],execute:function(){const a={class:"pt-20px"};e("default",r({__name:"custom",props:{data:{}},setup(e,{expose:r}){const{t:d}=s(),m=e,{row:v,callback:f}=m.data,y=t(null),j=u({args:""}),x={args:{required:!0,message:d("Crontab.Script.index_43"),trigger:["blur","input"]}};return r({onConfirm:async({hide:e})=>{await(y.value?.validate()),f?.(j.args,v),e()}}),(e,r)=>{const s=i,t=p,u=l;return n(),c("div",a,[o(u,{ref_key:"formRef",ref:y,model:g(j),rules:x},{default:_((()=>[o(t,{label:g(v).args_title,path:"args"},{default:_((()=>[o(s,{class:"w-250px!",value:g(j).args,"onUpdate:value":r[0]||(r[0]=e=>g(j).args=e),placeholder:g(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/custom.js b/BTPanel/static/vite/js/custom.js
index 00e44983..e35618f5 100644
--- a/BTPanel/static/vite/js/custom.js
+++ b/BTPanel/static/vite/js/custom.js
@@ -1 +1 @@
-import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{k as e,P as s,r,e as l,U as t,X as o,Q as p,a2 as u,W as n}from"./vue.js?v=1752142539265";import{cz as i,aq as m}from"./naive.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";import"./common.js?v=1752142539265";const _={class:"pt-20px"},d=e({__name:"custom",props:{data:{}},setup(e,{expose:d}){const{t:c}=s(),g=e,{row:v,callback:f}=g.data,j=r(null),x=l({args:""}),b={args:{required:!0,message:c("Crontab.Script.index_43"),trigger:["blur","input"]}};return d({onConfirm:async({hide:a})=>{var e;await(null==(e=j.value)?void 0:e.validate()),null==f||f(x.args,v),a()}}),(e,s)=>{const r=m,l=i,d=a;return o(),t("div",_,[p(d,{ref_key:"formRef",ref:j,model:n(x),rules:b},{default:u((()=>[p(l,{label:n(v).args_title,path:"args"},{default:u((()=>[p(r,{class:"w-250px!",value:n(x).args,"onUpdate:value":s[0]||(s[0]=a=>n(x).args=a),placeholder:n(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{d as default};
+import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{k as e,P as s,r,e as l,U as t,V as o,Q as p,a2 as u,X as n}from"./vue.js?v=1753954525509";import{aq as i,cA as m}from"./naive.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./common.js?v=1753954525509";const _={class:"pt-20px"},d=e({__name:"custom",props:{data:{}},setup(e,{expose:d}){const{t:c}=s(),g=e,{row:v,callback:f}=g.data,j=r(null),x=l({args:""}),b={args:{required:!0,message:c("Crontab.Script.index_43"),trigger:["blur","input"]}};return d({onConfirm:async({hide:a})=>{var e;await(null==(e=j.value)?void 0:e.validate()),null==f||f(x.args,v),a()}}),(e,s)=>{const r=i,l=m,d=a;return t(),o("div",_,[p(d,{ref_key:"formRef",ref:j,model:n(x),rules:b},{default:u((()=>[p(l,{label:n(v).args_title,path:"args"},{default:u((()=>[p(r,{class:"w-250px!",value:n(x).args,"onUpdate:value":s[0]||(s[0]=a=>n(x).args=a),placeholder:n(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{d as default};
diff --git a/BTPanel/static/vite/js/database-legacy.js b/BTPanel/static/vite/js/database-legacy.js
new file mode 100644
index 00000000..81200097
--- /dev/null
+++ b/BTPanel/static/vite/js/database-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_62)'%3e%3cpath%20d='M19%2015.2216C18.5033%2016.3991%2017.7263%2017.4367%2016.7371%2018.2437C15.7478%2019.0507%2014.5764%2019.6025%2013.3253%2019.8509C12.0741%2020.0992%2010.7813%2020.0366%209.55992%2019.6685C8.33849%2019.3004%207.22562%2018.638%206.31861%2017.7391C5.41159%2016.8403%204.73805%2015.7325%204.35687%2014.5125C3.97568%2013.2924%203.89846%2011.9974%204.13196%2010.7405C4.36546%209.48371%204.90256%208.30333%205.69631%207.30262C6.49006%206.30191%207.51629%205.51133%208.68528%205'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2012C20%2010.9488%2019.7931%209.90792%2019.391%208.93676C18.989%207.96559%2018.3997%207.08316%2017.6569%206.33986C16.914%205.59656%2016.0321%205.00695%2015.0615%204.60468C14.0909%204.2024%2013.0506%204%2012%204V12H20Z'%20stroke='%2320A53A'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_62'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/database.js b/BTPanel/static/vite/js/database.js
new file mode 100644
index 00000000..23b5b57c
--- /dev/null
+++ b/BTPanel/static/vite/js/database.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_62)'%3e%3cpath%20d='M19%2015.2216C18.5033%2016.3991%2017.7263%2017.4367%2016.7371%2018.2437C15.7478%2019.0507%2014.5764%2019.6025%2013.3253%2019.8509C12.0741%2020.0992%2010.7813%2020.0366%209.55992%2019.6685C8.33849%2019.3004%207.22562%2018.638%206.31861%2017.7391C5.41159%2016.8403%204.73805%2015.7325%204.35687%2014.5125C3.97568%2013.2924%203.89846%2011.9974%204.13196%2010.7405C4.36546%209.48371%204.90256%208.30333%205.69631%207.30262C6.49006%206.30191%207.51629%205.51133%208.68528%205'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2012C20%2010.9488%2019.7931%209.90792%2019.391%208.93676C18.989%207.96559%2018.3997%207.08316%2017.6569%206.33986C16.914%205.59656%2016.0321%205.00695%2015.0615%204.60468C14.0909%204.2024%2013.0506%204%2012%204V12H20Z'%20stroke='%2320A53A'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_62'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/database_active-legacy.js b/BTPanel/static/vite/js/database_active-legacy.js
new file mode 100644
index 00000000..a95e9921
--- /dev/null
+++ b/BTPanel/static/vite/js/database_active-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_51)'%3e%3cpath%20d='M19%2015.2216C18.5033%2016.3991%2017.7263%2017.4367%2016.7371%2018.2437C15.7478%2019.0507%2014.5764%2019.6025%2013.3253%2019.8509C12.0741%2020.0992%2010.7813%2020.0366%209.55992%2019.6685C8.33849%2019.3004%207.22562%2018.638%206.31861%2017.7391C5.41159%2016.8403%204.73805%2015.7325%204.35687%2014.5125C3.97568%2013.2924%203.89846%2011.9974%204.13196%2010.7405C4.36546%209.48371%204.90256%208.30333%205.69631%207.30262C6.49006%206.30191%207.51629%205.51133%208.68528%205'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2012C20%2010.9488%2019.7931%209.90792%2019.391%208.93676C18.989%207.96559%2018.3997%207.08316%2017.6569%206.33986C16.914%205.59656%2016.0321%205.00695%2015.0615%204.60468C14.0909%204.2024%2013.0506%204%2012%204V12H20Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_51'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/database_active.js b/BTPanel/static/vite/js/database_active.js
new file mode 100644
index 00000000..b01d3417
--- /dev/null
+++ b/BTPanel/static/vite/js/database_active.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_51)'%3e%3cpath%20d='M19%2015.2216C18.5033%2016.3991%2017.7263%2017.4367%2016.7371%2018.2437C15.7478%2019.0507%2014.5764%2019.6025%2013.3253%2019.8509C12.0741%2020.0992%2010.7813%2020.0366%209.55992%2019.6685C8.33849%2019.3004%207.22562%2018.638%206.31861%2017.7391C5.41159%2016.8403%204.73805%2015.7325%204.35687%2014.5125C3.97568%2013.2924%203.89846%2011.9974%204.13196%2010.7405C4.36546%209.48371%204.90256%208.30333%205.69631%207.30262C6.49006%206.30191%207.51629%205.51133%208.68528%205'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2012C20%2010.9488%2019.7931%209.90792%2019.391%208.93676C18.989%207.96559%2018.3997%207.08316%2017.6569%206.33986C16.914%205.59656%2016.0321%205.00695%2015.0615%204.60468C14.0909%204.2024%2013.0506%204%2012%204V12H20Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_51'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/details-legacy.js b/BTPanel/static/vite/js/details-legacy.js
index f2018634..7d1c7a36 100644
--- a/BTPanel/static/vite/js/details-legacy.js
+++ b/BTPanel/static/vite/js/details-legacy.js
@@ -1 +1 @@
-System.register(["./index-legacy172.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./tools-legacy2.js?v=1752142539265","./public-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./rules-legacy.js?v=1752142539265"],(function(e,l){"use strict";var a,t,n,s,c,i,d,o,u,f,_,p,r,b,v,x,g,m,y,h,j,k,w;return{setters:[e=>{a=e._},e=>{t=e.V,n=e.d5,s=e.W,c=e.e},e=>{i=e.a,d=e.b,o=e.h},e=>{u=e.c},e=>{f=e.k,_=e.t,p=e.P,r=e.c,b=e.r,v=e.U,x=e.X,g=e.Q,m=e.V,y=e.a2,h=e.j,j=e.a3,k=e.W},e=>{w=e.c2},null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".bt-code[data-v-f3ca0370]{font-size:15px;border-radius:4px;overflow:hidden}.bt-code[data-v-f3ca0370] .hljs{min-height:258px}.title[data-v-f3ca0370]{width:10%}.content[data-v-f3ca0370]{font-weight:700;width:40%}\n/*$vite$:1*/",document.head.appendChild(l);const W={class:"p-20px"},B={class:"flex justify-between"},$={class:"flex justify-between"},C={class:"mt-20px"},H={class:"mt-10px"};e("default",c(f({__name:"details",props:{row:{}},setup(e){const l=_(e,"row"),{t:c}=p(),f=r((()=>l.value.incoming_value.indexOf('b"')>-1?l.value.incoming_value.substring(2,l.value.incoming_value.length-1).split(" >> "):l.value.incoming_value.split(" >> "))),P=r((()=>f.value[1]||c("Waf.Block.index_72"))),T=r((()=>f.value[2]||c("Waf.Block.index_72"))),U=()=>{i(l.value)},V=()=>{d(l.value,!1)},z=b(""),{loading:A,setLoading:E}=u();return(async()=>{try{E(!0);const{message:e}=await o({path:l.value.http_log});z.value=e.result}finally{E(!1)}})(),(e,c)=>{const i=t,d=w,o=s,u=a;return x(),v("div",W,[g(o,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:y((()=>[g(i,{label:e.$t("Waf.Block.index_66")},{default:y((()=>[h(j(k(n)(k(l).time_localtime)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_67")},{default:y((()=>[m("a",{class:"bt-link",href:"javascript:;",onClick:U},j(k(n)(k(l).ip)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_15")},{default:y((()=>[h(j(k(n)(k(l).type)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_21")},{default:y((()=>[h(j(k(n)(k(l).filter_rule)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_68"),span:2},{default:y((()=>[m("div",B,[g(d,{class:"w-480px"},{default:y((()=>[h(j(k(n)(k(l).uri)),1)])),_:1}),m("a",{class:"bt-link",href:"javascript:;",onClick:V},j(e.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),g(i,{label:"User-Agent",span:2},{default:y((()=>[g(d,{class:"w-570px"},{default:y((()=>[h(j(k(n)(k(l).user_agent)),1)])),_:1})])),_:1}),g(i,{label:e.$t("Waf.Block.index_69"),span:2},{default:y((()=>[m("div",$,[g(d,{class:"w-480px"},{default:y((()=>[h(j(k(n)(k(f)[0])),1)])),_:1})])])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_70"),span:2},{default:y((()=>[g(d,{class:"w-570px"},{default:y((()=>[h(j(k(n)(k(P))),1)])),_:1})])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_71"),span:2},{default:y((()=>[g(d,{class:"w-570px"},{default:y((()=>[h(j(k(n)(k(T))),1)])),_:1})])),_:1},8,["label"])])),_:1}),m("div",C,[c[0]||(c[0]=m("div",{class:"text-14px font-bold"},"HTTP",-1)),m("div",H,[g(u,{class:"h-260px",lang:"http",loading:k(A),content:k(z)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]))}}}));
+System.register(["./index-legacy172.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./tools-legacy2.js?v=1753954525509","./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./rules-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,n,s,c,i,d,o,u,f,_,p,r,b,v,x,g,m,y,h,j,k,w;return{setters:[e=>{a=e._},e=>{t=e.cY,n=e.V,s=e.W,c=e.e},e=>{i=e.a,d=e.b,o=e.h},e=>{u=e.c},e=>{f=e.k,_=e.t,p=e.P,r=e.c,b=e.r,v=e.U,x=e.V,g=e.Q,m=e.a2,y=e.j,h=e.a3,j=e.X,k=e.W},e=>{w=e.b$},null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".bt-code[data-v-f3ca0370]{font-size:15px;border-radius:4px;overflow:hidden}.bt-code[data-v-f3ca0370] .hljs{min-height:258px}.title[data-v-f3ca0370]{width:10%}.content[data-v-f3ca0370]{font-weight:700;width:40%}\n",document.head.appendChild(l);const W={class:"p-20px"},B={class:"flex justify-between"},$={class:"flex justify-between"},C={class:"mt-20px"},H={class:"mt-10px"};e("default",c(f({__name:"details",props:{row:{}},setup(e){const l=_(e,"row"),{t:c}=p(),f=r((()=>l.value.incoming_value.indexOf('b"')>-1?l.value.incoming_value.substring(2,l.value.incoming_value.length-1).split(" >> "):l.value.incoming_value.split(" >> "))),P=r((()=>f.value[1]||c("Waf.Block.index_72"))),T=r((()=>f.value[2]||c("Waf.Block.index_72"))),U=()=>{i(l.value)},V=()=>{d(l.value,!1)},z=b(""),{loading:A,setLoading:E}=u();return(async()=>{try{E(!0);const{message:e}=await o({path:l.value.http_log});z.value=e.result}finally{E(!1)}})(),(e,c)=>{const i=n,d=w,o=s,u=a;return v(),x("div",W,[g(o,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:m((()=>[g(i,{label:e.$t("Waf.Block.index_66")},{default:m((()=>[y(h(j(t)(j(l).time_localtime)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_67")},{default:m((()=>[k("a",{class:"bt-link",href:"javascript:;",onClick:U},h(j(t)(j(l).ip)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_15")},{default:m((()=>[y(h(j(t)(j(l).type)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_21")},{default:m((()=>[y(h(j(t)(j(l).filter_rule)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_68"),span:2},{default:m((()=>[k("div",B,[g(d,{class:"w-480px"},{default:m((()=>[y(h(j(t)(j(l).uri)),1)])),_:1}),k("a",{class:"bt-link",href:"javascript:;",onClick:V},h(e.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),g(i,{label:"User-Agent",span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(l).user_agent)),1)])),_:1})])),_:1}),g(i,{label:e.$t("Waf.Block.index_69"),span:2},{default:m((()=>[k("div",$,[g(d,{class:"w-480px"},{default:m((()=>[y(h(j(t)(j(f)[0])),1)])),_:1})])])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_70"),span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(P))),1)])),_:1})])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_71"),span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(T))),1)])),_:1})])),_:1},8,["label"])])),_:1}),k("div",C,[c[0]||(c[0]=k("div",{class:"text-14px font-bold"},"HTTP",-1)),k("div",H,[g(u,{class:"h-260px",lang:"http",loading:j(A),content:j(z)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy2.js b/BTPanel/static/vite/js/details-legacy2.js
index f27b2686..010cc134 100644
--- a/BTPanel/static/vite/js/details-legacy2.js
+++ b/BTPanel/static/vite/js/details-legacy2.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./index-legacy79.js?v=1752142539265","./tools-legacy2.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265","./rules-legacy.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1752142539265","./index-legacy100.js?v=1752142539265"],(function(e,t){"use strict";var a,l,i,n,o,s,r,c,u,p,d,f,_,y,g,m,x;return{setters:[e=>{a=e.b,l=e.h,i=e.f},e=>{n=e.d5,o=e.w},e=>{s=e.g},e=>{r=e.s},e=>{c=e._},e=>{u=e.k,p=e.t,d=e.P,f=e.aB,_=e.U,y=e.X,g=e.Q,m=e.W,x=e.V},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"h-full"},v=u({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const a=p(e,"data"),{t:l}=d(),i=f({backgroundColor:"#fff",title:o(),tooltip:{trigger:"item",confine:!0,formatter(e){const t=e;return`${t.marker} ${t.name}: ${t.value} (${t.percent}%)`}},series:s()}),n=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function o(e=0){return{text:l("Waf.Report.index_17"),textStyle:{color:"#484848",fontSize:17},subtext:`${e}`,subtextStyle:{color:"#717171",fontSize:15},itemGap:20,left:"center",top:"42%"}}function s(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:"#999",lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":l("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},color:e=>n[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const t=[];Object.entries(a.value).forEach((([a,l])=>{e+=l,t.push({name:a,value:l})})),i.title=o(e),i.series=s(t)})(),(e,a)=>(y(),_("div",t,[g(c,{type:"pie",height:"100%",option:m(i)},null,8,["option"])]))}}),h={class:"h-full"},b=u({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=p(e,"data"),{t:a}=d(),l=f({backgroundColor:"#fff",tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},formatter(e){const t=e;return`${t.marker} ${n(t.seriesName||"")}
\n\t\t\t${a("Waf.Report.index_16",[t.data])}
`}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:"#808080"},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:"#4D4D4D",fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:"#8C8C8C"},splitLine:{lineStyle:{type:"dashed"}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(y(),_("div",h,[g(c,{type:"bar",height:"100%",option:m(l)},null,8,["option"])]))}}),w={class:"p-20px"},j={class:"flex h-280px mb-16px"},S={class:"w-410px"},k={class:"w-500px"};e("default",u({__name:"details",props:{row:{}},setup(e){const t=p(e,"row"),{t:c}=d(),{table:u,columns:f}=a([{key:"time_localtime",title:c("Waf.Report.index_13"),width:140},{key:"server_name",title:c("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:c("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)||"--"},{key:"filter_rule",title:c("Waf.Report.index_34"),width:140},l({width:80,options:e=>[{label:c("Public.Btn.Details"),onClick:async()=>{const{message:t}=await s({id:e.id});o(t)&&t.length>0&&r(t[0])}}]})]);u.data=t.value.data.list;const h=t.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,a)=>{const l=i;return y(),_("div",w,[x("div",j,[x("div",S,[g(v,{data:m(t).data.type},null,8,["data"])]),x("div",k,[g(b,{data:m(h)},null,8,["data"])])]),g(l,{"max-height":300,data:m(u).data,columns:m(f)},null,8,["data","columns"])])}}}))}}}));
+System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./index-legacy79.js?v=1753954525509","./tools-legacy2.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./rules-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509"],(function(e,t){"use strict";var a,l,i,n,o,s,r,c,u,p,d,f,_,y,g,m,x;return{setters:[e=>{a=e.b,l=e.h,i=e.f},e=>{n=e.cY,o=e.w},e=>{s=e.g},e=>{r=e.s},e=>{c=e._},e=>{u=e.k,p=e.t,d=e.P,f=e.aD,_=e.U,y=e.V,g=e.Q,m=e.X,x=e.W},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"h-full"},v=u({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const a=p(e,"data"),{t:l}=d(),i=f({backgroundColor:"#fff",title:o(),tooltip:{trigger:"item",confine:!0,formatter(e){const t=e;return`${t.marker} ${t.name}: ${t.value} (${t.percent}%)`}},series:s()}),n=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function o(e=0){return{text:l("Waf.Report.index_17"),textStyle:{color:"#484848",fontSize:17},subtext:`${e}`,subtextStyle:{color:"#717171",fontSize:15},itemGap:20,left:"center",top:"42%"}}function s(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:"#999",lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":l("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},color:e=>n[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const t=[];Object.entries(a.value).forEach((([a,l])=>{e+=l,t.push({name:a,value:l})})),i.title=o(e),i.series=s(t)})(),(e,a)=>(_(),y("div",t,[g(c,{type:"pie",height:"100%",option:m(i)},null,8,["option"])]))}}),h={class:"h-full"},b=u({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=p(e,"data"),{t:a}=d(),l=f({backgroundColor:"#fff",tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},formatter(e){const t=e;return`${t.marker} ${n(t.seriesName||"")}
\n\t\t\t${a("Waf.Report.index_16",[t.data])}
`}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:"#808080"},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:"#4D4D4D",fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:"#8C8C8C"},splitLine:{lineStyle:{type:"dashed"}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(_(),y("div",h,[g(c,{type:"bar",height:"100%",option:m(l)},null,8,["option"])]))}}),w={class:"p-20px"},j={class:"flex h-280px mb-16px"},S={class:"w-410px"},k={class:"w-500px"};e("default",u({__name:"details",props:{row:{}},setup(e){const t=p(e,"row"),{t:c}=d(),{table:u,columns:f}=a([{key:"time_localtime",title:c("Waf.Report.index_13"),width:140},{key:"server_name",title:c("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:c("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)||"--"},{key:"filter_rule",title:c("Waf.Report.index_34"),width:140},l({width:80,options:e=>[{label:c("Public.Btn.Details"),onClick:async()=>{const{message:t}=await s({id:e.id});o(t)&&t.length>0&&r(t[0])}}]})]);u.data=t.value.data.list;const h=t.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,a)=>{const l=i;return _(),y("div",w,[x("div",j,[x("div",S,[g(v,{data:m(t).data.type},null,8,["data"])]),x("div",k,[g(b,{data:m(h)},null,8,["data"])])]),g(l,{"max-height":300,data:m(u).data,columns:m(f)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy3.js b/BTPanel/static/vite/js/details-legacy3.js
index f052dbcb..7f9cfca0 100644
--- a/BTPanel/static/vite/js/details-legacy3.js
+++ b/BTPanel/static/vite/js/details-legacy3.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./index-legacy79.js?v=1752142539265","./tools-legacy2.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265","./rules-legacy.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1752142539265","./index-legacy100.js?v=1752142539265","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1752142539265"],(function(e,t){"use strict";var l,i,s,n,u,a,_,c,r,p,y,d,o;return{setters:[e=>{l=e.b,i=e.h,s=e.f},e=>{n=e.d5,u=e.w},e=>{a=e.g},e=>{_=e.s},e=>{c=e.k,r=e.P,p=e.U,y=e.X,d=e.Q,o=e.W},null,null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",c({__name:"details",props:{list:{}},setup(e){const c=e,{t:g}=r(),{table:j,columns:v}=l([{key:"time_localtime",title:g("Waf.Report.index_13"),width:140},{key:"ip",title:g("Waf.Report.index_7"),width:120},{key:"server_name",title:g("Waf.Report.index_14"),width:120},{key:"ip_country",title:g("Waf.Report.index_8"),width:140,render:e=>e.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)},{key:"filter_rule",title:g("Waf.Report.index_1"),width:140},i({width:80,options:e=>[{label:g("Public.Btn.Details"),onClick:async()=>{const{message:t}=await a({id:e.id});u(t)&&t.length>0&&_(t[0])}}]})]);return j.data=c.list,(e,l)=>{const i=s;return y(),p("div",t,[d(i,{"max-height":550,data:o(j).data,columns:o(v)},null,8,["data","columns"])])}}}))}}}));
+System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./index-legacy79.js?v=1753954525509","./tools-legacy2.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./rules-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1753954525509"],(function(e,t){"use strict";var l,i,s,n,u,a,_,c,r,p,y,o,d;return{setters:[e=>{l=e.b,i=e.h,s=e.f},e=>{n=e.cY,u=e.w},e=>{a=e.g},e=>{_=e.s},e=>{c=e.k,r=e.P,p=e.U,y=e.V,o=e.Q,d=e.X},null,null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",c({__name:"details",props:{list:{}},setup(e){const c=e,{t:g}=r(),{table:j,columns:v}=l([{key:"time_localtime",title:g("Waf.Report.index_13"),width:140},{key:"ip",title:g("Waf.Report.index_7"),width:120},{key:"server_name",title:g("Waf.Report.index_14"),width:120},{key:"ip_country",title:g("Waf.Report.index_8"),width:140,render:e=>e.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)},{key:"filter_rule",title:g("Waf.Report.index_1"),width:140},i({width:80,options:e=>[{label:g("Public.Btn.Details"),onClick:async()=>{const{message:t}=await a({id:e.id});u(t)&&t.length>0&&_(t[0])}}]})]);return j.data=c.list,(e,l)=>{const i=s;return p(),y("div",t,[o(i,{"max-height":550,data:d(j).data,columns:d(v)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy4.js b/BTPanel/static/vite/js/details-legacy4.js
index 1f4c0032..a1d4726c 100644
--- a/BTPanel/static/vite/js/details-legacy4.js
+++ b/BTPanel/static/vite/js/details-legacy4.js
@@ -1 +1 @@
-System.register(["./index-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./public-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265"],(function(e,t){"use strict";var a,i,l,n,d,o,s,c,p,r,x,v,u,m,b,g,f,h,y,_,k,H,U,w,$,j,C,z,I,M,P;return{setters:[e=>{a=e.a},e=>{i=e.k,l=e.P,n=e.r,d=e.c,o=e.ap,s=e.a4,c=e.U,p=e.X,r=e.V,x=e.Q,v=e.a3,u=e.F,m=e.O,b=e.H,g=e.W,f=e.ah,h=e.a2,y=e.ax,_=e.I,k=e.j},e=>{H=e.X,U=e.fP,w=e.d,$=e.fQ,j=e.fO,C=e.K,z=e.e},e=>{I=e.q},e=>{M=e._,P=e.ay}],execute:function(){var t=document.createElement("style");t.textContent='.card[data-v-85ccd2a6]{margin-bottom:20px;border-radius:4px;--un-bg-opacity:1;background-color:rgb(247 247 247 / var(--un-bg-opacity));padding:20px 24px}.version[data-v-85ccd2a6]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-85ccd2a6]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-85ccd2a6]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-85ccd2a6]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:#333}.version .text[data-v-85ccd2a6]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-85ccd2a6]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}\n/*$vite$:1*/',document.head.appendChild(t);const B={class:"w-650px"},L={class:"card"},O={class:"mb-12px font-bold text-18px text-center"},Q={class:"min-h-172px text-13px"},T={class:"card"},X={class:"mb-10px text-16px text-center"},q={class:"h-180px overflow-auto"},E={class:"date"},F={class:"text"},K=["innerHTML"],S={class:"font-bold"},V={class:"text-error"};e("B",z(i({__name:"details",emits:["close"],setup(e,{emit:t}){const i=t,{t:z}=l(),W=n(!1),A=n(5),D=d((()=>A.value>0)),G=d((()=>!W.value)),J=n([]),N=n([]),{height:R}=o(),Y=d((()=>R.value?.9*R.value+"px":"auto")),Z=()=>{const e=setInterval((()=>{A.value--,A.value<=0&&clearInterval(e)}),1e3)},ee=()=>{i("close")},te=()=>{I({title:z("Home.Update.index_24"),content:z("Home.Update.index_25"),onConfirm:async()=>{await $(),await j(),C()}})};return(async()=>{const{message:e}=await U();w(e)&&(J.value=e.beta_ps.split("
").map((e=>e.trim())),N.value=e.list,Z())})(),(e,t)=>{const i=s("i18n-t"),l=M,n=P,d=a;return p(),c("div",B,[r("div",{class:"p-20px overflow-auto",style:_({maxHeight:g(Y)})},[r("div",L,[r("div",O,v(e.$t("Home.Update.index_20")),1),r("ul",Q,[(p(!0),c(u,null,m(g(J),((e,t)=>(p(),c("li",{key:e,class:b(["indent--15px pl-15px leading-20px",{"mt-8px":0!==t}])},v(e),3)))),128))])]),r("div",T,[r("div",X,v(e.$t("Home.Update.index_21")),1),r("div",q,[(p(!0),c(u,null,m(g(N),(e=>(p(),c("div",{key:e.version,class:"version"},[t[1]||(t[1]=r("div",{class:"active"},null,-1)),r("div",E,v(g(H)(e.uptime,"yyyy-MM-dd")),1),r("div",F,v(e.version),1),r("div",{class:"content",innerHTML:e.upmsg},null,8,K)])))),128))])]),r("div",null,[x(l,{checked:g(W),"onUpdate:checked":t[0]||(t[0]=e=>f(W)?W.value=e:null),disabled:g(D)},{default:h((()=>[x(i,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},y({title:h((()=>[r("span",S,v(e.$t("Home.Update.index_23_2")),1)])),_:2},[g(A)>0?{name:"wait",fn:h((()=>[r("span",V,v(e.$t("Home.Update.index_23_3",[g(A)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),x(d,null,{default:h((()=>[x(n,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:ee},{default:h((()=>[k(v(e.$t("Public.Btn.Cancel")),1)])),_:1}),x(n,{type:"primary",size:"small",disabled:g(G),onClick:te},{default:h((()=>[k(v(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-85ccd2a6"]]))}}}));
+System.register(["./index-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,t){"use strict";var a,i,l,n,o,s,d,p,c,r,x,v,u,m,b,g,f,h,y,_,k,H,U,w,j,C,$,z,I,M,P;return{setters:[e=>{a=e.a},e=>{i=e.k,l=e.P,n=e.r,o=e.c,s=e.ap,d=e.a4,p=e.U,c=e.V,r=e.W,x=e.a3,v=e.F,u=e.O,m=e.H,b=e.X,g=e.Q,f=e.a2,h=e.ax,y=e.ah,_=e.I,k=e.j},e=>{H=e.X,U=e.fR,w=e.c,j=e.fS,C=e.fP,$=e.K,z=e.e},e=>{I=e.q},e=>{M=e._,P=e.ay}],execute:function(){var t=document.createElement("style");t.textContent='.card[data-v-ae310571]{margin-bottom:20px;border-radius:4px;--un-bg-opacity:1;background-color:rgb(247 247 247 / var(--un-bg-opacity));padding:20px 24px}.version[data-v-ae310571]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-ae310571]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-ae310571]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-ae310571]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:#333}.version .text[data-v-ae310571]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-ae310571]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}\n',document.head.appendChild(t);const B={class:"w-650px"},L={class:"card"},S={class:"mb-12px font-bold text-18px text-center"},T={class:"min-h-172px text-13px"},X={class:"card"},q={class:"mb-10px text-16px text-center"},E={class:"h-180px overflow-auto"},F={class:"date"},K={class:"text"},O=["innerHTML"],Q={class:"font-bold"},R={class:"text-error"};e("B",z(i({__name:"details",emits:["close"],setup(e,{emit:t}){const i=t,{t:z}=l(),V=n(!1),W=n(5),A=o((()=>W.value>0)),D=o((()=>!V.value)),G=n([]),J=n([]),{height:N}=s(),Y=o((()=>N.value?.9*N.value+"px":"auto")),Z=()=>{const e=setInterval((()=>{W.value--,W.value<=0&&clearInterval(e)}),1e3)},ee=()=>{i("close")},te=()=>{I({title:z("Home.Update.index_24"),content:z("Home.Update.index_25"),onConfirm:async()=>{await j(),await C(),$()}})};return(async()=>{const{message:e}=await U();w(e)&&(G.value=e.beta_ps.split("
").map((e=>e.trim())),J.value=e.list,Z())})(),(e,t)=>{const i=d("i18n-t"),l=M,n=P,o=a;return p(),c("div",B,[r("div",{class:"p-20px overflow-auto",style:_({maxHeight:b(Y)})},[r("div",L,[r("div",S,x(e.$t("Home.Update.index_20")),1),r("ul",T,[(p(!0),c(v,null,u(b(G),((e,t)=>(p(),c("li",{key:e,class:m(["indent--15px pl-15px leading-20px",{"mt-8px":0!==t}])},x(e),3)))),128))])]),r("div",X,[r("div",q,x(e.$t("Home.Update.index_21")),1),r("div",E,[(p(!0),c(v,null,u(b(J),(e=>(p(),c("div",{key:e.version,class:"version"},[t[1]||(t[1]=r("div",{class:"active"},null,-1)),r("div",F,x(b(H)(e.uptime,"yyyy-MM-dd")),1),r("div",K,x(e.version),1),r("div",{class:"content",innerHTML:e.upmsg},null,8,O)])))),128))])]),r("div",null,[g(l,{checked:b(V),"onUpdate:checked":t[0]||(t[0]=e=>y(V)?V.value=e:null),disabled:b(A)},{default:f((()=>[g(i,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},h({title:f((()=>[r("span",Q,x(e.$t("Home.Update.index_23_2")),1)])),_:2},[b(W)>0?{name:"wait",fn:f((()=>[r("span",R,x(e.$t("Home.Update.index_23_3",[b(W)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),g(o,null,{default:f((()=>[g(n,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:ee},{default:f((()=>[k(x(e.$t("Public.Btn.Cancel")),1)])),_:1}),g(n,{type:"primary",size:"small",disabled:b(D),onClick:te},{default:f((()=>[k(x(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-ae310571"]]))}}}));
diff --git a/BTPanel/static/vite/js/details.js b/BTPanel/static/vite/js/details.js
index 9a52d936..4b5c9b10 100644
--- a/BTPanel/static/vite/js/details.js
+++ b/BTPanel/static/vite/js/details.js
@@ -1 +1 @@
-import{_ as a}from"./index172.js?v=1752142539265";import{V as l,d5 as e,W as s,e as t}from"./page_layout.js?v=1752142539265";import{a as n,b as i,h as o}from"./tools2.js?v=1752142539265";import{c}from"./public.js?v=1752142539265";import{k as d,t as f,P as u,c as p,r as _,U as r,X as m,Q as b,V as x,a2 as v,j as g,a3 as k,W as j}from"./vue.js?v=1752142539265";import{c2 as W}from"./naive.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";import"./common.js?v=1752142539265";import"./rules.js?v=1752142539265";const w={class:"p-20px"},B={class:"flex justify-between"},h={class:"flex justify-between"},y={class:"mt-20px"},$={class:"mt-10px"},C=t(d({__name:"details",props:{row:{}},setup(t){const d=f(t,"row"),{t:C}=u(),H=p((()=>d.value.incoming_value.indexOf('b"')>-1?d.value.incoming_value.substring(2,d.value.incoming_value.length-1).split(" >> "):d.value.incoming_value.split(" >> "))),P=p((()=>H.value[1]||C("Waf.Block.index_72"))),T=p((()=>H.value[2]||C("Waf.Block.index_72"))),U=()=>{n(d.value)},V=()=>{i(d.value,!1)},A=_(""),{loading:I,setLoading:L}=c();return(async()=>{try{L(!0);const{message:a}=await o({path:d.value.http_log});A.value=a.result}finally{L(!1)}})(),(t,n)=>{const i=l,o=W,c=s,f=a;return m(),r("div",w,[b(c,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:v((()=>[b(i,{label:t.$t("Waf.Block.index_66")},{default:v((()=>[g(k(j(e)(j(d).time_localtime)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_67")},{default:v((()=>[x("a",{class:"bt-link",href:"javascript:;",onClick:U},k(j(e)(j(d).ip)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_15")},{default:v((()=>[g(k(j(e)(j(d).type)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_21")},{default:v((()=>[g(k(j(e)(j(d).filter_rule)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_68"),span:2},{default:v((()=>[x("div",B,[b(o,{class:"w-480px"},{default:v((()=>[g(k(j(e)(j(d).uri)),1)])),_:1}),x("a",{class:"bt-link",href:"javascript:;",onClick:V},k(t.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),b(i,{label:"User-Agent",span:2},{default:v((()=>[b(o,{class:"w-570px"},{default:v((()=>[g(k(j(e)(j(d).user_agent)),1)])),_:1})])),_:1}),b(i,{label:t.$t("Waf.Block.index_69"),span:2},{default:v((()=>[x("div",h,[b(o,{class:"w-480px"},{default:v((()=>[g(k(j(e)(j(H)[0])),1)])),_:1})])])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_70"),span:2},{default:v((()=>[b(o,{class:"w-570px"},{default:v((()=>[g(k(j(e)(j(P))),1)])),_:1})])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_71"),span:2},{default:v((()=>[b(o,{class:"w-570px"},{default:v((()=>[g(k(j(e)(j(T))),1)])),_:1})])),_:1},8,["label"])])),_:1}),x("div",y,[n[0]||(n[0]=x("div",{class:"text-14px font-bold"},"HTTP",-1)),x("div",$,[b(f,{class:"h-260px",lang:"http",loading:j(I),content:j(A)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]);export{C as default};
+import{_ as a}from"./index172.js?v=1753954525509";import{cY as l,V as e,W as s,e as t}from"./page_layout.js?v=1753954525509";import{a as n,b as i,h as o}from"./tools2.js?v=1753954525509";import{c}from"./public.js?v=1753954525509";import{k as d,t as f,P as u,c as p,r as _,U as r,V as b,Q as m,a2 as x,j as v,a3 as g,X as k,W as j}from"./vue.js?v=1753954525509";import{b$ as W}from"./naive.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./common.js?v=1753954525509";import"./rules.js?v=1753954525509";const w={class:"p-20px"},B={class:"flex justify-between"},h={class:"flex justify-between"},$={class:"mt-20px"},y={class:"mt-10px"},C=t(d({__name:"details",props:{row:{}},setup(t){const d=f(t,"row"),{t:C}=u(),H=p((()=>d.value.incoming_value.indexOf('b"')>-1?d.value.incoming_value.substring(2,d.value.incoming_value.length-1).split(" >> "):d.value.incoming_value.split(" >> "))),P=p((()=>H.value[1]||C("Waf.Block.index_72"))),T=p((()=>H.value[2]||C("Waf.Block.index_72"))),U=()=>{n(d.value)},V=()=>{i(d.value,!1)},A=_(""),{loading:I,setLoading:L}=c();return(async()=>{try{L(!0);const{message:a}=await o({path:d.value.http_log});A.value=a.result}finally{L(!1)}})(),(t,n)=>{const i=e,o=W,c=s,f=a;return r(),b("div",w,[m(c,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:x((()=>[m(i,{label:t.$t("Waf.Block.index_66")},{default:x((()=>[v(g(k(l)(k(d).time_localtime)),1)])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_67")},{default:x((()=>[j("a",{class:"bt-link",href:"javascript:;",onClick:U},g(k(l)(k(d).ip)),1)])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_15")},{default:x((()=>[v(g(k(l)(k(d).type)),1)])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_21")},{default:x((()=>[v(g(k(l)(k(d).filter_rule)),1)])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_68"),span:2},{default:x((()=>[j("div",B,[m(o,{class:"w-480px"},{default:x((()=>[v(g(k(l)(k(d).uri)),1)])),_:1}),j("a",{class:"bt-link",href:"javascript:;",onClick:V},g(t.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),m(i,{label:"User-Agent",span:2},{default:x((()=>[m(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(d).user_agent)),1)])),_:1})])),_:1}),m(i,{label:t.$t("Waf.Block.index_69"),span:2},{default:x((()=>[j("div",h,[m(o,{class:"w-480px"},{default:x((()=>[v(g(k(l)(k(H)[0])),1)])),_:1})])])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_70"),span:2},{default:x((()=>[m(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(P))),1)])),_:1})])),_:1},8,["label"]),m(i,{label:t.$t("Waf.Block.index_71"),span:2},{default:x((()=>[m(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(T))),1)])),_:1})])),_:1},8,["label"])])),_:1}),j("div",$,[n[0]||(n[0]=j("div",{class:"text-14px font-bold"},"HTTP",-1)),j("div",y,[m(f,{class:"h-260px",lang:"http",loading:k(I),content:k(A)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]);export{C as default};
diff --git a/BTPanel/static/vite/js/details2.js b/BTPanel/static/vite/js/details2.js
index e6d449d4..cec72c9c 100644
--- a/BTPanel/static/vite/js/details2.js
+++ b/BTPanel/static/vite/js/details2.js
@@ -1 +1 @@
-import{b as e,h as t,f as a}from"./public.js?v=1752142539265";import{d5 as i,w as o}from"./page_layout.js?v=1752142539265";import{g as l}from"./index79.js?v=1752142539265";import{s}from"./tools2.js?v=1752142539265";import{_ as r}from"./index.vue_vue_type_script_setup_true_lang15.js?v=1752142539265";import{k as n,t as p,P as c,aB as d,U as u,X as m,Q as f,W as _,V as x}from"./vue.js?v=1752142539265";import"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";import"./rules.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import"./index100.js?v=1752142539265";const v={class:"h-full"},h=n({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const t=p(e,"data"),{t:a}=c(),i=d({backgroundColor:"#fff",title:l(),tooltip:{trigger:"item",confine:!0,formatter(e){const t=e;return"".concat(t.marker," ").concat(t.name,": ").concat(t.value," (").concat(t.percent,"%)")}},series:s()}),o=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function l(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:"#484848",fontSize:17},subtext:"".concat(e),subtextStyle:{color:"#717171",fontSize:15},itemGap:20,left:"center",top:"42%"}}function s(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:"#999",lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},color:e=>o[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const a=[];Object.entries(t.value).forEach((([t,i])=>{e+=i,a.push({name:t,value:i})})),i.title=l(e),i.series=s(a)})(),(e,t)=>(m(),u("div",v,[f(r,{type:"pie",height:"100%",option:_(i)},null,8,["option"])]))}}),y={class:"h-full"},b=n({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=p(e,"data"),{t:a}=c(),o=d({backgroundColor:"#fff",tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},formatter(e){const t=e;return''.concat(t.marker," ").concat(i(t.seriesName||""),"
\n\t\t\t").concat(a("Waf.Report.index_16",[t.data]),"
")}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:"#808080"},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:"#4D4D4D",fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:"#8C8C8C"},splitLine:{lineStyle:{type:"dashed"}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(m(),u("div",y,[f(r,{type:"bar",height:"100%",option:_(o)},null,8,["option"])]))}}),g={class:"p-20px"},w={class:"flex h-280px mb-16px"},j={class:"w-410px"},k={class:"w-500px"},S=n({__name:"details",props:{row:{}},setup(r){const n=p(r,"row"),{t:d}=c(),{table:v,columns:y}=e([{key:"time_localtime",title:d("Waf.Report.index_13"),width:140},{key:"server_name",title:d("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:d("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>i(e.uri)||"--"},{key:"filter_rule",title:d("Waf.Report.index_34"),width:140},t({width:80,options:e=>[{label:d("Public.Btn.Details"),onClick:async()=>{const{message:t}=await l({id:e.id});o(t)&&t.length>0&&s(t[0])}}]})]);v.data=n.value.data.list;const S=n.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,t)=>{const i=a;return m(),u("div",g,[x("div",w,[x("div",j,[f(h,{data:_(n).data.type},null,8,["data"])]),x("div",k,[f(b,{data:_(S)},null,8,["data"])])]),f(i,{"max-height":300,data:_(v).data,columns:_(y)},null,8,["data","columns"])])}}});export{S as default};
+import{b as e,h as t,f as a}from"./public.js?v=1753954525509";import{cY as i,w as o}from"./page_layout.js?v=1753954525509";import{g as l}from"./index79.js?v=1753954525509";import{s}from"./tools2.js?v=1753954525509";import{_ as r}from"./index.vue_vue_type_script_setup_true_lang15.js?v=1753954525509";import{k as n,t as p,P as c,aD as d,U as u,V as m,Q as f,X as _,W as x}from"./vue.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./rules.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./index100.js?v=1753954525509";const v={class:"h-full"},h=n({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const t=p(e,"data"),{t:a}=c(),i=d({backgroundColor:"#fff",title:l(),tooltip:{trigger:"item",confine:!0,formatter(e){const t=e;return"".concat(t.marker," ").concat(t.name,": ").concat(t.value," (").concat(t.percent,"%)")}},series:s()}),o=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function l(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:"#484848",fontSize:17},subtext:"".concat(e),subtextStyle:{color:"#717171",fontSize:15},itemGap:20,left:"center",top:"42%"}}function s(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:"#999",lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},color:e=>o[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const a=[];Object.entries(t.value).forEach((([t,i])=>{e+=i,a.push({name:t,value:i})})),i.title=l(e),i.series=s(a)})(),(e,t)=>(u(),m("div",v,[f(r,{type:"pie",height:"100%",option:_(i)},null,8,["option"])]))}}),y={class:"h-full"},b=n({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=p(e,"data"),{t:a}=c(),o=d({backgroundColor:"#fff",tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},formatter(e){const t=e;return''.concat(t.marker," ").concat(i(t.seriesName||""),"
\n\t\t\t").concat(a("Waf.Report.index_16",[t.data]),"
")}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:"#808080"},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:"#4D4D4D",fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:"#8C8C8C"},splitLine:{lineStyle:{type:"dashed"}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(u(),m("div",y,[f(r,{type:"bar",height:"100%",option:_(o)},null,8,["option"])]))}}),g={class:"p-20px"},w={class:"flex h-280px mb-16px"},j={class:"w-410px"},k={class:"w-500px"},S=n({__name:"details",props:{row:{}},setup(r){const n=p(r,"row"),{t:d}=c(),{table:v,columns:y}=e([{key:"time_localtime",title:d("Waf.Report.index_13"),width:140},{key:"server_name",title:d("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:d("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>i(e.uri)||"--"},{key:"filter_rule",title:d("Waf.Report.index_34"),width:140},t({width:80,options:e=>[{label:d("Public.Btn.Details"),onClick:async()=>{const{message:t}=await l({id:e.id});o(t)&&t.length>0&&s(t[0])}}]})]);v.data=n.value.data.list;const S=n.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,t)=>{const i=a;return u(),m("div",g,[x("div",w,[x("div",j,[f(h,{data:_(n).data.type},null,8,["data"])]),x("div",k,[f(b,{data:_(S)},null,8,["data"])])]),f(i,{"max-height":300,data:_(v).data,columns:_(y)},null,8,["data","columns"])])}}});export{S as default};
diff --git a/BTPanel/static/vite/js/details3.js b/BTPanel/static/vite/js/details3.js
index 8bf7d20f..aebe4f39 100644
--- a/BTPanel/static/vite/js/details3.js
+++ b/BTPanel/static/vite/js/details3.js
@@ -1 +1 @@
-import{b as t,h as e,f as i}from"./public.js?v=1752142539265";import{d5 as s,w as r}from"./page_layout.js?v=1752142539265";import{g as p}from"./index79.js?v=1752142539265";import{s as a}from"./tools2.js?v=1752142539265";import{k as o,P as _,U as n,X as l,Q as u,W as m}from"./vue.js?v=1752142539265";import"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";import"./rules.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import"./index100.js?v=1752142539265";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1752142539265";const d={class:"p-20px"},c=o({__name:"details",props:{list:{}},setup(o){const c=o,{t:j}=_(),{table:x,columns:y}=t([{key:"time_localtime",title:j("Waf.Report.index_13"),width:140},{key:"ip",title:j("Waf.Report.index_7"),width:120},{key:"server_name",title:j("Waf.Report.index_14"),width:120},{key:"ip_country",title:j("Waf.Report.index_8"),width:140,render:t=>t.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:t=>s(t.uri)},{key:"filter_rule",title:j("Waf.Report.index_1"),width:140},e({width:80,options:t=>[{label:j("Public.Btn.Details"),onClick:async()=>{const{message:e}=await p({id:t.id});r(e)&&e.length>0&&a(e[0])}}]})]);return x.data=c.list,(t,e)=>{const s=i;return l(),n("div",d,[u(s,{"max-height":550,data:m(x).data,columns:m(y)},null,8,["data","columns"])])}}});export{c as default};
+import{b as t,h as e,f as i}from"./public.js?v=1753954525509";import{cY as s,w as r}from"./page_layout.js?v=1753954525509";import{g as p}from"./index79.js?v=1753954525509";import{s as a}from"./tools2.js?v=1753954525509";import{k as o,P as _,U as n,V as l,Q as u,X as m}from"./vue.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./rules.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./index100.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1753954525509";const d={class:"p-20px"},c=o({__name:"details",props:{list:{}},setup(o){const c=o,{t:j}=_(),{table:x,columns:y}=t([{key:"time_localtime",title:j("Waf.Report.index_13"),width:140},{key:"ip",title:j("Waf.Report.index_7"),width:120},{key:"server_name",title:j("Waf.Report.index_14"),width:120},{key:"ip_country",title:j("Waf.Report.index_8"),width:140,render:t=>t.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:t=>s(t.uri)},{key:"filter_rule",title:j("Waf.Report.index_1"),width:140},e({width:80,options:t=>[{label:j("Public.Btn.Details"),onClick:async()=>{const{message:e}=await p({id:t.id});r(e)&&e.length>0&&a(e[0])}}]})]);return x.data=c.list,(t,e)=>{const s=i;return n(),l("div",d,[u(s,{"max-height":550,data:m(x).data,columns:m(y)},null,8,["data","columns"])])}}});export{c as default};
diff --git a/BTPanel/static/vite/js/details4.js b/BTPanel/static/vite/js/details4.js
index 3603caf7..7f2d1234 100644
--- a/BTPanel/static/vite/js/details4.js
+++ b/BTPanel/static/vite/js/details4.js
@@ -1 +1 @@
-import{a}from"./index.js?v=1752142539265";import{k as e,P as s,r as t,c as l,ap as i,a4 as n,U as d,X as c,V as o,Q as p,a3 as r,F as m,O as v,H as x,W as u,ah as _,a2 as f,ax as b,I as y,j as H}from"./vue.js?v=1752142539265";import{X as h,fP as k,d as U,fQ as g,fO as w,K as j,e as $}from"./page_layout.js?v=1752142539265";import{q as C}from"./public.js?v=1752142539265";import{_ as I,ay as M}from"./naive.js?v=1752142539265";const P={class:"w-650px"},z={class:"card"},B={class:"mb-12px font-bold text-18px text-center"},L={class:"min-h-172px text-13px"},O={class:"card"},Q={class:"mb-10px text-16px text-center"},T={class:"h-180px overflow-auto"},X={class:"date"},q={class:"text"},F=["innerHTML"],K={class:"font-bold"},V={class:"text-error"},W=$(e({__name:"details",emits:["close"],setup(e,{emit:$}){const W=$,{t:A}=s(),D=t(!1),E=t(5),G=l((()=>E.value>0)),J=l((()=>!D.value)),N=t([]),R=t([]),{height:S}=i(),Y=l((()=>S.value?"".concat(.9*S.value,"px"):"auto")),Z=()=>{const a=setInterval((()=>{E.value--,E.value<=0&&clearInterval(a)}),1e3)},aa=()=>{W("close")},ea=()=>{C({title:A("Home.Update.index_24"),content:A("Home.Update.index_25"),onConfirm:async()=>{await g(),await w(),j()}})};return(async()=>{const{message:a}=await k();U(a)&&(N.value=a.beta_ps.split("
").map((a=>a.trim())),R.value=a.list,Z())})(),(e,s)=>{const t=n("i18n-t"),l=I,i=M,k=a;return c(),d("div",P,[o("div",{class:"p-20px overflow-auto",style:y({maxHeight:u(Y)})},[o("div",z,[o("div",B,r(e.$t("Home.Update.index_20")),1),o("ul",L,[(c(!0),d(m,null,v(u(N),((a,e)=>(c(),d("li",{key:a,class:x(["indent--15px pl-15px leading-20px",{"mt-8px":0!==e}])},r(a),3)))),128))])]),o("div",O,[o("div",Q,r(e.$t("Home.Update.index_21")),1),o("div",T,[(c(!0),d(m,null,v(u(R),(a=>(c(),d("div",{key:a.version,class:"version"},[s[1]||(s[1]=o("div",{class:"active"},null,-1)),o("div",X,r(u(h)(a.uptime,"yyyy-MM-dd")),1),o("div",q,r(a.version),1),o("div",{class:"content",innerHTML:a.upmsg},null,8,F)])))),128))])]),o("div",null,[p(l,{checked:u(D),"onUpdate:checked":s[0]||(s[0]=a=>_(D)?D.value=a:null),disabled:u(G)},{default:f((()=>[p(t,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},b({title:f((()=>[o("span",K,r(e.$t("Home.Update.index_23_2")),1)])),_:2},[u(E)>0?{name:"wait",fn:f((()=>[o("span",V,r(e.$t("Home.Update.index_23_3",[u(E)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),p(k,null,{default:f((()=>[p(i,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:aa},{default:f((()=>[H(r(e.$t("Public.Btn.Cancel")),1)])),_:1}),p(i,{type:"primary",size:"small",disabled:u(J),onClick:ea},{default:f((()=>[H(r(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-85ccd2a6"]]);export{W as B};
+import{a}from"./index.js?v=1753954525509";import{k as e,P as s,r as t,c as l,ap as i,a4 as n,U as d,V as c,W as o,a3 as p,F as r,O as m,H as v,X as x,Q as u,a2 as _,ax as f,ah as b,I as y,j as H}from"./vue.js?v=1753954525509";import{X as h,fR as k,c as U,fS as g,fP as w,K as j,e as $}from"./page_layout.js?v=1753954525509";import{q as C}from"./public.js?v=1753954525509";import{_ as I,ay as M}from"./naive.js?v=1753954525509";const P={class:"w-650px"},z={class:"card"},B={class:"mb-12px font-bold text-18px text-center"},L={class:"min-h-172px text-13px"},T={class:"card"},X={class:"mb-10px text-16px text-center"},q={class:"h-180px overflow-auto"},F={class:"date"},K={class:"text"},O=["innerHTML"],Q={class:"font-bold"},R={class:"text-error"},S=$(e({__name:"details",emits:["close"],setup(e,{emit:$}){const S=$,{t:V}=s(),W=t(!1),A=t(5),D=l((()=>A.value>0)),E=l((()=>!W.value)),G=t([]),J=t([]),{height:N}=i(),Y=l((()=>N.value?"".concat(.9*N.value,"px"):"auto")),Z=()=>{const a=setInterval((()=>{A.value--,A.value<=0&&clearInterval(a)}),1e3)},aa=()=>{S("close")},ea=()=>{C({title:V("Home.Update.index_24"),content:V("Home.Update.index_25"),onConfirm:async()=>{await g(),await w(),j()}})};return(async()=>{const{message:a}=await k();U(a)&&(G.value=a.beta_ps.split("
").map((a=>a.trim())),J.value=a.list,Z())})(),(e,s)=>{const t=n("i18n-t"),l=I,i=M,k=a;return d(),c("div",P,[o("div",{class:"p-20px overflow-auto",style:y({maxHeight:x(Y)})},[o("div",z,[o("div",B,p(e.$t("Home.Update.index_20")),1),o("ul",L,[(d(!0),c(r,null,m(x(G),((a,e)=>(d(),c("li",{key:a,class:v(["indent--15px pl-15px leading-20px",{"mt-8px":0!==e}])},p(a),3)))),128))])]),o("div",T,[o("div",X,p(e.$t("Home.Update.index_21")),1),o("div",q,[(d(!0),c(r,null,m(x(J),(a=>(d(),c("div",{key:a.version,class:"version"},[s[1]||(s[1]=o("div",{class:"active"},null,-1)),o("div",F,p(x(h)(a.uptime,"yyyy-MM-dd")),1),o("div",K,p(a.version),1),o("div",{class:"content",innerHTML:a.upmsg},null,8,O)])))),128))])]),o("div",null,[u(l,{checked:x(W),"onUpdate:checked":s[0]||(s[0]=a=>b(W)?W.value=a:null),disabled:x(D)},{default:_((()=>[u(t,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},f({title:_((()=>[o("span",Q,p(e.$t("Home.Update.index_23_2")),1)])),_:2},[x(A)>0?{name:"wait",fn:_((()=>[o("span",R,p(e.$t("Home.Update.index_23_3",[x(A)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),u(k,null,{default:_((()=>[u(i,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:aa},{default:_((()=>[H(p(e.$t("Public.Btn.Cancel")),1)])),_:1}),u(i,{type:"primary",size:"small",disabled:x(E),onClick:ea},{default:_((()=>[H(p(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-ae310571"]]);export{S as B};
diff --git a/BTPanel/static/vite/js/disable-legacy.js b/BTPanel/static/vite/js/disable-legacy.js
index 5e61b6b0..34c0d071 100644
--- a/BTPanel/static/vite/js/disable-legacy.js
+++ b/BTPanel/static/vite/js/disable-legacy.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./site-legacy3.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265"],(function(e,a){"use strict";var l,t,i,n,s,u,c,o,r,d,m,f,g,p,y,_,x,v,N,b,j,h,C,w;return{setters:[e=>{l=e.b,t=e.h,i=e.f,n=e._},e=>{s=e.k,u=e.P,c=e.r,o=e.U,r=e.X,d=e.V,m=e.Q,f=e.at,g=e.ah,p=e.W,y=e.a2,_=e.j,x=e.a3},e=>{v=e.w,N=e.m},e=>{b=e.w,j=e.x,h=e.y},e=>{C=e.aq,w=e.ay},null,null],execute:function(){const a={class:"p-20px"},S={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},k="disable_path";e("default",s({__name:"disable",props:{siteName:{default:""}},setup(e){const s=e,{t:$}=u(),P=c(""),B=async()=>{""!==P.value.trim()?(await h({siteName:s.siteName,ruleName:k,ruleValue:P.value}),P.value="",A()):N.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:q}=l([{key:"rule",title:$("Waf.Site.Config.index_66")},t({width:80,options:(e,a)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await b({index:a,siteName:s.siteName,ruleName:k}),A()}}]})]),A=async()=>{try{q(!0);const{siteName:e}=s,{message:a}=await j({siteName:e,ruleName:k});v(a)&&(U.data=a.map((e=>({rule:e}))))}finally{q(!1)}};return A(),(e,l)=>{const t=C,s=w,u=i,c=n;return r(),o("div",a,[d("div",S,[d("div",W,[m(t,{value:p(P),"onUpdate:value":l[0]||(l[0]=e=>g(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:f(B,["enter"])},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:B},{default:y((()=>[_(x(e.$t("Public.Btn.Add")),1)])),_:1})]),m(u,{"max-height":368,loading:p(U).loading,data:p(U).data,columns:p(V)},null,8,["loading","data","columns"]),m(c,{class:"mt-16px"},{default:y((()=>[d("li",null,x(e.$t("Waf.Site.Config.index_68")),1),d("li",null,x(e.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}}))}}}));
+System.register(["./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./site-legacy3.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,t,i,n,s,u,c,o,r,d,m,f,g,p,y,_,x,v,N,b,j,h,C,w;return{setters:[e=>{l=e.b,t=e.h,i=e.f,n=e._},e=>{s=e.k,u=e.P,c=e.r,o=e.U,r=e.V,d=e.W,m=e.Q,f=e.X,g=e.ah,p=e.at,y=e.a2,_=e.j,x=e.a3},e=>{v=e.w,N=e.m},e=>{b=e.w,j=e.x,h=e.y},e=>{C=e.aq,w=e.ay},null,null],execute:function(){const a={class:"p-20px"},S={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},k="disable_path";e("default",s({__name:"disable",props:{siteName:{default:""}},setup(e){const s=e,{t:$}=u(),P=c(""),B=async()=>{""!==P.value.trim()?(await h({siteName:s.siteName,ruleName:k,ruleValue:P.value}),P.value="",A()):N.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:q}=l([{key:"rule",title:$("Waf.Site.Config.index_66")},t({width:80,options:(e,a)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await b({index:a,siteName:s.siteName,ruleName:k}),A()}}]})]),A=async()=>{try{q(!0);const{siteName:e}=s,{message:a}=await j({siteName:e,ruleName:k});v(a)&&(U.data=a.map((e=>({rule:e}))))}finally{q(!1)}};return A(),(e,l)=>{const t=C,s=w,u=i,c=n;return o(),r("div",a,[d("div",S,[d("div",W,[m(t,{value:f(P),"onUpdate:value":l[0]||(l[0]=e=>g(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:p(B,["enter"])},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:B},{default:y((()=>[_(x(e.$t("Public.Btn.Add")),1)])),_:1})]),m(u,{"max-height":368,loading:f(U).loading,data:f(U).data,columns:f(V)},null,8,["loading","data","columns"]),m(c,{class:"mt-16px"},{default:y((()=>[d("li",null,x(e.$t("Waf.Site.Config.index_68")),1),d("li",null,x(e.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}}))}}}));
diff --git a/BTPanel/static/vite/js/disable.js b/BTPanel/static/vite/js/disable.js
index 9dd1a580..7c3a3051 100644
--- a/BTPanel/static/vite/js/disable.js
+++ b/BTPanel/static/vite/js/disable.js
@@ -1 +1 @@
-import{b as a,h as e,f as s,_ as l}from"./public.js?v=1752142539265";import{k as t,P as i,r as n,U as o,X as m,V as r,Q as u,at as d,ah as p,W as c,a2 as f,j as _,a3 as x}from"./vue.js?v=1752142539265";import{w as g,m as v}from"./page_layout.js?v=1752142539265";import{w as y,x as N,y as b}from"./site3.js?v=1752142539265";import{aq as j,ay as h}from"./naive.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const C={class:"p-20px"},w={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},S="disable_path",k=t({__name:"disable",props:{siteName:{default:""}},setup(t){const k=t,{t:$}=i(),P=n(""),B=async()=>{""!==P.value.trim()?(await b({siteName:k.siteName,ruleName:S,ruleValue:P.value}),P.value="",A()):v.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:q}=a([{key:"rule",title:$("Waf.Site.Config.index_66")},e({width:80,options:(a,e)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await y({index:e,siteName:k.siteName,ruleName:S}),A()}}]})]),A=async()=>{try{q(!0);const{siteName:a}=k,{message:e}=await N({siteName:a,ruleName:S});g(e)&&(U.data=e.map((a=>({rule:a}))))}finally{q(!1)}};return A(),(a,e)=>{const t=j,i=h,n=s,g=l;return m(),o("div",C,[r("div",w,[r("div",W,[u(t,{value:c(P),"onUpdate:value":e[0]||(e[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Site.Config.index_67"),onKeyup:d(B,["enter"])},null,8,["value","placeholder"])]),u(i,{type:"primary",onClick:B},{default:f((()=>[_(x(a.$t("Public.Btn.Add")),1)])),_:1})]),u(n,{"max-height":368,loading:c(U).loading,data:c(U).data,columns:c(V)},null,8,["loading","data","columns"]),u(g,{class:"mt-16px"},{default:f((()=>[r("li",null,x(a.$t("Waf.Site.Config.index_68")),1),r("li",null,x(a.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}});export{k as default};
+import{b as a,h as e,f as s,_ as l}from"./public.js?v=1753954525509";import{k as t,P as i,r as n,U as o,V as m,W as r,Q as u,X as d,ah as p,at as c,a2 as f,j as _,a3 as x}from"./vue.js?v=1753954525509";import{w as g,m as v}from"./page_layout.js?v=1753954525509";import{w as y,x as N,y as b}from"./site3.js?v=1753954525509";import{aq as j,ay as h}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const C={class:"p-20px"},w={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},S="disable_path",k=t({__name:"disable",props:{siteName:{default:""}},setup(t){const k=t,{t:$}=i(),P=n(""),B=async()=>{""!==P.value.trim()?(await b({siteName:k.siteName,ruleName:S,ruleValue:P.value}),P.value="",A()):v.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:q}=a([{key:"rule",title:$("Waf.Site.Config.index_66")},e({width:80,options:(a,e)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await y({index:e,siteName:k.siteName,ruleName:S}),A()}}]})]),A=async()=>{try{q(!0);const{siteName:a}=k,{message:e}=await N({siteName:a,ruleName:S});g(e)&&(U.data=e.map((a=>({rule:a}))))}finally{q(!1)}};return A(),(a,e)=>{const t=j,i=h,n=s,g=l;return o(),m("div",C,[r("div",w,[r("div",W,[u(t,{value:d(P),"onUpdate:value":e[0]||(e[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Site.Config.index_67"),onKeyup:c(B,["enter"])},null,8,["value","placeholder"])]),u(i,{type:"primary",onClick:B},{default:f((()=>[_(x(a.$t("Public.Btn.Add")),1)])),_:1})]),u(n,{"max-height":368,loading:d(U).loading,data:d(U).data,columns:d(V)},null,8,["loading","data","columns"]),u(g,{class:"mt-16px"},{default:f((()=>[r("li",null,x(a.$t("Waf.Site.Config.index_68")),1),r("li",null,x(a.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}});export{k as default};
diff --git a/BTPanel/static/vite/js/disk-legacy.js b/BTPanel/static/vite/js/disk-legacy.js
index d20f13f5..cfeab359 100644
--- a/BTPanel/static/vite/js/disk-legacy.js
+++ b/BTPanel/static/vite/js/disk-legacy.js
@@ -1 +1 @@
-System.register(["./vue-legacy.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./public-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265"],(function(t,e){"use strict";var n,i,s,o,a,c,u,l,r,d,_,k,p,y,g,f,m,v;return{setters:[t=>{n=t.S,i=t.P,s=t.r,o=t.e,a=t.Q,c=t.j,u=t.F},t=>{l=t.n,r=t.aa,d=t.ab,_=t.ac,k=t.a4,p=t.d},t=>{y=t.c,g=t.h,f=t.k,m=t.d},t=>{v=t.by}],execute:function(){t("u",n("diskStore",(()=>{const{t:t}=i(),{loading:e,setLoading:n}=y(),D=s({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),h=o({data:[]}),A=s(!1),w=s([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:e=>e.is_user_quota?a("span",null,[t("Account.Disk.disk_810348-10")]):a("div",null,[a("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),c(" | "),a("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await _(t),j()}(e.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>l(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const e=Math.round(t.used_percent);return a(u,null,[a("div",{class:"mb-[.2rem]"},[e,c("% / "),l(t.used)]),a(v,{height:10,color:C(e),percentage:e,showIndicator:!1},null)])}},g({title:t("Public.Table.Action"),align:"right",width:200,options:e=>[{label:t("Account.Disk.disk_810348-4"),show:e.is_default&&!A.value,disabled:!0},{label:"重启服务",show:e.is_default&&A.value,type:"warning",onClick:async()=>f()},{label:t("Account.Disk.disk_810348-5"),show:!e.is_default,onClick:async()=>{m({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[e.mountpoint]),onConfirm:async()=>{await r({mountpoint:e.mountpoint}),A.value=!0,j()}})}}]})]),b=d(),C=t=>{const e=Math.round(t);return e>80?b.value.errorColor:e>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{n(!0);const t=await k();if(p(t)){h.data=t.message;const e=t.message.find((t=>t.is_default));if(e){const t={...e};t.account_percent=Math.round(t.account_allocate/t.total*100),D.value=t}}}finally{n(!1)}};return{loading:e,DefaultDisk:D,init:j,columns:w,table:h,diskColor:C}})))}}}));
+System.register(["./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(t,e){"use strict";var n,i,s,o,a,c,u,l,r,d,_,k,p,y,g,f,m,v;return{setters:[t=>{n=t.S,i=t.P,s=t.r,o=t.e,a=t.Q,c=t.j,u=t.F},t=>{l=t.n,r=t.aa,d=t.ab,_=t.ac,k=t.a4,p=t.c},t=>{y=t.c,g=t.h,f=t.k,m=t.d},t=>{v=t.bA}],execute:function(){t("u",n("diskStore",(()=>{const{t:t}=i(),{loading:e,setLoading:n}=y(),A=s({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),D=o({data:[]}),h=s(!1),w=s([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:e=>e.is_user_quota?a("span",null,[t("Account.Disk.disk_810348-10")]):a("div",null,[a("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),c(" | "),a("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await _(t),j()}(e.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>l(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const e=Math.round(t.used_percent);return a(u,null,[a("div",{class:"mb-[.2rem]"},[e,c("% / "),l(t.used)]),a(v,{height:10,color:C(e),percentage:e,showIndicator:!1},null)])}},g({title:t("Public.Table.Action"),align:"right",width:200,options:e=>[{label:t("Account.Disk.disk_810348-4"),show:e.is_default&&!h.value,disabled:!0},{label:"重启服务",show:e.is_default&&h.value,type:"warning",onClick:async()=>f()},{label:t("Account.Disk.disk_810348-5"),show:!e.is_default,onClick:async()=>{m({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[e.mountpoint]),onConfirm:async()=>{await r({mountpoint:e.mountpoint}),h.value=!0,j()}})}}]})]),b=d(),C=t=>{const e=Math.round(t);return e>80?b.value.errorColor:e>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{n(!0);const t=await k();if(p(t)){D.data=t.message;const e=t.message.find((t=>t.is_default));if(e){const t={...e};t.account_percent=Math.round(t.account_allocate/t.total*100),A.value=t}}}finally{n(!1)}};return{loading:e,DefaultDisk:A,init:j,columns:w,table:D,diskColor:C}})))}}}));
diff --git a/BTPanel/static/vite/js/disk.js b/BTPanel/static/vite/js/disk.js
index 0cb8c281..a56b5075 100644
--- a/BTPanel/static/vite/js/disk.js
+++ b/BTPanel/static/vite/js/disk.js
@@ -1 +1 @@
-import{S as t,P as s,r as a,e as o,Q as e,j as i,F as n}from"./vue.js?v=1752142539265";import{n as c,aa as u,ab as l,ac as r,a4 as d,d as _}from"./page_layout.js?v=1752142539265";import{c as k,h as p,k as m,d as f}from"./public.js?v=1752142539265";import{by as y}from"./naive.js?v=1752142539265";const g=t("diskStore",(()=>{const{t:t}=s(),{loading:g,setLoading:D}=k(),h=a({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),v=o({data:[]}),A=a(!1),w=a([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:s=>s.is_user_quota?e("span",null,[t("Account.Disk.disk_810348-10")]):e("div",null,[e("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),i(" | "),e("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await r(t),j()}(s.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>c(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const s=Math.round(t.used_percent);return e(n,null,[e("div",{class:"mb-[.2rem]"},[s,i("% / "),c(t.used)]),e(y,{height:10,color:C(s),percentage:s,showIndicator:!1},null)])}},p({title:t("Public.Table.Action"),align:"right",width:200,options:s=>[{label:t("Account.Disk.disk_810348-4"),show:s.is_default&&!A.value,disabled:!0},{label:"重启服务",show:s.is_default&&A.value,type:"warning",onClick:async()=>m()},{label:t("Account.Disk.disk_810348-5"),show:!s.is_default,onClick:async()=>{f({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[s.mountpoint]),onConfirm:async()=>{await u({mountpoint:s.mountpoint}),A.value=!0,j()}})}}]})]),b=l();const C=t=>{const s=Math.round(t);return s>80?b.value.errorColor:s>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{D(!0);const t=await d();if(_(t)){v.data=t.message;const s=t.message.find((t=>t.is_default));if(s){const t={...s};t.account_percent=Math.round(t.account_allocate/t.total*100),h.value=t}}}finally{D(!1)}};return{loading:g,DefaultDisk:h,init:j,columns:w,table:v,diskColor:C}}));export{g as u};
+import{S as t,P as s,r as a,e as o,Q as e,j as i,F as n}from"./vue.js?v=1753954525509";import{n as c,aa as u,ab as l,ac as r,a4 as d,c as _}from"./page_layout.js?v=1753954525509";import{c as k,h as p,k as m,d as f}from"./public.js?v=1753954525509";import{bA as y}from"./naive.js?v=1753954525509";const g=t("diskStore",(()=>{const{t:t}=s(),{loading:g,setLoading:A}=k(),D=a({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),h=o({data:[]}),v=a(!1),w=a([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:s=>s.is_user_quota?e("span",null,[t("Account.Disk.disk_810348-10")]):e("div",null,[e("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),i(" | "),e("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await r(t),j()}(s.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>c(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const s=Math.round(t.used_percent);return e(n,null,[e("div",{class:"mb-[.2rem]"},[s,i("% / "),c(t.used)]),e(y,{height:10,color:C(s),percentage:s,showIndicator:!1},null)])}},p({title:t("Public.Table.Action"),align:"right",width:200,options:s=>[{label:t("Account.Disk.disk_810348-4"),show:s.is_default&&!v.value,disabled:!0},{label:"重启服务",show:s.is_default&&v.value,type:"warning",onClick:async()=>m()},{label:t("Account.Disk.disk_810348-5"),show:!s.is_default,onClick:async()=>{f({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[s.mountpoint]),onConfirm:async()=>{await u({mountpoint:s.mountpoint}),v.value=!0,j()}})}}]})]),b=l();const C=t=>{const s=Math.round(t);return s>80?b.value.errorColor:s>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{A(!0);const t=await d();if(_(t)){h.data=t.message;const s=t.message.find((t=>t.is_default));if(s){const t={...s};t.account_percent=Math.round(t.account_allocate/t.total*100),D.value=t}}}finally{A(!1)}};return{loading:g,DefaultDisk:D,init:j,columns:w,table:h,diskColor:C}}));export{g as u};
diff --git a/BTPanel/static/vite/js/docker-legacy.js b/BTPanel/static/vite/js/docker-legacy.js
new file mode 100644
index 00000000..8ecedb19
--- /dev/null
+++ b/BTPanel/static/vite/js/docker-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_69)'%3e%3cpath%20d='M4.5%2018C6%2017.8333%209.3%2017%2010.5%2015'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3crect%20x='5'%20y='8'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='8'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='4'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.186%2012H2C2.16279%2014.4267%203.95349%2020%209.81395%2020C17.1395%2020%2019.093%2013.76%2019.5814%2012.72C21.0465%2012.72%2023%2011.16%2023%2010.64C22.1433%2010.1839%2020.5351%2010.5279%2019.8232%2010.6193C19.7235%2010.6321%2019.6414%2010.64%2019.5814%2010.64C20.0698%2010.12%2019.093%207.52%2018.1163%207C17.3349%208.248%2017.4651%2010.64%2017.6279%2011.68C17.6471%2011.8023%2017.1395%2012%2015.186%2012Z'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_69'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/docker.js b/BTPanel/static/vite/js/docker.js
new file mode 100644
index 00000000..77071d0f
--- /dev/null
+++ b/BTPanel/static/vite/js/docker.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_69)'%3e%3cpath%20d='M4.5%2018C6%2017.8333%209.3%2017%2010.5%2015'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3crect%20x='5'%20y='8'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='8'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='4'%20width='4'%20height='4'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.186%2012H2C2.16279%2014.4267%203.95349%2020%209.81395%2020C17.1395%2020%2019.093%2013.76%2019.5814%2012.72C21.0465%2012.72%2023%2011.16%2023%2010.64C22.1433%2010.1839%2020.5351%2010.5279%2019.8232%2010.6193C19.7235%2010.6321%2019.6414%2010.64%2019.5814%2010.64C20.0698%2010.12%2019.093%207.52%2018.1163%207C17.3349%208.248%2017.4651%2010.64%2017.6279%2011.68C17.6471%2011.8023%2017.1395%2012%2015.186%2012Z'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_69'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/docker_active-legacy.js b/BTPanel/static/vite/js/docker_active-legacy.js
new file mode 100644
index 00000000..75f41266
--- /dev/null
+++ b/BTPanel/static/vite/js/docker_active-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_58)'%3e%3crect%20x='5'%20y='8'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='8'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='4'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.186%2012H2C2.16279%2014.4267%203.95349%2020%209.81395%2020C17.1395%2020%2019.093%2013.76%2019.5814%2012.72C21.0465%2012.72%2023%2011.16%2023%2010.64C22.1433%2010.1839%2020.5351%2010.5279%2019.8232%2010.6193C19.7235%2010.6321%2019.6414%2010.64%2019.5814%2010.64C20.0698%2010.12%2019.093%207.52%2018.1163%207C17.3349%208.248%2017.4651%2010.64%2017.6279%2011.68C17.6471%2011.8023%2017.1395%2012%2015.186%2012Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M4.5%2018C6%2017.8333%209.3%2017%2010.5%2015'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_58'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/docker_active.js b/BTPanel/static/vite/js/docker_active.js
new file mode 100644
index 00000000..15af469b
--- /dev/null
+++ b/BTPanel/static/vite/js/docker_active.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_58)'%3e%3crect%20x='5'%20y='8'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='8'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3crect%20x='9'%20y='4'%20width='4'%20height='4'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.186%2012H2C2.16279%2014.4267%203.95349%2020%209.81395%2020C17.1395%2020%2019.093%2013.76%2019.5814%2012.72C21.0465%2012.72%2023%2011.16%2023%2010.64C22.1433%2010.1839%2020.5351%2010.5279%2019.8232%2010.6193C19.7235%2010.6321%2019.6414%2010.64%2019.5814%2010.64C20.0698%2010.12%2019.093%207.52%2018.1163%207C17.3349%208.248%2017.4651%2010.64%2017.6279%2011.68C17.6471%2011.8023%2017.1395%2012%2015.186%2012Z'%20fill='white'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M4.5%2018C6%2017.8333%209.3%2017%2010.5%2015'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_58'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/domain-form-legacy.js b/BTPanel/static/vite/js/domain-form-legacy.js
index f2beaedb..054f3358 100644
--- a/BTPanel/static/vite/js/domain-form-legacy.js
+++ b/BTPanel/static/vite/js/domain-form-legacy.js
@@ -1 +1 @@
-System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1752142539265","./public-legacy.js?v=1752142539265","./utils-legacy3.js?v=1752142539265","./page_layout-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./common-legacy.js?v=1752142539265","./__commonjsHelpers__-legacy.js?v=1752142539265"],(function(e,l){"use strict";var r,a,t,o,d,u,i,p,c,n,s,_,y,v,m,x,b,h,g,f,S,w,j,D,L,$,U,k;return{setters:[e=>{r=e._},e=>{a=e.Y,t=e.aq},e=>{o=e.a,d=e.t,u=e.c,i=e.h},e=>{p=e.u},e=>{c=e.cz,n=e.aq,s=e.cD,_=e.bX,y=e.ay,v=e.bZ,m=e.c1},e=>{x=e.k,b=e.c,h=e.P,g=e.r,f=e.e,S=e.a1,w=e.X,j=e.a2,D=e.Q,L=e.an,$=e.V,U=e.W,k=e.j},null,null],execute:function(){const l={class:"w-300px"};e("default",x({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(e,{expose:x}){const P=p(),X=e,{isEdit:q,row:C,onRefresh:M}=X,E=b((()=>q&&C?C.provider_name.includes("CloudFlare"):o.value.includes("CloudFlare"))),{t:T}=h(),F=g(null),R=f({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),z={record:{required:!0,trigger:"change",message:T("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:T("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:T("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},A=()=>{R.record_value=P.address},B=()=>({id:q&&C?C.id:null,pid:i.value,domain:u.value,record:R.record,record_type:R.record_type,record_value:R.record_value,ttl:R.ttl,ps:R.ps,proxy:E.value&&"MX"!==R.record_type?R.proxy:-1,priority:"MX"===R.record_type?R.priority:-1});return(()=>{const{row:e,isEdit:l}=X;l&&e&&(R.record=e.record,R.record_type=e.record_type,R.record_value=e.record_value,R.ttl=e.ttl,R.ps=e.ps,R.proxy=e.proxy,R.priority="MX"===R.record_type?e.priority:-1)})(),x({onConfirm:async()=>{await(F.value?.validate()),q&&C?await a(B()):await t(B()),M()}}),(e,a)=>{const t=n,o=c,u=s,i=y,p=_,x=v,b=m,h=r;return w(),S(h,{class:"p-20px",ref_key:"formRef",ref:F,model:U(R),rules:z},{default:j((()=>[D(o,{label:e.$t("SSL.Domain.index_11"),path:"record"},{default:j((()=>[$("div",l,[D(t,{value:U(R).record,"onUpdate:value":a[0]||(a[0]=e=>U(R).record=e),placeholder:e.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),D(o,{label:e.$t("Ftp.Table.index_3"),path:"record_type"},{default:j((()=>[D(u,{class:"w-300px",value:U(R).record_type,"onUpdate:value":a[1]||(a[1]=e=>U(R).record_type=e),options:U(d),disabled:U(q)},null,8,["value","options","disabled"])])),_:1},8,["label"]),D(o,{label:e.$t("SSL.Domain.index_13"),path:"record_value"},{default:j((()=>[D(p,{class:"flex-nowrap!",size:5},{default:j((()=>[D(t,{class:"w-300px!",value:U(R).record_value,"onUpdate:value":a[2]||(a[2]=e=>U(R).record_value=e),placeholder:e.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),D(i,{onClick:A},{default:j((()=>a[7]||(a[7]=[k(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),D(o,{label:"TTL",path:"ttl"},{default:j((()=>[D(x,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:U(R).ttl,"onUpdate:value":a[3]||(a[3]=e=>U(R).ttl=e),placeholder:e.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===U(R).record_type?(w(),S(o,{key:0,label:"Priority",path:"priority"},{default:j((()=>[D(x,{"show-button":!1,class:"w-300px!",value:U(R).priority,"onUpdate:value":a[4]||(a[4]=e=>U(R).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):L("",!0),D(o,{label:e.$t("Public.Table.Ps"),path:"ps"},{default:j((()=>[D(t,{class:"w-300px!",value:U(R).ps,"onUpdate:value":a[5]||(a[5]=e=>U(R).ps=e),placeholder:e.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),U(E)&&"MX"!==U(R).record_type?(w(),S(o,{key:1,label:e.$t("SSL.Domain.index_16"),path:"proxy"},{default:j((()=>[D(b,{value:U(R).proxy,"onUpdate:value":a[6]||(a[6]=e=>U(R).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):L("",!0)])),_:1},8,["model"])}}}))}}}));
+System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./utils-legacy3.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,l){"use strict";var r,a,t,o,d,u,i,p,c,n,s,_,y,v,m,x,b,h,g,f,S,w,j,L,D,U,$,k;return{setters:[e=>{r=e._},e=>{a=e.V,t=e.as},e=>{o=e.a,d=e.t,u=e.h,i=e.c},e=>{p=e.u},e=>{c=e.aq,n=e.cA,s=e.cG,_=e.ay,y=e.bY,v=e.c1,m=e.c5},e=>{x=e.k,b=e.c,h=e.P,g=e.r,f=e.e,S=e.U,w=e.a1,j=e.a2,L=e.Q,D=e.W,U=e.X,$=e.j,k=e.al},null,null],execute:function(){const l={class:"w-300px"};e("default",x({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(e,{expose:x}){const P=p(),X=e,{isEdit:q,row:C,onRefresh:M}=X,E=b((()=>q&&C?C.provider_name.includes("CloudFlare"):o.value.includes("CloudFlare"))),{t:T}=h(),F=g(null),R=f({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),A={record:{required:!0,trigger:"change",message:T("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:T("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:T("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{R.record_value=P.address},B=()=>({id:q&&C?C.id:null,pid:u.value,domain:i.value,record:R.record,record_type:R.record_type,record_value:R.record_value,ttl:R.ttl,ps:R.ps,proxy:E.value&&"MX"!==R.record_type?R.proxy:-1,priority:"MX"===R.record_type?R.priority:-1});return(()=>{const{row:e,isEdit:l}=X;l&&e&&(R.record=e.record,R.record_type=e.record_type,R.record_value=e.record_value,R.ttl=e.ttl,R.ps=e.ps,R.proxy=e.proxy,R.priority="MX"===R.record_type?e.priority:-1)})(),x({onConfirm:async()=>{await(F.value?.validate()),q&&C?await a(B()):await t(B()),M()}}),(e,a)=>{const t=c,o=n,u=s,i=_,p=y,x=v,b=m,h=r;return S(),w(h,{class:"p-20px",ref_key:"formRef",ref:F,model:U(R),rules:A},{default:j((()=>[L(o,{label:e.$t("SSL.Domain.index_11"),path:"record"},{default:j((()=>[D("div",l,[L(t,{value:U(R).record,"onUpdate:value":a[0]||(a[0]=e=>U(R).record=e),placeholder:e.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),L(o,{label:e.$t("Ftp.Table.index_3"),path:"record_type"},{default:j((()=>[L(u,{class:"w-300px",value:U(R).record_type,"onUpdate:value":a[1]||(a[1]=e=>U(R).record_type=e),options:U(d),disabled:U(q)},null,8,["value","options","disabled"])])),_:1},8,["label"]),L(o,{label:e.$t("SSL.Domain.index_13"),path:"record_value"},{default:j((()=>[L(p,{class:"flex-nowrap!",size:5},{default:j((()=>[L(t,{class:"w-300px!",value:U(R).record_value,"onUpdate:value":a[2]||(a[2]=e=>U(R).record_value=e),placeholder:e.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),L(i,{onClick:z},{default:j((()=>a[7]||(a[7]=[$(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),L(o,{label:"TTL",path:"ttl"},{default:j((()=>[L(x,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:U(R).ttl,"onUpdate:value":a[3]||(a[3]=e=>U(R).ttl=e),placeholder:e.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===U(R).record_type?(S(),w(o,{key:0,label:"Priority",path:"priority"},{default:j((()=>[L(x,{"show-button":!1,class:"w-300px!",value:U(R).priority,"onUpdate:value":a[4]||(a[4]=e=>U(R).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):k("",!0),L(o,{label:e.$t("Public.Table.Ps"),path:"ps"},{default:j((()=>[L(t,{class:"w-300px!",value:U(R).ps,"onUpdate:value":a[5]||(a[5]=e=>U(R).ps=e),placeholder:e.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),U(E)&&"MX"!==U(R).record_type?(S(),w(o,{key:1,label:e.$t("SSL.Domain.index_16"),path:"proxy"},{default:j((()=>[L(b,{value:U(R).proxy,"onUpdate:value":a[6]||(a[6]=e=>U(R).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):k("",!0)])),_:1},8,["model"])}}}))}}}));
diff --git a/BTPanel/static/vite/js/domain-form.js b/BTPanel/static/vite/js/domain-form.js
index ac620543..767ba300 100644
--- a/BTPanel/static/vite/js/domain-form.js
+++ b/BTPanel/static/vite/js/domain-form.js
@@ -1 +1 @@
-import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{Y as a,aq as r}from"./public.js?v=1752142539265";import{a as l,t as o,c as t,h as s}from"./utils3.js?v=1752142539265";import{u as d}from"./page_layout.js?v=1752142539265";import{cz as p,aq as i,cD as u,bX as n,ay as c,bZ as _,c1 as v}from"./naive.js?v=1752142539265";import{k as m,c as y,P as x,r as b,e as h,a1 as f,X as S,a2 as g,Q as w,an as j,V as D,W as L,j as $}from"./vue.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const U={class:"w-300px"},k=m({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(m,{expose:k}){const P=d(),X=m,{isEdit:q,row:C,onRefresh:M}=X,E=y((()=>q&&C?C.provider_name.includes("CloudFlare"):l.value.includes("CloudFlare"))),{t:T}=x(),F=b(null),R=h({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),z={record:{required:!0,trigger:"change",message:T("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:T("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:T("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},A=()=>{R.record_value=P.address},B=()=>({id:q&&C?C.id:null,pid:s.value,domain:t.value,record:R.record,record_type:R.record_type,record_value:R.record_value,ttl:R.ttl,ps:R.ps,proxy:E.value&&"MX"!==R.record_type?R.proxy:-1,priority:"MX"===R.record_type?R.priority:-1});return(()=>{const{row:e,isEdit:a}=X;a&&e&&(R.record=e.record,R.record_type=e.record_type,R.record_value=e.record_value,R.ttl=e.ttl,R.ps=e.ps,R.proxy=e.proxy,R.priority="MX"===R.record_type?e.priority:-1)})(),k({onConfirm:async()=>{var e;await(null==(e=F.value)?void 0:e.validate()),q&&C?await a(B()):await r(B()),M()}}),(a,r)=>{const l=i,t=p,s=u,d=c,m=n,y=_,x=v,b=e;return S(),f(b,{class:"p-20px",ref_key:"formRef",ref:F,model:L(R),rules:z},{default:g((()=>[w(t,{label:a.$t("SSL.Domain.index_11"),path:"record"},{default:g((()=>[D("div",U,[w(l,{value:L(R).record,"onUpdate:value":r[0]||(r[0]=e=>L(R).record=e),placeholder:a.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(t,{label:a.$t("Ftp.Table.index_3"),path:"record_type"},{default:g((()=>[w(s,{class:"w-300px",value:L(R).record_type,"onUpdate:value":r[1]||(r[1]=e=>L(R).record_type=e),options:L(o),disabled:L(q)},null,8,["value","options","disabled"])])),_:1},8,["label"]),w(t,{label:a.$t("SSL.Domain.index_13"),path:"record_value"},{default:g((()=>[w(m,{class:"flex-nowrap!",size:5},{default:g((()=>[w(l,{class:"w-300px!",value:L(R).record_value,"onUpdate:value":r[2]||(r[2]=e=>L(R).record_value=e),placeholder:a.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),w(d,{onClick:A},{default:g((()=>r[7]||(r[7]=[$(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),w(t,{label:"TTL",path:"ttl"},{default:g((()=>[w(y,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:L(R).ttl,"onUpdate:value":r[3]||(r[3]=e=>L(R).ttl=e),placeholder:a.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===L(R).record_type?(S(),f(t,{key:0,label:"Priority",path:"priority"},{default:g((()=>[w(y,{"show-button":!1,class:"w-300px!",value:L(R).priority,"onUpdate:value":r[4]||(r[4]=e=>L(R).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):j("",!0),w(t,{label:a.$t("Public.Table.Ps"),path:"ps"},{default:g((()=>[w(l,{class:"w-300px!",value:L(R).ps,"onUpdate:value":r[5]||(r[5]=e=>L(R).ps=e),placeholder:a.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),L(E)&&"MX"!==L(R).record_type?(S(),f(t,{key:1,label:a.$t("SSL.Domain.index_16"),path:"proxy"},{default:g((()=>[w(x,{value:L(R).proxy,"onUpdate:value":r[6]||(r[6]=e=>L(R).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):j("",!0)])),_:1},8,["model"])}}});export{k as default};
+import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{V as a,as as r}from"./public.js?v=1753954525509";import{a as l,t as o,h as t,c as s}from"./utils3.js?v=1753954525509";import{u as d}from"./page_layout.js?v=1753954525509";import{aq as p,cA as i,cG as u,ay as n,bY as c,c1 as _,c5 as v}from"./naive.js?v=1753954525509";import{k as m,c as y,P as x,r as b,e as h,U as f,a1 as S,a2 as g,Q as w,W as j,X as L,j as D,al as U}from"./vue.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const $={class:"w-300px"},k=m({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(m,{expose:k}){const P=d(),X=m,{isEdit:q,row:C,onRefresh:M}=X,E=y((()=>q&&C?C.provider_name.includes("CloudFlare"):l.value.includes("CloudFlare"))),{t:T}=x(),F=b(null),R=h({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),A={record:{required:!0,trigger:"change",message:T("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:T("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:T("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{R.record_value=P.address},B=()=>({id:q&&C?C.id:null,pid:t.value,domain:s.value,record:R.record,record_type:R.record_type,record_value:R.record_value,ttl:R.ttl,ps:R.ps,proxy:E.value&&"MX"!==R.record_type?R.proxy:-1,priority:"MX"===R.record_type?R.priority:-1});return(()=>{const{row:e,isEdit:a}=X;a&&e&&(R.record=e.record,R.record_type=e.record_type,R.record_value=e.record_value,R.ttl=e.ttl,R.ps=e.ps,R.proxy=e.proxy,R.priority="MX"===R.record_type?e.priority:-1)})(),k({onConfirm:async()=>{var e;await(null==(e=F.value)?void 0:e.validate()),q&&C?await a(B()):await r(B()),M()}}),(a,r)=>{const l=p,t=i,s=u,d=n,m=c,y=_,x=v,b=e;return f(),S(b,{class:"p-20px",ref_key:"formRef",ref:F,model:L(R),rules:A},{default:g((()=>[w(t,{label:a.$t("SSL.Domain.index_11"),path:"record"},{default:g((()=>[j("div",$,[w(l,{value:L(R).record,"onUpdate:value":r[0]||(r[0]=e=>L(R).record=e),placeholder:a.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(t,{label:a.$t("Ftp.Table.index_3"),path:"record_type"},{default:g((()=>[w(s,{class:"w-300px",value:L(R).record_type,"onUpdate:value":r[1]||(r[1]=e=>L(R).record_type=e),options:L(o),disabled:L(q)},null,8,["value","options","disabled"])])),_:1},8,["label"]),w(t,{label:a.$t("SSL.Domain.index_13"),path:"record_value"},{default:g((()=>[w(m,{class:"flex-nowrap!",size:5},{default:g((()=>[w(l,{class:"w-300px!",value:L(R).record_value,"onUpdate:value":r[2]||(r[2]=e=>L(R).record_value=e),placeholder:a.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),w(d,{onClick:z},{default:g((()=>r[7]||(r[7]=[D(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),w(t,{label:"TTL",path:"ttl"},{default:g((()=>[w(y,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:L(R).ttl,"onUpdate:value":r[3]||(r[3]=e=>L(R).ttl=e),placeholder:a.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===L(R).record_type?(f(),S(t,{key:0,label:"Priority",path:"priority"},{default:g((()=>[w(y,{"show-button":!1,class:"w-300px!",value:L(R).priority,"onUpdate:value":r[4]||(r[4]=e=>L(R).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):U("",!0),w(t,{label:a.$t("Public.Table.Ps"),path:"ps"},{default:g((()=>[w(l,{class:"w-300px!",value:L(R).ps,"onUpdate:value":r[5]||(r[5]=e=>L(R).ps=e),placeholder:a.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),L(E)&&"MX"!==L(R).record_type?(f(),S(t,{key:1,label:a.$t("SSL.Domain.index_16"),path:"proxy"},{default:g((()=>[w(x,{value:L(R).proxy,"onUpdate:value":r[6]||(r[6]=e=>L(R).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):U("",!0)])),_:1},8,["model"])}}});export{k as default};
diff --git a/BTPanel/static/vite/js/domain-input-legacy.js b/BTPanel/static/vite/js/domain-input-legacy.js
index 42366ef2..1a77953f 100644
--- a/BTPanel/static/vite/js/domain-input-legacy.js
+++ b/BTPanel/static/vite/js/domain-input-legacy.js
@@ -1 +1 @@
-System.register(["./page_layout-legacy.js?v=1752142539265","./public-legacy.js?v=1752142539265","./vue-legacy.js?v=1752142539265","./naive-legacy.js?v=1752142539265"],(function(e,a){"use strict";var l,u,d,t,s,n,i,c,o,p,r,v,_,b,f,x,k,m,h,g,y,S,L,$,U,C;return{setters:[e=>{l=e.aF,u=e.o,d=e.g3,t=e.d,s=e.e},e=>{n=e.j},e=>{i=e.k,c=e.ab,o=e.aj,p=e.ac,r=e.a1,v=e.X,_=e.a2,b=e.Q,f=e.an,x=e.U,k=e.V,m=e.j,h=e.a3,g=e.H},e=>{y=e.bX,S=e.aT,L=e.ay,$=e.b$,U=e._,C=e.aq}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-d78a7f3b]{--n-padding: 0 12px}\n/*$vite$:1*/",document.head.appendChild(a);const j={key:1,class:"text-desc"},w=i({__name:"domain-input",props:c({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:c(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:s}){const i=e,c=o(),w=p(e,"value"),B=p(e,"parseList"),q=s,D=async(e,a)=>{if(0===a&&q("update:domain",e),!e?.trim())return void(B.value[a]&&B.value.splice(a,1));const{message:l}=await n({domain:e});t(l)&&w.value[a]&&(B.value[a]={...l,auto:l.support.includes("auto"),ssl_cert:l.support.includes("ssl_cert"),cf_proxy:l.support.includes("cf_proxy")})},M=()=>{c.push("/ssl_domain/domain")};return a({onDomainItemBlur:D}),(e,a)=>{const t=C,s=L,n=S,c=U,o=u,p=$,I=l,X=y,E=d;return v(),r(E,{value:w.value,"onUpdate:value":a[0]||(a[0]=e=>w.value=e)},{default:_((({index:a})=>[b(t,{class:g(i.is_wp?"w-200px!":"w-140px!"),value:w.value[a],"onUpdate:value":e=>w.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>D(w.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:_((({index:l})=>[b(X,{class:"items-center ml-5px"},{default:_((()=>[i.is_wp?f("",!0):(v(),r(n,{key:0},{default:_((()=>[b(s,{onClick:e=>(e=>{w.value.splice(e,1),B.value.splice(e,1),0===e&&q("update:domain",w.value[0]?w.value[0]:"")})(l),disabled:1===w.value.length,round:""},{default:_((()=>a[1]||(a[1]=[k("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),b(s,{onClick:e=>(e=>{w.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:_((()=>a[2]||(a[2]=[k("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),B.value[l]?.support?(v(),x("span",j,[b(I,null,{default:_((()=>[b(p,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:_((()=>[b(c,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[k("div",null,[m(h(e.$t("SSL.index_5"))+" ",1),b(o,{onClick:M},{default:_((()=>[m(h(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),b(p,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:_((()=>[b(c,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[k("div",null,[m(h(e.$t("SSL.index_6"))+" ",1),b(o,{onClick:M},{default:_((()=>[m(h(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(v(),r(c,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):f("",!0)])),_:2},1024)])):f("",!0)])),_:2},1024)])),_:1},8,["value"])}}});e("D",s(w,[["__scopeId","data-v-d78a7f3b"]]))}}}));
+System.register(["./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,u,d,t,s,n,i,c,o,p,r,v,_,b,f,x,k,m,h,g,y,S,L,U,C,$;return{setters:[e=>{l=e.c,u=e.o,d=e.aG,t=e.g5,s=e.e},e=>{n=e.j},e=>{i=e.k,c=e.ab,o=e.aj,p=e.ac,r=e.U,v=e.a1,_=e.a2,b=e.Q,f=e.H,x=e.W,k=e.al,m=e.V,h=e.j,g=e.a3},e=>{y=e.aq,S=e.ay,L=e.aV,U=e._,C=e.c3,$=e.bY}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-4f4b9d13]{--n-padding: 0 12px}\n",document.head.appendChild(a);const j={key:1,class:"text-desc"},w=i({__name:"domain-input",props:c({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:c(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:s}){const i=e,c=o(),w=p(e,"value"),B=p(e,"parseList"),q=s,D=async(e,a)=>{if(0===a&&q("update:domain",e),!e?.trim())return void(B.value[a]&&B.value.splice(a,1));const{message:u}=await n({domain:e});l(u)&&w.value[a]&&(B.value[a]={...u,auto:u.support.includes("auto"),ssl_cert:u.support.includes("ssl_cert"),cf_proxy:u.support.includes("cf_proxy")})},M=()=>{c.push("/ssl_domain/domain")};return a({onDomainItemBlur:D}),(e,a)=>{const l=y,s=S,n=L,c=U,o=u,p=C,I=d,V=$,E=t;return r(),v(E,{value:w.value,"onUpdate:value":a[0]||(a[0]=e=>w.value=e)},{default:_((({index:a})=>[b(l,{class:f(i.is_wp?"w-200px!":"w-140px!"),value:w.value[a],"onUpdate:value":e=>w.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>D(w.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:_((({index:l})=>[b(V,{class:"items-center ml-5px"},{default:_((()=>[i.is_wp?k("",!0):(r(),v(n,{key:0},{default:_((()=>[b(s,{onClick:e=>(e=>{w.value.splice(e,1),B.value.splice(e,1),0===e&&q("update:domain",w.value[0]?w.value[0]:"")})(l),disabled:1===w.value.length,round:""},{default:_((()=>a[1]||(a[1]=[x("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),b(s,{onClick:e=>(e=>{w.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:_((()=>a[2]||(a[2]=[x("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),B.value[l]?.support?(r(),m("span",j,[b(I,null,{default:_((()=>[b(p,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:_((()=>[b(c,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[x("div",null,[h(g(e.$t("SSL.index_5"))+" ",1),b(o,{onClick:M},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),b(p,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:_((()=>[b(c,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[x("div",null,[h(g(e.$t("SSL.index_6"))+" ",1),b(o,{onClick:M},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(r(),v(c,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):k("",!0)])),_:2},1024)])):k("",!0)])),_:2},1024)])),_:1},8,["value"])}}});e("D",s(w,[["__scopeId","data-v-4f4b9d13"]]))}}}));
diff --git a/BTPanel/static/vite/js/domain-input.js b/BTPanel/static/vite/js/domain-input.js
index ea2bfe89..45fed479 100644
--- a/BTPanel/static/vite/js/domain-input.js
+++ b/BTPanel/static/vite/js/domain-input.js
@@ -1 +1 @@
-import{aF as e,o as a,g3 as l,d as s,e as u}from"./page_layout.js?v=1752142539265";import{j as d}from"./public.js?v=1752142539265";import{k as t,ab as i,aj as o,ac as n,a1 as p,X as c,a2 as r,Q as v,an as _,U as f,V as m,j as b,a3 as k,H as x}from"./vue.js?v=1752142539265";import{bX as h,aT as S,ay as g,b$ as y,_ as L,aq as U}from"./naive.js?v=1752142539265";const $={key:1,class:"text-desc"},j=u(t({__name:"domain-input",props:i({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:i(["update:domain"],["update:value","update:parseList"]),setup(u,{expose:t,emit:i}){const j=u,w=o(),C=n(u,"value"),B=n(u,"parseList"),q=i,D=async(e,a)=>{if(0===a&&q("update:domain",e),!(null==e?void 0:e.trim()))return void(B.value[a]&&B.value.splice(a,1));const{message:l}=await d({domain:e});s(l)&&C.value[a]&&(B.value[a]={...l,auto:l.support.includes("auto"),ssl_cert:l.support.includes("ssl_cert"),cf_proxy:l.support.includes("cf_proxy")})},M=()=>{w.push("/ssl_domain/domain")};return t({onDomainItemBlur:D}),(s,u)=>{const d=U,t=g,i=S,o=L,n=a,w=y,I=e,X=h,F=l;return c(),p(F,{value:C.value,"onUpdate:value":u[0]||(u[0]=e=>C.value=e)},{default:r((({index:e})=>[v(d,{class:x(j.is_wp?"w-200px!":"w-140px!"),value:C.value[e],"onUpdate:value":a=>C.value[e]=a,placeholder:s.$t("Mail.Setting.index_20"),onBlur:a=>D(C.value[e],e)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:r((({index:e})=>[v(X,{class:"items-center ml-5px"},{default:r((()=>{var a;return[j.is_wp?_("",!0):(c(),p(i,{key:0},{default:r((()=>[v(t,{onClick:a=>(e=>{C.value.splice(e,1),B.value.splice(e,1),0===e&&q("update:domain",C.value[0]?C.value[0]:"")})(e),disabled:1===C.value.length,round:""},{default:r((()=>u[1]||(u[1]=[m("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),v(t,{onClick:a=>(e=>{C.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(e),round:""},{default:r((()=>u[2]||(u[2]=[m("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),(null==(a=B.value[e])?void 0:a.support)?(c(),f("span",$,[v(I,null,{default:r((()=>[v(w,{trigger:"hover",disabled:B.value[e].support.includes("auto")},{trigger:r((()=>[v(o,{checked:B.value[e].auto,"onUpdate:checked":a=>B.value[e].auto=a,disabled:!B.value[e].support.includes("auto"),label:s.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[m("div",null,[b(k(s.$t("SSL.index_5"))+" ",1),v(n,{onClick:M},{default:r((()=>[b(k(s.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),v(w,{trigger:"hover",disabled:B.value[e].support.includes("ssl_cert")},{trigger:r((()=>[v(o,{checked:B.value[e].ssl_cert,"onUpdate:checked":a=>B.value[e].ssl_cert=a,disabled:!B.value[e].support.includes("ssl_cert"),label:s.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[m("div",null,[b(k(s.$t("SSL.index_6"))+" ",1),v(n,{onClick:M},{default:r((()=>[b(k(s.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[e].support.includes("cf_proxy")?(c(),p(o,{key:0,checked:B.value[e].cf_proxy,"onUpdate:checked":a=>B.value[e].cf_proxy=a,disabled:!B.value[e].support.includes("cf_proxy"),label:s.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):_("",!0)])),_:2},1024)])):_("",!0)]})),_:2},1024)])),_:1},8,["value"])}}}),[["__scopeId","data-v-d78a7f3b"]]);export{j as D};
+import{c as e,o as a,aG as l,g5 as s,e as u}from"./page_layout.js?v=1753954525509";import{j as d}from"./public.js?v=1753954525509";import{k as t,ab as i,aj as o,ac as n,U as c,a1 as p,a2 as r,Q as v,H as _,W as f,al as m,V as b,j as k,a3 as x}from"./vue.js?v=1753954525509";import{aq as h,ay as S,aV as g,_ as y,c3 as L,bY as U}from"./naive.js?v=1753954525509";const $={key:1,class:"text-desc"},j=u(t({__name:"domain-input",props:i({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:i(["update:domain"],["update:value","update:parseList"]),setup(u,{expose:t,emit:i}){const j=u,w=o(),C=n(u,"value"),B=n(u,"parseList"),q=i,D=async(a,l)=>{if(0===l&&q("update:domain",a),!(null==a?void 0:a.trim()))return void(B.value[l]&&B.value.splice(l,1));const{message:s}=await d({domain:a});e(s)&&C.value[l]&&(B.value[l]={...s,auto:s.support.includes("auto"),ssl_cert:s.support.includes("ssl_cert"),cf_proxy:s.support.includes("cf_proxy")})},M=()=>{w.push("/ssl_domain/domain")};return t({onDomainItemBlur:D}),(e,u)=>{const d=h,t=S,i=g,o=y,n=a,w=L,I=l,V=U,G=s;return c(),p(G,{value:C.value,"onUpdate:value":u[0]||(u[0]=e=>C.value=e)},{default:r((({index:a})=>[v(d,{class:_(j.is_wp?"w-200px!":"w-140px!"),value:C.value[a],"onUpdate:value":e=>C.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>D(C.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:r((({index:a})=>[v(V,{class:"items-center ml-5px"},{default:r((()=>{var l;return[j.is_wp?m("",!0):(c(),p(i,{key:0},{default:r((()=>[v(t,{onClick:e=>(e=>{C.value.splice(e,1),B.value.splice(e,1),0===e&&q("update:domain",C.value[0]?C.value[0]:"")})(a),disabled:1===C.value.length,round:""},{default:r((()=>u[1]||(u[1]=[f("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),v(t,{onClick:e=>(e=>{C.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(a),round:""},{default:r((()=>u[2]||(u[2]=[f("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),(null==(l=B.value[a])?void 0:l.support)?(c(),b("span",$,[v(I,null,{default:r((()=>[v(w,{trigger:"hover",disabled:B.value[a].support.includes("auto")},{trigger:r((()=>[v(o,{checked:B.value[a].auto,"onUpdate:checked":e=>B.value[a].auto=e,disabled:!B.value[a].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[f("div",null,[k(x(e.$t("SSL.index_5"))+" ",1),v(n,{onClick:M},{default:r((()=>[k(x(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),v(w,{trigger:"hover",disabled:B.value[a].support.includes("ssl_cert")},{trigger:r((()=>[v(o,{checked:B.value[a].ssl_cert,"onUpdate:checked":e=>B.value[a].ssl_cert=e,disabled:!B.value[a].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[f("div",null,[k(x(e.$t("SSL.index_6"))+" ",1),v(n,{onClick:M},{default:r((()=>[k(x(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[a].support.includes("cf_proxy")?(c(),p(o,{key:0,checked:B.value[a].cf_proxy,"onUpdate:checked":e=>B.value[a].cf_proxy=e,disabled:!B.value[a].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):m("",!0)])),_:2},1024)])):m("",!0)]})),_:2},1024)])),_:1},8,["value"])}}}),[["__scopeId","data-v-4f4b9d13"]]);export{j as D};
diff --git a/BTPanel/static/vite/js/domain-legacy.js b/BTPanel/static/vite/js/domain-legacy.js
new file mode 100644
index 00000000..5f5ee25a
--- /dev/null
+++ b/BTPanel/static/vite/js/domain-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5%2010V15'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M7.5%2011V14'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M15.5%2011V14'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M9%204H4V9'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%204H20V9'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M9%2021H4V16'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%2021H20V16'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/domain-verification-legacy.js b/BTPanel/static/vite/js/domain-verification-legacy.js
new file mode 100644
index 00000000..faf66960
--- /dev/null
+++ b/BTPanel/static/vite/js/domain-verification-legacy.js
@@ -0,0 +1 @@
+System.register(["./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,n,i,o,s,u,r,c,d,_,p,m,f,v,y,h,x,C,b,w,S,k,g,B,$,L,D,V,j,P,A,M,N,U,R,H;return{setters:[e=>{a=e.o,t=e._,n=e.c,i=e.m,o=e.a},e=>{s=e.i,u=e.b,r=e.h,c=e.aA,d=e.f,_=e.a2,p=e.u,m=e._},e=>{f=e._},e=>{v=e.aq,y=e.ay,h=e.cA,x=e.bY,C=e.bT},e=>{b=e.k,w=e.a4,S=e.U,k=e.V,g=e.W,B=e.Q,$=e.a2,L=e.j,D=e.a3,V=e.X,j=e.P,P=e.ad,A=e.e,M=e.r,N=e.c,U=e.n,R=e.a1,H=e._},null,null],execute:function(){const F={class:"text-14px mb-20px!"},q=b({__name:"dns-verification",props:{form:{}},setup:e=>(e,l)=>{const t=a,n=w("i18n-t"),i=v,o=y,u=h,r=x,c=f;return S(),k("div",null,[g("div",F,[B(n,{keypath:"SSL.Business.index_15",scope:"global"},{a:$((()=>[B(t,null,{default:$((()=>[L(D(e.form.domain_name),1)])),_:1})])),b:$((()=>[L(D(e.form.record_type),1)])),_:1})]),B(c,{model:e.form,"label-width":"100px"},{default:$((()=>[B(u,{label:e.$t("Mail.Domain.index_37")},{default:$((()=>[B(i,{class:"w-380px!",value:e.form.host_record,"onUpdate:value":l[0]||(l[0]=l=>e.form.host_record=l),readonly:""},null,8,["value"]),B(o,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=l=>V(s)(e.form.host_record))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),B(u,{label:e.$t("Mail.Domain.index_36")},{default:$((()=>[B(i,{class:"w-380px!",value:e.form.record_type,"onUpdate:value":l[2]||(l[2]=l=>e.form.record_type=l),readonly:""},null,8,["value"])])),_:1},8,["label"]),B(u,{label:e.$t("Mail.Domain.index_38")},{default:$((()=>[B(r,null,{default:$((()=>[B(i,{type:"textarea",class:"w-380px!",value:e.form.record_value,"onUpdate:value":l[3]||(l[3]=l=>e.form.record_value=l),readonly:""},null,8,["value"]),B(o,{type:"primary",onClick:l[4]||(l[4]=l=>V(s)(e.form.record_value))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"])])}}),T={class:"text-14px mb-20px!"},E={class:"text-primary"},G=b({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:l}=j(),a=e,{form:i,paths:o}=P(a),{columns:_}=u([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?B("span",{class:"color-error"},[L("Failed("),e.status,L(")"),B(t,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):B("span",{class:"text-primary"},[L("Success")])},r({width:150,options:e=>[{label:l("Public.Btn.Copy"),onClick:()=>{s(e.url)}},{label:l("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:l}=await c({url:e.url,content:a.form.file_content});n(l)&&(e.status=l.status)}catch(l){e.status=C(l,"message.status",-1)}}}]})]);return(e,l)=>{const a=v,t=y,n=h,u=x,r=f,c=d;return S(),k("div",null,[g("div",T,[l[6]||(l[6]=L(" Please add a verification file to the following domain name [ ")),g("span",E,D(V(i).domain_name),1),l[7]||(l[7]=L(" ], the verification information is as follows: "))]),B(r,{model:V(i),"label-width":"100px"},{default:$((()=>[B(n,{label:"File Location"},{default:$((()=>[B(a,{class:"w-380px!",value:V(i).file_path,"onUpdate:value":l[0]||(l[0]=e=>V(i).file_path=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>V(s)(V(i).file_path))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1}),B(n,{label:e.$t("form.fileName")},{default:$((()=>[B(a,{class:"w-380px!",value:V(i).file_name,"onUpdate:value":l[2]||(l[2]=e=>V(i).file_name=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[3]||(l[3]=e=>V(s)(V(i).file_name))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),B(n,{label:e.$t("SSL.Domain.index_13")},{default:$((()=>[B(u,null,{default:$((()=>[B(a,{type:"textarea",class:"w-380px!",value:V(i).file_content,"onUpdate:value":l[4]||(l[4]=e=>V(i).file_content=e),readonly:""},null,8,["value"]),B(t,{type:"primary",onClick:l[5]||(l[5]=e=>V(s)(V(i).file_content))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),B(c,{columns:V(_),data:V(o)},null,8,["columns","data"])])}}}),I={class:"p-40px",show:!1};e("default",b({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(e,{emit:t}){const{t:s}=j(),u=e,{uc_id:r,verify:c,request:d,paths:f}=P(u),v=t,h=A({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),C=M([]),b=M(""),w=N((()=>"CNAME_CSR_HASH"==b.value)),F=async()=>{const{message:e}=await _({uc_id:r.value});n(e)&&("PENDING"===e.certStatus?i.success(s("SSL.Business.index_23")):(u.onRefresh(),v("close")),h.host_record=e.data.DCVdnsHost,h.record_type=e.data.DCVdnsType,h.record_value=e.data.DCVdnsValue,h.domain_name=e.data.dcvList.map((e=>e.domainName)).join(","),b.value=e.data.dcvList[0].dcvMethod,h.file_name=e.data.DCVfileName,h.file_content=e.data.DCVfileContent,C.value=e.paths)},T=()=>{v("close")};U((()=>{d.value?F():E()}));const E=()=>{h.host_record=c.value.DCVdnsHost,h.record_type=c.value.DCVdnsType,h.record_value=c.value.DCVdnsValue,h.domain_name=c.value.dcvList.map((e=>e.domainName)).join(","),b.value=c.value.dcvList[0].dcvMethod,h.file_name=c.value.DCVfileName,h.file_content=c.value.DCVfileContent,C.value=f?.value||[]},Q=()=>{p({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:r.value,onRefresh:F},footer:!0,component:H((()=>o((()=>l.import("./change-verification-legacy.js?v=1753954525509")),void 0)))})};return(e,l)=>{const t=a,n=m,i=y,o=x;return S(),k("div",I,[V(w)?(S(),R(q,{key:0,form:V(h)},null,8,["form"])):(S(),R(G,{key:1,form:V(h),paths:V(C)},null,8,["form","paths"])),B(n,{class:"my-20px"},{default:$((()=>[l[0]||(l[0]=g("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),g("li",null,D(e.$t("SSL.Business.index_16")),1),g("li",null,D(e.$t("SSL.Business.index_17")),1),g("li",null,D(e.$t("SSL.Business.index_18")),1),g("li",null,D(e.$t("SSL.Business.index_19")),1),g("li",null,[B(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:$((()=>[L(D(e.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[0]}),B(o,null,{default:$((()=>[B(i,{type:"primary",onClick:F},{default:$((()=>[L(D(e.$t("SSL.Business.index_21")),1)])),_:1}),B(i,{onClick:Q},{default:$((()=>l[1]||(l[1]=[L("Modifiy verify")]))),_:1,__:[1]}),B(i,{onClick:T},{default:$((()=>[L(D(e.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}}))}}}));
diff --git a/BTPanel/static/vite/js/domain-verification.js b/BTPanel/static/vite/js/domain-verification.js
new file mode 100644
index 00000000..c6d5238c
--- /dev/null
+++ b/BTPanel/static/vite/js/domain-verification.js
@@ -0,0 +1,2 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/change-verification.js?v=1753954525509","js/public.js?v=1753954525509","js/page_layout.js?v=1753954525509","js/vue.js?v=1753954525509","js/__commonjsHelpers__.js?v=1753954525509","js/naive.js?v=1753954525509","js/common.js?v=1753954525509","css/page_layout.css?v=1753954525509","css/public.css?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang.js?v=1753954525509"])))=>i.map(i=>d[i]);
+import{o as e,_ as a,c as l,m as t,a as s}from"./page_layout.js?v=1753954525509";import{i as n,b as o,h as i,aA as r,f as u,a2 as d,u as c,_}from"./public.js?v=1753954525509";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{aq as m,ay as f,cA as v,bY as y,bT as h}from"./naive.js?v=1753954525509";import{k as x,a4 as C,U as b,V as w,W as k,Q as S,a2 as B,j as L,a3 as $,X as D,P as V,ad as j,e as g,r as P,c as A,n as M,a1 as N,_ as R}from"./vue.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const U={class:"text-14px mb-20px!"},H=x({__name:"dns-verification",props:{form:{}},setup:a=>(a,l)=>{const t=e,s=C("i18n-t"),o=m,i=f,r=v,u=y,d=p;return b(),w("div",null,[k("div",U,[S(s,{keypath:"SSL.Business.index_15",scope:"global"},{a:B((()=>[S(t,null,{default:B((()=>[L($(a.form.domain_name),1)])),_:1})])),b:B((()=>[L($(a.form.record_type),1)])),_:1})]),S(d,{model:a.form,"label-width":"100px"},{default:B((()=>[S(r,{label:a.$t("Mail.Domain.index_37")},{default:B((()=>[S(o,{class:"w-380px!",value:a.form.host_record,"onUpdate:value":l[0]||(l[0]=e=>a.form.host_record=e),readonly:""},null,8,["value"]),S(i,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>D(n)(a.form.host_record))},{default:B((()=>[L($(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),S(r,{label:a.$t("Mail.Domain.index_36")},{default:B((()=>[S(o,{class:"w-380px!",value:a.form.record_type,"onUpdate:value":l[2]||(l[2]=e=>a.form.record_type=e),readonly:""},null,8,["value"])])),_:1},8,["label"]),S(r,{label:a.$t("Mail.Domain.index_38")},{default:B((()=>[S(u,null,{default:B((()=>[S(o,{type:"textarea",class:"w-380px!",value:a.form.record_value,"onUpdate:value":l[3]||(l[3]=e=>a.form.record_value=e),readonly:""},null,8,["value"]),S(i,{type:"primary",onClick:l[4]||(l[4]=e=>D(n)(a.form.record_value))},{default:B((()=>[L($(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"])])}}),F={class:"text-14px mb-20px!"},E={class:"text-primary"},T=x({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:t}=V(),s=e,{form:d,paths:c}=j(s),{columns:_}=o([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?S("span",{class:"color-error"},[L("Failed("),e.status,L(")"),S(a,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):S("span",{class:"text-primary"},[L("Success")])},i({width:150,options:e=>[{label:t("Public.Btn.Copy"),onClick:()=>{n(e.url)}},{label:t("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:a}=await r({url:e.url,content:s.form.file_content});l(a)&&(e.status=a.status)}catch(a){e.status=h(a,"message.status",-1)}}}]})]);return(e,a)=>{const l=m,t=f,s=v,o=y,i=p,r=u;return b(),w("div",null,[k("div",F,[a[6]||(a[6]=L(" Please add a verification file to the following domain name [ ")),k("span",E,$(D(d).domain_name),1),a[7]||(a[7]=L(" ], the verification information is as follows: "))]),S(i,{model:D(d),"label-width":"100px"},{default:B((()=>[S(s,{label:"File Location"},{default:B((()=>[S(l,{class:"w-380px!",value:D(d).file_path,"onUpdate:value":a[0]||(a[0]=e=>D(d).file_path=e),readonly:""},null,8,["value"]),S(t,{class:"ml-10px!",type:"primary",onClick:a[1]||(a[1]=e=>D(n)(D(d).file_path))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1}),S(s,{label:e.$t("form.fileName")},{default:B((()=>[S(l,{class:"w-380px!",value:D(d).file_name,"onUpdate:value":a[2]||(a[2]=e=>D(d).file_name=e),readonly:""},null,8,["value"]),S(t,{class:"ml-10px!",type:"primary",onClick:a[3]||(a[3]=e=>D(n)(D(d).file_name))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),S(s,{label:e.$t("SSL.Domain.index_13")},{default:B((()=>[S(o,null,{default:B((()=>[S(l,{type:"textarea",class:"w-380px!",value:D(d).file_content,"onUpdate:value":a[4]||(a[4]=e=>D(d).file_content=e),readonly:""},null,8,["value"]),S(t,{type:"primary",onClick:a[5]||(a[5]=e=>D(n)(D(d).file_content))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),S(r,{columns:D(_),data:D(c)},null,8,["columns","data"])])}}}),q={class:"p-40px",show:!1},I=x({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(a,{emit:n}){const{t:o}=V(),i=a,{uc_id:r,verify:u,request:p,paths:m}=j(i),v=n,h=g({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),x=P([]),C=P(""),U=A((()=>"CNAME_CSR_HASH"==C.value)),F=async()=>{const{message:e}=await d({uc_id:r.value});l(e)&&("PENDING"===e.certStatus?t.success(o("SSL.Business.index_23")):(i.onRefresh(),v("close")),h.host_record=e.data.DCVdnsHost,h.record_type=e.data.DCVdnsType,h.record_value=e.data.DCVdnsValue,h.domain_name=e.data.dcvList.map((e=>e.domainName)).join(","),C.value=e.data.dcvList[0].dcvMethod,h.file_name=e.data.DCVfileName,h.file_content=e.data.DCVfileContent,x.value=e.paths)},E=()=>{v("close")};M((()=>{p.value?F():I()}));const I=()=>{h.host_record=u.value.DCVdnsHost,h.record_type=u.value.DCVdnsType,h.record_value=u.value.DCVdnsValue,h.domain_name=u.value.dcvList.map((e=>e.domainName)).join(","),C.value=u.value.dcvList[0].dcvMethod,h.file_name=u.value.DCVfileName,h.file_content=u.value.DCVfileContent,x.value=(null==m?void 0:m.value)||[]},G=()=>{c({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:r.value,onRefresh:F},footer:!0,component:R((()=>s((()=>import("./change-verification.js?v=1753954525509")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))))})};return(a,l)=>{const t=e,s=_,n=f,o=y;return b(),w("div",q,[D(U)?(b(),N(H,{key:0,form:D(h)},null,8,["form"])):(b(),N(T,{key:1,form:D(h),paths:D(x)},null,8,["form","paths"])),S(s,{class:"my-20px"},{default:B((()=>[l[0]||(l[0]=k("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),k("li",null,$(a.$t("SSL.Business.index_16")),1),k("li",null,$(a.$t("SSL.Business.index_17")),1),k("li",null,$(a.$t("SSL.Business.index_18")),1),k("li",null,$(a.$t("SSL.Business.index_19")),1),k("li",null,[S(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:B((()=>[L($(a.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[0]}),S(o,null,{default:B((()=>[S(n,{type:"primary",onClick:F},{default:B((()=>[L($(a.$t("SSL.Business.index_21")),1)])),_:1}),S(n,{onClick:G},{default:B((()=>l[1]||(l[1]=[L("Modifiy verify")]))),_:1,__:[1]}),S(n,{onClick:E},{default:B((()=>[L($(a.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}});export{I as default};
diff --git a/BTPanel/static/vite/js/domain.js b/BTPanel/static/vite/js/domain.js
new file mode 100644
index 00000000..33dc2100
--- /dev/null
+++ b/BTPanel/static/vite/js/domain.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5%2010V15'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M7.5%2011V14'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M15.5%2011V14'%20stroke='%233BAF52'%20stroke-width='1.5'/%3e%3cpath%20d='M9%204H4V9'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%204H20V9'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M9%2021H4V16'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%2021H20V16'%20stroke='%233A424D'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/domain_active-legacy.js b/BTPanel/static/vite/js/domain_active-legacy.js
new file mode 100644
index 00000000..8f75024e
--- /dev/null
+++ b/BTPanel/static/vite/js/domain_active-legacy.js
@@ -0,0 +1 @@
+System.register([],(function(e,t){"use strict";return{execute:function(){e("default","data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5%2010V15'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M7.5%2011V14'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M15.5%2011V14'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M9%204H4V9'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%204H20V9'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M9%2021H4V16'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%2021H20V16'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/svg%3e")}}}));
diff --git a/BTPanel/static/vite/js/domain_active.js b/BTPanel/static/vite/js/domain_active.js
new file mode 100644
index 00000000..ca58c787
--- /dev/null
+++ b/BTPanel/static/vite/js/domain_active.js
@@ -0,0 +1 @@
+const e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5%2010V15'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M7.5%2011V14'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M15.5%2011V14'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M9%204H4V9'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%204H20V9'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M9%2021H4V16'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15%2021H20V16'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3c/svg%3e";export{e as default};
diff --git a/BTPanel/static/vite/js/echarts-legacy.js b/BTPanel/static/vite/js/echarts-legacy.js
index 9e2a91f8..8be2d2b6 100644
--- a/BTPanel/static/vite/js/echarts-legacy.js
+++ b/BTPanel/static/vite/js/echarts-legacy.js
@@ -1,4 +1,4 @@
-System.register(["./__commonjsHelpers__-legacy.js?v=1752142539265"],(function(t,e){"use strict";var n;return{setters:[t=>{n=t.c}],execute:function(){t({B:Xy,D:Wy,E:bx,F:ei,H:nb,I:nC,J:function(t,e){if("world"===t){var n=rW[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}},K:B,N:go,Q:Id,T:oe,U:xd,V:K,W:Td,X:Cd,Y:Ey,a:O,a0:gs,a1:jv,a2:io,a3:B_,a4:_e,a5:Ce,a6:Wt,a8:lA,a9:eo,aa:L,ab:yt,ac:My,ae:yB,af:ZV,ag:rE,ah:JG,ai:yz,aj:aH,ak:iH,al:kG,am:VF,an:HC,ao:ow,ap:iW,aq:MS,ar:function(){return Lnt||(Lnt=1,function(t){var e=a$();!function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}}();var n=o$();!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}(),Tq(),function(){if(AJ)return f$;AJ=1;var t=a$();(function(){if(l$)return s$;l$=1,hW().__DEV__;var t=uK(),e=Qj(),n=e.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});s$=n})(),function(){if(L$)return D$;L$=1,hW().__DEV__;var t=_W(),e=XY().fromPoints,n=y$(),i=m$(),r=M$(),o=EX(),a=CY(),s=C$(),l=s.Polyline,u=s.Polygon,h=nq(),c=S$(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,f=V$(),g=f.createGridClipPath,v=f.createPolarClipPath;function m(t,e){if(t.length===e.length){for(var n=0;n=0;s--){var l=i[s].dimension,u=e.dimensions[l],h=e.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=i[s];break}}if(a){var c=n.getAxis(r),d=t.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";t.each(d,(function(t){t.offset=(t.coord-v)/y})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var x=new o.LinearGradient(0,0,0,0,d,!0);return x[r]=v,x[r+"2"]=m,x}}}function S(e,n,i){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!M(a,n))){var s=n.mapDimension(a.dim),l={};return t.each(a.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(n.get(s,t))}}}}function M(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function I(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=g(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return v(t,e,n)}var T=h.extend({type:"line",init:function(){var t=new o.Group,e=new n;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=e.get("animation"),M=!l.isEmpty(),T=l.get("origin"),C=_(r,a,d(r,a,T)),A=e.get("showSymbol"),D=A&&!h&&S(e,a,r),L=this._data;L&&L.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),L.setItemGraphicEl(e,null))})),A||p.remove(),o.add(v);var k,P=!h&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,f&&c.type===r.type&&P===this._step?(M&&!g?g=this._newPolygon(u,C,r,y):g&&!M&&(v.remove(g),g=this._polygon=null),v.setClipPath(I(r,!1,e)),A&&p.updateData(a,{isIgnore:D,clipShape:k}),a.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),m(this._stackedOnPoints,C)&&m(this._points,u)||(y?this._updateAnimation(a,C,r,i,P,T):(P&&(u=b(u,r,P),C=b(C,r,P)),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:C})))):(A&&p.updateData(a,{isIgnore:D,clipShape:k}),P&&(u=b(u,r,P),C=b(C,r,P)),f=this._newPolyline(u,r,y),M&&(g=this._newPolygon(u,C,r,y)),v.setClipPath(I(r,!0,e)));var O=w(a,r)||a.getVisual("color");f.useStyle(t.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=e.get("smooth");if(R=x(e.get("smooth")),f.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),g){var N=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(t.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(E=x(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:E,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=C,this._points=u,this._step=P,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var o=t.getData(),s=a.queryDataIndex(o,r);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var u=o.getItemLayout(s);if(!u)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u[0],u[1]))return;(l=new i(o,s)).position=u,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(u[0])||isNaN(u[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else h.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new l({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,a,s){var l=this._polyline,u=this._polygon,h=t.hostModel,c=r(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,s),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(a&&(d=b(c.current,n,a),p=b(c.stackedOnCurrent,n,a),f=b(c.next,n,a),g=b(c.stackedOnNext,n,a)),y(d,f)>3e3||u&&y(p,g)>3e3)return l.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));l.shape.__points=c.current,l.shape.points=d,o.updateProps(l,{shape:{points:f}},h),u&&(u.setShape({points:d,stackedOnPoints:p}),o.updateProps(u,{shape:{points:f,stackedOnPoints:g}},h));for(var v=[],m=c.status,x=0;xt&&(t=e),t},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}}});NJ=e}(),function(){if(YJ)return UJ;YJ=1,hW().__DEV__;var t=a$(),e=_W(),n=EX(),i=jJ().setLabel,r=zX(),o=qJ(),a=kZ(),s=kU(),l=xq().throttle,u=V$().createClipPath,h=function(){if(WJ)return HJ;WJ=1;var t=EX().extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return HJ=e}(),c=["itemStyle","barBorderWidth"],d=[0,0];function p(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}e.extend(r.prototype,o);var f=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,a=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?r=h.isHorizontal():"polar"===u.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),f=p(u,a);o.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),M=w.get("barBorderRadius")||0,I=[],T=this._backgroundEls||[],C=function(t){var e=b[u.type](a,t),n=P(u,r,e);return n.useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&n.setShape("r",M),I[t]=n,n};a.diff(l).add((function(e){var n=a.getItemModel(e),i=b[u.type](a,e,n);if(v&&C(e),a.hasValue(e)){if(d&&m[u.type](f,i))return void o.remove(s);var s=y[u.type](e,i,r,c,!1,g);a.setItemGraphicEl(e,s),o.add(s),S(s,a,e,n,i,t,r,"polar"===u.type)}})).update((function(e,i){var s=a.getItemModel(e),h=b[u.type](a,e,s);if(v){var p;0===T.length?p=C(i):((p=T[i]).useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&p.setShape("r",M),I[e]=p);var x=b[u.type](a,e),_=k(r,x,u);n.updateProps(p,{shape:_},c,e)}var A=l.getItemGraphicEl(i);if(a.hasValue(e)){if(d&&m[u.type](f,h))return void o.remove(A);A?n.updateProps(A,{shape:h},c,e):A=y[u.type](e,h,r,c,!0,g),a.setItemGraphicEl(e,A),o.add(A),S(A,a,e,s,h,t,r,"polar"===u.type)}else o.remove(A)})).remove((function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&x(t,c,e):e&&_(t,c,e)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new s);A.removeAll();for(var D=0;D0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function w(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function S(t,r,o,a,s,l,u,h){var c=r.getItemVisual(o,"color"),d=r.getItemVisual(o,"opacity"),p=r.getVisual("borderColor"),f=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:w(s)?"none":p,fill:w(s)?"none":c,opacity:d},f.getBarItemStyle()));var v=a.getShallow("cursor");v&&t.attr("cursor",v);var m=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||i(t.style,g,a,c,l,o,m),w(s)&&(g.fill=g.stroke="none"),n.setHoverStyle(t,g)}function M(t,e){var n=t.get(c)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var I=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function A(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];d[0]=e,d[1]=n;for(var u=d[i],h=d[1-i],c=u-s,p=u+s,f=0,g=o.length/2;f=c&&m<=p&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return a[f]}return-1}function D(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function L(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function k(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function P(t,e,i){return new("polar"===t.type?n.Sector:n.Rect)({shape:k(e,i,t),silent:!0,z2:0})}UJ=f}(),PJ(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})}(),function(){if(vQ)return mQ;vQ=1;var t=a$(),e=_W();(function(){if(iQ)return nQ;iQ=1;var t=a$(),e=yQ(),n=_W(),i=CY(),r=UX().getPercentWithPrecision,o=xQ(),a=Gj().retrieveRawAttr,s=Dj().makeSeriesEncodeForNameBased,l=_Q(),u=t.extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(s,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i0&&(c?"scale"!==d:"transition"!==p)){for(var v=s.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=n.r0}}}),l=s;rQ=l}();var n=bQ(),i=wQ(),r=MQ(),o=IQ();n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),t.registerVisual(i("pie")),t.registerLayout(e.curry(r,"pie")),t.registerProcessor(o("pie"))}(),function(){if(kQ)return KQ;kQ=1;var t=a$();(function(){if(CQ)return TQ;CQ=1;var t=uK(),e=Qj(),n=e.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});TQ=n})(),function(){if(LQ)return $Q;LQ=1;var t=a$(),e=y$(),n=function(){if(DQ)return AQ;DQ=1;var t=EX(),e=FK().createSymbol,n=NX(),i=4,r=t.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,r=e.size,o=this.symbolProxy,a=o.shape;if(!((t.getContext?t.getContext():t)&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t,e){this.group.removeAll();var n=new r({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},a.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new n({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new r,this._incremental.addDisplayable(i,!0)):((i=new r({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},a._setCommon=function(t,n,r,o){var a=n.hostModel;o=o||{};var s=n.getVisual("symbolSize");t.setShape("size",s instanceof Array?s:[s,s]),t.softClipShape=o.clipShape||null,t.symbolProxy=e(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))})))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return AQ=s}(),i=G$();t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new n:new e,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})}();var e=B$(),n=G$();PJ(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter"))}(),function(){if(qQ)return JQ;qQ=1;var t=a$();GQ||(GQ=1,function(){if(NQ)return RQ;NQ=1;var t=_W(),e=function(){if(OQ)return PQ;OQ=1;var t=_W(),e=r$();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}t.inherits(n,e);var i=n;return PQ=i}(),n=MK(),i=UX(),r=EK(),o=r.getScaleExtent,a=r.niceScaleExtent,s=Pj(),l=NK();function u(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),(function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o}),this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},u.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},u.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(f)&&isFinite(n[0]));else{s.getTicks().length-1>l&&(d=u(d));var p=Math.ceil(n[1]/d)*d,f=i.round(p-d*l);s.setExtent(f,p),s.setInterval(d)}}))},u.dimensions=[],u.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new u(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},s.register("radar",u);var h=u;RQ=h}(),function(){if(zQ)return EQ;zQ=1;var t=a$(),e=_W(),n=aJ(),i=zX(),r=zK(),o=n.valueAxis;function a(t,n){return e.defaults({show:n},t)}var s=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=e.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=h;if(null!=g.color&&(v=e.defaults({color:g.color},h)),g=e.merge(e.clone(g),{boundaryGap:t,splitNumber:n,scale:o,axisLine:a,axisTick:s,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:v,triggerEvent:f},!1),c||(g.name=""),"string"==typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=e.extend(new i(g,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:a(o.axisLabel,!1),axisTick:a(o.axisTick,!1),axisType:"interval",splitLine:a(o.splitLine,!0),splitArea:a(o.splitArea,!0),indicator:[]}}),l=s;EQ=l}(),function(){if(BQ)return VQ;BQ=1,hW().__DEV__;var t=a$(),e=_W(),n=fJ(),i=EX(),r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),a=e.map(o,(function(t){return new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));e.each(a,(function(t){e.each(r,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color");d=e.isArray(d)?d:[d],p=e.isArray(p)?p:[p];var f=[],g=[];if("circle"===o)for(var v=r[0].getTicksCoords(),m=n.cx,y=n.cy,x=0;x":"\n";return i(""===l?this.name:l)+u+n.map(s,(function(e,n){var r=a.get(a.mapDimension(e.dim),t);return i(e.name+" : "+r)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),o=0,a=r.length;o":"\n";return h.join(", ")+f+r(l+" : "+s)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(h,a);var c=h;f0=c})(),function(){if(O0)return P0;O0=1;var t=a$(),e=_W(),n=EX(),i=E0(),r="__seriesMapHighDown",o="__seriesMapCallKey",a=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new i(n,!0);o.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,a){var u=t.originalData,h=this.group;u.each(u.mapDimension("value"),(function(i,a){if(!isNaN(i)){var c=u.getItemLayout(a);if(c&&c.point){var d=c.point,p=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),v=u.getName(a),m=g.indexOfName(v),y=u.getItemModel(a),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=e.retrieve2(t.getFormattedLabel(m,"normal"),v),S=e.retrieve2(t.getFormattedLabel(m,"emphasis"),w),M=b[r],I=Math.random();if(!M){M=b[r]={};var T=e.curry(s,!0),C=e.curry(s,!1);b.on("mouseover",T).on("mouseout",C).on("emphasis",T).on("normal",C)}b[o]=I,e.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),l(M,!1)}h.add(f)}}}))}});function s(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}P0=a}(),i1(),o1();var e=a1(),n=s1(),i=l1(),r=u1(),o=bQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i),t.registerPreprocessor(r),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}(),function(){if(A1)return v1;A1=1;var t=a$();(function(){if(g1)return f1;g1=1;var t=Qj(),e=y1(),n=nj().encodeHTML,i=zX(),r=t.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var n={name:t.name,children:t.data},r=t.leaves||{},o=new i(r,this,this.ecModel),a=e.createTree(n,this,s);function s(t){t.wrapMethod("getItemModel",(function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=o),t}))}var l=0;a.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var u=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return n(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});f1=r})(),function(){if(b1)return _1;b1=1;var t=_W(),e=EX(),n=m$(),i=S1().radialCoordinate,r=a$(),o=XY(),a=r1(),s=A0(),l=I0(),u=N0().onIrrelevantElement;hW().__DEV__;var h=UX().parsePercent,c=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=h(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var p=1;pS.x)||(_-=Math.PI);var T=b?"left":"right",C=s.labelModel.get("rotate"),A=C*(Math.PI/180);x.setStyle({textPosition:s.labelModel.get("position")||T,textRotation:null==C?-_:A,textOrigin:"center",verticalAlign:"middle"})}v(a,u,c,r,m,g,y,o,s)}function v(n,i,r,o,a,s,l,u,h){var d=h.edgeShape,p=o.__edge;if("curve"===d)i.parentNode&&i.parentNode!==r&&(p||(p=o.__edge=new e.BezierCurve({shape:y(h,a,a),style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:y(h,s,l),style:t.defaults({opacity:1},h.lineStyle)},n));else if("polyline"===d&&"orthogonal"===h.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var f=i.children,g=[],v=0;v=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b=null);var w=new t.Polygon({shape:{points:l(c,0,_,p,m===v.length-1,0===m)},style:n.defaults(a.getItemStyle(),{lineJoin:"bevel",text:b,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:n.curry(h,x)});this.group.add(w),u(w,i,x),c+=_+o}},remove:function(){this.group.removeAll()}};var h=s;return N1=h}(),a=I0(),s=LU(),l=KW(),u=function(){if(G1)return $1;G1=1;var t=_W();function e(){var e,n=[],i={};return{add:function(e,r,o,a,s){return t.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;rv||Math.abs(t.dy)>v)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new s(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var u=l.create();l.translate(u,u,[-e,-n]),l.scale(u,u,[t.scale,t.scale]),l.translate(u,u,[e,n]),o.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&c(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function C(){return{nodeGroup:[],background:[],content:[]}}function A(t,i,r,o,a,s,l,u,h,c){if(l){var d=l.getLayout(),g=t.getData();if(g.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var v=d.width,b=d.height,T=d.borderWidth,C=d.invisible,A=l.getRawIndex(),L=u&&u.getRawIndex(),k=l.viewChildren,P=d.upperHeight,O=k&&k.length,R=l.getModel("itemStyle"),N=l.getModel("emphasis.itemStyle"),E=Y("nodeGroup",p);if(E){if(h.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=v,E.__tmNodeHeight=b,d.isAboveViewRoot)return E;var z=l.getModel(),V=Y("background",f,c,w);if(V&&G(E,V,O&&d.upperLabelHeight),O)n.isHighDownDispatcher(E)&&n.setAsHighDownDispatcher(E,!1),V&&(n.setAsHighDownDispatcher(V,!0),g.setItemGraphicEl(l.dataIndex,V));else{var B=Y("content",f,c,S);B&&F(E,B),V&&n.isHighDownDispatcher(V)&&n.setAsHighDownDispatcher(V,!1),n.setAsHighDownDispatcher(E,!0),g.setItemGraphicEl(l.dataIndex,E)}return E}}}function G(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:v,height:b}),C)H(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=N.get("borderColor"),s=I(R);s.fill=o;var u=M(N);if(u.fill=a,r){var h=v-2*T;W(s,u,o,h,P,{x:T,y:0,width:h,height:P})}else s.text=u.text=null;i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function F(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(v-2*T,0),o=Math.max(b-2*T,0);if(i.culling=!0,i.setShape({x:T,y:T,width:r,height:o}),C)H(i);else{i.invisible=!1;var a=l.getVisual("color",!0),s=I(R);s.fill=a;var u=M(N);W(s,u,a,r,o),i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function H(t){!t.invisible&&s.push(t)}function W(i,r,o,a,s,u){var h=z.get("name"),c=z.getModel(u?x:m),p=z.getModel(u?_:y),f=c.getShallow("show");n.setLabelStyle(i,r,c,p,{defaultText:f?h:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),U(i,u,d),U(r,u,d),u&&(i.textRect=e.clone(u)),i.truncate=f&&c.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function U(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function Y(t,e,n,o){var s=null!=L&&r[t][L],l=a[t];return s?(r[t][L]=null,Z(l,s,t)):C||((s=new e({z:D(n,o)})).__tmDepth=n,s.__tmStorageName=t,X(l,s,t)),i[t][A]=s}function Z(t,n,i){(t[A]={}).old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}function X(t,e,n){var i=t[A]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}}function D(t,e){var n=t*b+e;return(n-1)/n}F1=T}(),function(){if(W1)return J1;W1=1;for(var t=a$(),e=B1(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r ")),r.value&&(u+=" : "+o(r.value)),u}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],(function(t){return null!=t.value?t:n.extend({value:0},t)})),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray((function(t){return i.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}});u2=c})(),function(){if(T2)return I2;T2=1;var t=a$(),e=_W(),n=y$(),i=b2(),r=I0(),o=A0(),a=N0().onIrrelevantElement,s=EX(),l=D2(),u=A2().getNodeGlobalScale,h="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function f(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function g(t,e,n){var i=t.getGraphicEl(),r=f(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function v(t,e){var n=f(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var m=t.extendChartView({type:"graph",init:function(t,e){var o=new n,a=new i,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(o.group),s.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,d=this.group;if("view"===r.type){var p={position:r.position,scale:r.scale};this._firstRender?d.attr(p):s.updateProps(d,p,t)}l(t.getGraph(),u(t));var f=t.getData();o.updateData(f);var g=t.getEdgeData();a.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),f.eachItemGraphicEl((function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",(function(){v&&(v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(r),f.setItemLayout(r,e.position))}),this).on("dragend",(function(){v&&v.setUnfixed(r)}),this),e.setDraggable(a&&v),e[h]&&e.off("mouseover",e[h]),e[c]&&e.off("mouseout",e[c]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[c]=function(){i._dispatchUnfocus(n)}))}),this),f.graph.eachEdge((function(e){var r=e.getGraphicEl();r[h]&&r.off("mouseover",r[h]),r[c]&&r.off("mouseout",r[c]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[c]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=f.getItemLayout(e),o=Math.atan2(r[1]-_,r[0]-x);o<0&&(o=2*Math.PI+o);var a=r[0]=t&&(0===e?0:r[e-1][0]).4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){k=Math.cos(I),P=Math.sin(I);var V=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-M)+p,y2:P*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:a((L+z/w)/b)}),d.add(V),I+=C}I-=C}else I+=T}},_renderPointer:function(n,i,o,s,l,u,h,c){var d=this.group,p=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],g=[u,h],v=n.getData(),m=v.mapDimension("value");v.diff(p).add((function(i){var r=new t({shape:{angle:u}});e.initProps(r,{shape:{angle:a(v.get(m,i),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(i,r)})).update((function(t,i){var r=p.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:a(v.get(m,t),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(t,r)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),v.eachItemGraphicEl((function(t,n){var i=v.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",s(a(v.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,n,i,o,s){var l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");if(h.get("show")){var c=h.get("offsetCenter"),d=s.cx+r(c[0],s.r),p=s.cy+r(c[1],s.r),f=+t.get("min"),g=+t.get("max"),v=t.getData().get(u,0),m=o(a(v,[f,g],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:p,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,s){var u=t.getModel("detail"),h=+t.get("min"),c=+t.get("max");if(u.get("show")){var d=u.get("offsetCenter"),p=s.cx+r(d[0],s.r),f=s.cy+r(d[1],s.r),g=r(u.get("width"),s.r),v=r(u.get("height"),s.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=o(a(y,[h,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:p,y:f,text:l(y,u.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),c=h;h5=c}()),function(){if(w5)return S5;w5=1;var t=a$();(function(){if(m5)return v5;m5=1;var t=a$(),e=_W(),n=yQ(),i=CY().defaultEmphasis,r=Dj().makeSeriesEncodeForNameBased,o=_Q(),a=t.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(r,this)})},_defaultLabelLine:function(t){i(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});v5=a})(),function(){if(x5)return y5;x5=1;var t=EX(),e=_W(),n=nq();function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var a=this.childAt(0),s=n.hostModel,l=n.getItemModel(i),u=n.getItemLayout(i),h=n.getItemModel(i).get(o);h=null==h?1:h,a.useStyle({}),r?(a.setShape({points:u.points}),a.setStyle({opacity:0}),t.initProps(a,{style:{opacity:h}},s,i)):t.updateProps(a,{style:{opacity:h},shape:{points:u.points}},s,i);var c=l.getModel("itemStyle"),d=n.getItemVisual(i,"color");a.setStyle(e.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(n),s=e.getItemLayout(n).label,l=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},o,n),t.updateProps(r,{style:{x:s.x,y:s.y}},o,n),r.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=e.getItemVisual(n,"color"),t.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var a=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add((function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)})).remove((function(t){var e=o.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=a;y5=s}();var e=wQ(),n=M5(),i=IQ();t.registerVisual(e("funnel")),t.registerLayout(n),t.registerProcessor(i("funnel"))}(),function(){if(u3)return C5;u3=1;var t=a$();f3(),function(){if(r3)return i3;r3=1;var t=_W(),e=t.each,n=t.createHashMap,i=Qj(),r=uK(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return a(n,this),r(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function a(t,i){if(!t.encodeDefine){var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(r){var o=t.encodeDefine=n();e(r.dimensions,(function(t){var e=s(t);o.set(t,e)}))}}}function s(t){return+t.replace("dim","")}i3=o}(),function(){if(a3)return o3;a3=1;var t=EX(),e=nq(),n=.3,i=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,i,u){var h=this._dataGroup,c=e.getData(),d=this._data,p=e.coordinateSystem,f=p.dimensions,g=s(e);function v(t){l(a(c,h,t,f,p),c,t,g)}function m(n,i){var r=d.getItemGraphicEl(i),a=o(c,n,f,p);c.setItemGraphicEl(n,r);var s=u&&!1===u.animation?null:e;t.updateProps(r,{shape:{points:a}},s,n),l(r,c,n,g)}function y(t){var e=d.getItemGraphicEl(t);h.remove(e)}if(c.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=r(p,e,(function(){setTimeout((function(){h.removeClipPath()}))}));h.setClipPath(x)}this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,u=s(e),h=t.start;h=0&&(s[a[l].depth]=new i(a[l],this,n));if(o&&r)return e(o,r,this,!0,u).data;function u(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var o=this.getDataParams(t,i),a=o.data,s=a.source+" -- "+a.target;return o.value&&(s+=" : "+o.value),n(s)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;return l&&(s=u+" : "+l),n(s)}return r.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=r.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}});v3=r})(),function(){if(x3)return y3;x3=1;var t=EX(),e=a$(),n=_W(),i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],a=["emphasis","lineStyle","opacity"];function s(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=s(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function u(t,e){var n=s(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var h=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),p=e.getData("edge"),f=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(n){var i=new h;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,s,c,d,g,v,m,y=n.getModel("lineStyle"),x=y.get("curveness"),_=n.node1.getLayout(),b=n.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=n.node2.getLayout(),I=n.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=n.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=f,"vertical"===f?(r=(null!=w?w*l:_.x)+A.sy,o=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+A.ty,d=r,g=o*(1-x)+(c=null!=C?C*u:M.y)*x,v=s,m=o*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,o=(null!=S?S*u:_.y)+A.sy,d=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=o,v=r*x+s*(1-x),m=c=(null!=C?C*u:M.y)+A.ty),i.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:d,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color")}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),p.setItemGraphicEl(n.dataIndex,i)})),o.eachNode((function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),p.setStyle("fill",n.getVisual("color")),t.setHoverStyle(p,f),a.add(p),c.setItemGraphicEl(n.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),p.eachItemGraphicEl((function(t,n){var o=p.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&a.setClipPath(d(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,s,h){var c=t.getData(),d=c.graph,p=h.dataIndex,f=c.getItemModel(p),g=h.edgeDataIndex;if(null!=p||null!=g){var v=d.getNodeByIndex(p),m=d.getEdgeByIndex(g);if(d.eachNode((function(t){l(t,i,.1)})),d.eachEdge((function(t){l(t,o,.1)})),v){u(v,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(v.outEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node2,r))})):"inEdges"===y?n.each(v.inEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node1,r))})):"allEdges"===y&&n.each(v.edges,(function(t){t.dataIndex<0||(u(t,a),t.node1!==v&&u(t.node1,r),t.node2!==v&&u(t.node2,r))}))}m&&(u(m,a),u(m.node1,r),u(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var a=t.getGraph();a.eachNode((function(t){l(t,i)})),a.eachEdge((function(t){l(t,o)}))}});function d(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}y3=c}(),function(){if(_3)return C3;_3=1;var t=a$();G2(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}();var e=A3(),n=D3();t.registerLayout(e),t.registerVisual(n)}(),function(){if(B3)return G3;B3=1;var t=a$();(function(){if(P3)return k3;P3=1;var t=_W(),e=Qj(),n=H3().seriesModelMixin,i=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(i,n,!0),k3=i})(),function(){if(R3)return O3;R3=1;var t=_W(),e=nq(),n=EX(),i=kZ(),r=["itemStyle"],o=["emphasis","itemStyle"],a=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=l(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?u(s,n,i,t):n=l(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:t.noop}),s=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),l=n.getModel(o).getItemStyle(s);e.useStyle(l),e.style.fill=null,e.style.stroke=a}var m=l;X3=m}();var e=function(){if(K3)return q3;K3=1;var t=_W();function e(e){e&&t.isArray(e.series)&&t.each(e.series,(function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}return q3=e}(),n=i4(),i=r4();t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i)}(),function(){if(c4)return E4;c4=1;var t=a$();(function(){if(a4)return o4;a4=1;var t=uK(),e=Qj(),n=e.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});o4=n})(),function(){if(h4)return u4;h4=1;var t=a$(),e=y$(),n=function(){if(l4)return s4;l4=1;var t=_W(),e=FK().createSymbol,n=EX().Group,i=UX().parsePercent,r=m$(),o=3;function a(e){return t.isArray(e)||(e=[+e,+e]),e}function s(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function l(t,e){n.call(this);var i=new r(t,e),o=new n;this.add(i),this.add(o),o.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var u=l.prototype;u.stopEffectAnimation=function(){this.childAt(1).removeAll()},u.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,r=this.childAt(1),a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});d4=h})(),function(){if(I4)return M4;I4=1,hW().__DEV__;var t=a$(),e=b2(),n=V4(),i=_2(),r=B4(),o=function(){if(x4)return y4;x4=1;var t=B4(),e=_W(),n=V4(),i=CW();function r(t,e,i){n.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var o=r.prototype;o.createLine=function(e,n,i){return new t(e,n,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,o=1;o=0&&!(r[s]<=e);s--);s=Math.min(s,o-2)}else{for(var s=a;se);s++);s=Math.min(s-1,o-2)}i.lerp(t.position,n[s],n[s+1],(e-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n);var a=r;return y4=a}(),a=function(){if(b4)return _4;b4=1;var t=EX(),e=NX(),n=JY(),i=rZ(),r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,a=r.curveness;if(r.polyline)for(var s=0,l=0;l0)for(var h=o[l++],c=o[l++],d=1;d0){var g=(h+p)/2-(c-f)*a,v=(c+f)/2-(p-h)*a;if(i.containStroke(h,c,g,v,p,f))return s}else if(n.containStroke(h,c,p,f))return s;s++}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return _4=s}(),s=G4(),l=V$().createClipPath,u=t.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=s.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,s){var l=this._lineDraw,u=this._showEffect(s),h=!!s.get("polyline"),c=s.pipelineContext.large;return l&&u===this._hasEffet&&h===this._isPolyline&&c===this._isLargeDraw||(l&&l.remove(),l=this._lineDraw=c?new a:new e(h?u?o:r:u?n:i),this._hasEffet=u,this._isPolyline=h,this._isLargeDraw=c,this.group.removeAll()),this.group.add(l.group),l},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});M4=u}();var e=G4(),n=F4();t.registerLayout(e),t.registerVisual(n)}(),N4||(N4=1,function(){if(L4)return D4;L4=1;var t=Qj(),e=uK(),n=Pj(),i=t.extend({type:"series.heatmap",getInitialData:function(t,n){return e(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=n.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});D4=i}(),function(){if(R4)return O4;R4=1,hW().__DEV__;var t=a$(),e=EX(),n=H4(),i=_W();function r(t,e,n){var r=t[1]-t[0],o=(e=i.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,a=0;return function(t){for(var i=a;i=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var s=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var h=u.getAxis("x"),c=u.getAxis("y");s=h.getBandWidth(),l=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;M0?1:a<0?-1:0}function f(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function g(t,n,i,r,a,s,l,u,h,c){var d=h.valueDim,p=h.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(n,"symbolSize");e.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[p.index]=o(g[p.index],f),g[d.index]=o(g[d.index],r?f:Math.abs(s)),c.symbolSize=g,(c.symbolScale=[g[0]/u,g[1]/u])[d.index]*=(h.isHorizontal?-1:1)*l}function v(t,e,n,i,r){var o=t.get(l)||0;o&&(h.attr({scale:e.slice(),rotation:n}),h.updateTransform(),o/=h.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function m(t,n,i,r,s,l,u,h,c,d,p,f){var g=p.categoryDim,v=p.valueDim,m=f.pxSign,y=Math.max(n[v.index]+h,0),x=y;if(r){var _=Math.abs(c),b=e.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=o(b,n[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=a(r),T=I?r:R((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===r||(T=d?R((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var C=m*(x/2),A=f.pathPosition=[];A[g.index]=i[g.wh]/2,A[v.index]="start"===u?C:"end"===u?c-C:c/2,l&&(A[0]+=l[0],A[1]+=l[1]);var D=f.bundlePosition=[];D[g.index]=i[g.xy],D[v.index]=i[v.xy];var L=f.barRectShape=e.extend({},i);L[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(A[v.index]+C)),L[g.wh]=i[g.wh];var k=f.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=p.ecSize[g.wh],k[v.xy]=0,k[v.wh]=i[v.wh]}function y(t){var e=t.symbolPatternSize,n=i(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function x(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(k(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){k(t,(function(t){t.trigger("emphasis")}))}function v(){k(t,(function(t){t.trigger("normal")}))}}function _(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?P(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=y(n),r.add(o),P(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),T(o,n)}function b(t,i,r){var o=e.extend({},i.barRectShape),a=t.__pictorialBarRect;a?P(a,null,{shape:o},i,r):(a=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function w(t,i,r,o){if(r.symbolClip){var a=t.__pictorialClipPath,s=e.extend({},r.clipShape),l=i.valueDim,u=r.animationModel,h=r.dataIndex;if(a)n.updateProps(a,{shape:s},u,h);else{s[l.wh]=0,a=new n.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](a,{shape:c},u,h)}}}function S(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=M,n.isAnimationEnabled=I,n}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function C(t,e,i,r){var o=new n.Group,a=new n.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?x(o,e,i):_(o,e,i),b(o,i,r),w(o,e,i,r),o.__pictorialShapeStr=L(t,i),o.__pictorialSymbolMeta=i,o}function A(t,e,i){var r=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;n.updateProps(a,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?x(t,e,i,!0):_(t,e,i,!0),b(t,i,!0),w(t,e,i,!0)}function D(t,i,r,o){var a=o.__pictorialBarRect;a&&(a.style.text=null);var s=[];k(o,(function(t){s.push(t)})),o.__pictorialMainPath&&s.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(s,(function(t){n.updateProps(t,{scale:[0,0]},r,i,(function(){o.parent&&o.parent.remove(o)}))})),t.setItemGraphicEl(i,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function k(t,n,i){e.each(t.__pictorialBundle.children(),(function(e){e!==t.__pictorialBarRect&&n.call(i,e)}))}function P(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function O(t,i,r){var o=r.color,a=r.dataIndex,l=r.itemModel,u=l.getModel("itemStyle").getItemStyle(["color"]),h=l.getModel("emphasis.itemStyle").getItemStyle(),c=l.getShallow("cursor");k(t,(function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},u)),n.setHoverStyle(t,h),c&&(t.cursor=c),t.z2=r.z2}));var d={},p=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;s(f.style,d,l,o,i.seriesModel,a,p),n.setHoverStyle(f,d)}function R(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var N=c;Y4=N}();var n=RK().layout,i=B$();PJ(),t.registerLayout(e.curry(n,"pictorialBar")),t.registerVisual(i("pictorialBar","roundRect"))}(),function(){if(W6)return t6;W6=1;var t=a$();j6(),function(){if(E6)return N6;E6=1;var t=Qj(),e=eK(),n=$q().getDimensionTypeByAxis,i=Qq(),r=_W(),o=CY().groupData,a=nj().encodeHTML,s=_Q(),l=2,u=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new s(r.bind(this.getData,this),r.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=o(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,s=0;so&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}return B6=n}(),n=q6(),i=IQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver"))}(),function(){if(o8)return a8;o8=1;var t=a$(),e=_W();(function(){if($6)return K6;$6=1;var t=_W(),e=Qj(),n=y1(),i=zX(),r=B1().wrapTreePathInfo,o=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],(function(t){return new i(t,this,r)}),this),l=n.createTree(o,this,u);function u(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=r(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,(function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}K6=o})(),function(){if(e8)return t8;e8=1;var t=_W(),e=nq(),n=function(){if(Q6)return J6;Q6=1;var t=_W(),e=EX(),n={NONE:"none",ANCESTOR:"ancestor",SELF:"self"},i=2,r=4;function o(t,n,o){e.Group.call(this);var a=new e.Sector({z2:i});a.seriesIndex=n.seriesIndex;var s=new e.Text({z2:r,silent:t.getModel("label").get("silent")});function l(){s.ignore=s.hoverIgnore}function u(){s.ignore=s.normalIgnore}this.add(a),this.add(s),this.updateData(!0,t,"normal",n,o),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var a=o.prototype;a.updateData=function(n,i,r,o,a){this.node=i,i.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=i.dataIndex;var u=i.getModel(),h=i.getLayout(),d=t.extend({},h);d.label=null;var p=l(i,o,a);c(i,o,p);var f,g=u.getModel("itemStyle").getItemStyle();if("normal"===r)f=g;else{var v=u.getModel(r+".itemStyle").getItemStyle();f=t.merge(v,g)}f=t.defaults({lineJoin:"bevel",fill:f.fill||p},f),n?(s.setShape(d),s.shape.r=h.r0,e.updateProps(s,{shape:{r:h.r}},o,i.dataIndex),s.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(e.updateProps(s,{shape:d},o),s.useStyle(f)):e.updateProps(s,{shape:d,style:f},o),this._updateLabel(o,p,r);var m=u.getShallow("cursor");if(m&&s.attr("cursor",m),n){var y=o.getShallow("highlightPolicy");this._initEvents(s,i,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,e.setHoverStyle(this)},a.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==n.NONE&&i.piece.childAt(0).trigger("downplay"))}))},a.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},a.onHighlight=function(){this.updateData(!1,this.node,"highlight")},a.onDownplay=function(){this.updateData(!1,this.node,"downplay")},a._updateLabel=function(n,i,r){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===r||"emphasis"===r?a:o.getModel(r+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?r:"normal",h=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===T("show")&&(h="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+_,v>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-_,v>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),f.attr("style",{text:h,textAlign:b,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=g*m+c.cx,S=g*y+c.cy;f.attr("position",[w,S]);var M=T("rotate"),I=0;function T(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(I=-v)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-v)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof M&&(I=M*Math.PI/180),f.attr("rotation",I)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},t.inherits(o,e.Group);var s=o;function l(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[u(t)%a]}function u(e){for(var n=e;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}function h(t,e,i){return i!==n.NONE&&(i===n.SELF?t===e:i===n.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function c(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}return J6=s}(),i=Gq(),r=nj().windowOpen,o="sunburstRootToNode",a=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,a){var s=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),u=l.tree.root,h=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),p=[];h.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(m(p,f),_(u,h),a&&a.highlight&&a.highlight.piece){var g=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(e,n){function r(t){return t.getId()}function o(t,i){y(null==t?null:e[t],null==i?null:n[i])}0===e.length&&0===n.length||new i(n,e,r,r).add(o).update(o).remove(t.curry(o,null)).execute()}function y(t,i){if(d||!t||t.getValue()||(t=null),t!==u&&i!==u)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):x(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}function x(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function _(t,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,t,"normal",e,r):(s.virtualPiece=new n(t,e,r),c.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),s=a.get("link");if(s){var l=a.get("target",!0)||"_blank";r(s,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}}),s=a;t8=s}(),function(){if(n8)return s8;n8=1;var t=a$(),e=B1(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},(function(t,i){function r(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var a=i.getViewRoot();a&&(t.direction=e.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}i.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},(function(t,n){function r(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}n.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var r="sunburstUnhighlight";t.registerAction({type:r,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}))}();var n=wQ(),i=l8(),r=IQ();t.registerVisual(e.curry(n,"sunburst")),t.registerLayout(e.curry(i,"sunburst")),t.registerProcessor(e.curry(r,"sunburst"))}(),function(){if(x8)return S8;x8=1,hW().__DEV__;var t=_W(),e=EX(),n=v$().getDefaultLabel,i=uK(),r=RK().getLayoutOnAxis,o=Gq(),a=Qj(),s=zX(),l=nq(),u=V$().createClipPath,h=function(){if(h8)return u8;h8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map(["x","y"],(function(t,i){var r=this.getAxis(t),o=n[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function n(n){var i=n.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return u8=n}(),c=function(){if(d8)return c8;d8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map([0,1],(function(t){var i=n[t],r=e[t]/2,o=[],a=[];return o[t]=i-r,a[t]=i+r,o[1-t]=a[1-t]=n[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])}),this)}function n(n){var i=n.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return c8=n}(),d=function(){if(f8)return p8;f8=1;var t=_W();function e(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function n(n){var i=n.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return p8=n}(),p=function(){if(v8)return g8;v8=1;var t=_W();function e(e,n){return t.map(["Radius","Angle"],(function(t,i){var r=this["get"+t+"Axis"](),o=n[i],a=e[i]/2,s="dataTo"+t,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===t&&(l=l*Math.PI/180),l}),this)}function n(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind((function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),a=n.coordToPoint([e,o]);return a.push(e,o*Math.PI/180),a})),size:t.bind(e,n)}}}return g8=n}(),f=function(){if(y8)return m8;function t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}return y8=1,m8=t}(),g=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"],_="e\0\0",b={cartesian2d:h,geo:c,singleAxis:d,polar:p,calendar:f};function w(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=E(r);(n=e.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===i)(n=new e.Image({})).__customImagePath=t.style.image;else if("text"===i)(n=new e.Text({})).__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');n=new(e.getShapeClass(i))}return n.__customGraphicType=i,n.name=t.name,n}function S(n,i,r,o,a,s,l){var u={},h=r.style||{};if(r.shape&&(u.shape=t.clone(r.shape)),r.position&&(u.position=r.position.slice()),r.scale&&(u.scale=r.scale.slice()),r.origin&&(u.origin=r.origin.slice()),r.rotation&&(u.rotation=r.rotation),"image"===n.type&&r.style){var c=u.style={};t.each(["x","y","width","height"],(function(t){M(t,c,h,n.style,s)}))}if("text"===n.type&&r.style&&(c=u.style={},t.each(["x","y"],(function(t){M(t,c,h,n.style,s)})),!h.hasOwnProperty("textFill")&&h.fill&&(h.textFill=h.fill),!h.hasOwnProperty("textStroke")&&h.stroke&&(h.textStroke=h.stroke)),"group"!==n.type&&(n.useStyle(h),s)){n.style.opacity=0;var d=h.opacity;null==d&&(d=1),e.initProps(n,{style:{opacity:d}},o,i)}s?n.attr(u):e.updateProps(n,u,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var p=r.styleEmphasis;e.setElementHoverStyle(n,p),l&&e.setAsHighDownDispatcher(n,!1!==p)}function M(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function I(i,o,a,s){var l=i.get("renderItem"),u=i.coordinateSystem,h={};u&&(h=u.prepareCustoms?u.prepareCustoms():b[u.type](u));var c,d,p,f,g,_=t.defaults({getWidth:s.getWidth,getHeight:s.getHeight,getZr:s.getZr,getDevicePixelRatio:s.getDevicePixelRatio,value:I,style:C,styleEmphasis:A,visual:D,barLayout:L,currentSeriesIndices:k,font:P},h.api||{}),w={context:{},seriesId:i.id,seriesName:i.name,seriesIndex:i.seriesIndex,coordSys:h.coordSys,dataInsideLength:o.count(),encode:T(i.getData())},S=!0;return function(e,n){return c=e,S=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:n?n.type:null},w),_)};function M(t){null==t&&(t=c),S&&(d=o.getItemModel(t),p=d.getModel(y),f=d.getModel(x),g=o.getItemVisual(t,"color"),S=!1)}function I(t,e){return null==e&&(e=c),o.get(o.getDimension(t||0),e)}function C(r,a){null==a&&(a=c),M(a);var s=d.getModel(v).getItemStyle();null!=g&&(s.fill=g);var l=o.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=r?O(r,p):p;return e.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?t.retrieve2(i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function A(r,a){null==a&&(a=c),M(a);var s=d.getModel(m).getItemStyle(),l=r?O(r,f):f;return e.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?t.retrieve3(i.getFormattedLabel(a,"emphasis"),i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function D(t,e){return null==e&&(e=c),o.getItemVisual(e,t)}function L(e){if(u.getBaseAxis){var n=u.getBaseAxis();return r(t.defaults({axis:n},e),s)}}function k(){return a.getCurrentSeriesIndices()}function P(t){return e.getFont(t,a)}}function T(e){var n={};return t.each(e.dimensions,(function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim;(n[o]=n[o]||[])[r.coordDimIndex]=i}})),n}function C(t,e,n,i,r,o){return(t=A(t,e,n,i,r,o,!0))&&o.setItemGraphicEl(e,t),t}function A(t,e,n,i,r,o,a){var s=!n,l=(n=n||{}).type,u=n.shape,h=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&z(u)&&E(u)!==t.__customPathData||"image"===l&&V(h,"image")&&h.image!==t.__customImagePath||"text"===l&&V(u,"text")&&h.text!==t.__customText)&&(r.remove(t),t=null),!s){var c=!t;return!t&&(t=w(n)),S(t,e,n,i,o,c,a),"group"===l&&D(t,e,n,i,o),r.add(t),t}}function D(t,e,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)L({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});else{u&&t.removeAll();for(var h=0;he[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function s(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),h=t.map(i.getViewLabels(),(function(e){return(e=t.clone(e)).coord=i.dataToCoord(e.tickValue),e}));l(h),l(s),t.each(o,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,u,a,h)}),this)}},_axisLine:function(t,n,i,r,o){var a,l=t.getModel("axisLine.lineStyle"),u=s(n),h=u?0:1;(a=0===o[h]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(n,i,r,o,l){var u=n.getModel("axisTick"),h=(u.get("inside")?-1:1)*u.get("length"),c=l[s(i)],d=t.map(r,(function(t){return new e.Line({shape:a(i,[c,c+h],t.coord)})}));this.group.add(e.mergePath(d,{style:t.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var u=n.getModel("axisTick"),h=n.getModel("minorTick"),c=(u.get("inside")?-1:1)*h.get("length"),d=l[s(i)],p=[],f=0;fm?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";c&&c[h]&&c[h].textStyle&&(l=new n(c[h].textStyle,d,d.ecModel));var b=new e.Text({silent:r.isLabelSilent(i)});this.group.add(b),e.setTextStyle(b.style,l,{x:v[0],y:v[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=r.makeAxisEventDataBase(i),b.eventData.targetType="axisLabel",b.eventData.value=t.rawLabel)}),this)},_splitLine:function(n,i,r,o,s){var l=n.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;dx?"left":"right",p=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}var u={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",s);var h=s;U8=h}(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"})}(),function(){if(t7)return d7;t7=1;var t=a$(),e=_W();function n(n,i){i.update="updateView",t.registerAction(i,(function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,(function(t){r[t.name]=i.isSelected(t.name)||!1}))})),{selected:r,name:t.name}}))}(function(){if($8)return K8;$8=1;var t=_W(),e=CY(),n=rj(),i=zX(),r=xQ(),o=o1(),a=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],(function(t,e){return e.name&&t.set(e.name,new i(e,n)),t}),t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t).get(("normal"===e?"":e+".")+"label.formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(a,r);var s=a;K8=s})(),o1(),function(){if(Q8)return J8;Q8=1;var t=E0(),e=a$(),n=e.extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});J8=n}(),i1(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})}(),j6(),f3(),s7||(s7=1,function(){if(n7)return e7;n7=1;var t=_W(),e=ij(),n=UX(),i=Pj(),r=864e5;function o(t,e,n){this._model=t}function a(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=n.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:i,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],(function(t){c(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:i.getWidth(),height:i.getHeight()},h=this._rect=e.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],(function(t){c(a,t)||(a[t]=h[o[t]]/l[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,a=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.timea.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+t[0].day+6)/7),h=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new o(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},i.register("calendar",o);var s=o;e7=s}(),function(){if(r7)return i7;r7=1;var t=_W(),e=rj(),n=ij(),i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,a=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);a.superApply(this,"init",arguments),s(t,o)},mergeOption:function(t,e){a.superApply(this,"mergeOption",arguments),s(this.option,t)}});function s(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=t.map([0,1],(function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));o(e,n,{type:"box",ignoreSize:a})}var l=a;i7=l}(),function(){if(a7)return o7;a7=1;var t=a$(),e=_W(),n=EX(),i=nj(),r=UX(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},a={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,h=new n.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});i.add(h)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},v=this._formatterLabel(f,g),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,a)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,i,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];e.isString(s)&&(s=o[s.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===i?0:1;l="start"===u?-l:l;for(var f="center"===h,g=0;g=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(t,n,i){e.each(t,(function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function l(t,e,n,r){var o=n.type,s=new(a.hasOwnProperty(o)?a[o]:i.getShapeClass(o))(n);e.add(s),r.set(t,s),s.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){u(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function h(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),(function(e){delete t[e]})),t}function c(t,n){var i;return e.each(n,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function d(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function p(t,n,i){var o=e.extend({},i),a=t[n],s=i.$action||"merge";"merge"===s?a?(e.merge(a,o,!0),r.mergeLayoutParam(a,o,{ignoreSize:!0}),r.copyLayoutParams(i,a)):t[n]=o:"replace"===s?t[n]=o:"remove"===s&&a&&(t[n]=null)}function f(t,e){t&&(t.hv=e.hv=[c(e,["left","right"]),c(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function g(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,r=this.group;e.each(n,(function(e){var n=e.$action,o=e.id,a=i.get(o),s=e.parentId,c=null!=s?i.get(s):r,d=e.style;"text"===e.type&&d&&(e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var p=h(e);n&&"merge"!==n?"replace"===n?(u(a,i),l(o,c,p,i)):"remove"===n&&u(a,i):a?a.attr(p):l(o,c,p,i);var f=i.get(o);f&&(f.__ecGraphicWidthOption=e.width,f.__ecGraphicHeightOption=e.height,g(f,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=0;u=0;u--){var d;if(h=n[u],d=a.get(h.id)){var p,f=(p=d.parent)===i?{width:s,height:l}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};r.positionElement(d,h,f,null,{hv:h.hv,boundingMode:h.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){u(e,t)})),this._elMap=e.createHashMap()},dispose:function(){this._clear()}})}(),s9||(s9=1,function(){if(c7)return h7;c7=1;var t=a$(),e=_W(),n=g7(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,(function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,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}}}),r=i;h7=r}(),function(){if(y7)return m7;y7=1;var t=a$(),e=_W(),n=tY(),i=g7(),r=EX(),o=zX(),a=Gq(),s=A7(),l=t.extendComponentView({type:"toolbox",render:function(t,l,h,c){var d=this.group;if(d.removeAll(),t.get("show")){var p=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),v=[];e.each(f,(function(t,e){v.push(e)})),new a(this._featureNames||[],v).add(m).update(m).remove(e.curry(m,null)).execute(),this._featureNames=v,s.layout(d,t,h),d.add(s.makeBackground(d.getBoundingRect(),t)),d.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+d.position[0],a=!1;t.position[1]+d.position[1]+p+r.height>h.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-r.height:p+8;o+r.width/2>h.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}}))}function m(e,n){var r,a=v[e],s=v[n],d=f[a],p=new o(d,t,t.ecModel);if(c&&null!=c.newTitle&&c.featureName===a&&(d.title=c.newTitle),a&&!s){if(u(a))r={model:p,onclick:p.option.onclick,featureName:a};else{var m=i.get(a);if(!m)return;r=new m(p,l,h)}g[a]=r}else{if(!(r=g[s]))return;r.model=p,r.ecModel=l,r.api=h}a||!s?p.get("show")&&!r.unusable?(y(p,r,a),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},r.render&&r.render(p,l,h,c)):r.remove&&r.remove(l,h):r.dispose&&r.dispose(l,h)}function y(n,i,o){var a=n.getModel("iconStyle"),s=n.getModel("emphasis.iconStyle"),u=i.getIcons?i.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var f=u,g=c;c={},(u={})[o]=f,c[o]=g}var v=n.iconPaths={};e.each(u,(function(o,u){var f=r.createIcon(o,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(a.getItemStyle()),f.hoverStyle=s.getItemStyle(),f.setStyle({text:c[u],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",e.extend({content:c[u],formatter:g.get("formatter",!0)||function(){return c[u]},formatterParams:{componentType:"toolbox",name:u,title:c[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[u],f.on("mouseover",(function(){var e=s.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:s.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+u)||"normal"),d.add(f),f.on("click",e.bind(i.onclick,i,l,h,u)),v[u]=f}))}},updateView:function(t,n,i,r){e.each(this._features,(function(t){t.updateView&&t.updateView(t.model,n,i,r)}))},remove:function(t,n){e.each(this._features,(function(e){e.remove&&e.remove(t,n)})),this.group.removeAll()},dispose:function(t,n){e.each(this._features,(function(e){e.dispose&&e.dispose(t,n)}))}});function u(t){return 0===t.indexOf("my")}m7=l}(),function(){if(_7)return x7;_7=1;var t=mW(),e=bq(),n=g7(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={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:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported;var o=r.prototype;o.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType()?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var c=i.get("lang"),d='
';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+o,p.target="_blank",p.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},n.register("saveAsImage",r);var a=r;x7=a}(),function(){if(w7)return b7;w7=1;var t=a$(),e=_W(),n=bq(),i=g7(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function a(t){this.model=t}a.defaultOption={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:e.clone(r.title),option:{},seriesIndex:{}};var s=a.prototype;s.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),(function(t){n[t]&&(i[t]=n[t])})),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var a=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",a?"normal":"emphasis"),e.merge({id:n,stack:a?"":o},r.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(t,n,i){var a=this.model,s=a.get("seriesIndex."+i);if(l[i]){var h,c={series:[]},d=function(n){var r=n.subType,o=n.id,s=l[i](r,o,n,a);s&&(e.defaults(s,n.option),c.series.push(s));var u=n.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",p=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0].componentIndex;c[d]=c[d]||[];for(var f=0;f<=p;f++)c[d][p]=c[d][p]||{};c[d][p].boundaryGap="bar"===i}}};e.each(u,(function(t){e.indexOf(t,i)>=0&&e.each(t,(function(t){a.setIconStatus(t,"normal")}))})),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==s?null:{seriesIndex:s}},d),"stack"===i&&(h=c.series&&c.series[0]&&c.series[0].stack===o?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)),n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:h,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),i.register("magicType",a);var h=a;b7=h}(),function(){if(M7)return S7;M7=1;var t=a$(),e=_W(),n=GW(),i=bq(),r=g7(),o=i.toolbox.dataView,a=new Array(60).join("-"),s="\t";function l(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function u(t){var n=[];return e.each(t,(function(t,i){var r=t.categoryAxis,o=t.valueAxis.dim,a=[" "].concat(e.map(t.series,(function(t){return t.name}))),l=[r.model.getCategories()];e.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var u=[a.join(s)],h=0;h=0)return!0}var f=new RegExp("["+s+"]+","g");function g(t){for(var n=t.split(/\n+/g),i=d(n.shift()).split(f),r=[],o=e.map(i,(function(t){return{name:t,data:[]}})),a=0;a1?"emphasis":"normal")}function v(t,e,n,r,o){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new i(f(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}d._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]),new i(f(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}})),r.push(a,n),this._dispatchZoomAction(n)}function s(t,e,i){var r=e.getAxis(t),s=r.model,u=l(t,s,a),h=u.findRepresentativeAxisProxy(s).getMinMaxSpan();null==h.minValueSpan&&null==h.maxValueSpan||(i=o(0,i.slice(),r.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),u&&(n[u.id]={dataZoomId:u.id,startValue:i[0],endValue:i[1]})}function l(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}},d._dispatchZoomAction=function(t){var n=[];u(t,(function(t,i){n.push(e.clone(t))})),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},s.register("dataZoom",c),t.registerPreprocessor((function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(t,i){if(i){var r=t+"Index",o=i[r];null==o||"all"===o||e.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,(function(a,s){if(null==o||"all"===o||-1!==e.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+t+s};l[r]=s,n.push(l)}}))}}function a(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]),u(r,i)}})),i9=c}(),function(){if(a9)return o9;a9=1;var t=a$(),e=P7(),n=bq(),i=g7(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={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:r.title};var a=o.prototype;a.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")})),o9=o}()),function(){if(y9)return D9;y9=1;var t=a$();X6(),function(){if(c9)return h9;c9=1;var t=a$(),e=t.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});h9=e}(),function(){if(m9)return v9;m9=1;var t=a$(),e=_W(),n=mW(),i=function(){if(p9)return d9;p9=1;var t=_W(),e=aU(),n=GW(),i=BW(),r=mW(),o=nj(),a=t.each,s=o.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+n+",top "+e+"s "+n;return t.map(l,(function(t){return t+"transition:"+i})).join(";")}function c(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),a(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function d(t){var n=[],i=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.getModel("textStyle"),d=t.get("padding");return i&&n.push(h(i)),l&&(r.canvasSupported?n.push("background-Color:"+l):(n.push("background-Color:#"+e.toHex(l)),n.push("filter:alpha(opacity=70)"))),a(["width","color","radius"],(function(e){var i="border-"+e,r=s(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(c(u)),null!=d&&n.push("padding:"+o.normalizeCssArray(d).join("px ")+"px"),n.join(";")+";"}function p(t,e,n,r,o){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&i.transformLocalCoord(t,s,document.body,r,o)}else{t[0]=r,t[1]=o;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function f(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=e.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],p(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=u+d(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;p(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;return d9=g}(),r=function(){if(g9)return f9;g9=1;var t=_W(),e=RZ(),n=EX();function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},a=t,s="{marker",l="|}",u=a.indexOf(s);u>=0;){var h=a.indexOf(l),c=a.substr(u+s.length,h-u-s.length);c.indexOf("sub")>-1?o["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[c],textOffset:[3,0]}:o["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[c]},u=(a=a.substr(h+1)).indexOf("{marker")}var d=r.getModel("textStyle"),p=d.get("fontSize"),f=r.get("textLineHeight");null==f&&(f=Math.round(3*p/2)),this.el=new e({style:n.setTextStyle({},d,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:f}),z:r.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;return f9=o}(),o=nj(),a=UX(),s=EX(),l=y6(),u=ij(),h=zX(),c=T6(),d=EK(),p=Y6(),f=CY().getTooltipRenderMode,g=e.bind,v=e.each,m=a.parsePercent,y=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,a=t.getComponent("tooltip"),s=a.get("renderMode");this._renderMode=f(s),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:a.get("appendToBody",!0)}),this._newLine="
"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,g((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=b(r,i);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=y;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var u=l(r,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,position:r.position,target:u.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,a=[n.offsetX,n.offsetY],s=[],l=[],u=_([n.tooltipOption,r]),h=this._renderMode,c=this._newLine,f={};v(t,(function(t){v(t.dataByAxis,(function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=[];if(n&&null!=r){var u=p.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,(function(o){var s=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,p=s&&s.getDataParams(c);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=d.getAxisRawValue(n.axis,r),p.axisValueLabel=u,p){l.push(p);var g,v=s.formatTooltip(c,!0,null,h);if(e.isObject(v)){g=v.html;var m=v.markers;e.merge(f,m)}else g=v;a.push(g)}}));var g=u;"html"!==h?s.push(a.join(c)):s.push((g?o.encodeHTML(g)+c:"")+a.join(c))}}))}),this),s.reverse(),s=s.join(this._newLine+this._newLine);var g=n.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,g,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(u,s,l,Math.random(),a[0],a[1],g,void 0,f)}))},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,a=r.getSeriesByIndex(o),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,h=s.getData(u),c=_([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);e.isObject(v)?(p=v.html,f=v.markers):(p=v,f=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,p,g,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new h(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,s,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");s=s||t.get("position");var d=e;if(c&&"string"==typeof c)d=o.formatTpl(c,n,!0);else if("function"==typeof c){var p=g((function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,s,r,a,h,n,l))}),this);this._ticket=i,d=c(n,i,p)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,s,r,a,h,n,l)}},_updatePosition:function(t,n,i,r,o,a,s){var l=this._api.getWidth(),h=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof n&&(n=n([i,r],a,o.el,f,{viewSize:[l,h],contentSize:c.slice()})),e.isArray(n))i=m(n[0],l),r=m(n[1],h);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var g=u.getLayoutRect(n,{width:l,height:h});i=g.x,r=g.y,d=null,p=null}else if("string"==typeof n&&s)i=(v=M(n,f,c))[0],r=v[1];else{var v;i=(v=w(i,r,o,l,h,d?null:20,p?null:20))[0],r=v[1]}d&&(i-=I(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")&&(i=(v=S(i,r,o,l,h))[0],r=v[1]),o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&v(e,(function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&v(r,(function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&v(r,(function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(h.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new h(n,e,e.ecModel))}return e}function b(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function S(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}function M(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function I(t){return"center"===t||"middle"===t}v9=x}(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}(),X6(),function(){if(V9)return L9;V9=1;var t=a$(),e=function(){if(_9)return x9;_9=1;var t=_W(),e=["rect","polygon","keep","clear"];function n(n,r){var o=n&&n.brush;if(t.isArray(o)||(o=o?[o]:[]),o.length){var a=[];t.each(o,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=n&&n.toolbox;t.isArray(s)&&(s=s[0]),s||(s={feature:{}},n.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),h=u.type||(u.type=[]);h.push.apply(h,a),i(h),r&&!h.length&&h.push.apply(h,e)}}function i(e){var n={};t.each(e,(function(t){n[t]=1})),e.length=0,t.each(n,(function(t,n){e.push(n)}))}return x9=n}();R9(),function(){if(T9)return I9;T9=1,hW().__DEV__;var t=a$(),e=_W(),n=O9(),i=zX(),r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){t&&(this.areas=e.map(t,(function(t){return a(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}var s=o;I9=s}(),function(){if(A9)return C9;A9=1;var t=a$(),e=_W(),n=$5(),i=R9().layoutCovers,r=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,o.apply(this,arguments)},updateTransform:function(t,e){return i(e),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function o(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}C9=r}(),function(){if(N9)return ett;N9=1;var t=a$();t.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))}(),function(){if(z9)return E9;z9=1;var t=_W(),e=g7(),n=bq(),i=n.toolbox.brush;function r(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(i.title)};var o=r.prototype;o.render=o.updateView=function(e,n,i){var r,o,a;n.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===r)?"emphasis":"normal")}))},o.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),(function(t){n[t]&&(i[t]=n[t])})),i},o.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",r),E9=r}(),t.registerPreprocessor(e)}(),function(){if(B9)return ntt;B9=1;var t=_W(),e=a$(),n=EX(),i=ij().getLayoutRect,r=nj().windowOpen;e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,o,a){if(this.group.removeAll(),e.get("show")){var s=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),h=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),g=new n.Text({style:n.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){r(v,"_"+e.get("target"))})),m&&g.on("click",(function(){r(m,"_"+e.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,s.add(d),f&&s.add(g);var x=s.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=i(_,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));h||("middle"===(h=e.get("left")||e.get("right"))&&(h="center"),"right"===h?b.x+=b.width:"center"===h&&(b.x+=b.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?b.y+=b.height:"middle"===c&&(b.y+=b.height/2),c=c||"top"),s.attr("position",[b.x,b.y]);var w={textAlign:h,textVerticalAlign:c};d.setStyle(w),g.setStyle(w),x=s.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new n.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});s.add(I)}}})}(),function(){if(ttt)return itt;ttt=1;var t=a$(),e=function(){if(F9)return G9;F9=1;var t=_W();function e(e){var i=e&&e.timeline;t.isArray(i)||(i=i?[i]:[]),t.each(i,(function(t){t&&n(t)}))}function n(e){var n=e.type,o={number:"value",time:"time"};if(o[n]&&(e.axisType=o[n],delete e.type),i(e),r(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});r(a,"position")||(a.position=e.controlPosition),"none"!==a.position||r(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}t.each(e.data||[],(function(e){t.isObject(e)&&!t.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),i(e))}))}function i(e){var n=e.itemStyle||(e.itemStyle={}),i=n.emphasis||(n.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};t.each(o,(function(t,e){s[e]||r(a,e)||(a[e]=t)})),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}return G9=e}();(function(){if(H9)return rtt;H9=1;var t=rj();t.registerSubTypeDefaulter("timeline",(function(){return"slider"}))})(),function(){if(W9)return ott;W9=1;var t=a$(),e=_W();t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(),function(){if(X9)return Z9;X9=1;var t=_W(),e=function(){if(Y9)return U9;Y9=1;var t=_W(),e=rj(),n=Qq(),i=CY(),r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,a=this._names=[];if("category"===o){var s=[];t.each(r,(function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e)).value=n:r=n,s.push(r),t.isString(o)||null!=o&&!isNaN(o)||(o=""),a.push(o+"")})),r=s}var l={category:"ordinal",time:"time"}[o]||"number";(this._data=new n([{name:"value",type:l}],this)).initData(r,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=r;return U9=o}(),n=Fj(),i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});t.mixin(i,n);var r=i;Z9=r}(),function(){if(Q9)return J9;Q9=1;var t=_W(),e=LU(),n=KW(),i=EX(),r=ij(),o=att(),a=function(){if($9)return K9;$9=1;var t=_W(),e=r$(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e);var i=n;return K9=i}(),s=FK().createSymbol,l=EK(),u=UX(),h=nj().encodeHTML,c=t.bind,d=t.each,p=Math.PI,f=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return h(s.scale.getLabel(t))},d(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,s,t)}),this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=g(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:p/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),v=f.get("show",!0),m=v?f.get("itemSize"):0,y=v?f.get("itemGap"):0,x=m+y,_=t.get("label.rotate")||0;_=_*p/180;var b=f.get("position",!0),w=v&&f.get("showPlayBtn",!0),S=v&&f.get("showPrevBtn",!0),M=v&&f.get("showNextBtn",!0),I=0,T=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],I+=x),S&&(a=[I,0],I+=x),M&&(s=[T-m,0],T-=x)):(w&&(o=[T-m,0],T-=x),S&&(a=[0,0],I+=x),M&&(s=[T-m,0],T-=x)),l=[I,T],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:y}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=n.create(),s=o.x,l=o.y+o.height;n.translate(a,a,[-s,-l]),n.rotate(a,a,-p/2),n.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var u=y(o),h=y(i.getBoundingRect()),c=y(r.getBoundingRect()),d=i.position,f=r.position;f[0]=d[0]=u[0][0];var g,v=t.labelPosOpt;function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(v)?(x(d,h,u,1,g="+"===v?0:1),x(f,c,u,1,1-g)):(x(d,h,u,1,g=v>=0?0:1),f[1]=d[1]+v),i.attr("position",d),r.attr("position",f),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=l.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new a("value",r,t.axisExtent,i);return s.model=e,s},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var a=r.getExtent();o.get("lineStyle.show")&&n.add(new i.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),a=n.scale.getTicks();d(a,(function(t){var a=n.dataToCoord(t),s=o.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),h={position:[a,0],onclick:c(this._changeTimeline,this,t)},d=m(s,l,e,h);i.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();d(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),h=n.dataToCoord(r.tickValue),d=new i.Text({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:c(this._changeTimeline,this,a),silent:!1});i.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),i.setHoverStyle(d,i.setTextStyle({},u))}),this)}},_renderControl:function(t,e,n,r){var o=t.controlSize,a=t.rotation,s=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=r.getPlayState(),d=r.get("inverse",!0);function p(t,n,h,c){if(t){var d=v(r,n,u,{position:t,origin:[o/2,0],rotation:c?-a:0,rectHover:!0,style:s,onclick:h});e.add(d),i.setHoverStyle(d,l)}}p(t.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,d?"-":"+")),p(t.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,d?"+":"-")),p(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=c(s._handlePointerDrag,s),t.ondragend=c(s._handlePointerDragend,s),y(t,o,n,i,!0)},onUpdate:function(t){y(t,o,n,i)}};this._currentPointer=m(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),g.coord[p]=v.coord[p]=h,o=[g,v,{type:l,valueIndex:o.valueIndex,value:h}]}return(o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])])[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return l(e[r])&&l(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function h(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function c(t,e,i,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=n.parsePercent(u.get("x"),o.getWidth()),c=n.parsePercent(u.get("y"),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions,l(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):l(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];t.setItemLayout(e,a)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){c(r,e,!0,t,n),c(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(e,n,i,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new r);this.group.add(h.group);var d=p(a,e,n),f=d.from,g=d.to,v=d.line;n.__from=f,n.__to=g,n.setData(v);var m=n.get("symbol"),y=n.get("symbolSize");function x(t,n,i){var r=t.getItemModel(n);c(t,n,i,e,o),t.setItemVisual(n,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||m[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}t.isArray(m)||(m=[m,m]),"number"==typeof y&&(y=[y,y]),d.from.each((function(t){x(f,t,!0),x(g,t,!1)})),v.each((function(t){var e=v.getItemModel(t).get("lineStyle.color");v.setItemVisual(t,{color:e||f.getItemVisual(t,"color")}),v.setItemLayout(t,[f.getItemLayout(t),g.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolRotate:f.getItemVisual(t,"symbolRotate"),fromSymbolSize:f.getItemVisual(t,"symbolSize"),fromSymbol:f.getItemVisual(t,"symbol"),toSymbolRotate:g.getItemVisual(t,"symbolRotate"),toSymbolSize:g.getItemVisual(t,"symbolSize"),toSymbol:g.getItemVisual(t,"symbol")})})),h.updateData(v),d.line.eachItemGraphicEl((function(t,e){t.traverse((function(t){t.dataModel=n}))})),h.__keep=!0,h.group.silent=n.get("silent")||e.get("silent")}});function p(n,r,o){var a;a=n?t.map(n&&n.dimensions,(function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)})):[{name:"value",type:"float"}];var l=new e(a,o),u=new e(a,o),c=new e([],o),d=t.map(o.get("data"),t.curry(s,r,n,o));n&&(d=t.filter(d,t.curry(h,n)));var p=n?i.dimValueGetter:function(t){return t.value};return l.initData(t.map(d,(function(t){return t[0]})),null,p),u.initData(t.map(d,(function(t){return t[1]})),null,p),c.initData(t.map(d,(function(t){return t[2]}))),c.hasItemOption=!0,{from:l,to:u,line:c}}Mtt=d}(),t.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))}(),function(){if(Ltt)return Rtt;Ltt=1;var t=a$();(function(){if(Att)return Ctt;Att=1;var t=dtt(),e=t.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});Ctt=e})(),function(){if(Dtt)return Ntt;Dtt=1;var t=_W(),e=aU(),n=Qq(),i=UX(),r=EX(),o=_tt(),a=btt(),s=function(e,n,i,r){var a=o.dataTransform(e,r[0]),s=o.dataTransform(e,r[1]),l=t.retrieve,u=a.coord,h=s.coord;u[0]=l(u[0],-1/0),u[1]=l(u[1],-1/0),h[0]=l(h[0],1/0),h[1]=l(h[1],1/0);var c=t.mergeAll([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function h(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!u(1,n,i)&&!u(0,n,i))||o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1})}function c(t,e,n,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=i.parsePercent(u.get(n[0]),o.getWidth()),c=i.parsePercent(u.get(n[1]),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(d,d),a=s.dataToPoint(d,!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);l(g)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):l(v)&&(a[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];return a}var d=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function p(e,i,r){var o,a,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,(function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)})),a=new n(t.map(l,(function(t,e){return{name:t,type:o[e%2].type}})),r)):a=new n(o=[{name:"value",type:"float"}],r);var u=t.map(r.get("data"),t.curry(s,i,e,r));e&&(u=t.filter(u,t.curry(h,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(u,null,c),a.hasItemOption=!0,a}a.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries((function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each((function(n){var o=t.map(d,(function(t){return c(r,n,t,e,i)}));r.setItemLayout(n,o),r.getItemGraphicEl(n).setShape("points",o)}))}}),this)},renderSeries:function(n,i,o,a){var s=n.coordinateSystem,u=n.id,h=n.getData(),f=this.markerGroupMap,g=f.get(u)||f.set(u,{group:new r.Group});this.group.add(g.group),g.__keep=!0;var v=p(s,n,i);i.setData(v),v.each((function(e){var i=t.map(d,(function(t){return c(v,e,t,n,a)})),r=!0;t.each(d,(function(t){if(r){var n=v.get(t[0],e),i=v.get(t[1],e);(l(n)||s.getAxis("x").containData(n))&&(l(i)||s.getAxis("y").containData(i))&&(r=!1)}})),v.setItemLayout(e,{points:i,allClipped:r}),v.setItemVisual(e,{color:h.getVisual("color")})})),v.diff(g.__data).add((function(t){var e=v.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});v.setItemGraphicEl(t,n),g.group.add(n)}})).update((function(t,e){var n=g.__data.getItemGraphicEl(e),o=v.getItemLayout(t);o.allClipped?n&&g.group.remove(n):(n?r.updateProps(n,{shape:{points:o.points}},i,t):n=new r.Polygon({shape:{points:o.points}}),v.setItemGraphicEl(t,n),g.group.add(n))})).remove((function(t){var e=g.__data.getItemGraphicEl(t);g.group.remove(e)})).execute(),v.eachItemGraphicEl((function(n,o){var a=v.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=v.getItemVisual(o,"color");n.useStyle(t.defaults(a.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(u,.4),stroke:u})),n.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,s,l,{labelFetcher:i,labelDataIndex:o,defaultText:v.getName(o)||"",isRectText:!0,autoColor:u}),r.setHoverStyle(n,{}),n.dataModel=i})),g.__data=v,g.group.silent=i.get("silent")||n.get("silent")}})}(),t.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))}(),Qtt||(Qtt=1,$tt(),function(){if(Ytt)return Utt;Ytt=1;var t=ztt(),e=ij(),n=e.mergeLayoutParam,i=e.getLayoutParams,r=t.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,a){var s=i(t);r.superCall(this,"init",t,e,n,a),o(this,t,s)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),o(this,this.option,t)}});function o(t,e,i){var r=[1,1];r[t.getOrient().index]=0,n(e,i,{type:"box",ignoreSize:r})}var a=r;Utt=a}(),function(){if(Xtt)return Ztt;Xtt=1;var t=_W(),e=EX(),n=ij(),i=qtt(),r=e.Group,o=["width","height"],a=["x","y"],s=i.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new r),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new r),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,i,r,o,a,l,u){var h=this;s.superCall(this,"renderInner",n,i,r,o,a,l,u);var c=this._controllerGroup,d=i.get("pageIconSize",!0);t.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(n,r){var a=n+"DataIndex",s=e.createIcon(i.get("pageIcons",!0)[i.getOrient().name][r],{onclick:t.bind(h._pageGo,h,a,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=n,c.add(s)}c.add(new e.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,i,r,s,l,u){var h=this.getSelectorGroup(),c=e.getOrient().index,d=o[c],p=a[c],f=o[1-c],g=a[1-c];l&&n.box("horizontal",h,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.clone(r);l&&(x[d]=r[d]-m[d]-v);var _=this._layoutContentAndController(e,s,x,c,d,f,g);if(l){if("end"===u)y[c]+=_[d]+v;else{var b=m[d]+v;y[c]-=b,_[p]-=b}_[d]+=m[d]+v,y[1-c]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-c]),h.attr("position",y)}return _},_layoutContentAndController:function(i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;n.box(i.get("orient"),h,i.get("itemGap"),a?o.width:null,a?null:o.height),n.box("horizontal",d,i.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>o[s],v=[-p.x,-p.y];r||(v[a]=h.position[a]);var m=[0,0],y=[-f.x,-f.y],x=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));g&&("end"===i.get("pageButtonPosition",!0)?y[a]+=o[s]-f[s]:m[a]+=f[s]+x),y[1-a]+=p[l]/2-f[l]/2,h.attr("position",v),c.attr("position",m),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?o[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-a]),c.__rectSize=o[s],g){var b={x:0,y:0};b[s]=Math.max(o[s]-f[s]-x,0),b[l]=_[l],c.setClipPath(new e.Rect({shape:b})),c.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(h,{position:w.contentPosition},!!g&&i),this._updatePageInfoView(i,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],(function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),a=n.pageIndex,s=null!=a?a+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,s=o[r],l=a[r],u=this._findTargetItemIndex(e),h=n.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[r]=-g.s;for(var v=u+1,m=g,y=g,x=null;v<=d;++v)(!(x=_(h[v]))&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=x;for(v=u-1,m=g,y=g,x=null;v>=-1;--v)(x=_(h[v]))&&b(y,x.s)||!(m.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n}}),l=s;Ztt=l}(),function(){if(Jtt)return oet;Jtt=1;var t=a$();t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}()),$tt(),get||(get=1,set(),xet()),xet(),set(),int||(int=1,$et(),ont()),$et(),ont(),function(){if(hnt)return cnt;hnt=1,function(){if(snt)return dnt;snt=1;var t=mW(),e=CW().applyTransform,n=LU(),i=aU(),r=tY(),o=yY(),a=xY(),s=_Y(),l=bY(),u=RZ(),h=kZ(),c=jY(),d=OX(),p=fnt(),f=c.CMD,g=Math.round,v=Math.sqrt,m=Math.abs,y=Math.cos,x=Math.sin,_=Math.max;if(!t.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",S=21600,M=S/2,I=1e5,T=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},A=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},D=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},k=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},P=function(t,e,n){return(parseFloat(t)||0)*I+(parseFloat(e)||0)*T+n},O=o.parsePercent,R=function(t,e,n){var r=i.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=D(r[0],r[1],r[2]),t.opacity=n*r[3])},N=function(t){var e=i.parse(t);return[D(e[0],e[1],e[2]),e[3]]},E=function(t,n,i){var r=n.fill;if(null!=r)if(r instanceof d){var o,a=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,p=h.height;if("linear"===r.type){o="gradient";var f=i.transform,g=[r.x*c,r.y*p],v=[r.x2*c,r.y2*p];f&&(e(g,g,f),e(v,v,f));var m=v[0]-g[0],y=v[1]-g[1];(a=180*Math.atan2(m,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",g=[r.x*c,r.y*p],f=i.transform;var x=i.scale,b=c,w=p;s=[(g[0]-h.x)/b,(g[1]-h.y)/w],f&&e(g,g,f),b/=x[0]*S,w/=x[1]*S;var M=_(b,w);l=0/M,u=2*r.r/M-l}var I=r.colorStops.slice();I.sort((function(t,e){return t.offset-e.offset}));for(var T=I.length,C=[],A=[],D=0;D=2){var P=C[0][0],O=C[1][0],E=C[0][1]*n.opacity,z=C[1][1]*n.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=O,t.colors=A.join(","),t.opacity=z,t.opacity2=E}"radial"===o&&(t.focusposition=s.join(","))}else R(t,r,n.opacity)},z=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||R(t,e.stroke,e.opacity)},V=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&k(t,o),o||(o=p.createNode(e)),r?E(o,n,i):z(o,n),L(t,o)):(t[r?"filled":"stroked"]="false",k(t,o))},B=[[],[],[]],G=function(t,n){var i,r,o,a,s,l,u=f.M,h=f.C,c=f.L,d=f.A,p=f.Q,m=[],_=t.data,w=t.len();for(a=0;a.01?W&&(U+=270/S):Math.abs(Y-z)<1e-4?W&&UE?A-=270/S:A+=270/S:W&&Yz?C+=270/S:C-=270/S),m.push(Z,g(((E-V)*O+k)*S-M),b,g(((z-G)*R+P)*S-M),b,g(((E+V)*O+k)*S-M),b,g(((z+G)*R+P)*S-M),b,g((U*O+k)*S-M),b,g((Y*R+P)*S-M),b,g((C*O+k)*S-M),b,g((A*R+P)*S-M)),s=C,l=A;break;case f.R:var X=B[0],j=B[1];X[0]=_[a++],X[1]=_[a++],j[0]=X[0]+_[a++],j[1]=X[1]+_[a++],n&&(e(X,X,n),e(j,j,n)),X[0]=g(X[0]*S-M),j[0]=g(j[0]*S-M),X[1]=g(X[1]*S-M),j[1]=g(j[1]*S-M),m.push(" m ",X[0],b,X[1]," l ",j[0],b,X[1]," l ",j[0],b,j[1]," l ",X[0],b,j[1]);break;case f.Z:m.push(" x ")}if(i>0){m.push(r);for(var q=0;qZ&&(Y=0,U={});var n,i=X.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(Gu){}e={style:i.fontStyle||W,variant:i.fontVariant||W,weight:i.fontWeight||W,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},U[t]=e,Y++}return e};r.$override("measureText",(function(t,e){var n=p.doc;H||((H=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(H));try{H.style.font=e}catch(i){}return H.innerHTML="",H.appendChild(n.createTextNode(t)),{width:H.offsetWidth}}));for(var q=new n,K=function(t,n,i,a){var s=this.style;this.__dirty&&o.normalizeTextStyle(s,!0);var l=s.text;if(null!=l&&(l+=""),l){if(s.rich){var u=r.parseRichText(l,s);l=[];for(var h=0;h{n=t.c}],execute:function(){t({$:E_,B:yx,D:ei,F:yw,G:function(t,e){if("world"===t){var n=xw[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}},H:nb,I:B,J:go,L:Id,N:oe,P:xd,Q:K,T:Td,U:Cd,V:Ey,Y:jv,_:io,a:O,a0:Tw,a2:eo,a3:L,a5:cV,a6:Bz,a7:$R,a8:YB,a9:cE,aa:gw,ab:KG,ac:MB,ad:kG,ae:qT,af:ow,ag:XF,ah:dw,ai:function(){return Lnt||(Lnt=1,function(t){var e=a$();!function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}}();var n=o$();!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}(),Tq(),function(){if(AJ)return f$;AJ=1;var t=a$();(function(){if(l$)return s$;l$=1,hW().__DEV__;var t=uK(),e=Qj(),n=e.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});s$=n})(),function(){if(L$)return D$;L$=1,hW().__DEV__;var t=_W(),e=XY().fromPoints,n=y$(),i=m$(),r=M$(),o=EX(),a=CY(),s=C$(),l=s.Polyline,u=s.Polygon,h=nq(),c=S$(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,f=V$(),g=f.createGridClipPath,v=f.createPolarClipPath;function m(t,e){if(t.length===e.length){for(var n=0;n=0;s--){var l=i[s].dimension,u=e.dimensions[l],h=e.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=i[s];break}}if(a){var c=n.getAxis(r),d=t.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";t.each(d,(function(t){t.offset=(t.coord-v)/y})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var x=new o.LinearGradient(0,0,0,0,d,!0);return x[r]=v,x[r+"2"]=m,x}}}function S(e,n,i){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!M(a,n))){var s=n.mapDimension(a.dim),l={};return t.each(a.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(n.get(s,t))}}}}function M(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function I(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=g(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return v(t,e,n)}var T=h.extend({type:"line",init:function(){var t=new o.Group,e=new n;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=e.get("animation"),M=!l.isEmpty(),T=l.get("origin"),C=_(r,a,d(r,a,T)),A=e.get("showSymbol"),D=A&&!h&&S(e,a,r),L=this._data;L&&L.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),L.setItemGraphicEl(e,null))})),A||p.remove(),o.add(v);var k,P=!h&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,f&&c.type===r.type&&P===this._step?(M&&!g?g=this._newPolygon(u,C,r,y):g&&!M&&(v.remove(g),g=this._polygon=null),v.setClipPath(I(r,!1,e)),A&&p.updateData(a,{isIgnore:D,clipShape:k}),a.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),m(this._stackedOnPoints,C)&&m(this._points,u)||(y?this._updateAnimation(a,C,r,i,P,T):(P&&(u=b(u,r,P),C=b(C,r,P)),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:C})))):(A&&p.updateData(a,{isIgnore:D,clipShape:k}),P&&(u=b(u,r,P),C=b(C,r,P)),f=this._newPolyline(u,r,y),M&&(g=this._newPolygon(u,C,r,y)),v.setClipPath(I(r,!0,e)));var O=w(a,r)||a.getVisual("color");f.useStyle(t.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=e.get("smooth");if(R=x(e.get("smooth")),f.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),g){var N=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(t.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(E=x(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:E,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=C,this._points=u,this._step=P,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var o=t.getData(),s=a.queryDataIndex(o,r);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var u=o.getItemLayout(s);if(!u)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u[0],u[1]))return;(l=new i(o,s)).position=u,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(u[0])||isNaN(u[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else h.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new l({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,a,s){var l=this._polyline,u=this._polygon,h=t.hostModel,c=r(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,s),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(a&&(d=b(c.current,n,a),p=b(c.stackedOnCurrent,n,a),f=b(c.next,n,a),g=b(c.stackedOnNext,n,a)),y(d,f)>3e3||u&&y(p,g)>3e3)return l.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));l.shape.__points=c.current,l.shape.points=d,o.updateProps(l,{shape:{points:f}},h),u&&(u.setShape({points:d,stackedOnPoints:p}),o.updateProps(u,{shape:{points:f,stackedOnPoints:g}},h));for(var v=[],m=c.status,x=0;xt&&(t=e),t},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}}});NJ=e}(),function(){if(YJ)return UJ;YJ=1,hW().__DEV__;var t=a$(),e=_W(),n=EX(),i=jJ().setLabel,r=zX(),o=qJ(),a=kZ(),s=kU(),l=xq().throttle,u=V$().createClipPath,h=function(){if(WJ)return HJ;WJ=1;var t=EX().extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return HJ=e}(),c=["itemStyle","barBorderWidth"],d=[0,0];function p(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}e.extend(r.prototype,o);var f=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,a=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?r=h.isHorizontal():"polar"===u.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),f=p(u,a);o.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),M=w.get("barBorderRadius")||0,I=[],T=this._backgroundEls||[],C=function(t){var e=b[u.type](a,t),n=P(u,r,e);return n.useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&n.setShape("r",M),I[t]=n,n};a.diff(l).add((function(e){var n=a.getItemModel(e),i=b[u.type](a,e,n);if(v&&C(e),a.hasValue(e)){if(d&&m[u.type](f,i))return void o.remove(s);var s=y[u.type](e,i,r,c,!1,g);a.setItemGraphicEl(e,s),o.add(s),S(s,a,e,n,i,t,r,"polar"===u.type)}})).update((function(e,i){var s=a.getItemModel(e),h=b[u.type](a,e,s);if(v){var p;0===T.length?p=C(i):((p=T[i]).useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&p.setShape("r",M),I[e]=p);var x=b[u.type](a,e),_=k(r,x,u);n.updateProps(p,{shape:_},c,e)}var A=l.getItemGraphicEl(i);if(a.hasValue(e)){if(d&&m[u.type](f,h))return void o.remove(A);A?n.updateProps(A,{shape:h},c,e):A=y[u.type](e,h,r,c,!0,g),a.setItemGraphicEl(e,A),o.add(A),S(A,a,e,s,h,t,r,"polar"===u.type)}else o.remove(A)})).remove((function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&x(t,c,e):e&&_(t,c,e)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new s);A.removeAll();for(var D=0;D0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function w(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function S(t,r,o,a,s,l,u,h){var c=r.getItemVisual(o,"color"),d=r.getItemVisual(o,"opacity"),p=r.getVisual("borderColor"),f=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:w(s)?"none":p,fill:w(s)?"none":c,opacity:d},f.getBarItemStyle()));var v=a.getShallow("cursor");v&&t.attr("cursor",v);var m=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||i(t.style,g,a,c,l,o,m),w(s)&&(g.fill=g.stroke="none"),n.setHoverStyle(t,g)}function M(t,e){var n=t.get(c)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var I=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function A(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];d[0]=e,d[1]=n;for(var u=d[i],h=d[1-i],c=u-s,p=u+s,f=0,g=o.length/2;f=c&&m<=p&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return a[f]}return-1}function D(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function L(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function k(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function P(t,e,i){return new("polar"===t.type?n.Sector:n.Rect)({shape:k(e,i,t),silent:!0,z2:0})}UJ=f}(),PJ(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})}(),function(){if(vQ)return mQ;vQ=1;var t=a$(),e=_W();(function(){if(iQ)return nQ;iQ=1;var t=a$(),e=yQ(),n=_W(),i=CY(),r=UX().getPercentWithPrecision,o=xQ(),a=Gj().retrieveRawAttr,s=Dj().makeSeriesEncodeForNameBased,l=_Q(),u=t.extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(s,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i0&&(c?"scale"!==d:"transition"!==p)){for(var v=s.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=n.r0}}}),l=s;rQ=l}();var n=bQ(),i=wQ(),r=MQ(),o=IQ();n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),t.registerVisual(i("pie")),t.registerLayout(e.curry(r,"pie")),t.registerProcessor(o("pie"))}(),function(){if(kQ)return KQ;kQ=1;var t=a$();(function(){if(CQ)return TQ;CQ=1;var t=uK(),e=Qj(),n=e.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});TQ=n})(),function(){if(LQ)return $Q;LQ=1;var t=a$(),e=y$(),n=function(){if(DQ)return AQ;DQ=1;var t=EX(),e=FK().createSymbol,n=NX(),i=4,r=t.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,r=e.size,o=this.symbolProxy,a=o.shape;if(!((t.getContext?t.getContext():t)&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t,e){this.group.removeAll();var n=new r({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},a.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new n({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new r,this._incremental.addDisplayable(i,!0)):((i=new r({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},a._setCommon=function(t,n,r,o){var a=n.hostModel;o=o||{};var s=n.getVisual("symbolSize");t.setShape("size",s instanceof Array?s:[s,s]),t.softClipShape=o.clipShape||null,t.symbolProxy=e(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))})))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return AQ=s}(),i=G$();t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new n:new e,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})}();var e=B$(),n=G$();PJ(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter"))}(),function(){if(qQ)return JQ;qQ=1;var t=a$();GQ||(GQ=1,function(){if(NQ)return RQ;NQ=1;var t=_W(),e=function(){if(OQ)return PQ;OQ=1;var t=_W(),e=r$();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}t.inherits(n,e);var i=n;return PQ=i}(),n=MK(),i=UX(),r=EK(),o=r.getScaleExtent,a=r.niceScaleExtent,s=Pj(),l=NK();function u(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),(function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o}),this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},u.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},u.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(f)&&isFinite(n[0]));else{s.getTicks().length-1>l&&(d=u(d));var p=Math.ceil(n[1]/d)*d,f=i.round(p-d*l);s.setExtent(f,p),s.setInterval(d)}}))},u.dimensions=[],u.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new u(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},s.register("radar",u);var h=u;RQ=h}(),function(){if(zQ)return EQ;zQ=1;var t=a$(),e=_W(),n=aJ(),i=zX(),r=zK(),o=n.valueAxis;function a(t,n){return e.defaults({show:n},t)}var s=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=e.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=h;if(null!=g.color&&(v=e.defaults({color:g.color},h)),g=e.merge(e.clone(g),{boundaryGap:t,splitNumber:n,scale:o,axisLine:a,axisTick:s,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:v,triggerEvent:f},!1),c||(g.name=""),"string"==typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=e.extend(new i(g,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:a(o.axisLabel,!1),axisTick:a(o.axisTick,!1),axisType:"interval",splitLine:a(o.splitLine,!0),splitArea:a(o.splitArea,!0),indicator:[]}}),l=s;EQ=l}(),function(){if(BQ)return VQ;BQ=1,hW().__DEV__;var t=a$(),e=_W(),n=fJ(),i=EX(),r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),a=e.map(o,(function(t){return new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));e.each(a,(function(t){e.each(r,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color");d=e.isArray(d)?d:[d],p=e.isArray(p)?p:[p];var f=[],g=[];if("circle"===o)for(var v=r[0].getTicksCoords(),m=n.cx,y=n.cy,x=0;x":"\n";return i(""===l?this.name:l)+u+n.map(s,(function(e,n){var r=a.get(a.mapDimension(e.dim),t);return i(e.name+" : "+r)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),o=0,a=r.length;o":"\n";return h.join(", ")+f+r(l+" : "+s)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(h,a);var c=h;f0=c})(),function(){if(O0)return P0;O0=1;var t=a$(),e=_W(),n=EX(),i=E0(),r="__seriesMapHighDown",o="__seriesMapCallKey",a=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new i(n,!0);o.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,a){var u=t.originalData,h=this.group;u.each(u.mapDimension("value"),(function(i,a){if(!isNaN(i)){var c=u.getItemLayout(a);if(c&&c.point){var d=c.point,p=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),v=u.getName(a),m=g.indexOfName(v),y=u.getItemModel(a),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=e.retrieve2(t.getFormattedLabel(m,"normal"),v),S=e.retrieve2(t.getFormattedLabel(m,"emphasis"),w),M=b[r],I=Math.random();if(!M){M=b[r]={};var T=e.curry(s,!0),C=e.curry(s,!1);b.on("mouseover",T).on("mouseout",C).on("emphasis",T).on("normal",C)}b[o]=I,e.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),l(M,!1)}h.add(f)}}}))}});function s(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}P0=a}(),i1(),o1();var e=a1(),n=s1(),i=l1(),r=u1(),o=bQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i),t.registerPreprocessor(r),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}(),function(){if(A1)return v1;A1=1;var t=a$();(function(){if(g1)return f1;g1=1;var t=Qj(),e=y1(),n=nj().encodeHTML,i=zX(),r=t.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var n={name:t.name,children:t.data},r=t.leaves||{},o=new i(r,this,this.ecModel),a=e.createTree(n,this,s);function s(t){t.wrapMethod("getItemModel",(function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=o),t}))}var l=0;a.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var u=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return n(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});f1=r})(),function(){if(b1)return _1;b1=1;var t=_W(),e=EX(),n=m$(),i=S1().radialCoordinate,r=a$(),o=XY(),a=r1(),s=A0(),l=I0(),u=N0().onIrrelevantElement;hW().__DEV__;var h=UX().parsePercent,c=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=h(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var p=1;pS.x)||(_-=Math.PI);var T=b?"left":"right",C=s.labelModel.get("rotate"),A=C*(Math.PI/180);x.setStyle({textPosition:s.labelModel.get("position")||T,textRotation:null==C?-_:A,textOrigin:"center",verticalAlign:"middle"})}v(a,u,c,r,m,g,y,o,s)}function v(n,i,r,o,a,s,l,u,h){var d=h.edgeShape,p=o.__edge;if("curve"===d)i.parentNode&&i.parentNode!==r&&(p||(p=o.__edge=new e.BezierCurve({shape:y(h,a,a),style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:y(h,s,l),style:t.defaults({opacity:1},h.lineStyle)},n));else if("polyline"===d&&"orthogonal"===h.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var f=i.children,g=[],v=0;v=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b=null);var w=new t.Polygon({shape:{points:l(c,0,_,p,m===v.length-1,0===m)},style:n.defaults(a.getItemStyle(),{lineJoin:"bevel",text:b,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:n.curry(h,x)});this.group.add(w),u(w,i,x),c+=_+o}},remove:function(){this.group.removeAll()}};var h=s;return N1=h}(),a=I0(),s=LU(),l=KW(),u=function(){if(G1)return $1;G1=1;var t=_W();function e(){var e,n=[],i={};return{add:function(e,r,o,a,s){return t.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;rv||Math.abs(t.dy)>v)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new s(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var u=l.create();l.translate(u,u,[-e,-n]),l.scale(u,u,[t.scale,t.scale]),l.translate(u,u,[e,n]),o.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&c(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function C(){return{nodeGroup:[],background:[],content:[]}}function A(t,i,r,o,a,s,l,u,h,c){if(l){var d=l.getLayout(),g=t.getData();if(g.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var v=d.width,b=d.height,T=d.borderWidth,C=d.invisible,A=l.getRawIndex(),L=u&&u.getRawIndex(),k=l.viewChildren,P=d.upperHeight,O=k&&k.length,R=l.getModel("itemStyle"),N=l.getModel("emphasis.itemStyle"),E=Y("nodeGroup",p);if(E){if(h.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=v,E.__tmNodeHeight=b,d.isAboveViewRoot)return E;var z=l.getModel(),V=Y("background",f,c,w);if(V&&G(E,V,O&&d.upperLabelHeight),O)n.isHighDownDispatcher(E)&&n.setAsHighDownDispatcher(E,!1),V&&(n.setAsHighDownDispatcher(V,!0),g.setItemGraphicEl(l.dataIndex,V));else{var B=Y("content",f,c,S);B&&F(E,B),V&&n.isHighDownDispatcher(V)&&n.setAsHighDownDispatcher(V,!1),n.setAsHighDownDispatcher(E,!0),g.setItemGraphicEl(l.dataIndex,E)}return E}}}function G(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:v,height:b}),C)H(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=N.get("borderColor"),s=I(R);s.fill=o;var u=M(N);if(u.fill=a,r){var h=v-2*T;W(s,u,o,h,P,{x:T,y:0,width:h,height:P})}else s.text=u.text=null;i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function F(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(v-2*T,0),o=Math.max(b-2*T,0);if(i.culling=!0,i.setShape({x:T,y:T,width:r,height:o}),C)H(i);else{i.invisible=!1;var a=l.getVisual("color",!0),s=I(R);s.fill=a;var u=M(N);W(s,u,a,r,o),i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function H(t){!t.invisible&&s.push(t)}function W(i,r,o,a,s,u){var h=z.get("name"),c=z.getModel(u?x:m),p=z.getModel(u?_:y),f=c.getShallow("show");n.setLabelStyle(i,r,c,p,{defaultText:f?h:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),U(i,u,d),U(r,u,d),u&&(i.textRect=e.clone(u)),i.truncate=f&&c.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function U(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function Y(t,e,n,o){var s=null!=L&&r[t][L],l=a[t];return s?(r[t][L]=null,Z(l,s,t)):C||((s=new e({z:D(n,o)})).__tmDepth=n,s.__tmStorageName=t,X(l,s,t)),i[t][A]=s}function Z(t,n,i){(t[A]={}).old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}function X(t,e,n){var i=t[A]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}}function D(t,e){var n=t*b+e;return(n-1)/n}F1=T}(),function(){if(W1)return J1;W1=1;for(var t=a$(),e=B1(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r ")),r.value&&(u+=" : "+o(r.value)),u}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],(function(t){return null!=t.value?t:n.extend({value:0},t)})),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray((function(t){return i.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}});u2=c})(),function(){if(T2)return I2;T2=1;var t=a$(),e=_W(),n=y$(),i=b2(),r=I0(),o=A0(),a=N0().onIrrelevantElement,s=EX(),l=D2(),u=A2().getNodeGlobalScale,h="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function f(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function g(t,e,n){var i=t.getGraphicEl(),r=f(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function v(t,e){var n=f(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var m=t.extendChartView({type:"graph",init:function(t,e){var o=new n,a=new i,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(o.group),s.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,d=this.group;if("view"===r.type){var p={position:r.position,scale:r.scale};this._firstRender?d.attr(p):s.updateProps(d,p,t)}l(t.getGraph(),u(t));var f=t.getData();o.updateData(f);var g=t.getEdgeData();a.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),f.eachItemGraphicEl((function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",(function(){v&&(v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(r),f.setItemLayout(r,e.position))}),this).on("dragend",(function(){v&&v.setUnfixed(r)}),this),e.setDraggable(a&&v),e[h]&&e.off("mouseover",e[h]),e[c]&&e.off("mouseout",e[c]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[c]=function(){i._dispatchUnfocus(n)}))}),this),f.graph.eachEdge((function(e){var r=e.getGraphicEl();r[h]&&r.off("mouseover",r[h]),r[c]&&r.off("mouseout",r[c]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[c]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=f.getItemLayout(e),o=Math.atan2(r[1]-_,r[0]-x);o<0&&(o=2*Math.PI+o);var a=r[0]=t&&(0===e?0:r[e-1][0]).4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){k=Math.cos(I),P=Math.sin(I);var V=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-M)+p,y2:P*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:a((L+z/w)/b)}),d.add(V),I+=C}I-=C}else I+=T}},_renderPointer:function(n,i,o,s,l,u,h,c){var d=this.group,p=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],g=[u,h],v=n.getData(),m=v.mapDimension("value");v.diff(p).add((function(i){var r=new t({shape:{angle:u}});e.initProps(r,{shape:{angle:a(v.get(m,i),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(i,r)})).update((function(t,i){var r=p.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:a(v.get(m,t),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(t,r)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),v.eachItemGraphicEl((function(t,n){var i=v.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",s(a(v.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,n,i,o,s){var l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");if(h.get("show")){var c=h.get("offsetCenter"),d=s.cx+r(c[0],s.r),p=s.cy+r(c[1],s.r),f=+t.get("min"),g=+t.get("max"),v=t.getData().get(u,0),m=o(a(v,[f,g],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:p,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,s){var u=t.getModel("detail"),h=+t.get("min"),c=+t.get("max");if(u.get("show")){var d=u.get("offsetCenter"),p=s.cx+r(d[0],s.r),f=s.cy+r(d[1],s.r),g=r(u.get("width"),s.r),v=r(u.get("height"),s.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=o(a(y,[h,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:p,y:f,text:l(y,u.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),c=h;h5=c}()),function(){if(w5)return S5;w5=1;var t=a$();(function(){if(m5)return v5;m5=1;var t=a$(),e=_W(),n=yQ(),i=CY().defaultEmphasis,r=Dj().makeSeriesEncodeForNameBased,o=_Q(),a=t.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(r,this)})},_defaultLabelLine:function(t){i(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});v5=a})(),function(){if(x5)return y5;x5=1;var t=EX(),e=_W(),n=nq();function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var a=this.childAt(0),s=n.hostModel,l=n.getItemModel(i),u=n.getItemLayout(i),h=n.getItemModel(i).get(o);h=null==h?1:h,a.useStyle({}),r?(a.setShape({points:u.points}),a.setStyle({opacity:0}),t.initProps(a,{style:{opacity:h}},s,i)):t.updateProps(a,{style:{opacity:h},shape:{points:u.points}},s,i);var c=l.getModel("itemStyle"),d=n.getItemVisual(i,"color");a.setStyle(e.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(n),s=e.getItemLayout(n).label,l=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},o,n),t.updateProps(r,{style:{x:s.x,y:s.y}},o,n),r.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=e.getItemVisual(n,"color"),t.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var a=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add((function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)})).remove((function(t){var e=o.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=a;y5=s}();var e=wQ(),n=M5(),i=IQ();t.registerVisual(e("funnel")),t.registerLayout(n),t.registerProcessor(i("funnel"))}(),function(){if(u3)return C5;u3=1;var t=a$();f3(),function(){if(r3)return i3;r3=1;var t=_W(),e=t.each,n=t.createHashMap,i=Qj(),r=uK(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return a(n,this),r(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function a(t,i){if(!t.encodeDefine){var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(r){var o=t.encodeDefine=n();e(r.dimensions,(function(t){var e=s(t);o.set(t,e)}))}}}function s(t){return+t.replace("dim","")}i3=o}(),function(){if(a3)return o3;a3=1;var t=EX(),e=nq(),n=.3,i=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,i,u){var h=this._dataGroup,c=e.getData(),d=this._data,p=e.coordinateSystem,f=p.dimensions,g=s(e);function v(t){l(a(c,h,t,f,p),c,t,g)}function m(n,i){var r=d.getItemGraphicEl(i),a=o(c,n,f,p);c.setItemGraphicEl(n,r);var s=u&&!1===u.animation?null:e;t.updateProps(r,{shape:{points:a}},s,n),l(r,c,n,g)}function y(t){var e=d.getItemGraphicEl(t);h.remove(e)}if(c.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=r(p,e,(function(){setTimeout((function(){h.removeClipPath()}))}));h.setClipPath(x)}this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,u=s(e),h=t.start;h=0&&(s[a[l].depth]=new i(a[l],this,n));if(o&&r)return e(o,r,this,!0,u).data;function u(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var o=this.getDataParams(t,i),a=o.data,s=a.source+" -- "+a.target;return o.value&&(s+=" : "+o.value),n(s)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;return l&&(s=u+" : "+l),n(s)}return r.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=r.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}});v3=r})(),function(){if(x3)return y3;x3=1;var t=EX(),e=a$(),n=_W(),i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],a=["emphasis","lineStyle","opacity"];function s(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=s(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function u(t,e){var n=s(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var h=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),p=e.getData("edge"),f=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(n){var i=new h;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,s,c,d,g,v,m,y=n.getModel("lineStyle"),x=y.get("curveness"),_=n.node1.getLayout(),b=n.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=n.node2.getLayout(),I=n.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=n.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=f,"vertical"===f?(r=(null!=w?w*l:_.x)+A.sy,o=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+A.ty,d=r,g=o*(1-x)+(c=null!=C?C*u:M.y)*x,v=s,m=o*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,o=(null!=S?S*u:_.y)+A.sy,d=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=o,v=r*x+s*(1-x),m=c=(null!=C?C*u:M.y)+A.ty),i.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:d,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color")}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),p.setItemGraphicEl(n.dataIndex,i)})),o.eachNode((function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),p.setStyle("fill",n.getVisual("color")),t.setHoverStyle(p,f),a.add(p),c.setItemGraphicEl(n.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),p.eachItemGraphicEl((function(t,n){var o=p.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&a.setClipPath(d(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,s,h){var c=t.getData(),d=c.graph,p=h.dataIndex,f=c.getItemModel(p),g=h.edgeDataIndex;if(null!=p||null!=g){var v=d.getNodeByIndex(p),m=d.getEdgeByIndex(g);if(d.eachNode((function(t){l(t,i,.1)})),d.eachEdge((function(t){l(t,o,.1)})),v){u(v,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(v.outEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node2,r))})):"inEdges"===y?n.each(v.inEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node1,r))})):"allEdges"===y&&n.each(v.edges,(function(t){t.dataIndex<0||(u(t,a),t.node1!==v&&u(t.node1,r),t.node2!==v&&u(t.node2,r))}))}m&&(u(m,a),u(m.node1,r),u(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var a=t.getGraph();a.eachNode((function(t){l(t,i)})),a.eachEdge((function(t){l(t,o)}))}});function d(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}y3=c}(),function(){if(_3)return C3;_3=1;var t=a$();G2(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}();var e=A3(),n=D3();t.registerLayout(e),t.registerVisual(n)}(),function(){if(B3)return G3;B3=1;var t=a$();(function(){if(P3)return k3;P3=1;var t=_W(),e=Qj(),n=H3().seriesModelMixin,i=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(i,n,!0),k3=i})(),function(){if(R3)return O3;R3=1;var t=_W(),e=nq(),n=EX(),i=kZ(),r=["itemStyle"],o=["emphasis","itemStyle"],a=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=l(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?u(s,n,i,t):n=l(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:t.noop}),s=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),l=n.getModel(o).getItemStyle(s);e.useStyle(l),e.style.fill=null,e.style.stroke=a}var m=l;X3=m}();var e=function(){if(K3)return q3;K3=1;var t=_W();function e(e){e&&t.isArray(e.series)&&t.each(e.series,(function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}return q3=e}(),n=i4(),i=r4();t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i)}(),function(){if(c4)return E4;c4=1;var t=a$();(function(){if(a4)return o4;a4=1;var t=uK(),e=Qj(),n=e.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});o4=n})(),function(){if(h4)return u4;h4=1;var t=a$(),e=y$(),n=function(){if(l4)return s4;l4=1;var t=_W(),e=FK().createSymbol,n=EX().Group,i=UX().parsePercent,r=m$(),o=3;function a(e){return t.isArray(e)||(e=[+e,+e]),e}function s(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function l(t,e){n.call(this);var i=new r(t,e),o=new n;this.add(i),this.add(o),o.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var u=l.prototype;u.stopEffectAnimation=function(){this.childAt(1).removeAll()},u.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,r=this.childAt(1),a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});d4=h})(),function(){if(I4)return M4;I4=1,hW().__DEV__;var t=a$(),e=b2(),n=V4(),i=_2(),r=B4(),o=function(){if(x4)return y4;x4=1;var t=B4(),e=_W(),n=V4(),i=CW();function r(t,e,i){n.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var o=r.prototype;o.createLine=function(e,n,i){return new t(e,n,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,o=1;o=0&&!(r[s]<=e);s--);s=Math.min(s,o-2)}else{for(var s=a;se);s++);s=Math.min(s-1,o-2)}i.lerp(t.position,n[s],n[s+1],(e-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n);var a=r;return y4=a}(),a=function(){if(b4)return _4;b4=1;var t=EX(),e=NX(),n=JY(),i=rZ(),r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,a=r.curveness;if(r.polyline)for(var s=0,l=0;l0)for(var h=o[l++],c=o[l++],d=1;d0){var g=(h+p)/2-(c-f)*a,v=(c+f)/2-(p-h)*a;if(i.containStroke(h,c,g,v,p,f))return s}else if(n.containStroke(h,c,p,f))return s;s++}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return _4=s}(),s=G4(),l=V$().createClipPath,u=t.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=s.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,s){var l=this._lineDraw,u=this._showEffect(s),h=!!s.get("polyline"),c=s.pipelineContext.large;return l&&u===this._hasEffet&&h===this._isPolyline&&c===this._isLargeDraw||(l&&l.remove(),l=this._lineDraw=c?new a:new e(h?u?o:r:u?n:i),this._hasEffet=u,this._isPolyline=h,this._isLargeDraw=c,this.group.removeAll()),this.group.add(l.group),l},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});M4=u}();var e=G4(),n=F4();t.registerLayout(e),t.registerVisual(n)}(),N4||(N4=1,function(){if(L4)return D4;L4=1;var t=Qj(),e=uK(),n=Pj(),i=t.extend({type:"series.heatmap",getInitialData:function(t,n){return e(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=n.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});D4=i}(),function(){if(R4)return O4;R4=1,hW().__DEV__;var t=a$(),e=EX(),n=H4(),i=_W();function r(t,e,n){var r=t[1]-t[0],o=(e=i.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,a=0;return function(t){for(var i=a;i=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var s=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var h=u.getAxis("x"),c=u.getAxis("y");s=h.getBandWidth(),l=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;M0?1:a<0?-1:0}function f(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function g(t,n,i,r,a,s,l,u,h,c){var d=h.valueDim,p=h.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(n,"symbolSize");e.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[p.index]=o(g[p.index],f),g[d.index]=o(g[d.index],r?f:Math.abs(s)),c.symbolSize=g,(c.symbolScale=[g[0]/u,g[1]/u])[d.index]*=(h.isHorizontal?-1:1)*l}function v(t,e,n,i,r){var o=t.get(l)||0;o&&(h.attr({scale:e.slice(),rotation:n}),h.updateTransform(),o/=h.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function m(t,n,i,r,s,l,u,h,c,d,p,f){var g=p.categoryDim,v=p.valueDim,m=f.pxSign,y=Math.max(n[v.index]+h,0),x=y;if(r){var _=Math.abs(c),b=e.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=o(b,n[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=a(r),T=I?r:R((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===r||(T=d?R((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var C=m*(x/2),A=f.pathPosition=[];A[g.index]=i[g.wh]/2,A[v.index]="start"===u?C:"end"===u?c-C:c/2,l&&(A[0]+=l[0],A[1]+=l[1]);var D=f.bundlePosition=[];D[g.index]=i[g.xy],D[v.index]=i[v.xy];var L=f.barRectShape=e.extend({},i);L[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(A[v.index]+C)),L[g.wh]=i[g.wh];var k=f.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=p.ecSize[g.wh],k[v.xy]=0,k[v.wh]=i[v.wh]}function y(t){var e=t.symbolPatternSize,n=i(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function x(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(k(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){k(t,(function(t){t.trigger("emphasis")}))}function v(){k(t,(function(t){t.trigger("normal")}))}}function _(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?P(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=y(n),r.add(o),P(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),T(o,n)}function b(t,i,r){var o=e.extend({},i.barRectShape),a=t.__pictorialBarRect;a?P(a,null,{shape:o},i,r):(a=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function w(t,i,r,o){if(r.symbolClip){var a=t.__pictorialClipPath,s=e.extend({},r.clipShape),l=i.valueDim,u=r.animationModel,h=r.dataIndex;if(a)n.updateProps(a,{shape:s},u,h);else{s[l.wh]=0,a=new n.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](a,{shape:c},u,h)}}}function S(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=M,n.isAnimationEnabled=I,n}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function C(t,e,i,r){var o=new n.Group,a=new n.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?x(o,e,i):_(o,e,i),b(o,i,r),w(o,e,i,r),o.__pictorialShapeStr=L(t,i),o.__pictorialSymbolMeta=i,o}function A(t,e,i){var r=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;n.updateProps(a,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?x(t,e,i,!0):_(t,e,i,!0),b(t,i,!0),w(t,e,i,!0)}function D(t,i,r,o){var a=o.__pictorialBarRect;a&&(a.style.text=null);var s=[];k(o,(function(t){s.push(t)})),o.__pictorialMainPath&&s.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(s,(function(t){n.updateProps(t,{scale:[0,0]},r,i,(function(){o.parent&&o.parent.remove(o)}))})),t.setItemGraphicEl(i,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function k(t,n,i){e.each(t.__pictorialBundle.children(),(function(e){e!==t.__pictorialBarRect&&n.call(i,e)}))}function P(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function O(t,i,r){var o=r.color,a=r.dataIndex,l=r.itemModel,u=l.getModel("itemStyle").getItemStyle(["color"]),h=l.getModel("emphasis.itemStyle").getItemStyle(),c=l.getShallow("cursor");k(t,(function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},u)),n.setHoverStyle(t,h),c&&(t.cursor=c),t.z2=r.z2}));var d={},p=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;s(f.style,d,l,o,i.seriesModel,a,p),n.setHoverStyle(f,d)}function R(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var N=c;Y4=N}();var n=RK().layout,i=B$();PJ(),t.registerLayout(e.curry(n,"pictorialBar")),t.registerVisual(i("pictorialBar","roundRect"))}(),function(){if(W6)return t6;W6=1;var t=a$();j6(),function(){if(E6)return N6;E6=1;var t=Qj(),e=eK(),n=$q().getDimensionTypeByAxis,i=Qq(),r=_W(),o=CY().groupData,a=nj().encodeHTML,s=_Q(),l=2,u=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new s(r.bind(this.getData,this),r.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=o(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,s=0;so&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}return B6=n}(),n=q6(),i=IQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver"))}(),function(){if(o8)return a8;o8=1;var t=a$(),e=_W();(function(){if($6)return K6;$6=1;var t=_W(),e=Qj(),n=y1(),i=zX(),r=B1().wrapTreePathInfo,o=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],(function(t){return new i(t,this,r)}),this),l=n.createTree(o,this,u);function u(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=r(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,(function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}K6=o})(),function(){if(e8)return t8;e8=1;var t=_W(),e=nq(),n=function(){if(Q6)return J6;Q6=1;var t=_W(),e=EX(),n={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},i=2,r=4;function o(t,n,o){e.Group.call(this);var a=new e.Sector({z2:i});a.seriesIndex=n.seriesIndex;var s=new e.Text({z2:r,silent:t.getModel("label").get("silent")});function l(){s.ignore=s.hoverIgnore}function u(){s.ignore=s.normalIgnore}this.add(a),this.add(s),this.updateData(!0,t,"normal",n,o),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var a=o.prototype;a.updateData=function(n,i,r,o,a){this.node=i,i.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=i.dataIndex;var u=i.getModel(),h=i.getLayout(),d=t.extend({},h);d.label=null;var p=l(i,o,a);c(i,o,p);var f,g=u.getModel("itemStyle").getItemStyle();if("normal"===r)f=g;else{var v=u.getModel(r+".itemStyle").getItemStyle();f=t.merge(v,g)}f=t.defaults({lineJoin:"bevel",fill:f.fill||p},f),n?(s.setShape(d),s.shape.r=h.r0,e.updateProps(s,{shape:{r:h.r}},o,i.dataIndex),s.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(e.updateProps(s,{shape:d},o),s.useStyle(f)):e.updateProps(s,{shape:d,style:f},o),this._updateLabel(o,p,r);var m=u.getShallow("cursor");if(m&&s.attr("cursor",m),n){var y=o.getShallow("highlightPolicy");this._initEvents(s,i,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,e.setHoverStyle(this)},a.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==n.NONE&&i.piece.childAt(0).trigger("downplay"))}))},a.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},a.onHighlight=function(){this.updateData(!1,this.node,"highlight")},a.onDownplay=function(){this.updateData(!1,this.node,"downplay")},a._updateLabel=function(n,i,r){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===r||"emphasis"===r?a:o.getModel(r+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?r:"normal",h=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===T("show")&&(h="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+_,v>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-_,v>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),f.attr("style",{text:h,textAlign:b,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=g*m+c.cx,S=g*y+c.cy;f.attr("position",[w,S]);var M=T("rotate"),I=0;function T(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(I=-v)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-v)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof M&&(I=M*Math.PI/180),f.attr("rotation",I)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},t.inherits(o,e.Group);var s=o;function l(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[u(t)%a]}function u(e){for(var n=e;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}function h(t,e,i){return i!==n.NONE&&(i===n.SELF?t===e:i===n.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function c(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}return J6=s}(),i=Gq(),r=nj().windowOpen,o="sunburstRootToNode",a=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,a){var s=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),u=l.tree.root,h=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),p=[];h.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(m(p,f),_(u,h),a&&a.highlight&&a.highlight.piece){var g=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(e,n){function r(t){return t.getId()}function o(t,i){y(null==t?null:e[t],null==i?null:n[i])}0===e.length&&0===n.length||new i(n,e,r,r).add(o).update(o).remove(t.curry(o,null)).execute()}function y(t,i){if(d||!t||t.getValue()||(t=null),t!==u&&i!==u)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):x(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}function x(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function _(t,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,t,"normal",e,r):(s.virtualPiece=new n(t,e,r),c.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),s=a.get("link");if(s){var l=a.get("target",!0)||"_blank";r(s,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}}),s=a;t8=s}(),function(){if(n8)return s8;n8=1;var t=a$(),e=B1(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},(function(t,i){function r(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var a=i.getViewRoot();a&&(t.direction=e.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}i.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},(function(t,n){function r(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}n.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var r="sunburstUnhighlight";t.registerAction({type:r,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}))}();var n=wQ(),i=l8(),r=IQ();t.registerVisual(e.curry(n,"sunburst")),t.registerLayout(e.curry(i,"sunburst")),t.registerProcessor(e.curry(r,"sunburst"))}(),function(){if(x8)return S8;x8=1,hW().__DEV__;var t=_W(),e=EX(),n=v$().getDefaultLabel,i=uK(),r=RK().getLayoutOnAxis,o=Gq(),a=Qj(),s=zX(),l=nq(),u=V$().createClipPath,h=function(){if(h8)return u8;h8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map(["x","y"],(function(t,i){var r=this.getAxis(t),o=n[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function n(n){var i=n.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return u8=n}(),c=function(){if(d8)return c8;d8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map([0,1],(function(t){var i=n[t],r=e[t]/2,o=[],a=[];return o[t]=i-r,a[t]=i+r,o[1-t]=a[1-t]=n[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])}),this)}function n(n){var i=n.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return c8=n}(),d=function(){if(f8)return p8;f8=1;var t=_W();function e(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function n(n){var i=n.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return p8=n}(),p=function(){if(v8)return g8;v8=1;var t=_W();function e(e,n){return t.map(["Radius","Angle"],(function(t,i){var r=this["get"+t+"Axis"](),o=n[i],a=e[i]/2,s="dataTo"+t,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===t&&(l=l*Math.PI/180),l}),this)}function n(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind((function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),a=n.coordToPoint([e,o]);return a.push(e,o*Math.PI/180),a})),size:t.bind(e,n)}}}return g8=n}(),f=function(){if(y8)return m8;function t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}return y8=1,m8=t}(),g=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"],_="e\0\0",b={cartesian2d:h,geo:c,singleAxis:d,polar:p,calendar:f};function w(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=E(r);(n=e.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===i)(n=new e.Image({})).__customImagePath=t.style.image;else if("text"===i)(n=new e.Text({})).__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');n=new(e.getShapeClass(i))}return n.__customGraphicType=i,n.name=t.name,n}function S(n,i,r,o,a,s,l){var u={},h=r.style||{};if(r.shape&&(u.shape=t.clone(r.shape)),r.position&&(u.position=r.position.slice()),r.scale&&(u.scale=r.scale.slice()),r.origin&&(u.origin=r.origin.slice()),r.rotation&&(u.rotation=r.rotation),"image"===n.type&&r.style){var c=u.style={};t.each(["x","y","width","height"],(function(t){M(t,c,h,n.style,s)}))}if("text"===n.type&&r.style&&(c=u.style={},t.each(["x","y"],(function(t){M(t,c,h,n.style,s)})),!h.hasOwnProperty("textFill")&&h.fill&&(h.textFill=h.fill),!h.hasOwnProperty("textStroke")&&h.stroke&&(h.textStroke=h.stroke)),"group"!==n.type&&(n.useStyle(h),s)){n.style.opacity=0;var d=h.opacity;null==d&&(d=1),e.initProps(n,{style:{opacity:d}},o,i)}s?n.attr(u):e.updateProps(n,u,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var p=r.styleEmphasis;e.setElementHoverStyle(n,p),l&&e.setAsHighDownDispatcher(n,!1!==p)}function M(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function I(i,o,a,s){var l=i.get("renderItem"),u=i.coordinateSystem,h={};u&&(h=u.prepareCustoms?u.prepareCustoms():b[u.type](u));var c,d,p,f,g,_=t.defaults({getWidth:s.getWidth,getHeight:s.getHeight,getZr:s.getZr,getDevicePixelRatio:s.getDevicePixelRatio,value:I,style:C,styleEmphasis:A,visual:D,barLayout:L,currentSeriesIndices:k,font:P},h.api||{}),w={context:{},seriesId:i.id,seriesName:i.name,seriesIndex:i.seriesIndex,coordSys:h.coordSys,dataInsideLength:o.count(),encode:T(i.getData())},S=!0;return function(e,n){return c=e,S=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:n?n.type:null},w),_)};function M(t){null==t&&(t=c),S&&(d=o.getItemModel(t),p=d.getModel(y),f=d.getModel(x),g=o.getItemVisual(t,"color"),S=!1)}function I(t,e){return null==e&&(e=c),o.get(o.getDimension(t||0),e)}function C(r,a){null==a&&(a=c),M(a);var s=d.getModel(v).getItemStyle();null!=g&&(s.fill=g);var l=o.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=r?O(r,p):p;return e.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?t.retrieve2(i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function A(r,a){null==a&&(a=c),M(a);var s=d.getModel(m).getItemStyle(),l=r?O(r,f):f;return e.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?t.retrieve3(i.getFormattedLabel(a,"emphasis"),i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function D(t,e){return null==e&&(e=c),o.getItemVisual(e,t)}function L(e){if(u.getBaseAxis){var n=u.getBaseAxis();return r(t.defaults({axis:n},e),s)}}function k(){return a.getCurrentSeriesIndices()}function P(t){return e.getFont(t,a)}}function T(e){var n={};return t.each(e.dimensions,(function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim;(n[o]=n[o]||[])[r.coordDimIndex]=i}})),n}function C(t,e,n,i,r,o){return(t=A(t,e,n,i,r,o,!0))&&o.setItemGraphicEl(e,t),t}function A(t,e,n,i,r,o,a){var s=!n,l=(n=n||{}).type,u=n.shape,h=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&z(u)&&E(u)!==t.__customPathData||"image"===l&&V(h,"image")&&h.image!==t.__customImagePath||"text"===l&&V(u,"text")&&h.text!==t.__customText)&&(r.remove(t),t=null),!s){var c=!t;return!t&&(t=w(n)),S(t,e,n,i,o,c,a),"group"===l&&D(t,e,n,i,o),r.add(t),t}}function D(t,e,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)L({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});else{u&&t.removeAll();for(var h=0;he[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function s(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),h=t.map(i.getViewLabels(),(function(e){return(e=t.clone(e)).coord=i.dataToCoord(e.tickValue),e}));l(h),l(s),t.each(o,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,u,a,h)}),this)}},_axisLine:function(t,n,i,r,o){var a,l=t.getModel("axisLine.lineStyle"),u=s(n),h=u?0:1;(a=0===o[h]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(n,i,r,o,l){var u=n.getModel("axisTick"),h=(u.get("inside")?-1:1)*u.get("length"),c=l[s(i)],d=t.map(r,(function(t){return new e.Line({shape:a(i,[c,c+h],t.coord)})}));this.group.add(e.mergePath(d,{style:t.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var u=n.getModel("axisTick"),h=n.getModel("minorTick"),c=(u.get("inside")?-1:1)*h.get("length"),d=l[s(i)],p=[],f=0;fm?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";c&&c[h]&&c[h].textStyle&&(l=new n(c[h].textStyle,d,d.ecModel));var b=new e.Text({silent:r.isLabelSilent(i)});this.group.add(b),e.setTextStyle(b.style,l,{x:v[0],y:v[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=r.makeAxisEventDataBase(i),b.eventData.targetType="axisLabel",b.eventData.value=t.rawLabel)}),this)},_splitLine:function(n,i,r,o,s){var l=n.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;dx?"left":"right",p=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}var u={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",s);var h=s;U8=h}(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"})}(),function(){if(t7)return d7;t7=1;var t=a$(),e=_W();function n(n,i){i.update="updateView",t.registerAction(i,(function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,(function(t){r[t.name]=i.isSelected(t.name)||!1}))})),{selected:r,name:t.name}}))}(function(){if($8)return K8;$8=1;var t=_W(),e=CY(),n=rj(),i=zX(),r=xQ(),o=o1(),a=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],(function(t,e){return e.name&&t.set(e.name,new i(e,n)),t}),t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t).get(("normal"===e?"":e+".")+"label.formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(a,r);var s=a;K8=s})(),o1(),function(){if(Q8)return J8;Q8=1;var t=E0(),e=a$(),n=e.extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});J8=n}(),i1(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})}(),j6(),f3(),s7||(s7=1,function(){if(n7)return e7;n7=1;var t=_W(),e=ij(),n=UX(),i=Pj(),r=864e5;function o(t,e,n){this._model=t}function a(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=n.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:i,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],(function(t){c(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:i.getWidth(),height:i.getHeight()},h=this._rect=e.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],(function(t){c(a,t)||(a[t]=h[o[t]]/l[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,a=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.timea.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+t[0].day+6)/7),h=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new o(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},i.register("calendar",o);var s=o;e7=s}(),function(){if(r7)return i7;r7=1;var t=_W(),e=rj(),n=ij(),i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,a=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);a.superApply(this,"init",arguments),s(t,o)},mergeOption:function(t,e){a.superApply(this,"mergeOption",arguments),s(this.option,t)}});function s(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=t.map([0,1],(function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));o(e,n,{type:"box",ignoreSize:a})}var l=a;i7=l}(),function(){if(a7)return o7;a7=1;var t=a$(),e=_W(),n=EX(),i=nj(),r=UX(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},a={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,h=new n.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});i.add(h)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},v=this._formatterLabel(f,g),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,a)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,i,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];e.isString(s)&&(s=o[s.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===i?0:1;l="start"===u?-l:l;for(var f="center"===h,g=0;g=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(t,n,i){e.each(t,(function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function l(t,e,n,r){var o=n.type,s=new(a.hasOwnProperty(o)?a[o]:i.getShapeClass(o))(n);e.add(s),r.set(t,s),s.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){u(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function h(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),(function(e){delete t[e]})),t}function c(t,n){var i;return e.each(n,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function d(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function p(t,n,i){var o=e.extend({},i),a=t[n],s=i.$action||"merge";"merge"===s?a?(e.merge(a,o,!0),r.mergeLayoutParam(a,o,{ignoreSize:!0}),r.copyLayoutParams(i,a)):t[n]=o:"replace"===s?t[n]=o:"remove"===s&&a&&(t[n]=null)}function f(t,e){t&&(t.hv=e.hv=[c(e,["left","right"]),c(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function g(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,r=this.group;e.each(n,(function(e){var n=e.$action,o=e.id,a=i.get(o),s=e.parentId,c=null!=s?i.get(s):r,d=e.style;"text"===e.type&&d&&(e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var p=h(e);n&&"merge"!==n?"replace"===n?(u(a,i),l(o,c,p,i)):"remove"===n&&u(a,i):a?a.attr(p):l(o,c,p,i);var f=i.get(o);f&&(f.__ecGraphicWidthOption=e.width,f.__ecGraphicHeightOption=e.height,g(f,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=0;u=0;u--){var d;if(h=n[u],d=a.get(h.id)){var p,f=(p=d.parent)===i?{width:s,height:l}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};r.positionElement(d,h,f,null,{hv:h.hv,boundingMode:h.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){u(e,t)})),this._elMap=e.createHashMap()},dispose:function(){this._clear()}})}(),s9||(s9=1,function(){if(c7)return h7;c7=1;var t=a$(),e=_W(),n=g7(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,(function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,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}}}),r=i;h7=r}(),function(){if(y7)return m7;y7=1;var t=a$(),e=_W(),n=tY(),i=g7(),r=EX(),o=zX(),a=Gq(),s=A7(),l=t.extendComponentView({type:"toolbox",render:function(t,l,h,c){var d=this.group;if(d.removeAll(),t.get("show")){var p=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),v=[];e.each(f,(function(t,e){v.push(e)})),new a(this._featureNames||[],v).add(m).update(m).remove(e.curry(m,null)).execute(),this._featureNames=v,s.layout(d,t,h),d.add(s.makeBackground(d.getBoundingRect(),t)),d.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+d.position[0],a=!1;t.position[1]+d.position[1]+p+r.height>h.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-r.height:p+8;o+r.width/2>h.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}}))}function m(e,n){var r,a=v[e],s=v[n],d=f[a],p=new o(d,t,t.ecModel);if(c&&null!=c.newTitle&&c.featureName===a&&(d.title=c.newTitle),a&&!s){if(u(a))r={model:p,onclick:p.option.onclick,featureName:a};else{var m=i.get(a);if(!m)return;r=new m(p,l,h)}g[a]=r}else{if(!(r=g[s]))return;r.model=p,r.ecModel=l,r.api=h}a||!s?p.get("show")&&!r.unusable?(y(p,r,a),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},r.render&&r.render(p,l,h,c)):r.remove&&r.remove(l,h):r.dispose&&r.dispose(l,h)}function y(n,i,o){var a=n.getModel("iconStyle"),s=n.getModel("emphasis.iconStyle"),u=i.getIcons?i.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var f=u,g=c;c={},(u={})[o]=f,c[o]=g}var v=n.iconPaths={};e.each(u,(function(o,u){var f=r.createIcon(o,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(a.getItemStyle()),f.hoverStyle=s.getItemStyle(),f.setStyle({text:c[u],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",e.extend({content:c[u],formatter:g.get("formatter",!0)||function(){return c[u]},formatterParams:{componentType:"toolbox",name:u,title:c[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[u],f.on("mouseover",(function(){var e=s.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:s.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+u)||"normal"),d.add(f),f.on("click",e.bind(i.onclick,i,l,h,u)),v[u]=f}))}},updateView:function(t,n,i,r){e.each(this._features,(function(t){t.updateView&&t.updateView(t.model,n,i,r)}))},remove:function(t,n){e.each(this._features,(function(e){e.remove&&e.remove(t,n)})),this.group.removeAll()},dispose:function(t,n){e.each(this._features,(function(e){e.dispose&&e.dispose(t,n)}))}});function u(t){return 0===t.indexOf("my")}m7=l}(),function(){if(_7)return x7;_7=1;var t=mW(),e=bq(),n=g7(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={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:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported;var o=r.prototype;o.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType()?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var c=i.get("lang"),d='
';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+o,p.target="_blank",p.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},n.register("saveAsImage",r);var a=r;x7=a}(),function(){if(w7)return b7;w7=1;var t=a$(),e=_W(),n=bq(),i=g7(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function a(t){this.model=t}a.defaultOption={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:e.clone(r.title),option:{},seriesIndex:{}};var s=a.prototype;s.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),(function(t){n[t]&&(i[t]=n[t])})),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var a=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",a?"normal":"emphasis"),e.merge({id:n,stack:a?"":o},r.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(t,n,i){var a=this.model,s=a.get("seriesIndex."+i);if(l[i]){var h,c={series:[]},d=function(n){var r=n.subType,o=n.id,s=l[i](r,o,n,a);s&&(e.defaults(s,n.option),c.series.push(s));var u=n.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",p=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0].componentIndex;c[d]=c[d]||[];for(var f=0;f<=p;f++)c[d][p]=c[d][p]||{};c[d][p].boundaryGap="bar"===i}}};e.each(u,(function(t){e.indexOf(t,i)>=0&&e.each(t,(function(t){a.setIconStatus(t,"normal")}))})),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==s?null:{seriesIndex:s}},d),"stack"===i&&(h=c.series&&c.series[0]&&c.series[0].stack===o?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)),n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:h,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),i.register("magicType",a);var h=a;b7=h}(),function(){if(M7)return S7;M7=1;var t=a$(),e=_W(),n=GW(),i=bq(),r=g7(),o=i.toolbox.dataView,a=new Array(60).join("-"),s="\t";function l(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function u(t){var n=[];return e.each(t,(function(t,i){var r=t.categoryAxis,o=t.valueAxis.dim,a=[" "].concat(e.map(t.series,(function(t){return t.name}))),l=[r.model.getCategories()];e.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var u=[a.join(s)],h=0;h=0)return!0}var f=new RegExp("["+s+"]+","g");function g(t){for(var n=t.split(/\n+/g),i=d(n.shift()).split(f),r=[],o=e.map(i,(function(t){return{name:t,data:[]}})),a=0;a1?"emphasis":"normal")}function v(t,e,n,r,o){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new i(f(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}d._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]),new i(f(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}})),r.push(a,n),this._dispatchZoomAction(n)}function s(t,e,i){var r=e.getAxis(t),s=r.model,u=l(t,s,a),h=u.findRepresentativeAxisProxy(s).getMinMaxSpan();null==h.minValueSpan&&null==h.maxValueSpan||(i=o(0,i.slice(),r.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),u&&(n[u.id]={dataZoomId:u.id,startValue:i[0],endValue:i[1]})}function l(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}},d._dispatchZoomAction=function(t){var n=[];u(t,(function(t,i){n.push(e.clone(t))})),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},s.register("dataZoom",c),t.registerPreprocessor((function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(t,i){if(i){var r=t+"Index",o=i[r];null==o||"all"===o||e.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,(function(a,s){if(null==o||"all"===o||-1!==e.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+t+s};l[r]=s,n.push(l)}}))}}function a(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]),u(r,i)}})),i9=c}(),function(){if(a9)return o9;a9=1;var t=a$(),e=P7(),n=bq(),i=g7(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={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:r.title};var a=o.prototype;a.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")})),o9=o}()),function(){if(y9)return D9;y9=1;var t=a$();X6(),function(){if(c9)return h9;c9=1;var t=a$(),e=t.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});h9=e}(),function(){if(m9)return v9;m9=1;var t=a$(),e=_W(),n=mW(),i=function(){if(p9)return d9;p9=1;var t=_W(),e=aU(),n=GW(),i=BW(),r=mW(),o=nj(),a=t.each,s=o.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+n+",top "+e+"s "+n;return t.map(l,(function(t){return t+"transition:"+i})).join(";")}function c(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),a(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function d(t){var n=[],i=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.getModel("textStyle"),d=t.get("padding");return i&&n.push(h(i)),l&&(r.canvasSupported?n.push("background-Color:"+l):(n.push("background-Color:#"+e.toHex(l)),n.push("filter:alpha(opacity=70)"))),a(["width","color","radius"],(function(e){var i="border-"+e,r=s(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(c(u)),null!=d&&n.push("padding:"+o.normalizeCssArray(d).join("px ")+"px"),n.join(";")+";"}function p(t,e,n,r,o){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&i.transformLocalCoord(t,s,document.body,r,o)}else{t[0]=r,t[1]=o;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function f(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=e.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],p(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=u+d(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;p(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;return d9=g}(),r=function(){if(g9)return f9;g9=1;var t=_W(),e=RZ(),n=EX();function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},a=t,s="{marker",l="|}",u=a.indexOf(s);u>=0;){var h=a.indexOf(l),c=a.substr(u+s.length,h-u-s.length);c.indexOf("sub")>-1?o["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[c],textOffset:[3,0]}:o["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[c]},u=(a=a.substr(h+1)).indexOf("{marker")}var d=r.getModel("textStyle"),p=d.get("fontSize"),f=r.get("textLineHeight");null==f&&(f=Math.round(3*p/2)),this.el=new e({style:n.setTextStyle({},d,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:f}),z:r.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;return f9=o}(),o=nj(),a=UX(),s=EX(),l=y6(),u=ij(),h=zX(),c=T6(),d=EK(),p=Y6(),f=CY().getTooltipRenderMode,g=e.bind,v=e.each,m=a.parsePercent,y=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,a=t.getComponent("tooltip"),s=a.get("renderMode");this._renderMode=f(s),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:a.get("appendToBody",!0)}),this._newLine="
"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,g((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=b(r,i);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=y;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var u=l(r,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,position:r.position,target:u.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,a=[n.offsetX,n.offsetY],s=[],l=[],u=_([n.tooltipOption,r]),h=this._renderMode,c=this._newLine,f={};v(t,(function(t){v(t.dataByAxis,(function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=[];if(n&&null!=r){var u=p.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,(function(o){var s=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,p=s&&s.getDataParams(c);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=d.getAxisRawValue(n.axis,r),p.axisValueLabel=u,p){l.push(p);var g,v=s.formatTooltip(c,!0,null,h);if(e.isObject(v)){g=v.html;var m=v.markers;e.merge(f,m)}else g=v;a.push(g)}}));var g=u;"html"!==h?s.push(a.join(c)):s.push((g?o.encodeHTML(g)+c:"")+a.join(c))}}))}),this),s.reverse(),s=s.join(this._newLine+this._newLine);var g=n.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,g,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(u,s,l,Math.random(),a[0],a[1],g,void 0,f)}))},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,a=r.getSeriesByIndex(o),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,h=s.getData(u),c=_([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);e.isObject(v)?(p=v.html,f=v.markers):(p=v,f=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,p,g,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new h(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,s,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");s=s||t.get("position");var d=e;if(c&&"string"==typeof c)d=o.formatTpl(c,n,!0);else if("function"==typeof c){var p=g((function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,s,r,a,h,n,l))}),this);this._ticket=i,d=c(n,i,p)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,s,r,a,h,n,l)}},_updatePosition:function(t,n,i,r,o,a,s){var l=this._api.getWidth(),h=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof n&&(n=n([i,r],a,o.el,f,{viewSize:[l,h],contentSize:c.slice()})),e.isArray(n))i=m(n[0],l),r=m(n[1],h);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var g=u.getLayoutRect(n,{width:l,height:h});i=g.x,r=g.y,d=null,p=null}else if("string"==typeof n&&s)i=(v=M(n,f,c))[0],r=v[1];else{var v;i=(v=w(i,r,o,l,h,d?null:20,p?null:20))[0],r=v[1]}d&&(i-=I(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")&&(i=(v=S(i,r,o,l,h))[0],r=v[1]),o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&v(e,(function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&v(r,(function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&v(r,(function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(h.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new h(n,e,e.ecModel))}return e}function b(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function S(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}function M(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function I(t){return"center"===t||"middle"===t}v9=x}(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}(),X6(),function(){if(V9)return L9;V9=1;var t=a$(),e=function(){if(_9)return x9;_9=1;var t=_W(),e=["rect","polygon","keep","clear"];function n(n,r){var o=n&&n.brush;if(t.isArray(o)||(o=o?[o]:[]),o.length){var a=[];t.each(o,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=n&&n.toolbox;t.isArray(s)&&(s=s[0]),s||(s={feature:{}},n.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),h=u.type||(u.type=[]);h.push.apply(h,a),i(h),r&&!h.length&&h.push.apply(h,e)}}function i(e){var n={};t.each(e,(function(t){n[t]=1})),e.length=0,t.each(n,(function(t,n){e.push(n)}))}return x9=n}();R9(),function(){if(T9)return I9;T9=1,hW().__DEV__;var t=a$(),e=_W(),n=O9(),i=zX(),r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){t&&(this.areas=e.map(t,(function(t){return a(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}var s=o;I9=s}(),function(){if(A9)return C9;A9=1;var t=a$(),e=_W(),n=$5(),i=R9().layoutCovers,r=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,o.apply(this,arguments)},updateTransform:function(t,e){return i(e),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function o(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}C9=r}(),function(){if(N9)return ett;N9=1;var t=a$();t.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))}(),function(){if(z9)return E9;z9=1;var t=_W(),e=g7(),n=bq(),i=n.toolbox.brush;function r(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(i.title)};var o=r.prototype;o.render=o.updateView=function(e,n,i){var r,o,a;n.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===r)?"emphasis":"normal")}))},o.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),(function(t){n[t]&&(i[t]=n[t])})),i},o.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",r),E9=r}(),t.registerPreprocessor(e)}(),function(){if(B9)return ntt;B9=1;var t=_W(),e=a$(),n=EX(),i=ij().getLayoutRect,r=nj().windowOpen;e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,o,a){if(this.group.removeAll(),e.get("show")){var s=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),h=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),g=new n.Text({style:n.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){r(v,"_"+e.get("target"))})),m&&g.on("click",(function(){r(m,"_"+e.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,s.add(d),f&&s.add(g);var x=s.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=i(_,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));h||("middle"===(h=e.get("left")||e.get("right"))&&(h="center"),"right"===h?b.x+=b.width:"center"===h&&(b.x+=b.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?b.y+=b.height:"middle"===c&&(b.y+=b.height/2),c=c||"top"),s.attr("position",[b.x,b.y]);var w={textAlign:h,textVerticalAlign:c};d.setStyle(w),g.setStyle(w),x=s.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new n.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});s.add(I)}}})}(),function(){if(ttt)return itt;ttt=1;var t=a$(),e=function(){if(F9)return G9;F9=1;var t=_W();function e(e){var i=e&&e.timeline;t.isArray(i)||(i=i?[i]:[]),t.each(i,(function(t){t&&n(t)}))}function n(e){var n=e.type,o={number:"value",time:"time"};if(o[n]&&(e.axisType=o[n],delete e.type),i(e),r(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});r(a,"position")||(a.position=e.controlPosition),"none"!==a.position||r(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}t.each(e.data||[],(function(e){t.isObject(e)&&!t.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),i(e))}))}function i(e){var n=e.itemStyle||(e.itemStyle={}),i=n.emphasis||(n.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};t.each(o,(function(t,e){s[e]||r(a,e)||(a[e]=t)})),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}return G9=e}();(function(){if(H9)return rtt;H9=1;var t=rj();t.registerSubTypeDefaulter("timeline",(function(){return"slider"}))})(),function(){if(W9)return ott;W9=1;var t=a$(),e=_W();t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(),function(){if(X9)return Z9;X9=1;var t=_W(),e=function(){if(Y9)return U9;Y9=1;var t=_W(),e=rj(),n=Qq(),i=CY(),r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,a=this._names=[];if("category"===o){var s=[];t.each(r,(function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e)).value=n:r=n,s.push(r),t.isString(o)||null!=o&&!isNaN(o)||(o=""),a.push(o+"")})),r=s}var l={category:"ordinal",time:"time"}[o]||"number";(this._data=new n([{name:"value",type:l}],this)).initData(r,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=r;return U9=o}(),n=Fj(),i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});t.mixin(i,n);var r=i;Z9=r}(),function(){if(Q9)return J9;Q9=1;var t=_W(),e=LU(),n=KW(),i=EX(),r=ij(),o=att(),a=function(){if($9)return K9;$9=1;var t=_W(),e=r$(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e);var i=n;return K9=i}(),s=FK().createSymbol,l=EK(),u=UX(),h=nj().encodeHTML,c=t.bind,d=t.each,p=Math.PI,f=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return h(s.scale.getLabel(t))},d(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,s,t)}),this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=g(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:p/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),v=f.get("show",!0),m=v?f.get("itemSize"):0,y=v?f.get("itemGap"):0,x=m+y,_=t.get("label.rotate")||0;_=_*p/180;var b=f.get("position",!0),w=v&&f.get("showPlayBtn",!0),S=v&&f.get("showPrevBtn",!0),M=v&&f.get("showNextBtn",!0),I=0,T=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],I+=x),S&&(a=[I,0],I+=x),M&&(s=[T-m,0],T-=x)):(w&&(o=[T-m,0],T-=x),S&&(a=[0,0],I+=x),M&&(s=[T-m,0],T-=x)),l=[I,T],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:y}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=n.create(),s=o.x,l=o.y+o.height;n.translate(a,a,[-s,-l]),n.rotate(a,a,-p/2),n.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var u=y(o),h=y(i.getBoundingRect()),c=y(r.getBoundingRect()),d=i.position,f=r.position;f[0]=d[0]=u[0][0];var g,v=t.labelPosOpt;function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(v)?(x(d,h,u,1,g="+"===v?0:1),x(f,c,u,1,1-g)):(x(d,h,u,1,g=v>=0?0:1),f[1]=d[1]+v),i.attr("position",d),r.attr("position",f),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=l.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new a("value",r,t.axisExtent,i);return s.model=e,s},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var a=r.getExtent();o.get("lineStyle.show")&&n.add(new i.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),a=n.scale.getTicks();d(a,(function(t){var a=n.dataToCoord(t),s=o.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),h={position:[a,0],onclick:c(this._changeTimeline,this,t)},d=m(s,l,e,h);i.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();d(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),h=n.dataToCoord(r.tickValue),d=new i.Text({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:c(this._changeTimeline,this,a),silent:!1});i.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),i.setHoverStyle(d,i.setTextStyle({},u))}),this)}},_renderControl:function(t,e,n,r){var o=t.controlSize,a=t.rotation,s=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=r.getPlayState(),d=r.get("inverse",!0);function p(t,n,h,c){if(t){var d=v(r,n,u,{position:t,origin:[o/2,0],rotation:c?-a:0,rectHover:!0,style:s,onclick:h});e.add(d),i.setHoverStyle(d,l)}}p(t.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,d?"-":"+")),p(t.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,d?"+":"-")),p(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=c(s._handlePointerDrag,s),t.ondragend=c(s._handlePointerDragend,s),y(t,o,n,i,!0)},onUpdate:function(t){y(t,o,n,i)}};this._currentPointer=m(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),g.coord[p]=v.coord[p]=h,o=[g,v,{type:l,valueIndex:o.valueIndex,value:h}]}return(o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])])[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return l(e[r])&&l(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function h(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function c(t,e,i,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=n.parsePercent(u.get("x"),o.getWidth()),c=n.parsePercent(u.get("y"),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions,l(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):l(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];t.setItemLayout(e,a)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){c(r,e,!0,t,n),c(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(e,n,i,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new r);this.group.add(h.group);var d=p(a,e,n),f=d.from,g=d.to,v=d.line;n.__from=f,n.__to=g,n.setData(v);var m=n.get("symbol"),y=n.get("symbolSize");function x(t,n,i){var r=t.getItemModel(n);c(t,n,i,e,o),t.setItemVisual(n,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||m[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}t.isArray(m)||(m=[m,m]),"number"==typeof y&&(y=[y,y]),d.from.each((function(t){x(f,t,!0),x(g,t,!1)})),v.each((function(t){var e=v.getItemModel(t).get("lineStyle.color");v.setItemVisual(t,{color:e||f.getItemVisual(t,"color")}),v.setItemLayout(t,[f.getItemLayout(t),g.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolRotate:f.getItemVisual(t,"symbolRotate"),fromSymbolSize:f.getItemVisual(t,"symbolSize"),fromSymbol:f.getItemVisual(t,"symbol"),toSymbolRotate:g.getItemVisual(t,"symbolRotate"),toSymbolSize:g.getItemVisual(t,"symbolSize"),toSymbol:g.getItemVisual(t,"symbol")})})),h.updateData(v),d.line.eachItemGraphicEl((function(t,e){t.traverse((function(t){t.dataModel=n}))})),h.__keep=!0,h.group.silent=n.get("silent")||e.get("silent")}});function p(n,r,o){var a;a=n?t.map(n&&n.dimensions,(function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)})):[{name:"value",type:"float"}];var l=new e(a,o),u=new e(a,o),c=new e([],o),d=t.map(o.get("data"),t.curry(s,r,n,o));n&&(d=t.filter(d,t.curry(h,n)));var p=n?i.dimValueGetter:function(t){return t.value};return l.initData(t.map(d,(function(t){return t[0]})),null,p),u.initData(t.map(d,(function(t){return t[1]})),null,p),c.initData(t.map(d,(function(t){return t[2]}))),c.hasItemOption=!0,{from:l,to:u,line:c}}Mtt=d}(),t.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))}(),function(){if(Ltt)return Rtt;Ltt=1;var t=a$();(function(){if(Att)return Ctt;Att=1;var t=dtt(),e=t.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});Ctt=e})(),function(){if(Dtt)return Ntt;Dtt=1;var t=_W(),e=aU(),n=Qq(),i=UX(),r=EX(),o=_tt(),a=btt(),s=function(e,n,i,r){var a=o.dataTransform(e,r[0]),s=o.dataTransform(e,r[1]),l=t.retrieve,u=a.coord,h=s.coord;u[0]=l(u[0],-1/0),u[1]=l(u[1],-1/0),h[0]=l(h[0],1/0),h[1]=l(h[1],1/0);var c=t.mergeAll([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function h(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!u(1,n,i)&&!u(0,n,i))||o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1})}function c(t,e,n,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=i.parsePercent(u.get(n[0]),o.getWidth()),c=i.parsePercent(u.get(n[1]),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(d,d),a=s.dataToPoint(d,!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);l(g)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):l(v)&&(a[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];return a}var d=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function p(e,i,r){var o,a,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,(function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)})),a=new n(t.map(l,(function(t,e){return{name:t,type:o[e%2].type}})),r)):a=new n(o=[{name:"value",type:"float"}],r);var u=t.map(r.get("data"),t.curry(s,i,e,r));e&&(u=t.filter(u,t.curry(h,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(u,null,c),a.hasItemOption=!0,a}a.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries((function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each((function(n){var o=t.map(d,(function(t){return c(r,n,t,e,i)}));r.setItemLayout(n,o),r.getItemGraphicEl(n).setShape("points",o)}))}}),this)},renderSeries:function(n,i,o,a){var s=n.coordinateSystem,u=n.id,h=n.getData(),f=this.markerGroupMap,g=f.get(u)||f.set(u,{group:new r.Group});this.group.add(g.group),g.__keep=!0;var v=p(s,n,i);i.setData(v),v.each((function(e){var i=t.map(d,(function(t){return c(v,e,t,n,a)})),r=!0;t.each(d,(function(t){if(r){var n=v.get(t[0],e),i=v.get(t[1],e);(l(n)||s.getAxis("x").containData(n))&&(l(i)||s.getAxis("y").containData(i))&&(r=!1)}})),v.setItemLayout(e,{points:i,allClipped:r}),v.setItemVisual(e,{color:h.getVisual("color")})})),v.diff(g.__data).add((function(t){var e=v.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});v.setItemGraphicEl(t,n),g.group.add(n)}})).update((function(t,e){var n=g.__data.getItemGraphicEl(e),o=v.getItemLayout(t);o.allClipped?n&&g.group.remove(n):(n?r.updateProps(n,{shape:{points:o.points}},i,t):n=new r.Polygon({shape:{points:o.points}}),v.setItemGraphicEl(t,n),g.group.add(n))})).remove((function(t){var e=g.__data.getItemGraphicEl(t);g.group.remove(e)})).execute(),v.eachItemGraphicEl((function(n,o){var a=v.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=v.getItemVisual(o,"color");n.useStyle(t.defaults(a.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(u,.4),stroke:u})),n.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,s,l,{labelFetcher:i,labelDataIndex:o,defaultText:v.getName(o)||"",isRectText:!0,autoColor:u}),r.setHoverStyle(n,{}),n.dataModel=i})),g.__data=v,g.group.silent=i.get("silent")||n.get("silent")}})}(),t.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))}(),Qtt||(Qtt=1,$tt(),function(){if(Ytt)return Utt;Ytt=1;var t=ztt(),e=ij(),n=e.mergeLayoutParam,i=e.getLayoutParams,r=t.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,a){var s=i(t);r.superCall(this,"init",t,e,n,a),o(this,t,s)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),o(this,this.option,t)}});function o(t,e,i){var r=[1,1];r[t.getOrient().index]=0,n(e,i,{type:"box",ignoreSize:r})}var a=r;Utt=a}(),function(){if(Xtt)return Ztt;Xtt=1;var t=_W(),e=EX(),n=ij(),i=qtt(),r=e.Group,o=["width","height"],a=["x","y"],s=i.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new r),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new r),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,i,r,o,a,l,u){var h=this;s.superCall(this,"renderInner",n,i,r,o,a,l,u);var c=this._controllerGroup,d=i.get("pageIconSize",!0);t.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(n,r){var a=n+"DataIndex",s=e.createIcon(i.get("pageIcons",!0)[i.getOrient().name][r],{onclick:t.bind(h._pageGo,h,a,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=n,c.add(s)}c.add(new e.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,i,r,s,l,u){var h=this.getSelectorGroup(),c=e.getOrient().index,d=o[c],p=a[c],f=o[1-c],g=a[1-c];l&&n.box("horizontal",h,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.clone(r);l&&(x[d]=r[d]-m[d]-v);var _=this._layoutContentAndController(e,s,x,c,d,f,g);if(l){if("end"===u)y[c]+=_[d]+v;else{var b=m[d]+v;y[c]-=b,_[p]-=b}_[d]+=m[d]+v,y[1-c]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-c]),h.attr("position",y)}return _},_layoutContentAndController:function(i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;n.box(i.get("orient"),h,i.get("itemGap"),a?o.width:null,a?null:o.height),n.box("horizontal",d,i.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>o[s],v=[-p.x,-p.y];r||(v[a]=h.position[a]);var m=[0,0],y=[-f.x,-f.y],x=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));g&&("end"===i.get("pageButtonPosition",!0)?y[a]+=o[s]-f[s]:m[a]+=f[s]+x),y[1-a]+=p[l]/2-f[l]/2,h.attr("position",v),c.attr("position",m),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?o[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-a]),c.__rectSize=o[s],g){var b={x:0,y:0};b[s]=Math.max(o[s]-f[s]-x,0),b[l]=_[l],c.setClipPath(new e.Rect({shape:b})),c.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(h,{position:w.contentPosition},!!g&&i),this._updatePageInfoView(i,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],(function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),a=n.pageIndex,s=null!=a?a+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,s=o[r],l=a[r],u=this._findTargetItemIndex(e),h=n.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[r]=-g.s;for(var v=u+1,m=g,y=g,x=null;v<=d;++v)(!(x=_(h[v]))&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=x;for(v=u-1,m=g,y=g,x=null;v>=-1;--v)(x=_(h[v]))&&b(y,x.s)||!(m.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n}}),l=s;Ztt=l}(),function(){if(Jtt)return oet;Jtt=1;var t=a$();t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}()),$tt(),get||(get=1,set(),xet()),xet(),set(),int||(int=1,$et(),ont()),$et(),ont(),function(){if(hnt)return cnt;hnt=1,function(){if(snt)return dnt;snt=1;var t=mW(),e=CW().applyTransform,n=LU(),i=aU(),r=tY(),o=yY(),a=xY(),s=_Y(),l=bY(),u=RZ(),h=kZ(),c=jY(),d=OX(),p=fnt(),f=c.CMD,g=Math.round,v=Math.sqrt,m=Math.abs,y=Math.cos,x=Math.sin,_=Math.max;if(!t.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",S=21600,M=S/2,I=1e5,T=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},A=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},D=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},k=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},P=function(t,e,n){return(parseFloat(t)||0)*I+(parseFloat(e)||0)*T+n},O=o.parsePercent,R=function(t,e,n){var r=i.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=D(r[0],r[1],r[2]),t.opacity=n*r[3])},N=function(t){var e=i.parse(t);return[D(e[0],e[1],e[2]),e[3]]},E=function(t,n,i){var r=n.fill;if(null!=r)if(r instanceof d){var o,a=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,p=h.height;if("linear"===r.type){o="gradient";var f=i.transform,g=[r.x*c,r.y*p],v=[r.x2*c,r.y2*p];f&&(e(g,g,f),e(v,v,f));var m=v[0]-g[0],y=v[1]-g[1];(a=180*Math.atan2(m,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",g=[r.x*c,r.y*p],f=i.transform;var x=i.scale,b=c,w=p;s=[(g[0]-h.x)/b,(g[1]-h.y)/w],f&&e(g,g,f),b/=x[0]*S,w/=x[1]*S;var M=_(b,w);l=0/M,u=2*r.r/M-l}var I=r.colorStops.slice();I.sort((function(t,e){return t.offset-e.offset}));for(var T=I.length,C=[],A=[],D=0;D=2){var P=C[0][0],O=C[1][0],E=C[0][1]*n.opacity,z=C[1][1]*n.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=O,t.colors=A.join(","),t.opacity=z,t.opacity2=E}"radial"===o&&(t.focusposition=s.join(","))}else R(t,r,n.opacity)},z=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||R(t,e.stroke,e.opacity)},V=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&k(t,o),o||(o=p.createNode(e)),r?E(o,n,i):z(o,n),L(t,o)):(t[r?"filled":"stroked"]="false",k(t,o))},B=[[],[],[]],G=function(t,n){var i,r,o,a,s,l,u=f.M,h=f.C,c=f.L,d=f.A,p=f.Q,m=[],_=t.data,w=t.len();for(a=0;a.01?W&&(U+=270/S):Math.abs(Y-z)<1e-4?W&&UE?A-=270/S:A+=270/S:W&&Yz?C+=270/S:C-=270/S),m.push(Z,g(((E-V)*O+k)*S-M),b,g(((z-G)*R+P)*S-M),b,g(((E+V)*O+k)*S-M),b,g(((z+G)*R+P)*S-M),b,g((U*O+k)*S-M),b,g((Y*R+P)*S-M),b,g((C*O+k)*S-M),b,g((A*R+P)*S-M)),s=C,l=A;break;case f.R:var X=B[0],j=B[1];X[0]=_[a++],X[1]=_[a++],j[0]=X[0]+_[a++],j[1]=X[1]+_[a++],n&&(e(X,X,n),e(j,j,n)),X[0]=g(X[0]*S-M),j[0]=g(j[0]*S-M),X[1]=g(X[1]*S-M),j[1]=g(j[1]*S-M),m.push(" m ",X[0],b,X[1]," l ",j[0],b,X[1]," l ",j[0],b,j[1]," l ",X[0],b,j[1]);break;case f.Z:m.push(" x ")}if(i>0){m.push(r);for(var q=0;qZ&&(Y=0,U={});var n,i=X.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(Gu){}e={style:i.fontStyle||W,variant:i.fontVariant||W,weight:i.fontWeight||W,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},U[t]=e,Y++}return e};r.$override("measureText",(function(t,e){var n=p.doc;H||((H=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(H));try{H.style.font=e}catch(i){}return H.innerHTML="",H.appendChild(n.createTextNode(t)),{width:H.offsetWidth}}));for(var q=new n,K=function(t,n,i,a){var s=this.style;this.__dirty&&o.normalizeTextStyle(s,!0);var l=s.text;if(null!=l&&(l+=""),l){if(s.rich){var u=r.parseRichText(l,s);l=[];for(var h=0;h18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);var a,s,l="sans-serif",u="12px "+l,h=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Jt(s,a):Jt(a,s))}(s,a,r);if(l)return l(t,n,i),!0}return!1}function ne(t){return"CANVAS"===t.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(t){return null==t?"":(t+"").replace(ie,(function(t,e){return re[e]}))}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ue(t,e,n,i){return n=n||{},i?he(t,e,n):le&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):he(t,e,n),n}function he(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ne(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(ee(se,t,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function de(t,e,n){if(null!=(e=ce(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ue(t,r,e,n)}else{ue(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ae.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function pe(t,e,n,i){t.addEventListener(e,n,i)}function fe(t,e,n,i){t.removeEventListener(e,n,i)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ve(t){return 2===t.which||3===t.which}var me=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ye(r)/ye(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function _e(){return[1,0,0,1,0,0]}function be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function we(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Se(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Me(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ie(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function Te(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ce(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ae(t){var e=[1,0,0,1,0,0];return we(e,t),e}const De=Object.freeze(Object.defineProperty({__proto__:null,clone:Ae,copy:we,create:_e,identity:be,invert:Ce,mul:Se,rotate:Ie,scale:Te,translate:Me},Symbol.toStringTag,{value:"Module"}));var Le=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ke=Math.min,Pe=Math.max,Oe=new Le,Re=new Le,Ne=new Le,Ee=new Le,ze=new Le,Ve=new Le,Be=t("G",function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ke(t.x,this.x),n=ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Me(r,r,[-e.x,-e.y]),Te(r,r,[n,i]),Me(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(of&&(f=x,gf&&(f=_,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Oe.x=Ne.x=n.x,Oe.y=Ee.y=n.y,Re.x=Ee.x=n.x+n.width,Re.y=Ne.y=n.y+n.height,Oe.transform(i),Ee.transform(i),Re.transform(i),Ne.transform(i),e.x=ke(Oe.x,Re.x,Ne.x,Ee.x),e.y=ke(Oe.y,Re.y,Ne.y,Ee.y);var l=Pe(Oe.x,Re.x,Ne.x,Ee.x),u=Pe(Oe.y,Re.y,Ne.y,Ee.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}()),Ge="silent";function Fe(){ge(this.event)}var He=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return i(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),We=function(t,e){this.x=t,this.y=e},Ue=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ye=new Be(0,0,0,0),Ze=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new We(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new He,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new jt(a),a}return i(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Ue,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new We(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new We(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Fe}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new We(t,e);if(je(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Ye.copy(h.getBoundingRect()),h.transform&&Ye.applyTransform(h.transform),Ye.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Xe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ge)){e.target=a;break}}}function qe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function Ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function $e(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function tn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Qe(t[h],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(c=Je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1===--s){m=!0;break}if(0!==(v=s-Je(t[u],a,0,s,s-1,e))){for(s-=v,p=1+(c-=v),d=1+(h-=v),l=0;l=7||v>=7);if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ke(t,n,i,e))s&&(l=s),$e(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ze.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var nn=1,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ln,un=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(an(),u.z=0),isNaN(u.z2)&&(an(),u.z2=0),isNaN(u.zlevel)&&(an(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();t("r",ln),t("r",ln=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)});var hn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-hn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*hn.bounceIn(2*t):.5*hn.bounceOut(2*t-1)+.5}},cn=Math.pow,dn=Math.sqrt,pn=1e-8,fn=1e-4,gn=dn(3),vn=1/3,mn=It(),yn=It(),xn=It();function _n(t){return t>-1e-8&&tpn||t<-1e-8}function wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Sn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(_n(h)&&_n(c))_n(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=c*c-4*h*d;if(_n(f)){var g=c/h,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=dn(f),y=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-cn(-y,vn):cn(y,vn))+(x=x<0?-cn(-x,vn):cn(x,vn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*dn(h*h*h)),b=Math.acos(_)/3,w=dn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+gn*Math.sin(b)))/(3*a),(-s+w*(S-gn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function In(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(_n(a))bn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_n(u))r[0]=-o/(2*a);else if(u>0){var h,c=dn(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Cn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,v=.005,m=1/0;mn[0]=l,mn[1]=u;for(var y=0;y<1;y+=.05)yn[0]=wn(t,n,r,a,y),yn[1]=wn(e,i,o,s,y),(f=Ft(mn,yn))=0&&f=0&&v=1?1:Mn(0,i,o,1,t,s)&&wn(0,r,a,1,s[0])}}}var zn=function(){function t(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||wt,this.ondestroy=t.ondestroy||wt,this.onrestart=t.onrestart||wt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:hn[t]||En(t)},t}(),Vn=function(t){this.value=t},Bn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vn(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Gn=t("L",function(){function t(t){this._list=new Bn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()),Fn={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 Hn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Wn(t){return t<0?0:t>1?1:t}function Un(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Hn(parseFloat(e)/100*255):Hn(parseInt(e,10))}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wn(parseFloat(e)/100):Wn(parseFloat(e))}function Zn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Xn(t,e,n){return t+(e-t)*n}function jn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kn=new Gn(20),$n=null;function Jn(t,e){$n&&qn($n,e),$n=Kn.put(t,$n||e.slice())}function Qn(t,e){if(t){e=e||[];var n=Kn.get(t);if(n)return qn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Fn)return qn(e,Fn[i]),Jn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(jn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Jn(t,e),e):void jn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(jn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Jn(t,e),e):void jn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?jn(e,+u[0],+u[1],+u[2],1):jn(e,0,0,0,1);h=Yn(u.pop());case"rgb":return u.length>=3?(jn(e,Un(u[0]),Un(u[1]),Un(u[2]),3===u.length?h:Yn(u[3])),Jn(t,e),e):void jn(e,0,0,0,1);case"hsla":return 4!==u.length?void jn(e,0,0,0,1):(u[3]=Yn(u[3]),ti(u,e),Jn(t,e),e);case"hsl":return 3!==u.length?void jn(e,0,0,0,1):(ti(u,e),Jn(t,e),e);default:return}}jn(e,0,0,0,1)}}function ti(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Yn(t[1]),r=Yn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return jn(e=e||[],Hn(255*Zn(a,o,n+1/3)),Hn(255*Zn(a,o,n)),Hn(255*Zn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ei(t,e){var n=Qn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return li(n,4===n.length?"rgba":"rgb")}}function ni(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Hn(Xn(a[0],s[0],l)),n[1]=Hn(Xn(a[1],s[1],l)),n[2]=Hn(Xn(a[2],s[2],l)),n[3]=Wn(Xn(a[3],s[3],l)),n}}var ii=ni;function ri(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Qn(e[r]),s=Qn(e[o]),l=i-r,u=li([Hn(Xn(a[0],s[0],l)),Hn(Xn(a[1],s[1],l)),Hn(Xn(a[2],s[2],l)),Wn(Xn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var oi=ri;function ai(t,e,n,i){var r=Qn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Yn(n)),null!=i&&(r[2]=Yn(i)),li(ti(r),"rgba")}function si(t,e){var n=Qn(t);if(n&&null!=e)return n[3]=Wn(e),li(n,"rgba")}function li(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ui(t,e){var n=Qn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var hi=new Gn(100);function ci(t){if(X(t)){var e=hi.get(t);return e||(e=ei(t,-.1),hi.put(t,e)),e}if(tt(t)){var n=L({},t);return n.colorStops=V(t.colorStops,(function(t){return{offset:t.offset,color:ei(t.color,-.1)}})),n}return t}const di=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ni,fastMapToColor:ii,lerp:ri,lift:ei,liftColor:ci,lum:ui,mapToColor:oi,modifyAlpha:si,modifyHSL:ai,parse:Qn,random:function(){return li([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:li,toHex:function(t){var e=Qn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var pi=Math.round;function fi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Qn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var gi=1e-4;function vi(t){return t-1e-4}function mi(t){return pi(1e3*t)/1e3}function yi(t){return pi(1e4*t)/1e4}var xi={left:"start",right:"end",center:"middle",middle:"middle"};function _i(t){return t&&!!t.image}function bi(t){return _i(t)||function(t){return t&&!!t.svgElement}(t)}function wi(t){return"linear"===t.type}function Si(t){return"radial"===t.type}function Mi(t){return t&&("linear"===t.type||"radial"===t.type)}function Ii(t){return"url(#"+t+")"}function Ti(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ci(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*St,r=ot(t.scaleX,1),o=ot(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+pi(a*St)+"deg, "+pi(s*St)+"deg)"),l.join(" ")}var Ai=o.hasGlobalWindow&&Z(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Di=Array.prototype.slice;function Li(t,e,n){return(e-t)*n+t}function ki(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!q(e[0])||2===l&&!q(e[0][0]))&&(o=!0)}else if(q(e)&&!it(e))a=0;else if(X(e))if(isNaN(+e)){var u=Qn(e);u&&(s=u,a=3)}else a=0;else if(tt(e)){var h=L({},s);h.colorStops=V(e.colorStops,(function(t){return{offset:t.offset,color:Qn(t.color)}})),wi(e)?a=4:Si(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:hn[n]||En(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Bi(i),l=Vi(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?Gi:t[h];if(!Bi(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Bi(s))1===s?ki(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Ei(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}());function Wi(){return(new Date).getTime()}var Ui,Yi,Zi=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return i(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Wi()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ln((function e(){t._running&&(ln(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Wi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Wi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Wi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Hi(t,e.loop);return this.addAnimator(n),n},e}(qt),Xi=o.domSupported,ji=(Yi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ui=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:V(Ui,(function(t){var e=t.replace("mouse","pointer");return Yi.hasOwnProperty(e)?e:t}))}),qi=["mousemove","mouseup"],Ki=["pointermove","pointerup"],$i=!1;function Ji(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Qi(t){t&&(t.zrByTouch=!0)}function tr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var er=function(t,e){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nr={mousedown:function(t){t=de(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=de(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=de(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tr(this,(t=de(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$i=!0,t=de(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$i||(t=de(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qi(t=de(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"change"),nr.mousemove.call(this,t)},touchend:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"end"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){Ji(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){Ji(t)||nr.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],(function(t){nr[t]=function(e){e=de(this.dom,e),this.trigger(t,e)}}));var ir={pointermove:function(t){Ji(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function rr(t,e){var n=e.domHandlers;o.pointerEventsSupported?z(ji.pointer,(function(i){ar(e,i,(function(e){n[i].call(t,e)}))})):(o.touchEventsSupported&&z(ji.touch,(function(i){ar(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),z(ji.mouse,(function(i){ar(e,i,(function(r){r=ce(r),e.touching||n[i].call(t,r)}))})))}function or(t,e){function n(n){ar(e,n,(function(i){i=ce(i),tr(t,i.target)||(i=function(t,e){return de(t.dom,new er(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}o.pointerEventsSupported?z(Ki,n):o.touchEventsSupported||z(qi,n)}function ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,pe(t.domTarget,e,n,i)}function sr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&fe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ur=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new lr(e,nr),Xi&&(i._globalHandlerScope=new lr(document,ir)),rr(i,i._localHandlerScope),i}return i(e,t),e.prototype.dispose=function(){sr(this._localHandlerScope),Xi&&sr(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?or(this,e):sr(e)}},e}(qt),hr=1;o.hasGlobalWindow&&(hr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cr=hr,dr="#333",pr="#ccc",fr=be,gr=5e-5;function vr(t){return t>gr||t<-5e-5}var mr=[],yr=[],xr=[1,0,0,1,0,0],_r=Math.abs,br=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return vr(this.rotation)||vr(this.x)||vr(this.y)||vr(this.scaleX-1)||vr(this.scaleY-1)||vr(this.skewX)||vr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):fr(n),t&&(e?Se(n,t,n):we(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(fr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,i=mr[1]<0?-1:1,r=((mr[0]-n)*e+n)/mr[0]||0,o=((mr[1]-i)*e+i)/mr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ce(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Se(yr,t.invTransform,e),e=yr);var n=this.originX,i=this.originY;(n||i)&&(xr[4]=n,xr[5]=i,Se(yr,e,xr),yr[4]-=n,yr[5]-=i,e=yr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&_r(t[0]-1)>1e-10&&_r(t[3]-1)>1e-10?Math.sqrt(_r(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Sr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&Ie(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Pr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=kr(i[0],n.width),u+=kr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Or="__zr_normal__",Rr=wr.concat(["ignore"]),Nr=B(wr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Er={},zr=new Be(0,0,0,0),Vr=function(){function t(t){this.id=I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=zr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Er,n,u):Pr(Er,n,u),r.x=Er.x,r.y=Er.y,o=Er.align,a=Er.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=kr(h[0],u.width),d=kr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=nn,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pr:dr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Qn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,li(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},L(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(K(t))for(var n=H(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Or,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Or;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(O(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn),s}T("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=O(i,t),o=O(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=O(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=O(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);var a,s,l="sans-serif",u="12px "+l,h=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Jt(s,a):Jt(a,s))}(s,a,r);if(l)return l(t,n,i),!0}return!1}function ne(t){return"CANVAS"===t.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(t){return null==t?"":(t+"").replace(ie,(function(t,e){return re[e]}))}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ue(t,e,n,i){return n=n||{},i?he(t,e,n):le&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):he(t,e,n),n}function he(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ne(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(ee(se,t,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function de(t,e,n){if(null!=(e=ce(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ue(t,r,e,n)}else{ue(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ae.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function pe(t,e,n,i){t.addEventListener(e,n,i)}function fe(t,e,n,i){t.removeEventListener(e,n,i)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ve(t){return 2===t.which||3===t.which}var me=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ye(r)/ye(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function _e(){return[1,0,0,1,0,0]}function be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function we(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Se(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Me(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ie(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function Te(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ce(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ae(t){var e=[1,0,0,1,0,0];return we(e,t),e}const De=Object.freeze(Object.defineProperty({__proto__:null,clone:Ae,copy:we,create:_e,identity:be,invert:Ce,mul:Se,rotate:Ie,scale:Te,translate:Me},Symbol.toStringTag,{value:"Module"}));var Le=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ke=Math.min,Pe=Math.max,Oe=new Le,Re=new Le,Ne=new Le,Ee=new Le,ze=new Le,Ve=new Le,Be=t("E",function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ke(t.x,this.x),n=ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Me(r,r,[-e.x,-e.y]),Te(r,r,[n,i]),Me(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(of&&(f=x,gf&&(f=_,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Oe.x=Ne.x=n.x,Oe.y=Ee.y=n.y,Re.x=Ee.x=n.x+n.width,Re.y=Ne.y=n.y+n.height,Oe.transform(i),Ee.transform(i),Re.transform(i),Ne.transform(i),e.x=ke(Oe.x,Re.x,Ne.x,Ee.x),e.y=ke(Oe.y,Re.y,Ne.y,Ee.y);var l=Pe(Oe.x,Re.x,Ne.x,Ee.x),u=Pe(Oe.y,Re.y,Ne.y,Ee.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}()),Ge="silent";function Fe(){ge(this.event)}var He=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return i(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),We=function(t,e){this.x=t,this.y=e},Ue=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ye=new Be(0,0,0,0),Ze=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new We(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new He,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new jt(a),a}return i(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Ue,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new We(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new We(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Fe}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new We(t,e);if(je(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Ye.copy(h.getBoundingRect()),h.transform&&Ye.applyTransform(h.transform),Ye.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Xe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ge)){e.target=a;break}}}function qe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function Ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function $e(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function tn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Qe(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=Je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1==--s){m=!0;break}if(0!=(v=s-Je(t[u],a,0,s,s-1,e))){for(s-=v,p=1+(c-=v),d=1+(h-=v),l=0;l=7||v>=7);if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ke(t,n,i,e))s&&(l=s),$e(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ze.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var nn=1,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ln,un=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(an(),u.z=0),isNaN(u.z2)&&(an(),u.z2=0),isNaN(u.zlevel)&&(an(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();ln=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var hn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-hn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*hn.bounceIn(2*t):.5*hn.bounceOut(2*t-1)+.5}},cn=Math.pow,dn=Math.sqrt,pn=1e-8,fn=1e-4,gn=dn(3),vn=1/3,mn=It(),yn=It(),xn=It();function _n(t){return t>-1e-8&&tpn||t<-1e-8}function wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Sn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(_n(h)&&_n(c))_n(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=c*c-4*h*d;if(_n(f)){var g=c/h,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=dn(f),y=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-cn(-y,vn):cn(y,vn))+(x=x<0?-cn(-x,vn):cn(x,vn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*dn(h*h*h)),b=Math.acos(_)/3,w=dn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+gn*Math.sin(b)))/(3*a),(-s+w*(S-gn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function In(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(_n(a))bn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_n(u))r[0]=-o/(2*a);else if(u>0){var h,c=dn(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Cn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,v=.005,m=1/0;mn[0]=l,mn[1]=u;for(var y=0;y<1;y+=.05)yn[0]=wn(t,n,r,a,y),yn[1]=wn(e,i,o,s,y),(f=Ft(mn,yn))=0&&f=0&&v=1?1:Mn(0,i,o,1,t,s)&&wn(0,r,a,1,s[0])}}}var zn=function(){function t(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||wt,this.ondestroy=t.ondestroy||wt,this.onrestart=t.onrestart||wt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:hn[t]||En(t)},t}(),Vn=function(t){this.value=t},Bn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vn(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Gn=function(){function t(t){this._list=new Bn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Fn={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 Hn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Wn(t){return t<0?0:t>1?1:t}function Un(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Hn(parseFloat(e)/100*255):Hn(parseInt(e,10))}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wn(parseFloat(e)/100):Wn(parseFloat(e))}function Zn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Xn(t,e,n){return t+(e-t)*n}function jn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kn=new Gn(20),$n=null;function Jn(t,e){$n&&qn($n,e),$n=Kn.put(t,$n||e.slice())}function Qn(t,e){if(t){e=e||[];var n=Kn.get(t);if(n)return qn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Fn)return qn(e,Fn[i]),Jn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(jn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Jn(t,e),e):void jn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(jn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Jn(t,e),e):void jn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?jn(e,+u[0],+u[1],+u[2],1):jn(e,0,0,0,1);h=Yn(u.pop());case"rgb":return u.length>=3?(jn(e,Un(u[0]),Un(u[1]),Un(u[2]),3===u.length?h:Yn(u[3])),Jn(t,e),e):void jn(e,0,0,0,1);case"hsla":return 4!==u.length?void jn(e,0,0,0,1):(u[3]=Yn(u[3]),ti(u,e),Jn(t,e),e);case"hsl":return 3!==u.length?void jn(e,0,0,0,1):(ti(u,e),Jn(t,e),e);default:return}}jn(e,0,0,0,1)}}function ti(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Yn(t[1]),r=Yn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return jn(e=e||[],Hn(255*Zn(a,o,n+1/3)),Hn(255*Zn(a,o,n)),Hn(255*Zn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ei(t,e){var n=Qn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return li(n,4===n.length?"rgba":"rgb")}}function ni(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Hn(Xn(a[0],s[0],l)),n[1]=Hn(Xn(a[1],s[1],l)),n[2]=Hn(Xn(a[2],s[2],l)),n[3]=Wn(Xn(a[3],s[3],l)),n}}var ii=ni;function ri(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Qn(e[r]),s=Qn(e[o]),l=i-r,u=li([Hn(Xn(a[0],s[0],l)),Hn(Xn(a[1],s[1],l)),Hn(Xn(a[2],s[2],l)),Wn(Xn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var oi=ri;function ai(t,e,n,i){var r=Qn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Yn(n)),null!=i&&(r[2]=Yn(i)),li(ti(r),"rgba")}function si(t,e){var n=Qn(t);if(n&&null!=e)return n[3]=Wn(e),li(n,"rgba")}function li(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ui(t,e){var n=Qn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var hi=new Gn(100);function ci(t){if(X(t)){var e=hi.get(t);return e||(e=ei(t,-.1),hi.put(t,e)),e}if(tt(t)){var n=L({},t);return n.colorStops=V(t.colorStops,(function(t){return{offset:t.offset,color:ei(t.color,-.1)}})),n}return t}const di=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ni,fastMapToColor:ii,lerp:ri,lift:ei,liftColor:ci,lum:ui,mapToColor:oi,modifyAlpha:si,modifyHSL:ai,parse:Qn,random:function(){return li([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:li,toHex:function(t){var e=Qn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var pi=Math.round;function fi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Qn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var gi=1e-4;function vi(t){return t-1e-4}function mi(t){return pi(1e3*t)/1e3}function yi(t){return pi(1e4*t)/1e4}var xi={left:"start",right:"end",center:"middle",middle:"middle"};function _i(t){return t&&!!t.image}function bi(t){return _i(t)||function(t){return t&&!!t.svgElement}(t)}function wi(t){return"linear"===t.type}function Si(t){return"radial"===t.type}function Mi(t){return t&&("linear"===t.type||"radial"===t.type)}function Ii(t){return"url(#"+t+")"}function Ti(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ci(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*St,r=ot(t.scaleX,1),o=ot(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+pi(a*St)+"deg, "+pi(s*St)+"deg)"),l.join(" ")}var Ai=o.hasGlobalWindow&&Z(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Di=Array.prototype.slice;function Li(t,e,n){return(e-t)*n+t}function ki(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!q(e[0])||2===l&&!q(e[0][0]))&&(o=!0)}else if(q(e)&&!it(e))a=0;else if(X(e))if(isNaN(+e)){var u=Qn(e);u&&(s=u,a=3)}else a=0;else if(tt(e)){var h=L({},s);h.colorStops=V(e.colorStops,(function(t){return{offset:t.offset,color:Qn(t.color)}})),wi(e)?a=4:Si(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:hn[n]||En(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Bi(i),l=Vi(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?Gi:t[h];if(!Bi(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Bi(s))1===s?ki(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Ei(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Wi(){return(new Date).getTime()}var Ui,Yi,Zi=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return i(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Wi()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ln((function e(){t._running&&(ln(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Wi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Wi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Wi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Hi(t,e.loop);return this.addAnimator(n),n},e}(qt),Xi=o.domSupported,ji=(Yi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ui=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:V(Ui,(function(t){var e=t.replace("mouse","pointer");return Yi.hasOwnProperty(e)?e:t}))}),qi=["mousemove","mouseup"],Ki=["pointermove","pointerup"],$i=!1;function Ji(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Qi(t){t&&(t.zrByTouch=!0)}function tr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var er=function(t,e){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nr={mousedown:function(t){t=de(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=de(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=de(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tr(this,(t=de(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$i=!0,t=de(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$i||(t=de(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qi(t=de(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"change"),nr.mousemove.call(this,t)},touchend:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"end"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){Ji(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){Ji(t)||nr.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],(function(t){nr[t]=function(e){e=de(this.dom,e),this.trigger(t,e)}}));var ir={pointermove:function(t){Ji(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function rr(t,e){var n=e.domHandlers;o.pointerEventsSupported?z(ji.pointer,(function(i){ar(e,i,(function(e){n[i].call(t,e)}))})):(o.touchEventsSupported&&z(ji.touch,(function(i){ar(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),z(ji.mouse,(function(i){ar(e,i,(function(r){r=ce(r),e.touching||n[i].call(t,r)}))})))}function or(t,e){function n(n){ar(e,n,(function(i){i=ce(i),tr(t,i.target)||(i=function(t,e){return de(t.dom,new er(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}o.pointerEventsSupported?z(Ki,n):o.touchEventsSupported||z(qi,n)}function ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,pe(t.domTarget,e,n,i)}function sr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&fe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ur=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new lr(e,nr),Xi&&(i._globalHandlerScope=new lr(document,ir)),rr(i,i._localHandlerScope),i}return i(e,t),e.prototype.dispose=function(){sr(this._localHandlerScope),Xi&&sr(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?or(this,e):sr(e)}},e}(qt),hr=1;o.hasGlobalWindow&&(hr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cr=hr,dr="#333",pr="#ccc",fr=be,gr=5e-5;function vr(t){return t>gr||t<-5e-5}var mr=[],yr=[],xr=[1,0,0,1,0,0],_r=Math.abs,br=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return vr(this.rotation)||vr(this.x)||vr(this.y)||vr(this.scaleX-1)||vr(this.scaleY-1)||vr(this.skewX)||vr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):fr(n),t&&(e?Se(n,t,n):we(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(fr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,i=mr[1]<0?-1:1,r=((mr[0]-n)*e+n)/mr[0]||0,o=((mr[1]-i)*e+i)/mr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ce(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Se(yr,t.invTransform,e),e=yr);var n=this.originX,i=this.originY;(n||i)&&(xr[4]=n,xr[5]=i,Se(yr,e,xr),yr[4]-=n,yr[5]-=i,e=yr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&_r(t[0]-1)>1e-10&&_r(t[3]-1)>1e-10?Math.sqrt(_r(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Sr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&Ie(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Pr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=kr(i[0],n.width),u+=kr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Or="__zr_normal__",Rr=wr.concat(["ignore"]),Nr=B(wr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Er={},zr=new Be(0,0,0,0),Vr=function(){function t(t){this.id=I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=zr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Er,n,u):Pr(Er,n,u),r.x=Er.x,r.y=Er.y,o=Er.align,a=Er.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=kr(h[0],u.width),d=kr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=nn,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pr:dr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Qn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,li(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},L(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(K(t))for(var n=H(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Or,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Or;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(O(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn),s}T("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=O(i,t),o=O(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=O(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=O(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function no(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return X(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function io(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),to),t=(+t).toFixed(e),n?t:+t}function ro(t){return t.sort((function(t,e){return t-e})),t}function oo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ao(t)}function ao(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function so(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function lo(t,e){var n=B(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=V(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=V(r,(function(t){return Math.floor(t)})),s=B(a,(function(t,e){return t+e}),0),l=V(r,(function(t,e){return t-a[e]}));su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return V(a,(function(t){return t/i}))}function uo(t,e){var n=Math.max(oo(t),oo(e)),i=t+e;return n>to?i:io(i,n)}var ho=9007199254740991;function co(t){var e=2*Math.PI;return(t%e+e)%e}function po(t){return t>-1e-4&&t=10&&e++,e}function yo(t,e){var n=mo(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function xo(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function _o(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&O(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var la=sa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ua=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return la(this,t,e)},t}(),ha=new Gn(50);function ca(t){if("string"==typeof t){var e=ha.get(t);return e&&e.image}return t}function da(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ha.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!fa(e=o.image)&&o.pending.push(a):((e=c.loadImage(t,pa,pa)).__zrImageSrc=t,ha.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function pa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ir(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ya(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Ir(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?xa(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=Ir(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function xa(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=Ta(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ma[t]}function Ta(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+p>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,s="",h=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Ca="__zr_style_"+Math.round(10*Math.random()),Aa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Da={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Aa[Ca]=!0;var La=["z","z2","invisible"],ka=["invisible"],Pa=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),e.prototype._init=function(e){for(var n=H(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ga[0]=Va(r)*n+t,Ga[1]=za(r)*i+e,Fa[0]=Va(o)*n+t,Fa[1]=za(o)*i+e,u(s,Ga,Fa),h(l,Ga,Fa),(r%=Ba)<0&&(r+=Ba),(o%=Ba)<0&&(o+=Ba),r>o&&!a?o+=Ba:rr&&(Ha[0]=Va(p)*n+t,Ha[1]=za(p)*i+e,u(s,Ha,s),h(l,Ha,l))}var Ka={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$a=[],Ja=[],Qa=[],ts=[],es=[],ns=[],is=Math.min,rs=Math.max,os=Math.cos,as=Math.sin,ss=Math.abs,ls=Math.PI,us=2*ls,hs="undefined"!=typeof Float32Array,cs=[];function ds(t){return Math.round(t/ls*1e8)/1e8%2*ls}function ps(t,e){var n=ds(t[0]);n<0&&(n+=us);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=us?r=n+us:e&&n-r>=us?r=n-us:!e&&n>r?r=n+(us-ds(n-r)):e&&n0&&(this._ux=ss(n/cr/t)||0,this._uy=ss(n/cr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ka.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ss(t-this._xi),i=ss(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ka.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ka.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ka.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),cs[0]=i,cs[1]=r,ps(cs,o),i=cs[0];var a=(r=cs[1])-i;return this.addData(Ka.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=os(r)*n+t,this._yi=as(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ka.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ka.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!hs||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Qa[0]=Qa[1]=es[0]=es[1]=Number.MAX_VALUE,ts[0]=ts[1]=ns[0]=ns[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||ss(v)>i||c===e-1)&&(f=Math.sqrt(D*D+v*v),r=g,o=x);break;case Ka.C:var m=t[c++],y=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=An(r,o,m,y,g,x,_,b,10),r=_,o=b;break;case Ka.Q:f=Rn(r,o,m=t[c++],y=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case Ka.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],A=C+T;c+=1,p&&(a=os(T)*M+w,s=as(T)*I+S),f=rs(M,I)*is(us,Math.abs(C)),r=os(A)*M+w,o=as(A)*I+S;break;case Ka.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ka.Z:var D=a-r;v=s-o,f=Math.sqrt(D*D+v*v),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case Ka.M:n=r=d[_++],i=o=d[_++],t.moveTo(r,o);break;case Ka.L:a=d[_++],s=d[_++];var S=ss(a-r),M=ss(s-o);if(S>p||M>f){if(v){if(m+(j=l[y++])>u){var I=(u-m)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case Ka.C:var C=d[_++],A=d[_++],D=d[_++],L=d[_++],k=d[_++],P=d[_++];if(v){if(m+(j=l[y++])>u){Tn(r,C,D,k,I=(u-m)/j,$a),Tn(o,A,L,P,I,Ja),t.bezierCurveTo($a[1],Ja[1],$a[2],Ja[2],$a[3],Ja[3]);break t}m+=j}t.bezierCurveTo(C,A,D,L,k,P),r=k,o=P;break;case Ka.Q:if(C=d[_++],A=d[_++],D=d[_++],L=d[_++],v){if(m+(j=l[y++])>u){Pn(r,C,D,I=(u-m)/j,$a),Pn(o,A,L,I,Ja),t.quadraticCurveTo($a[1],Ja[1],$a[2],Ja[2]);break t}m+=j}t.quadraticCurveTo(C,A,D,L),r=D,o=L;break;case Ka.A:var O=d[_++],R=d[_++],N=d[_++],E=d[_++],z=d[_++],V=d[_++],B=d[_++],G=!d[_++],F=N>E?N:E,H=ss(N-E)>.001,W=z+V,U=!1;if(v&&(m+(j=l[y++])>u&&(W=z+V*(u-m)/j,U=!0),m+=j),H&&t.ellipse?t.ellipse(O,R,N,E,B,z,W,G):t.arc(O,R,F,z,W,G),U)break t;w&&(n=os(z)*N+O,i=as(z)*E+R),r=os(W)*N+O,o=as(W)*E+R;break;case Ka.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var Y=d[_++],Z=d[_++];if(v){if(m+(j=l[y++])>u){var X=u-m;t.moveTo(a,s),t.lineTo(a+is(X,Y),s),(X-=Y)>0&&t.lineTo(a+Y,s+is(X,Z)),(X-=Z)>0&&t.lineTo(a+rs(Y-X,0),s+Z),(X-=Y)>0&&t.lineTo(a,s+rs(Z-X,0));break t}m+=j}t.rect(a,s,Y,Z);break;case Ka.Z:if(v){var j;if(m+(j=l[y++])>u){I=(u-m)/j,t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ka,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function gs(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=_s);var d=Math.atan2(l,s);return d<0&&(d+=_s),d>=i&&d<=r||d+_s>=i&&d+_s<=r}function ws(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var Ss=fs.CMD,Ms=2*Math.PI,Is=[-1,-1,-1],Ts=[-1,-1];function Cs(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(h=void 0,h=Ts[0],Ts[0]=Ts[1],Ts[1]=h),f=wn(e,i,o,s,Ts[0]),p>1&&(g=wn(e,i,o,s,Ts[1]))),2===p?me&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(_n(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=dn(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,Is);if(0===l)return 0;var u=kn(e,i,o);if(u>=0&&u<=1){for(var h=0,c=Dn(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Is[0]=-l,Is[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ms-1e-4){i=0,r=Ms;var h=o?1:-1;return a>=Is[0]+t&&a<=Is[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Ms,r+=Ms);for(var d=0,p=0;p<2;p++){var f=Is[p];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=Ms+g),(g>=i&&g<=r||g+Ms>=i&&g+Ms<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),d+=h)}}return d}function Ls(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,d=0,p=0,f=0,g=0,v=0;v1&&(n||(c+=ws(d,p,f,g,i,r))),y&&(f=d=u[v],g=p=u[v+1]),m){case Ss.M:d=f=u[v++],p=g=u[v++];break;case Ss.L:if(n){if(gs(d,p,u[v],u[v+1],e,i,r))return!0}else c+=ws(d,p,u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Ss.C:if(n){if(vs(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=Cs(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Ss.Q:if(n){if(ms(d,p,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=As(d,p,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Ss.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var I=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,y?(f=o,g=a):c+=ws(d,p,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(bs(x,_,w,S,S+M,I,e,T,r))return!0}else c+=Ds(x,_,w,S,S+M,I,T,r);d=Math.cos(S+M)*b+x,p=Math.sin(S+M)*w+_;break;case Ss.R:if(f=d=u[v++],g=p=u[v++],o=f+u[v++],a=g+u[v++],n){if(gs(f,g,o,g,e,i,r)||gs(o,g,o,a,e,i,r)||gs(o,a,f,a,e,i,r)||gs(f,a,f,g,e,i,r))return!0}else c+=ws(o,g,o,a,i,r),c+=ws(f,a,f,g,i,r);break;case Ss.Z:if(n){if(gs(d,p,f,g,e,i,r))return!0}else c+=ws(d,p,f,g,i,r);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(c+=ws(d,p,f,g,i,r)||0),0!==c}var ks=k({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Aa),Ps={style:k({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Da.style)},Os=wr.concat(["invisible","culling","z","z2","zlevel","parent"]),Rs=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?dr:e>.2?"#eee":pr}if(t)return pr}return dr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(X(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ui(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~rn},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new fs(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&rn)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return Ls(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Ls(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=rn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:L(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&rn)},e.prototype.createStyle=function(t){return xt(ks,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=L({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=L({},i.shape),L(s,n.shape)):(s=L({},r?this.shape:i.shape),L(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=L({},this.shape);for(var u={},h=H(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return xt(Ns,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Cr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Pa);Es.prototype.type="tspan";var zs=k({x:0,y:0},Aa),Vs={style:k({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Da.style)},Bs=t("Z",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createStyle=function(t){return xt(zs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Be(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Pa));Bs.prototype.type="image";var Gs=Math.round;function Fs(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Gs(2*i)===Gs(2*r)&&(t.x1=t.x2=Ws(i,s,!0)),Gs(2*o)===Gs(2*a)&&(t.y1=t.y2=Ws(o,s,!0)),t):t}}function Hs(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ws(i,s,!0),t.y=Ws(r,s,!0),t.width=Math.max(Ws(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ws(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ws(t,e,n){if(!e)return t;var i=Gs(2*t);return(i+Gs(e))%2==0?i/2:(i+(n?1:-1))/2}var Us=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ys={},Zs=t("R",function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new Us},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Hs(Ys,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Rs));Zs.prototype.type="rect";var Xs={fill:"#000"},js={style:k({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},Da.style)},qs=t("l",function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xs,n.attr(e),n}return i(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ef&&h){var g=Math.floor(f/l);c=c||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=d)for(var v=ma(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,A=0;Al&&Sa(n,t.substring(l,u),e,s),Sa(n,i[2],e,s,i[1]),l=ga.lastIndex}lo){var A=n.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),m(x,b,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length