import{_ as Or,r as nt,C as en,D as mp,v as Ve,o as gt,c as mt,l as E,H as mi,I as yi,x as pt,j as la,f as Ft,L as ln,p as un,q as hn,d as Pt,e as H,w as lt,m as Le,G as yp,J as dh,T as ph,a1 as gh,a0 as Gs,a3 as T0,Q as ka,O as yr,a4 as ou,S as _p,a5 as C0,n as Vs,y as D0}from"./index.79832097.js";import{g as M0}from"./manager.4e506c5f.js";const I0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAu5SURBVHgBxVlrcFVXFV7r3JsQEiDBoTxq64SptRUoCf7RqbUN+BgEpgYU/dEZBWttqdOW9o8zjja5P5zWYUbI2If1BagzYltKaDu2nYokUpHpOCQtVKvySDtWEGwTCST3uZdrP9be+1wCIWDtzuOee87Z+3xrrW+99kH4H4w1m6kJGvLtpLCFvzYTUCsQNilSTUCgf/UYUEoNAGX7gaifFPRuWzt5AC5xIFzkMKCn5NfzEjeBgjZ9jgxYsp9kTxjwVgjige4A3P39hJlNxZF8b/e66QNwEWPCAqzZQU1JubheAdzNX5tAESpE/se/FjEKeD0UfyL/KCeVvsyfSGlBGAluKeUzue51E7PKhAT46hOFTkK8m584nYhEswaIBsaoUEXnRds8h7SgAjYGbo2mp1rL8UHuydsaOy8U0wUJsGbHaHNSyezgR7Q47aLXpH6kUg6cUWWgisPGRxgJbOErawURBDz1zOcAVdTiC6FVMt4Nt20fXZOoTB8v3KrVDBGP9Z/WOoJoMtK8N49ywqBTu+ETQgzeaV/O8XrNmCR97Y8Nto+H77wCfI0pU6HMZl680T6MwkUniKaMSoG3KhdVizugpwmF807tgYbxNQ4ShDvaHx3svCgBNN/ZOTus6Y25SZ6qDCYUywc6CL+dEEEQEnp5Swj3lZcT42jldGQM1rHi4XMLMaYP3PpkoV0BPuU1DZ6bIBy3iuNPJcxwGL0FnH9E5wzlwEquonmQCq/MMGMWhJRzY2bN03dO2zquAHewwxZV0seJpsksazWruc8LW8cFo3QJmSTyCVCIY71ynhw0Ci6WOk2Td2YOBuTxSDSTeTyGMgksqnbssyhUVJndPLFJzG8dTnhuqMBBx4jiHiZUqqIReAfFCIRolebPTnDmFIwikbvPCY1WZz4ysUCNxTI8VY03JYDmPd/dHB7mtOGpbTnkaOSih6g1PTRFiIIvi8bnzc7Ao19qwNyyesgtr48EFmNaKyuiAAEtnVikRct+8HZH/BxvMh3rUWWOWIeM+QmG59755ClWTc7sjvbKUUjooBVsz9HMBsQ7b6yD+SyAjBPDCm7/1bCFIet5f4gsKT7lqDRSSeb23Dt9SH/JelOoTEfMQacZjEU1CUsUrrUi3znWI+JZ8/R69bUAy+fX4vJ5NVBfG5bb/bcS/HTvKHhrmoAA4l/V/EdfiQA01iXqHv7MeQto7UM5OYJiR/LxW1Jpyszkk1Mwk6e9PJjBt11dQ6tba/GyKQH4wX+W4fH9BTh4rAIuj0g4RkloFC3mE6C2JNqsz8YaKkLGWCFrtQ9tNteAL8bcodeqieE82dQ8JtSJQpyfWq2bpDxvVoIMXPPdIz9TIPh1XwGePVAUAWVtlJVsRqfI5OQt70oXyRhNtWCtkLWLZe5xIQZjZ9QWUeDiPXmDoYRGFJU7gRtqE1jdUoOfZbrE4/H9RXrmtSKMFEKWFnNa8thiLw7BzsDW5JgQuHpLLMNT2rQAaOhTwqNGwzKRqp3Vl8A2iel7IifVN36hpQaWVfH8teMVeqh3FLWzeuumlrdUi6MdiJUJfHluwrjXrJZJGYWWktPTs5DnZiRjzBQD9WYWsO7IuAnaLGsePm92Aus+XgcxzzXgh3+fZ56XESSeOxbqbLjg8izEOUCPPx4papr59ELWQbxVRPO24rAVbqYy9XNZyGZaDHjRRtqMEEoCQ0Z3YFI0zZiSwIyGBJ/oLxphORLxB+HLb5RhpGiSEUoj4zhtKLHkQzW45JraFM20UBt/ezoI6/3ClBZO+c7icg2pNctPbpUM6sH7qBKEAO8DJDfhyeEK9AxX4pICI5dwiU6iQahrbN6wqt71ehGue38WPnltLRw+WQfdfXm/jqEVKQjZGtDPJZN3mrN8vVkk8qHSxWNfcfLDPzwrgZuuyoYoEcwfORfERJVLGGpte8+Cy0N02rTrDMycmsADK6fA1z9RD6/+owRHTlZS96ccX/sIgqUBQCt+eVteEVW3ey6iOgfT/O5aORnejbHioXeMoHNnZOjBlVPxNIfbb24/BcdPVcTbox7bVqrGwQ1YHExs/A75y0qrUl3T0mtr4N0aknYOnyjj9188DbOmJXDfpxukiAydG0r9BRgoT9OzynPX25zislmrYevLBRh4uwLrbphkFntkTx52/70kCOAbN06GtqttVbLqR6dAKKNX7L7DNHOG612/GzHX1i9pMJy380PU23u4yD4wCu2LJsMtH6uHX+wbNcoM/XfIO+COE0Y5JEnDPFQZWX1pSy6TpbUmC7i6JbpMYakxtK2rEKi630cMMw5r/vPQljCg9ZaN81xDGgmzbo5W2xCjaNJfVIhg6MKq19JYaMwwpgUcAyVQVb9EY0j1m7ved86dEaGMQmGE3V+y+cBk7zcSoqRfsiNazknFBlY5JLhS6L05lVdKdJ/XEqXBU3Q8zogNG2ohjFo2fTiAt/xyZCPft94kPpuz/c1i3XU31EHbB7Pw/xwvHMzDhueHjSipHkFIooyauhLC8iuhs3LhlVyd45tyeE8GxeAh5APHUFQV6k9qi5Vuif/kK2owdTfRe4TcDQzgqzcADLakDL3JlrXcmiH2mNOuzpCtj7O8MBq6YPvZ3jx3VXlzPNHxr1MVeKz3DPyw5wwc/09lzHsUxHvAvluVZNvfk5szkHWnevhcmzkOM0LNOwaHHnxhBI6+UzGR6si/K/TdmxsQJjByTw/DYZ6nn3H4ZBk3rG5MXcc4vEoBGWIL8MxN+pIRoK5c7BrF7HpWeKNVujT2dhNL968HuBXUE+9qsyXFUU5skvsOvlUKtQ0nK0n78fYKurXu+0yDOXfoZNnV5AD9bxY98A3PDZv7jp9SvsU01tBlLob8VCnne70AmkZf3HpmE+8Id5r4Knp3zQv3sX7i4mtqYMGcLKy4bhI882rB8PPmhZPMdbYE7PpLAYhi5TlHdLT81LxaWHhFDaxcVIc79ufN/FUfqTfzD50ow/MHRn1jj1L9ikJMH2P8Ysu+3NwBL4AeRVXsqgG2glJNEE0T4FKx7v5ryQhw6/V18NFmM900KHrs7M9LuZzOHxTWePHPBWIBcF3bFLj+qknG3xZeaWut7X8a8fcBud0/YRD4LUsolQs5we03aV7f+b38vPZv1YFt8EG0BlHTrf9p6uhhuioug/Wfbth/vi9Pzx3Mh27OPgydHr0FD3GpoLORFmJ2YwZm8Z+uQH/cexqefSUfGAcg81wvYZbVpUXn3o4rdwrusxzv8z8Z3s8TWqvLWBLx3XkN/DL+a+Ca7MBbZTidpxTnUz4oG2O+IAOaPS1BXe80MPv63izRmbzyzVBcwpDrge3mFwzsuX/O3BjvWem1JlNeVSwnfbxSU6x5p1P/EA6dGIc/e1WoE+2Teo2mqkk8xnOPDVXAt65ebv/CxJUrSuqSoVKlsLga71mbu9vWTh9QZXWvgrhkMbsCFADw3qUK2nYXkJS8vHOyWg/2zRK4eC6W9UWZ/Wp3QBTEl11W1feU14rjnlcAPXgLewtPzJkHKgjmFzrFDZA8yXu8a0JMARYZziOyJ6NQh9Kog422GAnuShvI7fnOB7rHwnrONzTdtzfmWDudJhr7alBAR2DBCxiVI+HtDUnmlN/0WtWhzmo7mJ4Tlup86f45uXPhHDd7rnhksJ33xTYz1EYaY+c4jreKovb9XO8LALwlzIcrx+3OTijc+P+Qqqj1f+i4Yuv58F1Q+l+6cbC5phZ2k353YJUatkiirOsoleK8gaSqXmzLYWozIczlo75SGVft41pnPGwTql/4ZZvegu9Mcx78ToGhvts3jSMYRYJYfOn5Rha7hTnI17pe+va5KXNJAuixdOOx5iRT28HP+0oosjxFfKRCbyWKs7HPI3GtxZ+DfKIrKeW7enJzhyaCZ8ICxIJwIm8jyPA2N7WA36uBdGwP743Dm0jZ51fQwwB6Lgb4JQsQj7YHjrGPZNrYG1u4hm9hZHOV8RefffXOxyBzTXd/AyxGPxTyOy8WdDz+C4geaDhCJoXQAAAAAElFTkSuQmCC",P0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABjSURBVHgB7dTRCYAwDATQqxM4giO4sSu5QRzBDc4U8qOoNIVCKXlw9Kft5StA6A5JYT15/pdeCqjHqdnhs+Qk9XvLJtnglN/YcDcTGouCKIiCEQq+lt1h8Vg1c8myE9YThO5cisOaSb/8CBoAAAAASUVORK5CYII=",L0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABoSURBVHgB7ZTRCYAwDESvTuAojuDmdQQ3yApucEbwR2moFoQi9+DoR6Av+TlAdAdJYzt2/y8VBPRn86wF/+QZPUs0Sw4qFxxkxNdZMMvnchcGfIwEEkjwB8HbsptRKcInZWdsxyC6YweEd6VBXF6n0AAAAABJRU5ErkJggg==",R0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADoSURBVHgB7ZThDYIwEIVb4wAdoU6gTiAj6AYdgU1kA3EDN1A3YANxAzbAVz3MCznAP0RNuOTC8fXuHm1pjZnsp6zWbQM/KDyyRCvgnnNFJ4UXEufEc3oPxCv4VuI1fD8kUFhrrzIj5iXxBA/fCBC37WYzM7L9v4C2ByesZSWxJ56CB4ldzGtywG/mQ4Gg5NzhR/hF4UVHTaeAVXKqnjHXwfWGckhKQh6emNdXbkmsWaI4szPVRO7w2777apscML6I3hLLiGfES+K7drPpHAyadg5WdKc44l7uoGfMBcSXps/qEa7ryb5vD8yyymozrQlKAAAAAElFTkSuQmCC",E0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACjSURBVHgB3VFLEYMwEN1sKoA4wEIdREIddKqgFiqlDkoVtBJaBzjI556EBwPDDBcy4QTvkmTnfTa7RLuHMMbUzHzHvcoRxBjfSqlmerMQ4pVS0jli8Kqej9A5zFqbvPdXysSSz7QB6EQXG0B8wXc+WzoY5lBsgE08MdRzqYEdTX4nnF/s9uGc02sqJNb9GUL4TzVG8YZhNJQB8FoppUZyS8dBBxlHQhlOi9lfAAAAAElFTkSuQmCC",k0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEOSURBVHgBpVPtEcFAFHy58Tu5dKCEqAAdUIGoABWgAlRAB6iADlABHeSSAhK7RkyYOx/jzdy8vXd7e+/2EpE/w3MtJElSV0qNifM8n4ZheLHxak5lz9sVRWEANXCE3LDxlOP0CTdCoIvRBq6jNpRvgq0bY5I0TcdljZg1hP4oAPIS5PNdLM6yrEfMGtfk3RWwoYOWY5h3axe5iXmLGLnPNXBaTgGYNcNY+b6/fT0Jr7BH2pBjFSiN45OJI9DBSGyG2owr6xzVmtXQqnGfBBhVQxUIUdW4p/spNcDoWa7yMNSD0gyTSGvdlh8CXRxg6LEG004AMQprZPOtAA8Ff377mfjB8M3ltzgGQbCQf+MKvdXFV+092BsAAAAASUVORK5CYII=",O0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFTSURBVHgBlVPBcYMwEAQGHnxAVBBKIBVkUkIqsNNBOjAlJBXEqSAlOB3YHZhUgIAHDxjILhEeWYhkrJkbxN3e3mlPcp2VVZZlik8Gk7QkSU42nGtJfHFdd4etMEKF53l5FEUfutPTEoWU8sBk2Os4jvdCCJfGPXxfwzDsgTkSu2iFAdhZtb56LGJYyAxs4Rz1ZOyzP0hKHlWvfq6q6t3oaFzrCNgdSSYNVKUU53uzFJQ4O0ly3QkshRRt295RxEkQ25igOsV8BslG7wbYgt+u6zLP+X9JZznSaYFYkqDgj000tJoD9Anbc5Rz5Rnb9331WwKCUJirskrEpmkeTGIKztjFwZGo0aSzj4m2C6PGONZ1vXGMiocbLtJx9l1ExBmfHDU2tqhrwkSOEjEmFsA+zjHbY9qqx5QaIZLncRxf3ZcFgUaU+b4fo5oIguAUhuG3DfcD0GYNMVRQg6sAAAAASUVORK5CYII=",B0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEASURBVHgB3VLbEYIwEAzBbwgdYAd2ICXQAViBWAFQiVKBdiAlaAd0wOMfcA8SJhPRf70Zx5u9vb1dgLGfL6uua59zfkQvJsCySsdxColHruvm6GP0e5oPw1B4nlcqAY6F6ziOgQLQK6E7+li/RjPCISgWsGmaseu6SCeCkBFOLkzLJn9jEmgJV1L8MiFExb4UuMGbAFmUrd+27ZnNuU/I3RjLIcVfE7jQMpszh2x+uDm5N6hiNZMehWZwkeq4zgdnx9mHklEqeo0r48kNYj0oQomMGS4FagHKCcVAhK38HlIZyaf/vu+fSokDPODazbwALMGFask6u6ps2w4k/i/1AllNlyp405N+AAAAAElFTkSuQmCC",N0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADWSURBVHgB7VLRDcIgEAXqALABo9gJdANH0A0coSPoBuoEsoFxgtYJoB2g+F5CjRq1NvXTS9p7vOOOg3tCjDTJn/d+qpRaDEls2/ZgjNlLJFspZQnOwVffJMcYNdwc3kwALEmtdS4GWAghZlk2U2Kk/Qv0FMCIV03TfNQHxxgI6rpeQhxniMOl5Cl0UYAjvtzzIo3+phskF5wrvjJtssTkU8yTY4w81+DX79q2adOp44CP5BDTr67wYGhrk1p0OIWY0uU1KfkdfN5XwMFVTxwLbLv3+qldARJSg3z1CMvXAAAAAElFTkSuQmCC",F0="/airport/assets/map.bc12a339.png";const z0=r=>(un("data-v-474a481f"),r=r(),hn(),r),G0={class:"battery-overview-flex"},V0={class:"left-panel"},H0={class:"battery-overview-grid"},U0={class:"block-title"},W0={class:"block-no"},Y0={class:"block-name"},X0={class:"block-list"},$0={class:"item-no"},Q0={class:"item-label"},Z0={key:0,class:"item-value"},q0=z0(()=>E("div",{class:"right-panel"},[E("img",{src:F0,alt:"\u5730\u56FE",class:"map-image"})],-1)),K0={__name:"BatteryOverview",props:{vehicle:{type:Object,required:!0}},setup(r){const t=r,e=nt({}),i=nt(0);function n(h){if(!h)return"";const f=new Date(Number(h)),v=f.getFullYear(),c=String(f.getMonth()+1).padStart(2,"0"),d=String(f.getDate()).padStart(2,"0"),m=String(f.getHours()).padStart(2,"0"),p=String(f.getMinutes()).padStart(2,"0"),g=String(f.getSeconds()).padStart(2,"0");return`${v}/${c}/${d} ${m}:${p}:${g}`}function a(h){return h==="CHARGING"||h===1?"\u5145\u7535\u4E2D":h==="DISCHARGING"||h===2?"\u653E\u7535\u4E2D":"\u7A7A\u95F2"}function o(h,f){if(h==null)return"\u2014";const v=Number(h);return Number.isNaN(v)?"\u2014":`${v}${f}`}function s(...h){for(const f of h)if(f!=null)return f}async function l(){var f,v,c,d,m,p,g,y;const h=(f=t.vehicle)==null?void 0:f.carId;if(!!h)try{const _=await ln({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(h)}/battery`,method:"get"}),A=_&&_.data!==void 0?_.data:_||{},b=(m=(d=(c=(v=A==null?void 0:A.data)==null?void 0:v.batteryStatus)!=null?c:A==null?void 0:A.batteryStatus)!=null?d:A==null?void 0:A.data)!=null?m:{},S=(g=(p=b==null?void 0:b.mainBattery)!=null?p:b==null?void 0:b.battery)!=null?g:{};e.value={voltage:s(S==null?void 0:S.voltage,b==null?void 0:b.voltage,A==null?void 0:A.voltage),current:s(S==null?void 0:S.current,b==null?void 0:b.current,A==null?void 0:A.current),temperature:s(S==null?void 0:S.temperature,b==null?void 0:b.temperature,A==null?void 0:A.temperature),chargingStatus:s(S==null?void 0:S.chargingStatus,b==null?void 0:b.chargingStatus,A==null?void 0:A.chargingStatus)},i.value=s(A==null?void 0:A.timestamp,b==null?void 0:b.timestamp,(y=A==null?void 0:A.data)==null?void 0:y.timestamp)||0}catch{e.value={},i.value=0}}en(l),mp(()=>{var h;return(h=t.vehicle)==null?void 0:h.carId},()=>l());const u=Ve(()=>{var g,y,_,A,b,S;const h=o((g=e.value)==null?void 0:g.voltage,"V"),f=o((y=e.value)==null?void 0:y.current,"A"),v=o((_=e.value)==null?void 0:_.temperature,"\u2103"),c=a((A=e.value)==null?void 0:A.chargingStatus),d=n(i.value),m=((b=t.vehicle)==null?void 0:b.status)||"\u2014",p=((S=t.vehicle)==null?void 0:S.location)||"\u2014";return[{no:"01",title:"\u7535\u6C60\u5F53\u524D\u53C2\u6570",items:[{no:"1.1",label:"\u7535\u538B",value:h},{no:"1.2",label:"\u7535\u6D41",value:f},{no:"1.3",label:"\u6E29\u5EA6",value:v}]},{no:"02",title:"\u72B6\u6001\u76D1\u6D4B",items:[{no:"2.1",label:"\u8F66\u8F86\u72B6\u6001",value:m},{no:"2.2",label:"\u5F53\u524D\u5145\u7535\u72B6\u6001",value:c},{no:"2.3",label:"\u6700\u65B0\u66F4\u65B0\u65F6\u95F4",value:d},{no:"2.4",label:"\u6700\u65B0\u4F4D\u7F6E",value:p}]}]});return(h,f)=>(gt(),mt("div",G0,[E("div",V0,[E("div",H0,[(gt(!0),mt(mi,null,yi(Ft(u),v=>(gt(),mt("div",{class:"battery-block",key:v.no},[E("div",U0,[E("span",W0,pt(v.no),1),E("span",Y0,pt(v.title),1)]),E("ul",X0,[(gt(!0),mt(mi,null,yi(v.items,c=>(gt(),mt("li",{key:c.no},[E("span",$0,pt(c.no),1),E("span",Q0,pt(c.label),1),c.value!==void 0?(gt(),mt("span",Z0,"\uFF1A"+pt(c.value),1)):la("",!0)]))),128))])]))),128))])]),q0]))}},J0=Or(K0,[["__scopeId","data-v-474a481f"]]);const j0={class:"fault-alarm"},t_={class:"search-area"},e_={class:"search-buttons"},r_={class:"action-buttons"},i_={__name:"FaultAlarm",props:{detail:{type:Object,default:()=>null},vehicle:{type:Object,default:()=>({})}},setup(r){const t=r,e=nt({type:"",status:""}),i=nt(1),n=nt(10),a=Ve(()=>{var v,c,d,m,p;const f=(v=t.detail)==null?void 0:v.fmsMessage;return f?[{index:1,carId:((c=t.detail)==null?void 0:c.vehicleId)||"",vin:((m=(d=t.detail)==null?void 0:d.details)==null?void 0:m.vin)||"",location:"",status:f.isActive===1?"\u672A\u89E3\u9664":"\u5DF2\u89E3\u9664",faultType:f.description||f.code||"",faultLevel:(p=f.level)!=null?p:"",faultStart:f.ts||"",faultEnd:""}]:[]}),o=Ve(()=>a.value.filter(f=>{const v=!e.value.type||f.status===e.value.type,c=!e.value.status||f.status===e.value.status;return v&&c})),s=Ve(()=>{const f=(i.value-1)*n.value;return o.value.slice(f,f+n.value)});function l(){i.value=1}function u(){e.value={type:"",status:""},i.value=1}function h({page:f,limit:v}){}return(f,v)=>{const c=Pt("el-option"),d=Pt("el-select"),m=Pt("el-button"),p=Pt("el-table-column"),g=Pt("el-table");return gt(),mt("div",j0,[E("div",t_,[H(d,{modelValue:e.value.type,"onUpdate:modelValue":v[0]||(v[0]=y=>e.value.type=y),placeholder:"\u6545\u969C\u72B6\u6001",clearable:"",class:"search-select"},{default:lt(()=>[H(c,{label:"\u5168\u90E8",value:""}),H(c,{label:"\u672A\u89E3\u9664",value:"\u672A\u89E3\u9664"}),H(c,{label:"\u5DF2\u89E3\u9664",value:"\u5DF2\u89E3\u9664"})]),_:1},8,["modelValue"]),H(d,{modelValue:e.value.status,"onUpdate:modelValue":v[1]||(v[1]=y=>e.value.status=y),placeholder:"\u8F66\u8F86\u72B6\u6001",clearable:"",class:"search-select"},{default:lt(()=>[H(c,{label:"\u5168\u90E8",value:""}),H(c,{label:"\u5728\u7EBF",value:"\u5728\u7EBF"}),H(c,{label:"\u79BB\u7EBF",value:"\u79BB\u7EBF"})]),_:1},8,["modelValue"]),E("div",e_,[H(m,{type:"primary",class:"search-btn",onClick:l},{default:lt(()=>[Le("\u641C\u7D22")]),_:1}),H(m,{class:"reset-btn",onClick:u},{default:lt(()=>[Le("\u91CD\u7F6E")]),_:1})]),E("div",r_,[H(m,{class:"export-btn"},{default:lt(()=>[Le("\u5BFC\u51FA")]),_:1})])]),H(g,{data:Ft(s),"header-cell-style":{backgroundColor:"#343744",color:"#fff"},class:"custom-table"},{default:lt(()=>[H(p,{prop:"index",label:"\u5E8F\u53F7",width:"60"}),H(p,{prop:"carId",label:"\u7535\u6C60SN\u7801"}),H(p,{prop:"vin",label:"\u8F66\u8F86VIN\u7801"}),H(p,{prop:"location",label:"\u7535\u6C60\u5305\u7F16\u53F7"}),H(p,{prop:"status",label:"\u6545\u969C\u72B6\u6001"},{default:lt(y=>[E("span",{class:yp(y.row.status==="\u672A\u89E3\u9664"?"status-danger":"status-success")},pt(y.row.status),3)]),_:1}),H(p,{prop:"faultType",label:"\u6545\u969C\u540D\u79F0"}),H(p,{prop:"faultLevel",label:"\u6545\u969C\u7B49\u7EA7"}),H(p,{prop:"faultStart",label:"\u6545\u969C\u5F00\u59CB\u65F6\u95F4"}),H(p,{prop:"faultEnd",label:"\u6545\u969C\u7ED3\u675F\u65F6\u95F4"})]),_:1},8,["data"]),dh(H(gh,{total:Ft(o).length,page:i.value,"onUpdate:page":v[2]||(v[2]=y=>i.value=y),limit:n.value,"onUpdate:limit":v[3]||(v[3]=y=>n.value=y),onPagination:h},null,8,["total","page","limit"]),[[ph,Ft(o).length>0]])])}}},n_=Or(i_,[["__scopeId","data-v-7224ea80"]]),a_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAQCAYAAACoTgdGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL6SURBVHgB7VZPi1JRFL/3/fHfpJgFIgg5IC1sFppBzKKQvkAr9y3b9RHUj9AHaFEUERExTNBmCGkXJJqZxEygNu2mRTADLeb5Xvdcz3lz3vM5m1ZJFw733Xv+/M7fq0KsyRruf7832p9Uz5MxxBosz/OEYc8HrmG+HnyZ1sSaLokERTM+jg+uD7/NJqsCtsIXnw8OW7A7J87DWm3zF91Dm0gpr/gonrOzdXVzQOfR5EfVc7y7Pl/K6Va5+JjO/ckkaznWA471txiqorNXzx496XQ6ukOHo/7hjdrNT2bMeKcCvlO9VupzvEAbK2Xpuo4BRHhnNJeOA/euXPDtAN9xfvu6CzolnpY7OT6WoAs2gL+wtYxBPI4BbQqk7kMYczkej7VuuVw2fx4dme7c1XYd51SKc8ZUM5vNpolCRKRkhchstVoGENOzGo2GL4N3fpvV63UbiMmZpA/fcI98mzC4L4QBfNTXsirQuNqTu3vd7eHX6Wz37d62OidQxogKVIIxMkLOkBOKYoripVIpATsCaT46YeN9AsFjqGcwu6QPFGPOaIxKpQI6iSgMJB+DbNCZAn3+8s0tdc4quoD8yGANFpTNK4hnMJ5StFEsFpMIYrFkxIkPBA6zhJHdZD6f30AZcpYC0YESv1AopCJ84RgptKGr+v7D4P7TFzu31ffldDp9KZfLZZBvwniGA+bZo6z7lcZs82BjLPMUDMksJQPtEJ8ctcNVgyDBPsPgfsSZfpIHi5W8SMGqPYM8GqWl6poiWFGaFx0Mtie1aZSMblNMjM3a1LdBbYwtq/VhbsOjQIHSG8LmNR4i6jqodhYDzeKZMIILSh16LPxXEoF4IvxAQQ/bJJJPNtA251ki8BKfzS4jA21L5l8Yw8LkQ7Uz0L44CgmxoqpUWUHG+T09/cxpwZwUobNcBUBOs30ln9shWc4L/QpQRyRFcITW4h8iX7oj6CeLPYpLgVriH1+q2l673YbPea/XE91uF67gH5wn1nXh2wGfUvxfQvwB1mI6lQoV2HwAAAAASUVORK5CYII=";function o_(r){return ln({url:"/system/vehicle_location/list",method:"get",params:r})}function s_(r){return ln({url:"/system/vehicle_location/trajectory/batch",method:"post",data:r})}function l_(r,t){return ln({url:"/system/vehicle_location/vehicle/"+r,method:"get",params:t})}function u_(r,t){return ln({url:"/system/vehicle_location/plate/"+r,method:"get",params:t})}const Yt=r=>(un("data-v-3ddf4e12"),r=r(),hn(),r),h_={class:"track-playback-content"},f_={class:"left-list"},c_=["onClick"],v_={key:0,class:"corner-triangle"},d_={class:"task-row1"},p_=Yt(()=>E("span",{class:"dot"},null,-1)),g_={class:"task-no"},m_={class:"task-name"},y_={class:"task-row2"},__={class:"task-row3"},A_=Yt(()=>E("span",{class:"point start"},"\u8D77\u70B9",-1)),S_={class:"label"},b_=Yt(()=>E("img",{class:"arrow",src:a_,alt:"arrow"},null,-1)),w_=Yt(()=>E("span",{class:"point end"},"\u7EC8\u70B9",-1)),x_={class:"label"},T_={class:"right-map"},C_={class:"map-container"},D_=Yt(()=>E("div",{class:"map-img-placeholder"},null,-1)),M_={class:"track-detail-panel"},I_={class:"panel-header"},P_=Yt(()=>E("div",{class:"header-left"},[E("span",{class:"dot"}),E("span",{class:"panel-title"},"\u8F68\u8FF9\u8BE6\u60C5")],-1)),L_={class:"vehicle-stats-row"},R_={class:"stat-item"},E_={class:"stat-value"},k_=Yt(()=>E("span",{class:"stat-label"},"\u8F66\u724C\u53F7",-1)),O_={class:"stat-item"},B_={class:"stat-value"},N_=Yt(()=>E("span",{class:"stat-label"},"\u6700\u5927\u65F6\u901F",-1)),F_={class:"stat-item"},z_={class:"stat-value"},G_=Yt(()=>E("span",{class:"stat-label"},"\u5E73\u5747\u65F6\u901F",-1)),V_={class:"stat-item"},H_={class:"stat-value"},U_=Yt(()=>E("span",{class:"stat-label"},"\u884C\u9A76\u603B\u91CC\u7A0B",-1)),W_={class:"stat-item"},Y_={class:"stat-value"},X_=Yt(()=>E("span",{class:"stat-label"},"\u884C\u9A76\u8017\u65F6",-1)),$_={class:"stat-item warn"},Q_={class:"stat-value"},Z_=Yt(()=>E("span",{class:"stat-label"},"\u51B2\u7A81\u544A\u8B66",-1)),q_={class:"stat-item prewarn"},K_={class:"stat-value"},J_=Yt(()=>E("span",{class:"stat-label"},"\u51B2\u7A81\u9884\u8B66",-1)),j_={class:"progress-row"},t1=Yt(()=>E("div",{class:"progress-bar-bg"},null,-1)),e1=["title"],r1=Yt(()=>E("div",{class:"flag-icon"},null,-1)),i1=[r1],n1={class:"speed-select"},a1={class:"el-dropdown-link"},o1=Yt(()=>E("i",{class:"el-icon-arrow-down"},null,-1)),s1={class:"time-row"},l1={class:"start-time"},u1={class:"end-time"},h1={__name:"TrackPlayback",props:{vehicle:{type:Object,default:()=>({})},detail:{type:Object,default:()=>({})},tasks:{type:Array,default:()=>[]}},setup(r){const t=r,e=nt({pageNum:1,pageSize:10,timeRange:[],vehicleId:"",licensePlate:""}),i=nt([]),n=nt(!1),a=nt(0),o=nt([]),s=nt(""),l=nt(0),u=nt({licensePlate:"",maxSpeed:"0",averageSpeed:"0",totalDistance:"0",totalTime:"0",warnings:"0",preWarnings:"0",startTime:"",endTime:""}),h=nt("");Gs(()=>{var P;(P=t.vehicle)!=null&&P.carId&&(h.value=t.vehicle.carId,e.value.vehicleId="",e.value.licensePlate=t.vehicle.carId)});function f(P){return(Array.isArray(P)?P:[]).map(L=>{var q,Y,st,V,it,ut,X,J,Bt,Tt,we,xe,cr,vr,dr;const F=(Array.isArray(L==null?void 0:L.points)?L.points:Array.isArray(L==null?void 0:L.waypoints)?L.waypoints:Array.isArray((q=L==null?void 0:L.path)==null?void 0:q.points)?L.path.points:[]).map(tt=>{var pr,gr,Nt,Qe,mr,gn,mn,yn,_n,An,Sn,Cf,Df,Mf,If,Pf,Lf,Rf;const Te=(Nt=(gr=(pr=tt==null?void 0:tt.timestamp)!=null?pr:tt==null?void 0:tt.time)!=null?gr:tt==null?void 0:tt.ts)!=null?Nt:Date.now(),Br=(mn=(gn=(mr=(Qe=tt==null?void 0:tt.longitude)!=null?Qe:tt==null?void 0:tt.lng)!=null?mr:tt==null?void 0:tt.lon)!=null?gn:tt==null?void 0:tt.y)!=null?mn:0,Nr=(An=(_n=(yn=tt==null?void 0:tt.latitude)!=null?yn:tt==null?void 0:tt.lat)!=null?_n:tt==null?void 0:tt.x)!=null?An:0,Fr=Number((Cf=(Sn=tt==null?void 0:tt.speed)!=null?Sn:tt==null?void 0:tt.v)!=null?Cf:0)||0;return{timestamp:typeof Te=="string"?Te:new Date(Te).toISOString(),longitude:Number(Br)||0,latitude:Number(Nr)||0,speed:Fr,vehicleId:(If=(Mf=L==null?void 0:L.vehicleId)!=null?Mf:(Df=t.vehicle)==null?void 0:Df.carId)!=null?If:"",licensePlate:(Rf=(Lf=L==null?void 0:L.licensePlate)!=null?Lf:(Pf=t.vehicle)==null?void 0:Pf.licensePlate)!=null?Rf:""}}),W=F[0],G=F[F.length-1]||W,Z=F.length>0?(F.reduce((tt,Te)=>tt+(Te.speed||0),0)/F.length).toFixed(2):"0";return{id:((it=(V=(Y=L==null?void 0:L.id)!=null?Y:L==null?void 0:L.vehicleId)!=null?V:(st=t.vehicle)==null?void 0:st.carId)!=null?it:"0").toString(),no:((Tt=(Bt=(X=(ut=L==null?void 0:L.no)!=null?ut:L==null?void 0:L.missionId)!=null?X:L==null?void 0:L.id)!=null?Bt:(J=t.vehicle)==null?void 0:J.carId)!=null?Tt:"").toString(),name:(xe=(we=L==null?void 0:L.name)!=null?we:L==null?void 0:L.missionType)!=null?xe:"\u4EFB\u52A1",time:W&&G?`${W.timestamp}--${G.timestamp}`:"",start:W?`\u7ECF\u5EA6${W.longitude},\u7EAC\u5EA6${W.latitude}`:"",end:G?`\u7ECF\u5EA6${G.longitude},\u7EAC\u5EA6${G.latitude}`:"",speed:`${Z}km/h`,licensePlate:(dr=(vr=L==null?void 0:L.licensePlate)!=null?vr:(cr=t.vehicle)==null?void 0:cr.licensePlate)!=null?dr:"",points:F}})}Gs(()=>{var P,L,N,F,W;if(Array.isArray(t.tasks)&&t.tasks.length>0){const G=f(t.tasks);o.value=G,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0]))}else(Array.isArray((L=(P=t.detail)==null?void 0:P.path)==null?void 0:L.waypoints)&&t.detail.path.waypoints.length>0||Array.isArray((N=t.detail)==null?void 0:N.waypoints)&&t.detail.waypoints.length>0||Array.isArray((W=(F=t.detail)==null?void 0:F.path)==null?void 0:W.path)&&t.detail.path.path.length>0)&&v()});function v(){var st,V,it,ut,X,J,Bt,Tt,we,xe,cr,vr,dr,tt,Te,Br,Nr,Fr,pr,gr;const P=((V=(st=t.detail)==null?void 0:st.path)==null?void 0:V.waypoints)||((it=t.detail)==null?void 0:it.waypoints)||((X=(ut=t.detail)==null?void 0:ut.path)==null?void 0:X.path);if(!Array.isArray(P)||P.length===0)return;const L=((J=t.detail)==null?void 0:J.timestamp)||((Tt=(Bt=t.detail)==null?void 0:Bt.path)==null?void 0:Tt.timestamp)||((we=t.detail)==null?void 0:we.lastSeenAt)||Date.now(),N=(Nr=(Br=(cr=(xe=t.detail)==null?void 0:xe.position)==null?void 0:cr.v)!=null?Br:(Te=(tt=(dr=(vr=t.detail)==null?void 0:vr.chassis)==null?void 0:dr.sys_info)==null?void 0:tt.state_info)==null?void 0:Te.d_speed_kmph)!=null?Nr:0,F=((Fr=t.detail)==null?void 0:Fr.vehicleId)||((pr=t.vehicle)==null?void 0:pr.carId)||"",W=((gr=t.vehicle)==null?void 0:gr.licensePlate)||"",G=P.map((Nt,Qe)=>{var mr,gn,mn,yn,_n,An,Sn;return{timestamp:new Date(L+Qe*1e3).toISOString(),longitude:(yn=(mn=(gn=(mr=Nt.y)!=null?mr:Nt.longitude)!=null?gn:Nt.lng)!=null?mn:Nt.lon)!=null?yn:Nt.x,latitude:(Sn=(An=(_n=Nt.x)!=null?_n:Nt.latitude)!=null?An:Nt.lat)!=null?Sn:Nt.y,speed:Number(N)||0,vehicleId:F,licensePlate:W}}),Z=G[0],q=G[G.length-1],Y=(G.reduce((Nt,Qe)=>Nt+(Qe.speed||0),0)/G.length).toFixed(2);o.value=[{id:(F==null?void 0:F.toString())||"0",no:(F==null?void 0:F.toString())||"",name:"\u4EFB\u52A1",time:`${Z.timestamp}--${q.timestamp}`,start:`\u7ECF\u5EA6${Z.longitude},\u7EAC\u5EA6${Z.latitude}`,end:`\u7ECF\u5EA6${q.longitude},\u7EAC\u5EA6${q.latitude}`,speed:`${Y}km/h`,points:G}],l.value=o.value[0].id}Gs(()=>{var L,N,F,W,G,Z,q;const P=Array.isArray((N=(L=t.detail)==null?void 0:L.path)==null?void 0:N.waypoints)&&t.detail.path.waypoints.length>0||Array.isArray((F=t.detail)==null?void 0:F.waypoints)&&t.detail.waypoints.length>0||Array.isArray((G=(W=t.detail)==null?void 0:W.path)==null?void 0:G.path)&&t.detail.path.path.length>0;(!t.tasks||t.tasks.length===0)&&P&&(((Z=t.detail)==null?void 0:Z.vehicleId)||((q=t.vehicle)==null?void 0:q.carId))&&v()});async function c(){n.value=!0;try{let P;const L=e.value,N=L.licensePlate,F=L.vehicleId,W={pageNum:L.pageNum,pageSize:L.pageSize,timeRange:L.timeRange};if(N?P=await u_(encodeURIComponent(N),W):F?P=await l_(F,W):P=await o_(W),P.code===200){i.value=P.rows||[],a.value=P.total;const G={};i.value.forEach(q=>{G[q.vehicleId]||(G[q.vehicleId]=[]),G[q.vehicleId].push(q)});const Z=[];Object.keys(G).forEach((q,Y)=>{const st=G[q],V=st[0],it=st[st.length-1],ut=(st.reduce((J,Bt)=>J+Bt.speed,0)/st.length).toFixed(2),X=V.licensePlate||"--";Z.push({id:q,no:q,name:`\u8F66\u8F86${X}\u8F68\u8FF9`,time:`${V.timestamp}--${it.timestamp}`,start:`\u7ECF\u5EA6${V.longitude},\u7EAC\u5EA6${V.latitude}`,end:`\u7ECF\u5EA6${it.longitude},\u7EAC\u5EA6${it.latitude}`,status:"\u5DF2\u5B8C\u6210",speed:`${ut}km/h`,licensePlate:X,points:st})}),o.value=Z,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0]))}else yr.error(P.msg||"\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5931\u8D25")}catch(P){console.error("\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5F02\u5E38",P),yr.error("\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5F02\u5E38")}finally{n.value=!1}}async function d(P,L){if(!(!P||P.length===0)){n.value=!0;try{const N={vehicleIds:P,startTime:(L==null?void 0:L[0])||"",endTime:(L==null?void 0:L[1])||"",pageNum:1,pageSize:1e3},F=await s_(N);if(console.log("\u6279\u91CF\u8F68\u8FF9\u67E5\u8BE2\u7ED3\u679C:",F),F.code===200){const W=F.data||F.rows||[],G={};W.forEach(q=>{G[q.vehicleId]||(G[q.vehicleId]=[]),G[q.vehicleId].push(q)});const Z=[];Object.keys(G).forEach(q=>{const Y=G[q];Y.sort((X,J)=>new Date(X.timestamp)-new Date(J.timestamp));const st=Y[0],V=Y[Y.length-1],it=(Y.reduce((X,J)=>X+(J.speed||0),0)/Y.length).toFixed(2),ut=st.licensePlate||"--";Z.push({id:q,no:q,name:`\u8F66\u8F86${ut}\u8F68\u8FF9\u56DE\u653E`,time:`${st.timestamp}--${V.timestamp}`,start:`\u7ECF\u5EA6${st.longitude},\u7EAC\u5EA6${st.latitude}`,end:`\u7ECF\u5EA6${V.longitude},\u7EAC\u5EA6${V.latitude}`,status:"\u56DE\u653E\u5C31\u7EEA",speed:`${it}km/h`,licensePlate:ut,points:Y,isPlayback:!0})}),Z.length>0?(o.value=Z,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0])),yr.success(`\u6210\u529F\u52A0\u8F7D${Z.length}\u4E2A\u8F66\u8F86\u7684\u8F68\u8FF9\u56DE\u653E\u6570\u636E`)):yr.warning("\u672A\u627E\u5230\u8F68\u8FF9\u56DE\u653E\u6570\u636E")}else yr.error(F.msg||"\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5931\u8D25")}catch(N){console.error("\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5F02\u5E38",N),yr.error("\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5F02\u5E38")}finally{n.value=!1}}}const m=Ve(()=>s.value?o.value.filter(P=>P.name.includes(s.value)||P.no.includes(s.value)||P.id.toString().includes(s.value)):o.value),p=Ve(()=>o.value.find(P=>P.id===l.value)),g=Ve(()=>{var P,L;return(P=p.value)!=null&&P.licensePlate?p.value.licensePlate:u.value.licensePlate?u.value.licensePlate:(L=t.vehicle)!=null&&L.licensePlate?t.vehicle.licensePlate:"--"});function y(P){l.value=P.id,P.points&&P.points.length>0&&(_(P.points),P.licensePlate&&(u.value.licensePlate=P.licensePlate))}function _(P){P.sort((V,it)=>new Date(V.timestamp)-new Date(it.timestamp));const L=P[0],N=u.value.licensePlate;L&&L.licensePlate&&(u.value.licensePlate=L.licensePlate);const F=Math.max(...P.map(V=>V.speed)).toFixed(2),W=(P.reduce((V,it)=>V+it.speed,0)/P.length).toFixed(2);let G=0;for(let V=1;V0?st.toString():"1",warnings:"0",preWarnings:"0",startTime:P[0].timestamp,endTime:P[P.length-1].timestamp},x.value=[{percent:20,label:"\u544A\u8B66 "+P[Math.floor(P.length*.2)].timestamp},{percent:60,label:"\u9884\u8B66 "+P[Math.floor(P.length*.6)].timestamp}]}function A(){var L;const P=o.value.find(N=>N.id===l.value);if(P)if(P.points&&P.points.length>0)_(P.points),yr.success("\u5F00\u59CB\u8F68\u8FF9\u56DE\u653E");else{const N=[P.id.toString()];d(N,e.value.timeRange)}else if(e.value.vehicleId){const N=[e.value.vehicleId];d(N,e.value.timeRange)}else if((L=t.vehicle)!=null&&L.carId){const N=[t.vehicle.carId];d(N,e.value.timeRange)}else if(o.value.length>0){const N=o.value.map(F=>F.id.toString());d(N,e.value.timeRange)}else c(),yr.info("\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u8F66\u8F86\u4EFB\u52A1")}const b=nt(30),S=nt(1),w=nt(!1),T=nt(""),D=nt(0),x=nt([]);let C=!1;function I(P){C=!0,document.addEventListener("mousemove",R),document.addEventListener("mouseup",k)}function R(P){if(!C)return;const N=document.querySelector(".progress-bar-wrap").getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),b.value=F}function k(){C=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",k)}function O(P){const N=P.currentTarget.getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),D.value=P.clientX-N.left;const W=20*60,G=Math.round(F/100*W),Z=String(Math.floor(G/60)).padStart(2,"0"),q=String(G%60).padStart(2,"0");T.value=`${Z}:${q}`,w.value=!0}function B(P){const N=P.currentTarget.getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),b.value=F}function Q(P){S.value=P}return en(()=>{var P,L;t.vehicle&&(t.vehicle.licensePlate&&(u.value.licensePlate=t.vehicle.licensePlate),u.value={licensePlate:t.vehicle.licensePlate||"--",maxSpeed:"0",averageSpeed:"0",totalDistance:"0",totalTime:"0",warnings:"0",preWarnings:"0",startTime:"",endTime:""}),(L=(P=t.detail)==null?void 0:P.path)!=null&&L.path||c()}),(P,L)=>{const N=Pt("el-input"),F=Pt("el-scrollbar"),W=Pt("el-button"),G=Pt("el-dropdown-item"),Z=Pt("el-dropdown-menu"),q=Pt("el-dropdown");return gt(),mt("div",h_,[E("div",f_,[H(N,{modelValue:s.value,"onUpdate:modelValue":L[0]||(L[0]=Y=>s.value=Y),class:"search-input",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u53F7/\u8F66\u8F86\u540D","suffix-icon":Ft(T0)},null,8,["modelValue","suffix-icon"]),H(F,{class:"task-list"},{default:lt(()=>[(gt(!0),mt(mi,null,yi(Ft(m),Y=>(gt(),mt("div",{key:Y.id,class:yp(["task-item",{active:Y.id===l.value}]),onClick:st=>y(Y)},[Y.id===l.value?(gt(),mt("div",v_)):la("",!0),E("div",d_,[p_,E("span",g_,pt(Y.no),1),E("span",m_,pt(Y.name),1)]),E("div",y_,pt(Y.time),1),E("div",__,[A_,E("span",S_,pt(Y.start),1),b_,w_,E("span",x_,pt(Y.end),1)])],10,c_))),128))]),_:1})]),E("div",T_,[E("div",C_,[D_,E("div",M_,[E("div",I_,[P_,H(W,{size:"small",type:"primary",class:"replay-btn",onClick:A},{default:lt(()=>[Le("\u56DE\u653E")]),_:1})]),E("div",L_,[E("div",R_,[E("span",E_,pt(Ft(g)),1),k_]),E("div",O_,[E("span",B_,pt(u.value.maxSpeed)+"km/h",1),N_]),E("div",F_,[E("span",z_,pt(u.value.averageSpeed)+"km/h",1),G_]),E("div",V_,[E("span",H_,pt(u.value.totalDistance)+"km",1),U_]),E("div",W_,[E("span",Y_,pt(u.value.totalTime)+"min",1),X_]),E("div",$_,[E("span",Q_,pt(u.value.warnings),1),Z_]),E("div",q_,[E("span",K_,pt(u.value.preWarnings),1),J_])]),E("div",j_,[E("div",{class:"progress-bar-wrap",onMousemove:O,onMouseleave:L[1]||(L[1]=Y=>w.value=!1),onClick:B},[t1,E("div",{class:"progress-bar-fg",style:ka({width:b.value+"%"})},null,4),E("div",{class:"progress-thumb",style:ka({left:b.value+"%"}),onMousedown:I},null,36),(gt(!0),mt(mi,null,yi(x.value,Y=>(gt(),mt("div",{key:Y.label,class:"progress-flag",style:ka({left:Y.percent+"%"}),title:Y.label},i1,12,e1))),128)),w.value?(gt(),mt("div",{key:0,class:"progress-tooltip",style:ka({left:D.value+"px"})},pt(T.value),5)):la("",!0)],32),E("div",n1,[H(q,{onCommand:Q},{dropdown:lt(()=>[H(Z,null,{default:lt(()=>[H(G,{command:"1"},{default:lt(()=>[Le("1x")]),_:1}),H(G,{command:"2"},{default:lt(()=>[Le("2x")]),_:1}),H(G,{command:"4"},{default:lt(()=>[Le("4x")]),_:1})]),_:1})]),default:lt(()=>[E("span",a1,[Le(pt(S.value)+"x ",1),o1])]),_:1})])]),E("div",s1,[E("span",l1,"\u5F00\u59CB\u65F6\u95F4 "+pt(u.value.startTime||"--"),1),E("span",u1,"\u7ED3\u675F\u65F6\u95F4 "+pt(u.value.endTime||"--"),1)])])])])])}}},f1=Or(h1,[["__scopeId","data-v-3ddf4e12"]]),c1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAW8SURBVHgB1VrNctNWFD7n2sCincHtC2Cm0zLpJs4T4O46JSEKSwpYmT5AwhPEPAHJqqtOFAJ0BwpJCzvMjl2UXUo7g/MCxQztTNtYOv2O7Ouqju3IsknMN2Pr70o6556fe37ENAY4jlv4JyQnxzQtTEUhKhmSArYFO0aI60xUZ6GADQe4/sL3vTqNCKaMUKKbRMug7DLIK+FBvggHLFw/c8YEv0fh25rvNez4a9e+u3AoUVFCjGUpR2ASr2/kmFdHYWZoBizhIlIB8b4R429vr7+gDJhbWLwcRZELIvBjDxK8MywjQzEw67hVJZxFvD+MWUvO8Cj42nGLeYowIVzF787OE6+a9t5UDGDWi02Rx9htNJkXn41Bd3tBGcmJrBiiMlTrqzTSOJaBOcd1IzwUs7668+TeGp0Arsy5y8bIUjPk2093PH/Q2IEMWJUR5oWffS+gE0RbGs/hFDYGqVSu3wVLfAhRPvW9fTph/LYfND6bmtlikruXLs188uqXoNZrnOl1EsQ7lvj3pe9poO9WGoSlctVZrPQac0SF1GAPIbrTJj4J0FQK4UR6GfYRCYSx3snqpBCvANFBFPHaYcsT9ofq/ZX5yjpNKGbnK89nr7oryXMdCajqENwlVOcOTSh0DUIY4pYRDdhzHQZCoRUwUJ0k1emG0gaX7n0c0ZI9FzOgsy8kbtOYDZpw5InWklKIGQixdCP09SZ59i18jb+EfSuFmAH4/CUTGY8+EIihLUJIrvts/f5PWxsX0z5g05WyEVriRMICBNc3+LY9uH9TlnV7Y5NX7bExNP8fFeRdv8eZVXZuvvLmHfNFo+oDQlLHOQ9uimsieg4CyhGyEvuTkBpJBpnpLnYvJO/tjJU4a/M2b7RmMRvY/yjieYThNI2DWurbDFVAQP3be9xTYuuuFHIRrYPA+uE76rjktiRW7fGDW/LGcKzHNcpCPmPSRUoGOWwJEd9QkaYy0O/a2YiqIL6I3Ndd9LkxiAD5vwoOBQjyAN6oCFWWInLYOo0BqjrYLIHB1eubnCnNTAu40yAuHkD/i48e/XBAI8KqDnWpTlqokVvDT4mGOpE8jQkd1QED587T44cV6VyD4W5Zb9QP6qHUwClhJ4Og6wFio/Ex0LaLWkx2m3boeREb/b23bC6PGWvosjxqhaHby6hKnYtoV1KqlEoJhi80JPKQWuNTkzuP/bGUSCwS3qg8yBtZHKdi3WgvwHWoHgd/HUYlGiNOwhs12/aGqh7+4E/T3ihq/Ux9GU7tjSS2jcxAEDetpcw88oC9nNH6ZjpEIa1BbM7DW/IaGXU9PpfwMr1UB6tuFUx33gHJlOJFjKlKGYFnlDWcMGdzKMqSOGlvvHmfa2B6MYLkbGyTNL7YG0W0nFQdXD+fjJswuqYM3hghmNOCcmik9Y4415x1y/SBALl7Gbn7ru63UkrmmiRD3QkHpIdCsIlVNmZA0zQYspNMlicVNv216hMzoMtyd7I8qYD7dJPpb6cqYZPluLwyoehV+ukwYKWAPsDEFrZSlX7gkXavOO4wYe2JAH2KZXie193nj9RGUf1aMKhSfIOCKk0IVHXQZFnSgnP3tSP9Aa3LX5qaeQsmvv8S9fl9HNMpQonXgnOIbs2zJ97L7us9+wPbvuehJu/pjadp1JZ41K28fq2mvh2aV/t7L76Ymi5oRHkakmj3BJ4q8ejN9Q0Kc4Me0mJi5gAP+fHzqRn+dT94SScANVgQfxeLa3V7a3BjMVWb1TbckDvUsjSj06LVztWakhRgsAvPxtFmTWLWubVim9F5Q964GEl2//kYlenG0J8a2Ga0/TwAJcWNnR2vRhmgUSVHqEYgDsva/c/8sYcygsJqWRvSWp8RpKYoMtWiJu3l81RPSsdpBYmFv5tUOpOnC5rQIJ53hOLyYG2UzxYyM9CLGcRS05pututDxcSQhqai8NlBFJdfTPCnka1xfGvxL3j7NHzVTjpEAAAAAElFTkSuQmCC",v1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUxSURBVHgB1VpPTyRVEK96PXjRxNEPIEOMErwwJGi80XszAjvNfgCniR8APG3cPQAn3dPCyZOh8eJtbf4o3GhuHDbS3HA1YVjvOhs1UZl+tb83Q5PJMEBPzyzT/JKBnu7XPVWv6tWr+lUz9QCO4+b/j8ixmEaFqSBERUWSx/98PEaIK0xUYaGQFYe4vuf7XoW6BFNKGKFrRPOQbALiFfEgX4RDFq4MDKjwDx29CHyvGo+/d+/zwVPRBYkwlsXWUBI/X7WYl7tRpmMFYsFFpAzhfSXK39xc3aMUmJ6ZndBauxACH/ZgwaVOFelIgSnHXTSCs4j3t1IrzTPcDT5x3EKONCaEF/FZ2trwFpPem0gBzHqhJvIDDqs15tmdHvhuOxhFLJEFRWTDte4ksca1Ckw7rqvxUMz68tbGdyt0A5icdueVkrlaxF9sb3n+VWOvVCB2GWGe+cn3QrpBnFljF0Fh7SqXsi67EAsfwZTbvndEN4zfjsLquyNj60zyeHh47K1nv4RBu3Gq3UkI78TCvyp/TwLz20YGYSnfdWbL7cZccCGzYE9hun4L3wzIVIwQRNot7AsWiOp+J8tZEd4AQoda88ppIxJeDuP3k6XyKmUUU6Xy7tRdd6H53LkFjOsQwiVcZ4kyCrMHIQ1xbWQD8blzBSKhBSiwmCXXaYWRDSHde0PTXHyuroCZfSFxa0qtUcaRI1pptkJdgQhbN1JfL8uzH8M3+ZewH1uhrgBi/pzSyqNbAlG0TkjJzTHHcf/H9bWhpA8Yf/i7jR2yTGmhqWrpaGX/0VCFUmK6VP7zL+YhZdwHu1niPOfj+8cmWu2KJvwnSvPBzmrXLOt4/P6xTanB/uuaS0jDaRRfgqS31XLWHGkJn341eIe6wPiXz3fZsowVA0oBZky6SFGhhi0i40tsAdS0eWbuOjOFABXqAihJTxCNCgrhs4AatkK3DAinYZ08gP8Xnjz59oT6jA8fPHc/enjSSWCoQva8ouxgAqyGnXSw36jHM6VAKhgXqjYnR/1CpGkPtXdAHSKH1Vx9W1lv4rgnFEla/Pz1O14n48824IpSxOG/p7pItwwg1wqGqgSrhz+Ip53cLEIdjW/7DOYinpPa6li8o4bKzKEOOLSU4TcT/nAUrZFl7Y4/ODlIu6GB6DXpSLGmoxlKCShvm3RCvWaBlCVxkt749NFQUIuiIUxhkDYXQs0NlprtsItkzhDKkZIGJ1uvNadcm24JULvbqN0PzHFjH2AOkGOX6JYA+RiIYLVsjusKmDINC9nJwn5wHeLyN3afugJmW24tlrMKhE+3ufw9TyXiYrlOr2QU7aifcwViK6APkFliKxH1g4h0MOm485QxoE8xj8hz3Hr+QjYK9mtGgaX4FIQqZQTGdZDozRnCufXahf6A4eWHR8ZeQIlvPgA/f4Tv1EcY4Q3hHKFbs7Ph7bdeb1sPbPqeB+bAMzf2c1HHwoO38i5rNV3aoXl2dLj3/shoHjnHcj8scdYT2DbCozd3KeFsXfWQhhJjJ3jI9++NjPGvR+E+3QDMgoXwj7G5Lm6uX91YTNRmjRtuqB2CNM3opGi0c2kVO20eC3Zmpxdt1mZMOZ8txM3onCKvV4o0d//5GpdpRcevGsTN6Pj1AIlobWvLCygFTFbJmkoaeVja7n/qlz2MIiBWbdOQNvwMipQQDEGga3SYy1Gl2TpOI0nM/1ej4kCOBhEYsMeII1SnB4NuXltIrUA7ZZBLjYIyLEqjXi00DaniXBUxO9RiKEUV/qNkvRfvWrwE8YLSutvuhhMAAAAASUVORK5CYII=";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var su=function(r,t){return su=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},su(r,t)};function et(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");su(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var d1=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),p1=function(){function r(){this.browser=new d1,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),li=new p1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(li.wxa=!0,li.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?li.worker=!0:typeof navigator>"u"?(li.node=!0,li.svgSupported=!0):g1(navigator.userAgent,li);function g1(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const ot=li;var mh=12,m1="sans-serif",_i=mh+"px "+m1,y1=20,_1=100,A1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function S1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function X1(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var h=r[u].getBoundingClientRect(),f=2*u,v=h.left,c=h.top;o.push(v,c),l=l&&a&&v===a[f]&&c===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Bf(s,o):Bf(o,s))}function Cp(r){return r.nodeName.toUpperCase()==="CANVAS"}var $1=/([&<>"'])/g,Q1={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace($1,function(t,e){return Q1[e]})}var Z1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ws=[],q1=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function du(r,t,e,i){return e=e||{},i?Ff(r,t,e):q1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Ff(r,t,e),e}function Ff(r,t,e){if(ot.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Cp(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(vu(Ws,r,i,n)){e.zrX=Ws[0],e.zrY=Ws[1];return}}e.zrX=e.zrY=0}function bh(r){return r||window.event}function ve(r,t,e){if(t=bh(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&du(r,o,t,e)}else{du(r,t,t,e);var a=K1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Z1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function K1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function J1(r,t,e,i){r.addEventListener(t,e,i)}function j1(r,t,e,i){r.removeEventListener(t,e,i)}var Dp=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},tA=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(!!n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=zf(i)/zf(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eA(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ha(){return[1,0,0,1,0,0]}function wh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function rA(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ki(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function pu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function xh(r,t,e){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),h=Math.cos(e);return r[0]=i*h+o*u,r[1]=-i*u+o*h,r[2]=n*h+s*u,r[3]=-n*u+h*s,r[4]=h*a+u*l,r[5]=h*l-u*a,r}function iA(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Th(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var nA=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}();const wt=nA;var Ba=Math.min,Na=Math.max,zr=new wt,Gr=new wt,Vr=new wt,Hr=new wt,bn=new wt,wn=new wt,aA=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Ba(t.x,this.x),i=Ba(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Na(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Na(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=ha();return pu(a,a,[-e.x,-e.y]),iA(a,a,[i,n]),pu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,h=t.y,f=t.y+t.height,v=!(ad&&(d=_,md&&(d=A,g=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zr.x=Vr.x=e.x,zr.y=Hr.y=e.y,Gr.x=Hr.x=e.x+e.width,Gr.y=Vr.y=e.y+e.height,zr.transform(i),Hr.transform(i),Gr.transform(i),Vr.transform(i),t.x=Ba(zr.x,Gr.x,Vr.x,Hr.x),t.y=Ba(zr.y,Gr.y,Vr.y,Hr.y);var l=Na(zr.x,Gr.x,Vr.x,Hr.x),u=Na(zr.y,Gr.y,Vr.y,Hr.y);t.width=l-t.x,t.height=u-t.y},r}();const dt=aA;var Mp="silent";function oA(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:sA}}function sA(){Dp(this.event)}var lA=function(r){bt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ye),xn=function(){function r(t,e){this.x=t,this.y=e}return r}(),uA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xs=new dt(0,0,0,0),Ip=function(r){bt(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new xn(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new lA,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new V1(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(uA,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Pp(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new xn(i,n):this.findHover(i,n),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new xn(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=oA(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new xn(e,i);if(Gf(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,h=new dt(e-u,i-u,l,l),f=a.length-1;f>=0;f--){var v=a[f];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Xs.copy(v.getBoundingRect()),v.transform&&Xs.applyTransform(v.transform),Xs.intersect(h)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,m=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function hA(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1;i.silent&&(n=!0)}var s=i.__hostTarget;i=s||i.parent}return n?Mp:!0}return!1}function Gf(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=hA(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Mp)){t.target=o;break}}}function Pp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}const fA=Ip;var Lp=32,Tn=7;function cA(r){for(var t=0;r>=Lp;)t|=r&1,r>>=1;return r+t}function Vf(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function vA(r,t,e){for(e--;t>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function $s(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);a(r,t[e+h])>0?o=h+1:l=h}return l}function Qs(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);a(r,t[e+h])<0?l=h:o=h+1}return l}function dA(r,t){var e=Tn,i,n,a=0;r.length;var o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;h(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]=Tn||w>=Tn);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(g=0;g=0;g--)r[S+g]=r[b+g];r[A]=o[_];return}for(var w=e;;){var T=0,D=0,x=!1;do if(t(o[_],r[y])<0){if(r[A--]=r[y--],T++,D=0,--d===0){x=!0;break}}else if(r[A--]=o[_--],D++,T=0,--p===1){x=!0;break}while((T|D)=0;g--)r[S+g]=r[b+g];if(d===0){x=!0;break}}if(r[A--]=o[_--],--p===1){x=!0;break}if(D=p-$s(r[y],o,0,p,p-1,t),D!==0){for(A-=D,_-=D,p-=D,S=A+1,b=_+1,g=0;g=Tn||D>=Tn);if(x)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),p===1){for(A-=d,y-=d,S=A+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[A]=o[_]}else{if(p===0)throw new Error;for(b=A-(p-1),g=0;gs&&(l=s),Hf(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var oe=1,Hn=2,Wi=4,Uf=!1;function Zs(){Uf||(Uf=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wf(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var pA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wf}return r.prototype.traverse=function(t,e){for(var i=0;i0&&(h.__clipPaths=[]),isNaN(h.z)&&(Zs(),h.z=0),isNaN(h.z2)&&(Zs(),h.z2=0),isNaN(h.zlevel)&&(Zs(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const gA=pA;var Rp;Rp=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const gu=Rp;var To={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-To.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?To.bounceIn(r*2)*.5:To.bounceOut(r*2-1)*.5+.5}};const Ep=To;var Fa=Math.pow,Lr=Math.sqrt,Go=1e-8,kp=1e-4,Yf=Lr(3),za=1/3,Fe=cn(),me=cn(),Ji=cn();function Ir(r){return r>-Go&&rGo||r<-Go}function Rt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Xf(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Vo(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,h=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Ir(h)&&Ir(f))if(Ir(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var m=f*f-4*h*v;if(Ir(m)){var p=f/h,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(m>0){var y=Lr(m),_=h*s+1.5*o*(-f+y),A=h*s+1.5*o*(-f-y);_<0?_=-Fa(-_,za):_=Fa(_,za),A<0?A=-Fa(-A,za):A=Fa(A,za);var d=(-s-(_+A))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*h*s-3*o*f)/(2*Lr(h*h*h)),S=Math.acos(b)/3,w=Lr(h),T=Math.cos(S),d=(-s-2*w*T)/(3*o),g=(-s+w*(T+Yf*Math.sin(S)))/(3*o),D=(-s+w*(T-Yf*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),D>=0&&D<=1&&(a[c++]=D)}}return c}function Bp(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(Ir(o)){if(Op(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var h=a*a-4*o*s;if(Ir(h))n[0]=-a/(2*o);else if(h>0){var f=Lr(h),u=(-a+f)/(2*o),v=(-a-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ho(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,h=(l-s)*n+s,f=(h-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=h,a[6]=l,a[7]=i}function mA(r,t,e,i,n,a,o,s,l,u,h){var f,v=.005,c=1/0,d,m,p,g;Fe[0]=l,Fe[1]=u;for(var y=0;y<1;y+=.05)me[0]=Rt(r,e,n,o,y),me[1]=Rt(t,i,a,s,y),p=qi(Fe,me),p=0&&p=0&&u<=1&&(n[l++]=u)}}else{var h=o*o-4*a*s;if(Ir(h)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(h>0){var f=Lr(h),u=(-o+f)/(2*a),v=(-o-f)/(2*a);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Np(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Uo(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function AA(r,t,e,i,n,a,o,s,l){var u,h=.005,f=1/0;Fe[0]=o,Fe[1]=s;for(var v=0;v<1;v+=.05){me[0]=Vt(r,e,n,v),me[1]=Vt(t,i,a,v);var c=qi(Fe,me);c=0&&c=1?1:Vo(0,i,a,1,l,s)&&Rt(0,n,o,1,s[0])}}}var wA=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||re,this.ondestroy=t.ondestroy||re,this.onrestart=t.onrestart||re,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rt(t)?t:Ep[t]||Fp(t)},r}();const xA=wA;var zp=function(){function r(t){this.value=t}return r}(),TA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new zp(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),CA=function(){function r(t){this._list=new TA,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new zp(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ca=CA;var Qf={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 Rr(r){return r=Math.round(r),r<0?0:r>255?255:r}function mu(r){return r<0?0:r>1?1:r}function qs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Rr(parseFloat(t)/100*255):Rr(parseInt(t,10))}function qn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?mu(parseFloat(t)/100):mu(parseFloat(t))}function Ks(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ga(r,t,e){return r+(t-r)*e}function ce(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function yu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Gp=new Ca(20),Va=null;function Li(r,t){Va&&yu(Va,t),Va=Gp.put(r,Va||t.slice())}function er(r,t){if(!!r){t=t||[];var e=Gp.get(r);if(e)return yu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Qf)return yu(t,Qf[i]),Li(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ce(t,0,0,0,1);return}return ce(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Li(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ce(t,0,0,0,1);return}return ce(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Li(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ce(t,+u[0],+u[1],+u[2],1):ce(t,0,0,0,1);h=qn(u.pop());case"rgb":if(u.length>=3)return ce(t,qs(u[0]),qs(u[1]),qs(u[2]),u.length===3?h:qn(u[3])),Li(r,t),t;ce(t,0,0,0,1);return;case"hsla":if(u.length!==4){ce(t,0,0,0,1);return}return u[3]=qn(u[3]),Zf(u,t),Li(r,t),t;case"hsl":if(u.length!==3){ce(t,0,0,0,1);return}return Zf(u,t),Li(r,t),t;default:return}}ce(t,0,0,0,1)}}function Zf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=qn(r[1]),n=qn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ce(t,Rr(Ks(o,a,e+1/3)*255),Rr(Ks(o,a,e)*255),Rr(Ks(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function qf(r,t){var e=er(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vs(e,e.length===4?"rgba":"rgb")}}function DA(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=er(t[n]),s=er(t[a]),l=i-n,u=vs([Rr(Ga(o[0],s[0],l)),Rr(Ga(o[1],s[1],l)),Rr(Ga(o[2],s[2],l)),mu(Ga(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function vs(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Wo(r,t){var e=er(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function MA(r){return r.type==="linear"}function IA(r){return r.type==="radial"}(function(){return ot.hasGlobalWindow&&rt(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var _u=Array.prototype.slice;function Ke(r,t,e){return(t-r)*e+r}function Js(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Jf,l=e;if(ie(e)){var u=EA(e);s=u,(u===1&&!xt(e[0])||u===2&&!xt(e[0][0]))&&(o=!0)}else if(xt(e)&&!zo(e))s=Ua;else if($(e))if(!isNaN(+e))s=Ua;else{var h=er(e);h&&(l=h,s=Un)}else if(fs(e)){var f=z({},l);f.colorStops=j(e.colorStops,function(c){return{offset:c.offset,color:er(c.color)}}),MA(e)?s=Au:IA(e)&&(s=Su),l=f}a===0?this.valType=s:(s!==this.valType||s===Jf)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=rt(i)?i:Ep[i]||Fp(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(m,p){return m.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Wa(n),u=jf(n),h=0;h=0&&!(o[h].percent<=e);h--);h=v(h,s-2)}else{for(h=f;he);h++);h=v(h-1,s-2)}d=o[h+1],c=o[h]}if(!!(c&&d)){this._lastFr=h,this._lastFrP=e;var p=d.percent-c.percent,g=p===0?1:v((e-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Cn:t[l];if((Wa(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?c.rawValue:d.rawValue;else if(Wa(a))a===Mo?Js(y,c[n],d[n],g):PA(y,c[n],d[n],g);else if(jf(a)){var _=c[n],A=d[n],b=a===Au;t[l]={type:b?"linear":"radial",x:Ke(_.x,A.x,g),y:Ke(_.y,A.y,g),colorStops:j(_.colorStops,function(w,T){var D=A.colorStops[T];return{offset:Ke(w.offset,D.offset,g),color:Do(Js([],w.color,D.color,g))}}),global:A.global},b?(t[l].x2=Ke(_.x2,A.x2,g),t[l].y2=Ke(_.y2,A.y2,g)):t[l].r=Ke(_.r,A.r,g)}else if(u)Js(y,c[n],d[n],g),i||(t[l]=Do(y));else{var S=Ke(c[n],d[n],g);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Ua?t[i]=t[i]+n:e===Un?(er(t[i],Cn),Ha(Cn,Cn,n,1),t[i]=Do(Cn)):e===Mo?Ha(t[i],t[i],n,1):e===Vp&&Kf(t[i],t[i],n,1)},r}(),OA=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Ah("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Mt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Co(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Co(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Ch=OA;function Qi(){return new Date().getTime()}var BA=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(!!e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Qi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(gu(i),!e._paused&&e.update())}gu(i)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Ch(e,i.loop);return this.addAnimator(n),n},t}(Ye);const NA=BA;var FA=300,js=ot.domSupported,tl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=j(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),tc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ec=!1;function bu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function zA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function el(r){r&&(r.zrByTouch=!0)}function GA(r,t){return ve(r.dom,new VA(r,t),!0)}function Hp(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var VA=function(){function r(t,e){this.stopPropagation=re,this.stopImmediatePropagation=re,this.preventDefault=re,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ie={mousedown:function(r){r=ve(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ve(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ve(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ve(this.dom,r);var t=r.toElement||r.relatedTarget;Hp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ec=!0,r=ve(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ec||(r=ve(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ve(this.dom,r),el(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ie.mousemove.call(this,r),Ie.mousedown.call(this,r)},touchmove:function(r){r=ve(this.dom,r),el(r),this.handler.processGesture(r,"change"),Ie.mousemove.call(this,r)},touchend:function(r){r=ve(this.dom,r),el(r),this.handler.processGesture(r,"end"),Ie.mouseup.call(this,r),+new Date-+this.__lastTouchMomentnc||r<-nc}var Wr=[],Ri=[],il=ha(),nl=Math.abs,Dh=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ur(this.rotation)||Ur(this.x)||Ur(this.y)||Ur(this.scaleX-1)||Ur(this.scaleY-1)||Ur(this.skewX)||Ur(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&ic(i);return}i=i||ha(),e?this.getLocalTransform(i):ic(i),t&&(e?Ki(i,t,i):rA(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Wr);var i=Wr[0]<0?-1:1,n=Wr[1]<0?-1:1,a=((Wr[0]-i)*e+i)/Wr[0]||0,o=((Wr[1]-n)*e+n)/Wr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ha(),Th(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ki(Ri,t.invTransform,e),e=Ri);var i=this.originX,n=this.originY;(i||n)&&(il[4]=i,il[5]=n,Ki(Ri,e,il),Ri[4]-=i,Ri[5]-=n,e=Ri),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Se(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Se(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&nl(t[0]-1)>1e-10&&nl(t[3]-1)>1e-10?Math.sqrt(nl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){$A(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,f=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,m=n+l;e[4]=-d*a-v*m*o,e[5]=-m*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&xh(e,e,u),e[4]+=i+h,e[5]+=n+f,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $A(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Xo(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,h="left",f="top";if(i instanceof Array)l+=Ai(i[0],e.width),u+=Ai(i[1],e.height),h=null,f=null;else switch(i){case"left":l-=n,u+=s,h="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,h="center",f="bottom";break;case"bottom":l+=o/2,u+=a+n,h="center";break;case"inside":l+=o/2,u+=s,h="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,h="right",f="middle";break;case"insideTop":l+=o/2,u+=n,h="center";break;case"insideBottom":l+=o/2,u+=a-n,h="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,h="right";break;case"insideBottomLeft":l+=n,u+=a-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,h="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=h,r.verticalAlign=f,r}var al="__zr_normal__",ol=fa.concat(["ignore"]),QA=fn(fa,function(r,t){return r[t]=!0,r},{ignore:!1}),Ei={},ZA=new dt(0,0,0,0),Ph=function(){function r(t){this.id=bp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var h=ZA;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ei,i,h):Xo(Ei,i,h),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var f=i.origin;if(f&&i.rotation!=null){var v=void 0,c=void 0;f==="center"?(v=h.width*.5,c=h.height*.5):(v=Ai(f[0],h.width),c=Ai(f[1],h.height)),u=!0,a.originX=-a.x+v+(n?0:h.x),a.originY=-a.y+c+(n?0:h.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var m=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,_=void 0;m&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),_=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=oe,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cu:Tu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&er(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,vs(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},z(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(K(t))for(var i=t,n=Mt(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(al,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===al,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Ah("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,v=this._textGuide;return f&&f.useState(t,e,i,h),v&&v.useState(t,e,i,h),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(t,e,v),p&&p.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=St(n,t),o=St(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,m){e.during(m)});for(var v=0;v0||n.force&&!o.length){var T=void 0,D=void 0,x=void 0;if(s){D={},v&&(T={});for(var A=0;A<_;A++){var g=m[A];D[g]=e[g],v?T[g]=i[g]:e[g]=i[g]}}else if(v){x={};for(var A=0;A<_;A++){var g=m[A];x[g]=Co(e[g]),KA(e,i,g)}}var b=new Ch(e,!1,!1,f?jt(d,function(I){return I.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,m),x&&b.whenWithKeys(0,x,m),b.whenWithKeys(u==null?500:u,s?D:i,m).delay(h||0),r.addAnimator(b,t),o.push(b)}}const Yp=Ph;var Xp=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=St(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=St(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function Qt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?nS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Lt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Qp),r=(+r).toFixed(t),e?r:+r}function Je(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return aS(r)}function aS(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function oS(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function sS(r,t){var e=Math.max(Je(r),Je(t)),i=r+t;return e>Qp?i:Lt(i,e)}function Zp(r){var t=Math.PI*2;return(r%t+t)%t}function $o(r){return r>-lc&&r=10&&t++,t}function qp(r,t){var e=Lh(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Qo(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function hS(r){return!isNaN(Qo(r))}function Kp(){return Math.round(Math.random()*9)}function Jp(r,t){return t===0?r:Jp(t,r%t)}function hc(r,t){return r==null?t:t==null?r:r*t/Jp(r,t)}function te(r){throw new Error(r)}function fc(r,t,e){return(t-r)*e+r}var jp="series\0",fS="\0_ec_\0";function Zt(r){return r instanceof Array?r:r==null?[]:[r]}function cc(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i=0||a&&St(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var kS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],OS=va(kS),BS=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return OS(this,t,e)},r}(),Du=new Ca(50);function NS(r){if(typeof r=="string"){var t=Du.get(r);return t&&t.image}else return r}function ng(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Du.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!ps(t)&&a.pending.push(o)):(t=Ci.loadImage(r,dc,dc),t.__zrImageSrc=r,Du.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function dc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=se(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function og(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=se(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?zS(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=se(r,i)}return r===""&&(r=t.placeholder),r}function zS(r,t,e,i){for(var n=0,a=0,o=r.length;ac&&u){var d=Math.floor(c/s);f=f.slice(0,d)}if(r&&a&&h!=null)for(var m=ag(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&fl(e,r.substring(s,u),t,o),fl(e,l[2],t,o,l[1]),s=hl.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),p(y,A,_),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var I=w.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,h.push(S),S.contentWidth=se(S.text,x);else{if(R){var k=w.backgroundColor,O=k&&k.image;O&&(O=NS(O),ps(O)&&(S.width=Math.max(S.width,O.width*C/O.height)))}var B=d&&i!=null?i-A:null;B!=null&&B0&&d+i.accumWidth>i.width&&(h=t.split(` `),u=!0),i.accumWidth=d}else{var m=sg(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+c,f=m.linesWidths,h=m.lines}}else h=t.split(` `);for(var p=0;p=33&&t<=383}var YS=fn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function XS(r){return WS(r)?!!YS[r]:!0}function sg(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,h=0,f=0;fe:n+h+c>e){h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),a.push(s),o.push(h-u),l+=v,u+=c,s="",h=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(h),s=v,h=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}h+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(h)),a.length===1&&(h+=n),{accumWidth:h,lines:a,linesWidths:o}}var Mu="__zr_style_"+Math.round(Math.random()*10),vi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vi[Mu]=!0;var gc=["z","z2","invisible"],$S=["invisible"],QS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=Mt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Ya[0]=pl(n)*e+r,Ya[1]=dl(n)*i+t,Xa[0]=pl(a)*e+r,Xa[1]=dl(a)*i+t,u(s,Ya,Xa),h(l,Ya,Xa),n=n%Xr,n<0&&(n=n+Xr),a=a%Xr,a<0&&(a=a+Xr),n>a&&!o?a+=Xr:nn&&($a[0]=pl(c)*e+r,$a[1]=dl(c)*i+t,u(s,$a,s),h(l,$a,l))}var ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$r=[],Qr=[],ke=[],_r=[],Oe=[],Be=[],gl=Math.min,ml=Math.max,Zr=Math.cos,qr=Math.sin,Ze=Math.abs,Iu=Math.PI,Dr=Iu*2,yl=typeof Float32Array<"u",Dn=[];function _l(r){var t=Math.round(r/Iu*1e8)/1e8;return t%2*Iu}function jS(r,t){var e=_l(r[0]);e<0&&(e+=Dr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Dr?n=e+Dr:t&&e-n>=Dr?n=e-Dr:!t&&e>n?n=e+(Dr-_l(e-n)):t&&e0&&(this._ux=Ze(i/Yo/t)||0,this._uy=Ze(i/Yo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ze(t-this._xi),n=Ze(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(ct.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(ct.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(ct.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Dn[0]=n,Dn[1]=a,jS(Dn,o),n=Dn[0],a=Dn[1];var s=a-n;return this.addData(ct.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Zr(a)*i+t,this._yi=qr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(ct.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ct.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&yl&&(this.data=new Float32Array(e));for(var i=0;ih.length&&(this._expandData(),h=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ke[0]=ke[1]=Oe[0]=Oe[1]=Number.MAX_VALUE,_r[0]=_r[1]=Be[0]=Be[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Ze(_)>n||v===e-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case ct.C:{var A=t[v++],b=t[v++],p=t[v++],g=t[v++],S=t[v++],w=t[v++];m=yA(a,o,A,b,p,g,S,w,10),a=S,o=w;break}case ct.Q:{var A=t[v++],b=t[v++],p=t[v++],g=t[v++];m=SA(a,o,A,b,p,g,10),a=p,o=g;break}case ct.A:var T=t[v++],D=t[v++],x=t[v++],C=t[v++],I=t[v++],R=t[v++],k=R+I;v+=1,t[v++],d&&(s=Zr(I)*x+T,l=qr(I)*C+D),m=ml(x,C)*gl(Dr,Math.abs(R)),a=Zr(k)*x+T,o=qr(k)*C+D;break;case ct.R:{s=a=t[v++],l=o=t[v++];var O=t[v++],B=t[v++];m=O*2+B*2;break}case ct.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[f++]=m,h+=m)}return this._pathLen=h,h},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,h,f,v,c=e<1,d,m,p=0,g=0,y,_=0,A,b;if(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=e*m,!y))return;t:for(var S=0;S0&&(t.lineTo(A,b),_=0),w){case ct.M:s=u=i[S++],l=h=i[S++],t.moveTo(u,h);break;case ct.L:{f=i[S++],v=i[S++];var D=Ze(f-u),x=Ze(v-h);if(D>n||x>a){if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;t.lineTo(u*(1-I)+f*I,h*(1-I)+v*I);break t}p+=C}t.lineTo(f,v),u=f,h=v,_=0}else{var R=D*D+x*x;R>_&&(A=f,b=v,_=R)}break}case ct.C:{var k=i[S++],O=i[S++],B=i[S++],Q=i[S++],P=i[S++],L=i[S++];if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;Ho(u,k,B,P,I,$r),Ho(h,O,Q,L,I,Qr),t.bezierCurveTo($r[1],Qr[1],$r[2],Qr[2],$r[3],Qr[3]);break t}p+=C}t.bezierCurveTo(k,O,B,Q,P,L),u=P,h=L;break}case ct.Q:{var k=i[S++],O=i[S++],B=i[S++],Q=i[S++];if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;Uo(u,k,B,I,$r),Uo(h,O,Q,I,Qr),t.quadraticCurveTo($r[1],Qr[1],$r[2],Qr[2]);break t}p+=C}t.quadraticCurveTo(k,O,B,Q),u=B,h=Q;break}case ct.A:var N=i[S++],F=i[S++],W=i[S++],G=i[S++],Z=i[S++],q=i[S++],Y=i[S++],st=!i[S++],V=W>G?W:G,it=Ze(W-G)>.001,ut=Z+q,X=!1;if(c){var C=d[g++];p+C>y&&(ut=Z+q*(y-p)/C,X=!0),p+=C}if(it&&t.ellipse?t.ellipse(N,F,W,G,Y,Z,ut,st):t.arc(N,F,V,Z,ut,st),X)break t;T&&(s=Zr(Z)*W+N,l=qr(Z)*G+F),u=Zr(ut)*W+N,h=qr(ut)*G+F;break;case ct.R:s=u=i[S],l=h=i[S+1],f=i[S++],v=i[S++];var J=i[S++],Bt=i[S++];if(c){var C=d[g++];if(p+C>y){var Tt=y-p;t.moveTo(f,v),t.lineTo(f+gl(Tt,J),v),Tt-=J,Tt>0&&t.lineTo(f+J,v+gl(Tt,Bt)),Tt-=Bt,Tt>0&&t.lineTo(f+ml(J-Tt,0),v+Bt),Tt-=J,Tt>0&&t.lineTo(f,v+ml(Bt-Tt,0));break t}p+=C}t.rect(f,v,J,Bt);break;case ct.Z:if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;t.lineTo(u*(1-I)+s*I,h*(1-I)+l*I);break t}p+=C}t.closePath(),u=s,h=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ct,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const bi=tb;function ki(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+f&&h>i+f&&h>a+f&&h>s+f||hr+f&&u>e+f&&u>n+f&&u>o+f||ut+u&&l>i+u&&l>a+u||lr+u&&s>e+u&&s>n+u||se||h+un&&(n+=Mn);var v=Math.atan2(l,s);return v<0&&(v+=Mn),v>=i&&v<=n||v+Mn>=i&&v+Mn<=n}function Kr(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var Ar=bi.CMD,Jr=Math.PI*2,nb=1e-4;function ab(r,t){return Math.abs(r-t)t&&u>i&&u>a&&u>s||u1&&ob(),c=Rt(t,i,a,s,pe[0]),v>1&&(d=Rt(t,i,a,s,pe[1]))),v===2?pt&&s>i&&s>a||s=0&&u<=1){for(var h=0,f=Vt(t,i,a,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);$t[0]=-l,$t[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Jr-1e-4){i=0,n=Jr;var h=a?1:-1;return o>=$t[0]+r&&o<=$t[1]+r?h:0}if(i>n){var f=i;i=n,n=f}i<0&&(i+=Jr,n+=Jr);for(var v=0,c=0;c<2;c++){var d=$t[c];if(d+r>o){var m=Math.atan2(s,d),h=a?1:-1;m<0&&(m=Jr+m),(m>=i&&m<=n||m+Jr>=i&&m+Jr<=n)&&(m>Math.PI/2&&m1&&(e||(s+=Kr(l,u,h,f,i,n))),p&&(l=a[d],u=a[d+1],h=l,f=u),m){case Ar.M:h=a[d++],f=a[d++],l=h,u=f;break;case Ar.L:if(e){if(ki(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Kr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.C:if(e){if(eb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=sb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.Q:if(e){if(rb(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=lb(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.A:var g=a[d++],y=a[d++],_=a[d++],A=a[d++],b=a[d++],S=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(b)*_+g,c=Math.sin(b)*A+y,p?(h=v,f=c):s+=Kr(l,u,v,c,i,n);var T=(i-g)*A/_+g;if(e){if(ib(g,y,A,b,b+S,w,t,T,n))return!0}else s+=ub(g,y,A,b,b+S,w,T,n);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*A+y;break;case Ar.R:h=l=a[d++],f=u=a[d++];var D=a[d++],x=a[d++];if(v=h+D,c=f+x,e){if(ki(h,f,v,f,t,i,n)||ki(v,f,v,c,t,i,n)||ki(v,c,h,c,t,i,n)||ki(h,c,h,f,t,i,n))return!0}else s+=Kr(v,f,v,c,i,n),s+=Kr(h,c,h,f,i,n);break;case Ar.Z:if(e){if(ki(l,u,h,f,t,i,n))return!0}else s+=Kr(l,u,h,f,i,n);l=h,u=f;break}}return!e&&!ab(u,f)&&(s+=Kr(l,u,h,f,i,n)||0),s!==0}function hb(r,t,e){return lg(r,0,!1,t,e)}function fb(r,t,e,i){return lg(r,t,!0,e,i)}var ug=_t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vi),cb={style:_t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gs.style)},Al=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),vb=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Tu:i>.2?XA:Cu}else if(e)return Cu}return Tu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if($(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Wo(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Wi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h==null?4:h)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fb(s,l/u,e,i)))return!0}if(this.hasFill())return hb(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Wi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:z(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Wi)},t.prototype.createStyle=function(e){return cs(ug,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=z({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=z({},n.shape),z(u,i.shape)):(u=z({},a?this.shape:n.shape),z(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=z({},this.shape);for(var h={},f=Mt(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return cs(db,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Mh(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ia);hg.prototype.type="tspan";const Pu=hg;var pb=_t({x:0,y:0},vi),gb={style:_t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gs.style)};function mb(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var fg=function(r){bt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return cs(pb,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=mb(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return gb},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ia);fg.prototype.type="image";const Di=fg;function yb(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,h;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=h=o:o instanceof Array?o.length===1?s=l=u=h=o[0]:o.length===2?(s=u=o[0],l=h=o[1]):o.length===3?(s=o[0],l=h=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],h=o[3]):s=l=u=h=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+h>n&&(f=u+h,u*=n/f,h*=n/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+h>a&&(f=s+h,s*=a/f,h*=a/f),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+h,i+a),h!==0&&r.arc(e+h,i+a-h,h,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Zi=Math.round;function cg(r,t,e){if(!!t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Zi(i*2)===Zi(n*2)&&(r.x1=r.x2=hi(i,s,!0)),Zi(a*2)===Zi(o*2)&&(r.y1=r.y2=hi(a,s,!0))),r}}function vg(r,t,e){if(!!t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=hi(i,s,!0),r.y=hi(n,s,!0),r.width=Math.max(hi(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(hi(n+o,s,!1)-r.y,o===0?0:1)),r}}function hi(r,t,e){if(!t)return r;var i=Zi(r*2);return(i+Zi(t))%2===0?i/2:(i+(e?1:-1))/2}var _b=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),Ab={},dg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _b},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=vg(Ab,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?yb(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(At);dg.prototype.type="rect";const kt=dg;var Sc={fill:"#000"},bc=2,Sb={style:_t({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},gs.style)},pg=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Sc,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k=0&&(k=S[R],k.align==="right");)this._placeToken(k,e,T,g,I,"right",_),D-=k.width,I-=k.width,R--;for(C+=(a-(C-p)-(y-I)-D)/2;x<=R;)k=S[x],this._placeToken(k,e,T,g,C+k.width/2,"center",_),C+=k.width,x++;g+=T}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,f=a+n/2;h==="top"?f=a+e.height/2:h==="bottom"&&(f=a+n-e.height/2);var v=!e.isLineHolder&&Sl(u);v&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,f-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=Mc(o,s,d),f-=e.height/2-d[0]-e.innerHeight/2);var m=this._getOrCreateChild(Pu),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,A=Dc("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=Cc("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!g.autoStroke||y)?(_=bc,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,p.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||_i,p.opacity=wo(u.opacity,i.opacity,1),xc(p,u),b&&(p.lineWidth=wo(u.lineWidth,i.lineWidth,_),p.lineDash=ft(u.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=b),A&&(p.fill=A);var w=e.contentWidth,T=e.contentHeight;m.setBoundingRect(new dt(Wn(p.x,w,p.textAlign),Yi(p.y,T,p.textBaseline),w,T))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,h=e.borderColor,f=l&&l.image,v=l&&!f,c=e.borderRadius,d=this,m,p;if(v||e.lineHeight||u&&h){m=this._getOrCreateChild(kt),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=c,m.dirtyShape()}if(v){var y=m.style;y.fill=l||null,y.fillOpacity=ft(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Di),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&h){var y=m.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=ft(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var A=(m||p).style;A.shadowBlur=e.shadowBlur||0,A.shadowColor=e.shadowColor||"transparent",A.shadowOffsetX=e.shadowOffsetX||0,A.shadowOffsetY=e.shadowOffsetY||0,A.opacity=wo(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Tb(e)&&(i=[e.fontStyle,e.fontWeight,xb(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ze(i)||e.textFont||e.font},t}(Ia),bb={left:!0,right:1,center:1},wb={top:1,bottom:1,middle:1},wc=["fontStyle","fontWeight","fontSize","fontFamily"];function xb(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mh+"px":r+"px"}function xc(r,t){for(var e=0;e=0,a=!1;if(r instanceof At){var o=gg(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Oi(s)||Oi(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=z({},i),u=z({},u),u.fill=s):!Oi(u.fill)&&Oi(s)?(a=!0,i=z({},i),u=z({},u),u.fill=kc(s)):!Oi(u.stroke)&&Oi(l)&&(a||(i=z({},i),u=z({},u)),u.stroke=kc(l)),i.style=u}}if(i&&i.z2==null){a||(i=z({},i));var h=r.z2EmphasisLift;i.z2=r.z2+(h!=null?h:Mb)}return i}function kb(r,t,e){if(e&&e.z2==null){e=z({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:Ib)}return e}function Ob(r,t,e){var i=St(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:Rb(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:i?n:a.opacity*.1},o),e.style=o),e}function bl(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Eb(this,r,t,e);if(r==="blur")return Ob(this,r,e);if(r==="select")return kb(this,r,e)}return e}function Bb(r){r.stateProxy=bl;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=bl),e&&(e.stateProxy=bl)}function Nc(r,t){!wg(r,t)&&!r.__highByOuter&&ur(r,mg)}function Fc(r,t){!wg(r,t)&&!r.__highByOuter&&ur(r,yg)}function Zo(r,t){r.__highByOuter|=1<<(t||0),ur(r,mg)}function qo(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ur(r,yg)}function Nb(r){ur(r,Nh)}function Ag(r){ur(r,_g)}function Sg(r){ur(r,Pb)}function bg(r){ur(r,Lb)}function wg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function xg(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=Oh(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){_g(u)}),s&&e.push(a)),o.isBlured=!1}),M(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Lu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,h){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Eu(r,t,e){Tg(r,!0),ur(r,Bb),Wb(r,t,e)}function Ub(r){Tg(r,!1)}function Ko(r,t,e,i){i?Ub(r):Eu(r,t,e)}function Wb(r,t,e){var i=yt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Gc=["emphasis","blur","select"],Yb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ku(r,t,e,i){e=e||"itemStyle";for(var n=0;n1&&(o*=wl(d),s*=wl(d));var m=(n===a?-1:1)*wl((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=m*o*c/s,g=m*-s*v/o,y=(r+e)/2+qa(f)*p-Za(f)*g,_=(t+i)/2+Za(f)*p+qa(f)*g,A=Wc([1,0],[(v-p)/o,(c-g)/s]),b=[(v-p)/o,(c-g)/s],S=[(-1*v-p)/o,(-1*c-g)/s],w=Wc(b,S);if(Nu(b,S)<=-1&&(w=In),Nu(b,S)>=1&&(w=0),w<0){var T=Math.round(w/In*1e6)/1e6;w=In*2+T%2*In}h.addData(u,y,_,o,s,A,w,f,a)}var Kb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Jb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jb(r){var t=new bi;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=bi.CMD,l=r.match(Kb);if(!l)return t;for(var u=0;uk*k+O*O&&(T=x,D=C),{cx:T,cy:D,x0:-h,y0:-f,x1:T*(n/b-1),y1:D*(n/b-1)}}function sw(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function lw(r,t){var e,i=Yn(t.r,0),n=Yn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var h=t.cx,f=t.cy,v=!!t.clockwise,c=Xc(u-l),d=c>xl&&c%xl;if(d>Me&&(c=d),!(i>Me))r.moveTo(h,f);else if(c>xl-Me)r.moveTo(h+i*Ni(l),f+i*jr(l)),r.arc(h,f,i,l,u,!v),n>Me&&(r.moveTo(h+n*Ni(u),f+n*jr(u)),r.arc(h,f,n,u,l,v));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,A=void 0,b=void 0,S=void 0,w=void 0,T=void 0,D=void 0,x=void 0,C=void 0,I=void 0,R=void 0,k=void 0,O=i*Ni(l),B=i*jr(l),Q=n*Ni(u),P=n*jr(u),L=c>Me;if(L){var N=t.cornerRadius;N&&(e=sw(N),m=e[0],p=e[1],g=e[2],y=e[3]);var F=Xc(i-n)/2;if(_=Ne(F,g),A=Ne(F,y),b=Ne(F,m),S=Ne(F,p),D=w=Yn(_,A),x=T=Yn(b,S),(w>Me||T>Me)&&(C=i*Ni(u),I=i*jr(u),R=n*Ni(l),k=n*jr(l),cMe){var it=Ne(g,D),ut=Ne(y,D),X=Ka(R,k,O,B,i,it,v),J=Ka(C,I,Q,P,i,ut,v);r.moveTo(h+X.cx+X.x0,f+X.cy+X.y0),D0&&r.arc(h+X.cx,f+X.cy,it,zt(X.y0,X.x0),zt(X.y1,X.x1),!v),r.arc(h,f,i,zt(X.cy+X.y1,X.cx+X.x1),zt(J.cy+J.y1,J.cx+J.x1),!v),ut>0&&r.arc(h+J.cx,f+J.cy,ut,zt(J.y1,J.x1),zt(J.y0,J.x0),!v))}else r.moveTo(h+O,f+B),r.arc(h,f,i,l,u,!v);if(!(n>Me)||!L)r.lineTo(h+Q,f+P);else if(x>Me){var it=Ne(m,x),ut=Ne(p,x),X=Ka(Q,P,C,I,n,-ut,v),J=Ka(O,B,R,k,n,-it,v);r.lineTo(h+X.cx+X.x0,f+X.cy+X.y0),x0&&r.arc(h+X.cx,f+X.cy,ut,zt(X.y0,X.x0),zt(X.y1,X.x1),!v),r.arc(h,f,n,zt(X.cy+X.y1,X.cx+X.x1),zt(J.cy+J.y1,J.cx+J.x1),v),it>0&&r.arc(h+J.cx,f+J.cy,it,zt(J.y1,J.x1),zt(J.y0,J.x0),!v))}else r.lineTo(h+Q,f+P),r.arc(h,f,n,u,l,v)}r.closePath()}}}var uw=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Eg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new uw},t.prototype.buildPath=function(e,i){lw(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(At);Eg.prototype.type="sector";const Pa=Eg;var hw=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),kg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hw},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(At);kg.prototype.type="ring";const Og=kg;function fw(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,h,f;if(i){h=[1/0,1/0],f=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(i){var a=fw(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],h=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;sei[1]){if(s=!1,a)return s;var h=Math.abs(ei[0]-ti[1]),f=Math.abs(ti[0]-ei[1]);Math.min(h,f)>n.len()&&(h0){var f=h.duration,v=h.delay,c=h.easing,d={duration:f,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function ue(r,t,e,i,n,a){Vh("update",r,t,e,i,n,a)}function or(r,t,e,i,n,a){Vh("enter",r,t,e,i,n,a)}function ea(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Zc(r){return!r.isGroup}function zw(r){return r.shape!=null}function qg(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){Zc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zw(o)&&(s.shape=z({},o.shape)),s}var a=i(r);t.traverse(function(o){if(Zc(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ue(o,l,e,yt(o).dataIndex)}}})}function Gw(r,t){return j(r,function(e){var i=e[0];i=es(i,t.x),i=rs(i,t.x+t.width);var n=e[1];return n=es(n,t.y),n=rs(n,t.y+t.height),[i,n]})}function Vw(r,t){var e=es(r.x,t.x),i=rs(r.x+r.width,t.x+t.width),n=es(r.y,t.y),a=rs(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function Wh(r,t,e){var i=z({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),_t(n,e),new Di(i)):Hh(r.replace("path://",""),i,e,"center")}function Hw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a1)return!1;var p=Tl(c,d,h,f)/v;return!(p<0||p>1)}function Tl(r,t,e,i){return r*i-e*t}function Uw(r){return r<=1e-6&&r>=-1e-6}function Yh(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=$(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(Mt(l),function(h){rn(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=yt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:_t({content:i,formatterParams:s},n)}}function qc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function As(r,t){if(r)if(U(r))for(var e=0;e=0&&s.push(l)}),s}}function tm(r,t){return vt(vt({},r,!0),t,!0)}const ox={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},sx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var is="ZH",Xh="EN",pa=Xh,Eo={},$h={},em=ot.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(is)>-1?is:pa}():pa;function rm(r,t){r=r.toUpperCase(),$h[r]=new Ut(t),Eo[r]=t}function lx(r){if($(r)){var t=Eo[r.toUpperCase()]||{};return r===is||r===Xh?ht(t):vt(ht(t),ht(Eo[pa]),!1)}else return vt(ht(r),ht(Eo[pa]),!1)}function ux(r){return $h[r]}function hx(){return $h[pa]}rm(Xh,ox);rm(is,sx);var Qh=1e3,Zh=Qh*60,ra=Zh*60,Ae=ra*24,iv=Ae*365,Xn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},to="{yyyy}-{MM}-{dd}",nv={year:"{yyyy}",month:"{yyyy}-{MM}",day:to,hour:to+" "+Xn.hour,minute:to+" "+Xn.minute,second:to+" "+Xn.second,millisecond:Xn.none},Ml=["year","month","day","hour","minute","second","millisecond"],im=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ri(r,t){return r+="","0000".substr(0,t-r.length)+r}function ji(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function fx(r){return r===ji(r)}function cx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cs(r,t,e,i){var n=ar(r),a=n[qh(e)](),o=n[tn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ds(e)](),u=n["get"+(e?"UTC":"")+"Day"](),h=n[ga(e)](),f=(h-1)%12+1,v=n[Ms(e)](),c=n[Is(e)](),d=n[Ps(e)](),m=i instanceof Ut?i:ux(i||em)||hx(),p=m.getModel("time"),g=p.get("month"),y=p.get("monthAbbr"),_=p.get("dayOfWeek"),A=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ri(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ri(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ri(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ri(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ri(d,3)).replace(/{S}/g,d+"")}function vx(r,t,e,i,n){var a=null;if($(e))a=e;else if(rt(e))a=e(r.value,t,{level:r.level});else{var o=z({},Xn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(U(a)){var f=r.level==null?0:r.level>=0?r.level:a.length+r.level;f=Math.min(f,a.length-1),a=a[f]}}return Cs(new Date(r.value),a,n,i)}function nm(r,t){var e=ar(r),i=e[tn(t)]()+1,n=e[Ds(t)](),a=e[ga(t)](),o=e[Ms(t)](),s=e[Is(t)](),l=e[Ps(t)](),u=l===0,h=u&&s===0,f=h&&o===0,v=f&&a===0,c=v&&n===1,d=c&&i===1;return d?"year":c?"month":v?"day":f?"hour":h?"minute":u?"second":"millisecond"}function av(r,t,e){var i=xt(r)?ar(r):r;switch(t=t||nm(r,e),t){case"year":return i[qh(e)]();case"half-year":return i[tn(e)]()>=6?1:0;case"quarter":return Math.floor((i[tn(e)]()+1)/4);case"month":return i[tn(e)]();case"day":return i[Ds(e)]();case"half-day":return i[ga(e)]()/24;case"hour":return i[ga(e)]();case"minute":return i[Ms(e)]();case"second":return i[Is(e)]();case"millisecond":return i[Ps(e)]()}}function qh(r){return r?"getUTCFullYear":"getFullYear"}function tn(r){return r?"getUTCMonth":"getMonth"}function Ds(r){return r?"getUTCDate":"getDate"}function ga(r){return r?"getUTCHours":"getHours"}function Ms(r){return r?"getUTCMinutes":"getMinutes"}function Is(r){return r?"getUTCSeconds":"getSeconds"}function Ps(r){return r?"getUTCMilliseconds":"getMilliseconds"}function dx(r){return r?"setUTCFullYear":"setFullYear"}function am(r){return r?"setUTCMonth":"setMonth"}function om(r){return r?"setUTCDate":"setDate"}function sm(r){return r?"setUTCHours":"setHours"}function lm(r){return r?"setUTCMinutes":"setMinutes"}function um(r){return r?"setUTCSeconds":"setSeconds"}function hm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function fm(r){if(!hS(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ls=wp;function Gu(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(h){return h&&ze(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ar(r):r;if(isNaN(+l)){if(s)return"-"}else return Cs(l,i,e)}if(t==="ordinal")return lu(r)?n(r):xt(r)&&a(r)?r+"":"-";var u=Qo(r);return a(u)?fm(u):lu(r)?n(r):typeof r=="boolean"?r+"":"-"}var ov=["a","b","c","d","e","f","g"],Il=function(r,t){return"{"+r+(t==null?"":t)+"}"};function vm(r,t,e){U(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function xi(r,t){return t=t||"transparent",$(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function sv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ko=M,gx=["left","right","top","bottom","width","height"],eo=[["width","left","right"],["height","top","bottom"]];function Kh(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var h=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),c,d;if(r==="horizontal"){var m=h.width+(v?-v.x+h.x:0);c=a+m,c>i||l.newline?(a=0,c=m,o+=s+e,s=h.height):s=Math.max(s,h.height)}else{var p=h.height+(v?-v.y+h.y:0);d=o+p,d>n||l.newline?(a+=s+e,o=0,d=p,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var ia=Kh;Et(Kh,"vertical");Et(Kh,"horizontal");function ma(r,t,e){e=Ls(e||0);var i=t.width,n=t.height,a=Qt(r.left,i),o=Qt(r.top,n),s=Qt(r.right,i),l=Qt(r.bottom,n),u=Qt(r.width,i),h=Qt(r.height,n),f=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-v-a),isNaN(h)&&(h=n-l-f-o),c!=null&&(isNaN(u)&&isNaN(h)&&(c>i/n?u=i*.8:h=n*.8),isNaN(u)&&(u=c*h),isNaN(h)&&(h=u/c)),isNaN(a)&&(a=i-s-u-v),isNaN(o)&&(o=n-l-h-f),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-h/2-e[0];break;case"bottom":o=n-h-f;break}a=a||0,o=o||0,isNaN(u)&&(u=i-v-a-(s||0)),isNaN(h)&&(h=n-f-o-(l||0));var d=new dt(a+e[3],o+e[0],u,h);return d.margin=e,d}function ya(r){var t=r.layoutMode||r.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function nn(r,t,e){var i=e&&e.ignoreSize;!U(i)&&(i=[i,i]);var n=o(eo[0],0),a=o(eo[1],1);u(eo[0],r,n),u(eo[1],r,a);function o(h,f){var v={},c=0,d={},m=0,p=2;if(ko(h,function(_){d[_]=r[_]}),ko(h,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&m++}),i[f])return l(t,h[1])?d[h[2]]=null:l(t,h[2])&&(d[h[1]]=null),d;if(m===p||!c)return d;if(c>=p)return v;for(var g=0;g=0;l--)s=vt(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Ma(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ut);ig(vn,Ut);ds(vn);nx(vn);ax(vn,_x);function _x(r){var t=[];return M(vn.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=j(t,function(e){return Ge(e).main}),r!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}const Ct=vn;var dm="";typeof navigator<"u"&&(dm=navigator.platform||"");var Fi="rgba(0, 0, 0, 0.2)";const Ax={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Fi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Fi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Fi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Fi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Fi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Fi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var pm=at(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),be="original",ne="arrayRows",Xe="objectRows",hr="keyedColumns",Er="typedArray",gm="unknown",rr="column",dn="row",ae={Must:1,Might:2,Not:3},mm=Ot();function Sx(r){mm(r).datasetMap=at()}function bx(r,t,e){var i={},n=ym(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=mm(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,h,f;r=r.slice(),M(r,function(m,p){var g=K(m)?m:r[p]={name:m};g.type==="ordinal"&&h==null&&(h=p,f=d(g)),i[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(r,function(m,p){var g=m.name,y=d(m);if(h==null){var _=v.valueWayDim;c(i[g],_,y),c(o,_,y),v.valueWayDim+=y}else if(h===p)c(i[g],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(i[g],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(m,p,g){for(var y=0;yt)return r[i];return r[e-1]}function Ix(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var h=o==null||!i?e:Mx(i,o);if(h=h||e,!(!h||!h.length)){var f=h[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%h.length,f}}function Px(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var ro,Pn,uv,hv="\0_ec_inner",Lx=1,Am=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ut(a),this._locale=new Ut(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=vv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,vv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?uv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=at(),u=i&&i.replaceMergeMainTypeMap;Sx(this),M(e,function(f,v){f!=null&&(Ct.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?ht(f):vt(n[v],f,!0))}),u&&u.each(function(f,v){Ct.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Ct.topologicalTravel(s,Ct.getAllClassMainTypes(),h,this);function h(f){var v=Dx(this,f,Zt(e[f])),c=a.get(f),d=c?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=vS(c,v,d);AS(m,f,Ct),n[f]=null,a.set(f,null),o.set(f,0);var p=[],g=[],y=0,_;M(m,function(A,b){var S=A.existing,w=A.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",D=Ct.getClass(f,A.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===D)S.name=A.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var x=z({componentIndex:b},A.keyInfo);S=new D(w,this,this,x),z(S,x),A.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),y++):(p.push(void 0),g.push(void 0))},this),n[f]=p,a.set(f,g),o.set(f,y),f==="series"&&ro(this)}this._seriesIndices||ro(this)},t.prototype.getOption=function(){var e=ht(this.option);return M(e,function(i,n){if(Ct.hasClass(n)){for(var a=Zt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ca(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[hv],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Hx(r,t){return r.join(",")===t.join(",")}const Ux=Fx;var Ce=M,_a=K,dv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ll(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,i=dv.length;e=0;p--){var g=r[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=sS(v,y),m=y;break}}}return i[0]=v,i[1]=m,i})})}var Es=function(){function r(t){this.data=t.data||(t.sourceFormat===hr?{}:[]),this.sourceFormat=t.sourceFormat||gm,this.seriesLayoutBy=t.seriesLayoutBy||rr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;im&&(m=_)}c[0]=d,c[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};Sv=(t={},t[ne+"_"+rr]={pure:!0,appendData:a},t[ne+"_"+dn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:a},t[hr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var h=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)h.push(l[f])})}},t[be]={appendData:a},t[Er]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(t,e){return an(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Tv(r){var t,e;return K(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function na(r){return new sT(r)}var sT=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function h(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(i)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!i&&(f||c1&&i>0?s:o}};return a;function o(){return t=r?null:ln?-this._resultLT:0},r}(),uT=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oo(t,e)},r}();function hT(r,t){var e=new uT,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==rr&&te(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";rn(l,g)&&te(_),l[g]=y}});else for(var h=0;h65535?yT:_T}function zi(){return[1/0,-1/0]}function AT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Mv(r,t,e,i,n){var a=Em[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;up[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=j(o,function(y){return y.property}),h=0;hg[1]&&(g[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&it)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,h=0,f=this.count();h=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=h))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a=f&&y<=v||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=c[n[0]],_=c[n[1]],A=t[n[1]][0],b=t[n[1]][1],g=0;g=f&&y<=v||isNaN(y))&&(S>=A&&S<=b||isNaN(S))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g=f&&y<=v||isNaN(y))&&(l[u++]=w)}else for(var g=0;gt[x][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),h,f,v,c=new(Rn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;dh&&(h=f,v=A)}C>0&&Ch-d&&(l=h-d,s.length=l);for(var m=0;mf[1]&&(f[1]=g),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return Oo(e[a],this._dimensions[a])}kl={arrayRows:t,objectRows:function(e,i,n,a){return Oo(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Oo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),ST=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(io(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var h=e[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,a=[h._getVersionSign()]}else s=o.get("data",!0),l=le(s)?Er:be,a=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ft(f.sourceHeader,v.sourceHeader),m=ft(f.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m;n=p?[Vu(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:m},l)]:[]}else{var g=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Vu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Iv(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var h=u.getSource(n||0),f="";n!=null&&!h&&Iv(f),s.push(h),l.push(u._getVersionSign())}),i?o=gT(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[jx(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(n){var a=Nm(n);a>=t&&(t=a+ +(i&&(!a||Uu(n)&&!n.noHeader)))}),t}return 0}function xT(r,t,e,i){var n=t.noHeader,a=CT(Nm(t)),o=[],s=t.blocks||[];nr(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rn(u,l)){var h=new lT(u[l],null);s.sort(function(d,m){return h.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,m){var p=t.valueFormatter,g=Bm(d)(p?z(z({},r),{valueFormatter:p}):r,d,m>0?a.html:0,i);g!=null&&o.push(g)});var f=r.renderMode==="richText"?o.join(a.richText):Wu(o.join(""),n?e:a.html);if(n)return f;var v=Gu(t.header,"ordinal",r.useUTC),c=Om(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Fm(r,v,c)+a.richText+f:Wu('
'+ge(v)+"
"+f,e)}function TT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,h=t.valueFormatter||r.valueFormatter||function(A){return A=U(A)?A:[A],j(A,function(b,S){return Gu(b,U(c)?c[S]:c,u)})};if(!(a&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=a?"":Gu(l,"ordinal",u),c=t.valueType,d=o?[]:h(t.value),m=!s||!a,p=!s&&a,g=Om(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":f)+(a?"":Fm(r,v,y))+(o?"":IT(r,d,m,p,_)):Wu((s?"":f)+(a?"":DT(v,!s,y))+(o?"":MT(d,m,p,_)),e)}}function Pv(r,t,e,i,n,a){if(!!r){var o=Bm(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function CT(r){return{html:bT[r],richText:wT[r]}}function Wu(r,t){var e='
',i="margin: "+t+"px 0 0";return'
'+r+e+"
"}function DT(r,t,e){var i=t?"margin-left:2px":"";return''+ge(r)+""}function MT(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+j(r,function(o){return ge(o)}).join("  ")+""}function Fm(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function IT(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,a)}function PT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return xi(i)}function zm(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Ol=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Kp()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=px({color:e,type:t,renderMode:i,markerId:n});return $(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};U(e)?M(e,function(a){return z(i,a)}):z(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function LT(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=U(s),u=PT(t,e),h,f,v,c;if(o>1||l&&!o){var d=RT(s,t,e,a,u);h=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var m=n.getDimensionInfo(a[0]);c=h=an(n,e,a[0]),f=m.type}else c=h=l?s[0]:s;var p=Rh(t),g=p&&t.name||"",y=n.getName(e),_=i?g:y;return Aa("section",{header:g,noHeader:i||!p,sortParam:c,blocks:[Aa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:h,valueType:f})].concat(v||[])})}function RT(r,t,e,i,n){var a=t.getData(),o=fn(r,function(f,v,c){var d=a.getDimensionInfo(c);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?M(i,function(f){h(an(a,e,f),f)}):M(r,h);function h(f,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Aa("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:f,valueType:c.type})):(s.push(f),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sr=Ot();function no(r,t){return r.getName(t)||r.getId(t)}var ET="__universalTransitionEnabled",Os=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=na({count:OT,reset:BT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=Sr(this).sourceManager=new ST(this);a.prepareSource();var o=this.getInitialData(e,n);Rv(o,this),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Lv(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ya(this),a=n?Rs(e):{},o=this.subType;Ct.hasClass(o)&&(o+="Series"),vt(e,i.getTheme().get(this.subType)),vt(e,this.getDefaultOption()),cc(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&nn(e,a,n)},t.prototype.mergeOption=function(e,i){e=vt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ya(this);n&&nn(this.option,e,n);var a=Sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Rv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Lv(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!le(e))for(var i=["show"],n=0;nthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Jh.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(!!n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[no(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ET])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,h=0;h0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Ct.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Ct);We(Os,oT);We(Os,Jh);ig(Os,Ct);function Lv(r){var t=r.name;Rh(r)||(r.name=kT(r)||t)}function kT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return M(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function OT(r){return r.model.getRawData().count()}function BT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),NT}function NT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Rv(r,t){M(L1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Et(FT,t))})}function FT(r,t){var e=Yu(r);return e&&e.setOutputEnd((t||this).count()),t}function Yu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}const Ti=Os;var af=function(){function r(){this.group=new Wt,this.uid=Ts("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();kh(af);ds(af);const sr=af;function of(){var r=Ot();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Gm=Ot(),zT=of(),sf=function(){function r(){this.group=new Wt,this.uid=Ts("viewChart"),this.renderTask=na({plan:GT,reset:VT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);!a||kv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);!a||kv(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){As(this.group,t)},r.markUpdateMethod=function(t,e){Gm(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Ev(r,t,e){r&&Ou(r)&&(t==="emphasis"?Zo:qo)(r,e)}function kv(r,t,e){var i=Si(r,t),n=t&&t.highlightKey!=null?Xb(t.highlightKey):null;i!=null?M(Zt(i),function(a){Ev(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Ev(a,e,n)})}kh(sf);ds(sf);function GT(r){return zT(r.model)}function VT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Gm(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),HT[l]}var HT={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ir=sf;var ns="\0__throttleOriginMethod",Ov="\0__throttleRate",Bv="\0__throttleType";function lf(r,t,e){var i,n=0,a=0,o=null,s,l,u,h;t=t||0;function f(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?f():o=setTimeout(f,-s),n=i};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){h=c},v}function Vm(r,t,e,i){var n=r[t];if(!!n){var a=n[ns]||n,o=n[Bv],s=n[Ov];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=lf(a,e,i==="debounce"),n[ns]=a,n[Bv]=i,n[Ov]=e}return n}}function Xu(r,t){var e=r[t];e&&e[ns]&&(e.clear&&e.clear(),r[t]=e[ns])}var Nv=Ot(),Fv={itemStyle:va(jg,!0),lineStyle:va(Jg,!0)},UT={lineStyle:"stroke",itemStyle:"fill"};function Hm(r,t){var e=r.visualStyleMapper||Fv[t];return e||(console.warn("Unkown style type '"+t+"'."),Fv.itemStyle)}function Um(r,t){var e=r.visualDrawType||UT[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var WT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Hm(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Um(r,i),u=o[l],h=rt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||h||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||rt(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&h)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var m=r.getDataParams(d),p=z({},o);p[l]=h(m),c.setItemVisual(d,"style",p)}}}},En=new Ut,YT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Hm(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){En.option=l[i];var u=n(En),h=o.ensureUniqueItemVisual(s,"style");z(h,u),En.option.decal&&(o.setItemVisual(s,"decal",En.option.decal),En.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XT={performRawSeries:!0,overallReset:function(r){var t=at();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Nv(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Nv(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Um(e,s);a.each(function(u){var h=a.getRawIndex(u);n[h]=u}),i.each(function(u){var h=n[u],f=a.getItemVisual(h,"colorFromPalette");if(f){var v=a.ensureUniqueItemVisual(h,"style"),c=i.getName(u)||u+"",d=i.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},ao=Math.PI;function $T(r,t){t=t||{},_t(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Wt,i=new kt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new qt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new kt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Gh({shape:{startAngle:-ao/2,endAngle:-ao/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ao*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ao*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),h=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var QT=function(){function r(t,e,i,n){this._stageTaskMap=at(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=at();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;M(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";nr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;M(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var h=o._stageTaskMap.get(l.uid),f=h.seriesTaskMap,v=h.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,i);var m=o.getPerformArgs(v,n.block);d.each(function(p){p.perform(m)}),v.perform(m)&&(a=!0)}else f&&f.each(function(p,g){s(n,p)&&p.dirty();var y=o.getPerformArgs(p,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=at(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,n).each(h);function h(f){var v=f.uid,c=s.set(v,o&&o.get(v)||na({plan:jT,reset:tC,count:rC}));c.context={model:f,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||na({reset:ZT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=at(),u=t.seriesType,h=t.getTargetSeries,f=!0,v=!1,c="";nr(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,d):h?h(i,n).each(d):(f=!1,M(i.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(v=!0,na({reset:qT,onDirty:JT})));g.context={model:m,overallProgress:f},g.agent=o,g.__block=f,a._pipe(m,g)}v&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return rt(t)&&(t={overallReset:t,seriesType:iC(t)}),t.uid=Ts("stageHandler"),e&&(t.visualType=e),t},r}();function ZT(r){r.overallReset(r.ecModel,r.api,r.payload)}function qT(r){return r.overallProgress&&KT}function KT(){this.agent.dirty(),this.getDownstream().dirty()}function JT(){this.agent&&this.agent.dirty()}function jT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function tC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?j(t,function(e,i){return Wm(i)}):eC}var eC=Wm(0);function Wm(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,a,"name")&&h(u,a,"dataIndex")&&h(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function h(f,v,c,d){return f[c]==null||v[d||c]===f[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),$u=["symbol","symbolSize","symbolRotate","symbolOffset"],Hv=$u.concat(["symbolKeepAspect"]),sC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<$u.length;o++){var s=$u[o],l=r.get(s);rt(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(z({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=Mt(n);function h(f,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),m=0;m=0&&fi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Zu(r,t,e){for(var i=t.type==="radial"?CC(r,t,e):TC(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:xt(r)?[r]:U(r)?r:null}function qm(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&MC(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=j(e,function(a){return a/n}),i/=n)}return[e,i]}var IC=new bi(!0);function os(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Uv(r){return typeof r=="string"&&r!=="none"}function ss(r){var t=r.fill;return t!=null&&t!=="none"}function Wv(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Yv(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function qu(r,t,e){var i=ng(t.image,t.__image,e);if(ps(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*R1),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function PC(r,t,e,i){var n,a=os(e),o=ss(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var h=t.path||IC,f=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,m=a&&!!c.colorStops,p=o&&!!v.image,g=a&&!!c.image,y=void 0,_=void 0,A=void 0,b=void 0,S=void 0;(d||m)&&(S=t.getBoundingRect()),d&&(y=f?Zu(r,v,S):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=f?Zu(r,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(A=f||!t.__canvasFillPattern?qu(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=A),g&&(b=f||!t.__canvasStrokePattern?qu(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),d?r.fillStyle=y:p&&(A?r.fillStyle=A:o=!1),m?r.strokeStyle=_:g&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();h.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,D;r.setLineDash&&e.lineDash&&(n=qm(t),T=n[0],D=n[1]);var x=!0;(u||f&Wi)&&(h.setDPR(r.dpr),l?h.setContext(null):(h.setContext(r),x=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),x&&h.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=D),i||(e.strokeFirst?(a&&Yv(r,e),o&&Wv(r,e)):(o&&Wv(r,e),a&&Yv(r,e))),T&&r.setLineDash([])}function LC(r,t,e){var i=t.__image=ng(e.image,t.__image,t,t.onload);if(!(!i||!ps(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,h=e.sy||0;r.drawImage(i,u,h,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,h=e.sy,f=o-u,v=s-h;r.drawImage(i,u,h,f,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function RC(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||_i,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=qm(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(os(e)&&r.strokeText(n,e.x,e.y),ss(e)&&r.fillText(n,e.x,e.y)):(ss(e)&&r.fillText(n,e.x,e.y),os(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Xv=["shadowBlur","shadowOffsetX","shadowOffsetY"],$v=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Km(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ee(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?vi.opacity:o}(i||t.blend!==e.blend)&&(a||(ee(r,n),a=!0),r.globalCompositeOperation=t.blend||vi.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[Gt]){if(this._disposed){this.id;return}var a,o,s;if(K(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Gt]=!0,!this._model||i){var l=new Ux(this._api),u=this._theme,h=this._model=new Sm;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ju);var f={seriesTransition:s,optionChanged:!0};if(n)this[Jt]={silent:a,updateParams:f},this[Gt]=!1,this.getZr().wakeUp();else{try{Vi(this),br.update.call(this,null,f)}catch(v){throw this[Jt]=null,this[Gt]=!1,v}this._ssr||this._zr.flush(),this[Jt]=null,this[Gt]=!1,kn.call(this,a),On.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||WC&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!ot.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return M(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;M(i,function(l){n.eachComponent({mainType:l},function(u){var h=o._componentsMap[u.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(ld[n]){var l=s,u=s,h=-s,f=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();M(oa,function(_,A){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ht(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),h=o(S.right,h),f=o(S.bottom,f),v.push({dom:b,left:S.left,top:S.top})}}),l*=c,u*=c,h*=c,f*=c;var d=h-l,m=f-u,p=Ci.createCanvas(),g=sc(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:m}),i){var y="";return M(v,function(_){var A=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new kt({shape:{x:0,y:0,width:d,height:m},style:{fill:e.connectedBackgroundColor}})),M(v,function(_){var A=new Di({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(A)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Gl(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Gl(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=ul(n,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(i);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=ul(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?uC(s,l,i):hC(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(aD,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Qn(s,function(d){var m=yt(d);if(m&&m.dataIndex!=null){var p=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=p&&p.getDataParams(m.dataIndex,m.dataType)||{},!0}else if(m.eventData)return l=z({},m.eventData),!0},!0),l){var h=l.componentType,f=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",f=l.seriesIndex);var v=h&&f!=null&&o.getComponent(h,f),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),M(aa,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),M(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),fC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&eg(this.getDom(),ff,"");var i=this,n=i._api,a=i._model;M(i._componentsViews,function(o){o.dispose(a,n)}),M(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete oa[i.id]},t.prototype.resize=function(e){if(!this[Gt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Jt]&&(a==null&&(a=this[Jt].silent),n=!0,this[Jt]=null),this[Gt]=!0;try{n&&Vi(this),br.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[Gt]=!1,o}this[Gt]=!1,kn.call(this,a),On.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(K(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!th[e]){var n=th[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=z({},e);return i.type=aa[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(K(i)||(i={silent:!!i}),!!ls[e.type]&&!!this._model){if(this[Gt]){this._pendingActions.push(e);return}var n=i.silent;Hl.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&ot.browser.weChat&&this._throttledZrFlush(),kn.call(this,n),On.call(this,n)}},t.prototype.updateLabelLayout=function(){Pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Vi=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),zl(f,!0),zl(f,!1),v.plan()},zl=function(f,v){for(var c=f._model,d=f._scheduler,m=v?f._componentsViews:f._chartsViews,p=v?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_v.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var c=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(f,v){if(!f.preventAutoZ){var c=f.get("z")||0,d=f.get("zlevel")||0;v.eachRendered(function(m){return l(m,c,d,-1/0),!0})}}function l(f,v,c,d){var m=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),_=0;_0?{duration:m,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ea(g))return;if(g instanceof At&&$b(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),A=g.getTextGuideLine();_&&(_.stateTransition=p),A&&(A.stateTransition=p)}g.__dirty&&n(g)}})}od=function(f){return new(function(v){et(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);d=d.parent}},c.prototype.enterEmphasis=function(d,m){Zo(d,m),he(f)},c.prototype.leaveEmphasis=function(d,m){qo(d,m),he(f)},c.prototype.enterBlur=function(d){Nb(d),he(f)},c.prototype.leaveBlur=function(d){Ag(d),he(f)},c.prototype.enterSelect=function(d){Sg(d),he(f)},c.prototype.leaveSelect=function(d){bg(d),he(f)},c.prototype.getModel=function(){return f.getModel()},c.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},c}(bm))(f)},cy=function(f){function v(c,d){for(var m=0;m=0)){ud.push(e);var a=$m.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function _y(r,t){th[r]=t}function cD(r,t,e){var i=UC("registerMap");i&&i(r,t,e)}var vD=pT;Ii(uf,WT);Ii(Bs,YT);Ii(Bs,XT);Ii(uf,sC);Ii(Bs,lC);Ii(oy,GC);my(xm);yy($C,Kx);_y("default",$T);pn({type:di,event:di,update:di},re);pn({type:Lo,event:Lo,update:Lo},re);pn({type:Jn,event:Jn,update:Jn},re);pn({type:Ro,event:Ro,update:Ro},re);pn({type:jn,event:jn,update:jn},re);gy("light",nC);gy("dark",aC);function Bn(r){return r==null?0:r.length||1}function hd(r){return r}var dD=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||hd,this._newKeyGetter=n||hd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(h,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(h,u),n[l]=null;else if(f>1)for(var c=0;c1)for(var s=0;s30}var Nn=K,wr=j,wD=typeof Int32Array>"u"?Array:Int32Array,xD="e\0\0",fd=-1,TD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CD=["_approximateExtent"],cd,fo,Fn,zn,Yl,co,Xl,DD=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;Sy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},h=0;h=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===be;if(l&&!n.pure)for(var u=[],h=t;h0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),U(a)?a=a.slice():Nn(a)&&(a=z({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Nn(e)?z(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Nn(t)?z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Db(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Yl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];!rt(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Sh(arguments)))})},r.internalField=function(){cd=function(t){var e=t._invertedIndicesMap;M(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new wD(o.categories.length);for(var l=0;l1&&(l+="__ec__"+h),n[e]=l}}}(),r}();const MD=DD;function ID(r,t){tf(r)||(r=ef(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=at(),a=[],o=LD(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xy(o),l=i===r.dimensionsDefine,u=l?wy(r):by(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(r,o));for(var f=at(h),v=new Rm(o),c=0;c0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function LD(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return M(t,function(a){var o;K(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function RD(r,t,e){var i=t.data;if(e||i.hasOwnProperty(r)){for(var n=0;i.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var ED=function(){function r(t){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=t}return r}();function kD(r){var t=r.get("coordinateSystem"),e=new ED(t),i=OD[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var OD={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Re).models[0],a=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Hi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Hi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",n),Hi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Re).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Hi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Hi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),h=o[l];e.set(h,u),Hi(u)&&(i.set(h,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Hi(r){return r.get("type")==="category"}function BD(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;ND(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,h,f,v;if(M(a,function(y,_){$(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!h&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(h=y))}),h&&!i&&!u&&(i=!0),h){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=h.coordDim,d=h.type,m=0;M(a,function(y){y.coordDim===c&&m++});var p={name:f,coordDim:c,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:v,stackResultDimension:f}}function ND(r){return!Sy(r.schema)}function sn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function FD(r,t){return sn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function zD(r,t){var e=r.get("coordinateSystem"),i=jh.get(e),n;return t&&t.coordSysDims&&(n=j(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=yD(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function GD(r,t,e){var i,n;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function df(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=ef(r)):(n=i.getSource(),a=n.sourceFormat===be);var o=kD(t),s=zD(t,o),l=e.useEncodeDefaulter,u=rt(l)?l:l?Et(bx,s,t):null,h={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=ID(n,h),v=GD(f.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(f),d=BD(t,{schema:f,store:c}),m=new MD(f,t);m.setCalculationInfo(d);var p=v!=null&&VD(n)?function(g,y,_,A){return A===v?_:this.defaultDimValueGetter(g,y,_,A)}:null;return m.hasItemOption=!1,m.initData(a?n:c,null,p),m}function VD(r){if(r.sourceFormat===be){var t=HD(r.data||[]);return!U(Da(t))}}function HD(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();ds(Ty);const fr=Ty;var UD=0,WD=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UD}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&j(i,YD);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!$(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=at(this.categories))},r}();function YD(r){return K(r)&&r.value!=null?r.value:r+""}const eh=WD;function rh(r){return r.type==="interval"||r.type==="log"}function XD(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=qp(a/t,!0);e!=null&&oi&&(o=n.interval=i);var s=n.intervalPrecision=Cy(o),l=n.niceTickExtent=[Lt(Math.ceil(r[0]/o)*o,s),Lt(Math.floor(r[1]/o)*o,s)];return $D(l,r),n}function $l(r){var t=Math.pow(10,Lh(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Lt(e*t)}function Cy(r){return Je(r)+2}function vd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function $D(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),vd(r,0,t),vd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ns(r,t){return r>=t[0]&&r<=t[1]}function Fs(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function zs(r,t){return r*(t[1]-t[0])+t[0]}var Dy=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new eh({})),U(n)&&(n=new eh({categories:j(n,function(a){return K(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ns(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Fs(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(zs(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(fr);fr.registerClass(Dy);const My=Dy;var oi=Lt,Iy=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ns(e,this._extent)},t.prototype.normalize=function(e){return Fs(e,this._extent)},t.prototype.scale=function(e){return zs(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cy(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]l)return[];var h=s.length?s[s.length-1].value:a[1];return n[1]>h&&(e?s.push({value:oi(h+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function Ry(r){var t=qD(r),e=[];return M(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],h=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?h/v*u:h}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Qt(i.get("barWidth"),s),m=Qt(i.get("barMaxWidth"),s),p=Qt(i.get("barMinWidth")||(ky(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:gf(a),stackId:pf(i)})}),KD(e)}function KD(r){var t={};M(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=i.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var f=i.barMaxWidth;f&&(l[u].maxWidth=f);var v=i.barMinWidth;v&&(l[u].minWidth=v);var c=i.barGap;c!=null&&(s.gap=c);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=Mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Qt(s,o),h=Qt(i.gap,1),f=i.remainedWidth,v=i.autoWidthCount,c=(f-u)/(v+(v-1)*h);c=Math.max(c,0),M(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var A=g.width;y&&(A=Math.min(A,y)),_&&(A=Math.max(A,_)),g.width=A,f-=A+h*A,v--}else{var A=c;y&&yA&&(A=_),A!==c&&(g.width=A,f-=A+h*A,v--)}}),c=(f-u)/(v+(v-1)*h),c=Math.max(c,0);var d=0,m;M(a,function(g,y){g.width||(g.width=c),m=g,d+=g.width*(1+h)}),m&&(d-=m.width*h);var p=-d/2;M(a,function(g,y){e[n][y]=e[n][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+h)})}),e}function JD(r,t,e){if(r&&t){var i=r[gf(t)];return i!=null&&e!=null?i[pf(e)]:i}}function jD(r,t){var e=Ly(r,t),i=Ry(e);M(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=pf(n),u=i[gf(s)][l],h=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:h,size:f})})}function tM(r){return{seriesType:r,plan:of(),reset:function(t){if(!!Ey(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),h=e.getCalculationInfo("stackResultDimension"),f=sn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=eM(n,a),d=ky(t),m=t.get("barMinHeight")||0,p=h&&e.getDimensionIndex(h),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,A){for(var b=_.count,S=d&&je(b*3),w=d&&l&&je(b*3),T=d&&je(b),D=i.master.getRect(),x=v?D.width:D.height,C,I=A.getStore(),R=0;(C=_.next())!=null;){var k=I.get(f?p:o,C),O=I.get(s,C),B=c,Q=void 0;f&&(Q=+k-I.get(o,C));var P=void 0,L=void 0,N=void 0,F=void 0;if(v){var W=i.dataToPoint([k,O]);if(f){var G=i.dataToPoint([Q,O]);B=G[0]}P=B,L=W[1]+y,N=W[0]-B,F=g,Math.abs(N)>>1;r[n][1]n&&(this._approxInterval=n);var s=vo.length,l=Math.min(rM(vo,this._approxInterval,0,s),s-1);this._interval=vo[l][1],this._minLevelUnit=vo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return xt(e)?e:+ar(e)},t.prototype.contain=function(e){return Ns(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Fs(this.parse(e),this._extent)},t.prototype.scale=function(e){return zs(e,this._extent)},t.type="time",t}(La),vo=[["second",Qh],["minute",Zh],["hour",ra],["quarter-day",ra*6],["half-day",ra*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",iv/2],["year",iv]];function iM(r,t,e,i){var n=ar(t),a=ar(e),o=function(d){return av(n,d,i)===av(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},h=function(){return u()&&o("hour")},f=function(){return h()&&o("minute")},v=function(){return f()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return f();case"second":return v();case"millisecond":return c()}}function nM(r,t){return r/=Ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function aM(r){var t=30*Ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function oM(r){return r/=ra,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function dd(r,t){return r/=t?Zh:Qh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sM(r){return qp(r,!0)}function lM(r,t,e){var i=new Date(r);switch(ji(t)){case"year":case"month":i[am(e)](0);case"day":i[om(e)](1);case"hour":i[sm(e)](0);case"minute":i[lm(e)](0);case"second":i[um(e)](0),i[hm(e)](0)}return i.getTime()}function uM(r,t,e,i){var n=1e4,a=im,o=0;function s(x,C,I,R,k,O,B){for(var Q=new Date(C),P=C,L=Q[R]();P1&&O===0&&I.unshift({value:I[0].value-P})}}for(var O=0;O=i[0]&&y<=i[1]&&f++)}var _=(i[1]-i[0])/t;if(f>_*1.5&&v>_/1.5||(u.push(p),f>_||r===a[c]))break}h=[]}}}for(var A=jt(j(u,function(x){return jt(x,function(C){return C.value>=i[0]&&C.value<=i[1]&&!C.notAdd})}),function(x){return x.length>0}),b=[],S=A.length-1,c=0;c0;)a*=10;var s=[Lt(vM(i[0]/a)*a),Lt(cM(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){sa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=De(e)/De(this.base),Ns(e,this._extent)},t.prototype.normalize=function(e){return e=De(e)/De(this.base),Fs(e,this._extent)},t.prototype.scale=function(e){return e=zs(e,this._extent),po(this.base,e)},t.type="log",t}(fr),By=mf.prototype;By.getMinorTicks=sa.getMinorTicks;By.getLabel=sa.getLabel;function go(r,t){return fM(r,Je(t))}fr.registerClass(mf);const dM=mf;var pM=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[mM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=gM[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),gM={min:"_determinedMin",max:"_determinedMax"},mM={min:"_dataMin",max:"_dataMax"};function yM(r,t,e){var i=r.rawExtentInfo;return i||(i=new pM(r,t,e),r.rawExtentInfo=i,i)}function mo(r,t){return t==null?null:zo(t)?NaN:r.parse(t)}function Ny(r,t){var e=r.type,i=yM(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=Ly("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Ry(s),h=_M(n,a,t,u);n=h.min,a=h.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function _M(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=JD(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;M(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=t-r,f=1-(s+l)/a,v=h/f-h;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function gd(r,t){var e=t,i=Ny(r,e),n=i.extent,a=e.get("splitNumber");r instanceof dM&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function AM(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new My({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new hM({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(fr.getClass(t)||La)}}function SM(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Ra(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):$(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}}(t):rt(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(yf(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function yf(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function bM(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof My?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Ra(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var h=0;h=0||(md.push(r),rt(r)&&(r={install:r}),r.install(CM))}var wa=Ot();function DM(r){return r.type==="category"?IM(r):LM(r)}function MM(r,t){return r.type==="category"?PM(r,t):{ticks:j(r.scale.getTicks(),function(e){return e.value})}}function IM(r){var t=r.getLabelModel(),e=zy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function zy(r,t){var e=Gy(r,"labels"),i=_f(t),n=Vy(e,i);if(n)return n;var a,o;return rt(i)?a=Wy(r,i):(o=i==="auto"?RM(r):i,a=Uy(r,o)),Hy(e,i,{labels:a,labelCategoryInterval:o})}function PM(r,t){var e=Gy(r,"ticks"),i=_f(t),n=Vy(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),rt(i))a=Wy(r,i,!0);else if(i==="auto"){var s=zy(r,r.getLabelModel());o=s.labelCategoryInterval,a=j(s.labels,function(l){return l.tickValue})}else o=i,a=Uy(r,o,!0);return Hy(e,i,{ticks:a,tickCategoryInterval:o})}function LM(r){var t=r.scale.getTicks(),e=Ra(r);return{labels:j(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function Gy(r,t){return wa(r)[t]||(wa(r)[t]=[])}function Vy(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),h=Math.abs(u*Math.cos(i)),f=Math.abs(u*Math.sin(i)),v=0,c=0;l<=a[1];l+=s){var d=0,m=0,p=Mh(e({value:l}),t.font,"center","top");d=p.width*1.3,m=p.height*1.3,v=Math.max(v,d,7),c=Math.max(c,m,7)}var g=v/h,y=c/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),A=wa(r.model),b=r.getExtent(),S=A.lastAutoInterval,w=A.lastTickCount;return S!=null&&w!=null&&Math.abs(S-_)<=1&&Math.abs(w-o)<=1&&S>_&&A.axisExtent0===b[0]&&A.axisExtent1===b[1]?_=S:(A.lastTickCount=o,A.lastAutoInterval=_,A.axisExtent0=b[0],A.axisExtent1=b[1]),_}function kM(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Uy(r,t,e){var i=Ra(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],h=n.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Fy(r),v=o.get("showMinLabel")||f,c=o.get("showMaxLabel")||f;v&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);c&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(e?p:{formattedLabel:i(g),rawLabel:n.getLabel(g),tickValue:p})}return s}function Wy(r,t,e){var i=r.scale,n=Ra(r),a=[];return M(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var yd=[0,1],OM=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return oS(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),_d(i,n.count())),uc(t,yd,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),_d(i,n.count()));var a=uc(t,i,yd,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=MM(this,e),n=i.ticks,a=j(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return BM(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=j(i,function(a){return j(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return DM(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return EM(this)},r}();function _d(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function BM(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;M(t,function(c){c.coord-=u/2});var h=r.scale.getExtent();s=1+h[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=a[0]>a[1];v(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=Lt(c),d=Lt(d),f?c>d:c-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ti);const VM=GM;function Af(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=an(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o=0&&i.push(t[a])}return i.join(" ")}var HM=function(r){et(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=on(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=UM,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Zo(this.childAt(0))},t.prototype.downplay=function(){qo(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,h=a&&a.disableAnimation;if(u){var f=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,f)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(c):ue(v,c,s,i),Xg(v)}if(this._updateCommon(e,i,l,n,a),u){var v=this.childAt(0);if(!h){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,or(v,c,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,h,f,v,c,d,m,p,g;if(a&&(u=a.emphasisItemStyle,h=a.blurItemStyle,f=a.selectItemStyle,v=a.focus,c=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),h=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),m=ws(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var A=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var b=Zm(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=e.getItemVisual(i,"style"),w=S.fill;if(s instanceof Di){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(z({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(i,"liftZ"),x=this._z2;D!=null?x==null&&(this._z2=s.z2,s.z2+=D):x!=null&&(s.z2=x,this._z2=null);var C=o&&o.useNameLabel;bs(s,m,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:S.opacity});function I(O){return C?e.getName(O):Af(e,O)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=h;var k=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;R.scaleX=this._sizeX*k,R.scaleY=this._sizeY*k,this.setSymbolScale(1),Ko(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=yt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&ts(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ts(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return xC(e.getItemVisual(i,"symbolSize"))},t}(Wt);function UM(r,t){this.parent.drift(r,t)}const Sf=HM;function Ql(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Ad(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function Sd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:ws(t),cursorStyle:t.get("cursor")}}var WM=function(){function r(t){this.group=new Wt,this._SymbolCtor=t||Sf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ad(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Sd(t),u={disableAnimation:s},h=e.getSymbolPoint||function(f){return t.getItemLayout(f)};a||i.removeAll(),t.diff(a).add(function(f){var v=h(f);if(Ql(t,v,f,e)){var c=new o(t,f,l,u);c.setPosition(v),t.setItemGraphicEl(f,c),i.add(c)}}).update(function(f,v){var c=a.getItemGraphicEl(v),d=h(f);if(!Ql(t,d,f,e)){i.remove(c);return}var m=t.getItemVisual(f,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==m)i.remove(c),c=new o(t,f,l,u),c.setPosition(d);else{c.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?c.attr(g):ue(c,g,n)}i.add(c),t.setItemGraphicEl(f,c)}).remove(function(f){var v=a.getItemGraphicEl(f);v&&v.fadeOut(function(){i.remove(v)},n)}).execute(),this._getSymbolPoint=h,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Ad(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=i[0]:i[1]<0&&(e=i[1]),e}function $y(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function $M(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function QM(r,t,e,i,n,a,o,s){for(var l=$M(r,t),u=[],h=[],f=[],v=[],c=[],d=[],m=[],p=Xy(n,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=n||m<0)break;if(pi(g,y)){if(l){m+=a;continue}break}if(m===e)r[a>0?"moveTo":"lineTo"](g,y),f=g,v=y;else{var _=g-u,A=y-h;if(_*_+A*A<.5){m+=a;continue}if(o>0){for(var b=m+a,S=t[b*2],w=t[b*2+1];S===g&&w===y&&p=i||pi(S,w))c=g,d=y;else{x=S-u,C=w-h;var k=g-u,O=S-g,B=y-h,Q=w-y,P=void 0,L=void 0;if(s==="x"){P=Math.abs(k),L=Math.abs(O);var N=x>0?1:-1;c=g-N*P*o,d=y,I=g+N*L*o,R=y}else if(s==="y"){P=Math.abs(B),L=Math.abs(Q);var F=C>0?1:-1;c=g,d=y-F*P*o,I=g,R=y+F*L*o}else P=Math.sqrt(k*k+B*B),L=Math.sqrt(O*O+Q*Q),D=L/(L+P),c=g-x*o*(1-D),d=y-C*o*(1-D),I=g+x*o*D,R=y+C*o*D,I=xr(I,Tr(S,g)),R=xr(R,Tr(w,y)),I=Tr(I,xr(S,g)),R=Tr(R,xr(w,y)),x=I-g,C=R-y,c=g-x*P/L,d=y-C*P/L,c=xr(c,Tr(u,g)),d=xr(d,Tr(h,y)),c=Tr(c,xr(u,g)),d=Tr(d,xr(h,y)),x=g-c,C=y-d,I=g+x*L/P,R=y+C*L/P}r.bezierCurveTo(f,v,c,d,g,y),f=I,v=R}else r.lineTo(g,y)}u=g,h=y,m+=a}return p}var Qy=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ZM=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qy},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&pi(n[o*2-2],n[o*2-1]);o--);for(;a=0){var A=u?(d-l)*_+l:(c-s)*_+s;return u?[e,A]:[A,e]}s=c,l=d;break;case o.C:c=a[f++],d=a[f++],m=a[f++],p=a[f++],g=a[f++],y=a[f++];var b=u?Vo(s,c,m,g,e,h):Vo(l,d,p,y,e,h);if(b>0)for(var S=0;S=0){var A=u?Rt(l,d,p,y,w):Rt(s,c,m,g,w);return u?[e,A]:[A,e]}}s=g,l=y;break}}},t}(At),qM=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Qy),KM=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new qM},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&pi(n[s*2-2],n[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function eI(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(!!a){var l=t.getAxis(n),u=j(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),h=u.length,f=a.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),f.reverse());var v=tI(u,n==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&h)return u[0].coord<0?f[1]?f[1]:u[h-1].color:f[0]?f[0]:u[0].color;var d=10,m=v[0].coord-d,p=v[c-1].coord+d,g=p-m;if(g<.001)return"transparent";M(v,function(_){_.offset=(_.coord-m)/g}),v.push({offset:c?v[c-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:f[0]||"transparent"});var y=new Jo(0,0,0,0,v,!0);return y[n]=m,y[n+"2"]=p,y}}}function rI(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(n&&iI(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function iI(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;oi)return!1;return!0}function nI(r,t){return isNaN(r)||isNaN(t)}function aI(r){for(var t=r.length/2;t>0&&nI(r[t*2-2],r[t*2-1]);t--);return t-1}function Cd(r,t){return[r[t*2],r[t*2+1]]}function oI(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Ky(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=m.getState("emphasis").style;N.lineWidth=+m.style.lineWidth+1}yt(m).seriesIndex=e.seriesIndex,Ko(m,Q,P,L);var F=Td(e.get("smooth")),W=e.get("smoothMonotone");if(m.setShape({smooth:F,smoothMonotone:W,connectNulls:T}),p){var G=l.getCalculationInfo("stackedOnSeries"),Z=0;p.useStyle(_t(h.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(Z=Td(G.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:Z,smoothMonotone:W,connectNulls:T}),ku(p,e,"areaStyle"),yt(p).seriesIndex=e.seriesIndex,Ko(p,Q,P,L)}var q=function(Y){a._changePolyState(Y)};l.eachItemGraphicEl(function(Y){Y&&(Y.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=A,e.get("triggerLineEvent")&&(this.packEventData(e,m),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,i){yt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=Si(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],f=l[s*2+1];if(isNaN(h)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,f))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new Sf(o,s),u.x=h,u.y=f,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ir.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=Si(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ir.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;Bc(this._polyline,e),i&&Bc(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ZM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new KM({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,h=u.get("animationDuration");rt(h)&&(h=h(null));var f=u.get("animationDelay")||0,v=rt(f)?f(null):f;e.eachItemGraphicEl(function(c,d){var m=c;if(m){var p=[c.x,c.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var A=n,b=i.pointToCoord(p);a?(g=A.startAngle,y=A.endAngle,_=-b[1]/180*Math.PI):(g=A.r0,y=A.r,_=b[0])}else{var S=n;a?(g=S.x,y=S.x+S.width,_=c.x):(g=S.y+S.height,y=S.y,_=c.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var T=rt(f)?f(d):h*w+v,D=m.getSymbolPath(),x=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(Ky(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new qt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=aI(l);h>=0&&(bs(s,ws(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:h,defaultText:function(f,v,c){return c!=null?Yy(o,c):Af(o,f)},enableTextSetter:!0},sI(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,h=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=i.shape,A=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?m:0)*(y?-1:1),S=(g?0:-m)*(y?-1:1),w=g?"x":"y",T=oI(f,A,w),D=T.range,x=D[1]-D[0],C=void 0;if(x>=1){if(x>1&&!c){var I=Cd(f,D[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(C=v.getRawValue(D[0]))}else{var I=h.getPointOn(A,w);I&&u.attr({x:I[0]+b,y:I[1]+S});var R=v.getRawValue(D[0]),k=v.getRawValue(D[1]);o&&(C=TS(n,d,R,k,T.t))}a.lastFrameIndex=D[0]}else{var O=e===1||a.lastFrameIndex>0?D[0]:0,I=Cd(f,O);o&&(C=v.getRawValue(O)),u.attr({x:I[0]+b,y:I[1]+S})}o&&xs(u).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,h=this._polygon,f=e.hostModel,v=QM(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,m=v.next,p=v.stackedOnNext;if(o&&(c=Cr(v.current,n,o,l),d=Cr(v.stackedOnCurrent,n,o,l),m=Cr(v.next,n,o,l),p=Cr(v.stackedOnNext,n,o,l)),xd(c,m)>3e3||h&&xd(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),h&&(h.stopAnimation(),h.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var g={shape:{points:m}};v.current!==c&&(g.shape.__points=v.next),u.stopAnimation(),ue(u,g,f),h&&(h.setShape({points:c,stackedOnPoints:d}),h.stopAnimation(),ue(h,{shape:{stackedOnPoints:p}},f),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var y=[],_=v.status,A=0;A<_.length;A++){var b=_[A].cmd;if(b==="="){var S=e.getItemGraphicEl(_[A].idx1);S&&y.push({el:S,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),f=i.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(f||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;$(a)?d=fI[a]:rt(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,d,cI))}}}}}function vI(r){r.registerChartView(uI),r.registerSeriesModel(VM),r.registerLayout(hI("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Jy("line"))}var jy=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return df(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var i=this.coordinateSystem;if(i&&i.clampData){var n=i.dataToPoint(i.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),l=i.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ti);Ti.registerClass(jy);const Dd=jy;var dI=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return df(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=tm(Dd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Dd);const pI=dI;var gI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),mI=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new gI},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,h=i.startAngle,f=i.endAngle,v=i.clockwise,c=Math.PI*2,d=v?f-hMath.PI/2&&hs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(!!this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Fu(a,e,yt(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ir),Id={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=ql(t.x,r.x),s=Kl(t.x+t.width,n),l=ql(t.y,r.y),u=Kl(t.y+t.height,a),h=sn?s:o,t.y=f&&l>a?u:l,t.width=h?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),h||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Kl(t.r,r.r),a=ql(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},Pd={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new kt({shape:z({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var h=u.shape,f=n?"height":"width";h[f]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?Md:Pa,h=new u({shape:i,z2:1});h.name="item";var f=t0(n);if(h.calculateTextPosition=yI(f,{isRoundCap:u===Md}),a){var v=h.shape,c=n?"r":"endAngle",d={};v[c]=n?0:i.startAngle,d[c]=i[c],(s?ue:or)(h,{shape:d},a)}return h}};function bI(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Ld(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?ue:or)(e,{shape:l},t,n,null);var h=t?r.baseAxis.model:null;(o?ue:or)(e,{shape:u},h,n)}function Rd(r,t){for(var e=0;e0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function TI(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function t0(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function kd(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",i.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=i.getShallow("cursor");u&&r.attr("cursor",u);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=ws(i);bs(r,f,{labelFetcher:a,labelDataIndex:e,defaultText:Af(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=r.getTextContent();if(s&&v){var c=i.get(["label","position"]);r.textConfig.inside=c==="middle"?!0:null,_I(r,c==="outside"?h:c,t0(o),i.get(["label","rotate"]))}Zw(v,f,a.getRawValue(e),function(m){return Yy(t,m)});var d=i.getModel(["emphasis"]);Ko(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),ku(r,i),TI(n)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function CI(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var DI=function(){function r(){}return r}(),Od=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new DI},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?e:null},30,!1);function MI(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,h=0,f=a.length/3;h=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[h]}return-1}function e0(r,t,e){if(bf(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function II(r,t,e){var i=r.type==="polar"?Pa:kt;return new i({shape:e0(t,e,r),silent:!0,z2:0})}const PI=SI;function LI(r){r.registerChartView(PI),r.registerSeriesModel(pI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(jD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tM("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Jy("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var RI=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ct);const EI=RI;var nh=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(Ct);We(nh,TM);var r0={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},kI=vt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r0),wf=vt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},r0),OI=vt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wf),BI=_t({logBase:10},wf);const NI={category:kI,value:wf,time:OI,log:BI};var FI={value:1,category:1,time:1,log:1};function Fd(r,t,e,i){M(FI,function(n,a){var o=vt(vt({},NI[a],!0),i,!0),s=function(l){et(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return u.prototype.mergeDefaultAndTheme=function(h,f){var v=ya(this),c=v?Rs(h):{},d=f.getTheme();vt(h,d.get(a+"Axis")),vt(h,this.getDefaultOption()),h.type=zd(h),v&&nn(h,c,v)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=eh.createByAxisModel(this))},u.prototype.getCategories=function(h){var f=this.option;if(f.type==="category")return h?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",zd)}function zd(r){return r.type||(r.data?"category":"value")}var zI=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const GI=zI;var ah=["x","y"];function Gd(r){return r.type==="interval"||r.type==="time"}var VI=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ah,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Gd(e)||!Gd(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var h=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-n[0]*h,c=o[1]-a[0]*f,d=this._transform=[h,0,0,f,v,c];this._invTransform=Th([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new dt(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Se(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Se(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),a=Math.min(i[0],i[1]),o=Math.max(e[0],e[1])-n,s=Math.max(i[0],i[1])-a;return new dt(n,a,o,s)},t}(GI),HI=function(r){et(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(NM);const UI=HI;function oh(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,h=i.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[f[2]-c,f[3]+c]:[f[0]-c,f[1]+c];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(m,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:f[0],u==="x"?d[v[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ua(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function Vd(r){return r.get("coordinateSystem")==="cartesian2d"}function Hd(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Re).models[0];t[i]=a}),t}var Jl=Math.log;function WI(r,t,e){var i=La.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=Ny(r,t),u=l.extent,h=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=Jl(r.base);u=[Jl(u[0])/v,Jl(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:f});var c=i.getExtent.call(r);h&&(u[0]=c[0]),f&&(u[1]=c[1]);var d=i.getInterval.call(r),m=u[0],p=u[1];if(h&&f)d=(p-m)/o;else if(h)for(p=u[0]+d*o;pu[0]&&isFinite(m)&&isFinite(u[0]);)d=$l(d),m=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=$l(d));var y=d*o;p=Math.ceil(u[1]/d)*d,m=Lt(p-y),m<0&&u[0]>=0?(m=0,p=Lt(y)):p>0&&u[1]<=0&&(p=0,m=-Lt(y))}var _=(n[0].value-a[0].value)/s,A=(n[o].value-a[o].value)/s;i.setExtent.call(r,m+d*_,p+d*A),i.setInterval.call(r,d),(_||A)&&i.setNiceExtent.call(r,m+d,p-d)}var YI=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ah,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Mt(o),u=l.length;if(!!u){for(var h=[],f=u-1;f>=0;f--){var v=+l[f],c=o[v],d=c.model,m=c.scale;rh(m)&&d.get("alignTicks")&&d.get("interval")==null?h.push(c):(gd(m,d),rh(m)&&(s=c))}h.length&&(s||(s=h.pop(),gd(s.scale,s.model)),M(h,function(p){WI(p.scale,p.model,s.scale)}))}}n(i.x),n(i.y);var a={};M(i.x,function(o){Ud(i,"y",o,a)}),M(i.y,function(o){Ud(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=ma(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=bM(u);if(h){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=h[f]+v,u.position==="top"?o.y+=h.height+v:u.position==="left"&&(o.x+=h.width+v)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var h=u.isHorizontal(),f=h?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),XI(u,h?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}K(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n0?"top":"bottom",a="center"):$o(n-Pr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Yd={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Se(s,s,o),Se(l,l,o));var h=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new wi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});da(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(c)||xt(c))&&(c=[c,c]);var d=Zm(t.get(["axisLine","symbolOffset"])||0,c),m=c[0],p=c[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(v[y]!=="none"&&v[y]!=null){var _=on(v[y],-m/2,-p/2,m,p,h.stroke,!0),A=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+A*Math.cos(r.rotation),y:b[1]-A*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=qI(e,i,t,r),a=JI(e,i,t,r);if(ZI(t,a,n),KI(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=FM(j(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));zM(o)}},axisName:function(r,t,e,i){var n=ua(r.axisName,t.get("name"));if(!!n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),h=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-h*l:a==="end"?u[1]+h*l:(u[0]+u[1])/2,$d(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*Pr/180);var d;$d(a)?v=gi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=QI(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var m=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=ua(r.nameTruncateMaxWidth,p.maxWidth,d),_=new qt({x:f[0],y:f[1],rotation:v.rotation,silent:gi.isLabelSilent(t),style:kr(s,{text:n,font:m,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Yh({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var A=gi.makeAxisEventDataBase(t);A.targetType="axisName",A.name=n,yt(_).eventData=A}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function QI(r,t,e,i){var n=Zp(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return $o(n-Pr/2)?(o=l?"bottom":"top",a="center"):$o(n-Pr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",nPr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function ZI(r,t,e){if(!Fy(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],h=e[1],f=e[e.length-1],v=e[e.length-2];i===!1?(fe(a),fe(u)):Xd(a,o)&&(i?(fe(o),fe(h)):(fe(a),fe(u))),n===!1?(fe(s),fe(f)):Xd(l,s)&&(n?(fe(l),fe(v)):(fe(s),fe(f)))}}function fe(r){r&&(r.ignore=!0)}function Xd(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=wh([]);return xh(n,n,-r.rotation),e.applyTransform(Ki([],n,r.getLocalTransform())),i.applyTransform(Ki([],n,t.getLocalTransform())),e.intersect(i)}}function $d(r){return r==="middle"||r==="center"}function i0(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l=0||r===t}function n2(r){var t=xf(r);if(!!t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=sh(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=xf(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=ui(t).pointerEl=new Ww[a.type](qd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=ui(t).labelEl=new qt(qd(e.label));t.add(a),Jd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=ui(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=ui(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Jd(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Wh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Dp(u.event)},onmousedown:eu(this._onHandleDragMove,this,0,0),drift:eu(this._onHandleDragMove,this),ondragend:eu(this._onHandleDragEnd,this)}),i.add(n)),jd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Vm(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Kd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ru(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(!!i){this._dragging=!0;var n=this.updateHandleTransform(ru(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ru(n)),ui(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Xu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function Kd(r,t,e,i){l0(ui(e).lastProp,i)||(ui(e).lastProp=i,t?ue(e,i,r):(e.stopAnimation(),e.attr(i)))}function l0(r,t){if(K(r)&&K(t)){var e=!0;return M(t,function(i,n){e=e&&l0(r[n],i)}),!!e}else return r===t}function Jd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ru(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function jd(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}const g2=p2;function m2(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function y2(r,t,e,i,n){var a=e.get("value"),o=u0(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ls(s.get("padding")||0),u=s.getFont(),h=Mh(o,u),f=n.position,v=h.width+l[1]+l[3],c=h.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var m=n.verticalAlign;m==="bottom"&&(f[1]-=c),m==="middle"&&(f[1]-=c/2),_2(f,v,c,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:kr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function _2(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function u0(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:yf(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=u&&u.getDataParams(h);f&&s.seriesData.push(f)}),$(o)?a=o.replace("{value}",a):rt(o)&&(a=o(s))}return a}function h0(r,t,e){var i=ha();return xh(i,i,e.rotation),pu(i,i,e.position),Uh([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function A2(r,t,e,i,n,a){var o=n0.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),y2(t,i,n,a,{position:h0(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function S2(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function b2(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var w2=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),h=tp(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var v=m2(a),c=x2[u](s,f,h);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=oh(l.model,n);A2(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=oh(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=h0(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=tp(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,f=[e.x,e.y];f[h]+=i[h],f[h]=Math.min(l[1],f[h]),f[h]=Math.max(l[0],f[h]);var v=(u[1]+u[0])/2,c=[v,v];c[h]=f[h];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[h]}},t}(g2);function tp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var x2={line:function(r,t,e){var i=S2([t,e[0]],[t,e[1]],ep(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:b2([t-i/2,e[0]],[i,n],ep(r))}}};function ep(r){return r.dim==="x"?0:1}const T2=w2;var C2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Ct);const D2=C2;var tr=Ot(),M2=M;function f0(r,t,e){if(!ot.node){var i=t.getZr();tr(i).records||(tr(i).records={}),I2(i,t);var n=tr(i).records[r]||(tr(i).records[r]={});n.handler=e}}function I2(r,t){if(tr(r).initialized)return;tr(r).initialized=!0,e("click",Et(rp,"click")),e("mousemove",Et(rp,"mousemove")),e("globalout",L2);function e(i,n){r.on(i,function(a){var o=R2(t);M2(tr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),P2(o.pendings,t)})}}function P2(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function L2(r,t,e){r.handler("leave",null,e)}function rp(r,t,e,i){t.handler(r,e,i)}function R2(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function uh(r,t){if(!ot.node){var e=t.getZr(),i=(tr(e).records||{})[r];i&&(tr(e).records[r]=null)}}var E2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";f0("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){uh("axisPointer",i)},t.prototype.dispose=function(e,i){uh("axisPointer",i)},t.type="axisPointer",t}(sr);const k2=E2;function c0(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Si(a,r);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),f=h.dim,v=u.dim,c=f==="x"||f==="radius"?1:0,d=a.mapDimension(v),m=[];m[c]=a.get(d,o),m[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(m)||[]}else e=l.dataToPoint(a.getValues(j(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var ip=Ot();function O2(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||Dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){No(n)&&(n=c0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=No(n),u=a.axesInfo,h=s.axesInfo,f=i==="leave"||No(n),v={},c={},d={list:[],map:{}},m={showPointer:Et(N2,c),showTooltip:Et(F2,d)};M(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);M(s.coordSysAxesInfo[y],function(A,b){var S=A.axis,w=H2(u,A);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=S.pointToData(n)),T!=null&&np(A,T,m,!1,v)}})});var p={};return M(h,function(g,y){var _=g.linkGroup;_&&!c[y]&&M(_.axesInfo,function(A,b){var S=c[b];if(A!==g&&S){var w=S.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,ap(A),ap(g)))),p[g.key]=w}})}),M(p,function(g,y){np(h[y],g,m,!0,v)}),z2(c,h,v),G2(d,n,r,o),V2(h,o,e),v}}function np(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=B2(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&z(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function B2(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(i),f,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(h,r,e);v=c.dataIndices,f=c.nestestValue}else{if(v=l.getData().indicesOfNearest(h[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(h[0],v[0])}if(!(f==null||!isFinite(f))){var d=r-f,m=Math.abs(d);m<=o&&((m=0&&s<0)&&(o=m,s=d,n=f,a.length=0),M(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function N2(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function F2(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xa(l),h=r.map[u];h||(h=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function z2(r,t,e){var i=e.axesInfo=[];M(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function G2(r,t,e,i){if(No(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function V2(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=ip(i)[n]||{},o=ip(i)[n]={};M(r,function(u,h){var f=u.axisPointerModel.option;f.status==="show"&&M(f.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];M(a,function(u,h){!o[h]&&l.push(u)}),M(o,function(u,h){!a[h]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function H2(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function ap(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function No(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function v0(r){a0.registerAxisPointerClass("CartesianAxisPointer",T2),r.registerComponentModel(D2),r.registerComponentView(k2),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=jI(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},O2)}function d0(r){lr(d2),lr(v0)}function U2(r,t){var e=Ls(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new kt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var W2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ct);const Y2=W2;function p0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function g0(r){if(!!ot.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var h=u*Math.PI/180,f=o+n,v=f*Math.abs(Math.cos(h))+f*Math.abs(Math.sin(h)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-f)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'
'}function J2(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=ot.transformSupported?","+Tf+i:",left"+i+",top"+i),Q2+":"+n}function op(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!ot.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ot.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Tf+":"+o+";":[["top",0],["left",0],[m0,o]]}function j2(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),M(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function tP(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),h=r.getModel("textStyle"),f=zm(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+v),t&&n&&i.push(J2(n,e)),a&&i.push("background-color:"+a),M(["width","color","radius"],function(c){var d="border-"+c,m=cm(d),p=r.get(m);p!=null&&i.push(d+":"+p+(c==="color"?"":"px"))}),i.push(j2(h)),f!=null&&i.push("padding:"+Ls(f).join("px ")+"px"),i.join(";")+";"}function sp(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&W1(r,o,document.body,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var eP=function(){function r(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;sp(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,h=a.painter.getViewportRoot();ve(h,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,i=$2(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=Z2+tP(t,!this._firstShow,this._longHide)+op(a[0],a[1],!0)+("border-color:"+xi(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(a)&&i.get("trigger")==="item"&&!p0(i)&&(s=K2(i,n,a)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||ot.node||!n.getDom())){var o=hp(a,n);this._ticket="";var s=a.dataByCoordSys,l=hP(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=aP;h.x=a.x,h.y=a.y,h.update(),yt(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var f=c0(a,i),v=f.point[0],c=f.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(hp(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(!!u){var h=u.getData(),f=Gn([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){this._lastDataByCoordSys=null;var s,l;Qn(n,function(u){if(yt(u).dataIndex!=null)return s=u,!0;if(yt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=Dt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Gn([i.tooltipOption],a),l=this._renderMode,u=[],h=Aa("section",{blocks:[],noHeader:!0}),f=[],v=new Ol;M(e,function(y){M(y.dataByAxis,function(_){var A=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!A||b==null)){var S=u0(b,A.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=Aa("section",{header:S,noHeader:!ze(S),sortBlocks:!0,blocks:[]});h.blocks.push(w),M(_.seriesDataIndices,function(T){var D=n.getSeriesByIndex(T.seriesIndex),x=T.dataIndexInside,C=D.getDataParams(x);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=yf(A.axis,{value:b}),C.axisValueLabel=S,C.marker=v.makeTooltipMarker("item",xi(C.color),l);var I=Tv(D.formatTooltip(x,!0,null)),R=I.frag;if(R){var k=Gn([D],a).get("valueFormatter");w.blocks.push(k?z({valueFormatter:k},R):R)}I.text&&f.push(I.text),u.push(C)}})}})}),h.blocks.reverse(),f.reverse();var c=i.position,d=s.get("order"),m=Pv(h,v,l,d,n.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var p=l==="richText"?` `:"
",g=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=yt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,f=o.dataType,v=u.getData(f),c=this._renderMode,d=e.positionDefault,m=Gn([v.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(h,f),y=new Ol;g.marker=y.makeTooltipMarker("item",xi(g.color),c);var _=Tv(u.formatTooltip(h,!1,f)),A=m.get("order"),b=m.get("valueFormatter"),S=_.frag,w=S?Pv(b?z({valueFormatter:b},S):S,y,c,A,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+u.name+"_"+h;this._showOrMove(m,function(){this._showTooltipContent(m,w,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=yt(i),o=a.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&u.push(h),u.push({formatter:s.content});var f=e.positionDefault,v=Gn(u,this._tooltipModel,f?{position:f}:null),c=v.get("content"),d=Math.random()+"",m=new Ol;this._showOrMove(v,function(){var p=ht(v.get("formatterParams")||{});this._showTooltipContent(v,c,p,d,e.offsetX,e.offsetY,e.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,h){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),m=d.color;if(v)if($(v)){var p=e.ecModel.get("useUTC"),g=U(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=v,y&&(c=Cs(g.axisValue,c,p)),c=vm(c,n,!0)}else if(rt(v)){var _=Dt(function(A,b){A===this._ticket&&(f.setContent(b,h,e,m,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=a,c=v(n,a,_)}else c=v;f.setContent(c,h,e,m,l),f.show(e,m),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||U(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!U(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var f=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),rt(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,h],contentSize:f.slice()})),U(i))n=Qt(i[0],u),a=Qt(i[1],h);else if(K(i)){var m=i;m.width=f[0],m.height=f[1];var p=ma(m,{width:u,height:h});n=p.x,a=p.y,v=null,c=null}else if($(i)&&l){var g=uP(i,d,f,e.get("borderWidth"));n=g[0],a=g[1]}else{var g=sP(n,a,o,u,h,v?null:20,c?null:20);n=g[0],a=g[1]}if(v&&(n-=fp(v)?f[0]/2:v==="right"?f[0]:0),c&&(a-=fp(c)?f[1]/2:c==="bottom"?f[1]:0),p0(e)){var g=lP(n,a,o,u,h);n=g[0],a=g[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&M(n,function(s,l){var u=s.dataByAxis||[],h=e[l]||{},f=h.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(v,c){var d=f[c]||{},m=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===p.length,o&&M(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&M(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],A=a[y];_&&A&&A.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){ot.node||!i.getDom()||(Xu(this,"_updatePosition"),this._tooltipContent.dispose(),uh("itemTooltip",i))},t.type="tooltip",t}(sr);function Gn(r,t,e){var i=t.ecModel,n;e?(n=new Ut(e,i,i),n=new Ut(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new Ut(o,n,i)))}return n}function hp(r,t){return r.dispatchAction||Dt(t.dispatchAction,t)}function sP(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function lP(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function uP(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,h=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+h/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+h+o;break;case"left":s=t.x-n-o,l=t.y+h/2-a/2;break;case"right":s=t.x+u+o,l=t.y+h/2-a/2}return[s,l]}function fp(r){return r==="center"||r==="middle"}function hP(r,t,e){var i=Eh(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Ma(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var h=yt(u).tooltipConfig;if(h&&h.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const fP=oP;function _0(r){lr(v0),r.registerComponentModel(Y2),r.registerComponentView(fP),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},re),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},re)}var cP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ct),vP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ft(e.get("textBaseline"),e.get("textVerticalAlign")),h=new qt({style:kr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),v=e.get("subtext"),c=new qt({style:kr(s,{text:v,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),m=e.get("sublink"),p=e.get("triggerEvent",!0);h.silent=!d&&!p,c.silent=!m&&!p,d&&h.on("click",function(){sv(d,"_"+e.get("target"))}),m&&c.on("click",function(){sv(m,"_"+e.get("subtarget"))}),yt(h).eventData=yt(c).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(h),v&&a.add(c);var g=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=ma(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var A={align:l,verticalAlign:u};h.setStyle(A),c.setStyle(A),g=a.getBoundingRect();var b=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var w=new kt({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(sr);function A0(r){r.registerComponentModel(cP),r.registerComponentView(vP)}var dP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},pP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),U(i)&&M(i,function(a,o){$(a)&&(a={type:a}),i[o]=vt(a,dP(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Ct);const hh=pP;var Ui=Et,fh=M,So=Wt,gP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new So),this.group.add(this._selectorGroup=new So),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var h=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),c=ma(h,f,v),d=this.layoutInner(e,o,c,a,l,u),m=ma(_t({width:d.width,height:d.height},h),f,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=U2(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),h=at(),f=i.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),fh(i.getData(),function(c,d){var m=c.get("name");if(!this.newlineDisabled&&(m===""||m===` `)){var p=new So;p.newline=!0,u.add(p);return}var g=n.getSeriesByName(m)[0];if(!h.get(m))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},A=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,m,d,c,i,e,_,b,A,f,a);S.on("click",Ui(cp,m,null,a,v)).on("mouseover",Ui(ch,g.name,null,a,v)).on("mouseout",Ui(vh,g.name,null,a,v)),h.set(m,!0)}else n.eachRawSeries(function(w){if(!h.get(m)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(m))return;var D=T.indexOfName(m),x=T.getItemVisual(D,"style"),C=T.getItemVisual(D,"legendIcon"),I=er(x.fill);I&&I[3]===0&&(I[3]=.2,x=z(z({},x),{fill:vs(I,"rgba")}));var R=this._createItem(w,m,d,c,i,e,{},x,C,f,a);R.on("click",Ui(cp,null,m,a,v)).on("mouseover",Ui(ch,null,m,a,v)).on("mouseout",Ui(vh,null,m,a,v)),h.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();fh(e,function(u){var h=u.type,f=new qt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);bs(f,{normal:v,emphasis:c},{defaultText:u.title}),Eu(f)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,h,f,v){var c=e.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");h=_||h||"roundRect";var A=mP(h,a,l,u,c,p,v),b=new So,S=a.getModel("textStyle");if(rt(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:m,icon:h,iconRotate:g,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(yP({itemWidth:d,itemHeight:m,icon:h,iconRotate:w,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,x=o.get("formatter"),C=i;$(x)&&x?C=x.replace("{name}",i!=null?i:""):rt(x)&&(C=x(i));var I=a.get("inactiveColor");b.add(new qt({style:kr(S,{text:C,x:T,y:m/2,fill:p?S.getTextColor():I,align:D,verticalAlign:"middle"})}));var R=new kt({shape:b.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Yh({el:R,componentModel:o,itemName:i,itemTooltipOption:k.option}),b.add(R),b.eachChild(function(O){O.silent=!0}),R.silent=!f,this.getContentGroup().add(b),Eu(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ia(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var h=l.getBoundingRect(),f=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){ia("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),m=e.getOrient().index,p=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?c[m]+=h[p]+d:f[m]+=v[p]+d,c[1-m]+=h[g]/2-v[g]/2,u.x=c[0],u.y=c[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=h[p]+d+v[p],_[g]=Math.max(h[g],v[g]),_[y]=Math.min(0,v[y]+c[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(sr);function mP(r,t,e,i,n,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),fh(p,function(y,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),h=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?i.decal:Ku(f,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),m=u[h];u.lineWidth=d==="auto"?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function yP(r){var t=r.icon||"roundRect",e=on(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function cp(r,t,e,i){vh(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),ch(r,t,e,i)}function S0(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;in[o],p=[-c.x,-c.y];i||(p[a]=h[u]);var g=[0,0],y=[-d.x,-d.y],_=ft(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var A=e.get("pageButtonPosition",!0);A==="end"?y[a]+=n[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,h.setPosition(p),f.setPosition(g),v.setPosition(y);var b={x:0,y:0};if(b[o]=m?n[o]:c[o],b[s]=Math.max(c[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),f.__rectSize=n[o],m){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-_,0),S[s]=b[s],f.setClipPath(new kt({shape:S})),f.__rectSize=S[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ue(h,{x:w.contentPosition[0],y:w.contentPosition[1]},m?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;M(["pagePrev","pageNext"],function(h){var f=h+"DataIndex",v=i[f]!=null,c=n.childOfName(h);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=iu[o],l=nu[o],u=this._findTargetItemIndex(i),h=n.children(),f=h[u],v=h.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var m=A(f);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=v;++p)_=A(h[p]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=A(h[p]),(!_||!b(y,_.s))&&g.i=w&&S.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i!=null?i:a},t.type="legend.scroll",t}(b0);const xP=wP;function TP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function CP(r){lr(w0),r.registerComponentModel(bP),r.registerComponentView(xP),TP(r)}function DP(r){lr(w0),lr(CP)}function pp(r,t,e){var i=Ci.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var MP=function(r){bt(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Yo,typeof e=="string"?o=pp(e,i,n):K(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Tp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=pp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new dt(0,0,0,0);function h(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new dt(0,0,0,0);_.copy(y),o.push(_)}else{for(var A=!1,b=1/0,S=0,w=0;w=s)}}for(var f=this.__startIndex;f15)break}}k.prevElClipPaths&&g.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var x=c.dpr,C=0;C0&&t>n[0]){for(l=0;lt);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?bo:0),this._needsManuallyCompositing),h.__builtin__||Ah("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,e(l),a=h),n.__dirty&oe&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(f,v){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?vt(i[t],e,!0):i[t]=e;for(var n=0;n(un("data-v-a16c38e1"),r=r(),hn(),r),OP={class:"chart-container"},BP=kP(()=>E("div",{class:"chart-header"},[E("div",{class:"chart-title"},"\u5145\u7535\u65F6\u957F\u5206\u6790")],-1)),NP={__name:"ChargingDurationChart",setup(r){lr([LI,d0,_0,A0,x0]);const t=nt(null);let e=null;const i=[{month:"7.1",charge:350,discharge:280},{month:"7.2",charge:230,discharge:190},{month:"7.3",charge:400,discharge:320},{month:"7.4",charge:280,discharge:220},{month:"7.5",charge:350,discharge:260},{month:"7.6",charge:450,discharge:380},{month:"7.7",charge:300,discharge:240},{month:"7.8",charge:420,discharge:340},{month:"7.9",charge:250,discharge:180},{month:"7.10",charge:380,discharge:300},{month:"7.11",charge:320,discharge:250},{month:"7.12",charge:400,discharge:320}];function n(){if(!t.value)return;e=py(t.value);const s={grid:{left:"2%",right:"2%",bottom:"10%",top:"5%",containLabel:!0},legend:{data:["\u5145\u7535\u65F6\u957F","\u653E\u7535\u65F6\u957F"],top:"0",itemWidth:10,itemHeight:10,itemGap:10,textStyle:{color:"#96A0B5",fontSize:12}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#343744",borderColor:"#4C4F5F",textStyle:{color:"#fff"}},xAxis:{type:"category",data:i.map(l=>l.month),axisLine:{lineStyle:{color:"#4C4F5F"}},axisLabel:{color:"#96A0B5",fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:"#96A0B5",fontSize:12},splitLine:{lineStyle:{color:"#343744",type:"dashed"}},max:500},series:[{name:"\u5145\u7535\u65F6\u957F",type:"bar",barWidth:"20%",data:i.map(l=>l.charge),itemStyle:{color:"#347AE2",borderRadius:[4,4,0,0]}},{name:"\u653E\u7535\u65F6\u957F",type:"bar",barWidth:"20%",data:i.map(l=>l.discharge),itemStyle:{color:"#B8D4FE",borderRadius:[4,4,0,0]}}]};e.setOption(s),window.addEventListener("resize",a)}function a(){e&&e.resize()}en(()=>{ou(()=>{setTimeout(()=>{n(),e&&e.resize()},0)})});const o=nt(null);return en(()=>{ou(()=>{window.ResizeObserver&&t.value&&(o.value=new ResizeObserver(()=>{e?e.resize():n()}),o.value.observe(t.value)),setTimeout(()=>{n()},0)})}),_p(()=>{window.removeEventListener("resize",a),o.value&&t.value&&(o.value.unobserve(t.value),o.value=null),e&&(e.dispose(),e=null)}),(s,l)=>(gt(),mt("div",OP,[BP,E("div",{class:"chart-body",ref_key:"chartRef",ref:t},null,512)]))}},FP=Or(NP,[["__scopeId","data-v-a16c38e1"]]);const zP=r=>(un("data-v-d0b87f83"),r=r(),hn(),r),GP={class:"chart-container"},VP=zP(()=>E("div",{class:"chart-header"},[E("div",{class:"chart-title"},"\u5145\u653E\u7535\u91CF\u5BF9\u6BD4")],-1)),HP={__name:"ChargingComparisonChart",setup(r){lr([vI,d0,_0,A0,DP,x0]);const t=nt(null);let e=null;const i={dates:["7.2","7.3","7.4","7.5","7.6","7.7","7.8","7.9","7.10","7.11","7.12"],chargeData:[45,65,55,80,60,55,70,60,85,65,75],dischargeData:[30,45,35,50,40,30,45,35,60,40,50]};function n(){if(!t.value)return;e=py(t.value);const s=i.chargeData.indexOf(Math.max(...i.chargeData)),l=i.dischargeData.indexOf(Math.max(...i.dischargeData)),u={grid:{left:"2%",right:"2%",bottom:"10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",backgroundColor:"#343744",borderColor:"#4C4F5F",textStyle:{color:"#fff"}},legend:{data:["\u5145\u7535\u91CF","\u653E\u7535\u91CF"],top:"0",itemWidth:10,itemHeight:10,itemGap:10,textStyle:{color:"#96A0B5",fontSize:12}},xAxis:{type:"category",boundaryGap:!1,data:i.dates,axisLine:{lineStyle:{color:"#4C4F5F"}},axisLabel:{color:"#96A0B5",fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:"#96A0B5",fontSize:12},splitLine:{lineStyle:{color:"#343744",type:"dashed"}},min:0,max:100},series:[{name:"\u5145\u7535\u91CF",type:"line",smooth:!0,symbol:"none",symbolSize:8,lineStyle:{width:3,color:"#347AE2"},itemStyle:{color:"#347AE2",borderWidth:2,borderColor:"#fff"},data:i.chargeData.map((h,f)=>f===s?{value:h,symbolSize:10,symbol:"circle",itemStyle:{color:"#347AE2",borderWidth:1,borderColor:"#fff",shadowColor:"#347AE2",shadowBlur:10}}:h),areaStyle:{opacity:.1,color:new Jo(0,0,0,1,[{offset:0,color:"#347AE2"},{offset:1,color:"rgba(52, 122, 226, 0)"}])}},{name:"\u653E\u7535\u91CF",type:"line",smooth:!0,symbol:"none",symbolSize:8,lineStyle:{width:3,color:"#B8D4FE"},itemStyle:{color:"#B8D4FE",borderWidth:1,borderColor:"#fff",shadowColor:"#B8D4FE",shadowBlur:10},data:i.dischargeData.map((h,f)=>f===l?{value:h,symbolSize:10,symbol:"circle",itemStyle:{color:"#B8D4FE",borderWidth:2,borderColor:"#fff"}}:h),areaStyle:{opacity:.1,color:new Jo(0,0,0,1,[{offset:0,color:"#B8D4FE"},{offset:1,color:"rgba(184, 212, 254, 0)"}])}}]};e.setOption(u),window.addEventListener("resize",a)}function a(){e&&e.resize()}const o=nt(null);return en(()=>{ou(()=>{window.ResizeObserver&&t.value&&(o.value=new ResizeObserver(()=>{e?e.resize():n()}),o.value.observe(t.value)),setTimeout(()=>{n(),e&&e.resize()},0)})}),_p(()=>{window.removeEventListener("resize",a),o.value&&t.value&&(o.value.unobserve(t.value),o.value=null),e&&(e.dispose(),e=null)}),(s,l)=>(gt(),mt("div",GP,[VP,E("div",{class:"chart-body",ref_key:"chartRef",ref:t},null,512)]))}},UP=Or(HP,[["__scopeId","data-v-d0b87f83"]]);const Ea=r=>(un("data-v-812ae25e"),r=r(),hn(),r),WP={class:"charging-stats"},YP={class:"stats-container"},XP={class:"stats-cards"},$P={class:"stat-card"},QP=Ea(()=>E("div",{class:"stat-icon"},[E("img",{src:c1,alt:"\u5145\u7535\u6B21\u6570"})],-1)),ZP={class:"stat-content"},qP=Ea(()=>E("div",{class:"stat-title"},"\u5145\u7535\u603B\u6B21\u6570",-1)),KP={class:"stat-value"},JP={class:"stat-card"},jP=Ea(()=>E("div",{class:"stat-icon"},[E("img",{src:v1,alt:"\u7535\u6C60\u5065\u5EB7\u72B6\u6001"})],-1)),tL={class:"stat-content"},eL=Ea(()=>E("div",{class:"stat-title"},"\u7535\u6C60\u5065\u5EB7\u72B6\u6001",-1)),rL={class:"stat-value"},iL={class:"charts-area"},nL={class:"filter-bar"},aL={class:"date-range"},oL=Ea(()=>E("span",{class:"date-label"},"\u5145\u7535\u8BB0\u5F55",-1)),sL={__name:"ChargingStats",setup(r){const t={totalCount:50,health:85},e=nt(null),i=nt(1),n=nt(10),a=[{index:1,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"},{index:2,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"},{index:3,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"}],o=Ve(()=>(e.value,a)),s=Ve(()=>{const f=(i.value-1)*n.value;return o.value.slice(f,f+n.value)});function l(){i.value=1}function u(){e.value=null,i.value=1}function h({page:f,limit:v}){i.value=f,n.value=v}return(f,v)=>{const c=Pt("el-date-picker"),d=Pt("el-button"),m=Pt("el-table-column"),p=Pt("el-table");return gt(),mt("div",WP,[E("div",YP,[E("div",XP,[E("div",$P,[QP,E("div",ZP,[qP,E("div",KP,pt(t.totalCount),1)])]),E("div",JP,[jP,E("div",tL,[eL,E("div",rL,pt(t.health)+"%",1)])])]),E("div",iL,[H(FP),H(UP)])]),E("div",nL,[E("div",aL,[oL,H(c,{modelValue:e.value,"onUpdate:modelValue":v[0]||(v[0]=g=>e.value=g),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F",size:"default",class:"date-picker"},null,8,["modelValue"]),H(d,{type:"primary",class:"filter-btn",onClick:l},{default:lt(()=>[Le("\u641C\u7D22")]),_:1}),H(d,{class:"reset-btn",onClick:u},{default:lt(()=>[Le("\u91CD\u7F6E")]),_:1})])]),H(p,{data:Ft(s),style:{width:"100%"},"header-cell-style":{backgroundColor:"#343744",color:"#96A0B5",fontWeight:"normal"},class:"custom-table"},{default:lt(()=>[H(m,{prop:"index",label:"\u5E8F\u53F7",width:"60",align:"center"}),H(m,{prop:"carId",label:"\u8F66\u8F86\u7F16\u53F7","min-width":"180"}),H(m,{prop:"vin",label:"\u8F66\u8F86\u8BC6\u522B\u7801","min-width":"120"}),H(m,{prop:"chargeStatus",label:"\u5145\u7535\u72B6\u6001",width:"100"}),H(m,{prop:"startTime",label:"\u5F00\u59CB\u65F6\u95F4","min-width":"160"}),H(m,{prop:"endTime",label:"\u7ED3\u675F\u65F6\u95F4","min-width":"160"}),H(m,{prop:"chargePile",label:"\u5145\u7535\u6869",width:"100"}),H(m,{prop:"operator",label:"\u5145\u7535\u64CD\u4F5C\u5458",width:"120"})]),_:1},8,["data"]),dh(H(gh,{total:Ft(o).length,page:i.value,"onUpdate:page":v[1]||(v[1]=g=>i.value=g),limit:n.value,"onUpdate:limit":v[2]||(v[2]=g=>n.value=g),onPagination:h},null,8,["total","page","limit"]),[[ph,Ft(o).length>0]])])}}},lL=Or(sL,[["__scopeId","data-v-812ae25e"]]);const uL={class:"video-monitoring"},hL={class:"video-monitoring-content"},fL={key:0,class:"one-view"},cL=["src"],vL={key:1,class:"two-view"},dL=["src"],pL={key:2,class:"six-view"},gL=["src"],mL={__name:"VideoMonitoring",props:{layoutType:{type:String,default:"6"},vehicle:{type:Object,default:()=>({})}},setup(r){const t=r,e=nt(Array.from({length:20}).map((s,l)=>({id:l+1,img:`https://picsum.photos/seed/${l+1}/400/220`}))),i=nt(1),n=nt(6),a=Ve(()=>{const s=(i.value-1)*n.value;return e.value.slice(s,s+n.value)});function o({page:s,limit:l}){i.value=s,n.value=l}return(s,l)=>(gt(),mt("div",uL,[E("div",hL,[t.layoutType==="1"?(gt(),mt("div",fL,[Ft(a)[0]?(gt(),mt("img",{key:0,src:Ft(a)[0].img,class:"video-img"},null,8,cL)):la("",!0)])):t.layoutType==="2"?(gt(),mt("div",vL,[(gt(!0),mt(mi,null,yi(Ft(a).slice(0,2),u=>(gt(),mt("img",{key:u.id,src:u.img,class:"video-img"},null,8,dL))),128))])):(gt(),mt("div",pL,[(gt(!0),mt(mi,null,yi(Ft(a).slice(0,6),u=>(gt(),mt("img",{key:u.id,src:u.img,class:"video-img"},null,8,gL))),128))]))]),dh(H(gh,{total:e.value.length,page:i.value,"onUpdate:page":l[0]||(l[0]=u=>i.value=u),limit:n.value,"onUpdate:limit":l[1]||(l[1]=u=>n.value=u),onPagination:o},null,8,["total","page","limit"]),[[ph,e.value.length>0]])]))}},yL=Or(mL,[["__scopeId","data-v-d78e640f"]]),_L="/airport/assets/car.df33b16b.png",AL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFPSURBVHgB1VTRUcMwDFW4DpANmg1gg4QJygZlg3YEmIAyQcsEHBMkTFA2IEyQbBDei+WecO0G+Gp190456UmWZDki5y5ZaBiGIYe6k2npgSbLst4aryLEGpgz9wSulZsWVHcDvMovBdwtY6xtFnDobHxyqEUi1wtabaE/gFL1KGHLC+PcAm0Cvot3LSLZwl51AdQneDUwtzFHFcKxMdUdWk8IeZV+94h98o6ZJruH6jCXtdo5lwr2KpGwELc2gphbJgTW+N7YFn7Mgi1NIDfcwm+HveXOJsRpX/I3GQ84Wmw9rQOWqUiOaHCSh77YS+FsduJWIiUNOeGzsyce1uA/YtfMz/ANeICxhX7mySThO9X2+FK05ZW4W2/oGFvW696J261Cg/jNm28D0FYqp1Ae23+USOncvU9gxRegVcba2xvO6V+dBixjySKcUi5OvgHyc/+bbxXYmwAAAABJRU5ErkJggg==",SL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFkSURBVHgBnVWBccMgDMS9DMAGZYN6g7oTJBs4G2QEZ4O0E7gb+DoB1wniDWgnSDegkv1ciCMIie4UQLxeWEikUhnx3msaGlIN0w/pWFXVn7pHiKghtX4WhznrCTaetyVEOnLsSJ8FjCE9IFDP6xSZAeiYBF3jB/gYCRDItLpDCP955UeLvRQJp4hVJ0iZsIud/DLJkX0pw5IYl3ia7PSz5dMJUQMhR2+hA2wHAW9JdwqgLkNoc7Zob8dcTzQ3pKMqk01m75e0Xqm5C3KVX+NEjKth+xBwE8cKi5JSMRg31Hpfwv50MP7kMYosCffuG43vWDcJ3IviXkcypSRfXADa0sFmBLydSg9ArqEmRwjbVrpl1OE5kJ8fAhcXLAK1pOuF8xr2GOsuSg/OR/94LztpI7w2zpe9NuGpS+NB2iMffSL5jNkj77boi5B8C+LgaKNb5vmr5FvdIOboXF8GJu6G79x/yj8kbSZWvqff8AAAAABJRU5ErkJggg==",bL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAECSURBVHgB1VTREYIwDA0sICN0A3ECHYENOCeADXQDRlA3cAN1AkYQJpANMA9SL3ogWPzh3b1rTcPzJQ0QzQ51XUfMHdOQA3wlZJg5b5fMknmgKWCxu3bF+xROyQXi7tIRz5kB/QBf7YuOc8QW5CBYMUN9wM72iHueV5ILULItDyt6Sg7QJZ+ZCf0L1pVyiVlMaQpkVDL1G7cc0xSwwNGKiOtcLsieG+n3A/HBsVIioYplEktkjVRFb7l9okY/qGLo67ond9Cp+Sz3S+5r5Py+JB7ogrlq85vbj/v+WPKrZqURkIfwoUCvrswbtW8XvkxoyxYGRgsq4UBENhKC6Mm6mweer333pfR8GGwAAAAASUVORK5CYII=",wL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgBrZSBEYIwDEVbJ+gGMgIj4ASygW7ACLIBOgFuwAi6AWyATgAbYHL3OauW0IL/7l+1aR4hBJT6s/TcgWEYDC0RmddGa92rpSJYTu6GT+VqiSjxDFiKKnnvSG7JRSgsQjWxI5Yglihf0eETuRbiNTlzxTZqWv1MzIQAn+R47J1D3IqH8hWDppqPh9VO5WoBylVU+HvFmqC6Hc1jEwQENKIlA4R1J19WDfcIFvrpDeGBvn29KR32DiGgyAIV5D15yz3F7xLwFi0RYbFVhZm5aIWzsXTIOSoCuECOcQVLab4EaP1ThPUx8G/2OzfBrRt7M11SnZXPwL29YSab6weU3vt1egG3wzmt7zGikAAAAABJRU5ErkJggg==",xL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgB5ZPREYIwEEQvjv9aQkrQCtQO7EDtwBK0AzoAOtAKHCoAK4AOsAPcg4sGRgkiP447s1wYNi8JSYj+ToofRVEsURaObAaflVK3ViBgW1QfTuC2sJY6b4UCGMM+OYTMFM7hjSuYOkP1bFO1vmP6XB58kvYSDgAl/IawLzBB50jaEcNsaB9gTYAcbejXQAs6RfMwouF05ceQwFKPJcuU+QjwoXXeCCvPNWwCZ1Qdh0wCB3TYveDwNy1X1Zd3HngPB2akWA5obEaWG9FFWvpcDGOEpc1lds0lrtUb4duqkee2J6xyBC2zSk0lh2RlqdTczFZZAU3PTQk7bsoanlC1iRn9hO6rGuiP8LNdUQAAAABJRU5ErkJggg==";const $e=r=>(un("data-v-aa7c6b3c"),r=r(),hn(),r),TL={class:"vehicle-detail-content"},CL={class:"detail-header"},DL={class:"back-button"},ML={class:"vehicle-image"},IL=["src"],PL={class:"vehicle-info-panel"},LL={class:"info-top-row"},RL=["src"],EL={class:"info-bottom-row"},kL={class:"info-title"},OL={class:"info-status-row"},BL={class:"status-item"},NL=$e(()=>E("span",{class:"status-label"},"\u4F5C\u4E1A\u72B6\u6001\uFF1A",-1)),FL=$e(()=>E("span",{class:"dot status-signal"},null,-1)),zL={class:"status-value status-task"},GL=$e(()=>E("span",{class:"status-sep"},"|",-1)),VL={class:"status-item"},HL=$e(()=>E("span",{class:"dot status-signal"},null,-1)),UL=$e(()=>E("span",{class:"status-label"},"\u8F66\u8F86\u72B6\u6001\uFF1A",-1)),WL={class:"status-value status-online"},YL=D0('|\u4FE1\u53F7\u826F\u597D|\u7535\u91CF\u5145\u8DB3',4),XL={class:"info-cards-row"},$L={class:"card-icon"},QL=["src"],ZL={class:"card-content"},qL={class:"card-title"},KL={class:"card-value"},JL={class:"detail-tabs"},jL={key:0,class:"split-btns"},tR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:E0,alt:"\u7535\u6C60\u6982\u51B5"}),E("span",null,"\u7535\u6C60\u6982\u51B5")],-1)),eR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:k0,alt:"\u6545\u969C\u62A5\u8B66"}),E("span",null,"\u6545\u969C\u62A5\u8B66")],-1)),rR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:O0,alt:"\u8F68\u8FF9\u56DE\u653E"}),E("span",null,"\u8F68\u8FF9\u56DE\u653E")],-1)),iR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:B0,alt:"\u5145\u653E\u7535\u7EDF\u8BA1"}),E("span",null,"\u5145\u653E\u7535\u7EDF\u8BA1")],-1)),nR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:N0,alt:"\u89C6\u9891\u76D1\u63A7"}),E("span",null,"\u89C6\u9891\u76D1\u63A7")],-1)),aR={__name:"detail",props:{vehicle:{type:Object,required:!0}},setup(r){var c,d,m,p,g,y,_;const t=r,e=nt("battery"),i=nt("6"),n=nt({}),a=nt([]),o=nt(((c=t.vehicle)==null?void 0:c.routeStatus)||"\u5F85\u547D\u4E2D"),s=nt(((d=t.vehicle)==null?void 0:d.status)||"\u5728\u7EBF"),l=nt(!1),u=nt(null);async function h(A){var b,S,w,T,D,x;if(!!A&&!l.value&&u.value!==A){l.value=!0;try{const C=await ln({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(A)}`,method:"get"}),I=C&&C.data!==void 0?C.data:C||{};n.value=I,o.value=((b=I==null?void 0:I.order)==null?void 0:b.jobStageTag)||((S=t.vehicle)==null?void 0:S.routeStatus)||o.value,s.value=((w=I==null?void 0:I.loginStatus)==null?void 0:w.login)==="login"?"\u5728\u7EBF":((T=t.vehicle)==null?void 0:T.status)||s.value,u.value=A}catch{n.value=n.value||{},o.value=((D=t.vehicle)==null?void 0:D.routeStatus)||o.value,s.value=((x=t.vehicle)==null?void 0:x.status)||s.value}l.value=!1}}async function f(A){if(!A){a.value=[];return}try{const b=await M0(A),S=b&&b.data!==void 0?b.data:b||{};let w=[];const T=[S==null?void 0:S.data,S==null?void 0:S.rows,S==null?void 0:S.list,S==null?void 0:S.tasks,S];for(const x of T)if(Array.isArray(x)){w=x;break}(!w||w.length===0)&&Array.isArray(S==null?void 0:S.waypoints)&&(w=[{id:A,vehicleId:A,waypoints:S.waypoints,timestamp:S.timestamp}]);const D=(w||[]).map((x,C)=>{var Q,P,L,N,F,W,G,Z,q,Y,st;const R=(Array.isArray(x==null?void 0:x.points)?x.points:Array.isArray(x==null?void 0:x.waypoints)?x.waypoints:Array.isArray((Q=x==null?void 0:x.path)==null?void 0:Q.points)?x.path.points:[]).map(V=>{var Bt,Tt,we,xe,cr,vr,dr,tt,Te,Br,Nr,Fr,pr,gr,Nt,Qe,mr;const it=(xe=(Tt=(Bt=V==null?void 0:V.timestamp)!=null?Bt:V==null?void 0:V.time)!=null?Tt:V==null?void 0:V.ts)!=null?xe:(we=x==null?void 0:x.timestamp)!=null?we:Date.now(),ut=(tt=(dr=(vr=(cr=V==null?void 0:V.longitude)!=null?cr:V==null?void 0:V.lng)!=null?vr:V==null?void 0:V.lon)!=null?dr:V==null?void 0:V.y)!=null?tt:0,X=(Nr=(Br=(Te=V==null?void 0:V.latitude)!=null?Te:V==null?void 0:V.lat)!=null?Br:V==null?void 0:V.x)!=null?Nr:0,J=Number((pr=(Fr=V==null?void 0:V.speed)!=null?Fr:V==null?void 0:V.v)!=null?pr:0)||0;return{timestamp:typeof it=="string"?it:new Date(it).toISOString(),longitude:Number(ut)||0,latitude:Number(X)||0,speed:J,vehicleId:(gr=x==null?void 0:x.vehicleId)!=null?gr:A,licensePlate:(mr=(Qe=x==null?void 0:x.licensePlate)!=null?Qe:(Nt=t.vehicle)==null?void 0:Nt.licensePlate)!=null?mr:""}}),k=R[0],O=R[R.length-1]||k,B=R.length>0?(R.reduce((V,it)=>V+(it.speed||0),0)/R.length).toFixed(2):"0";return{id:(L=(P=x==null?void 0:x.vehicleId)!=null?P:A)==null?void 0:L.toString(),no:(W=(F=(N=x==null?void 0:x.missionId)!=null?N:x==null?void 0:x.id)!=null?F:A)==null?void 0:W.toString(),name:(Z=(G=x==null?void 0:x.name)!=null?G:x==null?void 0:x.missionType)!=null?Z:"\u4EFB\u52A1",time:k&&O?`${k.timestamp}--${O.timestamp}`:"",start:k?`\u7ECF\u5EA6${k.longitude},\u7EAC\u5EA6${k.latitude}`:"",end:O?`\u7ECF\u5EA6${O.longitude},\u7EAC\u5EA6${O.latitude}`:"",speed:`${B}km/h`,licensePlate:(st=(Y=x==null?void 0:x.licensePlate)!=null?Y:(q=t.vehicle)==null?void 0:q.licensePlate)!=null?st:"",points:R}});a.value=D}catch{a.value=[]}}en(()=>{var A,b,S,w;o.value=((A=t.vehicle)==null?void 0:A.routeStatus)||o.value,s.value=((b=t.vehicle)==null?void 0:b.status)||s.value,h((S=t.vehicle)==null?void 0:S.carId),f((w=t.vehicle)==null?void 0:w.carId)}),mp(()=>{var A;return(A=t.vehicle)==null?void 0:A.carId},A=>{h(A),f(A)});const v=[{name:"\u9A71\u52A8\u8F66",value:((m=t.vehicle)==null?void 0:m.type)||"--",icon:AL},{name:"\u6BD4\u4E9A\u8FEA",value:((p=t.vehicle)==null?void 0:p.brand)||"--",icon:SL},{name:"\u7269\u6D41\u5EFA\u7B51\u516C\u53F8",value:((g=t.vehicle)==null?void 0:g.organization)||"--",icon:xL},{name:"\u5F20\u4E09",value:((y=t.vehicle)==null?void 0:y.batteryLevel)||"--",icon:wL},{name:((_=t.vehicle)==null?void 0:_.contactPhone)||"--",value:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",icon:bL}];return(A,b)=>{var C;const S=Pt("el-icon"),w=Pt("el-button"),T=Pt("el-tooltip"),D=Pt("el-tab-pane"),x=Pt("el-tabs");return gt(),mt("div",TL,[E("div",CL,[E("div",DL,[H(w,{type:"primary",plain:"",class:"btn custom-back-btn",size:"small",onClick:b[0]||(b[0]=I=>A.$emit("close"))},{default:lt(()=>[H(S,{class:"back-icon"},{default:lt(()=>[H(Ft(C0))]),_:1}),Le(" \u8FD4\u56DE\u5217\u8868 ")]),_:1})]),E("div",ML,[E("img",{src:Ft(_L),alt:"\u8F66\u8F86\u56FE\u7247"},null,8,IL)]),E("div",PL,[E("div",LL,[E("img",{src:Ft(I0),class:"car-icon"},null,8,RL)]),E("div",EL,[E("div",kL,pt(((C=r.vehicle)==null?void 0:C.carId)||"--"),1),E("div",OL,[E("span",BL,[NL,FL,E("span",zL,pt(o.value),1)]),GL,E("span",VL,[HL,UL,E("span",WL,pt(s.value),1)]),YL]),E("div",XL,[(gt(),mt(mi,null,yi(v,I=>E("div",{class:"info-card",key:I.name},[E("div",$L,[E("img",{src:I.icon},null,8,QL)]),E("div",ZL,[E("div",qL,pt(I.name),1),E("div",KL,pt(I.value),1)])])),64))])])])]),E("div",JL,[e.value==="video"?(gt(),mt("div",jL,[H(T,{content:"\u5355\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:P0,alt:"\u5355\u753B\u9762",onClick:b[1]||(b[1]=Vs(I=>i.value="1",["stop"]))})]),_:1}),H(T,{content:"\u53CC\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:L0,alt:"\u53CC\u753B\u9762",onClick:b[2]||(b[2]=Vs(I=>i.value="2",["stop"]))})]),_:1}),H(T,{content:"\u516D\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:R0,alt:"\u516D\u753B\u9762",onClick:b[3]||(b[3]=Vs(I=>i.value="6",["stop"]))})]),_:1})])):la("",!0),H(x,{modelValue:e.value,"onUpdate:modelValue":b[4]||(b[4]=I=>e.value=I),class:"demo-tabs",onTabClick:A.handleClick},{default:lt(()=>[H(D,{label:"\u7535\u6C60\u6982\u51B5",name:"battery"},{label:lt(()=>[tR]),default:lt(()=>[H(J0,{vehicle:r.vehicle},null,8,["vehicle"])]),_:1}),H(D,{label:"\u6545\u969C\u62A5\u8B66",name:"fault"},{label:lt(()=>[eR]),default:lt(()=>[H(n_,{vehicle:r.vehicle,detail:n.value},null,8,["vehicle","detail"])]),_:1}),H(D,{label:"\u8F68\u8FF9\u56DE\u653E",name:"track"},{label:lt(()=>[rR]),default:lt(()=>[H(f1,{vehicle:r.vehicle,detail:n.value,tasks:a.value},null,8,["vehicle","detail","tasks"])]),_:1}),H(D,{label:"\u5145\u653E\u7535\u7EDF\u8BA1",name:"charging"},{label:lt(()=>[iR]),default:lt(()=>[H(lL,{vehicle:r.vehicle},null,8,["vehicle"])]),_:1}),H(D,{label:"\u89C6\u9891\u76D1\u63A7",name:"video"},{label:lt(()=>[nR]),default:lt(()=>[H(yL,{vehicle:r.vehicle,"layout-type":i.value},null,8,["vehicle","layout-type"])]),_:1})]),_:1},8,["modelValue","onTabClick"])])])}}},oR=Or(aR,[["__scopeId","data-v-aa7c6b3c"]]),uR=Object.freeze(Object.defineProperty({__proto__:null,default:oR},Symbol.toStringTag,{value:"Module"}));export{oR as V,I0 as c,uR as d};