chainlesschain 0.157.6 → 0.157.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/assets/web-panel/assets/{AIOps-BT4aiWvN.js → AIOps-CoVPS4_f.js} +1 -1
- package/src/assets/web-panel/assets/{ActionButton-DAsV0-Ys.js → ActionButton-BYA9htq4.js} +1 -1
- package/src/assets/web-panel/assets/{Analytics-DD0zl4Pt.js → Analytics-CkCmN3yh.js} +1 -1
- package/src/assets/web-panel/assets/AppLayout-BbhrUX4i.css +1 -0
- package/src/assets/web-panel/assets/AppLayout-CcqxQGmE.js +1 -0
- package/src/assets/web-panel/assets/{Backup-YA2dxmc0.js → Backup-SPQtiUev.js} +1 -1
- package/src/assets/web-panel/assets/{BaseInput-DEsW823u.js → BaseInput-BAmfd4Ir.js} +1 -1
- package/src/assets/web-panel/assets/{Chat-DWPvh1tj.js → Chat-Cl9LpsTj.js} +2 -2
- package/src/assets/web-panel/assets/{Checkbox-Clf5-xld.js → Checkbox-BiSO-WqE.js} +1 -1
- package/src/assets/web-panel/assets/{Col-CH1hrzXT.js → Col-DIGPvqVy.js} +1 -1
- package/src/assets/web-panel/assets/{Community-roZ8U4aT.js → Community-RZzIND1A.js} +1 -1
- package/src/assets/web-panel/assets/{Compact-BgdvLc3A.js → Compact-B-UF0szM.js} +1 -1
- package/src/assets/web-panel/assets/{Compliance-CufbqW0y.js → Compliance-D7dNQEQ9.js} +1 -1
- package/src/assets/web-panel/assets/{Cowork-C_IaxH0e.js → Cowork-CPj75S0j.js} +3 -3
- package/src/assets/web-panel/assets/{Cron-DhL_2kgD.js → Cron-PnlUFCIP.js} +1 -1
- package/src/assets/web-panel/assets/{Crosschain-DJOk256v.js → Crosschain-C7Kxjjlo.js} +1 -1
- package/src/assets/web-panel/assets/{DID-C-NGafCc.js → DID-B3aBXElX.js} +1 -1
- package/src/assets/web-panel/assets/{Dashboard-BehZEEGb.js → Dashboard-XxsWjoEF.js} +1 -1
- package/src/assets/web-panel/assets/{Dropdown-Di1XKsKH.js → Dropdown-B6FSgG11.js} +1 -1
- package/src/assets/web-panel/assets/{FormItemContext-BiLL758Z.js → FormItemContext-B0xgi547.js} +1 -1
- package/src/assets/web-panel/assets/{Git-CK7BDDon.js → Git-BnVgKR_0.js} +2 -2
- package/src/assets/web-panel/assets/{Inference-BKfMNDPb.js → Inference-pcPaCXHq.js} +1 -1
- package/src/assets/web-panel/assets/{KnowledgeGraph-CnMK_681.js → KnowledgeGraph-CH3dpH-_.js} +1 -1
- package/src/assets/web-panel/assets/{Logs-OZ_SDJhi.js → Logs-4wvIp1ss.js} +2 -2
- package/src/assets/web-panel/assets/{Marketplace-s1GETxG1.js → Marketplace-BydQkgpf.js} +1 -1
- package/src/assets/web-panel/assets/{McpTools-I_suskam.js → McpTools-DBERPbTA.js} +3 -3
- package/src/assets/web-panel/assets/{Memory-Xg-8FUwL.js → Memory-CMNbDULN.js} +1 -1
- package/src/assets/web-panel/assets/{NLProgramming-CuTxb54H.js → NLProgramming-DVSbNLly.js} +1 -1
- package/src/assets/web-panel/assets/{Notes-D3HPrdzx.js → Notes-DMgBT122.js} +2 -2
- package/src/assets/web-panel/assets/{Organization-BPk2hqkU.js → Organization-u7P1VpPr.js} +3 -3
- package/src/assets/web-panel/assets/{Overflow-DglXWvmc.js → Overflow-BYKMeaWJ.js} +1 -1
- package/src/assets/web-panel/assets/{P2P-9506J4Fa.js → P2P-DKDUTaaL.js} +2 -2
- package/src/assets/web-panel/assets/{Permissions-D1ZT_iLb.js → Permissions-DlZ_n4w_.js} +1 -1
- package/src/assets/web-panel/assets/{Pipeline-s2l8q5TK.js → Pipeline-BUqsWXKt.js} +1 -1
- package/src/assets/web-panel/assets/{Privacy-Cj1MuXI1.js → Privacy-5YZQ-neP.js} +1 -1
- package/src/assets/web-panel/assets/{ProjectSettings-Ck1WnkO5.js → ProjectSettings-DnrhLjZI.js} +2 -2
- package/src/assets/web-panel/assets/{Projects-1kgHPHWk.js → Projects-Bi66Yv3y.js} +1 -1
- package/src/assets/web-panel/assets/{Providers-DnE4yu5E.js → Providers-CikNkb5X.js} +2 -2
- package/src/assets/web-panel/assets/{Row-B0eZSULe.js → Row-Dq1TXcMH.js} +1 -1
- package/src/assets/web-panel/assets/{RssFeed-CKCkUq-C.js → RssFeed-NMgrJXli.js} +1 -1
- package/src/assets/web-panel/assets/{Security-DIVXGpQK.js → Security-C8Ivt-oU.js} +4 -4
- package/src/assets/web-panel/assets/{Services-DhJEUDnu.js → Services-CEuZeNM6.js} +2 -2
- package/src/assets/web-panel/assets/{Skeleton-ecuW2YBG.js → Skeleton-CVXI8LKZ.js} +1 -1
- package/src/assets/web-panel/assets/{Skills-DeBN8_s8.js → Skills-CIv4Cs3T.js} +1 -1
- package/src/assets/web-panel/assets/{Tasks-R-1xMJ9F.js → Tasks-DePDDw0g.js} +1 -1
- package/src/assets/web-panel/assets/{Templates-DHHfXjDu.js → Templates-h2flhfZ2.js} +1 -1
- package/src/assets/web-panel/assets/{Tenant-CC0KuURy.js → Tenant-BZN5JCLW.js} +1 -1
- package/src/assets/web-panel/assets/{Trigger-D9s00Sgd.js → Trigger-DmhLeltH.js} +1 -1
- package/src/assets/web-panel/assets/{VideoEditing-DcDab4pD.js → VideoEditing-DP5Te9MV.js} +1 -1
- package/src/assets/web-panel/assets/{Wallet-DQl4w6NV.js → Wallet-DbdgPt_i.js} +4 -4
- package/src/assets/web-panel/assets/{WebAuthn-Hr3U_uGz.js → WebAuthn-0qV34Bht.js} +3 -3
- package/src/assets/web-panel/assets/{WorkflowEditor-BC8eATB5.js → WorkflowEditor-C4sIrXd7.js} +1 -1
- package/src/assets/web-panel/assets/{colors-CCC3A9ZL.js → colors-Iv3ft_s8.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-BmWW5F8V.js → compact-item-CtT5KcXA.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-B2b9CRr1.js → createContext-CHLVxTn6.js} +1 -1
- package/src/assets/web-panel/assets/{hasIn-BRo_JT_S.js → hasIn-B9IRZs23.js} +1 -1
- package/src/assets/web-panel/assets/{icons-DbKJDD5_.js → icons-srBCpwXl.js} +4 -4
- package/src/assets/web-panel/assets/{index-Bkjna3jQ.js → index--eBMlDjO.js} +1 -1
- package/src/assets/web-panel/assets/{index-GXgIXqCa.js → index-4I01hpiN.js} +1 -1
- package/src/assets/web-panel/assets/{index-1U9E0b34.js → index-4wtT_zvC.js} +1 -1
- package/src/assets/web-panel/assets/index-69KL83qL.js +1 -0
- package/src/assets/web-panel/assets/{index-DG8Argyk.js → index-B0IQIuHE.js} +1 -1
- package/src/assets/web-panel/assets/{index-2kaOH6lv.js → index-B18bc0ut.js} +1 -1
- package/src/assets/web-panel/assets/{index-BynNl5nX.js → index-B6JARzH-.js} +2 -2
- package/src/assets/web-panel/assets/{index-CAv1O9z-.js → index-BOlkR4CB.js} +1 -1
- package/src/assets/web-panel/assets/{index-2Yn7789f.js → index-BRlYu6_d.js} +1 -1
- package/src/assets/web-panel/assets/{index-DcLgLWwU.js → index-BWtxplKf.js} +1 -1
- package/src/assets/web-panel/assets/{index-CNtb4sCH.js → index-BaHFTtgz.js} +2 -2
- package/src/assets/web-panel/assets/{index-CEwU1s8_.js → index-BjC8S1t1.js} +1 -1
- package/src/assets/web-panel/assets/{index-zd2QMXg3.js → index-C1uasX17.js} +1 -1
- package/src/assets/web-panel/assets/{index-CNBAfkwP.js → index-C8LBTJ8l.js} +1 -1
- package/src/assets/web-panel/assets/index-C8wxMp_Z.js +1 -0
- package/src/assets/web-panel/assets/{index-CWIWWW-z.js → index-CDWpDZgD.js} +1 -1
- package/src/assets/web-panel/assets/{index-D6LoUbxl.js → index-CMKIwCKt.js} +1 -1
- package/src/assets/web-panel/assets/{index-CG3GraND.js → index-CYQVfA_R.js} +1 -1
- package/src/assets/web-panel/assets/index-Cps5gHTC.js +1 -0
- package/src/assets/web-panel/assets/{index-CtUuEt-Q.js → index-CzGZa5Ow.js} +1 -1
- package/src/assets/web-panel/assets/{index-BiNBF-Y_.js → index-D5hcqkeW.js} +1 -1
- package/src/assets/web-panel/assets/{index-CSF19Udr.js → index-D7VXIYiM.js} +1 -1
- package/src/assets/web-panel/assets/{index-Crg53xLr.js → index-DUg23xvw.js} +1 -1
- package/src/assets/web-panel/assets/{index-CV88wBE4.js → index-DXEG5UZz.js} +1 -1
- package/src/assets/web-panel/assets/{index-6h7y54EK.js → index-Dbaj1U7z.js} +1 -1
- package/src/assets/web-panel/assets/{index-xMCJBS-g.js → index-DiZ3aYcD.js} +1 -1
- package/src/assets/web-panel/assets/{index-BLYcQWYW.js → index-DlSUq1W3.js} +3 -3
- package/src/assets/web-panel/assets/{index-Bd2qQOOl.js → index-DzKYMmMu.js} +1 -1
- package/src/assets/web-panel/assets/{index-DktiurCg.js → index-E7-XzEfE.js} +1 -1
- package/src/assets/web-panel/assets/{index-vldy_vgJ.js → index-KZbeEKa2.js} +2 -2
- package/src/assets/web-panel/assets/{index-bcMcPEIb.js → index-NJzH4w-U.js} +2 -2
- package/src/assets/web-panel/assets/{index-ytX4yyzs.js → index-TOigBSzr.js} +1 -1
- package/src/assets/web-panel/assets/{index-Cx1K1h3R.js → index-ThYPc1ub.js} +1 -1
- package/src/assets/web-panel/assets/{index-Bxy0lJmt.js → index-UmTF1KQy.js} +1 -1
- package/src/assets/web-panel/assets/{index-NIIkheoM.js → index-cqU5_E3h.js} +1 -1
- package/src/assets/web-panel/assets/{index-BiCTVNS6.js → index-d3aFQf7u.js} +2 -2
- package/src/assets/web-panel/assets/{index-B7kbey_Y.js → index-dzwxxvlh.js} +1 -1
- package/src/assets/web-panel/assets/{index-CzondF_H.js → index-q__DPgfq.js} +1 -1
- package/src/assets/web-panel/assets/{initDefaultProps-DbZ1HRc7.js → initDefaultProps-BcWs5QbR.js} +1 -1
- package/src/assets/web-panel/assets/{motion-KRtHWi9E.js → motion-CrLibvjP.js} +1 -1
- package/src/assets/web-panel/assets/{move-B-zOsK6x.js → move-B5c6-VQr.js} +1 -1
- package/src/assets/web-panel/assets/{omit-DNrV7ppz.js → omit-DpIEkCg5.js} +1 -1
- package/src/assets/web-panel/assets/{pickAttrs-B-AcyBpj.js → pickAttrs-KtgV4VKB.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow-Bu6BH9hd.js → placementArrow-UtY5srm7.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-BMFIMTDs.js → responsiveObserve-C---VD6e.js} +1 -1
- package/src/assets/web-panel/assets/{slide-xFVMoPwP.js → slide-hr0X8KAK.js} +1 -1
- package/src/assets/web-panel/assets/{statusUtils-HggAwxhx.js → statusUtils-CgoYe6s3.js} +1 -1
- package/src/assets/web-panel/assets/{styleChecker-CG5OjpVk.js → styleChecker-DJv72QFU.js} +1 -1
- package/src/assets/web-panel/assets/{transition-C4Iby8cT.js → transition-D2wU6PAY.js} +1 -1
- package/src/assets/web-panel/assets/{useConfigInject-BlTQDaaH.js → useConfigInject-DqhngD-R.js} +1 -1
- package/src/assets/web-panel/assets/{useFlexGapSupport-B4LJA5eG.js → useFlexGapSupport-CTWfwV__.js} +1 -1
- package/src/assets/web-panel/assets/{vnode-BToqLQaO.js → vnode-B2xg11HE.js} +1 -1
- package/src/assets/web-panel/assets/{zoom-Cdr5kiga.js → zoom-BGImMPSi.js} +1 -1
- package/src/assets/web-panel/index.html +2 -2
- package/src/assets/web-panel/assets/AppLayout-C39vcA-h.js +0 -1
- package/src/assets/web-panel/assets/AppLayout-CQShwOhr.css +0 -1
- package/src/assets/web-panel/assets/index-BafG-FrC.js +0 -1
- package/src/assets/web-panel/assets/index-DIHZW5eL.js +0 -1
- package/src/assets/web-panel/assets/index-pX3VTY9A.js +0 -1
package/src/assets/web-panel/assets/{KnowledgeGraph-CnMK_681.js → KnowledgeGraph-CH3dpH-_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Am,h as Pm,i as go,Q as Rm,g as Em,w as yo,f as hp,l as cp,o as km,s as Bs,j as Ue,n as Om,R as Bm,u as _e,F as Dt,D as ye,c as E,x as O,m as er,G as Jt,q as _t,r as Bt,v as lt,J as St,I as wt,H as Or,L as Di,a as Ns}from"./vendor-BVetwVfk.js";import{u as Nm}from"./ws-Bv7YH0VB.js";import{_ as zm}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as Nt}from"./index-CtUuEt-Q.js";import{y as Fm,a5 as Hm,a8 as zs,q as Oh,k as Vm,S as Gm,u as Um}from"./icons-DbKJDD5_.js";import"./index-BLYcQWYW.js";import"./useConfigInject-BlTQDaaH.js";import"./transition-C4Iby8cT.js";import"./Keyframes-C7fCrnlS.js";import"./Portal-CHsntPCQ.js";import"./index-U4Zd5IK6.js";var lu=function(r,t){return lu=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])},lu(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ym=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Wm=(function(){function r(){this.browser=new Ym,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})(),q=new Wm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):Xm(navigator.userAgent,q);function Xm(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);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var bf=12,$m="sans-serif",Lr=bf+"px "+$m,Zm=20,qm=100,Km="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jm(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Zm)/qm;t[i]=n}return t}var Qm=jm(Km),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=cr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Lr),r.measureText(e);e=e||"",i=i||Lr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||bf,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=Qm[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},vp=hn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),dp=hn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),_a=Object.prototype.toString,os=Array.prototype,Jm=os.forEach,t_=os.filter,Tf=os.slice,e_=os.map,Bh=(function(){}).constructor,Ra=Bh?Bh.prototype:null,xf="__proto__",r_=2311;function pp(){return r_++}function Cf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function et(r){if(r==null||typeof r!="object")return r;var t=r,e=_a.call(r);if(e==="[object Array]"){if(!Yn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=et(r[i])}}else if(dp[e]){if(!Yn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!vp[e]&&!Yn(r)&&!ea(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==xf&&(t[o]=et(r[o]))}return t}function xt(r,t,e){if(!Y(t)||!Y(r))return e?et(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==xf){var n=r[i],a=t[i];Y(a)&&Y(n)&&!V(a)&&!V(n)&&!ea(a)&&!ea(n)&&!Nh(a)&&!Nh(n)&&!Yn(a)&&!Yn(n)?xt(n,a,e):(e||!(i in r))&&(r[i]=et(t[i]))}return r}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==xf&&(r[e]=t[e]);return r}function Ct(r,t,e){for(var i=Lt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function pt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function i_(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ee(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else Ct(r,t)}function se(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Jm)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function ot(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.map&&r.map===e_)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function hn(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function he(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.filter&&r.filter===t_)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Lt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function n_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Tf.call(arguments)))}}var ht=Ra&&at(Ra.bind)?Ra.call.bind(Ra.bind):n_;function Pt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Tf.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):_a.call(r)==="[object Array]"}function at(r){return typeof r=="function"}function U(r){return typeof r=="string"}function uu(r){return _a.call(r)==="[object String]"}function gt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Nh(r){return!!vp[_a.call(r)]}function le(r){return!!dp[_a.call(r)]}function ea(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ss(r){return r.colorStops!=null}function a_(r){return r.image!=null}function o_(r){return r!==r}function rn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function $(r,t){return r??t}function fr(r,t,e){return r??t??e}function Df(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Tf.apply(r,t)}function If(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function je(r,t){if(!r)throw new Error(t)}function We(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gp="__ec_primitive__";function fu(r){r[gp]=!0}function Yn(r){return r[gp]}var s_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Lt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),yp=typeof Map=="function";function l_(){return yp?new Map:new s_}var u_=(function(){function r(t){var e=V(t);this.data=l_();var i=this;t instanceof r?t.each(n):t&&I(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return yp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Q(r){return new u_(r)}function f_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function ls(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&k(e,t),e}function mp(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(r,t){return r.hasOwnProperty(t)}function Ht(){}var h_=180/Math.PI;function Si(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Wt(r,t){return r[0]=t[0],r[1]=t[1],r}function hr(r){return[r[0],r[1]]}function c_(r,t,e){return r[0]=t,r[1]=e,r}function zh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function hu(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function li(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function cu(r){return Math.sqrt(v_(r))}function v_(r){return r[0]*r[0]+r[1]*r[1]}function mo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function cn(r,t){var e=cu(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function vu(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var d_=vu;function p_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var di=p_;function ve(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Zi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function qi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Ii=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),g_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ii(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Ii(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ii(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ii(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ii(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ii(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),ke=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),y_=Math.log(2);function du(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/y_);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*du(r,t-1,f,u,n|d,a),v++)}return a[o]=h,h}function Fh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=du(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*du(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ko="___zrEVENTSAVED",Fs=[];function m_(r,t,e,i,n){return pu(Fs,t,i,n,!0)&&pu(r,e,Fs[0],Fs[1])}function __(r,t){r&&e(r),t&&e(t);function e(i){var n=i[ko];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ko])}}function pu(r,t,e,i,n){if(t.getBoundingClientRect&&q.domSupported&&!_p(t)){var a=t[ko]||(t[ko]={}),o=S_(t,a),s=w_(o,a,n);if(s)return s(r,e,i),!0}return!1}function S_(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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 t.clearMarkers=function(){I(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function w_(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 f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Fh(s,o):Fh(o,s))}function _p(r){return r.nodeName.toUpperCase()==="CANVAS"}var b_=/([&<>"'])/g,T_={"&":"&","<":"<",">":">",'"':""","'":"'"};function ee(r){return r==null?"":(r+"").replace(b_,function(t,e){return T_[e]})}var x_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hs=[],C_=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function gu(r,t,e,i){return e=e||{},i?Hh(r,t,e):C_&&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):Hh(r,t,e),e}function Hh(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(_p(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(pu(Hs,r,i,n)){e.zrX=Hs[0],e.zrY=Hs[1];return}}e.zrX=e.zrY=0}function Lf(r){return r||window.event}function we(r,t,e){if(t=Lf(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&&gu(r,o,t,e)}else{gu(r,t,t,e);var a=D_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&x_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function D_(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 I_(r,t,e,i){r.addEventListener(t,e,i)}function L_(r,t,e,i){r.removeEventListener(t,e,i)}var Oo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Vh(r){return r.which===2||r.which===3}var M_=(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;o<s;o++){var l=n[o],u=gu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Vs)if(Vs.hasOwnProperty(e)){var i=Vs[e](this._track,t);if(i)return i}},r})();function Gh(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function A_(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Vs={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Gh(i)/Gh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=A_(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function $e(){return[1,0,0,1,0,0]}function Mf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Af(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 Wn(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 yu(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 Pf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function P_(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 Sa(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 ct=(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})(),ui=Math.min,Ki=Math.max,mu=Math.abs,Uh=["x","y"],R_=["width","height"],Br=new ct,Nr=new ct,zr=new ct,Fr=new ct,fe=Sp(),On=fe.minTv,_u=fe.maxTv,Xn=[0,0],J=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=ui(t.x,this.x),i=ui(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ki(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ki(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=$e();return yu(a,a,[-e.x,-e.y]),P_(a,a,[i,n]),yu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&ct.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(E_,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(k_,e.x,e.y,e.width,e.height));var s=!!i;fe.reset(n,s);var l=fe.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,c=t.y+t.height-l,v=e.x+l,d=e.x+e.width-l,y=e.y+l,g=e.y+e.height-l;if(u>f||h>c||v>d||y>g)return!1;var p=!(f<v||d<u||c<y||g<h);return(s||a)&&(Xn[0]=1/0,Xn[1]=0,Yh(u,f,v,d,0,s,a,o),Yh(h,c,y,g,1,s,a,o),s&&ct.copy(i,p?fe.useDir?fe.dirMinTv:On:_u)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},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){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},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}Br.x=zr.x=e.x,Br.y=Fr.y=e.y,Nr.x=Fr.x=e.x+e.width,Nr.y=zr.y=e.y+e.height,Br.transform(i),Fr.transform(i),Nr.transform(i),zr.transform(i),t.x=ui(Br.x,Nr.x,zr.x,Fr.x),t.y=ui(Br.y,Nr.y,zr.y,Fr.y);var l=Ki(Br.x,Nr.x,zr.x,Fr.x),u=Ki(Br.y,Nr.y,zr.y,Fr.y);t.width=l-t.x,t.height=u-t.y},r})(),E_=new J(0,0,0,0),k_=new J(0,0,0,0);function Yh(r,t,e,i,n,a,o,s){var l=mu(t-e),u=mu(i-r),f=ui(l,u),h=Uh[n],c=Uh[1-n],v=R_[n];t<e||i<r?l<u?(a&&(_u[h]=-l),s&&(o[h]=t,o[v]=0)):(a&&(_u[h]=u),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=Ki(r,e),o[v]=ui(t,i)-o[h]),a&&(f<Xn[0]||fe.useDir)&&(Xn[0]=ui(f,Xn[0]),(l<u||!fe.bidirectional)&&(On[h]=l,On[c]=0,fe.useDir&&fe.calcDirMTV()),(l>=u||!fe.bidirectional)&&(On[h]=-u,On[c]=0,fe.useDir&&fe.calcDirMTV())))}function Sp(){var r=0,t=new ct,e=new ct,i={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ki(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return mu(a)<1e-10}return i}var wp="silent";function O_(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:B_}}function B_(){Oo(this.event)}var N_=(function(r){G(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})(ke),vn=(function(){function r(t,e){this.x=t,this.y=e}return r})(),z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gs=new J(0,0,0,0),bp=(function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new vn(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new N_,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new g_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(z_,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=Tp(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 vn(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.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 vn(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=O_(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 vn(e,i);if(Wh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new J(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Gs.copy(c.getBoundingRect()),c.transform&&Gs.applyTransform(c.transform),Gs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,g=0;g<u;g+=v)for(var p=0;p<y;p+=d){var m=e+g*Math.cos(p),_=i+g*Math.sin(p);if(Wh(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new M_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new vn;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ke);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){bp.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Tp(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||d_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function F_(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.ignoreHostSilent?null:s:i.parent}return n?wp:!0}return!1}function Wh(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=F_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==wp)){t.target=o;break}}}function Tp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var xp=32,dn=7;function H_(r){for(var t=0;r>=xp;)t|=r&1,r>>=1;return r+t}function Xh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;V_(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function V_(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function $h(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>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 Us(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ys(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function G_(r,t){var e=dn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],g=i[v+1],p=n[v+1];n[v]=y+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=Ys(r[g],r,d,y,0,t);d+=m,y-=m,y!==0&&(p=Us(r[d+y-1],r,g,p,p-1,t),p!==0&&(y<=p?h(d,y,g,p):c(d,y,g,p)))}function h(v,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=r[v+p];var m=0,_=y,S=v;if(r[S++]=r[_++],--g===0){for(p=0;p<d;p++)r[S+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m];return}for(var b=e,w,T,C;;){w=0,T=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],T++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=Ys(r[_],o,m,d,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=o[m+p];if(S+=w,m+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=Us(o[m],r,_,g,0,t),T!==0){for(p=0;p<T;p++)r[S+p]=r[_+p];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(w>=dn||T>=dn);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[m+p]}}function c(v,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=r[y+p];var m=v+d-1,_=g-1,S=y+g-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p];return}if(g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_];return}for(var T=e;;){var C=0,x=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,x=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=d-Ys(o[_],r,v,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,w=S+1,b=m+1,p=C-1;p>=0;p--)r[w+p]=r[b+p];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(x=g-Us(r[m],o,0,g,g-1,t),x!==0){for(S-=x,_-=x,g-=x,w=S+1,b=_+1,p=0;p<x;p++)r[w+p]=o[b+p];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}T--}while(C>=dn||x>=dn);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _o(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<xp){a=Xh(r,e,i,t),$h(r,e,i,e+a,t);return}var o=G_(r,t),s=H_(n);do{if(a=Xh(r,e,i,t),a<s){var l=n;l>s&&(l=s),$h(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 ce=1,Bn=2,$i=4,Zh=!1;function Ws(){Zh||(Zh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function qh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var U_=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qh}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,_o(i,qh)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=n,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=ce),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ws(),d.z=0),isNaN(d.z2)&&(Ws(),d.z2=0),isNaN(d.zlevel)&&(Ws(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,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<i;e++)this.delRoot(t[e]);return}var n=pt(this._roots,t);n>=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})(),Bo;Bo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var $n={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-$n.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?$n.bounceIn(r*2)*.5:$n.bounceOut(r*2-1)*.5+.5}},Ea=Math.pow,xr=Math.sqrt,No=1e-8,Cp=1e-4,Kh=xr(3),ka=1/3,Ye=Si(),xe=Si(),tn=Si();function br(r){return r>-No&&r<No}function Dp(r){return r>No||r<-No}function $t(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 jh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ip(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,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(br(f)&&br(h))if(br(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(br(y)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(y>0){var m=xr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ea(-_,ka):_=Ea(_,ka),S<0?S=-Ea(-S,ka):S=Ea(S,ka);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*xr(f*f*f)),w=Math.acos(b)/3,T=xr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),p=(-s+T*(C+Kh*Math.sin(w)))/(3*o),x=(-s+T*(C-Kh*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),x>=0&&x<=1&&(a[v++]=x)}}return v}function Lp(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(br(o)){if(Dp(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(br(f))n[0]=-a/(2*o);else if(f>0){var h=xr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function zo(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,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function Y_(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,y,g,p;Ye[0]=l,Ye[1]=u;for(var m=0;m<1;m+=.05)xe[0]=$t(r,e,n,o,m),xe[1]=$t(t,i,a,s,m),g=di(Ye,xe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<Cp);_++)d=h-c,y=h+c,xe[0]=$t(r,e,n,o,d),xe[1]=$t(t,i,a,s,d),g=di(xe,Ye),d>=0&&g<v?(h=d,v=g):(tn[0]=$t(r,e,n,o,y),tn[1]=$t(t,i,a,s,y),p=di(tn,Ye),y<=1&&p<v?(h=y,v=p):c*=.5);return xr(v)}function W_(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,y=$t(r,e,n,o,d),g=$t(t,i,a,s,d),p=y-u,m=g-f;h+=Math.sqrt(p*p+m*m),u=y,f=g}return h}function Zt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Qh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function X_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(br(a)){if(Dp(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(br(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=xr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Mp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function ra(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 $_(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){xe[0]=Zt(r,e,n,c),xe[1]=Zt(t,i,a,c);var v=di(Ye,xe);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Cp);d++){var y=u-f,g=u+f;xe[0]=Zt(r,e,n,y),xe[1]=Zt(t,i,a,y);var v=di(xe,Ye);if(y>=0&&v<h)u=y,h=v;else{tn[0]=Zt(r,e,n,g),tn[1]=Zt(t,i,a,g);var p=di(tn,Ye);g<=1&&p<h?(u=g,h=p):f*=.5}}return xr(h)}function Z_(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Zt(r,e,n,c),d=Zt(t,i,a,c),y=v-s,g=d-l;u+=Math.sqrt(y*y+g*g),s=v,l=d}return u}var q_=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ap(r){var t=r&&q_.exec(r);if(t){var e=t[1].split(","),i=+We(e[0]),n=+We(e[1]),a=+We(e[2]),o=+We(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ip(0,i,a,1,l,s)&&$t(0,n,o,1,s[0])}}}var K_=(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||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,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=at(t)?t:$n[t]||Ap(t)},r})(),Pp=(function(){function r(t){this.value=t}return r})(),j_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Pp(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})(),nn=(function(){function r(t){this._list=new j_,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 Pp(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})(),Jh={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 Zn(r){return r=Math.round(r),r<0?0:r>255?255:r}function tc(r){return r<0?0:r>1?1:r}function Xs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Zn(parseFloat(t)/100*255):Zn(parseInt(t,10))}function pi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?tc(parseFloat(t)/100):tc(parseFloat(t))}function $s(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 Se(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Su(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Rp=new nn(20),Oa=null;function Li(r,t){Oa&&Su(Oa,t),Oa=Rp.put(r,Oa||t.slice())}function Cr(r,t){if(r){t=t||[];var e=Rp.get(r);if(e)return Su(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Jh)return Su(t,Jh[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)){Se(t,0,0,0,1);return}return Se(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)){Se(t,0,0,0,1);return}return Se(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(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Se(t,+u[0],+u[1],+u[2],1):Se(t,0,0,0,1);f=pi(u.pop());case"rgb":if(u.length>=3)return Se(t,Xs(u[0]),Xs(u[1]),Xs(u[2]),u.length===3?f:pi(u[3])),Li(r,t),t;Se(t,0,0,0,1);return;case"hsla":if(u.length!==4){Se(t,0,0,0,1);return}return u[3]=pi(u[3]),wu(u,t),Li(r,t),t;case"hsl":if(u.length!==3){Se(t,0,0,0,1);return}return wu(u,t),Li(r,t),t;default:return}}Se(t,0,0,0,1)}}function wu(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=pi(r[1]),n=pi(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Se(t,Zn($s(o,a,e+1/3)*255),Zn($s(o,a,e)*255),Zn($s(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Q_(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ec(r,t){var e=Cr(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return us(e,e.length===4?"rgba":"rgb")}}function bu(r,t,e,i){var n=Cr(r);if(r)return n=Q_(n),e!=null&&(n[1]=pi(at(e)?e(n[1]):e)),i!=null&&(n[2]=pi(at(i)?i(n[2]):i)),us(wu(n),"rgba")}function us(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 Fo(r,t){var e=Cr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var rc=new nn(100);function ic(r){if(U(r)){var t=rc.get(r);return t||(t=ec(r,-.1),rc.put(r,t)),t}else if(ss(r)){var e=k({},r);return e.colorStops=ot(r.colorStops,function(i){return{offset:i.offset,color:ec(i.color,-.1)}}),e}return r}function J_(r){return r.type==="linear"}function t0(r){return r.type==="radial"}(function(){return q.hasGlobalWindow&&at(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Tu=Array.prototype.slice;function or(r,t,e){return(t-r)*e+r}function Zs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=or(t[a],e[a],i);return r}function e0(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=or(t[o][s],e[o][s],i)}return r}function Ba(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function nc(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function r0(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function i0(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:Tu.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function So(r){if(se(r)){var t=r.length;if(se(r[0])){for(var e=[],i=0;i<t;i++)e.push(Tu.call(r[i]));return e}return Tu.call(r)}return r}function wo(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function n0(r){return se(r&&r[0])?2:1}var Na=0,bo=1,Ep=2,Nn=3,xu=4,Cu=5,ac=6;function oc(r){return r===xu||r===Cu}function za(r){return r===bo||r===Ep}var pn=[0,0,0,0],a0=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ac,l=e;if(se(e)){var u=n0(e);s=u,(u===1&&!gt(e[0])||u===2&&!gt(e[0][0]))&&(o=!0)}else if(gt(e)&&!o_(e))s=Na;else if(U(e))if(!isNaN(+e))s=Na;else{var f=Cr(e);f&&(l=f,s=Nn)}else if(ss(e)){var h=k({},l);h.colorStops=ot(e.colorStops,function(v){return{offset:v.offset,color:Cr(v.color)}}),J_(e)?s=xu:t0(e)&&(s=Cu),l=h}a===0?this.valType=s:(s!==this.valType||s===ac)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=at(i)?i:$n[i]||Ap(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,g){return y.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=za(n),u=oc(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?i0(c,v,n):u&&r0(c.colorStops,v.colorStops))}if(!s&&n!==Cu&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===Na?i[f].additiveValue=i[f].value-d:n===Nn?i[f].additiveValue=Ba([],i[f].value,d,-1):za(n)&&(i[f].additiveValue=n===bo?Ba([],i[f].value,d,-1):nc([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Nn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,p=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:u?pn:t[l];if((za(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=p<1?v.rawValue:d.rawValue;else if(za(a))a===bo?Zs(m,v[n],d[n],p):e0(m,v[n],d[n],p);else if(oc(a)){var _=v[n],S=d[n],b=a===xu;t[l]={type:b?"linear":"radial",x:or(_.x,S.x,p),y:or(_.y,S.y,p),colorStops:ot(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:or(T.offset,x.offset,p),color:wo(Zs([],T.color,x.color,p))}}),global:S.global},b?(t[l].x2=or(_.x2,S.x2,p),t[l].y2=or(_.y2,S.y2,p)):t[l].r=or(_.r,S.r,p)}else if(u)Zs(m,v[n],d[n],p),i||(t[l]=wo(m));else{var w=or(v[n],d[n],p);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Na?t[i]=t[i]+n:e===Nn?(Cr(t[i],pn),Ba(pn,pn,n,1),t[i]=wo(pn)):e===bo?Ba(t[i],t[i],n,1):e===Ep&&nc(t[i],t[i],n,1)},r})(),Rf=(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){Cf("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,Lt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new a0(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Nn&&u&&(u=wo(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,So(u),n),this._trackKeys.push(s)}l.addKeyframe(t,So(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;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new K_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var p=e._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return ot(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=So(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Lt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function ji(){return new Date().getTime()}var o0=(function(r){G(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=ji()-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&&(Bo(i),!e._paused&&e.update())}Bo(i)},t.prototype.start=function(){this._running||(this._time=ji(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ji(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ji()-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 Rf(e,i.loop);return this.addAnimator(n),n},t})(ke),s0=300,qs=q.domSupported,Ks=(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=ot(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),sc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lc=!1;function Du(r){var t=r.pointerType;return t==="pen"||t==="touch"}function l0(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 js(r){r&&(r.zrByTouch=!0)}function u0(r,t){return we(r.dom,new f0(r,t),!0)}function kp(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 f0=(function(){function r(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Le={mousedown:function(r){r=we(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=we(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=we(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=we(this.dom,r);var t=r.toElement||r.relatedTarget;kp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){lc=!0,r=we(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){lc||(r=we(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=we(this.dom,r),js(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<s0&&Le.click.call(this,r)},pointerdown:function(r){Le.mousedown.call(this,r)},pointermove:function(r){Du(r)||Le.mousemove.call(this,r)},pointerup:function(r){Le.mouseup.call(this,r)},pointerout:function(r){Du(r)||Le.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){Le[r]=function(t){t=we(this.dom,t),this.trigger(r,t)}});var Iu={pointermove:function(r){Du(r)||Iu.mousemove.call(this,r)},pointerup:function(r){Iu.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function h0(r,t){var e=t.domHandlers;q.pointerEventsSupported?I(Ks.pointer,function(i){To(t,i,function(n){e[i].call(r,n)})}):(q.touchEventsSupported&&I(Ks.touch,function(i){To(t,i,function(n){e[i].call(r,n),l0(t)})}),I(Ks.mouse,function(i){To(t,i,function(n){n=Lf(n),t.touching||e[i].call(r,n)})}))}function c0(r,t){q.pointerEventsSupported?I(sc.pointer,e):q.touchEventsSupported||I(sc.mouse,e);function e(i){function n(a){a=Lf(a),kp(r,a.target)||(a=u0(r,a),t.domHandlers[i].call(r,a))}To(t,i,n,{capture:!0})}}function To(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,I_(r.domTarget,t,e,i)}function Qs(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&L_(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var uc=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),v0=(function(r){G(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new uc(e,Le),qs&&(n._globalHandlerScope=new uc(document,Iu)),h0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Qs(this._localHandlerScope),qs&&Qs(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,qs&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?c0(this,i):Qs(i)}},t})(ke),Op=1;q.hasGlobalWindow&&(Op=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ho=Op,Lu=.4,Mu="#333",Au="#ccc",d0="#eee",fc=Mf,hc=5e-5;function Hr(r){return r>hc||r<-hc}var Vr=[],Mi=[],Js=$e(),tl=Math.abs,fi=(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 Hr(this.rotation)||Hr(this.x)||Hr(this.y)||Hr(this.scaleX-1)||Hr(this.scaleY-1)||Hr(this.skewX)||Hr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(fc(i),this.invTransform=null);return}i=i||$e(),e?this.getLocalTransform(i):fc(i),t&&(e?Wn(i,t,i):Af(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Vr);var i=Vr[0]<0?-1:1,n=Vr[1]<0?-1:1,a=((Vr[0]-i)*e+i)/Vr[0]||0,o=((Vr[1]-n)*e+n)/Vr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||$e(),Sa(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&&(t.invTransform=t.invTransform||$e(),Wn(Mi,t.invTransform,e),e=Mi);var i=this.originX,n=this.originY;(i||n)&&(Js[4]=i,Js[5]=n,Wn(Mi,e,Js),Mi[4]-=i,Mi[5]-=n,e=Mi),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&&ve(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ve(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&tl(t[0]-1)>1e-10&&tl(t[3]-1)>1e-10?Math.sqrt(tl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Pu(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,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,y=n+l;e[4]=-d*a-c*y*o,e[5]=-y*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Pf(e,e,u),e[4]+=i+f,e[5]+=n+h,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})(),ia=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pu(r,t){for(var e=0;e<ia.length;e++){var i=ia[e];r[i]=t[i]}}function Ze(r){Fa||(Fa=new nn(100)),r=r||Lr;var t=Fa.get(r);return t||(t={font:r,strWidthCache:new nn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",r).width,asciiCharWidth:cr.measureText("a",r).width},Fa.put(r,t)),t}var Fa;function p0(r){if(!(el>=cc)){r=r||Lr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=cr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?el=cc:n>2&&el++,t}}var el=0,cc=5;function Bp(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=p0(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function qe(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=cr.measureText(t,r.font).width,e.put(t,i)),i}function vc(r,t,e,i){var n=qe(Ze(t),r),a=fs(t),o=an(0,n,e),s=gi(0,a,i),l=new J(o,s,n,a);return l}function g0(r,t,e,i){var n=((r||"")+"").split(`
|
|
1
|
+
import{d as Am,h as Pm,i as go,Q as Rm,g as Em,w as yo,f as hp,l as cp,o as km,s as Bs,j as Ue,n as Om,R as Bm,u as _e,F as Dt,D as ye,c as E,x as O,m as er,G as Jt,q as _t,r as Bt,v as lt,J as St,I as wt,H as Or,L as Di,a as Ns}from"./vendor-BVetwVfk.js";import{u as Nm}from"./ws-Bv7YH0VB.js";import{_ as zm}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as Nt}from"./index-CzGZa5Ow.js";import{z as Fm,a6 as Hm,a9 as zs,r as Oh,k as Vm,S as Gm,v as Um}from"./icons-srBCpwXl.js";import"./index-DlSUq1W3.js";import"./useConfigInject-DqhngD-R.js";import"./transition-D2wU6PAY.js";import"./Keyframes-C7fCrnlS.js";import"./Portal-CHsntPCQ.js";import"./index-U4Zd5IK6.js";var lu=function(r,t){return lu=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])},lu(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ym=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Wm=(function(){function r(){this.browser=new Ym,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})(),q=new Wm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):Xm(navigator.userAgent,q);function Xm(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);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var bf=12,$m="sans-serif",Lr=bf+"px "+$m,Zm=20,qm=100,Km="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jm(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Zm)/qm;t[i]=n}return t}var Qm=jm(Km),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=cr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Lr),r.measureText(e);e=e||"",i=i||Lr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||bf,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=Qm[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},vp=hn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),dp=hn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),_a=Object.prototype.toString,os=Array.prototype,Jm=os.forEach,t_=os.filter,Tf=os.slice,e_=os.map,Bh=(function(){}).constructor,Ra=Bh?Bh.prototype:null,xf="__proto__",r_=2311;function pp(){return r_++}function Cf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function et(r){if(r==null||typeof r!="object")return r;var t=r,e=_a.call(r);if(e==="[object Array]"){if(!Yn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=et(r[i])}}else if(dp[e]){if(!Yn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!vp[e]&&!Yn(r)&&!ea(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==xf&&(t[o]=et(r[o]))}return t}function xt(r,t,e){if(!Y(t)||!Y(r))return e?et(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==xf){var n=r[i],a=t[i];Y(a)&&Y(n)&&!V(a)&&!V(n)&&!ea(a)&&!ea(n)&&!Nh(a)&&!Nh(n)&&!Yn(a)&&!Yn(n)?xt(n,a,e):(e||!(i in r))&&(r[i]=et(t[i]))}return r}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==xf&&(r[e]=t[e]);return r}function Ct(r,t,e){for(var i=Lt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function pt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function i_(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ee(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else Ct(r,t)}function se(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Jm)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function ot(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.map&&r.map===e_)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function hn(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function he(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.filter&&r.filter===t_)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Lt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function n_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Tf.call(arguments)))}}var ht=Ra&&at(Ra.bind)?Ra.call.bind(Ra.bind):n_;function Pt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Tf.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):_a.call(r)==="[object Array]"}function at(r){return typeof r=="function"}function U(r){return typeof r=="string"}function uu(r){return _a.call(r)==="[object String]"}function gt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Nh(r){return!!vp[_a.call(r)]}function le(r){return!!dp[_a.call(r)]}function ea(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ss(r){return r.colorStops!=null}function a_(r){return r.image!=null}function o_(r){return r!==r}function rn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function $(r,t){return r??t}function fr(r,t,e){return r??t??e}function Df(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Tf.apply(r,t)}function If(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function je(r,t){if(!r)throw new Error(t)}function We(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gp="__ec_primitive__";function fu(r){r[gp]=!0}function Yn(r){return r[gp]}var s_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Lt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),yp=typeof Map=="function";function l_(){return yp?new Map:new s_}var u_=(function(){function r(t){var e=V(t);this.data=l_();var i=this;t instanceof r?t.each(n):t&&I(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return yp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Q(r){return new u_(r)}function f_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function ls(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&k(e,t),e}function mp(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(r,t){return r.hasOwnProperty(t)}function Ht(){}var h_=180/Math.PI;function Si(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Wt(r,t){return r[0]=t[0],r[1]=t[1],r}function hr(r){return[r[0],r[1]]}function c_(r,t,e){return r[0]=t,r[1]=e,r}function zh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function hu(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function li(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function cu(r){return Math.sqrt(v_(r))}function v_(r){return r[0]*r[0]+r[1]*r[1]}function mo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function cn(r,t){var e=cu(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function vu(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var d_=vu;function p_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var di=p_;function ve(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Zi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function qi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Ii=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),g_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ii(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Ii(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ii(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ii(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ii(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ii(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),ke=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),y_=Math.log(2);function du(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/y_);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*du(r,t-1,f,u,n|d,a),v++)}return a[o]=h,h}function Fh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=du(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*du(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ko="___zrEVENTSAVED",Fs=[];function m_(r,t,e,i,n){return pu(Fs,t,i,n,!0)&&pu(r,e,Fs[0],Fs[1])}function __(r,t){r&&e(r),t&&e(t);function e(i){var n=i[ko];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ko])}}function pu(r,t,e,i,n){if(t.getBoundingClientRect&&q.domSupported&&!_p(t)){var a=t[ko]||(t[ko]={}),o=S_(t,a),s=w_(o,a,n);if(s)return s(r,e,i),!0}return!1}function S_(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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 t.clearMarkers=function(){I(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function w_(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 f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Fh(s,o):Fh(o,s))}function _p(r){return r.nodeName.toUpperCase()==="CANVAS"}var b_=/([&<>"'])/g,T_={"&":"&","<":"<",">":">",'"':""","'":"'"};function ee(r){return r==null?"":(r+"").replace(b_,function(t,e){return T_[e]})}var x_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hs=[],C_=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function gu(r,t,e,i){return e=e||{},i?Hh(r,t,e):C_&&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):Hh(r,t,e),e}function Hh(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(_p(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(pu(Hs,r,i,n)){e.zrX=Hs[0],e.zrY=Hs[1];return}}e.zrX=e.zrY=0}function Lf(r){return r||window.event}function we(r,t,e){if(t=Lf(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&&gu(r,o,t,e)}else{gu(r,t,t,e);var a=D_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&x_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function D_(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 I_(r,t,e,i){r.addEventListener(t,e,i)}function L_(r,t,e,i){r.removeEventListener(t,e,i)}var Oo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Vh(r){return r.which===2||r.which===3}var M_=(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;o<s;o++){var l=n[o],u=gu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Vs)if(Vs.hasOwnProperty(e)){var i=Vs[e](this._track,t);if(i)return i}},r})();function Gh(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function A_(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Vs={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Gh(i)/Gh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=A_(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function $e(){return[1,0,0,1,0,0]}function Mf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Af(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 Wn(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 yu(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 Pf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function P_(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 Sa(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 ct=(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})(),ui=Math.min,Ki=Math.max,mu=Math.abs,Uh=["x","y"],R_=["width","height"],Br=new ct,Nr=new ct,zr=new ct,Fr=new ct,fe=Sp(),On=fe.minTv,_u=fe.maxTv,Xn=[0,0],J=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=ui(t.x,this.x),i=ui(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ki(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ki(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=$e();return yu(a,a,[-e.x,-e.y]),P_(a,a,[i,n]),yu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&ct.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(E_,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(k_,e.x,e.y,e.width,e.height));var s=!!i;fe.reset(n,s);var l=fe.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,c=t.y+t.height-l,v=e.x+l,d=e.x+e.width-l,y=e.y+l,g=e.y+e.height-l;if(u>f||h>c||v>d||y>g)return!1;var p=!(f<v||d<u||c<y||g<h);return(s||a)&&(Xn[0]=1/0,Xn[1]=0,Yh(u,f,v,d,0,s,a,o),Yh(h,c,y,g,1,s,a,o),s&&ct.copy(i,p?fe.useDir?fe.dirMinTv:On:_u)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},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){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},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}Br.x=zr.x=e.x,Br.y=Fr.y=e.y,Nr.x=Fr.x=e.x+e.width,Nr.y=zr.y=e.y+e.height,Br.transform(i),Fr.transform(i),Nr.transform(i),zr.transform(i),t.x=ui(Br.x,Nr.x,zr.x,Fr.x),t.y=ui(Br.y,Nr.y,zr.y,Fr.y);var l=Ki(Br.x,Nr.x,zr.x,Fr.x),u=Ki(Br.y,Nr.y,zr.y,Fr.y);t.width=l-t.x,t.height=u-t.y},r})(),E_=new J(0,0,0,0),k_=new J(0,0,0,0);function Yh(r,t,e,i,n,a,o,s){var l=mu(t-e),u=mu(i-r),f=ui(l,u),h=Uh[n],c=Uh[1-n],v=R_[n];t<e||i<r?l<u?(a&&(_u[h]=-l),s&&(o[h]=t,o[v]=0)):(a&&(_u[h]=u),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=Ki(r,e),o[v]=ui(t,i)-o[h]),a&&(f<Xn[0]||fe.useDir)&&(Xn[0]=ui(f,Xn[0]),(l<u||!fe.bidirectional)&&(On[h]=l,On[c]=0,fe.useDir&&fe.calcDirMTV()),(l>=u||!fe.bidirectional)&&(On[h]=-u,On[c]=0,fe.useDir&&fe.calcDirMTV())))}function Sp(){var r=0,t=new ct,e=new ct,i={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ki(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return mu(a)<1e-10}return i}var wp="silent";function O_(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:B_}}function B_(){Oo(this.event)}var N_=(function(r){G(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})(ke),vn=(function(){function r(t,e){this.x=t,this.y=e}return r})(),z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gs=new J(0,0,0,0),bp=(function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new vn(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new N_,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new g_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(z_,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=Tp(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 vn(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.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 vn(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=O_(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 vn(e,i);if(Wh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new J(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Gs.copy(c.getBoundingRect()),c.transform&&Gs.applyTransform(c.transform),Gs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,g=0;g<u;g+=v)for(var p=0;p<y;p+=d){var m=e+g*Math.cos(p),_=i+g*Math.sin(p);if(Wh(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new M_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new vn;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ke);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){bp.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Tp(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||d_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function F_(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.ignoreHostSilent?null:s:i.parent}return n?wp:!0}return!1}function Wh(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=F_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==wp)){t.target=o;break}}}function Tp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var xp=32,dn=7;function H_(r){for(var t=0;r>=xp;)t|=r&1,r>>=1;return r+t}function Xh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;V_(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function V_(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function $h(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>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 Us(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ys(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function G_(r,t){var e=dn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],g=i[v+1],p=n[v+1];n[v]=y+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=Ys(r[g],r,d,y,0,t);d+=m,y-=m,y!==0&&(p=Us(r[d+y-1],r,g,p,p-1,t),p!==0&&(y<=p?h(d,y,g,p):c(d,y,g,p)))}function h(v,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=r[v+p];var m=0,_=y,S=v;if(r[S++]=r[_++],--g===0){for(p=0;p<d;p++)r[S+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m];return}for(var b=e,w,T,C;;){w=0,T=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],T++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=Ys(r[_],o,m,d,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=o[m+p];if(S+=w,m+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=Us(o[m],r,_,g,0,t),T!==0){for(p=0;p<T;p++)r[S+p]=r[_+p];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(w>=dn||T>=dn);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[m+p]}}function c(v,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=r[y+p];var m=v+d-1,_=g-1,S=y+g-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p];return}if(g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_];return}for(var T=e;;){var C=0,x=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,x=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=d-Ys(o[_],r,v,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,w=S+1,b=m+1,p=C-1;p>=0;p--)r[w+p]=r[b+p];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(x=g-Us(r[m],o,0,g,g-1,t),x!==0){for(S-=x,_-=x,g-=x,w=S+1,b=_+1,p=0;p<x;p++)r[w+p]=o[b+p];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}T--}while(C>=dn||x>=dn);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _o(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<xp){a=Xh(r,e,i,t),$h(r,e,i,e+a,t);return}var o=G_(r,t),s=H_(n);do{if(a=Xh(r,e,i,t),a<s){var l=n;l>s&&(l=s),$h(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 ce=1,Bn=2,$i=4,Zh=!1;function Ws(){Zh||(Zh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function qh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var U_=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qh}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,_o(i,qh)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=n,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=ce),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ws(),d.z=0),isNaN(d.z2)&&(Ws(),d.z2=0),isNaN(d.zlevel)&&(Ws(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,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<i;e++)this.delRoot(t[e]);return}var n=pt(this._roots,t);n>=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})(),Bo;Bo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var $n={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-$n.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?$n.bounceIn(r*2)*.5:$n.bounceOut(r*2-1)*.5+.5}},Ea=Math.pow,xr=Math.sqrt,No=1e-8,Cp=1e-4,Kh=xr(3),ka=1/3,Ye=Si(),xe=Si(),tn=Si();function br(r){return r>-No&&r<No}function Dp(r){return r>No||r<-No}function $t(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 jh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ip(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,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(br(f)&&br(h))if(br(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(br(y)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(y>0){var m=xr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ea(-_,ka):_=Ea(_,ka),S<0?S=-Ea(-S,ka):S=Ea(S,ka);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*xr(f*f*f)),w=Math.acos(b)/3,T=xr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),p=(-s+T*(C+Kh*Math.sin(w)))/(3*o),x=(-s+T*(C-Kh*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),x>=0&&x<=1&&(a[v++]=x)}}return v}function Lp(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(br(o)){if(Dp(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(br(f))n[0]=-a/(2*o);else if(f>0){var h=xr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function zo(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,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function Y_(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,y,g,p;Ye[0]=l,Ye[1]=u;for(var m=0;m<1;m+=.05)xe[0]=$t(r,e,n,o,m),xe[1]=$t(t,i,a,s,m),g=di(Ye,xe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<Cp);_++)d=h-c,y=h+c,xe[0]=$t(r,e,n,o,d),xe[1]=$t(t,i,a,s,d),g=di(xe,Ye),d>=0&&g<v?(h=d,v=g):(tn[0]=$t(r,e,n,o,y),tn[1]=$t(t,i,a,s,y),p=di(tn,Ye),y<=1&&p<v?(h=y,v=p):c*=.5);return xr(v)}function W_(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,y=$t(r,e,n,o,d),g=$t(t,i,a,s,d),p=y-u,m=g-f;h+=Math.sqrt(p*p+m*m),u=y,f=g}return h}function Zt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Qh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function X_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(br(a)){if(Dp(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(br(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=xr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Mp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function ra(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 $_(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){xe[0]=Zt(r,e,n,c),xe[1]=Zt(t,i,a,c);var v=di(Ye,xe);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Cp);d++){var y=u-f,g=u+f;xe[0]=Zt(r,e,n,y),xe[1]=Zt(t,i,a,y);var v=di(xe,Ye);if(y>=0&&v<h)u=y,h=v;else{tn[0]=Zt(r,e,n,g),tn[1]=Zt(t,i,a,g);var p=di(tn,Ye);g<=1&&p<h?(u=g,h=p):f*=.5}}return xr(h)}function Z_(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Zt(r,e,n,c),d=Zt(t,i,a,c),y=v-s,g=d-l;u+=Math.sqrt(y*y+g*g),s=v,l=d}return u}var q_=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ap(r){var t=r&&q_.exec(r);if(t){var e=t[1].split(","),i=+We(e[0]),n=+We(e[1]),a=+We(e[2]),o=+We(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ip(0,i,a,1,l,s)&&$t(0,n,o,1,s[0])}}}var K_=(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||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,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=at(t)?t:$n[t]||Ap(t)},r})(),Pp=(function(){function r(t){this.value=t}return r})(),j_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Pp(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})(),nn=(function(){function r(t){this._list=new j_,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 Pp(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})(),Jh={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 Zn(r){return r=Math.round(r),r<0?0:r>255?255:r}function tc(r){return r<0?0:r>1?1:r}function Xs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Zn(parseFloat(t)/100*255):Zn(parseInt(t,10))}function pi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?tc(parseFloat(t)/100):tc(parseFloat(t))}function $s(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 Se(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Su(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Rp=new nn(20),Oa=null;function Li(r,t){Oa&&Su(Oa,t),Oa=Rp.put(r,Oa||t.slice())}function Cr(r,t){if(r){t=t||[];var e=Rp.get(r);if(e)return Su(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Jh)return Su(t,Jh[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)){Se(t,0,0,0,1);return}return Se(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)){Se(t,0,0,0,1);return}return Se(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(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Se(t,+u[0],+u[1],+u[2],1):Se(t,0,0,0,1);f=pi(u.pop());case"rgb":if(u.length>=3)return Se(t,Xs(u[0]),Xs(u[1]),Xs(u[2]),u.length===3?f:pi(u[3])),Li(r,t),t;Se(t,0,0,0,1);return;case"hsla":if(u.length!==4){Se(t,0,0,0,1);return}return u[3]=pi(u[3]),wu(u,t),Li(r,t),t;case"hsl":if(u.length!==3){Se(t,0,0,0,1);return}return wu(u,t),Li(r,t),t;default:return}}Se(t,0,0,0,1)}}function wu(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=pi(r[1]),n=pi(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Se(t,Zn($s(o,a,e+1/3)*255),Zn($s(o,a,e)*255),Zn($s(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Q_(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ec(r,t){var e=Cr(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return us(e,e.length===4?"rgba":"rgb")}}function bu(r,t,e,i){var n=Cr(r);if(r)return n=Q_(n),e!=null&&(n[1]=pi(at(e)?e(n[1]):e)),i!=null&&(n[2]=pi(at(i)?i(n[2]):i)),us(wu(n),"rgba")}function us(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 Fo(r,t){var e=Cr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var rc=new nn(100);function ic(r){if(U(r)){var t=rc.get(r);return t||(t=ec(r,-.1),rc.put(r,t)),t}else if(ss(r)){var e=k({},r);return e.colorStops=ot(r.colorStops,function(i){return{offset:i.offset,color:ec(i.color,-.1)}}),e}return r}function J_(r){return r.type==="linear"}function t0(r){return r.type==="radial"}(function(){return q.hasGlobalWindow&&at(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Tu=Array.prototype.slice;function or(r,t,e){return(t-r)*e+r}function Zs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=or(t[a],e[a],i);return r}function e0(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=or(t[o][s],e[o][s],i)}return r}function Ba(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function nc(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function r0(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function i0(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:Tu.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function So(r){if(se(r)){var t=r.length;if(se(r[0])){for(var e=[],i=0;i<t;i++)e.push(Tu.call(r[i]));return e}return Tu.call(r)}return r}function wo(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function n0(r){return se(r&&r[0])?2:1}var Na=0,bo=1,Ep=2,Nn=3,xu=4,Cu=5,ac=6;function oc(r){return r===xu||r===Cu}function za(r){return r===bo||r===Ep}var pn=[0,0,0,0],a0=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ac,l=e;if(se(e)){var u=n0(e);s=u,(u===1&&!gt(e[0])||u===2&&!gt(e[0][0]))&&(o=!0)}else if(gt(e)&&!o_(e))s=Na;else if(U(e))if(!isNaN(+e))s=Na;else{var f=Cr(e);f&&(l=f,s=Nn)}else if(ss(e)){var h=k({},l);h.colorStops=ot(e.colorStops,function(v){return{offset:v.offset,color:Cr(v.color)}}),J_(e)?s=xu:t0(e)&&(s=Cu),l=h}a===0?this.valType=s:(s!==this.valType||s===ac)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=at(i)?i:$n[i]||Ap(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,g){return y.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=za(n),u=oc(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?i0(c,v,n):u&&r0(c.colorStops,v.colorStops))}if(!s&&n!==Cu&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===Na?i[f].additiveValue=i[f].value-d:n===Nn?i[f].additiveValue=Ba([],i[f].value,d,-1):za(n)&&(i[f].additiveValue=n===bo?Ba([],i[f].value,d,-1):nc([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Nn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,p=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:u?pn:t[l];if((za(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=p<1?v.rawValue:d.rawValue;else if(za(a))a===bo?Zs(m,v[n],d[n],p):e0(m,v[n],d[n],p);else if(oc(a)){var _=v[n],S=d[n],b=a===xu;t[l]={type:b?"linear":"radial",x:or(_.x,S.x,p),y:or(_.y,S.y,p),colorStops:ot(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:or(T.offset,x.offset,p),color:wo(Zs([],T.color,x.color,p))}}),global:S.global},b?(t[l].x2=or(_.x2,S.x2,p),t[l].y2=or(_.y2,S.y2,p)):t[l].r=or(_.r,S.r,p)}else if(u)Zs(m,v[n],d[n],p),i||(t[l]=wo(m));else{var w=or(v[n],d[n],p);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Na?t[i]=t[i]+n:e===Nn?(Cr(t[i],pn),Ba(pn,pn,n,1),t[i]=wo(pn)):e===bo?Ba(t[i],t[i],n,1):e===Ep&&nc(t[i],t[i],n,1)},r})(),Rf=(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){Cf("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,Lt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new a0(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Nn&&u&&(u=wo(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,So(u),n),this._trackKeys.push(s)}l.addKeyframe(t,So(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;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new K_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var p=e._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return ot(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=So(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Lt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function ji(){return new Date().getTime()}var o0=(function(r){G(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=ji()-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&&(Bo(i),!e._paused&&e.update())}Bo(i)},t.prototype.start=function(){this._running||(this._time=ji(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ji(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ji()-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 Rf(e,i.loop);return this.addAnimator(n),n},t})(ke),s0=300,qs=q.domSupported,Ks=(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=ot(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),sc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lc=!1;function Du(r){var t=r.pointerType;return t==="pen"||t==="touch"}function l0(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 js(r){r&&(r.zrByTouch=!0)}function u0(r,t){return we(r.dom,new f0(r,t),!0)}function kp(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 f0=(function(){function r(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Le={mousedown:function(r){r=we(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=we(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=we(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=we(this.dom,r);var t=r.toElement||r.relatedTarget;kp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){lc=!0,r=we(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){lc||(r=we(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=we(this.dom,r),js(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<s0&&Le.click.call(this,r)},pointerdown:function(r){Le.mousedown.call(this,r)},pointermove:function(r){Du(r)||Le.mousemove.call(this,r)},pointerup:function(r){Le.mouseup.call(this,r)},pointerout:function(r){Du(r)||Le.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){Le[r]=function(t){t=we(this.dom,t),this.trigger(r,t)}});var Iu={pointermove:function(r){Du(r)||Iu.mousemove.call(this,r)},pointerup:function(r){Iu.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function h0(r,t){var e=t.domHandlers;q.pointerEventsSupported?I(Ks.pointer,function(i){To(t,i,function(n){e[i].call(r,n)})}):(q.touchEventsSupported&&I(Ks.touch,function(i){To(t,i,function(n){e[i].call(r,n),l0(t)})}),I(Ks.mouse,function(i){To(t,i,function(n){n=Lf(n),t.touching||e[i].call(r,n)})}))}function c0(r,t){q.pointerEventsSupported?I(sc.pointer,e):q.touchEventsSupported||I(sc.mouse,e);function e(i){function n(a){a=Lf(a),kp(r,a.target)||(a=u0(r,a),t.domHandlers[i].call(r,a))}To(t,i,n,{capture:!0})}}function To(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,I_(r.domTarget,t,e,i)}function Qs(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&L_(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var uc=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),v0=(function(r){G(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new uc(e,Le),qs&&(n._globalHandlerScope=new uc(document,Iu)),h0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Qs(this._localHandlerScope),qs&&Qs(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,qs&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?c0(this,i):Qs(i)}},t})(ke),Op=1;q.hasGlobalWindow&&(Op=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ho=Op,Lu=.4,Mu="#333",Au="#ccc",d0="#eee",fc=Mf,hc=5e-5;function Hr(r){return r>hc||r<-hc}var Vr=[],Mi=[],Js=$e(),tl=Math.abs,fi=(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 Hr(this.rotation)||Hr(this.x)||Hr(this.y)||Hr(this.scaleX-1)||Hr(this.scaleY-1)||Hr(this.skewX)||Hr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(fc(i),this.invTransform=null);return}i=i||$e(),e?this.getLocalTransform(i):fc(i),t&&(e?Wn(i,t,i):Af(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Vr);var i=Vr[0]<0?-1:1,n=Vr[1]<0?-1:1,a=((Vr[0]-i)*e+i)/Vr[0]||0,o=((Vr[1]-n)*e+n)/Vr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||$e(),Sa(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&&(t.invTransform=t.invTransform||$e(),Wn(Mi,t.invTransform,e),e=Mi);var i=this.originX,n=this.originY;(i||n)&&(Js[4]=i,Js[5]=n,Wn(Mi,e,Js),Mi[4]-=i,Mi[5]-=n,e=Mi),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&&ve(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ve(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&tl(t[0]-1)>1e-10&&tl(t[3]-1)>1e-10?Math.sqrt(tl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Pu(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,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,y=n+l;e[4]=-d*a-c*y*o,e[5]=-y*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Pf(e,e,u),e[4]+=i+f,e[5]+=n+h,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})(),ia=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pu(r,t){for(var e=0;e<ia.length;e++){var i=ia[e];r[i]=t[i]}}function Ze(r){Fa||(Fa=new nn(100)),r=r||Lr;var t=Fa.get(r);return t||(t={font:r,strWidthCache:new nn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",r).width,asciiCharWidth:cr.measureText("a",r).width},Fa.put(r,t)),t}var Fa;function p0(r){if(!(el>=cc)){r=r||Lr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=cr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?el=cc:n>2&&el++,t}}var el=0,cc=5;function Bp(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=p0(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function qe(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=cr.measureText(t,r.font).width,e.put(t,i)),i}function vc(r,t,e,i){var n=qe(Ze(t),r),a=fs(t),o=an(0,n,e),s=gi(0,a,i),l=new J(o,s,n,a);return l}function g0(r,t,e,i){var n=((r||"")+"").split(`
|
|
2
2
|
`),a=n.length;if(a===1)return vc(n[0],t,e,i);for(var o=new J(0,0,0,0),s=0;s<n.length;s++){var l=vc(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function an(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function gi(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function fs(r){return Ze(r).stWideCharWidth}function na(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Np(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,f="left",h="top";if(i instanceof Array)l+=na(i[0],e.width),u+=na(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var rl="__zr_normal__",il=ia.concat(["ignore"]),y0=hn(ia,function(r,t){return r[t]=!0,r},{ignore:!1}),Ai={},m0=new J(0,0,0,0),Ha=[],hs=(function(){function r(t){this.id=pp(),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;a.copyTransform(e);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=m0,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ai,i,c):Np(Ai,i,c),a.x=Ai.x,a.y=Ai.y,o=Ai.align,s=Ai.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,y=void 0;v==="center"?(d=c.width*.5,y=c.height*.5):(d=na(v[0],c.width),y=na(v[1],c.height)),u=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+y+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=p.overflowRect=p.overflowRect||new J(0,0,0,0);a.getLocalTransform(Ha),Sa(Ha,Ha),J.copy(m,c),m.applyTransform(Ha)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=i.insideFill,b=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=i.outsideFill,b=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==p.fill||b!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=S,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ce,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()?Au:Mu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Cr(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,us(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||{},k(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(Y(t))for(var i=t,n=Lt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==rl)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,il)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},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(rl,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===rl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(pt(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){Cf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce),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;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=pt(this.currentStates,t);if(e>=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=pt(n,t),o=pt(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<t.length;n++){var a=t[n];k(e,a),a.textConfig&&(i=i||{},k(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=k({},n?this.textConfig:i.textConfig),k(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<il.length;f++){var h=il[f],c=a&&y0[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new fi,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ce;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new Rf(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=pt(a,t);o>=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;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){nl(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){nl(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=nl(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ce;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Ee(hs,ke);Ee(hs,fi);function nl(r,t,e,i,n){e=e||{};var a=[];zp(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function al(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function _0(r){return se(r[0])}function S0(r,t,e){if(se(t[e]))if(se(r[e])||(r[e]=[]),le(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),al(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(_0(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?al(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else al(a,n,o);a.length=n.length}else r[e]=t[e]}function w0(r,t){return r===t||se(r)&&se(t)&&b0(r,t)}function b0(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function zp(r,t,e,i,n,a,o,s){for(var l=Lt(i),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!Y(a),d=r.animators,y=[],g=0;g<l.length;g++){var p=l[g],m=i[p];if(m!=null&&e[p]!=null&&(v||a[p]))if(Y(m)&&!se(m)&&!ss(m)){if(t){s||(e[p]=m,r.updateDuringAnimation(t));continue}zp(r,p,e[p],m,n,a&&a[p],o,s)}else y.push(p);else s||(e[p]=m,r.updateDuringAnimation(t),y.push(p))}var _=y.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(y);if(w){var T=pt(d,b);d.splice(T,1)}}}if(n.force||(y=he(y,function(L){return!w0(i[L],e[L])}),_=y.length),_>0||n.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},c&&(C={});for(var S=0;S<_;S++){var p=y[S];x[p]=e[p],c?C[p]=i[p]:e[p]=i[p]}}else if(c){D={};for(var S=0;S<_;S++){var p=y[S];D[p]=So(e[p]),S0(e,i,p)}}var b=new Rf(e,!1,!1,h?he(d,function(A){return A.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&C&&b.whenWithKeys(0,C,y),D&&b.whenWithKeys(0,D,y),b.whenWithKeys(u??500,s?x:i,y).delay(f||0),r.addAnimator(b,t),o.push(b)}}var Et=(function(r){G(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<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=pt(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=pt(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;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new J(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(J.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(hs);Et.prototype.type="group";var xo={},Fp={};function T0(r){delete Fp[r]}function x0(r){if(!r)return!1;if(typeof r=="string")return Fo(r,1)<Lu;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Fo(t[n].color,1);return e/=i,e<Lu}return!1}var C0=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new U_,o=i.renderer||"canvas";xo[o]||(o=Lt(xo)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new xo[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!q.node&&!q.worker&&!l?new v0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=$(i.pointerSize,c)),this.handler=new bp(a,s,u,s.root,v),this.animation=new o0({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=x0(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=ji();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ji();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Et&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,T0(this.id))},r})();function dc(r,t){var e=new C0(pp(),r,t);return Fp[e.id]=e,e}function D0(r,t){xo[r]=t}var pc=1e-4,Hp=20;function I0(r){return r.replace(/^\s+|\s+$/g,"")}var aa=Math.min,Ae=Math.max,lr=Math.abs;function gc(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}var re=L0;function L0(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return M0(r,t,e)}function M0(r,t,e){return U(r)?I0(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Vp(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Hp),r=(+r).toFixed(t),e?r:+r}function yc(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 A0(r)}function A0(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 P0(r,t){var e=Math.max(yc(r),yc(t)),i=r+t;return e>Hp?i:Vp(i,e)}function Gp(r){var t=Math.PI*2;return(r%t+t)%t}function Vo(r){return r>-pc&&r<pc}var R0=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function cs(r){if(r instanceof Date)return r;if(U(r)){var t=R0.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Go(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function E0(r){return!isNaN(Go(r))}function Up(){return Math.round(Math.random()*9)}function Yp(r,t){return t===0?r:Yp(t,r%t)}function mc(r,t){return r==null?t:t==null?r:r*t/Yp(r,t)}var k0="[ECharts] ",O0=typeof console<"u"&&console.warn&&console.log;function B0(r,t,e){O0&&console[r](k0+t)}function Wp(r,t){B0("error",r)}function ie(r){throw new Error(r)}var Xp="series\0",N0="\0_ec_\0";function qt(r){return r instanceof Array?r:r==null?[]:[r]}function Ru(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<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var _c=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function wa(r){return Y(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function z0(r){return Y(r)&&!(r instanceof Array)}function F0(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Q();I(t,function(l,u){if(!Y(l)){t[u]=null;return}});var s=H0(r,o,e);return(i||n)&&V0(s,r,o,t),i&&G0(s,t),i||n?U0(s,t,n):a&&Y0(s,t),W0(s),s}function H0(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||oa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function V0(r,t,e,i){I(i,function(n,a){if(!(!n||n.id==null)){var o=qn(n.id),s=e.get(o);if(s!=null){var l=r[s];je(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function G0(r,t){I(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!oa(e)&&!oa(a)&&$p("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function U0(r,t,e){I(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||oa(n.existing)||n.existing&&i.id!=null&&!$p("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function Y0(r,t){I(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function W0(r){var t=Q();I(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),I(r,function(e){var i=e.newOption;je(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),I(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(Y(a)){if(o.name=a.name!=null?qn(a.name):n?n.name:Xp+i,n)o.id=qn(n.id);else if(a.id!=null)o.id=qn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function $p(r,t,e){var i=Re(t[r],null),n=Re(e[r],null);return i!=null&&n!=null&&i===n}function qn(r){return Re(r,"")}function Re(r,t){return r==null?t:U(r)?r:gt(r)||uu(r)?r+"":t}function Ef(r){var t=r.name;return!!(t&&t.indexOf(Xp))}function oa(r){return r&&r.id!=null&&qn(r.id).indexOf(N0)===0}function X0(r,t,e){I(r,function(i){var n=i.newOption;Y(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=$0(t,n,i.existing,e))})}function $0(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function ba(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?ot(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?ot(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function mt(){var r="__ec_inner_"+Z0++;return function(t){return t[r]||(t[r]={})}}var Z0=Up();function ol(r,t,e){var i=kf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=Ta(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function kf(r,t){var e;if(U(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Q(),a={},o=!1;return I(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&pt(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var wr={useDefault:!0,enableAll:!1,enableNone:!1};function Ta(r,t,e,i){i=i||wr;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Zp(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function q0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function K0(r){return r==="auto"?q.domSupported?"html":"richText":r||"html"}var j0=".",Gr="___EC__COMPONENT__CONTAINER___",qp="___EC__EXTENDED_CLASS___";function Xe(r){var t={main:"",sub:""};if(r){var e=r.split(j0);t.main=e[0]||"",t.sub=e[1]||""}return t}function Q0(r){je(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function J0(r){return!!(r&&r[qp])}function Of(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return t1(i)?n=(function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},i_(n,this)),k(n.prototype,e),n[qp]=!0,n.extend=this.extend,n.superCall=i1,n.superApply=n1,n.superClass=i,n}}function t1(r){return at(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Kp(r,t){r.extend=t.extend}var e1=Math.round(Math.random()*10);function r1(r){var t=["__\0is_clz",e1++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function i1(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function n1(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Bf(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){Q0(n),i.prototype.type=n;var a=Xe(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Gr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Gr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Xe(i),a=[],o=t[n.main];return o&&o[Gr]?I(o,function(s,l){l!==Gr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Xe(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return I(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Xe(i),a=t[n.main];return a&&a[Gr]};function e(i){var n=t[i.main];return(!n||!n[Gr])&&(n=t[i.main]={},n[Gr]=!0),n}}function sa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&pt(n,l)>=0||a&&pt(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var a1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],o1=sa(a1),s1=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return o1(this,t,e)},r})(),Eu=new nn(50);function l1(r){if(typeof r=="string"){var t=Eu.get(r);return t&&t.image}else return r}function jp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Eu.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!vs(t)&&a.pending.push(o)):(t=cr.loadImage(r,Sc,Sc),t.__zrImageSrc=r,Eu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Sc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function vs(r){return r&&r.width&&r.height}var sl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u1(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
3
|
`);a=Qp(e,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Jp(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
4
4
|
`),r.isTruncated=s}function Qp(r,t,e,i){i=i||{};var n=k({},i);e=$(e,"..."),n.maxIterations=$(i.maxIterations,2);var a=n.minChar=$(i.minChar,0),o=n.fontMeasureInfo=Ze(t),s=o.asciiCharWidth;n.placeholder=$(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=qe(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function Jp(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=qe(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?f1(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=qe(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function f1(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=Bp(e,r.charCodeAt(n));return n}function h1(r,t,e,i){var n=Nf(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",h=fs(u),c=$(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,y=t.width;y==null&&e!=null&&(y=e-s);var g=t.height;g==null&&i!=null&&(g=i-l);var p;y!=null&&(a==="break"||a==="breakAll")?p=n?tg(n,t.font,y,a==="breakAll",0).lines:[]:p=n?n.split(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as
|
|
2
|
-
`)),p=L(()=>{if(!c.value)return f.value;const e=c.value.toLowerCase();return f.value.filter(t=>t.toLowerCase().includes(e))});function H(e){return e.includes("✖")||e.includes("error")||e.includes("Error")||e.includes("failed")?"line-error":e.includes("✔")||e.includes("✓")||e.includes("success")||e.includes("running")?"line-success":e.includes("warn")||e.includes("Warn")||e.includes("○")?"line-warn":e.startsWith(" ")||e.startsWith(" ")?"line-indent":""}function M(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function B(e){if(!c.value)return e;const t=c.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`(${t})`,"gi"),"<mark>$1</mark>")}async function x(){v.value=!0,g.value="",m.value="";const e=T[k.value]||"status";try{const{output:t}=await C.execute(e,3e4);m.value=t,_.value&&(await w(),n.value&&(n.value.scrollTop=n.value.scrollHeight))}catch(t){g.value=`执行失败: ${t.message}`,m.value=g.value}finally{v.value=!1}}return
|
|
1
|
+
import{u as D}from"./ws-Bv7YH0VB.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{z as O}from"./icons-srBCpwXl.js";import{w as U,l as j,F as i,D as o,c as a,x as d,m as A,G as F,I as h,H as I,L as R,n as w,q as l,r,j as L,v as u,J as b,u as G,E as J}from"./vendor-BVetwVfk.js";const Q={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},P={style:{display:"flex",gap:"10px",margin:"12px 0"}},X={key:0,style:{"text-align":"center",padding:"40px",color:"var(--text-muted)"}},Y={key:1,style:{"text-align":"center",padding:"40px",color:"var(--text-muted)"}},Z={key:2},ee=["innerHTML"],te={__name:"Logs",setup(ae){const C=D(),k=r("status"),v=r(!1),g=r(""),m=r(""),c=r(""),_=r(!0),n=r(null),T={status:"status",doctor:"doctor","skill-sources":"skill sources","llm-providers":"llm providers"},f=L(()=>m.value.split(`
|
|
2
|
+
`)),p=L(()=>{if(!c.value)return f.value;const e=c.value.toLowerCase();return f.value.filter(t=>t.toLowerCase().includes(e))});function H(e){return e.includes("✖")||e.includes("error")||e.includes("Error")||e.includes("failed")?"line-error":e.includes("✔")||e.includes("✓")||e.includes("success")||e.includes("running")?"line-success":e.includes("warn")||e.includes("Warn")||e.includes("○")?"line-warn":e.startsWith(" ")||e.startsWith(" ")?"line-indent":""}function M(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function B(e){if(!c.value)return e;const t=c.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`(${t})`,"gi"),"<mark>$1</mark>")}async function x(){v.value=!0,g.value="",m.value="";const e=T[k.value]||"status";try{const{output:t}=await C.execute(e,3e4);m.value=t,_.value&&(await w(),n.value&&(n.value.scrollTop=n.value.scrollHeight))}catch(t){g.value=`执行失败: ${t.message}`,m.value=g.value}finally{v.value=!1}}return U(p,async()=>{_.value&&(await w(),n.value&&(n.value.scrollTop=n.value.scrollHeight))}),j(x),(e,t)=>{const N=l("a-checkbox"),S=l("a-button"),$=l("a-space"),y=l("a-tab-pane"),E=l("a-tabs"),V=l("a-input-search"),W=l("a-tag"),q=l("a-spin");return u(),i("div",null,[o("div",Q,[t[5]||(t[5]=o("div",null,[o("h2",{class:"page-title"},"日志查看"),o("p",{class:"page-sub"},"系统运行日志与诊断输出")],-1)),a($,null,{default:d(()=>[a(N,{checked:_.value,"onUpdate:checked":t[0]||(t[0]=s=>_.value=s)},{default:d(()=>[...t[3]||(t[3]=[b("自动滚动",-1)])]),_:1},8,["checked"]),a(S,{type:"primary",ghost:"",loading:v.value,onClick:x},{icon:d(()=>[a(G(O))]),default:d(()=>[t[4]||(t[4]=b(" 刷新 ",-1))]),_:1},8,["loading"])]),_:1})]),a(E,{activeKey:k.value,"onUpdate:activeKey":t[1]||(t[1]=s=>k.value=s),onChange:x,style:{"margin-bottom":"0"}},{default:d(()=>[a(y,{key:"status",tab:"系统状态"}),a(y,{key:"doctor",tab:"环境诊断"}),a(y,{key:"skill-sources",tab:"技能来源"}),a(y,{key:"llm-providers",tab:"LLM 提供商"})]),_:1},8,["activeKey"]),o("div",P,[a(V,{value:c.value,"onUpdate:value":t[2]||(t[2]=s=>c.value=s),placeholder:"搜索日志内容...","allow-clear":"",style:{flex:"1"}},null,8,["value"]),p.value.length!==f.value.length?(u(),A(W,{key:0,color:"blue"},{default:d(()=>[b(h(p.value.length)+" / "+h(f.value.length)+" 行 ",1)]),_:1})):F("",!0)]),o("div",{ref_key:"logContainer",ref:n,class:"log-box"},[v.value?(u(),i("div",X,[a(q,{size:"large"}),t[6]||(t[6]=o("div",{style:{"margin-top":"10px"}},"加载中...",-1))])):p.value.length?(u(),i("div",Z,[(u(!0),i(I,null,R(p.value,(s,z)=>(u(),i("div",{key:z,class:J(["log-line",H(s)]),innerHTML:B(M(s))},null,10,ee))),128))])):(u(),i("div",Y,h(g.value||"暂无日志内容,点击刷新加载"),1))],512)])}}},re=K(te,[["__scopeId","data-v-b316ead3"]]);export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as Oe}from"./ws-Bv7YH0VB.js";import{s as Ne}from"./community-parser-CO25nZFt.js";import{_ as De}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as k}from"./index-CtUuEt-Q.js";import{y as Fe,m as Le,b as re,a3 as Be,k as ue,aq as Ve,i as Ee}from"./icons-DbKJDD5_.js";import{l as Pe,F as v,D as x,c as a,x as o,q as p,r as b,v as r,J as _,u as y,H as h,L as F,m as C,I as m,G as g,j as P,a as ie}from"./vendor-BVetwVfk.js";import"./index-BLYcQWYW.js";import"./useConfigInject-BlTQDaaH.js";import"./transition-C4Iby8cT.js";import"./Keyframes-C7fCrnlS.js";import"./Portal-CHsntPCQ.js";import"./index-U4Zd5IK6.js";function X(l){const s=Ne(l);if(!s)return null;try{return JSON.parse(s)}catch{}const u=s.match(/\{[\s\S]*\}|\[[\s\S]*\]/);if(!u)return null;try{return JSON.parse(u[0])}catch{return null}}const Q=Object.freeze(["draft","published","deprecated","suspended"]),Je=Object.freeze(["pending","running","success","failed","timeout"]);function L(l,s=0){return typeof l=="number"&&Number.isFinite(l)?l:s}function qe(l,s=0){if(!l||typeof l!="object")return null;const u=l.id||"";return u?{key:u,id:u,name:String(l.name||""),version:String(l.version||""),description:String(l.description||""),endpoint:l.endpoint||"",pricing:l.pricing??null,status:String(l.status||"draft").toLowerCase(),owner:l.owner||"",invocationCount:L(l.invocationCount??l.invocation_count,0),createdAt:l.createdAt??l.created_at??null,updatedAt:l.updatedAt??l.updated_at??null,_idx:s}:null}function Ke(l){const s=X(l);return Array.isArray(s)?s.map(qe).filter(Boolean):[]}function Ge(l,s=0){if(!l||typeof l!="object")return null;const u=l.id||"";return u?{key:u,id:u,serviceId:l.serviceId||l.service_id||"",callerId:l.callerId||l.caller_id||"",input:l.input??null,output:l.output??null,status:String(l.status||"success").toLowerCase(),durationMs:l.durationMs??l.duration_ms??null,error:l.error||"",createdAt:l.createdAt??l.created_at??null,_idx:s}:null}function He(l){const s=X(l);return Array.isArray(s)?s.map(Ge).filter(Boolean):[]}function We(l){const s={total:0,counts:{success:0,failed:0,timeout:0,pending:0,running:0},successRate:0,avgDurationMs:0,scopedToService:null},u=X(l);if(!u||typeof u!="object"||Array.isArray(u))return s;s.total=L(u.total,0),s.successRate=L(u.successRate??u.success_rate,0),s.avgDurationMs=L(u.avgDurationMs??u.avg_duration_ms,0),s.scopedToService=u.scopedToService??u.scoped_to_service??null;const I=u.counts&&typeof u.counts=="object"?u.counts:{};for(const w of Object.keys(s.counts))s.counts[w]=L(I[w],0);return s}function ce(l){if(l==null||l==="")return"—";const s=typeof l=="number"?new Date(l):new Date(String(l));return isNaN(s.getTime())?String(l):s.toLocaleString("zh-CN",{hour12:!1})}const Qe={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},Xe={class:"filter-bar"},Ye={style:{color:"var(--text-primary)","font-weight":"500"}},Ze={key:1,style:{color:"var(--text-secondary)","font-size":"11px","margin-top":"2px"}},et={key:2,style:{color:"#722ed1","font-weight":"500"}},tt={key:0,style:{color:"var(--text-secondary)","font-family":"monospace","font-size":"11px"}},at={key:1,style:{color:"var(--text-muted)"}},ot={key:4,style:{color:"var(--text-secondary)","font-size":"11px"}},nt={style:{padding:"40px",color:"var(--text-muted)","text-align":"center"}},lt={class:"filter-bar"},st={style:{color:"var(--text-primary)"}},rt={style:{color:"var(--text-muted)","font-size":"11px","font-family":"monospace"}},ut={key:0,style:{color:"var(--text-secondary)","font-family":"monospace","font-size":"11px"}},it={key:1,style:{color:"var(--text-muted)"}},ct={key:0,style:{color:"var(--text-secondary)","font-size":"12px"}},dt={key:1,style:{color:"var(--text-muted)"}},pt={key:4,style:{color:"var(--text-secondary)","font-size":"11px"}},vt={style:{padding:"40px",color:"var(--text-muted)","text-align":"center"}},ft={__name:"Marketplace",setup(l){const s=Oe(),u=b(!1),I=b(!1),w=b(!1),z=b([]),J=b([]),R=b({total:0,counts:{success:0,failed:0,timeout:0,pending:0,running:0},successRate:0,avgDurationMs:0,scopedToService:null}),q=b("services"),T=b(""),U=b(""),B=b(null),V=b(!1),E=b(!1),c=ie({name:"",version:"",description:"",endpoint:"",owner:"",status:"published"}),i=ie({serviceId:"",caller:"",status:"success",durationMs:null,error:""}),K=b(""),de=[{title:"名称",key:"name"},{title:"状态",key:"status",width:"120px"},{title:"调用次数",key:"invocationCount",width:"110px"},{title:"所有者",key:"owner",width:"180px"},{title:"创建时间",key:"createdAt",width:"160px"},{title:"操作",key:"action",width:"180px"}],pe=[{title:"服务",key:"service"},{title:"调用方",key:"caller",width:"180px"},{title:"状态",key:"status",width:"100px"},{title:"耗时",key:"durationMs",width:"110px"},{title:"时间",key:"createdAt",width:"160px"}],ve=P(()=>z.value.filter(n=>n.status==="published").length),fe=P(()=>R.value.successRate*100),me=P(()=>{let n=z.value;if(T.value&&(n=n.filter(e=>e.status===T.value)),U.value){const e=U.value.toLowerCase();n=n.filter(f=>f.name.toLowerCase().includes(e))}return n}),_e=P(()=>B.value?J.value.filter(n=>n.serviceId===B.value):J.value);function M(n){return{draft:"草稿",published:"已发布",deprecated:"已弃用",suspended:"已暂停"}[n]||n}function ye(n){return{draft:"default",published:"green",deprecated:"orange",suspended:"red"}[n]||"default"}function Y(n){return{pending:"待处理",running:"运行中",success:"成功",failed:"失败",timeout:"超时"}[n]||n}function ge(n){return{pending:"default",running:"processing",success:"green",failed:"red",timeout:"orange"}[n]||"default"}function Z(n){return n?n.length>28?n.slice(0,16)+"..."+n.slice(-8):n:""}function be(n,e){return n?n.length>e?n.slice(0,e)+"...":n:""}function ke(n){const e=z.value.find(f=>f.id===n);return e?e.name:"(已删除)"}async function $(){u.value=!0;try{const[n,e,f]=await Promise.all([s.execute("marketplace list --limit 200 --json",1e4).catch(()=>({output:""})),s.execute("marketplace invocations --limit 200 --json",1e4).catch(()=>({output:""})),s.execute("marketplace stats --json",1e4).catch(()=>({output:""}))]);z.value=Ke(n.output),J.value=He(e.output),R.value=We(f.output)}catch(n){k.error("加载市场数据失败: "+(n?.message||n))}finally{u.value=!1}}async function xe(){const n=c.name.trim();if(!n){k.warning("请输入服务名称");return}I.value=!0;try{const e=[`marketplace publish "${n.replace(/"/g,'\\"')}"`];c.version.trim()&&e.push(`--version "${c.version.trim().replace(/"/g,'\\"')}"`),c.description.trim()&&e.push(`--description "${c.description.trim().replace(/"/g,'\\"')}"`),c.endpoint.trim()&&e.push(`--endpoint "${c.endpoint.trim().replace(/"/g,'\\"')}"`),c.owner.trim()&&e.push(`--owner "${c.owner.trim().replace(/"/g,'\\"')}"`),e.push(`--status ${c.status}`),e.push("--json");const{output:f}=await s.execute(e.join(" "),15e3);if(/error|failed|失败/i.test(f)&&!/"id"/.test(f)){k.error("发布失败: "+f.slice(0,120));return}k.success("服务已发布"),V.value=!1,ee(),await $()}catch(e){k.error("发布失败: "+(e?.message||e))}finally{I.value=!1}}function he(n){if(n.status!=="published"){k.warning('只能对"已发布"状态的服务记录调用');return}i.serviceId=n.id,i.caller="",i.status="success",i.durationMs=null,i.error="",K.value=n.name,E.value=!0}async function Se(){w.value=!0;try{const n=[`marketplace record ${i.serviceId}`];i.caller.trim()&&n.push(`--caller "${i.caller.trim().replace(/"/g,'\\"')}"`),n.push(`--status ${i.status}`),i.durationMs!=null&&n.push(`--duration-ms ${i.durationMs}`),(i.status==="failed"||i.status==="timeout")&&i.error.trim()&&n.push(`--error "${i.error.trim().replace(/"/g,'\\"')}"`),n.push("--json");const{output:e}=await s.execute(n.join(" "),15e3);if(/error|failed|失败/i.test(e)&&!/"id"/.test(e)){k.error("记录失败: "+e.slice(0,120));return}k.success("调用已记录"),E.value=!1,q.value="invocations",await $()}catch(n){k.error("记录失败: "+(n?.message||n))}finally{w.value=!1}}async function Ce(n,e){if(e!==n.status)try{const{output:f}=await s.execute(`marketplace status ${n.id} ${e} --json`,1e4);if(/error|invalid|失败/i.test(f)&&!/"status"/.test(f)){k.error("状态转换失败: "+f.slice(0,120));return}k.success(`服务状态已更新为 ${M(e)}`),await $()}catch(f){k.error("状态转换失败: "+(f?.message||f))}}function ee(){c.name="",c.version="",c.description="",c.endpoint="",c.owner="",c.status="published"}function we(){i.serviceId="",i.caller="",i.status="success",i.durationMs=null,i.error="",K.value=""}return Pe($),(n,e)=>{const f=p("a-button"),ze=p("a-space"),j=p("a-statistic"),O=p("a-card"),N=p("a-col"),Me=p("a-row"),te=p("a-radio-button"),Ae=p("a-radio-group"),Ie=p("a-input-search"),G=p("a-tag"),Re=p("a-menu-item"),Te=p("a-menu"),Ue=p("a-dropdown"),ae=p("a-table"),oe=p("a-tab-pane"),H=p("a-select-option"),W=p("a-select"),$e=p("a-tabs"),D=p("a-input"),S=p("a-form-item"),ne=p("a-textarea"),le=p("a-form"),se=p("a-modal"),je=p("a-input-number");return r(),v("div",null,[x("div",Qe,[e[19]||(e[19]=x("div",null,[x("h2",{class:"page-title"},"技能市场"),x("p",{class:"page-sub"},"发布技能服务 · 记录调用 · 查看统计")],-1)),a(ze,null,{default:o(()=>[a(f,{loading:u.value,onClick:$},{icon:o(()=>[a(y(Fe))]),default:o(()=>[e[17]||(e[17]=_(" 刷新 ",-1))]),_:1},8,["loading"]),a(f,{type:"primary",onClick:e[0]||(e[0]=t=>V.value=!0)},{icon:o(()=>[a(y(Le))]),default:o(()=>[e[18]||(e[18]=_(" 发布服务 ",-1))]),_:1})]),_:1})]),a(Me,{gutter:[16,16],style:{"margin-bottom":"20px"}},{default:o(()=>[a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"服务总数",value:z.value.length,"value-style":{color:"#1677ff",fontSize:"20px"}},{prefix:o(()=>[a(y(re))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"已发布",value:ve.value,"value-style":{color:"#52c41a",fontSize:"20px"}},{prefix:o(()=>[a(y(Be))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"调用总数",value:R.value.total,"value-style":{color:"#722ed1",fontSize:"20px"}},{prefix:o(()=>[a(y(ue))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"成功率",value:fe.value,suffix:"%",precision:1,"value-style":{color:R.value.successRate>=.9?"#52c41a":"#faad14",fontSize:"20px"}},{prefix:o(()=>[a(y(Ve))]),_:1},8,["value","value-style"])]),_:1})]),_:1}),a(N,{xs:24,sm:8,lg:4},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"平均耗时",value:R.value.avgDurationMs,suffix:"ms","value-style":{color:"#faad14",fontSize:"20px"}},{prefix:o(()=>[a(y(Ee))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),a($e,{activeKey:q.value,"onUpdate:activeKey":e[4]||(e[4]=t=>q.value=t),class:"market-tabs"},{default:o(()=>[a(oe,{key:"services",tab:"服务"},{default:o(()=>[x("div",Xe,[a(Ae,{value:T.value,"onUpdate:value":e[1]||(e[1]=t=>T.value=t),size:"small","button-style":"solid"},{default:o(()=>[a(te,{value:""},{default:o(()=>[...e[20]||(e[20]=[_("全部",-1)])]),_:1}),(r(!0),v(h,null,F(y(Q),t=>(r(),C(te,{key:t,value:t},{default:o(()=>[_(m(M(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(Ie,{value:U.value,"onUpdate:value":e[2]||(e[2]=t=>U.value=t),placeholder:"按名称搜索","allow-clear":"",style:{"max-width":"280px"}},null,8,["value"])]),a(ae,{columns:de,"data-source":me.value,pagination:{pageSize:20,showTotal:t=>`共 ${t} 条`},size:"small",loading:u.value,style:{background:"var(--bg-card)"}},{bodyCell:o(({column:t,record:d})=>[t.key==="name"?(r(),v(h,{key:0},[x("span",Ye,m(d.name),1),d.version?(r(),C(G,{key:0,color:"blue",style:{"margin-left":"6px","font-size":"10px"}},{default:o(()=>[_(" v"+m(d.version),1)]),_:2},1024)):g("",!0),d.description?(r(),v("div",Ze,m(be(d.description,80)),1)):g("",!0)],64)):g("",!0),t.key==="status"?(r(),C(G,{key:1,color:ye(d.status)},{default:o(()=>[_(m(M(d.status)),1)]),_:2},1032,["color"])):g("",!0),t.key==="invocationCount"?(r(),v("span",et,m(d.invocationCount),1)):g("",!0),t.key==="owner"?(r(),v(h,{key:3},[d.owner?(r(),v("span",tt,m(Z(d.owner)),1)):(r(),v("span",at,"—"))],64)):g("",!0),t.key==="createdAt"?(r(),v("span",ot,m(y(ce)(d.createdAt)),1)):g("",!0),t.key==="action"?(r(),v(h,{key:5},[a(f,{size:"small",type:"link",onClick:A=>he(d)},{default:o(()=>[...e[21]||(e[21]=[_("记录调用",-1)])]),_:1},8,["onClick"]),a(Ue,{trigger:["click"]},{overlay:o(()=>[a(Te,{onClick:A=>Ce(d,A.key)},{default:o(()=>[(r(!0),v(h,null,F(y(Q),A=>(r(),C(Re,{key:A,disabled:A===d.status},{default:o(()=>[_(m(M(A)),1)]),_:2},1032,["disabled"]))),128))]),_:2},1032,["onClick"])]),default:o(()=>[a(f,{size:"small",type:"link"},{default:o(()=>[...e[22]||(e[22]=[_("状态 ▼",-1)])]),_:1})]),_:2},1024)],64)):g("",!0)]),emptyText:o(()=>[x("div",nt,[a(y(re),{style:{"font-size":"36px","margin-bottom":"10px",display:"block"}}),_(" "+m(T.value||U.value?"没有符合条件的服务":'暂无服务,点击"发布服务"创建第一个'),1)])]),_:1},8,["data-source","pagination","loading"])]),_:1}),a(oe,{key:"invocations",tab:"调用记录"},{default:o(()=>[x("div",lt,[a(W,{value:B.value,"onUpdate:value":e[3]||(e[3]=t=>B.value=t),placeholder:"按服务过滤","allow-clear":"",style:{width:"280px"},size:"small"},{default:o(()=>[(r(!0),v(h,null,F(z.value,t=>(r(),C(H,{key:t.id,value:t.id},{default:o(()=>[_(m(t.name)+" ("+m(M(t.status))+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),a(ae,{columns:pe,"data-source":_e.value,pagination:{pageSize:20,showTotal:t=>`共 ${t} 条`},size:"small",loading:u.value,style:{background:"var(--bg-card)"}},{bodyCell:o(({column:t,record:d})=>[t.key==="service"?(r(),v(h,{key:0},[x("span",st,m(ke(d.serviceId)),1),x("div",rt,m(d.serviceId.slice(0,8)),1)],64)):g("",!0),t.key==="caller"?(r(),v(h,{key:1},[d.callerId?(r(),v("span",ut,m(Z(d.callerId)),1)):(r(),v("span",it,"—"))],64)):g("",!0),t.key==="status"?(r(),C(G,{key:2,color:ge(d.status)},{default:o(()=>[_(m(Y(d.status)),1)]),_:2},1032,["color"])):g("",!0),t.key==="durationMs"?(r(),v(h,{key:3},[d.durationMs!=null?(r(),v("span",ct,m(d.durationMs)+" ms ",1)):(r(),v("span",dt,"—"))],64)):g("",!0),t.key==="createdAt"?(r(),v("span",pt,m(y(ce)(d.createdAt)),1)):g("",!0)]),emptyText:o(()=>[x("div",vt,[a(y(ue),{style:{"font-size":"36px","margin-bottom":"10px",display:"block"}}),e[23]||(e[23]=_(' 暂无调用记录。在"服务"标签页对已发布服务点"记录调用"。 ',-1))])]),_:1},8,["data-source","pagination","loading"])]),_:1})]),_:1},8,["activeKey"]),a(se,{open:V.value,"onUpdate:open":e[11]||(e[11]=t=>V.value=t),title:"发布技能服务","confirm-loading":I.value,width:560,"ok-text":"发布","cancel-text":"取消",onOk:xe,onCancel:ee},{default:o(()=>[a(le,{"label-col":{span:5},"wrapper-col":{span:19},style:{"margin-top":"16px"}},{default:o(()=>[a(S,{label:"服务名称",required:""},{default:o(()=>[a(D,{value:c.name,"onUpdate:value":e[5]||(e[5]=t=>c.name=t),placeholder:"例如:text-summarizer"},null,8,["value"])]),_:1}),a(S,{label:"版本"},{default:o(()=>[a(D,{value:c.version,"onUpdate:value":e[6]||(e[6]=t=>c.version=t),placeholder:"1.0.0(默认)"},null,8,["value"])]),_:1}),a(S,{label:"描述"},{default:o(()=>[a(ne,{value:c.description,"onUpdate:value":e[7]||(e[7]=t=>c.description=t),"auto-size":{minRows:2,maxRows:5}},null,8,["value"])]),_:1}),a(S,{label:"调用端点"},{default:o(()=>[a(D,{value:c.endpoint,"onUpdate:value":e[8]||(e[8]=t=>c.endpoint=t),placeholder:"https://...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"所有者"},{default:o(()=>[a(D,{value:c.owner,"onUpdate:value":e[9]||(e[9]=t=>c.owner=t),placeholder:"did:key:...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"初始状态"},{default:o(()=>[a(W,{value:c.status,"onUpdate:value":e[10]||(e[10]=t=>c.status=t)},{default:o(()=>[(r(!0),v(h,null,F(y(Q),t=>(r(),C(H,{key:t,value:t},{default:o(()=>[_(m(M(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["open","confirm-loading"]),a(se,{open:E.value,"onUpdate:open":e[16]||(e[16]=t=>E.value=t),title:`记录调用:${K.value}`,"confirm-loading":w.value,width:520,"ok-text":"记录","cancel-text":"取消",onOk:Se,onCancel:we},{default:o(()=>[a(le,{"label-col":{span:5},"wrapper-col":{span:19},style:{"margin-top":"16px"}},{default:o(()=>[a(S,{label:"调用方"},{default:o(()=>[a(D,{value:i.caller,"onUpdate:value":e[12]||(e[12]=t=>i.caller=t),placeholder:"did:key:...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"状态"},{default:o(()=>[a(W,{value:i.status,"onUpdate:value":e[13]||(e[13]=t=>i.status=t)},{default:o(()=>[(r(!0),v(h,null,F(y(Je),t=>(r(),C(H,{key:t,value:t},{default:o(()=>[_(m(Y(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),a(S,{label:"耗时 (ms)"},{default:o(()=>[a(je,{value:i.durationMs,"onUpdate:value":e[14]||(e[14]=t=>i.durationMs=t),min:0,max:36e5,style:{width:"100%"}},null,8,["value"])]),_:1}),i.status==="failed"||i.status==="timeout"?(r(),C(S,{key:0,label:"错误信息"},{default:o(()=>[a(ne,{value:i.error,"onUpdate:value":e[15]||(e[15]=t=>i.error=t),"auto-size":{minRows:2,maxRows:4}},null,8,["value"])]),_:1})):g("",!0)]),_:1})]),_:1},8,["open","title","confirm-loading"])])}}},Mt=De(ft,[["__scopeId","data-v-77488449"]]);export{Mt as default};
|
|
1
|
+
import{u as Oe}from"./ws-Bv7YH0VB.js";import{s as Ne}from"./community-parser-CO25nZFt.js";import{_ as De}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as k}from"./index-CzGZa5Ow.js";import{z as Fe,m as Le,b as re,a4 as Be,k as ue,ar as Ve,i as Ee}from"./icons-srBCpwXl.js";import{l as Pe,F as v,D as x,c as a,x as o,q as p,r as b,v as r,J as _,u as y,H as h,L as F,m as C,I as m,G as g,j as P,a as ie}from"./vendor-BVetwVfk.js";import"./index-DlSUq1W3.js";import"./useConfigInject-DqhngD-R.js";import"./transition-D2wU6PAY.js";import"./Keyframes-C7fCrnlS.js";import"./Portal-CHsntPCQ.js";import"./index-U4Zd5IK6.js";function X(l){const s=Ne(l);if(!s)return null;try{return JSON.parse(s)}catch{}const u=s.match(/\{[\s\S]*\}|\[[\s\S]*\]/);if(!u)return null;try{return JSON.parse(u[0])}catch{return null}}const Q=Object.freeze(["draft","published","deprecated","suspended"]),Je=Object.freeze(["pending","running","success","failed","timeout"]);function L(l,s=0){return typeof l=="number"&&Number.isFinite(l)?l:s}function Ke(l,s=0){if(!l||typeof l!="object")return null;const u=l.id||"";return u?{key:u,id:u,name:String(l.name||""),version:String(l.version||""),description:String(l.description||""),endpoint:l.endpoint||"",pricing:l.pricing??null,status:String(l.status||"draft").toLowerCase(),owner:l.owner||"",invocationCount:L(l.invocationCount??l.invocation_count,0),createdAt:l.createdAt??l.created_at??null,updatedAt:l.updatedAt??l.updated_at??null,_idx:s}:null}function qe(l){const s=X(l);return Array.isArray(s)?s.map(Ke).filter(Boolean):[]}function Ge(l,s=0){if(!l||typeof l!="object")return null;const u=l.id||"";return u?{key:u,id:u,serviceId:l.serviceId||l.service_id||"",callerId:l.callerId||l.caller_id||"",input:l.input??null,output:l.output??null,status:String(l.status||"success").toLowerCase(),durationMs:l.durationMs??l.duration_ms??null,error:l.error||"",createdAt:l.createdAt??l.created_at??null,_idx:s}:null}function He(l){const s=X(l);return Array.isArray(s)?s.map(Ge).filter(Boolean):[]}function We(l){const s={total:0,counts:{success:0,failed:0,timeout:0,pending:0,running:0},successRate:0,avgDurationMs:0,scopedToService:null},u=X(l);if(!u||typeof u!="object"||Array.isArray(u))return s;s.total=L(u.total,0),s.successRate=L(u.successRate??u.success_rate,0),s.avgDurationMs=L(u.avgDurationMs??u.avg_duration_ms,0),s.scopedToService=u.scopedToService??u.scoped_to_service??null;const I=u.counts&&typeof u.counts=="object"?u.counts:{};for(const w of Object.keys(s.counts))s.counts[w]=L(I[w],0);return s}function ce(l){if(l==null||l==="")return"—";const s=typeof l=="number"?new Date(l):new Date(String(l));return isNaN(s.getTime())?String(l):s.toLocaleString("zh-CN",{hour12:!1})}const Qe={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},Xe={class:"filter-bar"},Ye={style:{color:"var(--text-primary)","font-weight":"500"}},Ze={key:1,style:{color:"var(--text-secondary)","font-size":"11px","margin-top":"2px"}},et={key:2,style:{color:"#722ed1","font-weight":"500"}},tt={key:0,style:{color:"var(--text-secondary)","font-family":"monospace","font-size":"11px"}},at={key:1,style:{color:"var(--text-muted)"}},ot={key:4,style:{color:"var(--text-secondary)","font-size":"11px"}},nt={style:{padding:"40px",color:"var(--text-muted)","text-align":"center"}},lt={class:"filter-bar"},st={style:{color:"var(--text-primary)"}},rt={style:{color:"var(--text-muted)","font-size":"11px","font-family":"monospace"}},ut={key:0,style:{color:"var(--text-secondary)","font-family":"monospace","font-size":"11px"}},it={key:1,style:{color:"var(--text-muted)"}},ct={key:0,style:{color:"var(--text-secondary)","font-size":"12px"}},dt={key:1,style:{color:"var(--text-muted)"}},pt={key:4,style:{color:"var(--text-secondary)","font-size":"11px"}},vt={style:{padding:"40px",color:"var(--text-muted)","text-align":"center"}},ft={__name:"Marketplace",setup(l){const s=Oe(),u=b(!1),I=b(!1),w=b(!1),z=b([]),J=b([]),R=b({total:0,counts:{success:0,failed:0,timeout:0,pending:0,running:0},successRate:0,avgDurationMs:0,scopedToService:null}),K=b("services"),T=b(""),U=b(""),B=b(null),V=b(!1),E=b(!1),c=ie({name:"",version:"",description:"",endpoint:"",owner:"",status:"published"}),i=ie({serviceId:"",caller:"",status:"success",durationMs:null,error:""}),q=b(""),de=[{title:"名称",key:"name"},{title:"状态",key:"status",width:"120px"},{title:"调用次数",key:"invocationCount",width:"110px"},{title:"所有者",key:"owner",width:"180px"},{title:"创建时间",key:"createdAt",width:"160px"},{title:"操作",key:"action",width:"180px"}],pe=[{title:"服务",key:"service"},{title:"调用方",key:"caller",width:"180px"},{title:"状态",key:"status",width:"100px"},{title:"耗时",key:"durationMs",width:"110px"},{title:"时间",key:"createdAt",width:"160px"}],ve=P(()=>z.value.filter(n=>n.status==="published").length),fe=P(()=>R.value.successRate*100),me=P(()=>{let n=z.value;if(T.value&&(n=n.filter(e=>e.status===T.value)),U.value){const e=U.value.toLowerCase();n=n.filter(f=>f.name.toLowerCase().includes(e))}return n}),_e=P(()=>B.value?J.value.filter(n=>n.serviceId===B.value):J.value);function M(n){return{draft:"草稿",published:"已发布",deprecated:"已弃用",suspended:"已暂停"}[n]||n}function ye(n){return{draft:"default",published:"green",deprecated:"orange",suspended:"red"}[n]||"default"}function Y(n){return{pending:"待处理",running:"运行中",success:"成功",failed:"失败",timeout:"超时"}[n]||n}function ge(n){return{pending:"default",running:"processing",success:"green",failed:"red",timeout:"orange"}[n]||"default"}function Z(n){return n?n.length>28?n.slice(0,16)+"..."+n.slice(-8):n:""}function be(n,e){return n?n.length>e?n.slice(0,e)+"...":n:""}function ke(n){const e=z.value.find(f=>f.id===n);return e?e.name:"(已删除)"}async function $(){u.value=!0;try{const[n,e,f]=await Promise.all([s.execute("marketplace list --limit 200 --json",1e4).catch(()=>({output:""})),s.execute("marketplace invocations --limit 200 --json",1e4).catch(()=>({output:""})),s.execute("marketplace stats --json",1e4).catch(()=>({output:""}))]);z.value=qe(n.output),J.value=He(e.output),R.value=We(f.output)}catch(n){k.error("加载市场数据失败: "+(n?.message||n))}finally{u.value=!1}}async function xe(){const n=c.name.trim();if(!n){k.warning("请输入服务名称");return}I.value=!0;try{const e=[`marketplace publish "${n.replace(/"/g,'\\"')}"`];c.version.trim()&&e.push(`--version "${c.version.trim().replace(/"/g,'\\"')}"`),c.description.trim()&&e.push(`--description "${c.description.trim().replace(/"/g,'\\"')}"`),c.endpoint.trim()&&e.push(`--endpoint "${c.endpoint.trim().replace(/"/g,'\\"')}"`),c.owner.trim()&&e.push(`--owner "${c.owner.trim().replace(/"/g,'\\"')}"`),e.push(`--status ${c.status}`),e.push("--json");const{output:f}=await s.execute(e.join(" "),15e3);if(/error|failed|失败/i.test(f)&&!/"id"/.test(f)){k.error("发布失败: "+f.slice(0,120));return}k.success("服务已发布"),V.value=!1,ee(),await $()}catch(e){k.error("发布失败: "+(e?.message||e))}finally{I.value=!1}}function he(n){if(n.status!=="published"){k.warning('只能对"已发布"状态的服务记录调用');return}i.serviceId=n.id,i.caller="",i.status="success",i.durationMs=null,i.error="",q.value=n.name,E.value=!0}async function Se(){w.value=!0;try{const n=[`marketplace record ${i.serviceId}`];i.caller.trim()&&n.push(`--caller "${i.caller.trim().replace(/"/g,'\\"')}"`),n.push(`--status ${i.status}`),i.durationMs!=null&&n.push(`--duration-ms ${i.durationMs}`),(i.status==="failed"||i.status==="timeout")&&i.error.trim()&&n.push(`--error "${i.error.trim().replace(/"/g,'\\"')}"`),n.push("--json");const{output:e}=await s.execute(n.join(" "),15e3);if(/error|failed|失败/i.test(e)&&!/"id"/.test(e)){k.error("记录失败: "+e.slice(0,120));return}k.success("调用已记录"),E.value=!1,K.value="invocations",await $()}catch(n){k.error("记录失败: "+(n?.message||n))}finally{w.value=!1}}async function Ce(n,e){if(e!==n.status)try{const{output:f}=await s.execute(`marketplace status ${n.id} ${e} --json`,1e4);if(/error|invalid|失败/i.test(f)&&!/"status"/.test(f)){k.error("状态转换失败: "+f.slice(0,120));return}k.success(`服务状态已更新为 ${M(e)}`),await $()}catch(f){k.error("状态转换失败: "+(f?.message||f))}}function ee(){c.name="",c.version="",c.description="",c.endpoint="",c.owner="",c.status="published"}function we(){i.serviceId="",i.caller="",i.status="success",i.durationMs=null,i.error="",q.value=""}return Pe($),(n,e)=>{const f=p("a-button"),ze=p("a-space"),j=p("a-statistic"),O=p("a-card"),N=p("a-col"),Me=p("a-row"),te=p("a-radio-button"),Ae=p("a-radio-group"),Ie=p("a-input-search"),G=p("a-tag"),Re=p("a-menu-item"),Te=p("a-menu"),Ue=p("a-dropdown"),ae=p("a-table"),oe=p("a-tab-pane"),H=p("a-select-option"),W=p("a-select"),$e=p("a-tabs"),D=p("a-input"),S=p("a-form-item"),ne=p("a-textarea"),le=p("a-form"),se=p("a-modal"),je=p("a-input-number");return r(),v("div",null,[x("div",Qe,[e[19]||(e[19]=x("div",null,[x("h2",{class:"page-title"},"技能市场"),x("p",{class:"page-sub"},"发布技能服务 · 记录调用 · 查看统计")],-1)),a(ze,null,{default:o(()=>[a(f,{loading:u.value,onClick:$},{icon:o(()=>[a(y(Fe))]),default:o(()=>[e[17]||(e[17]=_(" 刷新 ",-1))]),_:1},8,["loading"]),a(f,{type:"primary",onClick:e[0]||(e[0]=t=>V.value=!0)},{icon:o(()=>[a(y(Le))]),default:o(()=>[e[18]||(e[18]=_(" 发布服务 ",-1))]),_:1})]),_:1})]),a(Me,{gutter:[16,16],style:{"margin-bottom":"20px"}},{default:o(()=>[a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"服务总数",value:z.value.length,"value-style":{color:"#1677ff",fontSize:"20px"}},{prefix:o(()=>[a(y(re))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"已发布",value:ve.value,"value-style":{color:"#52c41a",fontSize:"20px"}},{prefix:o(()=>[a(y(Be))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"调用总数",value:R.value.total,"value-style":{color:"#722ed1",fontSize:"20px"}},{prefix:o(()=>[a(y(ue))]),_:1},8,["value"])]),_:1})]),_:1}),a(N,{xs:12,sm:8,lg:5},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"成功率",value:fe.value,suffix:"%",precision:1,"value-style":{color:R.value.successRate>=.9?"#52c41a":"#faad14",fontSize:"20px"}},{prefix:o(()=>[a(y(Ve))]),_:1},8,["value","value-style"])]),_:1})]),_:1}),a(N,{xs:24,sm:8,lg:4},{default:o(()=>[a(O,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:o(()=>[a(j,{title:"平均耗时",value:R.value.avgDurationMs,suffix:"ms","value-style":{color:"#faad14",fontSize:"20px"}},{prefix:o(()=>[a(y(Ee))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),a($e,{activeKey:K.value,"onUpdate:activeKey":e[4]||(e[4]=t=>K.value=t),class:"market-tabs"},{default:o(()=>[a(oe,{key:"services",tab:"服务"},{default:o(()=>[x("div",Xe,[a(Ae,{value:T.value,"onUpdate:value":e[1]||(e[1]=t=>T.value=t),size:"small","button-style":"solid"},{default:o(()=>[a(te,{value:""},{default:o(()=>[...e[20]||(e[20]=[_("全部",-1)])]),_:1}),(r(!0),v(h,null,F(y(Q),t=>(r(),C(te,{key:t,value:t},{default:o(()=>[_(m(M(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(Ie,{value:U.value,"onUpdate:value":e[2]||(e[2]=t=>U.value=t),placeholder:"按名称搜索","allow-clear":"",style:{"max-width":"280px"}},null,8,["value"])]),a(ae,{columns:de,"data-source":me.value,pagination:{pageSize:20,showTotal:t=>`共 ${t} 条`},size:"small",loading:u.value,style:{background:"var(--bg-card)"}},{bodyCell:o(({column:t,record:d})=>[t.key==="name"?(r(),v(h,{key:0},[x("span",Ye,m(d.name),1),d.version?(r(),C(G,{key:0,color:"blue",style:{"margin-left":"6px","font-size":"10px"}},{default:o(()=>[_(" v"+m(d.version),1)]),_:2},1024)):g("",!0),d.description?(r(),v("div",Ze,m(be(d.description,80)),1)):g("",!0)],64)):g("",!0),t.key==="status"?(r(),C(G,{key:1,color:ye(d.status)},{default:o(()=>[_(m(M(d.status)),1)]),_:2},1032,["color"])):g("",!0),t.key==="invocationCount"?(r(),v("span",et,m(d.invocationCount),1)):g("",!0),t.key==="owner"?(r(),v(h,{key:3},[d.owner?(r(),v("span",tt,m(Z(d.owner)),1)):(r(),v("span",at,"—"))],64)):g("",!0),t.key==="createdAt"?(r(),v("span",ot,m(y(ce)(d.createdAt)),1)):g("",!0),t.key==="action"?(r(),v(h,{key:5},[a(f,{size:"small",type:"link",onClick:A=>he(d)},{default:o(()=>[...e[21]||(e[21]=[_("记录调用",-1)])]),_:1},8,["onClick"]),a(Ue,{trigger:["click"]},{overlay:o(()=>[a(Te,{onClick:A=>Ce(d,A.key)},{default:o(()=>[(r(!0),v(h,null,F(y(Q),A=>(r(),C(Re,{key:A,disabled:A===d.status},{default:o(()=>[_(m(M(A)),1)]),_:2},1032,["disabled"]))),128))]),_:2},1032,["onClick"])]),default:o(()=>[a(f,{size:"small",type:"link"},{default:o(()=>[...e[22]||(e[22]=[_("状态 ▼",-1)])]),_:1})]),_:2},1024)],64)):g("",!0)]),emptyText:o(()=>[x("div",nt,[a(y(re),{style:{"font-size":"36px","margin-bottom":"10px",display:"block"}}),_(" "+m(T.value||U.value?"没有符合条件的服务":'暂无服务,点击"发布服务"创建第一个'),1)])]),_:1},8,["data-source","pagination","loading"])]),_:1}),a(oe,{key:"invocations",tab:"调用记录"},{default:o(()=>[x("div",lt,[a(W,{value:B.value,"onUpdate:value":e[3]||(e[3]=t=>B.value=t),placeholder:"按服务过滤","allow-clear":"",style:{width:"280px"},size:"small"},{default:o(()=>[(r(!0),v(h,null,F(z.value,t=>(r(),C(H,{key:t.id,value:t.id},{default:o(()=>[_(m(t.name)+" ("+m(M(t.status))+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),a(ae,{columns:pe,"data-source":_e.value,pagination:{pageSize:20,showTotal:t=>`共 ${t} 条`},size:"small",loading:u.value,style:{background:"var(--bg-card)"}},{bodyCell:o(({column:t,record:d})=>[t.key==="service"?(r(),v(h,{key:0},[x("span",st,m(ke(d.serviceId)),1),x("div",rt,m(d.serviceId.slice(0,8)),1)],64)):g("",!0),t.key==="caller"?(r(),v(h,{key:1},[d.callerId?(r(),v("span",ut,m(Z(d.callerId)),1)):(r(),v("span",it,"—"))],64)):g("",!0),t.key==="status"?(r(),C(G,{key:2,color:ge(d.status)},{default:o(()=>[_(m(Y(d.status)),1)]),_:2},1032,["color"])):g("",!0),t.key==="durationMs"?(r(),v(h,{key:3},[d.durationMs!=null?(r(),v("span",ct,m(d.durationMs)+" ms ",1)):(r(),v("span",dt,"—"))],64)):g("",!0),t.key==="createdAt"?(r(),v("span",pt,m(y(ce)(d.createdAt)),1)):g("",!0)]),emptyText:o(()=>[x("div",vt,[a(y(ue),{style:{"font-size":"36px","margin-bottom":"10px",display:"block"}}),e[23]||(e[23]=_(' 暂无调用记录。在"服务"标签页对已发布服务点"记录调用"。 ',-1))])]),_:1},8,["data-source","pagination","loading"])]),_:1})]),_:1},8,["activeKey"]),a(se,{open:V.value,"onUpdate:open":e[11]||(e[11]=t=>V.value=t),title:"发布技能服务","confirm-loading":I.value,width:560,"ok-text":"发布","cancel-text":"取消",onOk:xe,onCancel:ee},{default:o(()=>[a(le,{"label-col":{span:5},"wrapper-col":{span:19},style:{"margin-top":"16px"}},{default:o(()=>[a(S,{label:"服务名称",required:""},{default:o(()=>[a(D,{value:c.name,"onUpdate:value":e[5]||(e[5]=t=>c.name=t),placeholder:"例如:text-summarizer"},null,8,["value"])]),_:1}),a(S,{label:"版本"},{default:o(()=>[a(D,{value:c.version,"onUpdate:value":e[6]||(e[6]=t=>c.version=t),placeholder:"1.0.0(默认)"},null,8,["value"])]),_:1}),a(S,{label:"描述"},{default:o(()=>[a(ne,{value:c.description,"onUpdate:value":e[7]||(e[7]=t=>c.description=t),"auto-size":{minRows:2,maxRows:5}},null,8,["value"])]),_:1}),a(S,{label:"调用端点"},{default:o(()=>[a(D,{value:c.endpoint,"onUpdate:value":e[8]||(e[8]=t=>c.endpoint=t),placeholder:"https://...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"所有者"},{default:o(()=>[a(D,{value:c.owner,"onUpdate:value":e[9]||(e[9]=t=>c.owner=t),placeholder:"did:key:...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"初始状态"},{default:o(()=>[a(W,{value:c.status,"onUpdate:value":e[10]||(e[10]=t=>c.status=t)},{default:o(()=>[(r(!0),v(h,null,F(y(Q),t=>(r(),C(H,{key:t,value:t},{default:o(()=>[_(m(M(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["open","confirm-loading"]),a(se,{open:E.value,"onUpdate:open":e[16]||(e[16]=t=>E.value=t),title:`记录调用:${q.value}`,"confirm-loading":w.value,width:520,"ok-text":"记录","cancel-text":"取消",onOk:Se,onCancel:we},{default:o(()=>[a(le,{"label-col":{span:5},"wrapper-col":{span:19},style:{"margin-top":"16px"}},{default:o(()=>[a(S,{label:"调用方"},{default:o(()=>[a(D,{value:i.caller,"onUpdate:value":e[12]||(e[12]=t=>i.caller=t),placeholder:"did:key:...(可选)"},null,8,["value"])]),_:1}),a(S,{label:"状态"},{default:o(()=>[a(W,{value:i.status,"onUpdate:value":e[13]||(e[13]=t=>i.status=t)},{default:o(()=>[(r(!0),v(h,null,F(y(Je),t=>(r(),C(H,{key:t,value:t},{default:o(()=>[_(m(Y(t)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),a(S,{label:"耗时 (ms)"},{default:o(()=>[a(je,{value:i.durationMs,"onUpdate:value":e[14]||(e[14]=t=>i.durationMs=t),min:0,max:36e5,style:{width:"100%"}},null,8,["value"])]),_:1}),i.status==="failed"||i.status==="timeout"?(r(),C(S,{key:0,label:"错误信息"},{default:o(()=>[a(ne,{value:i.error,"onUpdate:value":e[15]||(e[15]=t=>i.error=t),"auto-size":{minRows:2,maxRows:4}},null,8,["value"])]),_:1})):g("",!0)]),_:1})]),_:1},8,["open","title","confirm-loading"])])}}},Mt=De(ft,[["__scopeId","data-v-77488449"]]);export{Mt as default};
|