bi-sdk-react 0.0.63 → 0.0.64
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/dist/es/js/bi-sdk.es.js +117 -43
- package/dist/types/components/typing.d.ts +1 -0
- package/dist/umd/js/bi-sdk.umd.min.js +115 -41
- package/package.json +1 -1
- package/src/components/PageDesigner.tsx +197 -3
- package/src/components/layout/PageItem.tsx +71 -2
- package/src/components/panel/LayerPanel.tsx +3 -0
- package/src/components/panel/PropertiesPanel.tsx +20 -0
- package/src/components/plugins/@antd/items/HtmlRender.tsx +1 -1
- package/src/components/typing.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see bi-sdk.umd.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):"function"==typeof define&&define.amd?define(["@ant-design/icons","echarts","react","uuid","dayjs","styled-components","antd","react-dom","@monaco-editor/react"],t):"object"==typeof exports?exports.BiSdk=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):e.BiSdk=t(e["@ant-design/icons"],e.echarts,e.react,e.uuid,e.dayjs,e["styled-components"],e.antd,e["react-dom"],e["@monaco-editor/react"])}(this,(e,t,n,i,r,a,o,s,l)=>(()=>{var u={327(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var r=n(577);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,n){var o=t.map(function(t){var o=null==n?t:i(i({},t),{options:i(i({},a(n)),a(t.options))});return(0,r.bind)(e,o)});return function(){o.forEach(function(e){return e()})}}},577(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var n=t.type,i=t.listener,r=t.options;return e.addEventListener(n,i,r),function(){e.removeEventListener(n,i,r)}}},592(e,t,n){"use strict";t.bindAll=t.bind=void 0;var i=n(577);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return i.bind}});var r=n(327);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return r.bindAll}})},585(e,t,n){"use strict";var i=n(687),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,u,c,d,h=!1;t||(t={}),o=t.debug||!1;try{if(l=i(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(i){o&&console.error("unable to copy using execCommand: ",i),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(i){o&&console.error("unable to copy using clipboardData: ",i),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},921(e,t,n){"use strict";var i=n(155),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var i,a={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,i)&&!l.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:r,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},723(e,t,n){"use strict";e.exports=n(921)},687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=r},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=i}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return u[e].call(n.exports,n,n.exports,d),n.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return(()=>{"use strict";d.r(h),d.d(h,{PluginType:()=>eu.PluginType,PageCanvas:()=>t_,PageContext:()=>ev,PageDesigner:()=>na,PageSchema:()=>eu.PageSchema,useDatasource:()=>nd,plugins:()=>mf,useEvent:()=>nb,PropEditorProps:()=>ec.PropEditorProps,PageProvider:()=>ey,DropContainer:()=>tv});var e,t,n,i,r,a,o,s,l,u,c,p,f,m,g,v,y,x,_,b,w,S,C,j,T,k,I,M,D,O,z,A,R,P,N,F,L,E,B,H,V,W,G,Y,U,q,$,X,K,Z,J,Q,ee,et,en,ei,er,ea,eo,es,el,eu={};d.r(eu),d.d(eu,{P:()=>no});var ec={};d.r(ec);var ed=d(723),eh=d(155),ep=d.n(eh),ef=d(694),em=d.n(ef);let eg=e=>{var t;let{datasetId:n,var:i,dependencies:r}=e,{schema:a,getGlobalEnv:o,fetch:s,env:l,updateGlobalVar:u}=(0,eh.useContext)(ev),c=null==a||null==(t=a.datasets)?void 0:t.find(e=>e.id===n);if(!c||!(null==s?void 0:s.dataset))return(0,ed.jsx)(ed.Fragment,{});let d=(0,eh.useMemo)(()=>r.reduce((e,t)=>[...e,l.global[t]],[]),[r,l.global]),h=async()=>{var e;let t=r.reduce((e,t)=>{let n=o(t);return{...e,[t]:n}},{}),{code:a,data:l}=await (null==s||null==(e=s.dataset)?void 0:e.call(s,n,t,c.aiPrompt));"OK"===a&&u(i,l)};return(0,eh.useEffect)(()=>{h()},[n,s,...d]),(0,ed.jsx)(ed.Fragment,{})},ev=(0,eh.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},env:{global:{},local:{}},getGlobalEnv:()=>void 0,setGlobalEnv:()=>{},setItemData:()=>{},globalVars:{},updateGlobalVar:()=>{}}),ey=e=>{var t;let{pageId:n,designable:i,plugins:r,schema:a,selectedItem:o,setSchema:s,setSelectedItem:l,datasetSelector:u,datasetAdd:c,fetch:d,children:h,setItemData:p}=e,[f,m]=(0,eh.useState)(0),[g,v]=(0,eh.useState)({}),[y,x]=(0,eh.useState)([]),[_,b]=(0,eh.useState)({global:{},local:{}}),[w,S]=(0,eh.useState)({}),[C,j]=(0,eh.useState)({}),T=e=>({..._.global,..._.local[e||""]||{}});return(0,eh.useEffect)(()=>{let e={};(a.variables||[]).forEach(t=>{e[t.name]=t.value}),b(t=>({...t,global:e}))},[a.variables]),(0,ed.jsxs)(ev.Provider,{value:{pageId:n,designable:!!i,plugins:r||[],schema:a,selectedItem:o,atItems:y,setSchema:s||(()=>{}),setSelectedItem:l||(()=>{}),updateSelectedItem:e=>{null==l||l(Object.assign(o,e||{})),null==s||s({...a})},datasetSelector:u,datasetAdd:c,fetch:d,forceUpdate:()=>{null==s||s({...a})},onAddAtItem:e=>{null!=y&&y.includes(e)||x([...y,e])},onRemoveAtItem:e=>{x(y.filter(t=>t!==e))},clearAtItems:()=>{x([])},deviceWidth:f,setDeviceWidth:m||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;S(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let i=w[e];if("function"==typeof i){let r=i(t,T(e));if(r){let{target:e,data:t}=r;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;j(e=>({...e,[t]:n}))},handleMethod:(e,t,n,i)=>{let r=C[t][n];return"function"==typeof r?r({sourceId:e.id,arg:i}):null},getVars:T,setVar:(e,t,n)=>{let i={..._};(e.cascadeIds||[]).forEach(e=>{i.local[e]=i.local[e]||{},i.local[e][t]=n})},env:_,getGlobalEnv:e=>_.global[e],setGlobalEnv:(e,t)=>{b(n=>({...n,global:{...n.global,[e]:t}}))},setItemData:p,globalVars:g,updateGlobalVar:(e,t)=>{v(n=>({...n,[e]:t}))}},children:[h,null==(t=a.datasets)?void 0:t.map((e,t)=>(0,ed.jsx)(eg,{datasetId:e.id,var:e.key,dependencies:e.dependencies||[]},t))]})};function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e_(e,t){if(e){if("string"==typeof e)return ex(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ex(e,t):void 0}}function eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}(e,t)||e_(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ew=d(592),eS="data-pdnd-honey-pot";function eC(e){return e instanceof Element&&e.hasAttribute(eS)}function ej(e){var t=eb(document.elementsFromPoint(e.x,e.y),2),n=t[0],i=t[1];return n?eC(n)?null!=i?i:null:n:null}function eT(e){return(eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ek(e,t,n){var i;return(i=function(e,t){if("object"!=eT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=eT(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eT(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eD(e){var t,n,i,r,a={x:Math.min((r={x:Math.max((i={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(i.y,0)}).x,window.innerWidth-2),y:Math.min(r.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eO(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function ez(e){return function(e){if(Array.isArray(e))return ex(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||e_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(e){var t=null;return function(){if(!t){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];t={result:e.apply(this,i)}}return t.result}}var eR=eA(function(){return navigator.userAgent.includes("Firefox")}),eP=eA(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eN={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if(!("u"<typeof window)&&eP()){var eF=eL();(0,ew.bindAll)(window,[{type:"dragstart",listener:function(){eF.enterCount=0,eF.isOverWindow=!0}},{type:"drop",listener:eE},{type:"dragend",listener:eE},{type:"dragenter",listener:function(e){eF.isOverWindow||0!==eF.enterCount||(e[eN.isEnteringWindow]=!0),eF.isOverWindow=!0,eF.enterCount++}},{type:"dragleave",listener:function(e){eF.enterCount--,eF.isOverWindow&&0===eF.enterCount&&(e[eN.isLeavingWindow]=!0,eF.isOverWindow=!1)}}],{capture:!0})}function eL(){return{enterCount:0,isOverWindow:!1}}function eE(){eF=eL()}function eB(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eH=(l=function(e){return e()},u=[],c=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u=t,c||(c=requestAnimationFrame(function(){c=null,l.apply(void 0,u)}))}).cancel=function(){c&&(cancelAnimationFrame(c),c=null)},p),eV=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eW={isActive:!1};function eG(){return!eW.isActive}function eY(e){var t,n=e.event,i=null==(t=e.current[0])?void 0:t.dropEffect;null!=i&&n.dataTransfer&&(n.dataTransfer.dropEffect=i)}var eU=function(e){var t=e.event,n=e.dragType,i=e.getDropTargetsOver,r=e.dispatchEvent;if(eG()){var a,o,s=function(e){var t=e.event,n=e.dragType,i=e.getDropTargetsOver,r=eB(t);if("external"===n.startedFrom)return{input:r,dropTargets:[]};var a=i({input:r,source:n.payload,target:t.target,current:[]});return{input:r,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:i});eW.isActive=!0;var l={current:s};eY({event:t,current:s.dropTargets});var u=function(e){var t=e.source,n=e.initial,i=e.dispatchEvent,r={dropTargets:[]};function a(e){i(e),r={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var i=e.nativeSetDragImage,o={current:n,previous:r,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:i}}),eV.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var i=e.current;eV.flush(),eH.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:r,current:i}}})},drag:function(e){var i=e.current;eH(function(){eV.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:r,current:i}}})})},drop:function(e){var i=e.current,o=e.updatedSourcePayload;eV.flush(),eH.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:i,previous:r,initial:n}}})}}}({source:n.payload,dispatchEvent:r,initial:s}),c=(0,ew.bindAll)(window,[{type:"dragover",listener:function(e){h(e),u.drag({current:l.current})}},{type:"dragenter",listener:h},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,i=t.relatedTarget;return"dragleave"===n&&(eP()?!!eP()&&t.hasOwnProperty(eN.isLeavingWindow):null==i||(eR()?"nodeName"in i&&i.ownerDocument!==document:i instanceof HTMLIFrameElement))})({dragLeave:e})&&(d({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eB(e)},l.current.dropTargets.length)?(e.preventDefault(),eY({event:e,current:l.current.dropTargets}),u.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eB(e)},p()}}].concat(ez([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});u.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function d(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var i=0;i<t.length;i++)if(t[i].element!==n[i].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&u.dragUpdate({current:l.current})}function h(e){var t=eB(e),r=i({target:eC(e.target)?ej({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});r.length&&(e.preventDefault(),eY({event:e,current:r})),d({dropTargets:r,input:t})}function p(){l.current.dropTargets.length&&d({dropTargets:[],input:l.current.input}),u.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eW.isActive=!1,c()}},eq=new Map;function e$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,i=t.value;return e.setAttribute(n,i),function(){return e.removeAttribute(n)}}function eK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eK(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eJ(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eQ(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eQ(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e1(e){return e.slice(0).reverse()}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var e3=eA(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e4="text/plain",e5=new WeakMap,e8=(m=null,{bindEvents:function(){return m=null,(0,ew.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,i=t.payload;if("onDragStart"===n){var r,a,o,s=i.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(r=document.createElement("div")).setAttribute(eS,"true"),a=eD({client:l}),Object.assign(r.style,eM(eM({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eO({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(r),o=(0,ew.bind)(window,{type:"pointermove",listener:function(e){a=eD({client:{x:e.clientX,y:e.clientY}}),Object.assign(r.style,eO({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,i,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,i=t.clientRect,n.x>=i.x&&n.x<=i.x+i.width&&n.y>=i.y&&n.y<=i.y+i.height)return void r.remove();function l(){u(),r.remove()}var u=(0,ew.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var u,c=i.location.current.input;null==(u=e)||u({current:{x:c.clientX,y:c.clientY}}),e=null,m=null}}}}),e9=function(e){var t=e.typeKey,n=e.mount,i=e.dispatchEventToSource,r=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(i){var r=i.eventName,a=i.payload;if("onGenerateDragPreview"===r){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e0(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(e,void 0):void 0}}(e))){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var u=Array.from(t.active),c=0;c<u.length;c++){var d,h=u[c];t.active.has(h)&&(null==(d=h[r])||d.call(h,a))}"onDrop"===r&&(t.active.clear(),t=null)}},monitorForConsumers:function(i){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},i);return e.add(r),n(r),eA(function(){e.delete(r),t&&t.active.delete(r)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,i=new WeakMap,r="data-drop-target-for-".concat(t),a="[".concat(r,"]");function o(e){var t,n=e.eventName,r=e.payload,a=eJ(r.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=i.get(s.element),u=eZ(eZ({},r),{},{self:s});null==l||null==(o=l[n])||o.call(l,u)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,r=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eJ(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,u=t.value;a.add(u.element);var c=i.get(u.element),d=r.has(u.element),h=eZ(eZ({},n),{},{self:u});null==c||null==(s=c.onDropTargetChange)||s.call(c,h),d||null==c||null==(l=c.onDragLeave)||l.call(c,h)}}catch(e){o.e(e)}finally{o.f()}var p,f=eJ(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,g,v=p.value;if(!a.has(v.element)){var y=eZ(eZ({},n),{},{self:v}),x=i.get(v.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(g=x.onDragEnter)||g.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eA(e$(eX(e.element,{attribute:r,value:"true"}),(i.set(e.element,e),function(){return i.delete(e.element)})))},getIsOver:function(e){var t=e.source,r=e.target,o=e.input,s=e.current,l=function e(t){var r,o,s,l,u=t.source,c=t.target,d=t.input,h=t.result,p=void 0===h?[]:h;if(null==c)return p;if(!(c instanceof Element))return c instanceof Node?e({source:u,target:c.parentElement,input:d,result:p}):p;var f=c.closest(a);if(null==f)return p;var m=i.get(f);if(null==m)return p;var g={input:d,source:u,element:m.element};if(m.canDrop&&!m.canDrop(g))return e({source:u,target:m.element.parentElement,input:d,result:p});var v=null!=(r=null==(o=m.getData)?void 0:o.call(m,g))?r:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,g))?s:n,x={data:v,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:u,target:m.element.parentElement,input:d,result:[].concat(ez(p),[x])})}({source:t,target:r,input:o});if(l.length>=s.length)return l;for(var u=e1(s),c=e1(l),d=[],h=0;h<u.length;h++){var p,f=u[h],m=c[h];if(null!=m){d.push(m);continue}var g=d[h-1],v=u[h-1];if((null==g?void 0:g.element)!==(null==v?void 0:v.element))break;var y=i.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;d.push(eZ(eZ({},f),{},{isActiveDueToStickiness:!0}))}return e1(d)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==i||i(e),s.dispatchEvent(e),o.dispatchEvent(e),null==r||r(e)}function u(e){eU({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,i;return i=function(e){var t=e.typeKey,n=e.mount,i=eq.get(t);if(i)return i.usageCount++,i;var r={typeKey:t,unmount:n(),usageCount:1};return eq.set(t,r),r}(e={typeKey:t,mount:function(){return n({canStart:eG,start:u})}}),function(){i.usageCount--,i.usageCount>0||(i.unmount(),eq.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return e$(e8.bindEvents(),(0,ew.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,i,r,a,o,s,l=t.target;if(l instanceof HTMLElement){var u=e5.get(l);if(u){var c=eB(t),d={element:u.element,dragHandle:null!=(n=u.dragHandle)?n:null,input:c};if(u.canDrag&&!u.canDrag(d))return void t.preventDefault();if(u.dragHandle){var h=ej({x:c.clientX,y:c.clientY});if(!u.dragHandle.contains(h))return void t.preventDefault()}var p=null!=(i=null==(r=u.getInitialDataForExternal)?void 0:r.call(u,d))?i:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var g=eb(m[f],2),v=g[0],y=g[1];t.dataTransfer.setData(v,null!=y?y:"")}!e3()||t.dataTransfer.types.includes(e4)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e4,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:u.element,dragHandle:null!=(a=u.dragHandle)?a:null,data:null!=(o=null==(s=u.getInitialData)?void 0:s.call(u,d))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,i=e.eventName,r=e.payload;null==(t=e5.get(r.source.element))||null==(n=t[i])||n.call(t,r)},onPostDispatch:e8.getOnPostDispatch()}),e6=e9.dropTarget;function e7(e){return eA(e$(e9.registerUsage(),(e5.set(e.element,e),function(){e5.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e9.monitor;var te=d(375);let tt=(0,te.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_qyp3hlby2nr.js"}),tn=e=>{let{type:t,className:n="",style:i={}}=e;return(0,ed.jsx)(tt,{type:t,className:n,style:i})};var ti=d(59),tr=d(514),ta=d.n(tr),to=d(247),ts=d.n(to);let tl=em().div`
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):"function"==typeof define&&define.amd?define(["@ant-design/icons","echarts","react","uuid","dayjs","styled-components","antd","react-dom","@monaco-editor/react"],t):"object"==typeof exports?exports.BiSdk=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):e.BiSdk=t(e["@ant-design/icons"],e.echarts,e.react,e.uuid,e.dayjs,e["styled-components"],e.antd,e["react-dom"],e["@monaco-editor/react"])}(this,(e,t,n,i,r,a,o,s,l)=>(()=>{var u={327(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var r=n(577);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,n){var o=t.map(function(t){var o=null==n?t:i(i({},t),{options:i(i({},a(n)),a(t.options))});return(0,r.bind)(e,o)});return function(){o.forEach(function(e){return e()})}}},577(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var n=t.type,i=t.listener,r=t.options;return e.addEventListener(n,i,r),function(){e.removeEventListener(n,i,r)}}},592(e,t,n){"use strict";t.bindAll=t.bind=void 0;var i=n(577);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return i.bind}});var r=n(327);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return r.bindAll}})},585(e,t,n){"use strict";var i=n(687),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,u,c,d,h=!1;t||(t={}),o=t.debug||!1;try{if(l=i(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(i){o&&console.error("unable to copy using execCommand: ",i),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(i){o&&console.error("unable to copy using clipboardData: ",i),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},921(e,t,n){"use strict";var i=n(155),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var i,a={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,i)&&!l.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:r,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},723(e,t,n){"use strict";e.exports=n(921)},687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=r},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=i}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return u[e].call(n.exports,n,n.exports,d),n.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return(()=>{"use strict";d.r(h),d.d(h,{PluginType:()=>eu.PluginType,PageCanvas:()=>tb,PageContext:()=>ev,PageDesigner:()=>nl,PageSchema:()=>eu.PageSchema,useDatasource:()=>nf,plugins:()=>mv,useEvent:()=>nC,PropEditorProps:()=>ec.PropEditorProps,PageProvider:()=>ey,DropContainer:()=>ty});var e,t,n,i,r,a,o,s,l,u,c,p,f,m,g,v,y,x,_,b,w,S,C,j,T,k,I,M,D,O,z,A,R,P,N,F,L,E,B,H,V,W,G,Y,U,q,$,X,K,Z,J,Q,ee,et,en,ei,er,ea,eo,es,el,eu={};d.r(eu),d.d(eu,{P:()=>nu});var ec={};d.r(ec);var ed=d(723),eh=d(155),ep=d.n(eh),ef=d(694),em=d.n(ef);let eg=e=>{var t;let{datasetId:n,var:i,dependencies:r}=e,{schema:a,getGlobalEnv:o,fetch:s,env:l,updateGlobalVar:u}=(0,eh.useContext)(ev),c=null==a||null==(t=a.datasets)?void 0:t.find(e=>e.id===n);if(!c||!(null==s?void 0:s.dataset))return(0,ed.jsx)(ed.Fragment,{});let d=(0,eh.useMemo)(()=>r.reduce((e,t)=>[...e,l.global[t]],[]),[r,l.global]),h=async()=>{var e;let t=r.reduce((e,t)=>{let n=o(t);return{...e,[t]:n}},{}),{code:a,data:l}=await (null==s||null==(e=s.dataset)?void 0:e.call(s,n,t,c.aiPrompt));"OK"===a&&u(i,l)};return(0,eh.useEffect)(()=>{h()},[n,s,...d]),(0,ed.jsx)(ed.Fragment,{})},ev=(0,eh.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},env:{global:{},local:{}},getGlobalEnv:()=>void 0,setGlobalEnv:()=>{},setItemData:()=>{},globalVars:{},updateGlobalVar:()=>{}}),ey=e=>{var t;let{pageId:n,designable:i,plugins:r,schema:a,selectedItem:o,setSchema:s,setSelectedItem:l,datasetSelector:u,datasetAdd:c,fetch:d,children:h,setItemData:p}=e,[f,m]=(0,eh.useState)(0),[g,v]=(0,eh.useState)({}),[y,x]=(0,eh.useState)([]),[_,b]=(0,eh.useState)({global:{},local:{}}),[w,S]=(0,eh.useState)({}),[C,j]=(0,eh.useState)({}),T=e=>({..._.global,..._.local[e||""]||{}});return(0,eh.useEffect)(()=>{let e={};(a.variables||[]).forEach(t=>{e[t.name]=t.value}),b(t=>({...t,global:e}))},[a.variables]),(0,ed.jsxs)(ev.Provider,{value:{pageId:n,designable:!!i,plugins:r||[],schema:a,selectedItem:o,atItems:y,setSchema:s||(()=>{}),setSelectedItem:l||(()=>{}),updateSelectedItem:e=>{null==l||l(Object.assign(o,e||{})),null==s||s({...a})},datasetSelector:u,datasetAdd:c,fetch:d,forceUpdate:()=>{null==s||s({...a})},onAddAtItem:e=>{null!=y&&y.includes(e)||x([...y,e])},onRemoveAtItem:e=>{x(y.filter(t=>t!==e))},clearAtItems:()=>{x([])},deviceWidth:f,setDeviceWidth:m||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;S(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let i=w[e];if("function"==typeof i){let r=i(t,T(e));if(r){let{target:e,data:t}=r;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;j(e=>({...e,[t]:n}))},handleMethod:(e,t,n,i)=>{let r=C[t][n];return"function"==typeof r?r({sourceId:e.id,arg:i}):null},getVars:T,setVar:(e,t,n)=>{let i={..._};(e.cascadeIds||[]).forEach(e=>{i.local[e]=i.local[e]||{},i.local[e][t]=n})},env:_,getGlobalEnv:e=>_.global[e],setGlobalEnv:(e,t)=>{b(n=>({...n,global:{...n.global,[e]:t}}))},setItemData:p,globalVars:g,updateGlobalVar:(e,t)=>{v(n=>({...n,[e]:t}))}},children:[h,null==(t=a.datasets)?void 0:t.map((e,t)=>(0,ed.jsx)(eg,{datasetId:e.id,var:e.key,dependencies:e.dependencies||[]},t))]})};function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e_(e,t){if(e){if("string"==typeof e)return ex(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ex(e,t):void 0}}function eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}(e,t)||e_(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ew=d(592),eS="data-pdnd-honey-pot";function eC(e){return e instanceof Element&&e.hasAttribute(eS)}function ej(e){var t=eb(document.elementsFromPoint(e.x,e.y),2),n=t[0],i=t[1];return n?eC(n)?null!=i?i:null:n:null}function eT(e){return(eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ek(e,t,n){var i;return(i=function(e,t){if("object"!=eT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=eT(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eT(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eD(e){var t,n,i,r,a={x:Math.min((r={x:Math.max((i={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(i.y,0)}).x,window.innerWidth-2),y:Math.min(r.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eO(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function ez(e){return function(e){if(Array.isArray(e))return ex(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||e_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(e){var t=null;return function(){if(!t){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];t={result:e.apply(this,i)}}return t.result}}var eR=eA(function(){return navigator.userAgent.includes("Firefox")}),eP=eA(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eN={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if(!("u"<typeof window)&&eP()){var eF=eL();(0,ew.bindAll)(window,[{type:"dragstart",listener:function(){eF.enterCount=0,eF.isOverWindow=!0}},{type:"drop",listener:eE},{type:"dragend",listener:eE},{type:"dragenter",listener:function(e){eF.isOverWindow||0!==eF.enterCount||(e[eN.isEnteringWindow]=!0),eF.isOverWindow=!0,eF.enterCount++}},{type:"dragleave",listener:function(e){eF.enterCount--,eF.isOverWindow&&0===eF.enterCount&&(e[eN.isLeavingWindow]=!0,eF.isOverWindow=!1)}}],{capture:!0})}function eL(){return{enterCount:0,isOverWindow:!1}}function eE(){eF=eL()}function eB(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eH=(l=function(e){return e()},u=[],c=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u=t,c||(c=requestAnimationFrame(function(){c=null,l.apply(void 0,u)}))}).cancel=function(){c&&(cancelAnimationFrame(c),c=null)},p),eV=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eW={isActive:!1};function eG(){return!eW.isActive}function eY(e){var t,n=e.event,i=null==(t=e.current[0])?void 0:t.dropEffect;null!=i&&n.dataTransfer&&(n.dataTransfer.dropEffect=i)}var eU=function(e){var t=e.event,n=e.dragType,i=e.getDropTargetsOver,r=e.dispatchEvent;if(eG()){var a,o,s=function(e){var t=e.event,n=e.dragType,i=e.getDropTargetsOver,r=eB(t);if("external"===n.startedFrom)return{input:r,dropTargets:[]};var a=i({input:r,source:n.payload,target:t.target,current:[]});return{input:r,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:i});eW.isActive=!0;var l={current:s};eY({event:t,current:s.dropTargets});var u=function(e){var t=e.source,n=e.initial,i=e.dispatchEvent,r={dropTargets:[]};function a(e){i(e),r={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var i=e.nativeSetDragImage,o={current:n,previous:r,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:i}}),eV.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var i=e.current;eV.flush(),eH.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:r,current:i}}})},drag:function(e){var i=e.current;eH(function(){eV.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:r,current:i}}})})},drop:function(e){var i=e.current,o=e.updatedSourcePayload;eV.flush(),eH.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:i,previous:r,initial:n}}})}}}({source:n.payload,dispatchEvent:r,initial:s}),c=(0,ew.bindAll)(window,[{type:"dragover",listener:function(e){h(e),u.drag({current:l.current})}},{type:"dragenter",listener:h},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,i=t.relatedTarget;return"dragleave"===n&&(eP()?!!eP()&&t.hasOwnProperty(eN.isLeavingWindow):null==i||(eR()?"nodeName"in i&&i.ownerDocument!==document:i instanceof HTMLIFrameElement))})({dragLeave:e})&&(d({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eB(e)},l.current.dropTargets.length)?(e.preventDefault(),eY({event:e,current:l.current.dropTargets}),u.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eB(e)},p()}}].concat(ez([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});u.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function d(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var i=0;i<t.length;i++)if(t[i].element!==n[i].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&u.dragUpdate({current:l.current})}function h(e){var t=eB(e),r=i({target:eC(e.target)?ej({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});r.length&&(e.preventDefault(),eY({event:e,current:r})),d({dropTargets:r,input:t})}function p(){l.current.dropTargets.length&&d({dropTargets:[],input:l.current.input}),u.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eW.isActive=!1,c()}},eq=new Map;function e$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,i=t.value;return e.setAttribute(n,i),function(){return e.removeAttribute(n)}}function eK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eK(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eJ(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eQ(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eQ(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e1(e){return e.slice(0).reverse()}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var e3=eA(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e4="text/plain",e5=new WeakMap,e8=(m=null,{bindEvents:function(){return m=null,(0,ew.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,i=t.payload;if("onDragStart"===n){var r,a,o,s=i.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(r=document.createElement("div")).setAttribute(eS,"true"),a=eD({client:l}),Object.assign(r.style,eM(eM({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eO({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(r),o=(0,ew.bind)(window,{type:"pointermove",listener:function(e){a=eD({client:{x:e.clientX,y:e.clientY}}),Object.assign(r.style,eO({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,i,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,i=t.clientRect,n.x>=i.x&&n.x<=i.x+i.width&&n.y>=i.y&&n.y<=i.y+i.height)return void r.remove();function l(){u(),r.remove()}var u=(0,ew.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var u,c=i.location.current.input;null==(u=e)||u({current:{x:c.clientX,y:c.clientY}}),e=null,m=null}}}}),e9=function(e){var t=e.typeKey,n=e.mount,i=e.dispatchEventToSource,r=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(i){var r=i.eventName,a=i.payload;if("onGenerateDragPreview"===r){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e0(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(e,void 0):void 0}}(e))){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var u=Array.from(t.active),c=0;c<u.length;c++){var d,h=u[c];t.active.has(h)&&(null==(d=h[r])||d.call(h,a))}"onDrop"===r&&(t.active.clear(),t=null)}},monitorForConsumers:function(i){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},i);return e.add(r),n(r),eA(function(){e.delete(r),t&&t.active.delete(r)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,i=new WeakMap,r="data-drop-target-for-".concat(t),a="[".concat(r,"]");function o(e){var t,n=e.eventName,r=e.payload,a=eJ(r.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=i.get(s.element),u=eZ(eZ({},r),{},{self:s});null==l||null==(o=l[n])||o.call(l,u)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,r=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eJ(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,u=t.value;a.add(u.element);var c=i.get(u.element),d=r.has(u.element),h=eZ(eZ({},n),{},{self:u});null==c||null==(s=c.onDropTargetChange)||s.call(c,h),d||null==c||null==(l=c.onDragLeave)||l.call(c,h)}}catch(e){o.e(e)}finally{o.f()}var p,f=eJ(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,g,v=p.value;if(!a.has(v.element)){var y=eZ(eZ({},n),{},{self:v}),x=i.get(v.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(g=x.onDragEnter)||g.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eA(e$(eX(e.element,{attribute:r,value:"true"}),(i.set(e.element,e),function(){return i.delete(e.element)})))},getIsOver:function(e){var t=e.source,r=e.target,o=e.input,s=e.current,l=function e(t){var r,o,s,l,u=t.source,c=t.target,d=t.input,h=t.result,p=void 0===h?[]:h;if(null==c)return p;if(!(c instanceof Element))return c instanceof Node?e({source:u,target:c.parentElement,input:d,result:p}):p;var f=c.closest(a);if(null==f)return p;var m=i.get(f);if(null==m)return p;var g={input:d,source:u,element:m.element};if(m.canDrop&&!m.canDrop(g))return e({source:u,target:m.element.parentElement,input:d,result:p});var v=null!=(r=null==(o=m.getData)?void 0:o.call(m,g))?r:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,g))?s:n,x={data:v,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:u,target:m.element.parentElement,input:d,result:[].concat(ez(p),[x])})}({source:t,target:r,input:o});if(l.length>=s.length)return l;for(var u=e1(s),c=e1(l),d=[],h=0;h<u.length;h++){var p,f=u[h],m=c[h];if(null!=m){d.push(m);continue}var g=d[h-1],v=u[h-1];if((null==g?void 0:g.element)!==(null==v?void 0:v.element))break;var y=i.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;d.push(eZ(eZ({},f),{},{isActiveDueToStickiness:!0}))}return e1(d)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==i||i(e),s.dispatchEvent(e),o.dispatchEvent(e),null==r||r(e)}function u(e){eU({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,i;return i=function(e){var t=e.typeKey,n=e.mount,i=eq.get(t);if(i)return i.usageCount++,i;var r={typeKey:t,unmount:n(),usageCount:1};return eq.set(t,r),r}(e={typeKey:t,mount:function(){return n({canStart:eG,start:u})}}),function(){i.usageCount--,i.usageCount>0||(i.unmount(),eq.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return e$(e8.bindEvents(),(0,ew.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,i,r,a,o,s,l=t.target;if(l instanceof HTMLElement){var u=e5.get(l);if(u){var c=eB(t),d={element:u.element,dragHandle:null!=(n=u.dragHandle)?n:null,input:c};if(u.canDrag&&!u.canDrag(d))return void t.preventDefault();if(u.dragHandle){var h=ej({x:c.clientX,y:c.clientY});if(!u.dragHandle.contains(h))return void t.preventDefault()}var p=null!=(i=null==(r=u.getInitialDataForExternal)?void 0:r.call(u,d))?i:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var g=eb(m[f],2),v=g[0],y=g[1];t.dataTransfer.setData(v,null!=y?y:"")}!e3()||t.dataTransfer.types.includes(e4)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e4,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:u.element,dragHandle:null!=(a=u.dragHandle)?a:null,data:null!=(o=null==(s=u.getInitialData)?void 0:s.call(u,d))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,i=e.eventName,r=e.payload;null==(t=e5.get(r.source.element))||null==(n=t[i])||n.call(t,r)},onPostDispatch:e8.getOnPostDispatch()}),e6=e9.dropTarget;function e7(e){return eA(e$(e9.registerUsage(),(e5.set(e.element,e),function(){e5.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e9.monitor;var te=d(375);let tt=(0,te.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_qyp3hlby2nr.js"}),tn=e=>{let{type:t,className:n="",style:i={}}=e;return(0,ed.jsx)(tt,{type:t,className:n,style:i})};var ti=d(59),tr=d(514),ta=d.n(tr),to=d(247),ts=d.n(to);let tl=em().div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: flex-end;
|
|
@@ -40,7 +40,28 @@
|
|
|
40
40
|
background-color: rgb(24, 144, 255, 1);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`,tu=
|
|
43
|
+
`,tu=em().div`
|
|
44
|
+
user-select: none;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
text-align: center;
|
|
47
|
+
color: var(--ant-color-text-placeholder);
|
|
48
|
+
background: var(--ant-color-bg-layout);
|
|
49
|
+
border: dotted 1px #ccc;
|
|
50
|
+
|
|
51
|
+
&:before {
|
|
52
|
+
content: "组件已隐藏";
|
|
53
|
+
}
|
|
54
|
+
`,tc=e=>{let{item:t,ancestors:n,onAddAt:i,onDelete:r,onCopy:a,onUpdate:o,onSelect:s}=e,[l,u]=(0,eh.useState)(JSON.stringify(t||{},null,2)),[c,d]=(0,eh.useState)(!1),h=(0,eh.useRef)(null),p=(0,ed.jsx)(ti.Typography.Text,{children:t.name||t.type+`(${t.id})`});return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Modal,{title:`源码编辑(${t.name||t.type+`(${t.id})`})`,open:c,width:700,onCancel:()=>{d(!1),h.current=null},styles:{body:{margin:"0 -24px"}},footer:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{onClick:()=>{d(!1),h.current=null},children:"取消"}),(0,ed.jsx)(ti.Button,{onClick:()=>{u(JSON.stringify(t||{},null,2))},children:"重置"}),(0,ed.jsx)(ti.Button,{onClick:()=>{var e,t;let n=null==(e=h.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:"格式化"}),(0,ed.jsx)(ti.Button,{type:"primary",onClick:()=>{d(!1),Object.assign(t,JSON.parse(l)),o&&o()},children:"保存"})]}),children:(0,ed.jsx)(to.Editor,{height:"400px",defaultLanguage:"json",value:l,onChange:e=>u(e||""),options:{minimap:{enabled:!1}},onMount:e=>{h.current={editor:e}}})}),(0,ed.jsxs)(tl,{children:[(null==n?void 0:n.length)?(0,ed.jsx)(ti.Dropdown,{placement:"topLeft",menu:{style:{borderRadius:0,padding:0,background:"none",boxShadow:"none"},items:n.map(e=>({label:(null==e?void 0:e.name)||(null==e?void 0:e.type)+`(${null==e?void 0:e.id})`,key:null==e?void 0:e.id,onClick:()=>{null==s||s(e)}}))},styles:{item:{borderRadius:2,background:"rgba(24, 144, 255, 0.8)",padding:"2px 8px",color:"#fff",fontSize:12,marginTop:2}},children:p}):p,i&&(0,ed.jsx)(ti.Tooltip,{title:"添加到对话",children:(0,ed.jsx)("a",{onClick:i,children:(0,ed.jsx)(tn,{type:"icon-number"})})}),(0,ed.jsx)(ti.Tooltip,{title:"源码编辑",children:(0,ed.jsx)("a",{onClick:()=>d(!0),children:(0,ed.jsx)(tn,{type:"icon-json"})})}),(0,ed.jsx)(ti.Tooltip,{title:"复制",children:(0,ed.jsx)("a",{onClick:a,children:(0,ed.jsx)(te.CopyOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"删除",children:(0,ed.jsx)("a",{onClick:r,children:(0,ed.jsx)(te.DeleteOutlined,{})})})]})]})},td=e=>{var t,n,i;let{item:r,onCopy:a,onDelete:o,ancestors:s,parentList:l,onListChange:u,index:c}=e,{designable:d,selectedItem:h,setSelectedItem:p,plugins:f,onAddAtItem:m,onRemoveAtItem:g,forceUpdate:v,fetch:y,globalVars:x,env:_}=(0,eh.useContext)(ev),[b,w]=(0,eh.useState)(!1),[S,C]=(0,eh.useState)(null),j=e=>{e.stopPropagation(),ti.Modal.confirm({title:"确认删除吗?",okText:"确认",cancelText:"取消",okType:"danger",onOk:()=>{o&&o(),g&&g(r)}})},T=e=>{e.stopPropagation(),a&&a(r)},k=e=>{e.stopPropagation(),m&&m(r)},I=null==(t=f.find(e=>e.key===r.type))?void 0:t.component,M=(0,eh.useMemo)(()=>{let e=r.hideExpression;if(!(null==e?void 0:e.length))return!1;try{return Function("$g","$e",`
|
|
55
|
+
"use strict";
|
|
56
|
+
const window = undefined;
|
|
57
|
+
const document = undefined;
|
|
58
|
+
const global = undefined;
|
|
59
|
+
const process = undefined;
|
|
60
|
+
const require = undefined;
|
|
61
|
+
const module = undefined;
|
|
62
|
+
const exports = undefined;
|
|
63
|
+
return ${e} === true;
|
|
64
|
+
`)(x,_.global)}catch(e){return!1}},[r.hideExpression,x,_]);return((0,eh.useEffect)(()=>{let e=()=>{if(!t.current)return;let e=document.getElementById(`page-item-${r.id}`);if(!e)return void n();let i=e.getBoundingClientRect();if(0===i.width&&0===i.height){t.current.style.display="none";return}t.current.style.display="flex";let a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,o=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;t.current.style.top=`${i.top+a-22}px`,t.current.style.left=`${i.left+o-1}px`},t={current:null},n=()=>{t.current&&(document.body.contains(t.current)&&document.body.removeChild(t.current),t.current=null,C(null),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e))};if(h&&h===r&&d){let i=document.createElement("div");return i.setAttribute("id","page-item-toolbar"),i.style.position="absolute",i.style.zIndex="1000",i.style.display="flex",i.style.gap="4px",document.body.appendChild(i),t.current=i,C(i),e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>n()}},[h,d,r]),(0,eh.useEffect)(()=>{let e=document.getElementById(`page-item-${r.id}`);if(!e||!d)return;let t=e7({element:e,getInitialData:()=>({id:r.id,index:c,list:l,onListChange:u,data:r}),canDrag:()=>!!d,onDragStart:()=>{w(!0)},onDrop:()=>{w(!1)}}),n=e=>{e.stopPropagation(),p&&p(r)};return d&&e.addEventListener("click",n),()=>{t(),d&&e.removeEventListener("click",n)}},[d,r,c,l]),I)?M?d?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(tu,{id:`page-item-${r.id}`,"data-item-id":r.id,className:`page-item-component ${d?"designable":""} ${h===r?"selected":""}`}),S&&ta().createPortal((0,ed.jsx)(tc,{item:r,ancestors:s,onAddAt:(null==y||null==(i=y.ai)?void 0:i.chat)?k:void 0,onCopy:T,onDelete:j,onUpdate:v,onSelect:p}),S)]}):null:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(I,{id:`page-item-${r.id}`,"data-item-id":r.id,...r.props||{},item:r,className:`page-item-component ${d?"designable":""} ${h===r?"selected":""}`,ancestors:s,style:{...r.style||{},opacity:b?.5:1}}),S&&ta().createPortal((0,ed.jsx)(tc,{item:r,ancestors:s,onAddAt:(null==y||null==(n=y.ai)?void 0:n.chat)?k:void 0,onCopy:T,onDelete:j,onUpdate:v,onSelect:p}),S)]}):null};var th=d(315);let tp=()=>(0,th.v4)(),tf=e=>{if(!e)return"";let t=new Date(e),n=new Date,i=n.getTime()-t.getTime();if(i<6e4)return"刚刚";if(i<36e5)return`${Math.floor(i/6e4)}分钟前`;let r=e=>e.toString().padStart(2,"0"),a=r(t.getHours()),o=r(t.getMinutes());if(t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear())return`${a}:${o}`;let s=r(t.getMonth()+1),l=r(t.getDate());if(t.getFullYear()===n.getFullYear())return`${s}-${l} ${a}:${o}`;let u=t.getFullYear();return`${u}-${s}-${l} ${a}:${o}`},tm=em().div`
|
|
44
65
|
position: absolute;
|
|
45
66
|
background: #1890ff;
|
|
46
67
|
pointer-events: none;
|
|
@@ -82,7 +103,7 @@
|
|
|
82
103
|
&::before { left: -3px; top: -4px; }
|
|
83
104
|
&::after { left: -3px; bottom: -4px; }
|
|
84
105
|
`}
|
|
85
|
-
`,
|
|
106
|
+
`,tg=(e,t,n,i)=>{let r=e.getBoundingClientRect(),a=Array.from(e.children).filter(e=>!e.classList.contains("drop-indicator")&&e.getBoundingClientRect().width>0),o=(e=>{let t=Array.from(e.children).filter(e=>!e.classList.contains("drop-indicator")&&e.getBoundingClientRect().width>0);if(0===t.length){let t=window.getComputedStyle(e),{display:n,flexDirection:i}=t;return"flex"===n||"inline-flex"===n?!i.includes("column"):"grid"===n&&!t.gridAutoFlow.includes("column")}if(1===t.length){let n=window.getComputedStyle(t[0]),i=window.getComputedStyle(e);return"flex"===i.display||"inline-flex"===i.display?!i.flexDirection.includes("column"):!!["inline","inline-block","inline-flex"].includes(n.display)||"none"!==n.float}let n=0,i=0,r=t.map(e=>{let t=e.getBoundingClientRect(),r=t.left+t.width/2,a=t.top+t.height/2;return n+=r,i+=a,{cx:r,cy:a}}),a=n/t.length,o=i/t.length,s=0,l=0;return r.forEach(e=>{s+=(e.cx-a)**2,l+=(e.cy-o)**2}),s>=l})(e),s=e.scrollLeft,l=e.scrollTop;if(0===a.length)return{index:0,indicatorOffset:15,isHorizontal:o};let u=(e,t)=>o?(t?e.left:e.right)-r.left+s+(t?-4:4):(t?e.top:e.bottom)-r.top+l+(t?-4:4),c=e=>{let t=e.getAttribute("data-item-id");if(t){let e=i.findIndex(e=>e.id===t);if(-1!==e)return e}return a.indexOf(e)};for(let e=0;e<a.length;e++){let i=a[e].getBoundingClientRect();if(t>=i.left-5&&t<=i.right+5&&n>=i.top-5&&n<=i.bottom+5){let r=o?t<i.left+i.width/2:n<i.top+i.height/2,s=c(a[e]);return{index:r?s:s+1,indicatorOffset:u(i,r),isHorizontal:o}}}let d=1/0,h=!1,p=null,f=null;for(let e=0;e<a.length;e++){let i=a[e].getBoundingClientRect(),r=i.left+i.width/2,s=i.top+i.height/2,l=(t-r)**2+(n-s)**2;l<d&&(d=l,p=i,f=a[e],h=o?t<r:n<s)}if(f&&p){let e=c(f);return{index:h?e:e+1,indicatorOffset:u(p,h),isHorizontal:o}}let m=a[a.length-1].getBoundingClientRect();return{index:i.length,indicatorOffset:u(m,!1),isHorizontal:o}},tv=e=>{let{rootComponent:t="div",rootData:n={},list:i=[],ancestors:r=[],item:a,onListChange:o,className:s}=e,{designable:l,selectedItem:u,setSelectedItem:c,forceUpdate:d}=(0,eh.useContext)(ev),h=(0,eh.useRef)(null),[p,f]=(0,eh.useState)(!1),[m,g]=(0,eh.useState)(0),[v,y]=(0,eh.useState)(!1),[x,_]=(0,eh.useState)(!1),b=(0,eh.useRef)(i),w=(0,eh.useRef)(o);(0,eh.useEffect)(()=>{b.current=i,w.current=o},[i,o]);let S=(0,eh.useMemo)(()=>i||[],[i]);(0,eh.useEffect)(()=>{let e=h.current;if(!e)return;let t=e6({element:e,canDrop:e=>{let{source:t,element:n}=e;if(!l)return!1;let{data:i}=t.data||{};return(!n.classList.contains("ant-row")||(null==i?void 0:i.type)==="b-col")&&(!!n.classList.contains("ant-row")||(null==i?void 0:i.type)!=="b-col")},getData:()=>({localList:b.current}),onDragEnter:t=>{if(!l)return!1;let[n]=t.location.current.dropTargets;if((null==n?void 0:n.element)!==e)return;f(!0),_(!0);let i=t.location.current.input.clientY,{indicatorOffset:r,isHorizontal:a}=tg(e,t.location.current.input.clientX,i,b.current||[]);g(r),y(a)},onDrag:t=>{if(!l)return!1;let[n]=t.location.current.dropTargets;if((null==n?void 0:n.element)!==e){f(!1),_(!1);return}f(!0),_(!0);let i=t.location.current.input.clientY,{indicatorOffset:r,isHorizontal:a}=tg(e,t.location.current.input.clientX,i,b.current||[]);g(r),y(a)},onDragLeave:()=>{if(!l)return!1;f(!1),_(!1)},onDrop(t){if(!l)return!1;let[n]=t.location.current.dropTargets;if((null==n?void 0:n.element)!==e)return;f(!1),_(!1);let{data:i,list:r,onListChange:a,index:o}=t.source.data;null==c||c(i);let s=b.current||[],u=w.current,d=r===s||s.some(e=>e.id===i.id),h=t.location.current.input.clientY,{index:p}=tg(e,t.location.current.input.clientX,h,s);if(r)if(d){let e=[...s],t=e.findIndex(e=>e.id===i.id);if(-1!==t){let[n]=e.splice(t,1);e.splice(p>t?p-1:p,0,n),null==u||u(e)}else e.splice(p,0,i),null==u||u(e)}else{a&&r&&a(r.filter(e=>e.id!==i.id));let e=[...s];e.some(e=>e.id===i.id)||(e.splice(p,0,i),null==u||u(e))}else{let e=[...s];e.splice(p,0,i),null==u||u(e)}}});return()=>t()},[]);let C=e=>{let t=e=>{let n={...e,id:tp()};if(e.children)if(Array.isArray(e.children))n.children=e.children.map(t);else{let i={};Object.keys(e.children).forEach(n=>{i[n]=e.children[n].map(t)}),n.children=i}return n},n=t(e),r=i.findIndex(t=>t.id===e.id);if(-1!==r){let e=[...i];e.splice(r+1,0,n),null==o||o(e)}},j=[s,"drag-container","page-item-component",!i.length?"empty-container":"",u===a?"selected":"",l?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(t,{...n||{},ref:h,className:j,style:{...null==n?void 0:n.style,position:"relative",minHeight:l?24:void 0,outline:p?"1px dashed #1890ff":void 0},children:[l&&(0,ed.jsx)(tm,{className:"drop-indicator",$offset:m,$vertical:v,$visible:x}),(Array.isArray(S)?S:[]).filter(Boolean).map((e,t)=>(0,ed.jsx)(td,{item:e,ancestors:r,parentList:S,onListChange:o,index:t,onCopy:C,onDelete:()=>null==o?void 0:o(S.filter(t=>t.id!==e.id))},e.id||t))]})},ty=tv,tx=em().div`
|
|
86
107
|
.empty-container.designable {
|
|
87
108
|
min-width: 10px;
|
|
88
109
|
min-height: 30px;
|
|
@@ -118,7 +139,7 @@
|
|
|
118
139
|
z-index: 2;
|
|
119
140
|
}
|
|
120
141
|
}
|
|
121
|
-
`,
|
|
142
|
+
`,t_=ep().forwardRef((e,t)=>{let{device:n="desktop"}=e,{schema:i,forceUpdate:r,setDeviceWidth:a}=(0,eh.useContext)(ev),o=(0,eh.useRef)(null),s=(0,eh.useMemo)(()=>i.items||[],[i.items]),[l,u]=(0,eh.useState)(s);(0,eh.useEffect)(()=>{u(i.items||[])},[i.items]);let c=()=>{var e;let t=null==(e=o.current)?void 0:e.parentElement,n=null==t?void 0:t.getBoundingClientRect(),i=(null==n?void 0:n.width)||0;i<=100?setTimeout(c,10):a(i?i-36:0)};return(0,eh.useEffect)(()=>{c()},[n]),(0,eh.useEffect)(()=>{let e=()=>c();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,eh.useImperativeHandle)(t,()=>({handleResize(){c()},get dom(){return o.current}})),(0,ed.jsx)(tx,{ref:o,children:(0,ed.jsx)(tv,{ancestors:[],list:l,onListChange:e=>{let t=[...e];i.items=t,u(t),null==r||r()},className:"page-canvas"})})}),tb=t_,tw=em().div`
|
|
122
143
|
max-height: 400px;
|
|
123
144
|
overflow: auto;
|
|
124
145
|
background: #fff;
|
|
@@ -147,7 +168,7 @@
|
|
|
147
168
|
text-overflow: ellipsis;
|
|
148
169
|
white-space: nowrap;
|
|
149
170
|
}
|
|
150
|
-
`,
|
|
171
|
+
`,tS=em().div`
|
|
151
172
|
.chat-input {
|
|
152
173
|
display: flex;
|
|
153
174
|
flex-direction: column;
|
|
@@ -363,7 +384,7 @@
|
|
|
363
384
|
.send-btn.send-btn-active {
|
|
364
385
|
background-color: var(--ant-color-primary);
|
|
365
386
|
}
|
|
366
|
-
`,
|
|
387
|
+
`,tC=[],tj=[],tT=["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","audio/wav","image/png","image/jpeg","application/pdf"],tk=[".xlsx",".wav",".png",".jpg",".jpeg",".pdf"],tI=e=>{let{open:t,onCancel:n,onOk:i,allowedExtensions:r,allowedMimeTypes:a}=e,[o,s]=(0,eh.useState)([]);(0,eh.useEffect)(()=>{t&&s([])},[t]);let l=[...tk,...tT].join(",");return(0,ed.jsxs)(ti.Modal,{title:"上传文件",open:t,okText:"上传",cancelText:"取消",onOk:()=>{i(o),n()},onCancel:n,width:600,children:[(0,ed.jsx)("div",{style:{marginBottom:16},children:(0,ed.jsxs)(ti.Typography.Text,{type:"secondary",children:["支持的文件类型:",r.join(", "),(0,ed.jsx)("br",{}),"单次支持上传多个文件,请确保文件内容合规。",(0,ed.jsx)("br",{}),"Excel 不支持加密文件。",(0,ed.jsx)("br",{}),"不支持 xls 电子表格,请自行转换为 xlsx 格式。",(0,ed.jsx)("br",{}),"Excel 仅支持第一行为表头、第二行开始为数据,不支持合并单元格。"]})}),(0,ed.jsxs)(ti.Upload.Dragger,{...{name:"file",multiple:!0,accept:l,fileList:[],beforeUpload:e=>{let t=a.includes(e.type)||!e.type,n=(e.name||"").substring(e.name.lastIndexOf(".")).toLowerCase(),i=r.includes(n);return t||i?(s(t=>[...t,e]),!1):(ti.message.error(`不支持的文件类型: ${e.name}`),ti.Upload.LIST_IGNORE)}},children:[(0,ed.jsx)("p",{className:"ant-upload-drag-icon",children:(0,ed.jsx)(te.InboxOutlined,{})}),(0,ed.jsx)("p",{className:"ant-upload-text",children:"点击或将文件拖拽到此处上传"}),(0,ed.jsx)("p",{className:"ant-upload-hint",children:"支持上传Excel表格数据或音频文件进行分析"})]}),o.length>0&&(0,ed.jsxs)("div",{style:{marginTop:16},children:[(0,ed.jsxs)(ti.Typography.Title,{level:5,style:{fontSize:14,marginBottom:8},children:["已选文件 (",o.length,")"]}),(0,ed.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxHeight:200,overflowY:"auto"},children:o.map((e,t)=>(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",background:"#f5f5f5",borderRadius:4},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,overflow:"hidden"},children:[e.name.endsWith(".xlsx")?(0,ed.jsx)(te.FileExcelOutlined,{style:{color:"#52c41a"}}):(0,ed.jsx)(te.AudioOutlined,{style:{color:"#1890ff"}}),(0,ed.jsx)(ti.Typography.Text,{ellipsis:!0,style:{maxWidth:300},children:e.name}),(0,ed.jsxs)(ti.Typography.Text,{type:"secondary",style:{fontSize:12},children:["(",(e.size/1024).toFixed(1)," KB)"]})]}),(0,ed.jsx)(ti.Button,{type:"text",size:"small",icon:(0,ed.jsx)(te.DeleteOutlined,{}),onClick:()=>{s(e=>e.filter((e,n)=>n!==t))},danger:!0})]},`${e.name}-${t}`))})]})]})},tM=ep().forwardRef((e,t)=>{let{value:n="",placeholder:i="请输入需求,例如:分析 2025 年人口结构并生成可视化报告",disabled:r=!1,sending:a=!1,rows:o=6,agentList:s=tC,agentId:l=null,attachments:u=tj,atItems:c=null,onInput:d,onSubmit:h,onUpdateAgentId:p,onUpdateAttachments:f,onUploading:m,onRemoveAtItem:g,style:v={}}=e,y=(0,eh.useRef)(null),[x,_]=(0,eh.useState)([]),[b,w]=(0,eh.useState)(n||""),[S,C]=(0,eh.useState)(0),[j,T]=(0,eh.useState)(Array.isArray(u)?u:[]),[k,I]=(0,eh.useState)(!1),M=(0,eh.useMemo)(()=>!1,[]);(0,eh.useImperativeHandle)(t,()=>({focus(){var e;null==(e=y.current)||e.focus()}})),(0,eh.useEffect)(()=>w(n||""),[n]),(0,eh.useEffect)(()=>{d&&d(b)},[b]),(0,eh.useEffect)(()=>T(Array.isArray(u)?u:[]),[u]);let D=!!(b&&b.trim()),O=async e=>{if(I(!1),!m||!e.length)return;let t=[];for(let n of e)try{let e=await m(n);e&&t.push({id:e.id,name:n.name,size:n.size})}catch(e){console.error(e)}T([...j,...t]),f&&f([...j,...t])},z=()=>{if(!D||a)return;let e=Date.now();if(e-S<400)return;C(e);let t=(b||"").trim();if(!t)return;let n={message:t,agents:x.map(e=>({id:e.id,name:e.name})),files:j.map(e=>({id:e.id,name:e.name,extension:e.name.substring(e.name.lastIndexOf("."))}))};h&&h(n),w(""),T([])},A=(0,ed.jsx)(tw,{children:(0,ed.jsx)("ul",{className:"agent-list",children:s.map(e=>(0,ed.jsx)("li",{children:(0,ed.jsx)("a",{onClick:()=>{let t;return t=e.id||null,void(p&&p(t),_(t=>[...t,e]))},children:e.name})},String(e.id)))})});return(0,ed.jsx)(tS,{style:v,children:(0,ed.jsxs)("div",{className:"chat-input",children:[(0,ed.jsxs)("div",{className:"input-stack",children:[j.length>0&&(0,ed.jsx)("div",{className:"attachment-bar beautified_scrollbar",children:j.map(e=>{var t;return(0,ed.jsxs)("div",{className:"attachment-card",children:[(t=e.name).endsWith(".xlsx")?(0,ed.jsx)(tn,{type:"icon-excel"}):t.endsWith(".wav")?(0,ed.jsx)(tn,{type:"icon-audio"}):(0,ed.jsx)(tn,{type:"icon-image"}),(0,ed.jsx)(ti.Typography.Text,{className:"name",ellipsis:{tooltip:e.name},children:e.name}),(0,ed.jsx)("a",{className:"remove",onClick:()=>{var t;let n;return t=e.id,void(T(n=j.filter(e=>e.id!==t)),f&&f(n))},children:(0,ed.jsx)(te.DeleteOutlined,{})})]},e.id)})}),x.length>0&&(0,ed.jsx)("div",{className:"agent-info",children:x.map((e,t)=>(0,ed.jsxs)("div",{children:[(0,ed.jsxs)("span",{className:"name",children:[(0,ed.jsx)(tn,{type:"icon-at"}),e.name]}),(0,ed.jsx)("a",{className:"remove",onClick:()=>{p&&p(null),_(e=>e.filter((e,n)=>n!==t))},children:"\xd7"})]},String(e.id)))}),!!(null==c?void 0:c.length)&&(0,ed.jsx)("div",{className:"agent-info",children:c.map((e,t)=>(0,ed.jsxs)("div",{children:[(0,ed.jsxs)("span",{className:"name",children:[(0,ed.jsx)(tn,{type:"icon-number"}),e.name||e.id]}),(0,ed.jsx)("a",{className:"remove",onClick:()=>null==g?void 0:g(e,t),children:"\xd7"})]},String(e.id)))}),(0,ed.jsx)(ti.Input.TextArea,{ref:y,className:"input textarea-stacked",placeholder:i,disabled:r||a,autoSize:{minRows:o,maxRows:o},value:b,onPressEnter:e=>{"Enter"===e.key&&(e.shiftKey||(e.preventDefault(),z()))},onChange:e=>w(e.target.value)})]}),(0,ed.jsxs)("div",{className:"footer",children:[(0,ed.jsxs)("div",{className:"left",children:[!!(null==s?void 0:s.length)&&(0,ed.jsx)(ti.Dropdown,{trigger:["click"],popupRender:()=>A,placement:"topLeft",styles:{root:{boxShadow:"var(--ant-box-shadow-card)"}},children:(0,ed.jsx)(ti.Tooltip,{title:"选择助理",children:(0,ed.jsx)(ti.Button,{className:"agent-trigger",onClick:e=>e.preventDefault(),children:(0,ed.jsx)(tn,{type:"icon-at"})})})}),m&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Tooltip,{title:"上传文件",children:(0,ed.jsx)(ti.Button,{className:"attach-upload",onClick:()=>I(!0),disabled:r||a,children:(0,ed.jsx)(tn,{type:"icon-paper-clip"})})}),(0,ed.jsx)(tI,{open:k,onCancel:()=>I(!1),onOk:O,allowedExtensions:tk,allowedMimeTypes:tT})]})]}),(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[!M&&(0,ed.jsx)("div",{className:"tips",children:"按 Enter 发送,Shift+Enter 换行"}),(0,ed.jsx)("a",{className:`send-btn ${!a&&(null==b?void 0:b.length)>0?"send-btn-active":""}`,onClick:z,children:(0,ed.jsx)(te.SendOutlined,{})})]})]})]})})}),tD=em().div`
|
|
367
388
|
width: 100%;
|
|
368
389
|
padding: 0 12px;
|
|
369
390
|
border-bottom: solid 1px #e8e8e8;
|
|
@@ -379,7 +400,7 @@
|
|
|
379
400
|
.extra {
|
|
380
401
|
line-height: 32px;
|
|
381
402
|
}
|
|
382
|
-
`,
|
|
403
|
+
`,tO=e=>{let{title:t="",extra:n,style:i={}}=e;return(0,ed.jsxs)(tD,{className:"pane-header",style:i,children:[(0,ed.jsx)("span",{className:"title",children:t}),(0,ed.jsx)("div",{className:"extra",children:n})]})},tz=em().div`
|
|
383
404
|
display: flex;
|
|
384
405
|
flex-direction: column;
|
|
385
406
|
height: 100%;
|
|
@@ -420,7 +441,7 @@
|
|
|
420
441
|
.conversation-list li small {
|
|
421
442
|
white-space: nowrap;
|
|
422
443
|
}
|
|
423
|
-
`,
|
|
444
|
+
`,tA=[],tR="bi-design",tP=e=>{let t,n,i,r,a,o,s,{agentList:l=tA,headExtra:u,style:c={},onEffect:d}=e,{pageId:h,schema:p,fetch:f,atItems:m,onRemoveAtItem:g,clearAtItems:v}=(0,eh.useContext)(ev);if(!f)return null;let[y,x]=(0,eh.useState)(null),[_,b]=(0,eh.useState)([]),[w,S]=(0,eh.useState)([]),C=ep().useRef(null),j=()=>{setTimeout(()=>{C.current&&C.current.scrollToBottom()},100)},T=()=>{x(null),S([])},k=async e=>{ti.Modal.confirm({title:"确认删除该对话吗?",okText:"确认",cancelText:"取消",onOk:async()=>{var t;await (null==(t=f.ai)?void 0:t.removeConversation(e)),b(t=>t.filter(t=>t.id!==e)),S(t=>t.filter(t=>t.conversationId!==e)),y===e&&T()}})},I=async e=>{var t,n,i;x(e),b(t=>t.map(t=>({...t,isActived:t.id===e}))),await (null==(n=f.ai)||null==(t=n.activateConversation)?void 0:t.call(n,e)),S(await (null==(i=f.ai)?void 0:i.messageList(e))||[]),j()},M=async e=>{var t,n,i;let r={id:tp(),question:e.message,createdAt:new Date().toISOString(),files:e.files||[],agents:e.agents||[],atItems:JSON.stringify(m),sending:!0};S(e=>[...e,r]),j();let a=!y;v();try{let{id:n,answer:i,createdAt:o,conversation:s}=await (null==(t=f.ai)?void 0:t.chat(tR,h,y,{...e,page:p,pageItems:m||[]}));x((null==s?void 0:s.id)||""),b(e=>[a?s||{}:null,...e].filter(e=>null!==e)),Object.assign(r,{id:n,answer:i,createdAt:o,conversationId:(null==s?void 0:s.id)||"",sending:!1}),i.effect&&(null==d||d(i.effect))}catch(t){let e=(null==t||null==(i=t.response)||null==(n=i.data)?void 0:n.message)||t.message||"未知错误";console.error(e),Object.assign(r,{sending:!1,error:e})}S(e=>[...e]),j()},D=async e=>{var t;await (null==(t=f.ai)?void 0:t.removeMessage(e)),S(t=>t.filter(t=>t.id!==e))},O=(t=new Date,n=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),(i=new Date(t)).setDate(t.getDate()-1),r=[],a=[],o=[],s=[],_.forEach(e=>{let l=new Date(e.createdAt);if(n(l,t))r.push(e);else if(n(l,i))a.push(e);else l.getFullYear()===t.getFullYear()&&l.getMonth()===t.getMonth()?o.push(e):s.push(e)}),[{title:"今天",items:r},{title:"昨天",items:a},{title:"本月内",items:o},{title:"很久以前",items:s}].filter(e=>e.items.length>0)),z=async()=>{try{var e,t;let n=await (null==(e=f.ai)?void 0:e.conversationList(tR,h));b(n||[]);let i=null==n?void 0:n.find(e=>e.isActived);if(i){x(i.id);let e=await (null==(t=f.ai)?void 0:t.messageList(i.id));S(e||[]),j()}}catch(e){console.error(e)}};return(0,eh.useEffect)(()=>{z()},[f]),(0,eh.useEffect)(()=>{j()},[]),(0,ed.jsxs)(tz,{style:c,children:[(0,ed.jsx)(tO,{title:"智能助理",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"新对话",placement:"topRight",children:(0,ed.jsx)("a",{onClick:T,children:(0,ed.jsx)(tn,{type:"icon-chat-plus"})})}),(0,ed.jsx)(ti.Dropdown,{trigger:["click"],styles:{root:{boxShadow:"var(--ant-box-shadow-drawer-up)",backgroundColor:"#ffffff",borderRadius:"var(--ant-border-radius)"}},popupRender:()=>(0,ed.jsx)(tL,{children:O.map(e=>(0,ed.jsxs)("div",{className:"group",children:[(0,ed.jsx)("div",{className:"group-title",children:e.title}),(0,ed.jsx)("ul",{className:"group-list",children:e.items.map(e=>(0,ed.jsxs)("li",{className:e.isActived?"actived":"",children:[(0,ed.jsx)("a",{onClick:()=>I(e.id),children:e.name}),(0,ed.jsx)("small",{children:(0,ed.jsx)("a",{onClick:()=>k(e.id),children:(0,ed.jsx)(te.DeleteOutlined,{})})})]},e.id))})]},e.title))}),placement:"topRight",children:(0,ed.jsx)("a",{children:(0,ed.jsx)(te.HistoryOutlined,{})})}),u]}),style:{width:"initial"}}),(0,ed.jsxs)("div",{className:"body",children:[(0,ed.jsx)("div",{style:{flex:"1 1 auto",overflowY:"auto"},children:w.length?(0,ed.jsx)(tB,{ref:C,list:w,onDeleteMessage:D}):(0,ed.jsx)(tF,{})}),0===w.length&&_.length>0&&(0,ed.jsx)(ti.Card,{title:"历史记录",size:"small",variant:"borderless",styles:{header:{padding:0,border:"none"},body:{padding:0}},style:{padding:"12px 12px 0 12px"},children:(0,ed.jsx)("ul",{className:"conversation-list",children:_.slice(0,3).map(e=>(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("a",{children:[(0,ed.jsx)(te.MessageOutlined,{}),e.name]}),(0,ed.jsx)("small",{children:tf(e.createdAt)})]},e.id))})}),(0,ed.jsx)(tM,{agentList:l,style:{padding:12},atItems:m,onUploading:null==f?void 0:f.upload,onSubmit:M,onRemoveAtItem:g})]})]})},tN=em().div`
|
|
424
445
|
flex: 1 1 auto;
|
|
425
446
|
display: flex;
|
|
426
447
|
align-items: center;
|
|
@@ -458,7 +479,7 @@
|
|
|
458
479
|
font-size: 14px;
|
|
459
480
|
color: var(--ant-color-text-secondary);
|
|
460
481
|
}
|
|
461
|
-
`,
|
|
482
|
+
`,tF=()=>(0,ed.jsx)(tN,{children:(0,ed.jsxs)("div",{className:"content",children:[(0,ed.jsx)("div",{className:"logo",children:(0,ed.jsx)(tn,{type:"icon-ai-compute",style:{fontSize:60}})}),(0,ed.jsx)("div",{className:"title",children:"与 智能助理 协作"}),(0,ed.jsx)("div",{className:"desc",children:"自动化执行常规开发任务,端到端高效完成,提高交付效率"})]})}),tL=em().div`
|
|
462
483
|
width: 260px;
|
|
463
484
|
padding: 8px;
|
|
464
485
|
.group {
|
|
@@ -503,7 +524,7 @@
|
|
|
503
524
|
.group-list li small a {
|
|
504
525
|
color: var(--ant-color-error);
|
|
505
526
|
}
|
|
506
|
-
`,
|
|
527
|
+
`,tE=em().div`
|
|
507
528
|
height: 100%;
|
|
508
529
|
display: flex;
|
|
509
530
|
flex-direction: column;
|
|
@@ -640,7 +661,7 @@
|
|
|
640
661
|
}
|
|
641
662
|
}
|
|
642
663
|
}
|
|
643
|
-
`,
|
|
664
|
+
`,tB=(0,eh.forwardRef)((e,t)=>{let{list:n,onDeleteMessage:i}=e,r=(0,eh.useRef)(null),a=()=>{setTimeout(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},100)};return(0,eh.useImperativeHandle)(t,()=>({scrollToBottom:a})),(0,ed.jsx)(tE,{className:"message-list beautified_scrollbar",ref:r,children:n.map(e=>{var t,n,r,a,o,s,l,u,c,d;return(0,ed.jsxs)("div",{className:"msg",children:[(0,ed.jsxs)("div",{className:"user-message",children:[(0,ed.jsx)("div",{className:"msg-header",children:(0,ed.jsx)("span",{children:tf(e.createdAt)})}),(0,ed.jsxs)("div",{className:"msg-section",children:[(0,ed.jsxs)(ti.Space,{size:4,orientation:"vertical",className:"msg-tools",children:[(0,ed.jsx)(ti.Typography.Text,{copyable:{text:e.question,tooltips:"复制"}}),(0,ed.jsx)(ti.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>i(e.id),children:(0,ed.jsx)(ti.Tooltip,{title:"删除",children:(0,ed.jsx)(ti.Button,{type:"link",size:"small",icon:(0,ed.jsx)(te.DeleteOutlined,{})})})})]}),(0,ed.jsx)("div",{className:"msg-content",children:e.question}),(null==(t=e.files)?void 0:t.length)||(null==(n=e.agents)?void 0:n.length)||(null==(r=e.atItems)?void 0:r.length)?(0,ed.jsxs)("div",{className:"msg-meta",children:[null==(a=e.files)?void 0:a.map(e=>(0,ed.jsxs)(ti.Tag,{color:"processing",children:[(0,ed.jsx)(tn,{type:"icon-paper-clip"})," ",e.name]},e.id)),null==(o=e.agents)?void 0:o.map(e=>(0,ed.jsxs)(ti.Tag,{color:"blue",children:[(0,ed.jsx)(tn,{type:"icon-at"})," ",e.name]},e.id)),(e=>{try{if(e){if("object"==typeof e)return e;else if("string"==typeof e)return JSON.parse(e||"[]")}return[]}catch(e){return[]}})(e.atItems).map(e=>(0,ed.jsxs)(ti.Tag,{color:"blue",children:[(0,ed.jsx)(tn,{type:"icon-number"})," ",e.name]},e.id))]}):null]})]}),(0,ed.jsxs)("div",{className:"assistant-message",children:[(0,ed.jsx)("div",{className:"msg-header",children:(0,ed.jsxs)("span",{className:"msg-title",children:[(0,ed.jsx)(te.RobotOutlined,{})," 智能助理"]})}),(0,ed.jsx)("div",{className:"msg-section",children:e.sending?(0,ed.jsx)(ti.Skeleton,{active:!0}):(0,ed.jsxs)(ed.Fragment,{children:[e.error?(0,ed.jsxs)("div",{className:"msg-content error",children:["执行失败:",e.error]}):(0,ed.jsx)("div",{className:"msg-content",children:(null==(s=e.answer)?void 0:s.answer)||""}),!!(null==(u=e.answer)||null==(l=u.plans)?void 0:l.length)&&(0,ed.jsxs)("details",{className:"msg-ai-meta",open:!0,children:[(0,ed.jsx)("summary",{className:"msg-ai-meta-title",children:"PLANS:"}),(0,ed.jsx)("div",{className:"msg-ai-meta-list",children:e.answer.plans.map((e,t)=>(0,ed.jsx)(ti.Tooltip,{title:e.description,children:(0,ed.jsx)(ti.Tag,{color:"blue",children:e.name})},t))})]}),!!(null==(d=e.answer)||null==(c=d.extra)?void 0:c.length)&&(0,ed.jsxs)("details",{className:"msg-ai-meta",open:!0,children:[(0,ed.jsx)("summary",{className:"msg-ai-meta-title",children:"ACTIONS:"}),(0,ed.jsx)("div",{className:"msg-ai-meta-list vertical",children:e.answer.extra.map((e,t)=>(0,ed.jsxs)("div",{className:"msg-ai-meta-list-item",children:[(0,ed.jsx)(ti.Tag,{color:"gold",children:e.element}),(0,ed.jsx)("span",{children:e.action})]},t))})]})]})})]})]},e.id)})})}),tH=em().div`
|
|
644
665
|
display: flex;
|
|
645
666
|
flex-direction: column;
|
|
646
667
|
height: 100%;
|
|
@@ -679,7 +700,7 @@
|
|
|
679
700
|
font-size: 16px;
|
|
680
701
|
color: var(--ant-color-text-secondary);
|
|
681
702
|
}
|
|
682
|
-
`,
|
|
703
|
+
`,tV=e=>{let{}=e,{schema:t,selectedItem:n,setSelectedItem:i,plugins:r,forceUpdate:a}=(0,eh.useContext)(ev),o=(0,eh.useMemo)(()=>(r||[]).reduce((e,t)=>(e[t.key]=t,e),{}),[r]),s=(0,eh.useMemo)(()=>{let e=[],n=t=>{Array.isArray(t)&&t.forEach(t=>{e.push(t),Array.isArray(t.children)?n(t.children):"object"==typeof t.children&&t.children&&Object.keys(t.children).forEach(e=>n(t.children[e]))})};return n((null==t?void 0:t.items)||[]),e},[t]),l=(0,eh.useMemo)(()=>s.reduce((e,t)=>(t.id&&(e[t.id]=t),e),{}),[s]),u=e=>{n&&(i(Object.assign(n,{cascadeIds:e})),a())};return(0,ed.jsxs)(tH,{className:"cascade-panel",children:[(0,ed.jsx)(tO,{title:"联动",extra:(null==n?void 0:n.cascadeIds)?(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Dropdown,{menu:{onClick:e=>{let{key:t}=e,i=[...(null==n?void 0:n.cascadeIds)||[]];i.push(String(t)),u&&u(i)},items:s.map(e=>{var t,n;return{key:e.id,label:(0,ed.jsxs)("a",{children:[(0,ed.jsx)(tn,{type:null==(t=o[e.type])?void 0:t.icon})," ",e.name||(null==(n=o[e.type])?void 0:n.label)," (",e.id,")"]})}})},placement:"bottomLeft",trigger:["click"],children:(0,ed.jsxs)("a",{className:"toolbar",children:[(0,ed.jsx)(te.PlusOutlined,{}),(0,ed.jsx)(te.CaretDownOutlined,{style:{fontSize:8,verticalAlign:"sub"}})]})})}):null}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(null==n?void 0:n.cascadeIds)&&(0,ed.jsx)("ul",{children:(n.cascadeIds||[]).map((e,t)=>{var i,r,a,s,c;return(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{children:[(0,ed.jsx)(tn,{type:null==(i=o[null==(r=l[e])?void 0:r.type])?void 0:i.icon})," ",(null==(a=l[e])?void 0:a.name)||(null==(s=o[null==(c=l[e])?void 0:c.type])?void 0:s.label)," (",e,")"]}),(0,ed.jsx)(ti.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>{let e=[...n.cascadeIds||[]];e.splice(t,1),u&&u(e)},children:(0,ed.jsx)("a",{children:(0,ed.jsx)(te.DeleteOutlined,{})})})]},e)})})})]})};var tW=d(585),tG=d.n(tW);let tY=()=>{let{schema:e}=(0,eh.useContext)(ev),t=(0,eh.useMemo)(()=>JSON.stringify(e||{},null,2),[e]);return(0,ed.jsxs)("div",{className:"code-panel",style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsx)(tO,{title:"代码",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Tooltip,{title:"复制到剪切板",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{tG()(t||"")&&ti.message.success("复制成功")},children:(0,ed.jsx)(te.CopyOutlined,{})})})})}),(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex"},children:(0,ed.jsx)(ts(),{height:"100%",defaultLanguage:"json",value:t,options:{lineNumbers:"off",readOnly:!0,minimap:{enabled:!1}}})})]})},tU=em().div`
|
|
683
704
|
display: flex;
|
|
684
705
|
flex-direction: column;
|
|
685
706
|
height: 100%;
|
|
@@ -721,7 +742,7 @@
|
|
|
721
742
|
overflow: hidden;
|
|
722
743
|
font-size: 12px;
|
|
723
744
|
}
|
|
724
|
-
`,
|
|
745
|
+
`,tq=e=>{let{plugin:t}=e,n=(0,eh.useRef)(null);return(0,eh.useEffect)(()=>{let e=n.current;if(!e)return;let i=e7({element:e,getInitialData:()=>{let e={id:tp(),type:t.key,name:t.label,...JSON.parse(JSON.stringify(t.defaultOptions||{}))};return{id:e.id,data:e}},canDrag:()=>!0,onDragStart:()=>{},onDrop:()=>{}});return()=>i()},[]),(0,ed.jsxs)("div",{className:"plugin drag-move",ref:n,children:[(0,ed.jsx)(tn,{className:"icon",type:t.icon}),(0,ed.jsx)("div",{className:"label",children:t.label})]})},t$=()=>{let{plugins:e}=(0,eh.useContext)(ev),t=(0,eh.useMemo)(()=>{let t=[];return e.forEach(e=>{let n=t.find(t=>t.group===e.group);n?n.items.push(e):t.push({group:e.group,items:[e]})}),t},[e]);return(0,ed.jsxs)(tU,{className:"component-panel",children:[(0,ed.jsx)(tO,{title:"组件库"}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:t.map(e=>(0,ed.jsxs)("div",{className:"plugin-group",children:[(0,ed.jsx)("div",{className:"group-title",children:e.group}),(0,ed.jsx)("div",{className:"plugin-list",children:e.items.map(e=>(0,ed.jsx)(tq,{plugin:e},e.key))})]},e.group))})]})},tX=em().div`
|
|
725
746
|
display: flex;
|
|
726
747
|
flex-direction: column;
|
|
727
748
|
height: 100%;
|
|
@@ -758,7 +779,7 @@
|
|
|
758
779
|
.margin-bottom-0 {
|
|
759
780
|
margin-bottom: 0;
|
|
760
781
|
}
|
|
761
|
-
`,
|
|
782
|
+
`,tK=()=>{let{schema:e,setSchema:t}=(0,eh.useContext)(ev),[n,i]=(0,eh.useState)(!1),[r,a]=(0,eh.useState)(!1),[o,s]=(0,eh.useState)(-1),[l,u]=(0,eh.useState)({id:tp(),type:"api",name:"",url:"",method:"GET",headers:[],formData:[],body:""}),[c,d]=(0,eh.useState)({id:tp(),type:"sql",name:"",query:""}),h=(0,eh.useMemo)(()=>e.datasources,[e.datasources]),p=n=>{t({...e,datasources:n})},f=[{title:"键",dataIndex:"name",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.name,onChange:e=>{let t=[...l.headers];t[n]={...t[n],name:e.target.value},u({...l,headers:t})}})},{title:"值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>{let t=[...l.headers];t[n]={...t[n],value:e.target.value},u({...l,headers:t})}})},{title:"操作",width:50,align:"center",render:(e,t,n)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)("a",{onClick:()=>{let e=[...l.headers];e.splice(n,1),u({...l,headers:e})},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tX,{className:"datasource-panel",children:[(0,ed.jsx)(tO,{title:"数据源",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Dropdown,{menu:{onClick:e=>{let{key:t}=e;"api"===t?(s(-1),u({id:tp(),type:"api",name:"",url:"",method:"GET",headers:[],formData:[],body:""}),i(!0)):(s(-1),d({id:tp(),type:"sql",name:"",query:""}),a(!0))},items:[{key:"api",label:(0,ed.jsx)("a",{children:"API接口"})},{key:"sql",label:(0,ed.jsx)("a",{children:"SQL查询"})}]},placement:"bottom",children:(0,ed.jsxs)("a",{className:"toolbar",children:[(0,ed.jsx)(te.PlusOutlined,{}),(0,ed.jsx)(te.CaretDownOutlined,{style:{fontSize:8,verticalAlign:"sub"}})]})})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)("ul",{children:h.map((e,t)=>(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{title:e.name,children:[(0,ed.jsx)(tn,{type:"icon-drag"})," ",e.name]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{s(t),"api"===e.type?(u({...e}),i(!0)):(d({...e}),a(!0))},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)(ti.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>{let e;(e=[...h]).splice(t,1),p&&p(e)},children:(0,ed.jsx)("a",{children:(0,ed.jsx)(te.DeleteOutlined,{})})})]})]},e.id))})}),(0,ed.jsx)(ti.Modal,{title:"添加API接口",open:n,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>i(!1),footer:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{type:"primary",onClick:()=>{if(!l.name||!l.url)return;let e=[...h];-1===o?e.push(l):e[o]=l,p&&p(e),i(!1)},children:"确定"}),(0,ed.jsx)(ti.Button,{onClick:()=>i(!1),children:"取消"})]}),children:(0,ed.jsxs)(ti.Form,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Form.Item,{label:"接口名称",required:!0,children:(0,ed.jsx)(ti.Input,{value:l.name,onChange:e=>u({...l,name:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"接口URL",required:!0,children:(0,ed.jsx)(ti.Input,{value:l.url,onChange:e=>u({...l,url:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"请求方法",children:(0,ed.jsxs)(ti.Radio.Group,{value:l.method,onChange:e=>u({...l,method:e.target.value}),children:[(0,ed.jsx)(ti.Radio.Button,{value:"GET",children:"GET"}),(0,ed.jsx)(ti.Radio.Button,{value:"POST",children:"POST"}),(0,ed.jsx)(ti.Radio.Button,{value:"PUT",children:"PUT"}),(0,ed.jsx)(ti.Radio.Button,{value:"DELETE",children:"DELETE"})]})}),(0,ed.jsx)("label",{style:{display:"block",color:"#000000d9",padding:"8px 0"},children:"请求头"}),(0,ed.jsx)(ti.Table,{columns:f,dataSource:l.headers,pagination:!1,locale:{emptyText:"暂无数据"},size:"small",bordered:!0,rowKey:(e,t)=>String(t)}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>u({...l,headers:[...l.headers,{name:"",value:""}]}),children:"添加"}),(0,ed.jsx)("label",{style:{display:"block",color:"#000000d9",padding:"8px 0"},children:"表单数据"}),(0,ed.jsx)(ti.Table,{columns:f,dataSource:l.formData,pagination:!1,locale:{emptyText:"暂无数据"},size:"small",bordered:!0,rowKey:(e,t)=>`f-${t}`}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>u({...l,formData:[...l.formData,{name:"",value:""}]}),children:"添加"}),(0,ed.jsx)(ti.Form.Item,{label:"请求体",children:(0,ed.jsx)("div",{style:{border:"1px solid var(--ant-color-border)",borderRadius:"var(--ant-border-radius)",padding:1},children:(0,ed.jsx)(ts(),{height:"300px",defaultLanguage:"json",value:l.body,onChange:e=>u({...l,body:e||""}),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})}),(0,ed.jsx)(ti.Modal,{title:"添加SQL查询",open:r,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>a(!1),footer:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{type:"primary",onClick:()=>{if(!c.name||!c.query)return;let e=[...h];-1===o?e.push(c):e[o]=c,p&&p(e),a(!1)},children:"确定"}),(0,ed.jsx)(ti.Button,{onClick:()=>a(!1),children:"取消"})]}),children:(0,ed.jsxs)(ti.Form,{layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"查询名称",required:!0,children:(0,ed.jsx)(ti.Input,{value:c.name,onChange:e=>d({...c,name:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"查询语句",required:!0,children:(0,ed.jsx)("div",{style:{border:"1px solid var(--ant-color-border)",borderRadius:"var(--ant-border-radius)",padding:1},children:(0,ed.jsx)(ts(),{height:"300px",defaultLanguage:"sql",value:c.query,onChange:e=>d({...c,query:e||""}),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})})]})},tZ=em().div`
|
|
762
783
|
display: flex;
|
|
763
784
|
flex-direction: column;
|
|
764
785
|
height: 100%;
|
|
@@ -770,7 +791,7 @@
|
|
|
770
791
|
padding: 12px;
|
|
771
792
|
overflow: auto;
|
|
772
793
|
}
|
|
773
|
-
`,
|
|
794
|
+
`,tJ=em()(ti.Tree)`
|
|
774
795
|
.ant-tree-draggable-icon {
|
|
775
796
|
display: none;
|
|
776
797
|
}
|
|
@@ -780,7 +801,7 @@
|
|
|
780
801
|
overflow: hidden;
|
|
781
802
|
text-overflow: ellipsis;
|
|
782
803
|
}
|
|
783
|
-
`,
|
|
804
|
+
`,tQ=()=>{let{schema:e,setSchema:t,selectedItem:n,setSelectedItem:i,plugins:r}=(0,eh.useContext)(ev),[a,o]=(0,eh.useState)([]),s=(0,eh.useMemo)(()=>n?[n.id]:[],[n]),l=(0,eh.useMemo)(()=>{let t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e=>{let n,{id:i,type:r,children:a}=e;return Array.isArray(a)?n=t(a):"object"==typeof a&&a&&(n=[],Object.keys(a).forEach(e=>{Array.isArray(a[e])&&n.push({key:tp(),type:"slot",title:"插槽-"+e,slot:e,origin:a,children:t(a[e])})})),{key:i,title:e.name,item:e,type:r,children:n}})};return t(e.items)},[e]),u=(0,eh.useMemo)(()=>{let e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(t=>{var n,i,a;return{key:t.key,title:(0,ed.jsx)(ed.Fragment,{children:(null==t?void 0:t.title)||(n=t.type,i=t.slot,"slot"===n?"插槽-"+i:(null==(a=r.find(e=>e.key===n))?void 0:a.label)||n)}),children:t.children?e(t.children):void 0,dataRef:t}})};return e(l)},[l]);return(0,ed.jsxs)(tZ,{className:"layer-panel",children:[(0,ed.jsx)(tO,{title:"图层",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"全部展开",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{let t=[],n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(e=>{var i;t.push(e.id),(null==(i=e.children)?void 0:i.length)&&n(e.children)})};n(e.items),o(t)},children:(0,ed.jsx)(te.PlusSquareOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"全部收起",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>o([]),children:(0,ed.jsx)(te.MinusSquareOutlined,{})})})]})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)(tJ,{draggable:{icon:!1,nodeDraggable:e=>"slot"!==e.dataRef.type},showIcon:!1,showLine:{showLeafIcon:!1},treeData:u,selectedKeys:s,expandedKeys:a,onSelect:(e,t)=>{var n;"slot"!==t.node.dataRef.type&&(i&&i(t.node.dataRef.item),null==(n=document.getElementById(`page-item-${t.node.dataRef.item.id}`))||n.scrollIntoView({behavior:"smooth"}))},onDrop:n=>{let i;if(!(e=>{let t=e.node,n=e.dragNode;if("slot"===n.dataRef.type||!e.dropToGap&&!["b-row","b-col","b-card","slot"].includes(t.dataRef.type))return!1;if("b-col"===n.dataRef.type)if(!e.dropToGap)return"b-row"===t.dataRef.type;else return"b-col"===t.dataRef.type;return("b-col"!==t.dataRef.type||!e.dropToGap)&&("b-row"!==t.dataRef.type||!!e.dropToGap)||"b-col"===n.dataRef.type})(n))return;let r=n.node.key,a=n.dragNode.key,o=n.node.pos.split("-"),s=n.dropPosition-Number(o[o.length-1]),l=(e,t,n)=>{e.forEach((e,i,r)=>{if(e.id===t)return(e.children=e.children||[],"slot"===e.type)?n(e,i,r,e.children[e.slot]):n(e,i,r,e.children);if(Array.isArray(e.children))return l(e.children,t,n);if("object"==typeof e.children)for(let i in e.children)Array.isArray(e.children[i])&&l(e.children[i],t,n)})},u=e.items;if(l(u,a,(e,t,n)=>{n.splice(t,1),i=e}),n.dropToGap)if((n.node.children||[]).length>0&&n.node.expanded&&1===s)l(u,r,(e,t,n)=>{e.children=e.children||[],e.children.unshift(i)});else{let e=[],t=0;l(u,r,(n,i,r)=>{e=r,t=i}),-1===s?e.splice(t,0,i):e.splice(t+1,0,i)}else if("slot"===n.node.dataRef.type){let{slot:e,origin:t}=n.node.dataRef;t[e]=t[e]||[],t[e].push(i)}else l(u,r,e=>{e.children=e.children||[],e.children.push(i)});t&&t({...e,items:u})},onExpand:e=>o(e)})})]})},t1=em().div`
|
|
784
805
|
display: flex;
|
|
785
806
|
flex-direction: column;
|
|
786
807
|
height: 100%;
|
|
@@ -810,7 +831,7 @@
|
|
|
810
831
|
margin: 0;
|
|
811
832
|
}
|
|
812
833
|
}
|
|
813
|
-
`,
|
|
834
|
+
`,t0=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=e=>{Array.isArray(e)&&e.forEach(e=>{t.push(e),Array.isArray(e.children)?n(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>n(e.children[t]))})};return n(e||[]),t},t2=e=>{var t,n,i,r,a,o,s;let{datasourceEnable:l=!0}=e,{plugins:u,selectedItem:c,updateSelectedItem:d,schema:h,setSchema:p,datasetSelector:f,datasetAdd:m}=(0,eh.useContext)(ev),g=(0,eh.useRef)(null),[v,y]=(0,eh.useState)("1"),x=(0,eh.useMemo)(()=>t0((null==h?void 0:h.items)||[]),[h]),_=(0,eh.useMemo)(()=>c&&x.find(e=>e.id===c.id),[x,c]),b=_?v:"1",w=(0,eh.useMemo)(()=>u.find(e=>e.key===(null==c?void 0:c.type)),[u,c]),S=null==w?void 0:w.formComponent,C=(null==c?void 0:c.props)||{},j=(null==c?void 0:c.style)||{},[T,k]=(0,eh.useState)((null==h?void 0:h.info)||{}),[I,M]=(0,eh.useState)((null==c?void 0:c.datasource)||{}),[D,O]=(0,eh.useState)(!1),[z,A]=(0,eh.useState)(!1),R=e=>{p({...h,info:e})},P={Authorization:`Bearer ${localStorage.getItem("ASKDATA_TOKEN")||""}`};return ep().useEffect(()=>{y(c?"2":"1"),M((null==c?void 0:c.datasource)||{})},[c]),(0,ed.jsxs)(t1,{className:"properties-panel",children:[(0,ed.jsx)(tO,{title:"属性",extra:(0,ed.jsxs)(ti.Radio.Group,{value:b,size:"small",buttonStyle:"outline",onChange:e=>y(e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"1",children:"页面"}),_&&(0,ed.jsx)(ti.Radio.Button,{value:"2",children:"组件"})]})}),(0,ed.jsxs)("div",{className:"body beautified_scrollbar always",children:["1"===b&&(0,ed.jsxs)(ti.Form,{labelCol:{span:24},wrapperCol:{span:24},className:"ant-form-compact",children:[(0,ed.jsx)(ti.Form.Item,{label:"页面名称",children:(0,ed.jsx)(ti.Input,{size:"small",value:null==T?void 0:T.name,placeholder:"请输入页面名称",onChange:e=>{let t={...T,name:e.target.value};k(t),R&&R(t)}})}),(0,ed.jsx)(ti.Form.Item,{label:"页面描述",children:(0,ed.jsx)(ti.Input.TextArea,{size:"small",value:null==T?void 0:T.description,placeholder:"请输入页面描述",onChange:e=>{let t={...T,description:e.target.value};k(t),R&&R(t)}})}),(0,ed.jsxs)(ti.Form.Item,{label:"封面",children:[(0,ed.jsxs)(ti.Upload.Dragger,{name:"file",multiple:!1,accept:".png,.jpg,.jpeg",headers:P,action:"/api/datareport/upload",showUploadList:!1,beforeUpload:e=>e.type.startsWith("image/"),onChange:e=>{if("done"===e.file.status){var t;let n={url:null==(t=e.file.response)?void 0:t.data,name:e.file.name},i={...T,cover:n};k(i),R&&R(i)}},children:[(0,ed.jsx)("p",{className:"ant-upload-drag-icon",children:(0,ed.jsx)(te.InboxOutlined,{})}),(0,ed.jsx)("p",{className:"ant-upload-text",children:"点击或将文件拖拽到此区域进行上传"}),(0,ed.jsx)("p",{className:"ant-upload-hint",children:"严禁上传公司数据或其他被禁止的文件。"})]}),(null==T||null==(t=T.cover)?void 0:t.url)&&(0,ed.jsxs)("div",{style:{marginTop:10,textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,ed.jsx)("label",{children:"封面预览"}),(0,ed.jsx)("a",{onClick:()=>{let e={...T,cover:null};k(e),R&&R(e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]}),(0,ed.jsx)("img",{src:T.cover.url,style:{width:"100%",maxHeight:200}})]})]})]}),"2"===b&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Divider,{children:"基础属性"}),(0,ed.jsxs)(ti.Form,{labelCol:{span:24},wrapperCol:{span:24},className:"ant-form-compact",children:[(0,ed.jsx)(ti.Form.Item,{label:"组件标识",labelCol:{span:5},wrapperCol:{span:19},children:(null==c?void 0:c.id)||""}),(0,ed.jsx)(ti.Form.Item,{label:"组件名称",children:(0,ed.jsx)(ti.Input,{size:"small",value:null==c?void 0:c.name,onChange:e=>d&&d({...c,name:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"组件描述",children:(0,ed.jsx)(ti.Input.TextArea,{size:"small",value:null==c?void 0:c.description,onChange:e=>d&&d({...c,description:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"隐藏组件",tooltip:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{children:"当下方表达式(JS)不为空且为true时组件隐藏。"}),(0,ed.jsx)("div",{children:(0,ed.jsx)("small",{children:"1.环境变量:$e.变量名。"})}),(0,ed.jsx)("div",{children:(0,ed.jsx)("small",{children:"2.全局变量:$g.变量名。"})}),(0,ed.jsx)("div",{children:(0,ed.jsx)("small",{children:"示例:$e.a === '1'。"})})]}),children:(0,ed.jsx)(ti.Input.TextArea,{size:"small",value:null==c?void 0:c.hideExpression,onChange:e=>d&&d({...c,hideExpression:e.target.value})})})]}),(null==c?void 0:c.datasource)&&(0,ed.jsx)(ti.Divider,{children:"数据源"}),(null==c?void 0:c.datasource)&&(0,ed.jsxs)(ti.Form,{className:"ant-form-compact",children:[(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:"数据来源"}),labelCol:{span:5},wrapperCol:{span:19},colon:!1,children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:null==I?void 0:I.source,onChange:e=>{let t={...I||{},source:e.target.value};M(t),d&&d({...c,datasource:t})},children:[!!f&&(0,ed.jsx)(ti.Radio.Button,{value:"dataset",children:"数据集"}),l&&(0,ed.jsx)(ti.Radio.Button,{value:"define",children:"数据源"}),(0,ed.jsx)(ti.Radio.Button,{value:"custom",children:"自定义"})]})}),(null==I?void 0:I.source)==="dataset"&&f&&(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsx)(ti.Form.Item,{label:"数据集",labelCol:{span:5},wrapperCol:{span:19},children:(0,ed.jsxs)(ti.Space.Compact,{children:[(0,ed.jsx)(ti.Input,{size:"small",readOnly:!0,value:(null==I||null==(n=I.dataset)?void 0:n.name)||"",style:{width:90}}),!!(null==I||null==(r=I.dataset)||null==(i=r.id)?void 0:i.length)&&(null==I||null==(a=I.dataset)?void 0:a.output)&&(0,ed.jsx)(ti.Popover,{title:"输出类型",placement:"left",content:(0,ed.jsx)("div",{style:{padding:"0 12px",maxWidth:500,maxHeight:500,overflow:"auto"},children:(0,ed.jsx)(t3,{output:I.dataset.output})}),children:(0,ed.jsx)(ti.Button,{size:"small",style:{color:"var(--ant-color-text-tertiary)"},title:"查看输出类型",children:(0,ed.jsx)(tn,{type:"icon-json"})})}),!!(null==I||null==(s=I.dataset)||null==(o=s.id)?void 0:o.length)&&(0,ed.jsx)(ti.Button,{size:"small",icon:(0,ed.jsx)(te.CloseOutlined,{}),onClick:()=>{let e={...I||{},dataset:{id:"",name:"",output:{fields:[]}}};M(e),d&&d({...c,datasource:e})},title:"删除数据集",style:{color:"var(--ant-color-text-tertiary)"}}),m&&(0,ed.jsx)(ti.Button,{size:"small",icon:(0,ed.jsx)(te.PlusOutlined,{}),title:"新建数据集",onClick:()=>A(!0)}),(0,ed.jsx)(ti.Button,{size:"small",icon:(0,ed.jsx)(te.SelectOutlined,{}),title:"选择数据集",onClick:()=>O(!0)})]})})}),(null==I?void 0:I.source)==="define"&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Form.Item,{label:"数据源",layout:"vertical",children:(0,ed.jsx)(ti.Select,{size:"small",value:null==I?void 0:I.datasourceId,onChange:e=>{let t={...I||{},datasourceId:e};M(t),d&&d({...c,datasource:t})},children:((null==h?void 0:h.datasources)||[]).map(e=>(0,ed.jsx)(ti.Select.Option,{value:e.id,children:e.name},e.id))})}),(0,ed.jsx)(ti.Form.Item,{label:"数据处理脚本",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{size:"small",value:null==I?void 0:I.scriptId,onChange:e=>{let t={...I||{},scriptId:e};M(t),d&&d({...c,datasource:t})},children:((null==h?void 0:h.scripts)||[]).map(e=>(0,ed.jsx)(ti.Select.Option,{value:e.id,children:e.name},e.id))})})]}),(null==I?void 0:I.source)==="custom"&&(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["自定义",(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=g.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tn,{type:"icon-formate"})," 格式化"]})]}),labelCol:{span:24},wrapperCol:{span:24},className:"ant-form-item-label-space",children:(0,ed.jsx)("div",{style:{border:"1px solid var(--ant-color-border)",borderRadius:"var(--ant-border-radius)",padding:1},children:(0,ed.jsx)(ts(),{height:"200px",onMount:e=>{g.current={editor:e}},defaultLanguage:"json",value:(null==I?void 0:I.custom)||"",onChange:e=>{let t={...I||{},custom:e||""};M(t),d&&d({...c,datasource:t})},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})})]}),S&&(0,ed.jsx)(ti.Divider,{children:"特有属性"}),S&&(0,ed.jsx)(S,{model:C,customStyle:j,onChange:e=>{c&&d&&d({...c,props:e})}})]})]}),!!f&&c&&(0,ed.jsx)(ti.Drawer,{title:"选择数据集",size:800,open:D,onClose:()=>{O(!1)},children:f(e=>{I.dataset=e,d({...c,datasource:{...c.datasource,dataset:e}}),O(!1)})}),!!m&&c&&z&&m(c,e=>{I.dataset=e,d({...c,datasource:{...c.datasource,dataset:e}}),A(!1)},()=>{A(!1)})]})},t3=e=>{let{output:t}=e,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e&&0!==e.length?(0,ed.jsxs)(ed.Fragment,{children:["{",e.map((i,r)=>(0,ed.jsxs)("div",{style:{paddingLeft:"1em"},children:[(0,ed.jsx)("span",{style:{color:"var(--ant-color-primary)"},children:i.key}),":"," ","ARRAY"===i.type?(0,ed.jsxs)(ed.Fragment,{children:["Array","<",i.schema?n(i.schema.fields,t+1):(0,ed.jsx)("span",{children:"any"}),">"]}):"OBJECT"===i.type?i.schema?n(i.schema.fields,t+1):(0,ed.jsx)("span",{children:"{}"}):(0,ed.jsx)("span",{style:{color:"var(--ant-color-success)"},children:(i.type||"string").toLowerCase()}),r<e.length-1?",":""]},i.key||r)),"}"]}):(0,ed.jsx)("span",{children:"{}"})};return(0,ed.jsx)("pre",{style:{margin:"8px 0",padding:"8px",background:"var(--ant-color-fill-alter)",borderRadius:"var(--ant-border-radius-sm)",fontSize:"12px",fontFamily:"monospace",overflowX:"auto",border:"1px solid var(--ant-color-border-secondary)"},children:n(t.fields)})},t4=em().div`
|
|
814
835
|
display: flex;
|
|
815
836
|
flex-direction: column;
|
|
816
837
|
height: 100%;
|
|
@@ -849,7 +870,7 @@
|
|
|
849
870
|
font-size: 14px;
|
|
850
871
|
padding: 0 50px;
|
|
851
872
|
}
|
|
852
|
-
`,
|
|
873
|
+
`,t5=()=>{let{schema:e,setSchema:t}=(0,eh.useContext)(ev),[n,i]=ep().useState(!1),[r,a]=ep().useState(-1),[o]=ti.Form.useForm(),s=(0,eh.useMemo)(()=>e.scripts||[],[e]),l=n=>{t({...e,scripts:n})},u=async()=>{let e=await o.validateFields().catch(()=>null);if(!e)return;let t=[...s];-1===r?t.push({id:Math.random().toString(36).slice(2,10),...e}):t[r]={...t[r],...e},l&&l(t),i(!1),a(-1),o.resetFields()};return(0,ed.jsxs)(t4,{className:"script-panel",children:[(0,ed.jsx)(tO,{title:"脚本",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{a(-1),o.setFieldsValue({name:"",script:"return {};"}),i(!0)},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)("ul",{children:s.map((e,t)=>(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{title:e.name,children:[(0,ed.jsx)(tn,{type:"icon-drag"})," ",e.name]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{a(t),o.setFieldsValue({name:e.name,script:e.script}),i(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e=[...s];e.splice(t,1),l&&l(e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]})]},e.id||t))})}),(0,ed.jsx)(ti.Modal,{title:"添加脚本",open:n,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>i(!1),footer:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{type:"primary",onClick:u,children:"确定"}),(0,ed.jsx)(ti.Button,{onClick:()=>i(!1),children:"取消"})]}),children:(0,ed.jsxs)(ti.Form,{form:o,layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"脚本名称",name:"name",rules:[{required:!0,message:"请输入脚本名称"}],children:(0,ed.jsx)(ti.Input,{})}),(0,ed.jsx)(ti.Form.Item,{label:"脚本语句",name:"script",rules:[{required:!0,message:"请输入脚本语句"}],children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9"},children:[(0,ed.jsxs)("div",{className:"function-wrapper",children:["function fixed(data) ","{"]}),(0,ed.jsx)(ts(),{height:"200px",defaultLanguage:"javascript",value:o.getFieldValue("script"),onChange:e=>o.setFieldsValue({script:e||""}),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{className:"function-wrapper",children:"}"})]})})]})})]})},t8=em().div`
|
|
853
874
|
display: flex;
|
|
854
875
|
flex-direction: column;
|
|
855
876
|
height: 100%;
|
|
@@ -860,7 +881,7 @@
|
|
|
860
881
|
gap: 12px;
|
|
861
882
|
padding: 12px;
|
|
862
883
|
}
|
|
863
|
-
`,
|
|
884
|
+
`,t9=()=>{let{schema:e,setSchema:t,setGlobalEnv:n}=(0,eh.useContext)(ev),[i,r]=ep().useState(!1),[a,o]=ep().useState(-1),[s]=ti.Form.useForm(),l=(0,eh.useMemo)(()=>e.variables||[],[e.variables]),u=i=>{t({...e,variables:i}),i.forEach(e=>{n(e.name,e.value)})},c=[{title:"名称",dataIndex:"name",render:(e,t)=>(0,ed.jsxs)("div",{title:e,children:[(0,ed.jsx)(tn,{type:"icon-drag"})," ",e]})},{title:"值",dataIndex:"value"},{title:"操作",width:60,align:"center",render:(e,t,n)=>(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{o(n),s.setFieldsValue({name:t.name,value:t.value}),r(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)(ti.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>{let e=[...l];e.splice(n,1),u&&u(e)},children:(0,ed.jsx)("a",{children:(0,ed.jsx)(te.DeleteOutlined,{})})})]})}],d=async()=>{let e=await s.validateFields().catch(()=>null);if(!e)return;let t=[...l];-1===a?t.push({...e}):t[a]={...t[a],...e},u&&u(t),r(!1),o(-1),s.resetFields()};return(0,ed.jsxs)(t8,{children:[(0,ed.jsx)(tO,{title:"环境变量",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{o(-1),s.resetFields(),r(!0)},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)(ti.Table,{rowKey:e=>e.id||e.name,dataSource:l,columns:c,pagination:!1,size:"small",locale:{emptyText:"暂无环境变量"}})}),(0,ed.jsx)(ti.Modal,{title:"添加环境变量",open:i,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>r(!1),footer:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{type:"primary",onClick:d,children:"确定"}),(0,ed.jsx)(ti.Button,{onClick:()=>r(!1),children:"取消"})]}),children:(0,ed.jsxs)(ti.Form,{form:s,layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"环境变量名称",name:"name",rules:[{required:!0,message:"请输入环境变量名称"}],children:(0,ed.jsx)(ti.Input,{})}),(0,ed.jsx)(ti.Form.Item,{label:"环境变量值",name:"value",rules:[{required:!0,message:"请输入环境变量值"}],children:(0,ed.jsx)(ti.Input,{})})]})})]})},t6=em().div`
|
|
864
885
|
display: flex;
|
|
865
886
|
flex-direction: column;
|
|
866
887
|
height: 100%;
|
|
@@ -872,7 +893,7 @@
|
|
|
872
893
|
padding: 12px;
|
|
873
894
|
overflow: auto;
|
|
874
895
|
}
|
|
875
|
-
`,
|
|
896
|
+
`,t7=ep().forwardRef((e,t)=>{let{renderNode:n}=e,i=(0,eh.useRef)(null);(0,eh.useImperativeHandle)(t,()=>({reload:r}));let r=()=>{var e;null==(e=i.current)||e.reload()};return(0,ed.jsxs)(t6,{className:"dataset-panel",children:[(0,ed.jsx)(tO,{title:"数据集",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{var e;null==(e=i.current)||e.handleAdd()},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)(n,{ref:i})})]})}),ne=em().div`
|
|
876
897
|
display: flex;
|
|
877
898
|
flex-direction: column;
|
|
878
899
|
height: 100%;
|
|
@@ -927,7 +948,7 @@
|
|
|
927
948
|
font-size: 16px;
|
|
928
949
|
color: var(--ant-color-text-secondary);
|
|
929
950
|
}
|
|
930
|
-
`,
|
|
951
|
+
`,nt=e=>{var t;let{}=e,{selectedItem:n,setSelectedItem:i,plugins:r,forceUpdate:a}=(0,eh.useContext)(ev),o=(0,eh.useMemo)(()=>(r||[]).find(e=>e.key===(null==n?void 0:n.type)),[r,null==n?void 0:n.type]),s=(null==o?void 0:o.events)||[],l=s.reduce((e,t)=>(e[t.handler]=t.name,e),{}),u=e=>{n&&(i(Object.assign(n,{events:e})),a())};return(0,ed.jsxs)(ne,{className:"cascade-panel",children:[(0,ed.jsx)(tO,{title:"事件",extra:(null==o?void 0:o.events)?(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Dropdown,{menu:{onClick:e=>{let{key:t}=e,i=[...(null==n?void 0:n.events)||[]];i.push({name:t,script:""}),u&&u(i)},items:s.filter(e=>{var t;return!(null==(t=(null==n?void 0:n.events)||[])?void 0:t.some(t=>t.name===e.handler))}).map(e=>({key:e.handler,label:`${e.name}(${e.handler})`}))},placement:"bottomRight",trigger:["click"],children:(0,ed.jsxs)("a",{className:"toolbar",children:[(0,ed.jsx)(te.PlusOutlined,{}),(0,ed.jsx)(te.CaretDownOutlined,{style:{fontSize:8,verticalAlign:"sub"}})]})})}):null}),(0,ed.jsxs)("div",{className:"body beautified_scrollbar",children:[(0,ed.jsx)(ti.Divider,{children:"事件列表"}),(null==n||null==(t=n.events)?void 0:t.length)?(0,ed.jsx)("ul",{children:(n.events||[]).map((e,t)=>{let{name:i,script:r}=e;return(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{children:[(0,ed.jsx)(tn,{type:"icon-thunderbolt"})," ",l[i],"(",i,")"]}),(0,ed.jsx)("div",{style:{border:"solid 1px var(--ant-color-border)",borderRadius:"var(--ant-border-radius-sm)"},children:(0,ed.jsx)(to.Editor,{height:"200px",defaultLanguage:"javascript",value:r||"",onChange:e=>{let i=[...(null==n?void 0:n.events)||[]];i[t].script=e||"",u&&u(i)},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})]},i)})}):(0,ed.jsx)(ti.Empty,{description:"暂无事件",image:ti.Empty.PRESENTED_IMAGE_SIMPLE}),(0,ed.jsx)(ti.Divider,{children:"脚本说明"}),(0,ed.jsx)("div",{children:(0,ed.jsxs)("ul",{className:"tips",children:[(0,ed.jsxs)("li",{children:["内置参数:param(类型:Object)",(0,ed.jsxs)("ul",{style:{margin:"8px 0 0 20px"},children:[(0,ed.jsx)("li",{children:"param.item: 当前事件触发的组件。"}),(0,ed.jsx)("li",{children:"param.sourceId: 当前事件触发的组件ID。"}),(0,ed.jsx)("li",{children:"param.arg: 事件触发时传递的参数。"})]})]}),(0,ed.jsx)("li",{children:"脚本禁止使用以下 API:window, document, global, process, require, module, exports, cookie, localStorage, sessionStorage。"}),(0,ed.jsx)("li",{children:"组件方法调用:callMethod(targetId, methodName, arg)。"}),(0,ed.jsx)("li",{children:"环境变量设置:updateEnv(key, value)。"})]})})]})]})},nn=em().div`
|
|
931
952
|
display: flex;
|
|
932
953
|
flex-direction: column;
|
|
933
954
|
height: 100%;
|
|
@@ -938,7 +959,7 @@
|
|
|
938
959
|
gap: 12px;
|
|
939
960
|
padding: 12px;
|
|
940
961
|
}
|
|
941
|
-
`,
|
|
962
|
+
`,ni=()=>{let[e,t]=(0,eh.useState)(!1),[n]=ti.Form.useForm(),{schema:i,datasetSelector:r,setSchema:a}=(0,eh.useContext)(ev),o=(0,eh.useMemo)(()=>(null==i?void 0:i.datasets)||[],[i]),s=(0,eh.useMemo)(()=>i.variables||[],[i.variables]);return(0,ed.jsxs)(nn,{children:[(0,ed.jsx)(tO,{title:"全局数据集",extra:(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{n.resetFields(),t(!0)},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:o.map((e,t)=>(0,ed.jsx)(ti.Card,{title:e.name,size:"small",variant:"outlined",extra:(0,ed.jsx)(ti.Popconfirm,{title:"确认删除吗?",onConfirm:()=>{a(t=>({...t,datasets:o.filter(t=>t.id!==e.id)}))},children:(0,ed.jsx)("a",{className:"toolbar",children:(0,ed.jsx)(te.DeleteOutlined,{})})}),styles:{header:{minHeight:0}},children:(0,ed.jsxs)(ti.Form,{layout:"vertical",size:"small",styles:{label:{fontSize:12,color:"var(--ant-color-text-label)"}},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input,{name:"key",size:"small",value:e.key,placeholder:"请输入变量名",onChange:e=>{o[t].key=e.target.value,a(e=>({...e,datasets:[...o]}))},style:{width:"100%"}})}),(0,ed.jsx)(ti.Form.Item,{label:"依赖环境变量",style:{marginBottom:10},children:(0,ed.jsx)(ti.Select,{size:"small",mode:"multiple",options:s.map(e=>({label:e.name,value:e.name})),placeholder:"请选择依赖环境变量",style:{width:"100%"},value:e.dependencies,notFoundContent:"暂无依赖环境变量",onChange:e=>{o[t].dependencies=e,a(e=>({...e,datasets:[...o]}))}})}),(0,ed.jsx)(ti.Form.Item,{label:"AI解读提示词",tooltip:"用于AI解读数据集,为空时不进行解读",style:{marginBottom:0},children:(0,ed.jsx)(ti.Input.TextArea,{size:"small",value:e.aiPrompt,onChange:e=>{o[t].aiPrompt=e.target.value,a(e=>({...e,datasets:[...o]}))},rows:4})})]})},t))}),!!r&&(0,ed.jsx)(ti.Drawer,{title:"选择数据集",size:800,open:e,onClose:()=>{t(!1)},children:r(e=>{t(!1),a(t=>({...t,datasets:[...o,{id:e.id,name:e.name,key:e.id,output:e.output,dependencies:[]}]}))})})]})},nr=em().div`
|
|
942
963
|
height: 100%;
|
|
943
964
|
display: grid;
|
|
944
965
|
background: #ffffff;
|
|
@@ -1058,19 +1079,72 @@
|
|
|
1058
1079
|
background: transparent;
|
|
1059
1080
|
}
|
|
1060
1081
|
}
|
|
1061
|
-
`,nr=e=>{let{open:t,onCancel:n,onOk:i}=e,[r,a]=(0,eh.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(ti.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==i?void 0:i(JSON.parse(r)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(to.Editor,{height:"100%",defaultLanguage:"json",value:r,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},na=ep().forwardRef((e,t)=>{var n;let i,{pageId:r,agentList:a=[],plugins:o=[],headerExtra:s,datasourceEnable:l=!0,scriptEnable:u=!0,datasetPanel:c,datasetSelector:d,datasetAdd:h,fetch:p,onSave:f,loading:m=!1}=e,g=(0,eh.useRef)(null),v=(0,eh.useRef)(null),[y,x]=(0,eh.useState)(1),[_,b]=(0,eh.useState)([]),[w,S]=(0,eh.useState)([]),[C,j]=(0,eh.useState)(!1),[T,k]=(0,eh.useState)("desktop"),[I,M]=(0,eh.useState)("component"),[D,O]=(0,eh.useState)((null==p?void 0:p.ai)?"ai":"props"),[z,A]=(0,eh.useState)(!0),[R,P]=(0,eh.useState)(!0),[N,F]=(0,eh.useState)(null),[L,E]=(0,eh.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[B,H]=(0,eh.useState)(!0),[V,W]=(0,eh.useState)(!1),[G,Y]=(0,eh.useState)(!1),U=(0,eh.useMemo)(()=>{let e=z?"250px":"",t=R?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[z,R]),q=(0,eh.useMemo)(()=>({display:z?"flex":"none"}),[z]),$=(0,eh.useMemo)(()=>({display:R?"flex":"none"}),[R]);n=[L],(i=(0,eh.useRef)()).current===JSON.stringify(n)&&i.current||(i.current=JSON.stringify(n),(()=>{C||(b(e=>e.length?[...e,JSON.parse(JSON.stringify(L))].slice(-50):[JSON.parse(JSON.stringify(L))]),S([]))})()),(0,eh.useImperativeHandle)(t,()=>({handleOpen(e){j(!0),X(e.items),E(e),b([JSON.parse(JSON.stringify(e))]),S([]),setTimeout(()=>j(!1),0)}}));let X=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||th()),Array.isArray(e.children)?X(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&X(e.children[t],th())})})},K=e=>{var t,n,i;if((null==(t=e.datasets)?void 0:t.length)&&(null==v||null==(n=v.current)?void 0:n.reload)&&v.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));X(t.items),E(t)}else if(null==(i=e.pageItems)?void 0:i.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(L)),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,r)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:i,insertSlot:a,pageItem:s}=t;switch(i){case"before":e.splice(r,0,s);break;case"after":e.splice(r+1,0,s);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,s);break;case"insert":var l,u,c;let d=o.find(e=>e.key===n.type);Array.isArray(null==d||null==(l=d.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],s]:"object"==typeof(null==d||null==(u=d.defaultOptions)?void 0:u.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(c=n.children)?void 0:c[a])||[],s]})}}),Array.isArray(n.children)?i(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&i(n.children[e])})})};i(n.items),E(n)}},Z=(0,eh.useMemo)(()=>"cascade"!==D||(null==N?void 0:N.cascadeIds)?D:"props",[N,D]),J=(0,eh.useMemo)(()=>(o||[]).find(e=>e.key===(null==N?void 0:N.type)),[o,null==N?void 0:N.type]);return(0,ed.jsxs)(ey,{pageId:r,designable:B,plugins:o,schema:L,selectedItem:N,setSchema:E,setSelectedItem:F,datasetSelector:d,datasetAdd:h,fetch:p,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"保存",children:(0,ed.jsx)(ti.Button,{type:"link",className:"toolbar",onClick:()=>{null==f||f(L)},loading:m,children:(0,ed.jsx)(te.SaveOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${_.length>1?"active":""}`,onClick:()=>{b(e=>{if(e.length<=1)return e;j(!0);let t=e[e.length-2];return S(e=>[...e,JSON.parse(JSON.stringify(L))]),E(t),F(null),setTimeout(()=>j(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(te.UndoOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{S(e=>e.length?(j(!0),b(e=>[...e,JSON.parse(JSON.stringify(L))]),E(e[e.length-1]),F(null),setTimeout(()=>j(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(te.RedoOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{W(!0)},children:(0,ed.jsx)(te.ImportOutlined,{})})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.max(y-.1,.5).toFixed(1))),children:(0,ed.jsx)(te.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*y).toFixed(0),"%"]}),(0,ed.jsx)(ti.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.min(y+.1,2).toFixed(1))),children:(0,ed.jsx)(te.ZoomInOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(1),children:(0,ed.jsx)(tn,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${z?"active":""}`,onClick:()=>{A(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tn,{type:"icon-sider-l"})})}),(0,ed.jsx)(ti.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${R?"active":""}`,onClick:()=>{P(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tn,{type:"icon-sider-r"})})}),s]})]}),(0,ed.jsxs)(ni,{style:U,children:[(0,ed.jsxs)("div",{className:"left",style:q,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(ti.Radio.Group,{value:I,onChange:e=>M(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(ti.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"component",children:(0,ed.jsx)(tn,{type:"icon-puzzle"})})}),(0,ed.jsx)(ti.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"layer",children:(0,ed.jsx)(tn,{type:"icon-outline"})})}),!!c&&(0,ed.jsx)(ti.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tn,{type:"icon-dataset"})})}),l&&(0,ed.jsx)(ti.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tn,{type:"icon-datasource"})})}),u&&(0,ed.jsx)(ti.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"script",children:(0,ed.jsx)(tn,{type:"icon-js"})})}),(0,ed.jsx)(ti.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"env",children:(0,ed.jsx)(tn,{type:"icon-variable"})})}),(0,ed.jsx)(ti.Tooltip,{title:"全局数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"global-dataset",children:(0,ed.jsx)(tn,{type:"icon-datasource-g"})})}),(0,ed.jsx)(ti.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"code",children:(0,ed.jsx)(tn,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===I&&(0,ed.jsx)(tq,{}),"layer"===I&&(0,ed.jsx)(tJ,{}),l&&"datasource"===I&&(0,ed.jsx)(tX,{}),u&&"script"===I&&(0,ed.jsx)(t4,{}),"env"===I&&(0,ed.jsx)(t8,{}),"code"===I&&(0,ed.jsx)(tG,{}),!!c&&"dataset"===I&&(0,ed.jsx)(t6,{ref:v,renderNode:c}),"global-dataset"===I&&(0,ed.jsx)(nn,{})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tD,{title:"页面",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{size:"small",type:B?"default":"primary",icon:B?(0,ed.jsx)(te.EyeInvisibleOutlined,{}):(0,ed.jsx)(te.EyeOutlined,{}),onClick:()=>H(!B)}),(0,ed.jsxs)(ti.Radio.Group,{value:T,onChange:e=>k(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(ti.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(te.DesktopOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(te.MobileOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(te.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{className:["body beautified_scrollbar always",T].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${y})`,transformOrigin:"top center"},children:(0,ed.jsx)(tx,{ref:g,device:T})})})]}),(0,ed.jsxs)("div",{className:"right",style:$,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tR,{agentList:a,onEffect:K,style:{display:"ai"===Z&&(null==p?void 0:p.ai)?void 0:"none"}}),"props"===Z&&(0,ed.jsx)(t0,{datasourceEnable:l}),"cascade"===Z&&(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(tH,{}),"events"===Z&&(null==J?void 0:J.events)&&(0,ed.jsx)(ne,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(ti.Radio.Group,{value:Z,onChange:e=>O(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==p?void 0:p.ai)&&(0,ed.jsx)(ti.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"ai",children:(0,ed.jsx)(tn,{type:"icon-assistant"})})}),(0,ed.jsx)(ti.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"props",children:(0,ed.jsx)(tn,{type:"icon-info"})})}),(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(ti.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tn,{type:"icon-cascade"})})}),(null==J?void 0:J.events)&&(0,ed.jsx)(ti.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"events",children:(0,ed.jsx)(tn,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(nr,{open:V,onOk:e=>{W(!1),E(e)},onCancel:()=>W(!1)}),(0,ed.jsx)(ti.Drawer,{open:G,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>Y(!1),children:(0,ed.jsx)(tR,{agentList:a,headExtra:(0,ed.jsx)(ti.Button,{type:"link",icon:(0,ed.jsx)(te.CloseOutlined,{}),onClick:()=>Y(!1)}),onEffect:K})})]})});var no=((g={}).STRING="STRING",g.NUMBER="NUMBER",g.BOOLEAN="BOOLEAN",g.OBJECT="OBJECT",g.ARRAY="ARRAY",g);let ns=em()(te.InfoCircleOutlined)`
|
|
1082
|
+
`,na=em()(ti.Flex)`
|
|
1083
|
+
color: var(--ant-color-text-label);
|
|
1084
|
+
background: var(--ant-color-bg-text-hover);
|
|
1085
|
+
border: var(--ant-color-border) solid 1px;
|
|
1086
|
+
padding: 0 20px 0 8px;
|
|
1087
|
+
border-radius: var(--ant-border-radius);
|
|
1088
|
+
height: 24px;
|
|
1089
|
+
font-size: 12px;
|
|
1090
|
+
cursor: pointer;
|
|
1091
|
+
user-select: none;
|
|
1092
|
+
|
|
1093
|
+
&:hover {
|
|
1094
|
+
background: var(--ant-color-bg-text-active);
|
|
1095
|
+
}
|
|
1096
|
+
`,no=em().ul`
|
|
1097
|
+
padding: 0;
|
|
1098
|
+
margin: 0;
|
|
1099
|
+
list-style: none;
|
|
1100
|
+
li {
|
|
1101
|
+
padding: 10px;
|
|
1102
|
+
border-bottom: dotted 1px var(--ant-color-border);
|
|
1103
|
+
cursor: pointer;
|
|
1104
|
+
|
|
1105
|
+
&:last-child {
|
|
1106
|
+
border-bottom: none;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
&:hover {
|
|
1110
|
+
background: var(--ant-color-primary-bg);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
h5 {
|
|
1114
|
+
margin: 0;
|
|
1115
|
+
color: var(--ant-color-text-label);
|
|
1116
|
+
font-size: 14px;
|
|
1117
|
+
|
|
1118
|
+
small {
|
|
1119
|
+
color: var(--ant-color-text-description);
|
|
1120
|
+
|
|
1121
|
+
&:before {
|
|
1122
|
+
content: "(ID: ";
|
|
1123
|
+
}
|
|
1124
|
+
&:after {
|
|
1125
|
+
content: ")";
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
div {
|
|
1131
|
+
margin: 8px 0 0 0;
|
|
1132
|
+
color: var(--ant-color-text-description);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
`,ns=e=>{let{open:t,onCancel:n,onOk:i}=e,[r,a]=(0,eh.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(ti.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==i?void 0:i(JSON.parse(r)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(to.Editor,{height:"100%",defaultLanguage:"json",value:r,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},nl=ep().forwardRef((e,t)=>{var n,i;let r,{pageId:a,agentList:o=[],plugins:s=[],headerExtra:l,datasourceEnable:u=!0,scriptEnable:c=!0,datasetPanel:d,datasetSelector:h,datasetAdd:p,fetch:f,onSave:m,loading:g=!1}=e,v=(0,eh.useRef)(null),y=(0,eh.useRef)(null),[x,_]=(0,eh.useState)(1),[b,w]=(0,eh.useState)([]),[S,C]=(0,eh.useState)([]),[j,T]=(0,eh.useState)(!1),[k,I]=(0,eh.useState)("desktop"),[M,D]=(0,eh.useState)("component"),[O,z]=(0,eh.useState)((null==f?void 0:f.ai)?"ai":"props"),[A,R]=(0,eh.useState)(!0),[P,N]=(0,eh.useState)(!0),[F,L]=(0,eh.useState)(null),[E,B]=(0,eh.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[H,V]=(0,eh.useState)(!0),[W,G]=(0,eh.useState)(!1),[Y,U]=(0,eh.useState)(!1),[q,$]=(0,eh.useState)(""),[X,K]=(0,eh.useState)(!1),Z=(0,eh.useMemo)(()=>{let e=A?"250px":"",t=P?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[A,P]),J=(0,eh.useMemo)(()=>({display:A?"flex":"none"}),[A]),Q=(0,eh.useMemo)(()=>({display:P?"flex":"none"}),[P]);i=[E],(r=(0,eh.useRef)()).current===JSON.stringify(i)&&r.current||(r.current=JSON.stringify(i),(()=>{j||(w(e=>e.length?[...e,JSON.parse(JSON.stringify(E))].slice(-50):[JSON.parse(JSON.stringify(E))]),C([]))})()),(0,eh.useImperativeHandle)(t,()=>({handleOpen(e){T(!0),ee(e.items),B(e),w([JSON.parse(JSON.stringify(e))]),C([]),setTimeout(()=>T(!1),0)}}));let ee=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||tp()),Array.isArray(e.children)?ee(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&ee(e.children[t],tp())})})},et=e=>{var t,n,i;if((null==(t=e.datasets)?void 0:t.length)&&(null==y||null==(n=y.current)?void 0:n.reload)&&y.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));ee(t.items),B(t)}else if(null==(i=e.pageItems)?void 0:i.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(E)),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,r)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:i,insertSlot:a,pageItem:o}=t;switch(i){case"before":e.splice(r,0,o);break;case"after":e.splice(r+1,0,o);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,o);break;case"insert":var l,u,c;let d=s.find(e=>e.key===n.type);Array.isArray(null==d||null==(l=d.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],o]:"object"==typeof(null==d||null==(u=d.defaultOptions)?void 0:u.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(c=n.children)?void 0:c[a])||[],o]})}}),Array.isArray(n.children)?i(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&i(n.children[e])})})};i(n.items),B(n)}},en=(0,eh.useMemo)(()=>"cascade"!==O||(null==F?void 0:F.cascadeIds)?O:"props",[F,O]),ei=(0,eh.useMemo)(()=>(s||[]).find(e=>e.key===(null==F?void 0:F.type)),[s,null==F?void 0:F.type]),er=(0,eh.useMemo)(()=>{var e;if(!(null==q||null==(e=q.trim())?void 0:e.length))return[];let t=[],n=e=>{Array.isArray(e)&&e.forEach(e=>{JSON.stringify(e).includes(q)&&t.push(e),Array.isArray(e.children)?n(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>n(e.children[t]))})};return n((null==E?void 0:E.items)||[]),t},[null==E?void 0:E.items,q]);return(0,ed.jsxs)(ey,{pageId:a,designable:H,plugins:s,schema:E,selectedItem:F,setSchema:B,setSelectedItem:L,datasetSelector:h,datasetAdd:p,fetch:f,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"保存",children:(0,ed.jsx)(ti.Button,{type:"link",className:"toolbar",onClick:()=>{null==m||m(E)},loading:g,children:(0,ed.jsx)(te.SaveOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${b.length>1?"active":""}`,onClick:()=>{w(e=>{if(e.length<=1)return e;T(!0);let t=e[e.length-2];return C(e=>[...e,JSON.parse(JSON.stringify(E))]),B(t),L(null),setTimeout(()=>T(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(te.UndoOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${S.length>0?"active":""}`,onClick:()=>{C(e=>e.length?(T(!0),w(e=>[...e,JSON.parse(JSON.stringify(E))]),B(e[e.length-1]),L(null),setTimeout(()=>T(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(te.RedoOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${S.length>0?"active":""}`,onClick:()=>{G(!0)},children:(0,ed.jsx)(te.ImportOutlined,{})})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>_(parseFloat(Math.max(x-.1,.5).toFixed(1))),children:(0,ed.jsx)(te.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*x).toFixed(0),"%"]}),(0,ed.jsx)(ti.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>_(parseFloat(Math.min(x+.1,2).toFixed(1))),children:(0,ed.jsx)(te.ZoomInOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>_(1),children:(0,ed.jsx)(tn,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${A?"active":""}`,onClick:()=>{R(e=>!e),setTimeout(()=>{var e,t;return null==(t=v.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tn,{type:"icon-sider-l"})})}),(0,ed.jsx)(ti.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${P?"active":""}`,onClick:()=>{N(e=>!e),setTimeout(()=>{var e,t;return null==(t=v.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tn,{type:"icon-sider-r"})})}),l]})]}),(0,ed.jsxs)(nr,{style:Z,children:[(0,ed.jsxs)("div",{className:"left",style:J,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(ti.Radio.Group,{value:M,onChange:e=>D(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(ti.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"component",children:(0,ed.jsx)(tn,{type:"icon-puzzle"})})}),(0,ed.jsx)(ti.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"layer",children:(0,ed.jsx)(tn,{type:"icon-outline"})})}),!!d&&(0,ed.jsx)(ti.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tn,{type:"icon-dataset"})})}),u&&(0,ed.jsx)(ti.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tn,{type:"icon-datasource"})})}),c&&(0,ed.jsx)(ti.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"script",children:(0,ed.jsx)(tn,{type:"icon-js"})})}),(0,ed.jsx)(ti.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"env",children:(0,ed.jsx)(tn,{type:"icon-variable"})})}),(0,ed.jsx)(ti.Tooltip,{title:"全局数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"global-dataset",children:(0,ed.jsx)(tn,{type:"icon-datasource-g"})})}),(0,ed.jsx)(ti.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"code",children:(0,ed.jsx)(tn,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===M&&(0,ed.jsx)(t$,{}),"layer"===M&&(0,ed.jsx)(tQ,{}),u&&"datasource"===M&&(0,ed.jsx)(tK,{}),c&&"script"===M&&(0,ed.jsx)(t5,{}),"env"===M&&(0,ed.jsx)(t9,{}),"code"===M&&(0,ed.jsx)(tY,{}),!!d&&"dataset"===M&&(0,ed.jsx)(t7,{ref:y,renderNode:d}),"global-dataset"===M&&(0,ed.jsx)(ni,{})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tO,{title:"页面",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsxs)(na,{align:"center",gap:8,onClick:()=>K(!0),children:[(0,ed.jsx)(te.SearchOutlined,{}),(0,ed.jsx)(ti.Typography.Text,{style:{fontSize:12,color:"var(--ant-color-text-label)"},children:"Quick search..."})]}),(0,ed.jsx)(ti.Button,{size:"small",type:H?"default":"primary",icon:H?(0,ed.jsx)(te.EyeInvisibleOutlined,{}):(0,ed.jsx)(te.EyeOutlined,{}),onClick:()=>V(!H)}),(0,ed.jsxs)(ti.Radio.Group,{value:k,onChange:e=>I(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(ti.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(te.DesktopOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(te.MobileOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(te.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{id:"page-canvas-wrapper",className:["body beautified_scrollbar always",k].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${x})`,transformOrigin:"top center"},children:(0,ed.jsx)(t_,{ref:v,device:k})})})]}),(0,ed.jsxs)("div",{className:"right",style:Q,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tP,{agentList:o,onEffect:et,style:{display:"ai"===en&&(null==f?void 0:f.ai)?void 0:"none"}}),"props"===en&&(0,ed.jsx)(t2,{datasourceEnable:u}),"cascade"===en&&(null==F?void 0:F.cascadeIds)&&(0,ed.jsx)(tV,{}),"events"===en&&(null==ei?void 0:ei.events)&&(0,ed.jsx)(nt,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(ti.Radio.Group,{value:en,onChange:e=>z(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==f?void 0:f.ai)&&(0,ed.jsx)(ti.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"ai",children:(0,ed.jsx)(tn,{type:"icon-assistant"})})}),(0,ed.jsx)(ti.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"props",children:(0,ed.jsx)(tn,{type:"icon-info"})})}),(null==F?void 0:F.cascadeIds)&&(0,ed.jsx)(ti.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tn,{type:"icon-cascade"})})}),(null==ei?void 0:ei.events)&&(0,ed.jsx)(ti.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"events",children:(0,ed.jsx)(tn,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(ns,{open:W,onOk:e=>{G(!1),B(e)},onCancel:()=>G(!1)}),(0,ed.jsx)(ti.Drawer,{open:Y,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>U(!1),children:(0,ed.jsx)(tP,{agentList:o,headExtra:(0,ed.jsx)(ti.Button,{type:"link",icon:(0,ed.jsx)(te.CloseOutlined,{}),onClick:()=>U(!1)}),onEffect:et})}),(0,ed.jsx)(ti.Modal,{open:X,title:(0,ed.jsx)(ti.Input,{placeholder:"搜索页面元素 ...",variant:"borderless",prefix:(0,ed.jsx)(te.SearchOutlined,{style:{color:"var(--ant-color-text-label)"}}),value:q,onChange:e=>$(e.target.value)}),closeIcon:(0,ed.jsx)(ti.Typography.Link,{unselectable:"on",style:{color:"var(--ant-color-text-quaternary)"},children:"ESC"}),footer:null,onCancel:()=>K(!1),styles:{container:{padding:0},header:{padding:"16px 12px",borderBottom:"solid 1px var(--ant-color-border)"},body:{padding:"0 12px 12px 12px",overflow:"auto",maxHeight:500}},children:(0,ed.jsx)(no,{children:0===er.length?(0,ed.jsx)(ti.Empty,{image:ti.Empty.PRESENTED_IMAGE_SIMPLE,description:(null==q||null==(n=q.trim())?void 0:n.length)?"未找到页面元素":"请输入关键字进行搜索..."}):er.map(e=>(0,ed.jsxs)("li",{onClick:()=>{var t;L(e),null==(t=document.getElementById(`page-item-${e.id}`))||t.scrollIntoView({behavior:"smooth"}),K(!1)},children:[(0,ed.jsxs)(ti.Typography.Title,{level:5,style:{margin:0},children:[(0,ed.jsx)(ti.Tag,{variant:"filled",color:"#108ee9",style:{marginRight:8},children:"页面元素"}),e.name,(0,ed.jsx)("small",{children:e.id})]}),(0,ed.jsx)(ti.Typography.Paragraph,{children:e.description||"无描述内容"})]},e.id))})})]})});var nu=((g={}).STRING="STRING",g.NUMBER="NUMBER",g.BOOLEAN="BOOLEAN",g.OBJECT="OBJECT",g.ARRAY="ARRAY",g);let nc=em()(te.InfoCircleOutlined)`
|
|
1062
1136
|
vertical-align: middle;
|
|
1063
1137
|
margin-left: 2px;
|
|
1064
1138
|
color: var(--ant-color-text-description);
|
|
1065
|
-
`,
|
|
1139
|
+
`,nd=em()(te.InfoCircleOutlined)`
|
|
1066
1140
|
vertical-align: middle;
|
|
1067
1141
|
margin-left: 2px;
|
|
1068
1142
|
color: var(--ant-color-text-description);
|
|
1069
|
-
`,
|
|
1143
|
+
`,nh=em()(te.InfoCircleOutlined)`
|
|
1070
1144
|
vertical-align: middle;
|
|
1071
1145
|
margin-left: 2px;
|
|
1072
1146
|
color: var(--ant-color-text-description);
|
|
1073
|
-
`,
|
|
1147
|
+
`,np=em().div`
|
|
1074
1148
|
width: 100%;
|
|
1075
1149
|
padding: 0 12px;
|
|
1076
1150
|
border-bottom: solid 1px #e8e8e8;
|
|
@@ -1090,7 +1164,7 @@
|
|
|
1090
1164
|
color: #999;
|
|
1091
1165
|
font-size: 12px;
|
|
1092
1166
|
}
|
|
1093
|
-
`,
|
|
1167
|
+
`,nf=e=>{let{item:t,signal:n,query:i}=e,{fetch:r,getVars:a,setItemData:o}=(0,eh.useContext)(ev),[s,l]=(0,eh.useState)(null);return(0,eh.useEffect)(()=>{if(!(null==t?void 0:t.datasource))return void l(null);switch((null==t?void 0:t.datasource.source)||"custom"){case"custom":try{var e;let n=JSON.parse((null==t||null==(e=t.datasource)?void 0:e.custom)||"[]");l(n),null==o||o(t.id||"",n)}catch(e){l(null),null==o||o(t.id||"",null)}break;case"dataset":if(!(null==t?void 0:t.datasource.dataset)||!(null==r?void 0:r.dataset)){console.warn("dataset source detected but config or fetcher is missing",{datasetConfig:null==t?void 0:t.datasource.dataset,hasFetchDataset:!!(null==r?void 0:r.dataset)}),l(null),null==o||o(t.id||"",null);return}let n=a(t.id||"");r.dataset(null==t?void 0:t.datasource.dataset.id,{...n,...i}).then(e=>{l(e||null),null==o||o(t.id||"",e||null)}).catch(e=>{console.error("dataset fetch error",e),l(null),null==o||o(t.id||"",null)});break;default:l(null),null==o||o(t.id||"",null)}},[null==t?void 0:t.datasource,n,i]),s},nm=em().div`
|
|
1094
1168
|
box-sizing: border-box;
|
|
1095
1169
|
margin: 0;
|
|
1096
1170
|
padding: 0;
|
|
@@ -1109,7 +1183,7 @@
|
|
|
1109
1183
|
${e=>"vertical"===e.$itemLayout&&(0,ef.css)`
|
|
1110
1184
|
flex-direction: column;
|
|
1111
1185
|
`}
|
|
1112
|
-
`,
|
|
1186
|
+
`,ng=em().div`
|
|
1113
1187
|
display: flex;
|
|
1114
1188
|
align-items: center;
|
|
1115
1189
|
justify-content: space-between;
|
|
@@ -1122,18 +1196,18 @@
|
|
|
1122
1196
|
border-bottom: none;
|
|
1123
1197
|
}
|
|
1124
1198
|
`}
|
|
1125
|
-
`,
|
|
1199
|
+
`,nv=em().div`
|
|
1126
1200
|
display: flex;
|
|
1127
1201
|
flex: 1;
|
|
1128
1202
|
align-items: flex-start;
|
|
1129
1203
|
max-width: 100%;
|
|
1130
|
-
`,
|
|
1204
|
+
`,ny=em().div`
|
|
1131
1205
|
margin-right: 16px;
|
|
1132
|
-
`,
|
|
1206
|
+
`,nx=em().div`
|
|
1133
1207
|
flex: 1 0;
|
|
1134
1208
|
width: 0;
|
|
1135
1209
|
color: rgba(0, 0, 0, 0.85);
|
|
1136
|
-
`,
|
|
1210
|
+
`,n_=em().h4`
|
|
1137
1211
|
margin-bottom: 4px;
|
|
1138
1212
|
color: rgba(0, 0, 0, 0.85);
|
|
1139
1213
|
font-size: 14px;
|
|
@@ -1149,7 +1223,7 @@
|
|
|
1149
1223
|
color: #1890ff;
|
|
1150
1224
|
}
|
|
1151
1225
|
}
|
|
1152
|
-
`,
|
|
1226
|
+
`,nb=em().div`
|
|
1153
1227
|
color: rgba(0, 0, 0, 0.45);
|
|
1154
1228
|
font-size: 14px;
|
|
1155
1229
|
line-height: 1.5715;
|
|
@@ -1157,7 +1231,7 @@
|
|
|
1157
1231
|
margin-top: 16px;
|
|
1158
1232
|
text-align: right;
|
|
1159
1233
|
padding: ${e=>e.$bordered?"0 24px 24px":"0"};
|
|
1160
|
-
`;let
|
|
1234
|
+
`;let nw=e=>{let{item:t,split:n,padding:i}=e;return(0,ed.jsx)(ng,{$split:n,$padding:i,children:(0,ed.jsxs)(nv,{children:[t.avatar&&(0,ed.jsx)(ny,{children:(0,ed.jsx)(ti.Avatar,{src:t.avatar})}),(0,ed.jsxs)(nx,{children:[t.title&&(0,ed.jsx)(n_,{children:t.href?(0,ed.jsx)("a",{href:t.href,children:t.title}):t.title}),t.description&&(0,ed.jsx)(nb,{children:t.description})]})]})})},nS=e=>{let{list:t=[],split:n,bordered:i,size:r,itemLayout:a,style:o,className:s}=e,l=(0,eh.useMemo)(()=>"small"===r?"8px 16px":i?"12px 24px":"12px 0",[r,i]);return(0,ed.jsx)(nm,{$bordered:i,$split:n,$size:r,style:o,$itemLayout:a,className:s,children:t.map((e,t)=>(0,ed.jsx)(nw,{item:e,split:n,padding:l},String(t)))})},nC=e=>{let t=(e.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{}),{callMethod:n,updateEnv:i}=(e=>{let{handleMethod:t,setGlobalEnv:n}=(0,eh.useContext)(ev);return{callMethod:(n,i,r)=>t(e,n,i,r),updateEnv:n}})(e);return{handleEvent:(r,a)=>{let o=t[r];if(o&&o)try{return Function("console","Math","Date","Array","Object","String","Number","Boolean","callMethod","updateEnv","param",`
|
|
1161
1235
|
"use strict";
|
|
1162
1236
|
const window = undefined;
|
|
1163
1237
|
const document = undefined;
|
|
@@ -1170,7 +1244,7 @@
|
|
|
1170
1244
|
const localStorage = undefined;
|
|
1171
1245
|
const sessionStorage = undefined;
|
|
1172
1246
|
${o}
|
|
1173
|
-
`)(console,Math,Date,Array,Object,String,Number,Boolean,n,i,{item:e,sourceId:e.id,arg:a})}catch(e){return console.error("点击事件脚本执行失败:",e),null}}}};var nw=d(190),nS=function(e,t){return(nS=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function nC(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nS(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nj=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nT=new function(){this.browser=new nj,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nT.wxa=!0,nT.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?nT.worker=!0:!nT.hasGlobalWindow||"Deno"in window?(nT.node=!0,nT.svgSupported=!0):(e=navigator.userAgent,n=(t=nT).browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e),i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported="u">typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="u">typeof document,s=document.documentElement.style,t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9);var nk="12px sans-serif",nI=function(e){var t={};if("u"<typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-20)/100;t[i]=r}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nM={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!v){var n=nM.createCanvas();v=n&&n.getContext("2d")}if(v)return y!==t&&(y=v.font=t||nk),v.measureText(e);e=e||"",t=t||nk;var i=/((?:\d+)?\.?\d*)px/.exec(t),r=i&&+i[1]||12,a=0;if(t.indexOf("mono")>=0)a=r*e.length;else for(var o=0;o<e.length;o++){var s=nI[e[o]];a+=null==s?r:s*r}return{width:a}},loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}},nD=nJ(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nO=nJ(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nz=Object.prototype.toString,nA=Array.prototype,nR=nA.forEach,nP=nA.filter,nN=nA.slice,nF=nA.map,nL=(function(){}).constructor,nE=nL?nL.prototype:null,nB="__proto__",nH=2311;function nV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"u">typeof console&&console.error.apply(console,e)}function nW(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nz.call(e);if("[object Array]"===n){if(!e[iu]){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=nW(e[i])}}else if(nO[n]){if(!e[iu]){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!nD[n]&&!e[iu]&&!ie(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nB&&(t[o]=nW(e[o]));return t}function nG(e,t,n){if(!n9(t)||!n9(e))return n?nW(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==nB){var r=e[i],a=t[i];!(n9(a)&&n9(r))||n3(a)||n3(r)||ie(a)||ie(r)||n6(a)||n6(r)||a[iu]||r[iu]?!n&&i in e||(e[i]=nW(t[i])):nG(r,a,n)}return e}function nY(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nB&&(e[n]=t[n]);return e}function nU(e,t,n){for(var i=n1(t),r=0,a=i.length;r<a;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nq(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return -1}function n$(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var a=i[r];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nU(e,t,n)}function nX(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nK(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nR)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function nZ(e,t,n){if(!e)return[];if(!t)return ia(e);if(e.map&&e.map===nF)return e.map(t,n);for(var i=[],r=0,a=e.length;r<a;r++)i.push(t.call(n,e[r],r,e));return i}function nJ(e,t,n,i){if(e&&t){for(var r=0,a=e.length;r<a;r++)n=t.call(i,n,e[r],r,e);return n}}function nQ(e,t,n){if(!e)return[];if(!t)return ia(e);if(e.filter&&e.filter===nP)return e.filter(t,n);for(var i=[],r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function n1(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}nM.createCanvas;var n0=nE&&n4(nE.bind)?nE.call.bind(nE.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(nN.call(arguments)))}};function n2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nN.call(arguments)))}}function n3(e){return Array.isArray?Array.isArray(e):"[object Array]"===nz.call(e)}function n4(e){return"function"==typeof e}function n5(e){return"string"==typeof e}function n8(e){return"number"==typeof e}function n9(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function n6(e){return!!nD[nz.call(e)]}function n7(e){return!!nO[nz.call(e)]}function ie(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function it(e){return null!=e.colorStops}function ii(e,t){return null!=e?e:t}function ir(e,t,n){return null!=e?e:null!=t?t:n}function ia(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nN.apply(e,t)}function io(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function is(e,t){if(!e)throw Error(t)}function il(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var iu="__ec_primitive__",ic=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return n1(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),id="function"==typeof Map,ih=function(){function e(t){var n=n3(t);this.data=id?new Map:new ic;var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&nK(t,r)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},e.prototype.keys=function(){var e=this.data.keys();return id?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function ip(e){return new ih(e)}function im(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&nY(n,t),n}function ig(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function iv(e,t){return e.hasOwnProperty(t)}function iy(){}var ix=180/Math.PI;function i_(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function ib(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function iw(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function iS(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var iC=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function ij(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function iT(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function ik(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function iI(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var iM=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},iD=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new iM(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(r,a,e),this.handler.dispatchToElement(new iM(t,e),"drag",e.event);var o=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new iM(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new iM(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new iM(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new iM(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),iO=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var o=0;o<r[e].length;o++)if(r[e][o].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,a=n[e].length;r<a;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var a=t.length,o=i.length,s=0;s<o;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var a=t.length,o=t[a-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),iz=Math.log(2);function iA(e,t,n,i,r,a){var o=i+"-"+r,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/iz);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;!(f&r)&&(d+=(p%2?-1:1)*e[n][h]*iA(e,t-1,c,u,r|f,a),p++)}return a[o]=d,d}function iR(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=iA(n,8,0,0,0,i);if(0!==r){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*iA(n,7,+(0===o),1<<o,1<<s,i)/r*t[o];return function(e,t,n){var i=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/i,e[1]=(t*a[3]+n*a[4]+a[5])/i}}}var iP="___zrEVENTSAVED";function iN(e){return"CANVAS"===e.nodeName.toUpperCase()}var iF=/([&<>"'])/g,iL={"&":"&","<":"<",">":">",'"':""","'":"'"};function iE(e){return null==e?"":(e+"").replace(iF,function(e,t){return iL[t]})}var iB=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,iH=[],iV=nT.browser.firefox&&39>+nT.browser.version.split(".")[0];function iW(e,t,n,i){return n=n||{},i?iG(e,t,n):iV&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):iG(e,t,n),n}function iG(e,t,n){if(nT.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(iN(e)){var a=e.getBoundingClientRect();n.zrX=i-a.left,n.zrY=r-a.top;return}if(function(e,t,n,i,r){if(t.getBoundingClientRect&&nT.domSupported&&!iN(t)){var a=t[iP]||(t[iP]={}),o=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;o.push(h,p),l=l&&a&&h===a[d]&&p===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=o,t[i]=n?iR(s,o):iR(o,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,i),!0}return!1}(iH,e,i,r)){n.zrX=iH[0],n.zrY=iH[1];return}}n.zrX=n.zrY=0}function iY(e){return e||window.event}function iU(e,t,n){if(null!=(t=iY(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&iW(e,r,t,n)}else{iW(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;return null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&iB.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var iq=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},i$=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},a=0,o=i.length;a<o;a++){var s=i[a],l=iW(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in iK)if(iK.hasOwnProperty(t)){var n=iK[t](this._track,e);if(n)return n}},e}();function iX(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var iK={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=iX(i)/iX(r);isFinite(a)||(a=1),t.pinchScale=a;var o=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function iZ(){return[1,0,0,1,0,0]}function iJ(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function iQ(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function i1(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*r)*l,e[5]=(a*r-n*s)*l,e):null}var i0=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),i2=Math.min,i3=Math.max,i4=new i0,i5=new i0,i8=new i0,i9=new i0,i6=new i0,i7=new i0,re=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=i2(e.x,this.x),n=i2(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=i3(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=i3(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t,n,i,r=e.width/this.width,a=e.height/this.height,o=iZ();return iQ(o,o,[-this.x,-this.y]),n=(t=[r,a])[0],i=t[1],o[0]=o[0]*n,o[1]=o[1]*i,o[2]=o[2]*n,o[3]=o[3]*i,o[4]=o[4]*n,o[5]=o[5]*i,iQ(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this.x,r=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height,d=!(r<s||l<i||o<u||c<a);if(n){var h=1/0,p=0,f=Math.abs(r-s),m=Math.abs(l-i),g=Math.abs(o-u),v=Math.abs(c-a),y=Math.min(f,m),x=Math.min(g,v);r<s||l<i?y>p&&(p=y,f<m?i0.set(i7,-f,0):i0.set(i7,m,0)):y<h&&(h=y,f<m?i0.set(i6,f,0):i0.set(i6,-m,0)),o<u||c<a?x>p&&(p=x,g<v?i0.set(i7,0,-g):i0.set(i7,0,v)):y<h&&(h=y,g<v?i0.set(i6,0,g):i0.set(i6,0,-v))}return n&&i0.copy(n,d?i6:i7),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(!i){t!==n&&e.copy(t,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],a=i[3],o=i[4],s=i[5];t.x=n.x*r+o,t.y=n.y*a+s,t.width=n.width*r,t.height=n.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}i4.x=i8.x=n.x,i4.y=i9.y=n.y,i5.x=i9.x=n.x+n.width,i5.y=i8.y=n.y+n.height,i4.transform(i),i9.transform(i),i5.transform(i),i8.transform(i),t.x=i2(i4.x,i5.x,i8.x,i9.x),t.y=i2(i4.y,i5.y,i8.y,i9.y);var l=i3(i4.x,i5.x,i8.x,i9.x),u=i3(i4.y,i5.y,i8.y,i9.y);t.width=l-t.x,t.height=u-t.y},e}(),rt="silent";function rn(){iq(this.event)}var ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return nC(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(iO),rr=function(e,t){this.x=e,this.y=t},ra=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ro=new re(0,0,0,0),rs=function(e){function t(t,n,i,r,a){var o=e.call(this)||this;return o._hovered=new rr(0,0),o.storage=t,o.painter=n,o.painterRoot=r,o._pointerSize=a,i=i||new ri,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new iD(o),o}return nC(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nK(ra,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=ru(this,t,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?new rr(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new rr(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r,a="on"+t,o={type:t,event:n,target:(r=e).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:rn};i&&(i[a]&&(o.cancelBubble=!!i[a].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new rr(e,t);if(rl(i,r,e,t,n),this._pointerSize&&!r.target){for(var a=[],o=this._pointerSize,s=o/2,l=new re(e-s,t-s,o,o),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ro.copy(c.getBoundingRect()),c.transform&&ro.applyTransform(c.transform),ro.intersect(l)&&a.push(c))}if(a.length){for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d)if(rl(a,r,e+p*Math.cos(f),t+p*Math.sin(f),n),r.target)return r}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new i$);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var a=new rr;a.target=i.target,this.dispatchToElement(a,r,i.event)}},t}(iO);function rl(e,t,n,i,r){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==r&&!o.ignore&&(s=function(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||rt}return!1}(o,n,i))&&(t.topTarget||(t.topTarget=o),s!==rt)){t.target=o;break}}}function ru(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}function rc(e,t,n,i){var r=t+1;if(r===n)return 1;if(0>i(e[r++],e[t])){for(;r<n&&0>i(e[r],e[r-1]);)r++;var a=e,o=t,s=r;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function rd(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var a,o=e[i],s=t,l=i;s<l;)0>r(o,e[a=s+l>>>1])?l=a:s=a+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function rh(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])>0){for(s=i-r;l<s&&a(e,t[n+r+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&0>=a(e,t[n+r-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function rp(e,t,n,i,r,a){var o=0,s=0,l=1;if(0>a(e,t[n+r])){for(s=r+1;l<s&&0>a(e,t[n+r-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(e,t[n+r+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var c=o+(l-o>>>1);0>a(e,t[n+c])?l=c:o=c+1}return l}function rf(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var a=0;if(r<32){a=rc(e,n,i,t),rd(e,n,i,n+a,t);return}var o=function(e,t){var n,i,r=7,a=0,o=[];function s(s){var l=n[s],u=i[s],c=n[s+1],d=i[s+1];i[s]=u+d,s===a-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),a--;var h=rp(e[c],e,l,u,0,t);l+=h,0==(u-=h)||0!==(d=rh(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,i,a,s){var l,u,c,d=0;for(d=0;d<i;d++)o[d]=e[n+d];var h=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(d=0;d<i;d++)e[f+d]=o[h+d];return}if(1===i){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h];return}for(var m=r;;){l=0,u=0,c=!1;do if(0>t(e[p],o[h])){if(e[f++]=e[p++],u++,l=0,0==--s){c=!0;break}}else if(e[f++]=o[h++],l++,u=0,1==--i){c=!0;break}while((l|u)<m);if(c)break;do{if(0!==(l=rp(e[p],o,h,i,0,t))){for(d=0;d<l;d++)e[f+d]=o[h+d];if(f+=l,h+=l,(i-=l)<=1){c=!0;break}}if(e[f++]=e[p++],0==--s){c=!0;break}if(0!==(u=rh(o[h],e,p,s,0,t))){for(d=0;d<u;d++)e[f+d]=e[p+d];if(f+=u,p+=u,0==(s-=u)){c=!0;break}}if(e[f++]=o[h++],1==--i){c=!0;break}m--}while(l>=7||u>=7);if(c)break;m<0&&(m=0),m+=2}if((r=m)<1&&(r=1),1===i){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h]}else if(0===i)throw Error();else for(d=0;d<i;d++)e[f+d]=o[h+d]}(l,u,c,d):function(n,i,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+i-1,c=s-1,d=a+s-1,h=0,p=0;if(e[d--]=e[u--],0==--i){for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l];return}if(1===s){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c];return}for(var f=r;;){var m=0,g=0,v=!1;do if(0>t(o[c],e[u])){if(e[d--]=e[u--],m++,g=0,0==--i){v=!0;break}}else if(e[d--]=o[c--],g++,m=0,1==--s){v=!0;break}while((m|g)<f);if(v)break;do{if(0!=(m=i-rp(o[c],e,n,i,i-1,t))){for(d-=m,u-=m,i-=m,p=d+1,h=u+1,l=m-1;l>=0;l--)e[p+l]=e[h+l];if(0===i){v=!0;break}}if(e[d--]=o[c--],1==--s){v=!0;break}if(0!=(g=s-rh(e[u],o,0,s,s-1,t))){for(d-=g,c-=g,s-=g,p=d+1,h=c+1,l=0;l<g;l++)e[p+l]=o[h+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0==--i){v=!0;break}f--}while(m>=7||g>=7);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c]}else if(0===s)throw Error();else for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l]}(l,u,c,d))}return n=[],i=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,i[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(r);do{if((a=rc(e,n,i,t))<s){var l=r;l>s&&(l=s),rd(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(0!==r);o.forceMergeRuns()}}nK(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){rs.prototype[e]=function(t){var n,i,r=t.zrX,a=t.zrY,o=ru(this,r,a);if("mouseup"===e&&o||(i=(n=this.findHover(r,a)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||iS(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var rm=!1;function rg(){rm||(rm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rv(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ry=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rv}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,rf(n,rv)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var r=i,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(rg(),e.z=0),isNaN(e.z2)&&(rg(),e.z2=0),isNaN(e.zlevel)&&(rg(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=nq(this._roots,e);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();I=nT.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var rx={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-rx.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rx.bounceIn(2*e):.5*rx.bounceOut(2*e-1)+.5}},r_=Math.pow,rb=Math.sqrt,rw=rb(3),rS=1/3,rC=i_(),rj=i_(),rT=i_();function rk(e){return e>-1e-8&&e<1e-8}function rI(e){return e>1e-8||e<-1e-8}function rM(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function rD(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)}function rO(e,t,n,i,r,a){var o=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,p=0;if(rk(c)&&rk(d))if(rk(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=d*d-4*c*h;if(rk(m)){var g=d/c,f=-s/o+g,v=-g/2;f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v)}else if(m>0){var y=rb(m),x=c*s+1.5*o*(-d+y),_=c*s+1.5*o*(-d-y),f=(-s-((x=x<0?-r_(-x,rS):r_(x,rS))+(_=_<0?-r_(-_,rS):r_(_,rS))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var b=Math.acos((2*c*s-3*o*d)/(2*rb(c*c*c)))/3,w=rb(c),S=Math.cos(b),f=(-s-2*w*S)/(3*o),v=(-s+w*(S+rw*Math.sin(b)))/(3*o),C=(-s+w*(S-rw*Math.sin(b)))/(3*o);f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v),C>=0&&C<=1&&(a[p++]=C)}}return p}function rz(e,t,n,i,r){var a=6*n-12*t+6*e,o=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(rk(o)){if(rI(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(rk(c))r[0]=-a/(2*o);else if(c>0){var d=rb(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function rA(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,d=(c-u)*r+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=i}function rR(e,t,n,i,r,a,o,s,l,u,c){var d,h,p,f,m,g=.005,v=1/0;rC[0]=l,rC[1]=u;for(var y=0;y<1;y+=.05)rj[0]=rM(e,n,r,o,y),rj[1]=rM(t,i,a,s,y),(f=iC(rC,rj))<v&&(d=y,v=f);v=1/0;for(var x=0;x<32&&!(g<1e-4);x++)h=d-g,p=d+g,rj[0]=rM(e,n,r,o,h),rj[1]=rM(t,i,a,s,h),f=iC(rj,rC),h>=0&&f<v?(d=h,v=f):(rT[0]=rM(e,n,r,o,p),rT[1]=rM(t,i,a,s,p),m=iC(rT,rC),p<=1&&m<v?(d=p,v=m):g*=.5);return c&&(c[0]=rM(e,n,r,o,d),c[1]=rM(t,i,a,s,d)),rb(v)}function rP(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function rN(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function rF(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function rL(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function rE(e,t,n,i,r,a,o,s,l){var u,c=.005,d=1/0;rC[0]=o,rC[1]=s;for(var h=0;h<1;h+=.05){rj[0]=rP(e,n,r,h),rj[1]=rP(t,i,a,h);var p=iC(rC,rj);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var m=u-c,g=u+c;rj[0]=rP(e,n,r,m),rj[1]=rP(t,i,a,m);var p=iC(rj,rC);if(m>=0&&p<d)u=m,d=p;else{rT[0]=rP(e,n,r,g),rT[1]=rP(t,i,a,g);var v=iC(rT,rC);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=rP(e,n,r,u),l[1]=rP(t,i,a,u)),rb(d)}var rB=/cubic-bezier\(([0-9,\.e ]+)\)/;function rH(e){var t=e&&rB.exec(e);if(t){var n=t[1].split(","),i=+il(n[0]),r=+il(n[1]),a=+il(n[2]),o=+il(n[3]);if(isNaN(i+r+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:rO(0,i,a,1,e,s)&&rM(0,r,o,1,s[0])}}}var rV=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||iy,this.ondestroy=e.ondestroy||iy,this.onrestart=e.onrestart||iy,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,o=a?a(r):r;if(this.onframe(o),1===r)if(!this.loop)return!0;else this._startTime=e-i%n,this._pausedTime=0,this.onrestart();return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=n4(e)?e:rx[e]||rH(e)},e}(),rW=function(e){this.value=e},rG=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new rW(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),rY=function(){function e(e){this._list=new rG,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new rW(t),o.key=e,n.insertEntry(o),i[e]=o}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),rU={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 rq(e){return(e=Math.round(e))<0?0:e>255?255:e}function r$(e){return e<0?0:e>1?1:e}function rX(e){return e.length&&"%"===e.charAt(e.length-1)?rq(parseFloat(e)/100*255):rq(parseInt(e,10))}function rK(e){return e.length&&"%"===e.charAt(e.length-1)?r$(parseFloat(e)/100):r$(parseFloat(e))}function rZ(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function rJ(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function rQ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var r1=new rY(20),r0=null;function r2(e,t){r0&&rQ(r0,t),r0=r1.put(e,r0||t.slice())}function r3(e,t){if(e){t=t||[];var n=r1.get(e);if(n)return rQ(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in rU)return rQ(t,rU[i]),r2(e,t),t;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var a=parseInt(i.slice(1,4),16);return a>=0&&a<=4095?(rJ(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===r?parseInt(i.slice(4),16)/15:1),r2(e,t),t):void rJ(t,0,0,0,1)}if(7===r||9===r){var a=parseInt(i.slice(1,7),16);return a>=0&&a<=0xffffff?(rJ(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===r?parseInt(i.slice(7),16)/255:1),r2(e,t),t):void rJ(t,0,0,0,1)}return}var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===r){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rJ(t,+u[0],+u[1],+u[2],1):rJ(t,0,0,0,1);c=rK(u.pop());case"rgb":if(u.length>=3)return rJ(t,rX(u[0]),rX(u[1]),rX(u[2]),3===u.length?c:rK(u[3])),r2(e,t),t;return void rJ(t,0,0,0,1);case"hsla":if(4!==u.length)return void rJ(t,0,0,0,1);return u[3]=rK(u[3]),r4(u,t),r2(e,t),t;case"hsl":if(3!==u.length)return void rJ(t,0,0,0,1);return r4(u,t),r2(e,t),t;default:return}}rJ(t,0,0,0,1)}}function r4(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=rK(e[1]),r=rK(e[2]),a=r<=.5?r*(i+1):r+i-r*i,o=2*r-a;return rJ(t=t||[],rq(255*rZ(o,a,n+1/3)),rq(255*rZ(o,a,n)),rq(255*rZ(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function r5(e,t){var n=r3(e);if(n){for(var i=0;i<3;i++)t<0?n[i]=n[i]*(1-t)|0:n[i]=(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return r8(n,4===n.length?"rgba":"rgb")}}function r8(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function r9(e,t){var n=r3(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var r6=new rY(100);function r7(e){if(n5(e)){var t=r6.get(e);return t||(t=r5(e,-.1),r6.put(e,t)),t}if(it(e)){var n=nY({},e);return n.colorStops=nZ(e.colorStops,function(e){return{offset:e.offset,color:r5(e.color,-.1)}}),n}return e}nT.hasGlobalWindow&&n4(window.btoa);var ae=Array.prototype.slice;function at(e,t,n,i){for(var r,a=t.length,o=0;o<a;o++)e[o]=(r=t[o],(n[o]-r)*i+r);return e}function an(e,t,n,i){for(var r=t.length,a=0;a<r;a++)e[a]=t[a]+n[a]*i;return e}function ai(e,t,n,i){for(var r=t.length,a=r&&t[0].length,o=0;o<r;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*i}return e}function ar(e){if(nX(e)){var t=e.length;if(nX(e[0])){for(var n=[],i=0;i<t;i++)n.push(ae.call(e[i]));return n}return ae.call(e)}return e}function aa(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ao(e){return 4===e||5===e}function as(e){return 1===e||2===e}var al=[0,0,0,0],au=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,a=!1,o=6,s=t;if(nX(t)){var l=nX(t&&t[0])?2:1;o=l,(1!==l||n8(t[0]))&&(2!==l||n8(t[0][0]))||(a=!0)}else if(n8(t)&&t==t)o=0;else if(n5(t))if(isNaN(+t)){var u=r3(t);u&&(s=u,o=3)}else o=0;else if(it(t)){var c=nY({},s);(c.colorStops=nZ(t.colorStops,function(e){return{offset:e.offset,color:r3(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=c}0===r?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=n4(n)?n:rx[n]||rH(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var i=this.valType,r=n.length,a=n[r-1],o=this.discrete,s=as(i),l=ao(i),u=0;u<r;u++){var c=n[u],d=c.value,h=a.value;c.percent=c.time/e,!o&&(s&&u!==r-1?function(e,t,n){if(e.push&&t.push){var i=e.length,r=t.length;if(i!==r)if(i>r)e.length=r;else for(var a=i;a<r;a++)e.push(1===n?t[a]:ae.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(d,h,i):l&&function(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,a=Math.min(n,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,i);s++)r.push({offset:o.offset,color:o.color.slice()})}(d.colorStops,h.colorStops))}if(!o&&5!==i&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=an([],n[u].value,p,-1):as(i)&&(n[u].additiveValue=1===i?an([],n[u].value,p,-1):ai([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var f=r.percent-i.percent,m=0===f?1:p((t-i.percent)/f,1);r.easingFunc&&(m=r.easingFunc(m));var g=a?this._additiveValue:d?al:e[c];if((as(s)||d)&&!g&&(g=this._additiveValue=[]),this.discrete)e[c]=m<1?i.rawValue:r.rawValue;else if(as(s))1===s?at(g,i[o],r[o],m):function(e,t,n,i){for(var r=t.length,a=r&&t[0].length,o=0;o<r;o++){e[o]||(e[o]=[]);for(var s,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*i+s)}}(g,i[o],r[o],m);else if(ao(s)){var v,y,x,_,b,w=i[o],S=r[o],C=4===s;(e[c]={type:C?"linear":"radial",x:(v=w.x,(S.x-v)*m+v),y:(y=w.y,(S.y-y)*m+y),colorStops:nZ(w.colorStops,function(e,t){var n,i=S.colorStops[t];return{offset:(n=e.offset,(i.offset-n)*m+n),color:aa(at([],e.color,i.color,m))}}),global:S.global},C)?(e[c].x2=(x=w.x2,(S.x2-x)*m+x),e[c].y2=(_=w.y2,(S.y2-_)*m+_)):e[c].r=(b=w.r,(S.r-b)*m+b)}else if(d)at(g,i[o],r[o],m),a||(e[c]=aa(g));else{var j,T=(j=i[o],(r[o]-j)*m+j);a?this._additiveValue=T:e[c]=T}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;0===t?e[n]=e[n]+i:3===t?(r3(e[n],al),an(al,al,i,1),e[n]=aa(al)):1===t?an(e[n],e[n],i,1):2===t&&ai(e[n],e[n],i,1)},e}(),ac=function(){function e(e,t,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i)?nV("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,n1(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,a=0;a<n.length;a++){var o=n[a],s=r[o];if(!s){s=r[o]=new au(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=aa(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,ar(l),i),this._trackKeys.push(o)}s.addKeyframe(e,ar(t[o]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],o=this._tracks[a],s=this._getAdditiveTrack(a),l=o.keyframes,u=l.length;if(o.prepare(i,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new rV({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,a=0;a<i.length;a++)if(i[a]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return nZ(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var a=n[e[r]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}for(var o=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],a=this._tracks[r];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[r]=ar(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||n1(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var o=a.pop();r.addKeyframe(o.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();function ad(){return new Date().getTime()}var ah=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(t=t||{}).stage||{},n}return nC(t,e),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 t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=ad()-this._pausedTime,n=t-this._time,i=this._head;i;){var r=i.next;i.step(t,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,I(function t(){e._running&&(I(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=ad(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ad(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ad()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new ac(e,t.loop);return this.addAnimator(n),n},t}(iO),ap=nT.domSupported,af=(_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=nZ(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return _.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:b}),am=["mousemove","mouseup"],ag=["pointermove","pointerup"],av=!1;function ay(e){var t=e.pointerType;return"pen"===t||"touch"===t}function ax(e){e&&(e.zrByTouch=!0)}function a_(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var ab=function(e,t){this.stopPropagation=iy,this.stopImmediatePropagation=iy,this.preventDefault=iy,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},aw={mousedown:function(e){e=iU(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=iU(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=iU(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){a_(this,(e=iU(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){av=!0,e=iU(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){av||(e=iU(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){ax(e=iU(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),aw.mousemove.call(this,e),aw.mousedown.call(this,e)},touchmove:function(e){ax(e=iU(this.dom,e)),this.handler.processGesture(e,"change"),aw.mousemove.call(this,e)},touchend:function(e){ax(e=iU(this.dom,e)),this.handler.processGesture(e,"end"),aw.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&aw.click.call(this,e)},pointerdown:function(e){aw.mousedown.call(this,e)},pointermove:function(e){ay(e)||aw.mousemove.call(this,e)},pointerup:function(e){aw.mouseup.call(this,e)},pointerout:function(e){ay(e)||aw.mouseout.call(this,e)}};nK(["click","dblclick","contextmenu"],function(e){aw[e]=function(t){t=iU(this.dom,t),this.trigger(e,t)}});var aS={pointermove:function(e){ay(e)||aS.mousemove.call(this,e)},pointerup:function(e){aS.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function aC(e,t,n,i){var r;e.mounted[t]=n,e.listenerOpts[t]=i,r=e.domTarget,r.addEventListener(t,n,i)}function aj(e){var t,n,i,r=e.mounted;for(var a in r)r.hasOwnProperty(a)&&(t=e.domTarget,n=r[a],i=e.listenerOpts[a],t.removeEventListener(a,n,i));e.mounted={}}var aT=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},ak=function(e){function t(t,n){var i,r,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new aT(t,aw),ap&&(a._globalHandlerScope=new aT(document,aS)),r=(i=a._localHandlerScope).domHandlers,nT.pointerEventsSupported?nK(af.pointer,function(e){aC(i,e,function(t){r[e].call(a,t)})}):(nT.touchEventsSupported&&nK(af.touch,function(e){aC(i,e,function(t){r[e].call(a,t),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),nK(af.mouse,function(e){aC(i,e,function(t){t=iY(t),i.touching||r[e].call(a,t)})})),a}return nC(t,e),t.prototype.dispose=function(){aj(this._localHandlerScope),ap&&aj(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,ap&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nT.pointerEventsSupported?nK(ag,n):nT.touchEventsSupported||nK(am,n);function n(n){aC(t,n,function(i){if(!a_(e,(i=iY(i)).target)){var r;r=i,i=iU(e.dom,new ab(e,r),!0),t.domHandlers[n].call(e,i)}},{capture:!0})}}(this,t):aj(t)}},t}(iO),aI=1;nT.hasGlobalWindow&&(aI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aM=aI,aD="#333",aO="#ccc",az=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aA(e){return e>5e-5||e<-5e-5}var aR=[],aP=[],aN=iZ(),aF=Math.abs,aL=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aA(this.rotation)||aA(this.x)||aA(this.y)||aA(this.scaleX-1)||aA(this.scaleY-1)||aA(this.skewX)||aA(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),i=this.transform;if(!(n||t)){i&&(az(i),this.invTransform=null);return}i=i||iZ(),n?this.getLocalTransform(i):az(i),t&&(n?iJ(i,t,i):((e=i)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=i,this._resolveGlobalScaleRatio(i)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aR);var n=aR[0]<0?-1:1,i=aR[1]<0?-1:1,r=((aR[0]-n)*t+n)/aR[0]||0,a=((aR[1]-i)*t+i)/aR[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||iZ(),i1(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||iZ(),iJ(aP,e.invTransform,t),t=aP);var n=this.originX,i=this.originY;(n||i)&&(aN[4]=n,aN[5]=i,iJ(aP,t,aN),aP[4]-=n,aP[5]-=i,t=aP),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=e||[],t)?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&iT(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&iT(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&aF(e[0]-1)>1e-10&&aF(e[3]-1)>1e-10?Math.sqrt(aF(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,i=0;i<aE.length;i++){var r=aE[i];t[r]=n[r]}},t.getLocalTransform=function(e,t){t=t||[];var n,i,r,a,o,s,l,u,c,d,h,p=e.originX||0,f=e.originY||0,m=e.scaleX,g=e.scaleY,v=e.anchorX,y=e.anchorY,x=e.rotation||0,_=e.x,b=e.y,w=e.skewX?Math.tan(e.skewX):0,S=e.skewY?Math.tan(-e.skewY):0;if(p||f||v||y){var C=p+v,j=f+y;t[4]=-C*m-w*j*g,t[5]=-j*g-S*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=g,t[1]=S*m,t[2]=w*g,x&&(n=t,void 0===r&&(r=[0,0]),a=(i=t)[0],o=i[2],s=i[4],l=i[1],u=i[3],c=i[5],d=Math.sin(x),h=Math.cos(x),n[0]=a*h+l*d,n[1]=-a*d+l*h,n[2]=o*h+u*d,n[3]=-o*d+h*u,n[4]=h*(s-r[0])+d*(c-r[1])+r[0],n[5]=h*(c-r[1])-d*(s-r[0])+r[1]),t[4]+=p+_,t[5]+=f+b,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aE=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aB={};function aH(e,t){var n=aB[t=t||nk];n||(n=aB[t]=new rY(500));var i=n.get(e);return null==i&&(i=nM.measureText(e,t).width,n.put(e,i)),i}function aV(e,t,n,i){var r=aH(e,t),a=aY(t);return new re(aW(0,r,n),aG(0,a,i),r,a)}function aW(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aG(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function aY(e){return aH("国",e)}function aU(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aq(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=aU(i[0],n.width),u+=aU(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+o,u+=s,d="middle";break;case"top":l+=o/2,u-=r,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+r,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=o-r,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=r,c="center";break;case"insideBottom":l+=o/2,u+=a-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=o-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=a-r,d="bottom";break;case"insideBottomRight":l+=o-r,u+=a-r,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var a$="__zr_normal__",aX=aE.concat(["ignore"]),aK=nJ(aE,function(e,t){return e[t]=!0,e},{ignore:!1}),aZ={},aJ=new re(0,0,0,0),aQ=function(){function e(e){this.id=nH++,this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,a=void 0,o=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){n.layoutRect?aJ.copy(n.layoutRect):aJ.copy(this.getBoundingRect()),i||aJ.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aZ,n,aJ):aq(aZ,n,aJ),r.x=aZ.x,r.y=aZ.y,a=aZ.align,o=aZ.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var c=void 0,d=void 0;"center"===u?(c=.5*aJ.width,d=.5*aJ.height):(c=aU(u[0],aJ.width),d=aU(u[1],aJ.height)),l=!0,r.originX=-r.x+c+(i?0:aJ.x),r.originY=-r.y+d+(i?0:aJ.y)}}null!=n.rotation&&(r.rotation=n.rotation);var h=n.offset;h&&(r.x+=h[0],r.y+=h[1],l||(r.originX=-h[0],r.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,g=void 0,v=void 0;p&&this.canBeInsideText()?(m=n.insideFill,g=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==g||"auto"===g)&&(g=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,g=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==g||"auto"===g)&&(g=this.getOutsideStroke(m),v=!0)),((m=m||"#000")!==f.fill||g!==f.stroke||v!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=g,f.autoStroke=v,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?aO:aD},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&r3(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+255*!r*(1-i);return n[3]=1,r8(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},nY(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(n9(e))for(var n=n1(e),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,e[r])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===a$)){var a=i.targetName,o=a?t[a]:t;i.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aX)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(a$,!1,e)},e.prototype.useState=function(e,t,n,i){var r,a=e===a$;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nq(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(r=this.stateProxy(e)),r||(r=this.states&&this.states[e]),!r&&!a)return void nV("State "+e+" not exists.");a||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,r,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,a=e.length,o=a===r.length;if(o){for(var s=0;s<a;s++)if(e[s]!==r[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=nq(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=nq(i,e),a=nq(i,t)>=0;r>=0?a?i.splice(r,1):i[r]=t:n&&!a&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];nY(n,r),r.textConfig&&nY(t=t||{},r.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,a){var o=!(t&&i);t&&t.textConfig?(this.textConfig=nY({},i?this.textConfig:n.textConfig),nY(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<aX.length;u++){var c=aX[u],d=r&&aK[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:o&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new aL,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),nY(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=new ac(e?this[e]:this,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,n=nq(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],a=0;a<i;a++){var o=n[a];e&&e!==o.scope?r.push(o):o.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){a1(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){a1(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=a1(this,t,n,i),a=0;a<r.length;a++)r[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,i,r){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function a1(e,t,n,i,r){var a=[];!function e(t,n,i,r,a,o,s,l){for(var u=n1(r),c=a.duration,d=a.delay,h=a.additive,p=a.setToFinal,f=!n9(o),m=t.animators,g=[],v=0;v<u.length;v++){var y=u[v],x=r[y];if(null!=x&&null!=i[y]&&(f||o[y]))if(!n9(x)||nX(x)||it(x))g.push(y);else{if(n){l||(i[y]=x,t.updateDuringAnimation(n));continue}e(t,y,i[y],x,a,o&&o[y],s,l)}else l||(i[y]=x,t.updateDuringAnimation(n),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<m.length;b++){var w=m[b];if(w.targetName===n&&w.stopTracks(g)){var S=nq(m,w);m.splice(S,1)}}if(a.force||(_=(g=nQ(g,function(e){var t,n;return!((t=r[e])===(n=i[e])||nX(t)&&nX(n)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,n))})).length),_>0||a.force&&!s.length){var C=void 0,j=void 0,T=void 0;if(l){j={},p&&(C={});for(var b=0;b<_;b++){var y=g[b];j[y]=i[y],p?C[y]=r[y]:i[y]=r[y]}}else if(p){T={};for(var b=0;b<_;b++){var y=g[b];T[y]=ar(i[y]),function(e,t,n){if(nX(t[n]))if(nX(e[n])||(e[n]=[]),n7(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),a0(e[n],t[n],i))}else{var r=t[n],a=e[n],o=r.length;if(nX(r[0]))for(var s=r[0].length,l=0;l<o;l++)a[l]?a0(a[l],r[l],s):a[l]=Array.prototype.slice.call(r[l]);else a0(a,r,o);a.length=r.length}else e[n]=t[n]}(i,r,y)}}var w=new ac(i,!1,!1,h?nQ(m,function(e){return e.targetName===n}):null);w.targetName=n,a.scope&&(w.scope=a.scope),p&&C&&w.whenWithKeys(0,C,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==c?500:c,l?j:r,g).delay(d||0),t.addAnimator(w,n),s.push(w)}}(e,"",e,t,n=n||{},i,a,r);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},d=function(){--o<=0&&(s?l&&l():u&&u())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var h=0;h<a.length;h++){var p=a[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function a0(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}n$(aQ,iO),n$(aQ,aL);var a2=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return nC(t,e),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 t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[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,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=nq(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=nq(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new re(0,0,0,0),n=e||this._children,i=[],r=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(i);l?(re.applyTransform(t,s,l),(r=r||t.clone()).union(t)):(r=r||s.clone()).union(s)}}return r||t},t}(aQ);a2.prototype.type="group";var a3={},a4={},a5=function(){function e(e,t,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new ry,o=n.renderer||"canvas";a3[o]||(o=n1(a3)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new a3[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=nT.node||nT.worker||l?null:new ak(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?nT.touchEventsSupported:!!c)&&(i=ii(n.pointerSize,44)),this.handler=new rs(a,s,u,s.root,i),this.animation=new ah({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return .4>r9(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=r9(t[r].color,1);return(n/=i)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=ad();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=ad();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){!this._disposed&&(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof a2&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a4[e]}},e}();function a8(e,t){var n=new a5(nH++,e,t);return a4[n.id]=n,n}function a9(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n5(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function a6(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function a7(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,i,r,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return i=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,r=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:r-1-a)-i)}var oe=/^(?:(\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 ot(e){if(e instanceof Date)return e;if(n5(e)){var t=oe.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return null==e?new Date(NaN):new Date(Math.round(e))}function on(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function oi(e,t){var n=on(e),i=Math.pow(10,n),r=e/i;return e=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function or(e){var t=parseFloat(e);return t==e&&(0!==t||!n5(e)||0>=e.indexOf("x"))?t:NaN}function oa(){return Math.round(9*Math.random())}function oo(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var os="series\0";function ol(e){return e instanceof Array?e:null==e?[]:[e]}function ou(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var oc=["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 od(e){return!n9(e)||n3(e)||e instanceof Date?e:e.value}function oh(e,t,n){var i=of(t[e],null),r=of(n[e],null);return null!=i&&null!=r&&i===r}function op(e){return of(e,"")}function of(e,t){return null==e?t:n5(e)?e:n8(e)||"[object String]"===nz.call(e)?e+"":t}function om(e){var t=e.name;return!!(t&&t.indexOf(os))}function og(e){return e&&null!=e.id&&0===op(e.id).indexOf("\0_ec_\0")}function ov(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?n3(t.dataIndex)?nZ(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?n3(t.name)?nZ(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function oy(){var e="__ec_inner_"+ox++;return function(t){return t[e]||(t[e]={})}}var ox=oa();function o_(e,t,n){var i=ob(t,n),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=n?n.defaultMainType:null;return!r&&s&&a.set(s,{}),a.each(function(t,i){var r=oS(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[i+"Models"]=r.models,o[i+"Model"]=r.models[0]}),o}function ob(e,t){if(n5(e)){var n,i={};i[e+"Index"]=0,n=i}else n=e;var r=ip(),a={},o=!1;return nK(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nq(t.includeMainTypes,s)||(o=o||!!s,(r.get(s)||r.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:r,others:a}}var ow={useDefault:!0,enableAll:!1,enableNone:!1};function oS(e,t,n,i){i=i||ow;var r=n.index,a=n.id,o=n.name,s={models:null,specified:null!=r||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(is(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===r&&(is(i.enableAll,'`"all"` is not a valid value on index option.'),r=a=o=null),s.models=e.queryComponents({mainType:t,index:r,id:a,name:o})),s}var oC="___EC__COMPONENT__CONTAINER___",oj="___EC__EXTENDED_CLASS___";function oT(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function ok(e,t){e.$constructor=e,e.extend=function(e){var t,n,i=this;if(n4(t=i)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return nC(t,e),t}(i);else{var r=n=function(){(e.$constructor||i).apply(this,arguments)},a=r.prototype;function o(){}for(var s in o.prototype=this.prototype,r.prototype=new o,a)a.hasOwnProperty(s)&&(r.prototype[s]=a[s]);r.prototype.constructor=r,r.superClass=this}return nY(n.prototype,e),n[oj]=!0,n.extend=this.extend,n.superCall=oD,n.superApply=oO,n.superClass=i,n}}function oI(e,t){e.extend=t.extend}var oM=Math.round(10*Math.random());function oD(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function oO(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oz(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){is(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var i,r,a=oT(n);a.sub?a.sub!==oC&&(((r=t[(i=a).main])&&r[oC]||((r=t[i.main]={})[oC]=!0),r)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[oC]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=oT(e),i=[],r=t[n.main];return r&&r[oC]?nK(r,function(e,t){t!==oC&&i.push(e)}):i.push(r),i},e.hasClass=function(e){return!!t[oT(e).main]},e.getAllClassMainTypes=function(){var e=[];return nK(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[oT(e).main];return n&&n[oC]}}function oA(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(i&&nq(i,s)>=0||r&&0>nq(r,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oR=oA([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oP=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oR(this,e,t)},e}(),oN=oy(),oF=function(e,t,n,i){if(i){var r=oN(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=oN(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t,r.ssrType="chart"})}},oL="__zr_style_"+Math.round(10*Math.random()),oE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oB={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oE[oL]=!0;var oH=["z","z2","invisible"],oV=["invisible"],oW=function(e){var t;function n(t){return e.call(this,t)||this}return nC(n,e),n.prototype._init=function(t){for(var n=n1(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,i){var r,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,a=e,o=t,oG.copy(r.getBoundingRect()),r.transform&&oG.applyTransform(r.transform),oY.width=a,oY.height=o,!oG.intersect(oY))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,o=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new re(0,0,0,0)),t?re.applyTransform(e,n,t):e.copy(n),(r||a||o)&&(e.width+=2*r+Math.abs(a),e.height+=2*r+Math.abs(o),e.x=Math.min(e.x,e.x+a-r),e.y=Math.min(e.y,e.y+o-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:nY(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return im(oE,e)},n.prototype.useStyle=function(e){e[oL]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oL]},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,oH)},n.prototype._applyStateObj=function(t,n,i,r,a,o){e.prototype._applyStateObj.call(this,t,n,i,r,a,o);var s,l=!(n&&r);if(n&&n.style?a?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=n1(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}for(var p=n1(s),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oV:oH,d=0;d<f.length;d++){var h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},n.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var a=t[r];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(e,t){return nY(e,t),e},n.prototype.getAnimationStyleProps=function(){return oB},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(aQ),oG=new re(0,0,0,0),oY=new re(0,0,0,0),oU=Math.min,oq=Math.max,o$=Math.sin,oX=Math.cos,oK=2*Math.PI,oZ=i_(),oJ=i_(),oQ=i_();function o1(e,t,n,i,r,a){r[0]=oU(e,n),r[1]=oU(t,i),a[0]=oq(e,n),a[1]=oq(t,i)}var o0=[],o2=[],o3={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o4=[],o5=[],o8=[],o9=[],o6=[],o7=[],se=Math.min,st=Math.max,sn=Math.cos,si=Math.sin,sr=Math.abs,sa=Math.PI,so=2*sa,ss="u">typeof Float32Array,sl=[];function su(e){return Math.round(e/sa*1e8)/1e8%2*sa}var sc=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=sr(n/aM/e)||0,this._uy=sr(n/aM/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(o3.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=sr(e-this._xi),i=sr(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(o3.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,t,n,i,r,a){return this._drawPendingPt(),this.addData(o3.C,e,t,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(o3.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,t,n,i,r,a){this._drawPendingPt(),sl[0]=i,sl[1]=r,(o=su(sl[0]))<0&&(o+=so),s=o-sl[0],l=sl[1]+s,!a&&l-o>=so?l=o+so:a&&o-l>=so?l=o-so:!a&&o>l?l=o+(so-su(o-l)):a&&o<l&&(l=o-(so-su(l-o))),sl[0]=o,sl[1]=l,i=sl[0];var o,s,l,u=(r=sl[1])-i;return this.addData(o3.A,e,t,n,n,i,u,0,+!a),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=sn(r)*n+e,this._yi=si(r)*n+t,this},t.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},t.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(o3.R,e,t,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(o3.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&ss&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();ss&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<t;r++)for(var a=e[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},t.prototype.addData=function(e,t,n,i,r,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ss&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o8[0]=o8[1]=o6[0]=o6[1]=Number.MAX_VALUE,o9[0]=o9[1]=o7[0]=o7[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],i=t[e+1],r=n,a=i),o){case o3.M:n=r=t[e++],i=a=t[e++],o6[0]=r,o6[1]=a,o7[0]=r,o7[1]=a;break;case o3.L:o1(n,i,t[e],t[e+1],o6,o7),n=t[e++],i=t[e++];break;case o3.C:!function(e,t,n,i,r,a,o,s,l,u){var c=rz(e,n,r,o,o0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<c;d++){var h=rM(e,n,r,o,o0[d]);l[0]=oU(h,l[0]),u[0]=oq(h,u[0])}c=rz(t,i,a,s,o2);for(var d=0;d<c;d++){var p=rM(t,i,a,s,o2[d]);l[1]=oU(p,l[1]),u[1]=oq(p,u[1])}l[0]=oU(e,l[0]),u[0]=oq(e,u[0]),l[0]=oU(o,l[0]),u[0]=oq(o,u[0]),l[1]=oU(t,l[1]),u[1]=oq(t,u[1]),l[1]=oU(s,l[1]),u[1]=oq(s,u[1])}(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],o6,o7),n=t[e++],i=t[e++];break;case o3.Q:!function(e,t,n,i,r,a,o,s){var l=oq(oU(rF(e,n,r),1),0),u=oq(oU(rF(t,i,a),1),0),c=rP(e,n,r,l),d=rP(t,i,a,u);o[0]=oU(e,r,c),o[1]=oU(t,a,d),s[0]=oq(e,r,c),s[1]=oq(t,a,d)}(n,i,t[e++],t[e++],t[e],t[e+1],o6,o7),n=t[e++],i=t[e++];break;case o3.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(r=sn(h)*c+l,a=si(h)*d+u),function(e,t,n,i,r,a,o,s,l){var u=Math.abs(r-a);if(u%oK<1e-4&&u>1e-4){s[0]=e-n,s[1]=t-i,l[0]=e+n,l[1]=t+i;return}if(oZ[0]=oX(r)*n+e,oZ[1]=o$(r)*i+t,oJ[0]=oX(a)*n+e,oJ[1]=o$(a)*i+t,ik(s,oZ,oJ),iI(l,oZ,oJ),(r%=oK)<0&&(r+=oK),(a%=oK)<0&&(a+=oK),r>a&&!o?a+=oK:r<a&&o&&(r+=oK),o){var c=a;a=r,r=c}for(var d=0;d<a;d+=Math.PI/2)d>r&&(oQ[0]=oX(d)*n+e,oQ[1]=o$(d)*i+t,ik(s,oQ,s),iI(l,oQ,l))}(l,u,c,d,h,p,f,o6,o7),n=sn(p)*c+l,i=si(p)*d+u;break;case o3.R:o1(r=n=t[e++],a=i=t[e++],r+t[e++],a+t[e++],o6,o7);break;case o3.Z:n=r,i=a}ik(o8,o8,o6),iI(o9,o9,o7)}return 0===e&&(o8[0]=o8[1]=o9[0]=o9[1]=0),new re(o8[0],o8[1],o9[0]-o8[0],o9[1]-o8[1])},t.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(r=e[d],a=e[d+1],o=r,s=a);var f=-1;switch(h){case o3.M:r=o=e[d++],a=s=e[d++];break;case o3.L:var m=e[d++],g=e[d++],v=m-r,y=g-a;(sr(v)>n||sr(y)>i||d===t-1)&&(f=Math.sqrt(v*v+y*y),r=m,a=g);break;case o3.C:var x=e[d++],_=e[d++],m=e[d++],g=e[d++],b=e[d++],w=e[d++];f=function(e,t,n,i,r,a,o,s,l){for(var u=e,c=t,d=0,h=1;h<=10;h++){var p=.1*h,f=rM(e,n,r,o,p),m=rM(t,i,a,s,p),g=f-u,v=m-c;d+=Math.sqrt(g*g+v*v),u=f,c=m}return d}(r,a,x,_,m,g,b,w,0),r=b,a=w;break;case o3.Q:var x=e[d++],_=e[d++],m=e[d++],g=e[d++];f=function(e,t,n,i,r,a,o){for(var s=e,l=t,u=0,c=1;c<=10;c++){var d=.1*c,h=rP(e,n,r,d),p=rP(t,i,a,d),f=h-s,m=p-l;u+=Math.sqrt(f*f+m*m),s=h,l=p}return u}(r,a,x,_,m,g,0),r=m,a=g;break;case o3.A:var S=e[d++],C=e[d++],j=e[d++],T=e[d++],k=e[d++],I=e[d++],M=I+k;d+=1,p&&(o=sn(k)*j+S,s=si(k)*T+C),f=st(j,T)*se(so,Math.abs(I)),r=sn(M)*j+S,a=si(M)*T+C;break;case o3.R:o=r=e[d++],s=a=e[d++],f=2*e[d++]+2*e[d++];break;case o3.Z:var v=o-r,y=s-a;f=Math.sqrt(v*v+y*y),r=o,a=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var n,i,r,a,o,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,m=this._len,g=t<1,v=0,y=0,x=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<m;){var b=h[_++],w=1===_;switch(w&&(r=h[_],a=h[_+1],n=r,i=a),b!==o3.L&&x>0&&(e.lineTo(c,d),x=0),b){case o3.M:n=r=h[_++],i=a=h[_++],e.moveTo(r,a);break;case o3.L:o=h[_++],s=h[_++];var S=sr(o-r),C=sr(s-a);if(S>p||C>f){if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(r*(1-T)+o*T,a*(1-T)+s*T);break e}v+=j}e.lineTo(o,s),r=o,a=s,x=0}else{var k=S*S+C*C;k>x&&(c=o,d=s,x=k)}break;case o3.C:var I=h[_++],M=h[_++],D=h[_++],O=h[_++],z=h[_++],A=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;rA(r,I,D,z,T,o4),rA(a,M,O,A,T,o5),e.bezierCurveTo(o4[1],o5[1],o4[2],o5[2],o4[3],o5[3]);break e}v+=j}e.bezierCurveTo(I,M,D,O,z,A),r=z,a=A;break;case o3.Q:var I=h[_++],M=h[_++],D=h[_++],O=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;rL(r,I,D,T,o4),rL(a,M,O,T,o5),e.quadraticCurveTo(o4[1],o5[1],o4[2],o5[2]);break e}v+=j}e.quadraticCurveTo(I,M,D,O),r=D,a=O;break;case o3.A:var R=h[_++],P=h[_++],N=h[_++],F=h[_++],L=h[_++],E=h[_++],B=h[_++],H=!h[_++],V=N>F?N:F,W=sr(N-F)>.001,G=L+E,Y=!1;if(g){var j=l[y++];v+j>u&&(G=L+E*(u-v)/j,Y=!0),v+=j}if(W&&e.ellipse?e.ellipse(R,P,N,F,B,L,G,H):e.arc(R,P,V,L,G,H),Y)break e;w&&(n=sn(L)*N+R,i=si(L)*F+P),r=sn(G)*N+R,a=si(G)*F+P;break;case o3.R:n=r=h[_],i=a=h[_+1],o=h[_++],s=h[_++];var U=h[_++],q=h[_++];if(g){var j=l[y++];if(v+j>u){var $=u-v;e.moveTo(o,s),e.lineTo(o+se($,U),s),($-=U)>0&&e.lineTo(o+U,s+se($,q)),($-=q)>0&&e.lineTo(o+st(U-$,0),s+q),($-=U)>0&&e.lineTo(o,s+st(q-$,0));break e}v+=j}e.rect(o,s,U,q);break;case o3.Z:if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(r*(1-T)+n*T,a*(1-T)+i*T);break e}v+=j}e.closePath(),r=n,a=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=o3,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function sd(e,t,n,i,r,a,o){if(0===r)return!1;var s=0,l=e;if(o>t+r&&o>i+r||o<t-r&&o<i-r||a>e+r&&a>n+r||a<e-r&&a<n-r)return!1;if(e===n)return Math.abs(a-e)<=r/2;s=(t-i)/(e-n);var u=s*a-o+(l=(e*i-n*t)/(e-n));return u*u/(s*s+1)<=r/2*r/2}var sh=2*Math.PI;function sp(e){return(e%=sh)<0&&(e+=sh),e}var sf=2*Math.PI;function sm(e,t,n,i,r,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(1===o||0===o)&&(s=i<t?.5:-.5);var l=o*(n-e)+e;return l===r?1/0:l>r?s:0}var sg=sc.CMD,sv=2*Math.PI,sy=[-1,-1,-1],sx=[-1,-1];function s_(e,t,n,i,r){for(var a,o,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var m,g,v,y,x,_,b,w,S,C,j,T,k,I,M=s[f++],D=1===f;switch(M===sg.M&&f>1&&!n&&(u+=sm(c,d,h,p,i,r)),D&&(c=s[f],d=s[f+1],h=c,p=d),M){case sg.M:h=s[f++],p=s[f++],c=h,d=p;break;case sg.L:if(n){if(sd(c,d,s[f],s[f+1],t,i,r))return!0}else u+=sm(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sg.C:if(n){if(m=c,g=d,v=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==t&&(!(r>g+t)||!(r>y+t)||!(r>_+t)||!(r>w+t))&&(!(r<g-t)||!(r<y-t)||!(r<_-t)||!(r<w-t))&&(!(i>m+t)||!(i>v+t)||!(i>x+t)||!(i>b+t))&&(!(i<m-t)||!(i<v-t)||!(i<x-t)||!(i<b-t))&&rR(m,g,v,y,x,_,b,w,i,r,null)<=t/2)return!0}else u+=function(e,t,n,i,r,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var c=rO(t,i,a,s,u,sy);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,m=0;m<c;m++){var g=sy[m],v=0===g||1===g?.5:1;rM(e,n,r,o,g)<l||(h<0&&(h=rz(t,i,a,s,sx),sx[1]<sx[0]&&h>1&&function(){var e=sx[0];sx[0]=sx[1],sx[1]=e}(),p=rM(t,i,a,s,sx[0]),h>1&&(f=rM(t,i,a,s,sx[1]))),2===h?g<sx[0]?d+=p<t?v:-v:g<sx[1]?d+=f<p?v:-v:d+=s<f?v:-v:g<sx[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sg.Q:if(n){if(S=c,C=d,j=s[f++],T=s[f++],k=s[f],I=s[f+1],0!==t&&(!(r>C+t)||!(r>T+t)||!(r>I+t))&&(!(r<C-t)||!(r<T-t)||!(r<I-t))&&(!(i>S+t)||!(i>j+t)||!(i>k+t))&&(!(i<S-t)||!(i<j-t)||!(i<k-t))&&rE(S,C,j,T,k,I,i,r,null)<=t/2)return!0}else u+=function(e,t,n,i,r,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=function(e,t,n,i,r){var a=e-2*t+n,o=2*(t-e),s=e-i,l=0;if(rk(a)){if(rI(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(rk(c)){var u=-o/(2*a);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var d=rb(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}(t,i,a,s,sy);if(0===l)return 0;var u=rF(t,i,a);if(u>=0&&u<=1){for(var c=0,d=rP(t,i,a,u),h=0;h<l;h++){var p=0===sy[h]||1===sy[h]?.5:1,f=rP(e,n,r,sy[h]);f<o||(sy[h]<u?c+=d<t?p:-p:c+=a<d?p:-p)}return c}var p=0===sy[0]||1===sy[0]?.5:1,f=rP(e,n,r,sy[0]);return f<o?0:a<t?p:-p}(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sg.A:var O=s[f++],z=s[f++],A=s[f++],R=s[f++],P=s[f++],N=s[f++];f+=1;var F=!!(1-s[f++]);a=Math.cos(P)*A+O,o=Math.sin(P)*R+z,D?(h=a,p=o):u+=sm(c,d,a,o,i,r);var L=(i-O)*R/A+O;if(n){if(function(e,t,n,i,r,a,o,s,l){if(0===o)return!1;var u=Math.sqrt((s-=e)*s+(l-=t)*l);if(u-o>n||u+o<n)return!1;if(Math.abs(i-r)%sf<1e-4)return!0;if(a){var c=i;i=sp(r),r=sp(c)}else i=sp(i),r=sp(r);i>r&&(r+=sf);var d=Math.atan2(l,s);return d<0&&(d+=sf),d>=i&&d<=r||d+sf>=i&&d+sf<=r}(O,z,R,P,P+N,F,t,L,r))return!0}else u+=function(e,t,n,i,r,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sy[0]=-l,sy[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=sv-1e-4){i=0,r=sv;var c=a?1:-1;return o>=sy[0]+e&&o<=sy[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=sv,r+=sv);for(var h=0,p=0;p<2;p++){var f=sy[p];if(f+e>o){var m=Math.atan2(s,f),c=a?1:-1;m<0&&(m=sv+m),(m>=i&&m<=r||m+sv>=i&&m+sv<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}(O,z,R,P,P+N,F,L,r);c=Math.cos(P+N)*A+O,d=Math.sin(P+N)*R+z;break;case sg.R:h=c=s[f++],p=d=s[f++];var E=s[f++],B=s[f++];if(a=h+E,o=p+B,n){if(sd(h,p,a,p,t,i,r)||sd(a,p,a,o,t,i,r)||sd(a,o,h,o,t,i,r)||sd(h,o,h,p,t,i,r))return!0}else u+=sm(a,p,a,o,i,r),u+=sm(h,o,h,p,i,r);break;case sg.Z:if(n){if(sd(c,d,h,p,t,i,r))return!0}else u+=sm(c,d,h,p,i,r);c=h,d=p}}return n||1e-4>Math.abs(d-p)||(u+=sm(c,d,h,p,i,r)||0),0!==u}var sb=nU({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oE),sw={style:nU({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oB.style)},sS=aE.concat(["invisible","culling","z","z2","zlevel","parent"]),sC=function(e){var t;function n(t){return e.call(this,t)||this}return nC(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(e){t.buildPath(e,t.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<sS.length;++s)r[sS[s]]=this[sS[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=n1(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var a=n[r],o=t[a];"style"===a?this.style?nY(this.style,o):this.useStyle(o):"shape"===a?nY(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n5(e)){var t=r9(e,0);return t>.5?aD:t>.2?"#eee":aO}else if(e)return aO}return aD},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n5(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>r9(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new sc(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},n.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s_(a,o/s,!0,e,t)))return!0}if(this.hasFill())return s_(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:nY(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return im(sb,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=nY({},this.shape))},n.prototype._applyStateObj=function(t,n,i,r,a,o){e.prototype._applyStateObj.call(this,t,n,i,r,a,o);var s,l=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=nY({},i.shape),nY(s,n.shape)):(s=nY({},r?this.shape:i.shape),nY(s,n.shape)):l&&(s=i.shape),s)if(a){this.shape=nY({},this.shape);for(var u={},c=n1(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var a=t[r];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return sw},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return nC(n,t),n.prototype.getDefaultStyle=function(){return nW(e.style)},n.prototype.getDefaultShape=function(){return nW(e.shape)},n}(n);for(var i in e)"function"==typeof e[i]&&(t.prototype[i]=e[i]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oW),sj=1,sT={},sk=oy(),sI=oy(),sM=["emphasis","blur","select"],sD=["normal","emphasis","blur","select"],sO="highlight",sz="downplay",sA="select",sR="unselect",sP="toggleSelect";function sN(e){return null!=e&&"none"!==e}function sF(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sL(e){sF(e,"emphasis",2)}function sE(e){2===e.hoverState&&sF(e,"normal",0)}function sB(e){sF(e,"blur",1)}function sH(e){1===e.hoverState&&sF(e,"normal",0)}function sV(e){e.selected=!0}function sW(e){e.selected=!1}function sG(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function sY(e,t){var n,i,r,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var r=n&&nq(n,"select")>=0,a=!1;if(e instanceof sC){var o=sk(e),s=r&&o.selectFill||o.normalFill,l=r&&o.selectStroke||o.normalStroke;if(sN(s)||sN(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(a=!0,i=nY({},i),(u=nY({},u)).fill=s):!sN(u.fill)&&sN(s)?(a=!0,i=nY({},i),(u=nY({},u)).fill=r7(s)):!sN(u.stroke)&&sN(l)&&(a||(i=nY({},i),u=nY({},u)),u.stroke=r7(l)),i.style=u}}if(i&&null==i.z2){a||(i=nY({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:10)}return i}(this,0,t,s);else if("blur"===e)return n=s,i=nq(this.currentStates,e)>=0,r=this.style.opacity,a=i?null:function(e,t,n,i){for(var r=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=r[s];a[s]=null==l?i&&i[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=nY({},n),o=nY({opacity:i?r:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=nY({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function sU(e){e.stateProxy=sY;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sY),n&&(n.stateProxy=sY)}function sq(e,t){sZ(e,t)||e.__highByOuter||sG(e,sL)}function s$(e,t){sZ(e,t)||e.__highByOuter||sG(e,sE)}function sX(e,t){e.__highByOuter|=1<<(t||0),sG(e,sL)}function sK(e,t){(e.__highByOuter&=~(1<<(t||0)))||sG(e,sE)}function sZ(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sJ(e){var t=e.getModel(),n=[],i=[];t.eachComponent(function(t,r){var a=sI(r),o="series"===t,s=o?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);o||i.push(s),a.isBlured&&(s.group.traverse(function(e){sH(e)}),o&&n.push(r)),a.isBlured=!1}),nK(i,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function sQ(e,t,n,i){var r=i.getModel();function a(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&sG(i,sH)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=r.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(e){var r=o===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===t&&r)){if(i.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&r&&"self"===t||sB(e)}),nX(t))a(e.getData(),t);else if(n9(t))for(var d=n1(t),h=0;h<d.length;h++)a(e.getData(d[h]),t[d[h]]);l.push(e),sI(e).isBlured=!0}}),r.eachComponent(function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function s1(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){sI(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(e){sB(e)})}}}function s0(e,t,n,i){var r,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=i.getModel().getComponent(e,t);if(!o)return a;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===oN(l[u]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function s2(e){nK(e.getAllData(),function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,i)?sG(t,sV):sG(t,sW)})})}function s3(e,t,n){var i,r,a,o,s,l;r=false,(i=e).highDownSilentOnTouch&&(i.__highDownSilentOnTouch=i.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r),sG(e,sU),a=e,o=t,s=n,l=oN(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s4(e){return!!(e&&e.__highDownDispatcher)}function s5(e){var t=e.type;return t===sA||t===sR||t===sP}function s8(e){var t=e.type;return t===sO||t===sz}function s9(e,t,n,i,r,a,o){var s,l=!1;n4(r)?(o=a,a=r,r=null):n9(r)&&(a=r.cb,o=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,i,r){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var u=void 0,c=void 0,d=void 0;return i?(u=ii(i.duration,200),c=ii(i.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(d=a.delay)),n4(d)&&(d=d(n,r)),n4(u)&&(u=u(n)),{duration:u||0,delay:d,easing:c}}(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function s6(e,t,n,i,r,a){s9("update",e,t,n,i,r,a)}function s7(e,t,n,i,r,a){s9("enter",e,t,n,i,r,a)}function le(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}oy();var lt={},ln=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],li=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lr=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function la(e,t,n,i,r,a,o,s){n=!r&&n||lt;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=ii(t.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),a||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=ii(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=ii(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=ii(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(e.opacity=d),r||a||null!=e.fill||!i.inheritColor||(e.fill=i.inheritColor);for(var m=0;m<ln.length;m++){var g=ln[m],v=ii(t.getShallow(g),n[g]);null!=v&&(e[g]=v)}for(var m=0;m<li.length;m++){var g=li[m],v=t.getShallow(g);null!=v&&(e[g]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!i.disableBox){for(var m=0;m<lr.length;m++){var g=lr[m],v=t.getShallow(g);null!=v&&(e[g]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var lo=oy(),ls=new rY(50);function ll(e,t,n,i,r){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=ls.get(e),o={hostEl:n,cb:i,cbPayload:r};return a?lc(t=a.image)||a.pending.push(o):((t=nM.loadImage(e,lu,lu)).__zrImageSrc=e,ls.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function lu(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function lc(e){return e&&e.width&&e.height}var ld=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lh(e,t,n,i){var r=nY({},i=i||{});r.font=t,n=ii(n,"..."),r.maxIterations=ii(i.maxIterations,2);var a=r.minChar=ii(i.minChar,0);r.cnCharWidth=aH("国",t);var o=r.ascCharWidth=aH("a",t);r.placeholder=ii(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=aH(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function lp(e,t,n){var i=n.containerWidth,r=n.font,a=n.contentWidth;if(!i){e.textLine="",e.isTruncated=!1;return}var o=aH(t,r);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,i){for(var r=0,a=0,o=e.length;a<o&&r<t;a++){var s=e.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aH(t=t.substr(0,l),r)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lf=function(){},lm=function(e){this.tokens=[],e&&(this.tokens=e)},lg=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lv(e,t,n,i,r){var a,o,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,d=!1;if(i){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aU(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(a=t.split("\n"),d=!0),i.accumWidth=f}else{var m=lx(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var v=a[g],y=new lf;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[g]:aH(v,c),g||d)u.push(new lm([y]));else{var x=(u[u.length-1]||(u[0]=new lm)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(v||!_||s)&&x.push(y)}}}var ly=nJ(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lx(e,t,n,i,r){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"===h){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=aH(h,t),f=!i&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!ly[e]}(h);if(a.length?c+p>n:r+c+p>n){c?(s||l)&&(f?(s||(s=l,l="",c=u=0),a.push(s),o.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=p)):f?(a.push(l),o.push(u),l=h,u=p):(a.push(h),o.push(p));continue}c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h)}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:o}}var l_=nU({strokeFirst:!0,font:nk,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sb),lb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return im(l_,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,i){var r=((e||"")+"").split("\n");if(1===r.length)return aV(r[0],t,n,i);for(var a=new re(0,0,0,0),o=0;o<r.length;o++){var s=aV(r[o],t,n,i);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oW);lb.prototype.type="tspan";var lw=nU({x:0,y:0},oE),lS={style:nU({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oB.style)},lC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype.createStyle=function(e){return im(lw,e)},t.prototype._getSize=function(e){var t,n=this.style,i=n[e];if(null!=i)return i;var r=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!r)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?r[e]:r[e]/r[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lS},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new re(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oW);lC.prototype.type="image";var lj=Math.round;function lT(e,t,n){if(!t)return e;var i=lj(2*e);return(i+lj(t))%2==0?i/2:(i+(n?1:-1))/2}var lk=function(){this.x=0,this.y=0,this.width=0,this.height=0},lI={},lM=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new lk},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v=function(e,t,n){if(t){var i=t.x,r=t.y,a=t.width,o=t.height;e.x=i,e.y=r,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=lT(i,s,!0),e.y=lT(r,s,!0),e.width=Math.max(lT(i+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lT(r+o,s,!1)-e.y,+(0!==o))),e}}(lI,t,this.style);p=v.x,f=v.y,m=v.width,g=v.height,v.r=t.r,t=v}else p=t.x,f=t.y,m=t.width,g=t.height;t.r?(l=(n=t).x,u=n.y,c=n.width,d=n.height,h=n.r,c<0&&(l+=c,c=-c),d<0&&(u+=d,d=-d),"number"==typeof h?i=r=a=o=h:h instanceof Array?1===h.length?i=r=a=o=h[0]:2===h.length?(i=a=h[0],r=o=h[1]):3===h.length?(i=h[0],r=o=h[1],a=h[2]):(i=h[0],r=h[1],a=h[2],o=h[3]):i=r=a=o=0,i+r>c&&(s=i+r,i*=c/s,r*=c/s),a+o>c&&(s=a+o,a*=c/s,o*=c/s),r+a>d&&(s=r+a,r*=d/s,a*=d/s),i+o>d&&(s=i+o,i*=d/s,o*=d/s),e.moveTo(l+i,u),e.lineTo(l+c-r,u),0!==r&&e.arc(l+c-r,u+r,r,-Math.PI/2,0),e.lineTo(l+c,u+d-a),0!==a&&e.arc(l+c-a,u+d-a,a,0,Math.PI/2),e.lineTo(l+o,u+d),0!==o&&e.arc(l+o,u+d-o,o,Math.PI/2,Math.PI),e.lineTo(l,u+i),0!==i&&e.arc(l+i,u+i,i,Math.PI,1.5*Math.PI)):e.rect(p,f,m,g)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(sC);lM.prototype.type="rect";var lD={fill:"#000"},lO={style:nU({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},oB.style)},lz=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lD,n.attr(t),n}return nC(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,lF(e=this.style),nK(e.rich,lF),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new re(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var a=t[r],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||o.clone()).union(o)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lD},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return nY(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=n1(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},nY(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return lO},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||nk,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,a=t.font,o=aY(a),s=ii(t.lineHeight,o),l=!!t.backgroundColor,u="truncate"===t.lineOverflow,c=!1,d=t.width,h=(n=null!=d&&("break"===i||"breakAll"===i)?e?lx(e,t.font,d,"breakAll"===i,0).lines:[]:e?e.split("\n"):[]).length*s,p=ii(t.height,h);if(h>p&&u){var f=Math.floor(p/s);c=c||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===i&&null!=d)for(var m=lh(d,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},v=0;v<n.length;v++)lp(g,n[v],m),n[v]=g.textLine,c=c||g.isTruncated;for(var y=p,x=0,v=0;v<n.length;v++)x=Math.max(aH(n[v],a),x);null==d&&(d=x);var _=x;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],d+=r[1]+r[3]),l&&(_=d),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:h,width:d,isTruncated:c}}(lH(e),e),r=lV(e),a=!!e.backgroundColor,o=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,d=this._defaultStyle;this.isTruncated=!!i.isTruncated;var h=e.x||0,p=e.y||0,f=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",g=h,v=aG(p,i.contentHeight,m);if(r||n){var y=aW(h,s,f),x=aG(p,o,m);r&&this._renderBackground(e,e,y,x,s,o)}v+=c/2,n&&(g=lB(h,f,n),"top"===m?v+=n[0]:"bottom"===m&&(v-=n[2]));for(var _=0,b=!1,w=lE("fill"in e?e.fill:(b=!0,d.fill)),S=lL("stroke"in e?e.stroke:a||d.autoStroke&&!b?null:(_=2,d.stroke)),C=e.textShadowBlur>0,j=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=i.calculatedLineHeight,k=0;k<u.length;k++){var I=this._getOrCreateChild(lb),M=I.createStyle();I.useStyle(M),M.text=u[k],M.x=g,M.y=v,f&&(M.textAlign=f),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,C&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=e.lineWidth||_,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),M.font=t,lN(M,e),v+=c,j&&I.setBoundingRect(new re(aW(M.x,l,M.textAlign),aG(M.y,T,M.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,i=new lg;if(null!=e&&(e+=""),!e)return i;for(var r=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=r?{width:r,accumWidth:0,breakAll:"breakAll"===o}:null,l=ld.lastIndex=0;null!=(n=ld.exec(e));){var u=n.index;u>l&&lv(i,e.substring(l,u),t,s),lv(i,n[2],t,s,n[1]),l=ld.lastIndex}l<e.length&&lv(i,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,g={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}t:for(var y=0;y<i.lines.length;y++){for(var x=i.lines[y],_=0,b=0,w=0;w<x.tokens.length;w++){var S=x.tokens[w],C=S.styleName&&t.rich[S.styleName]||{},j=S.textPadding=C.padding,T=j?j[1]+j[3]:0,k=S.font=C.font||t.font;S.contentHeight=aY(k);var I=ii(C.height,S.contentHeight);if(S.innerHeight=I,j&&(I+=j[0]+j[2]),S.height=I,S.lineHeight=ir(C.lineHeight,t.lineHeight,I),S.align=C&&C.align||t.align,S.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&d+S.lineHeight>a){var M=i.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),i.lines=i.lines.slice(0,y+1)):i.lines=i.lines.slice(0,y),i.isTruncated=i.isTruncated||i.lines.length<M;break t}var D=C.width,O=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,c.push(S),S.contentWidth=aH(S.text,k);else{if(O){var z=C.backgroundColor,A=z&&z.image;A&&lc(A=function(e){if("string"!=typeof e)return e;var t=ls.get(e);return t&&t.image}(A))&&(S.width=Math.max(S.width,A.width*I/A.height))}var R=f&&null!=r?r-b:null;null!=R&&R<S.width?!O||R<T?(S.text="",S.width=S.contentWidth=0):(!function(e,t,n,i,r,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=lh(n,i,r,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)lp(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(g,S.text,R-T,k,t.ellipsis,{minChar:t.truncateMinChar}),S.text=g.text,i.isTruncated=i.isTruncated||g.isTruncated,S.width=S.contentWidth=aH(S.text,k)):S.contentWidth=aH(S.text,k)}S.width+=T,b+=S.width,C&&(_=Math.max(_,S.lineHeight))}v(x,b,_)}i.outerWidth=i.width=ii(r,h),i.outerHeight=i.height=ii(a,d),i.contentHeight=d,i.contentWidth=h,p&&(i.outerWidth+=p[1]+p[3],i.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var S=c[y],P=S.percentWidth;S.width=parseInt(P,10)/100*i.width}return i}(lH(e),e),n=t.width,i=t.outerWidth,r=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=aW(o,i,u),h=aG(s,r,c),p=d,f=h;a&&(p+=a[3],f+=a[0]);var m=p+n;lV(e)&&this._renderBackground(e,e,d,h,i,r);for(var g=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,C=p,j=m,T=_-1,k=void 0;S<_&&(!(k=x[S]).align||"left"===k.align);)this._placeToken(k,e,b,f,C,"left",g),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=x[T]).align;)this._placeToken(k,e,b,f,j,"right",g),w-=k.width,j-=k.width,T--;for(C+=(n-(C-p)-(m-j)-w)/2;S<=T;)k=x[S],this._placeToken(k,e,b,f,C+k.width/2,"center",g),C+=k.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,i,r,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2),!e.isLineHolder&&lV(s)&&this._renderBackground(s,t,"right"===a?r-e.width:"center"===a?r-e.width/2:r,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(r=lB(r,a,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(lb),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,m=!1,g=0,v=lE("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lL("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||o||f.autoStroke&&!m?null:(g=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=r,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline="middle",p.font=e.font||nk,p.opacity=ir(s.opacity,t.opacity,1),lN(p,s),y&&(p.lineWidth=ir(s.lineWidth,t.lineWidth,g),p.lineDash=ii(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new re(aW(p.x,_,p.textAlign),aG(p.y,b,p.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,i,r,a){var o,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){(o=this._getOrCreateChild(lM)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=i,m.width=r,m.height=a,m.r=p,o.dirtyShape()}if(h){var g=o.style;g.fill=l||null,g.fillOpacity=ii(e.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(lC)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=a}if(u&&c){var g=o.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=ii(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=ir(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,i="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(i=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),i&&il(i)||e.textFont||e.font},t}(oW),lA={left:!0,right:1,center:1},lR={top:1,bottom:1,middle:1},lP=["fontStyle","fontWeight","fontSize","fontFamily"];function lN(e,t){for(var n=0;n<lP.length;n++){var i=lP[n],r=t[i];null!=r&&(e[i]=r)}}function lF(e){if(e){e.font=lz.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lA[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lR[n]?n:"top",e.padding&&(e.padding=io(e.padding))}}function lL(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lE(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lB(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lH(e){var t=e.text;return null!=t&&(t+=""),t}function lV(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lW=["textStyle","color"],lG=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lY=new lz,lU=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lW):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),il([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lG.length;n++)t[lG[n]]=this.getShallow(lG[n]);return lY.useStyle(t),lY.update(),lY.getBoundingRect()},e}(),lq=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],l$=oA(lq),lX=function(){function e(){}return e.prototype.getLineStyle=function(e){return l$(this,e)},e}(),lK=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lZ=oA(lK),lJ=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lZ(this,e,t)},e}(),lQ=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){nG(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null;return new e(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nW(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nT.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();ok(lQ),w=["__\0is_clz",oM++].join("_"),lQ.prototype[w]=!0,lQ.isInstance=function(e){return!!(e&&e[w])},n$(lQ,lX),n$(lQ,lJ),n$(lQ,oP),n$(lQ,lU);var l1=Math.round(10*Math.random());function l0(e){return[e||"",l1++].join("_")}var l2={},l3={},l4=nT.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l5(e,t){l3[e=e.toUpperCase()]=new lQ(t),l2[e]=t}l5("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),l5("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var l8={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},l9="{yyyy}-{MM}-{dd}",l6={year:"{yyyy}",month:"{yyyy}-{MM}",day:l9,hour:l9+" "+l8.hour,minute:l9+" "+l8.minute,second:l9+" "+l8.second,millisecond:l8.none},l7=["year","month","day","hour","minute","second","millisecond"],ue=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ut(e,t){return e+="","0000".substr(0,t-e.length)+e}function un(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ui(e,t,n,i){var r=ot(e),a=r[uo(n)](),o=r[us(n)]()+1,s=Math.floor((o-1)/3)+1,l=r[ul(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[uu(n)](),d=(c-1)%12+1,h=r[uc(n)](),p=r[ud(n)](),f=r[uh(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=(i instanceof lQ?i:l3[i||l4]||l3.EN).getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ut(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ut(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ut(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ut(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ut(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,ut(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ut(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ut(f,3)).replace(/{S}/g,f+"")}function ur(e,t){var n=ot(e),i=n[us(t)]()+1,r=n[ul(t)](),a=n[uu(t)](),o=n[uc(t)](),s=n[ud(t)](),l=0===n[uh(t)](),u=l&&0===s,c=u&&0===o,d=c&&0===a,h=d&&1===r;if(h&&1===i)return"year";if(h)return"month";if(d)return"day";if(c)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function ua(e,t,n){var i=n8(e)?ot(e):e;switch(t=t||ur(e,n)){case"year":return i[uo(n)]();case"half-year":return+(i[us(n)]()>=6);case"quarter":return Math.floor((i[us(n)]()+1)/4);case"month":return i[us(n)]();case"day":return i[ul(n)]();case"half-day":return i[uu(n)]()/24;case"hour":return i[uu(n)]();case"minute":return i[uc(n)]();case"second":return i[ud(n)]();case"millisecond":return i[uh(n)]()}}function uo(e){return e?"getUTCFullYear":"getFullYear"}function us(e){return e?"getUTCMonth":"getMonth"}function ul(e){return e?"getUTCDate":"getDate"}function uu(e){return e?"getUTCHours":"getHours"}function uc(e){return e?"getUTCMinutes":"getMinutes"}function ud(e){return e?"getUTCSeconds":"getSeconds"}function uh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function up(e){return e?"setUTCMonth":"setMonth"}function uf(e){return e?"setUTCDate":"setDate"}function um(e){return e?"setUTCHours":"setHours"}function ug(e){return e?"setUTCMinutes":"setMinutes"}function uv(e){return e?"setUTCSeconds":"setSeconds"}function uy(e){return e?"setUTCMilliseconds":"setMilliseconds"}var ux=["a","b","c","d","e","f","g"],u_=function(e,t){return"{"+e+(null==t?"":t)+"}"},ub=["left","right","top","bottom","width","height"],uw=[["width","left","right"],["height","top","bottom"]];function uS(e,t,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=h.width+(f?-f.x+h.x:0);(c=a+m)>i||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);(d=o+g)>r||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)})}function uC(e){var t=e.layoutMode||e.constructor.layoutMode;return n9(t)?t:t?{type:t}:null}function uj(e,t,n){var i=n&&n.ignoreSize;n3(i)||(i=[i,i]);var r=o(uw[0],0),a=o(uw[1],1);function o(n,r){var a={},o=0,u={},c=0;if(nK(n,function(t){u[t]=e[t]}),nK(n,function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++}),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2===c||!o)return u;if(o>=2)return a;for(var d=0;d<n.length;d++){var h=n[d];if(!s(a,h)&&s(e,h)){a[h]=e[h];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){nK(e,function(e){t[e]=n[e]})}u(uw[0],e,r),u(uw[1],e,a)}n2(uS,"vertical"),n2(uS,"horizontal");function uT(e,t){return t&&e&&nK(ub,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var uk=oy(),uI=function(e){var t;function n(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=l0("ec_cpt_model"),r}return nC(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uC(this),i=n?uT({},e):{};nG(e,t.getTheme().get(this.mainType)),nG(e,this.getDefaultOption()),n&&uj(e,i,n)},n.prototype.mergeOption=function(e,t){nG(this.option,e,!0);var n=uC(this);n&&uj(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[oj]))return e.defaultOption;var t=uk(this);if(!t.defaultOption){for(var n=[],i=e;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var a={},o=n.length-1;o>=0;o--)a=nG(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return oS(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(lQ);oI(uI,lQ),oz(uI),S={},uI.registerSubTypeDefaulter=function(e,t){S[oT(e).main]=t},uI.determineSubType=function(e,t){var n=t.type;if(!n){var i=oT(e).main;uI.hasSubTypes(e)&&S[i]&&(n=S[i](t))}return n};var uM=function(e){var t=[];return nK(uI.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=nZ(t,function(e){return oT(e).main}),"dataset"!==e&&0>=nq(t,"dataset")&&t.unshift("dataset"),t};function uD(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}uI.topologicalTravel=function(e,t,n,i){if(e.length){var r,a,o,s=(a={},o=[],nK(r=t,function(e){var t,n,i,s=uD(a,e),l=(t=s.originalDeps=uM(e),n=r,i=[],nK(t,function(e){nq(n,e)>=0&&i.push(e)}),i);s.entryCount=l.length,0===s.entryCount&&o.push(e),nK(l,function(t){0>nq(s.predecessor,t)&&s.predecessor.push(t);var n=uD(a,t);0>nq(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,u=s.noEntryList,c={};for(nK(e,function(e){c[e]=!0});u.length;){var d=u.pop(),h=l[d],p=!!c[d];p&&(n.call(i,d,h.originalDeps.slice()),delete c[d]),nK(h.successor,p?m:f)}nK(c,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,f(e)}};var uO="";"u">typeof navigator&&(uO=navigator.platform||"");var uz="rgba(0, 0, 0, 0.2)";let uA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uz,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uz,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uz,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uz,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uz,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uz,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uO.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uR=ip(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),uP="original",uN="arrayRows",uF="objectRows",uL="keyedColumns",uE="typedArray",uB="unknown",uH="column",uV=oy();function uW(e,t){return function(e,t,n,i,r,a){var o,s,l;if(n7(e))return 3;if(i){var u=i[a];n9(u)?(s=u.name,l=u.type):n5(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===uN)if("row"===n){for(var c=e[a],d=0;d<(c||[]).length&&d<5;d++)if(null!=(o=m(c[r+d])))return o}else for(var d=0;d<e.length&&d<5;d++){var h=e[r+d];if(h&&null!=(o=m(h[a])))return o}else if(t===uF){if(!s)return 3;for(var d=0;d<e.length&&d<5;d++){var p=e[d];if(p&&null!=(o=m(p[s])))return o}}else if(t===uL){if(!s)return 3;var c=e[s];if(!c||n7(c))return 3;for(var d=0;d<c.length&&d<5;d++)if(null!=(o=m(c[d])))return o}else if(t===uP)for(var d=0;d<e.length&&d<5;d++){var p=e[d],f=od(p);if(!n3(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n5(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var uG=ip(),uY=oy();oy();var uU=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,i,r,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=o&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,o):n;if((c=c||n)&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}(this,uY,ol(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=uY)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),uq="\0_ec_inner",u$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype.init=function(e,t,n,i,r,a){i=i||{},this.option=null,this._theme=new lQ(i),this._locale=new lQ(r),this._optionManager=a},t.prototype.setOption=function(e,t,n){var i=uZ(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,uZ(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):O(this,r),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=i.getMediaOption(this);o.length&&nK(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],o=ip(),s=t&&t.replaceMergeMainTypeMap;uV(this).datasetMap=ip(),nK(e,function(e,t){null!=e&&(uI.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nW(e):nG(n[t],e,!0))}),s&&s.each(function(e,t){uI.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),uI.topologicalTravel(a,uI.getAllClassMainTypes(),function(t){var a,o,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S,C,j,T=function(e,t,n){var i=uG.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}(this,t,ol(e[t])),k=i.get(t),I=k?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",D=(y=k,x=T,_="normalMerge"===I,b="replaceMerge"===I,w="replaceAll"===I,y=y||[],x=(x||[]).slice(),S=ip(),nK(x,function(e,t){if(!n9(e)){x[t]=null;return}}),C=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var a=e[r];a&&null!=a.id&&t.set(a.id,r),i.push({existing:"replaceMerge"===n||og(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}(y,S,I),(_||b)&&(a=C,o=y,l=S,nK(u=x,function(e,t){if(e&&null!=e.id){var n=op(e.id),i=l.get(n);if(null!=i){var r=a[i];is(!r.newOption,'Duplicated option on id "'+n+'".'),r.newOption=e,r.existing=o[i],u[t]=null}}})),_&&(c=C,nK(d=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<c.length;n++){var i=c[n].existing;if(!c[n].newOption&&i&&(null==i.id||null==e.id)&&!og(e)&&!og(i)&&oh("name",i,e)){c[n].newOption=e,d[t]=null;return}}})),_||b?(h=C,p=x,f=b,nK(p,function(e){if(e){for(var t,n=0;(t=h[n])&&(t.newOption||og(t.existing)||t.existing&&null!=e.id&&!oh("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):h.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):w&&(m=C,nK(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),g=C,v=ip(),nK(g,function(e){var t=e.existing;t&&v.set(t.id,e)}),nK(g,function(e){var t=e.newOption;is(!t||null==t.id||!v.get(t.id)||v.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&v.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nK(g,function(e,t){var n=e.existing,i=e.newOption,r=e.keyInfo;if(n9(i)){if(r.name=null!=i.name?op(i.name):n?n.name:os+t,n)r.id=op(n.id);else if(null!=i.id)r.id=op(i.id);else{var a=0;do r.id="\0"+r.name+"\0"+a++;while(v.get(r.id))}v.set(r.id,e)}}),C);nK(D,function(e){var n,i,r,a,o=e.newOption;n9(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,i=o,r=e.existing,a=uI,i.type?i.type:r?r.subType:a.determineSubType(n,i)))}),n[t]=null,i.set(t,null),r.set(t,0);var O=[],z=[],A=0;nK(D,function(e,n){var i=e.existing,r=e.newOption;if(r){var a="series"===t,o=uI.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(j)return;j=!0}if(i&&i.constructor===o)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=nY({componentIndex:n},e.keyInfo);nY(i=new o(r,this,this,s),s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(O.push(i.option),z.push(i),A++):(O.push(void 0),z.push(void 0))},this),n[t]=O,i.set(t,z),r.set(t,A),"series"===t&&M(this)},this),this._seriesIndices||M(this)},t.prototype.getOption=function(){var e=nW(this.option);return nK(e,function(t,n){if(uI.hasClass(n)){for(var i=ol(t),r=i.length,a=!1,o=r-1;o>=0;o--)i[o]&&!og(i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,e[n]=i}}),delete e[uq],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t){for(var r=0;r<n.length;r++)if(n[r])return n[r]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var i=e.index,r=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=i?(t=[],nK(ol(i),function(e){o[e]&&t.push(o[e])})):t=null!=r?uX("id",r,o):null!=a?uX("name",a,o):nQ(o,function(e){return!!e}),uK(t,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",i=s+"Id",r=s+"Name",t&&(null!=t[n]||null!=t[i]||null!=t[r])?{mainType:s,index:t[n],id:t[i],name:t[r]}:null);return a=uK(l?this.queryComponents(l):nQ(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?nQ(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(n4(e))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var a=n[r];a&&e.call(t,i,a,a.componentIndex)}});else for(var r=n5(e)?i.get(e):n9(e)?this.findComponents(e):null,a=0;r&&a<r.length;a++){var o=r[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=of(e,null);return nQ(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return nQ(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return nQ(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){D(this),nK(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)},this)},t.prototype.eachRawSeries=function(e,t){nK(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){D(this),nK(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return nK(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return D(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){D(this);var n=[];nK(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ip(n)},t.prototype.restoreData=function(e){M(this);var t=this._componentsMap,n=[];t.each(function(e,t){uI.hasClass(t)&&n.push(t)}),uI.topologicalTravel(n,uI.getAllClassMainTypes(),function(n){nK(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e))&&t.restoreData()})})},t.internalField=void(M=function(e){var t=e._seriesIndices=[];nK(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=ip(t)},D=function(e){},O=function(e,t){e.option={},e.option[uq]=1,e._componentsMap=ip({series:[]}),e._componentsCount=ip();var n,i,r,a=t.aria;n9(a)&&null==a.enabled&&(a.enabled=!0),n=t,i=e._theme.option,r=n.color&&!n.colorLayer,nK(i,function(e,t){("colorLayer"!==t||!r)&&(uI.hasClass(t)||("object"==typeof e?n[t]=n[t]?nG(n[t],e,!1):nW(e):null==n[t]&&(n[t]=e)))}),nG(t,uA,!1),e._mergeOption(t,null)}),t}(lQ);function uX(e,t,n){if(n3(t)){var i=ip();return nK(t,function(e){null!=e&&null!=of(e,null)&&i.set(e,!0)}),nQ(n,function(t){return t&&i.get(t[e])})}var r=of(t,null);return nQ(n,function(t){return t&&null!=r&&t[e]===r})}function uK(e,t){return t.hasOwnProperty("subType")?nQ(e,function(e){return e&&e.subType===t.subType}):e}function uZ(e){var t=ip();return e&&nK(ol(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}n$(u$,uU);var uJ=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let uQ=function(e){nK(uJ,function(t){this[t]=n0(e[t],e)},this)};var u1={},u0=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nK(u1,function(i,r){var a=i.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nK(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){u1[e]=t},e.get=function(e){return u1[e]},e}(),u2=/^(min|max)?(.+)$/,u3=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nK(ol(e.series),function(e){e&&e.data&&n7(e.data)&&(e.data[iu]=!0)}),nK(ol(e.dataset),function(e){e&&e.source&&n7(e.source)&&(e.source[iu]=!0)})),e=nW(e);var i=this._optionBackup,r=function(e,t,n){var i,r,a=[],o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);function h(e){nK(t,function(t){t(e,n)})}return o?(r=o).timeline||(r.timeline=s):((d||c)&&(e.options=e.media=null),r=e),c&&n3(u)&&nK(u,function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))}),h(r),nK(l,function(e){return h(e)}),nK(a,function(e){return h(e.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:a}}(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],nW(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=nW(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)(function(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return nK(e,function(e,t){var n=t.match(u2);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=i[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(r=!1)}}),r})(a[u].query,i,r)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=nZ(s,function(e){return nW(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),u4=n9,u5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u8(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=u5.length;n<i;n++){var r=u5[n],a=t.normal,o=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?nG(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),o&&o[r]&&(e[r]=e[r]||{},e[r].emphasis?nG(e[r].emphasis,o[r]):e[r].emphasis=o[r],o[r]=null)}}function u9(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,nU(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function u6(e){u9(e,"itemStyle"),u9(e,"lineStyle"),u9(e,"areaStyle"),u9(e,"label"),u9(e,"labelLine"),u9(e,"upperLabel"),u9(e,"edgeLabel")}function u7(e,t){var n=u4(e)&&e[t],i=u4(n)&&n.textStyle;if(i)for(var r=0,a=oc.length;r<a;r++){var o=oc[r];i.hasOwnProperty(o)&&(n[o]=i[o])}}function ce(e){e&&(u6(e),u7(e,"label"),e.emphasis&&u7(e.emphasis,"label"))}function ct(e){return n3(e)?e:e?[e]:[]}function cn(e){return(n3(e)?e[0]:e)||{}}function ci(e){e&&nK(cr,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var cr=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ca=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],co=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function cs(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<co.length;n++){var i=co[n][1],r=co[n][0];null!=t[i]&&(t[r]=t[i])}}function cl(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function cu(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function cc(e,t){var n;nK(ct(e.series),function(e){u4(e)&&function(e){if(u4(e)){u8(e),u6(e),u7(e,"label"),u7(e,"upperLabel"),u7(e,"edgeLabel"),e.emphasis&&(u7(e.emphasis,"label"),u7(e.emphasis,"upperLabel"),u7(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(u8(t),ce(t));var n=e.markLine;n&&(u8(n),ce(n));var i=e.markArea;i&&ce(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!n7(a))for(var o=0;o<a.length;o++)ce(a[o]);nK(e.categories,function(e){u6(e)})}if(r&&!n7(r))for(var o=0;o<r.length;o++)ce(r[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)ce(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)n3(l[o])?(ce(l[o][0]),ce(l[o][1])):ce(l[o]);"gauge"===e.type?(u7(e,"axisLabel"),u7(e,"title"),u7(e,"detail")):"treemap"===e.type?(u9(e.breadcrumb,"itemStyle"),nK(e.levels,function(e){u6(e)})):"tree"===e.type&&u6(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nK(n,function(t){nK(ct(e[t]),function(e){e&&(u7(e,"axisLabel"),u7(e.axisPointer,"label"))})}),nK(ct(e.parallel),function(e){var t=e&&e.parallelAxisDefault;u7(t,"axisLabel"),u7(t&&t.axisPointer,"label")}),nK(ct(e.calendar),function(e){u9(e,"itemStyle"),u7(e,"dayLabel"),u7(e,"monthLabel"),u7(e,"yearLabel")}),nK(ct(e.radar),function(e){u7(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nK(ct(e.geo),function(e){u4(e)&&(ce(e),nK(ct(e.regions),function(e){ce(e)}))}),nK(ct(e.timeline),function(e){ce(e),u9(e,"label"),u9(e,"itemStyle"),u9(e,"controlStyle",!0);var t=e.data;n3(t)&&nK(t,function(e){n9(e)&&(u9(e,"label"),u9(e,"itemStyle"))})}),nK(ct(e.toolbox),function(e){u9(e,"iconStyle"),nK(e.feature,function(e){u9(e,"iconStyle")})}),u7(cn(e.axisPointer),"label"),u7(cn(e.tooltip).axisPointer,"label"),e.series=ol(e.series),nK(e.series,function(e){if(n9(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),cl(e.label);var n=e.data;if(n&&!n7(n))for(var i=0;i<n.length;i++)cl(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(e,"pointer.color");null!=r&&function(e,t,n,i){for(var r,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[r=a[s]]&&(o[r]={}),o=o[r];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){cs(e),cs(e.backgroundStyle),cs(e.emphasis);var n=e.data;if(n&&!n7(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(cs(n[i]),cs(n[i]&&n[i].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),cu(e),function e(t,n){if(t)for(var i=0;i<t.length;i++)n(t[i]),t[i]&&e(t[i].children,n)}(e.data,cu)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nU(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ci(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nK(ca,function(t){var n=e[t];n&&(n3(n)||(n=[n]),nK(n,function(e){ci(e)}))})}function cd(e){nK(e,function(t,n){var i=[],r=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,u,c){var d,h,p=o.get(t.stackedDimension,c);if(isNaN(p))return r;s?h=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var f=NaN,m=n-1;m>=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=function(e,t){var n=Math.max(a7(e),a7(t)),i=e+t;return n>20?i:a6(i,n)}(p,v),f=v;break}}}return i[0]=p,i[1]=f,i})})}var ch=function(e){this.data=e.data||(e.sourceFormat===uL?{}:[]),this.sourceFormat=e.sourceFormat||uB,this.seriesLayoutBy=e.seriesLayoutBy||uH,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&1===uW(this,n)&&(i.type="ordinal")}};function cp(e){return e instanceof ch}function cf(e,t,n){n=n||cg(e);var i=t.seriesLayoutBy,r=function(e,t,n,i,r){if(!e)return{dimensionsDefine:cv(r),startIndex:o,dimensionsDetectedCount:a};if(t===uN){var a,o;"auto"===i||null==i?cy(function(e){null!=e&&"-"!==e&&(n5(e)?null==o&&(o=1):o=0)},n,e,10):o=n8(i)?i:+!!i,r||1!==o||(r=[],cy(function(e,t){r[t]=null!=e?e+"":""},n,e,1/0)),a=r?r.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===uF)r||(r=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return n1(t)}(e));else if(t===uL)r||(r=[],nK(e,function(e,t){r.push(t)}));else if(t===uP){var s=od(e[0]);a=n3(s)&&s.length||1}return{startIndex:o,dimensionsDefine:cv(r),dimensionsDetectedCount:a}}(e,n,i,t.sourceHeader,t.dimensions);return new ch({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:nW(t)})}function cm(e){return new ch({data:e,sourceFormat:n7(e)?uE:uP})}function cg(e){var t=uB;if(n7(e))t=uE;else if(n3(e)){0===e.length&&(t=uN);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(n3(r)||n7(r)){t=uN;break}else if(n9(r)){t=uF;break}}}}else if(n9(e)){for(var a in e)if(iv(e,a)&&nX(e[a])){t=uL;break}}return t}function cv(e){if(e){var t=ip();return nZ(e,function(e,n){var i={name:(e=n9(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i})}}function cy(e,t,n,i){if("row"===t)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else for(var a=n[0]||[],r=0;r<a.length&&r<i;r++)e(a[r],r)}function cx(e){var t=e.sourceFormat;return t===uF||t===uL}var c_=function(){var e;function t(e,t){var n=cp(e)?e:cm(e);this._source=n;var i=this._data=n.data;n.sourceFormat===uE&&(this._offset=0,this._dimSize=t,this._data=i),N(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){N=function(e,r,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine;nY(e,P[ck(o,s)]),o===uE?(e.getItem=t,e.count=i,e.fillStorage=n):(e.getItem=n0(function(e,t){return cw[ck(e,t)]}(o,s),null,r,l,u),e.count=n0(function(e,t){return cC[ck(e,t)]}(o,s),null,r,l,u))};var e,t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,a=0;a<i;a++)t[a]=n[r+a];return t},n=function(e,t,n,i){for(var r=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=i[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],h=0;h<c;h++){var p=r[h*a+o];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[uN+"_"+uH]={pure:!0,appendData:r},e[uN+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[uF]={pure:!0,appendData:r},e[uL]={pure:!0,appendData:function(e){var t=this._data;nK(e,function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])})}},e[uP]={appendData:r},e[uE]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},P=e}(),t}(),cb=function(e,t,n,i){return e[i]},cw=((z={})[uN+"_"+uH]=function(e,t,n,i){return e[i+t]},z[uN+"_row"]=function(e,t,n,i,r){i+=t;for(var a=r||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[i]:null}return a},z[uF]=cb,z[uL]=function(e,t,n,i,r){for(var a=r||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[i]:null}return a},z[uP]=cb,z),cS=function(e,t,n){return e.length},cC=((A={})[uN+"_"+uH]=function(e,t,n){return Math.max(0,e.length-t)},A[uN+"_row"]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},A[uF]=cS,A[uL]=function(e,t,n){var i=e[n[0].name];return i?i.length:0},A[uP]=cS,A),cj=function(e,t,n){return e[t]},cT=((R={})[uN]=cj,R[uF]=function(e,t,n){return e[n]},R[uL]=cj,R[uP]=function(e,t,n){var i=od(e);return i instanceof Array?i[t]:i},R[uE]=cj,R);function ck(e,t){return e===uN?e+"_"+t:e}function cI(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),a=r.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=r.getDimensionProperty(o);return cT[a](i,o,s)}var l=i;return a===uP&&(l=od(i)),l}}}var cM=/\{@(.+?)\}/g,cD=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:r,data:o,dataType:t,value:i,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=i&&n3(s.value)&&(s.value=s.value[i]),r||(r=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),n4(r))?(s.status=t,s.dimensionIndex=i,r(s)):n5(r)?(function(e,t,n){n3(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var o=ux[a];e=e.replace(u_(o),u_(o,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(u_(ux[l],s),u)}return e})(r,s).replace(cM,function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=cI(o,e,r);if(a&&n3(a.interpolatedValue)){var l=o.getDimensionIndex(r);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return cI(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function cO(e){return new cz(e)}var cz=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n,i,r,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(i=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),u=this._modDataCount||0,c=((n=e&&e.modBy)>=1||(n=1),n),d=e&&e.modDataCount||0;(l!==c||u!==d)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(o)),this._modBy=c,this._modDataCount=d;var h=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(r||p<f)){var m=this._progress;if(n3(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,f,c,d);else this._doProgress(m,p,f,c,d)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){cA.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:cA.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),n3(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),cA=function(){var e,t,n,i,r,a={reset:function(l,u,c,d){t=l,e=u,n=c,r=Math.ceil((i=d)/n),a.next=n>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%r*n+Math.ceil(t/r),o=t>=e?null:a<i?a:t;return t++,o}}();function cR(e){throw Error(e)}function cP(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n8(e)||null==e||"-"===e||(e=+ot(e)),null==e||""===e?NaN:Number(e))}ip({number:function(e){return parseFloat(e)},time:function(e){return+ot(e)},trim:function(e){return n5(e)?il(e):e}});var cN={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(e,t){n8(t)||cR(""),this._opFn=cN[e],this._rvalFloat=or(t)}).prototype.evaluate=function(e){return n8(e)?this._opFn(e,this._rvalFloat):this._opFn(or(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n8(e)?e:or(e),i=n8(t)?t:or(t),r=isNaN(n),a=isNaN(i);if(r&&(n=this._incomparable),a&&(i=this._incomparable),r&&a){var o=n5(e),s=n5(t);o&&(n=s?e:0),s&&(i=o?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=or(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=or(e)===this._rvalFloat)}return this._isEQ?t:!t};var cF=function(){function e(){}return e.prototype.getRawData=function(){throw Error("not supported")},e.prototype.getRawDataItem=function(e){throw Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return cP(e,t)},e}();function cL(e){return cW(e.sourceFormat)||cR(""),e.data}function cE(e){var t=e.sourceFormat,n=e.data;if(cW(t)||cR(""),t===uN){for(var i=[],r=0,a=n.length;r<a;r++)i.push(n[r].slice());return i}if(t===uF){for(var i=[],r=0,a=n.length;r<a;r++)i.push(nY({},n[r]));return i}}function cB(e,t,n){if(null!=n){if(n8(n)||!isNaN(n)&&!iv(t,n))return e[n];else if(iv(t,n))return t[n]}}function cH(e){return nW(e)}var cV=ip();function cW(e){return e===uN||e===uF}var cG="undefined",cY=typeof Uint32Array===cG?Array:Uint32Array,cU=typeof Uint16Array===cG?Array:Uint16Array,cq=typeof Int32Array===cG?Array:Int32Array,c$=typeof Float64Array===cG?Array:Float64Array,cX={float:c$,int:cq,ordinal:Array,number:Array,time:c$};function cK(e){return e>65535?cY:cU}function cZ(){return[1/0,-1/0]}function cJ(e,t,n,i,r){var a=cX[n||"float"];if(r){var o=e[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(i)}var cQ=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ip()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=F[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],cx(i),this._dimensions=nZ(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new cX[t||"float"](this._rawCount),this._rawExtent[r]=cZ(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,a=i.ordinalOffset||0,o=n.length;0===a&&(r[e]=cZ());for(var s=r[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=o,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),l=0;l<r;l++){var u=i[l];cJ(n,l,u.type,s,!0)}for(var c=[],d=o;d<s;d++)for(var h=d-o,p=0;p<r;p++){var u=i[p],f=F.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=nZ(a,function(e){return e.property}),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=cZ()),cJ(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var d=[],h=e;h<t;h++){d=i.getItem(h,d);for(var p=0;p<o;p++){var f=r[p],m=this._dimValueGetter(d,l[p],h,p);f[h]=m;var g=s[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;for(var r=0,a=i.length;r<a;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var a=this.get(e,i);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return -1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var a=(i+r)/2|0;if(t[a]<e)i=a+1;else{if(!(t[a]>e))return a;r=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],r=[];if(!i)return r;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-i[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<a||d===a&&c>=0&&o<0)&&(a=d,o=c,s=0),c===o&&(r[s++]=l))}return r.length=s,r},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{var n=cK(this._rawCount);e=new n(this.count());for(var r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(cK(n._rawCount))(i),a=[],o=e.length,s=0,l=e[0],u=n._chunks,c=0;c<i;c++){var d=void 0,h=n.getRawIndex(c);if(0===o)d=t(c);else if(1===o)d=t(u[l][h],c);else{for(var p=0;p<o;p++)a[p]=u[e[p]][h];a[p]=c,d=t.apply(null,a)}d&&(r[s++]=h)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=n1(e),r=i.length;if(!r)return this;var a=t.count(),o=new(cK(t._rawCount))(a),s=0,l=i[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===r){for(var f=d[i[0]],m=0;m<n;m++){var g=f[m];(g>=u&&g<=c||isNaN(g))&&(o[s++]=p),p++}h=!0}else if(2===r){for(var f=d[i[0]],v=d[i[1]],y=e[i[1]][0],x=e[i[1]][1],m=0;m<n;m++){var g=f[m],_=v[m];(g>=u&&g<=c||isNaN(g))&&(_>=y&&_<=x||isNaN(_))&&(o[s++]=p),p++}h=!0}}if(!h)if(1===r)for(var m=0;m<a;m++){var b=t.getRawIndex(m),g=d[i[0]][b];(g>=u&&g<=c||isNaN(g))&&(o[s++]=b)}else for(var m=0;m<a;m++){for(var w=!0,b=t.getRawIndex(m),S=0;S<r;S++){var C=i[S],g=d[C][b];(g<e[C][0]||g>e[C][1])&&(w=!1)}w&&(o[s++]=t.getRawIndex(m))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],a=t.length,o=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=cZ();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),h=0;h<a;h++)s[h]=i[t[h]][d];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var u=0;u<p.length;u++){var f=t[u],m=p[u],g=l[f],v=i[f];v&&(v[d]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(cK(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),m=(f+p)/2,g=0,v=p;v<f;v++){var y=this.getRawIndex(v),x=o[y];isNaN(x)||(g+=x)}g/=f-p;var _=h,b=Math.min(h+u,s),w=h-1,S=o[c];n=-1,r=_;for(var C=-1,j=0,v=_;v<b;v++){var y=this.getRawIndex(v),x=o[y];if(isNaN(x)){j++,C<0&&(C=y);continue}(i=Math.abs((w-m)*(x-S)-(w-v)*(g-S)))>n&&(n=i,r=y)}j>0&&j<b-_&&(d[l++]=Math.min(C,r),r=Math.max(C,r)),d[l++]=r,c=r}return d[l++]=this.getRawIndex(s-1),a._count=l,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,r=Math.floor(1/t),a=i[e],o=this.count(),s=new(cK(this._rawCount))(2*Math.ceil(o/r)),l=0,u=0;u<o;u+=r){var c=u,d=a[this.getRawIndex(c)],h=u,p=a[this.getRawIndex(h)],f=r;u+r>o&&(f=o-u);for(var m=0;m<f;m++){var g=a[this.getRawIndex(u+m)];g<d&&(d=g,c=u+m),g>p&&(p=g,h=u+m)}var v=this.getRawIndex(c),y=this.getRawIndex(h);c<h?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),a=r._chunks,o=[],s=Math.floor(1/t),l=a[e],u=this.count(),c=r._rawExtent[e]=cZ(),d=new(cK(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(o.length=s=u-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var g=n(o),v=this.getRawIndex(Math.min(p+i(o,g)||0,u-1));l[v]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=v}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,a=this.count();r<a;r++){var o=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][o],r);break;case 2:t(i[e[0]][o],i[e[1]][o],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][o];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],i=cZ();if(!n)return i;var r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=i)[0],o=t[1],s=0;s<r;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,a=t&&nJ(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<r.length;o++)i._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(r[o]):r[o];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=nW(this._extent),e._rawExtent=nW(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return cP(e[i],this._dimensions[i])}F={arrayRows:e,objectRows:function(e,t,n,i){return cP(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return cP(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),c1=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(c2(n)){var a=void 0,o=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=n7(a=n.get("data",!0))?uE:uP,t=[];var u=this._getSourceMetaRawOption()||{},c=s&&s.metaRawOption||{},d=ii(u.seriesLayoutBy,c.seriesLayoutBy)||null,h=ii(u.sourceHeader,c.sourceHeader),p=ii(u.dimensions,c.dimensions);e=d!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||p?[cf(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:p},o)]:[]}else if(r){var f=this._applyTransform(i);e=f.sourceList,t=f.upstreamSignList}else e=[cf(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,i=this._sourceHost,r=i.get("transform",!0),a=i.get("fromTransformResult",!0);null!=a&&1!==e.length&&c3("");var o=[],s=[];return(nK(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||c3(""),o.push(t),s.push(e._getVersionSign())}),r)?n=function(e,t,n){var i=ol(e),r=i.length;r||cR("");for(var a=0;a<r;a++)t=function(e,t,n,i){t.length||cR(""),n9(e)||cR("");var r=e.type,a=cV.get(r);a||cR("");var o=nZ(t,function(e){return function(e,t){var n=new cF,i=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==uH&&cR("");var o=[],s={},l=e.dimensionsDefine;if(l)nK(l,function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};o.push(i),null!=n&&(iv(s,n)&&cR(""),s[n]=i)});else for(var u=0;u<e.dimensionsDetectedCount||0;u++)o.push({index:u});var c=cw[ck(r,uH)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(i,a,o,e)},n.getRawData=n0(cL,null,e)),n.cloneRawData=n0(cE,null,e),n.count=n0(cC[ck(r,uH)],null,i,a,o);var d=cT[r];n.retrieveValue=function(e,t){return h(c(i,a,o,e),t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=n0(cB,null,o,s),n.cloneAllDimensionInfo=n0(cH,null,o),n}(e,a)});return nZ(ol(a.transform({upstream:o[0],upstreamList:o,config:nW(e.config)})),function(e,n){n9(e)||cR(""),e.data||cR(""),cW(cg(e.data))||cR("");var i,r=t[0];if(r&&0===n&&!e.dimensions){var a=r.startIndex;a&&(e.data=r.data.slice(0,a).concat(e.data)),i={seriesLayoutBy:uH,sourceHeader:a,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:uH,sourceHeader:0,dimensions:e.dimensions};return cf(e.data,i,null)})}(i[a],t,0,0),a!==r-1&&(t.length=Math.max(t.length,1));return t}(r,o,{datasetIndex:i.componentIndex}):null!=a&&(n=[new ch({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nW(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var a=r[n];if(!a){var o=this._getUpstreamSourceManagers()[0];c2(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new cQ).initData(new c_(t,e.length),e),r[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(c2(e)){var t=function(e){if(!e.get("data",!0))return oS(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ow).models[0]}(e);return t?[t.getSourceManager()]:[]}return nZ(e.get("transform",!0)||e.get("fromTransformResult",!0)?oS(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ow).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;return c2(i)?(e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function c0(e){e.option.transform&&(e.option.transform[iu]=!0)}function c2(e){return"series"===e.mainType}function c3(e){throw Error(e)}function c4(){this.richTextStyles={},this._nextStyleNameId=oa()}c4.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},c4.prototype.makeTooltipMarker=function(e,t,n){var i,r,a,o,s,l,u="richText"===n?this._generateStyleName():null,c=(o=(a=n5(i={color:t,type:e,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=a.type,r=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+iE(o)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+iE(o)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n5(c)?c:(this.richTextStyles[u]=c.style,c.content)},c4.prototype.wrapRichTextStyle=function(e,t){var n={};n3(t)?nK(t,function(e){return nY(n,e)}):nY(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"};var c5=oy();function c8(e,t){return e.getName(t)||e.getId(t)}var c9=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return nC(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=cO({count:c7,reset:de}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(c5(this).sourceManager=new c1(this)).prepareSource();var i=this.getInitialData(e,n);dn(i,this),this.dataTask.context.data=i,c5(this).dataBeforeProcessed=i,c6(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uC(this),i=n?uT({},e):{},r=this.subType;uI.hasClass(r)&&(r+="Series"),nG(e,t.getTheme().get(this.subType)),nG(e,this.getDefaultOption()),ou(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&uj(e,i,n)},n.prototype.mergeOption=function(e,t){e=nG(this.option,e,!0),this.fillDataTextStyle(e.data);var n=uC(this);n&&uj(this.option,e,n);var i=c5(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);dn(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,c5(this).dataBeforeProcessed=r,c6(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(e){if(e&&!n7(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&ou(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=dr(this);if(!t)return c5(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=dr(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}c5(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ip(e)},n.prototype.getSourceManager=function(){return c5(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return c5(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,i,r,a,o,s,l,u=e.series,c=e.dataIndex,d=e.multipleSeries,h=u.getData(),p=h.mapDimensionsAll("defaultedTooltip"),f=p.length,m=u.getRawValue(c),g=n3(m),v=(n=n||"transparent",n5(t=u.getData().getItemVisual(c,"style")[u.visualDrawType])?t:n9(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||g&&!f){var y=function(e,t,n,i,r){var a=t.getData(),o=nJ(e,function(e,t,n){var i=a.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(e,t){var n,i=a.getDimensionInfo(t);i&&!1!==i.otherDims.tooltip&&(o?u.push(((n={markerType:"subItem",markerColor:r,name:i.displayName,value:e,valueType:i.type}).type="nameValue",n)):(s.push(e),l.push(i.type)))}return i.length?nK(i,function(e){c(cI(a,n,e),e)}):nK(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(m,u,c,p,v);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=h.getDimensionInfo(p[0]);l=a=cI(h,c,p[0]),o=x.type}else l=a=g?m[0]:m;var _=om(u),b=_&&u.name||"",w=h.getName(c),S=d?b:w;return(r={header:b,noHeader:d||!_,sortParam:l,blocks:[((i={markerType:"item",markerColor:v,name:S,noName:!il(S),value:a,valueType:o,dataIndex:c}).type="nameValue",i)].concat(s||[])}).type="section",r}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nT.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=uU.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=c8(r,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=n1(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[c8(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,i,r=this.option,a=r.selectedMode,o=t.length;if(a&&o){if("series"===a)r.selectedMap="all";else if("multiple"===a){n9(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<o;l++){var u=t[l],c=c8(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===a||!0===a){var d=t[o-1],c=c8(e,d);(n={})[c]=!0,r.selectedMap=n,this._selectedDataIndicesMap=((i={})[c]=e.getRawIndex(d),i)}}},n.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},n.registerClass=function(e){return uI.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(uI);function c6(e){var t,n,i,r=e.name;om(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),i=[],nK(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function c7(e){return e.model.getRawData().count()}function de(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),dt}function dt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function dn(e,t){nK(function(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];for(var r=e.length,i=0;i<t.length;i++)n[i+r]=t[i];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,n2(di,t))})}function di(e,t){var n=dr(e);return n&&n.setOutputEnd((t||this).count()),t}function dr(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}n$(c9,cD),n$(c9,uU),oI(c9,uI);var da=function(){function e(){this.group=new a2,this.uid=l0("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ok(da),oz(da);var ds=sc.CMD,dl=[[],[],[]],du=Math.sqrt,dc=Math.atan2,dd=Math.sqrt,dh=Math.sin,dp=Math.cos,df=Math.PI;function dm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dg(e,t){return(e[0]*t[0]+e[1]*t[1])/(dm(e)*dm(t))}function dv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dg(e,t))}function dy(e,t,n,i,r,a,o,s,l,u,c){var d=df/180*l,h=dp(d)*(e-n)/2+dh(d)*(t-i)/2,p=-1*dh(d)*(e-n)/2+dp(d)*(t-i)/2,f=h*h/(o*o)+p*p/(s*s);f>1&&(o*=dd(f),s*=dd(f));var m=(r===a?-1:1)*dd((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,g=m*o*p/s,v=-(m*s)*h/o,y=(e+n)/2+dp(d)*g-dh(d)*v,x=(t+i)/2+dh(d)*g+dp(d)*v,_=dv([1,0],[(h-g)/o,(p-v)/s]),b=[(h-g)/o,(p-v)/s],w=[(-1*h-g)/o,(-1*p-v)/s],S=dv(b,w);if(-1>=dg(b,w)&&(S=df),dg(b,w)>=1&&(S=0),S<0){var C=Math.round(S/df*1e6)/1e6;S=2*df+C%2*df}c.addData(u,y,x,o,s,_,S,d,a)}var dx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,d_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,db=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype.applyTransform=function(e){},t}(sC),dw=function(){this.cx=0,this.cy=0,this.r=0},dS=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new dw},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(sC);dS.prototype.type="circle";var dC=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dj=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new dC},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=t.rx,a=t.ry,o=.5522848*r,s=.5522848*a;e.moveTo(n-r,i),e.bezierCurveTo(n-r,i-s,n-o,i-a,n,i-a),e.bezierCurveTo(n+o,i-a,n+r,i-s,n+r,i),e.bezierCurveTo(n+r,i+s,n+o,i+a,n,i+a),e.bezierCurveTo(n-o,i+a,n-r,i+s,n-r,i),e.closePath()},t}(sC);dj.prototype.type="ellipse";var dT=Math.PI,dk=2*dT,dI=Math.sin,dM=Math.cos,dD=Math.acos,dO=Math.atan2,dz=Math.abs,dA=Math.sqrt,dR=Math.max,dP=Math.min;function dN(e,t,n,i,r,a,o){var s=e-n,l=t-i,u=(o?a:-a)/dA(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=i+d,g=(h+f)/2,v=(p+m)/2,y=f-h,x=m-p,_=y*y+x*x,b=r-a,w=h*m-f*p,S=(x<0?-1:1)*dA(dR(0,b*b*_-w*w)),C=(w*x-y*S)/_,j=(-w*y-x*S)/_,T=(w*x+y*S)/_,k=(-w*y+x*S)/_,I=C-g,M=j-v,D=T-g,O=k-v;return I*I+M*M>D*D+O*O&&(C=T,j=k),{cx:C,cy:j,x0:-c,y0:-d,x1:C*(r/b-1),y1:j*(r/b-1)}}var dF=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},dL=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new dF},t.prototype.buildPath=function(e,t){!function(e,t){var n,i=dR(t.r,0),r=dR(t.r0||0,0),a=i>0,o=r>0;if(a||o){if(a||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,p=dz(u-l),f=p>dk&&p%dk;if(f>1e-4&&(p=f),i>1e-4)if(p>dk-1e-4)e.moveTo(c+i*dM(l),d+i*dI(l)),e.arc(c,d,i,l,u,!h),r>1e-4&&(e.moveTo(c+r*dM(u),d+r*dI(u)),e.arc(c,d,r,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,j=void 0,T=void 0,k=void 0,I=void 0,M=void 0,D=void 0,O=i*dM(l),z=i*dI(l),A=r*dM(u),R=r*dI(u),P=p>1e-4;if(P){var N=t.cornerRadius;N&&(m=(n=function(e){var t;if(n3(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(N))[0],g=n[1],v=n[2],y=n[3]);var F=dz(i-r)/2;if(x=dP(F,v),_=dP(F,y),b=dP(F,m),w=dP(F,g),j=S=dR(x,_),T=C=dR(b,w),(S>1e-4||C>1e-4)&&(k=i*dM(u),I=i*dI(u),M=r*dM(l),D=r*dI(l),p<dT)){var L=function(e,t,n,i,r,a,o,s){var l=n-e,u=i-t,c=o-r,d=s-a,h=d*l-c*u;if(!(h*h<1e-4))return h=(c*(t-a)-d*(e-r))/h,[e+h*l,t+h*u]}(O,z,M,D,k,I,A,R);if(L){var E=O-L[0],B=z-L[1],H=k-L[0],V=I-L[1],W=1/dI(dD((E*H+B*V)/(dA(E*E+B*B)*dA(H*H+V*V)))/2),G=dA(L[0]*L[0]+L[1]*L[1]);j=dP(S,(i-G)/(W+1)),T=dP(C,(r-G)/(W-1))}}}if(P)if(j>1e-4){var Y=dP(v,j),U=dP(y,j),q=dN(M,D,O,z,i,Y,h),$=dN(k,I,A,R,i,U,h);e.moveTo(c+q.cx+q.x0,d+q.cy+q.y0),j<S&&Y===U?e.arc(c+q.cx,d+q.cy,j,dO(q.y0,q.x0),dO($.y0,$.x0),!h):(Y>0&&e.arc(c+q.cx,d+q.cy,Y,dO(q.y0,q.x0),dO(q.y1,q.x1),!h),e.arc(c,d,i,dO(q.cy+q.y1,q.cx+q.x1),dO($.cy+$.y1,$.cx+$.x1),!h),U>0&&e.arc(c+$.cx,d+$.cy,U,dO($.y1,$.x1),dO($.y0,$.x0),!h))}else e.moveTo(c+O,d+z),e.arc(c,d,i,l,u,!h);else e.moveTo(c+O,d+z);if(r>1e-4&&P)if(T>1e-4){var Y=dP(m,T),U=dP(g,T),q=dN(A,R,k,I,r,-U,h),$=dN(O,z,M,D,r,-Y,h);e.lineTo(c+q.cx+q.x0,d+q.cy+q.y0),T<C&&Y===U?e.arc(c+q.cx,d+q.cy,T,dO(q.y0,q.x0),dO($.y0,$.x0),!h):(U>0&&e.arc(c+q.cx,d+q.cy,U,dO(q.y0,q.x0),dO(q.y1,q.x1),!h),e.arc(c,d,r,dO(q.cy+q.y1,q.cx+q.x1),dO($.cy+$.y1,$.cx+$.x1),h),Y>0&&e.arc(c+$.cx,d+$.cy,Y,dO($.y1,$.x1),dO($.y0,$.x0),!h))}else e.lineTo(c+A,d+R),e.arc(c,d,r,u,l,h);else e.lineTo(c+A,d+R)}else e.moveTo(c,d);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(sC);dL.prototype.type="sector";var dE=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dB=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new dE},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(sC);function dH(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var a=function(e,t,n,i){var r,a,o,s,l=[],u=[],c=[],d=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)ik(o,o,e[h]),iI(s,s,e[h]);ik(o,o,i[0]),iI(s,s,i[1])}for(var h=0,p=e.length;h<p;h++){var f,m,g,v=e[h];if(n)r=e[h?h-1:p-1],a=e[(h+1)%p];else if(0===h||h===p-1){l.push([(f=e[h])[0],f[1]]);continue}else r=e[h-1],a=e[h+1];m=a,g=r,u[0]=m[0]-g[0],u[1]=m[1]-g[1],iw(u,u,t);var y=iS(v,r),x=iS(v,a),_=y+x;0!==_&&(y/=_,x/=_),iw(c,u,-y),iw(d,u,x);var b=ib([],v,c),w=ib([],v,d);i&&(iI(b,b,o),ik(b,b,s),iI(w,w,o),ik(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var o=r.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=r[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);for(var s=1,d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}dB.prototype.type="ring";var dV=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dW=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultShape=function(){return new dV},t.prototype.buildPath=function(e,t){dH(e,t,!0)},t}(sC);dW.prototype.type="polygon";var dG=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},dY=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dG},t.prototype.buildPath=function(e,t){dH(e,t,!1)},t}(sC);dY.prototype.type="polyline";var dU={},dq=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},d$=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dq},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,i,r,a,o=function(e,t,n){if(t){var i=t.x1,r=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=r,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(lj(2*i)===lj(2*r)&&(e.x1=e.x2=lT(i,s,!0)),lj(2*a)===lj(2*o)&&(e.y1=e.y2=lT(a,s,!0))),e}}(dU,t,this.style);n=o.x1,i=o.y1,r=o.x2,a=o.y2}else n=t.x1,i=t.y1,r=t.x2,a=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,a=i*(1-s)+a*s),e.lineTo(r,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(sC);d$.prototype.type="line";var dX=[],dK=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function dZ(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?rD:rM)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?rD:rM)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?rN:rP)(e.x1,e.cpx1,e.x2,t),(n?rN:rP)(e.y1,e.cpy1,e.y2,t)]}var dJ=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dK},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(rL(n,o,r,c,dX),o=dX[1],r=dX[2],rL(i,s,a,c,dX),s=dX[1],a=dX[2]),e.quadraticCurveTo(o,s,r,a)):(c<1&&(rA(n,o,l,r,c,dX),o=dX[1],l=dX[2],r=dX[3],rA(i,s,u,a,c,dX),s=dX[1],u=dX[2],a=dX[3]),e.bezierCurveTo(o,s,l,u,r,a)))},t.prototype.pointAt=function(e){return dZ(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=dZ(this.shape,e,!0),i=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===i?(n[0]=0,n[1]=0):(n[0]=n[0]/i,n[1]=n[1]/i),n},t}(sC);dJ.prototype.type="bezier-curve";var dQ=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},d1=function(e){function t(t){return e.call(this,t)||this}return nC(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dQ},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,a,o,!s)},t}(sC);d1.prototype.type="arc";var d0={};function d2(e,t,n,i){var r,a,o=new db((r=function(e){var t,n=new sc;if(!e)return n;var i=0,r=0,a=0,o=0,s=sc.CMD,l=e.match(dx);if(!l)return n;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(d_)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var g=0;g<f;){var v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=i,j=r,T=void 0,k=void 0;switch(d){case"l":i+=p[g++],r+=p[g++],h=s.L,n.addData(h,i,r);break;case"L":i=p[g++],r=p[g++],h=s.L,n.addData(h,i,r);break;case"m":i+=p[g++],r+=p[g++],h=s.M,n.addData(h,i,r),a=i,o=r,d="l";break;case"M":i=p[g++],r=p[g++],h=s.M,n.addData(h,i,r),a=i,o=r,d="L";break;case"h":i+=p[g++],h=s.L,n.addData(h,i,r);break;case"H":i=p[g++],h=s.L,n.addData(h,i,r);break;case"v":r+=p[g++],h=s.L,n.addData(h,i,r);break;case"V":r=p[g++],h=s.L,n.addData(h,i,r);break;case"C":h=s.C,n.addData(h,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),i=p[g-2],r=p[g-1];break;case"c":h=s.C,n.addData(h,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r),i+=p[g-2],r+=p[g-1];break;case"S":v=i,y=r,T=n.len(),k=n.data,t===s.C&&(v+=i-k[T-4],y+=r-k[T-3]),h=s.C,C=p[g++],j=p[g++],i=p[g++],r=p[g++],n.addData(h,v,y,C,j,i,r);break;case"s":v=i,y=r,T=n.len(),k=n.data,t===s.C&&(v+=i-k[T-4],y+=r-k[T-3]),h=s.C,C=i+p[g++],j=r+p[g++],i+=p[g++],r+=p[g++],n.addData(h,v,y,C,j,i,r);break;case"Q":C=p[g++],j=p[g++],i=p[g++],r=p[g++],h=s.Q,n.addData(h,C,j,i,r);break;case"q":C=p[g++]+i,j=p[g++]+r,i+=p[g++],r+=p[g++],h=s.Q,n.addData(h,C,j,i,r);break;case"T":v=i,y=r,T=n.len(),k=n.data,t===s.Q&&(v+=i-k[T-4],y+=r-k[T-3]),i=p[g++],r=p[g++],h=s.Q,n.addData(h,v,y,i,r);break;case"t":v=i,y=r,T=n.len(),k=n.data,t===s.Q&&(v+=i-k[T-4],y+=r-k[T-3]),i+=p[g++],r+=p[g++],h=s.Q,n.addData(h,v,y,i,r);break;case"A":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=i,j=r,i=p[g++],dy(C,j,i,r=p[g++],w,S,x,_,b,h=s.A,n);break;case"a":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=i,j=r,i+=p[g++],dy(C,j,i,r+=p[g++],w,S,x,_,b,h=s.A,n)}}("z"===d||"Z"===d)&&(h=s.Z,n.addData(h),i=a,r=o),t=h}return n.toStatic(),n}(e),(a=nY({},t)).buildPath=function(e){if(null!=e.setData){e.setData(r.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;r.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,i,r,a,o,s,l=e.data,u=e.len(),c=ds.M,d=ds.C,h=ds.L,p=ds.R,f=ds.A,m=ds.Q;for(r=0,a=0;r<u;){switch(n=l[r++],a=r,i=0,n){case c:case h:i=1;break;case d:i=3;break;case m:i=2;break;case f:var g=t[4],v=t[5],y=du(t[0]*t[0]+t[1]*t[1]),x=du(t[2]*t[2]+t[3]*t[3]),_=dc(-t[1]/x,t[0]/y);l[r]*=y,l[r++]+=g,l[r]*=x,l[r++]+=v,l[r++]*=y,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,a=r;break;case p:s[0]=l[r++],s[1]=l[r++],iT(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],iT(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<i;o++){var b=dl[o];b[0]=l[r++],b[1]=l[r++],iT(b,b,t),l[a++]=b[0],l[a++]=b[1]}}e.increaseVersion()}}(r,e),this.dirtyShape()},a));return n&&("center"===i&&(n=d3(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function d3(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}function d4(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}d0.circle=dS,d0.ellipse=dj,d0.sector=dL,d0.ring=dB,d0.polygon=dW,d0.polyline=dY,d0.rect=lM,d0.line=d$,d0.bezierCurve=dJ,d0.arc=d1;var d5=oy(),d8=(C=oy(),function(e){var t=C(e),n=e.pipelineContext,i=!!t.large,r=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==a||r!==o)&&"reset"}),d9=function(){function e(){this.group=new a2,this.uid=l0("viewChart"),this.renderTask=cO({plan:he,reset:ht}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&d7(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&d7(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){var t=this.group;if(t)if(n3(t))for(var n=0;n<t.length;n++)d4(t[n],e);else d4(t,e)},e.markUpdateMethod=function(e,t){d5(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function d6(e,t,n){e&&s4(e)&&("emphasis"===t?sX:sK)(e,n)}function d7(e,t,n){var i,r,a=ov(e,t),o=t&&null!=t.highlightKey?(null==(r=sT[i=t.highlightKey])&&sj<=32&&(r=sT[i]=sj++),r):null;null!=a?nK(ol(a),function(t){d6(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){d6(e,n,o)})}function he(e){return d8(e.model)}function ht(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&d5(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,i,r),hn[l]}ok(d9,["dispose"]),oz(d9);var hn={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},hi=oy(),hr={itemStyle:oA(lK,!0),lineStyle:oA(lq,!0)},ha={lineStyle:"stroke",itemStyle:"fill"};function ho(e,t){var n=e.visualStyleMapper||hr[t];return n||(console.warn("Unknown style type '"+t+"'."),hr.itemStyle)}function hs(e,t){var n=e.visualDrawType||ha[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var hl=new lQ,hu=Math.PI,hc=function(){function e(e,t,n,i){this._stageTaskMap=ip(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount,o=null!=a?Math.ceil(a/r):null;return{step:r,modBy:o,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=ip();e.eachSeries(function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;nK(this._allHandlers,function(i){var r=e.get(i.uid)||e.set(i.uid,{});is(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)},this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=n,a.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nK(e,function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){o(i,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(r=!0)}else u&&u.each(function(s,l){o(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,a=t.seriesTaskMap,o=t.seriesTaskMap=ip(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=o.set(s,a&&a.get(s)||cO({plan:hm,reset:hg,count:hx}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,a=t.overallTask=t.overallTask||cO({reset:hd});a.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var o=a.agentStubMap,s=a.agentStubMap=ip(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,cO({reset:hh,onDirty:hf})));n.context={model:e,overallProgress:c},n.agent=a,n.__block=c,r._pipe(e,n)}is(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,i).each(h):(c=!1,nK(n.getSeries(),h)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);i.head||(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return n4(e)&&(e={overallReset:e,seriesType:function(e){L=null;try{e(h_,hb)}catch(e){}return L}(e)}),e.uid=l0("stageHandler"),t&&(e.visualType=t),e},e}();function hd(e){e.overallReset(e.ecModel,e.api,e.payload)}function hh(e){return e.overallProgress&&hp}function hp(){this.agent.dirty(),this.getDownstream().dirty()}function hf(){this.agent&&this.agent.dirty()}function hm(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function hg(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ol(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?nZ(t,function(e,t){return hy(t)}):hv}var hv=hy(0);function hy(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var a=t.start;a<t.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(t,i)}}function hx(e){return e.data.count()}var h_={},hb={};function hw(e,t){for(var n in t.prototype)e[n]=iy}hw(h_,u$),hw(hb,uQ),h_.eachSeriesByType=h_.eachRawSeriesByType=function(e){L=e},h_.eachComponent=function(e){"series"===e.mainType&&e.subType&&(L=e.subType)};var hS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],hC="#B9B8CE",hj="#100C2A",hT=function(){return{axisLine:{lineStyle:{color:hC}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hk=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hI={darkMode:!0,color:hk,backgroundColor:hj,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:hC},pageTextStyle:{color:hC}},textStyle:{color:hC},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:hC}},dataZoom:{borderColor:"#71708A",textStyle:{color:hC},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:hC}},timeline:{lineStyle:{color:hC},label:{color:hC},controlStyle:{color:hC,borderColor:hC}},calendar:{itemStyle:{color:hj},dayLabel:{color:hC},monthLabel:{color:hC},yearLabel:{color:hC}},timeAxis:hT(),logAxis:hT(),valueAxis:hT(),categoryAxis:hT(),line:{symbol:"circle"},graph:{color:hk},gauge:{title:{color:hC},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:hC},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hI.categoryAxis.splitLine.show=!1;var hM=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(n5(e)){var r=oT(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nK(e,function(e,r){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hD=["symbol","symbolSize","symbolRotate","symbolOffset"],hO=hD.concat(["symbolKeepAspect"]);function hz(e,t,n,i,r){var a=e+t;n.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,o=r.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var l=e.getData(),u=ov(l,r.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:n3(u)?l.getName(u[0]):l.getName(u),selected:n5(i)?i:nY({},i)})}})}function hA(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var hR=Math.round(9*Math.random()),hP="function"==typeof Object.defineProperty,hN=function(){function e(){this._id="__ec_inner_"+hR++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return hP?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),hF=sC.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),hL=sC.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),hE=sC.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),p=.6*o,f=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),hB=sC.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),hH={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},hV={};nK({line:d$,rect:lM,roundRect:lM,square:lM,circle:dS,diamond:hL,pin:hE,arrow:hB,triangle:hF},function(e,t){hV[t]=new e});var hW=sC.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=aq(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=hV[i];r||(r=hV[i="rect"]),hH[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function hG(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function hY(e,t,n,i,r,a,o){var s,l,u,c,d,h=0===e.indexOf("empty");return(h&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new re(t,n,i,r),u=o?"center":"cover",d=c=new lC({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===u){var t={width:e.width,height:e.height};c.setStyle(d3(l,t))}}})):d=0===e.indexOf("path://")?d2(e.slice(7),{},new re(t,n,i,r),o?"center":"cover"):new hW({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),d.__isEmptyBrush=h,d.setColor=hG,a&&d.setColor(a),d}function hU(e){return isFinite(e)}function hq(e,t,n){for(var i,r,a,o,s,l,u,c,d,h,p="radial"===t.type?(a=Math.min(i=n.width,r=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*i+n.x,s=s*r+n.y,l*=a),o=hU(o)?o:.5,s=hU(s)?s:.5,l=l>=0&&hU(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(u=null==t.x?0:t.x,c=null==t.x2?1:t.x2,d=null==t.y?0:t.y,h=null==t.y2?0:t.y2,t.global||(u=u*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),u=hU(u)?u:0,c=hU(c)?c:1,d=hU(d)?d:0,h=hU(h)?h:0,e.createLinearGradient(u,d,c,h)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function h$(e){return parseInt(e,10)}function hX(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||h$(s[i])||h$(e.style[i]))-(h$(s[a])||0)-(h$(s[o])||0)|0}function hK(e){var t,n,i=e.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n8(t)?[t]:n3(t)?t:null:null),a=i.lineDashOffset;if(r){var o=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(r=nZ(r,function(e){return e/o}),a/=o)}return[r,a]}var hZ=new sc(!0);function hJ(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function hQ(e){return"string"==typeof e&&"none"!==e}function h1(e){var t=e.fill;return null!=t&&"none"!==t}function h0(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function h2(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function h3(e,t,n){var i=ll(t.image,t.__image,n);if(lc(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ix),a.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(a)}return r}}var h4=["shadowBlur","shadowOffsetX","shadowOffsetY"],h5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h8(e,t,n,i,r){var a=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){h7(e,r),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oE.opacity:o}(i||t.blend!==n.blend)&&(a||(h7(e,r),a=!0),e.globalCompositeOperation=t.blend||oE.blend);for(var s=0;s<h4.length;s++){var l=h4[s];(i||t[l]!==n[l])&&(a||(h7(e,r),a=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(a||(h7(e,r),a=!0),e.shadowColor=t.shadowColor||oE.shadowColor),a}function h9(e,t,n,i,r){var a=pe(t,r.inHover),o=i?null:n&&pe(n,r.inHover)||{};if(a===o)return!1;var s=h8(e,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(h7(e,r),s=!0),hQ(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(h7(e,r),s=!0),hQ(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(h7(e,r),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(h7(e,r),s=!0),e.lineWidth=l)}for(var u=0;u<h5.length;u++){var c=h5[u],d=c[0];(i||a[d]!==o[d])&&(s||(h7(e,r),s=!0),e[d]=a[d]||c[1])}return s}function h6(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function h7(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function pe(e,t){return t&&e.__hoverStyle||e.style}function pt(e,t){pn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pn(e,t,n,i){var r,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(!s||function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,s)){if(s&&s.length&&(h7(e,n),e.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){h7(e,n),e.save();for(var c=!1,d=0;d<o.length;d++){var h=o[d];c=c||h.isZeroArea(),h6(e,h),e.beginPath(),h.buildPath(e,h.shape),e.clip()}n.allClipped=c,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(u=l=!0);var f=t instanceof sC&&t.autoBatch&&(v=h1(g=t.style),y=hJ(g),!(g.lineDash||!(v^y)||v&&"string"!=typeof g.fill||y&&"string"!=typeof g.stroke||g.strokePercent<1||g.strokeOpacity<1||g.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||h7(e,n):(h7(e,n),h6(e,t));var m=pe(t,n.inHover);if(t instanceof sC)1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),h9(e,t,p,u,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var r,a,o,s=hJ(n),l=h1(n),u=n.strokePercent,c=u<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||hZ,p=t.__dirty;if(!i){var f=n.fill,m=n.stroke,g=l&&!!f.colorStops,v=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0;(g||v)&&(C=t.getBoundingRect()),g&&(_=p?hq(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(b=p?hq(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=p||!t.__canvasFillPattern?h3(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(S=p||!t.__canvasStrokePattern?h3(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:y&&(w?e.fillStyle=w:l=!1),v?e.strokeStyle=b:x&&(S?e.strokeStyle=S:s=!1)}var j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(r=hK(t))[0],o=r[1]);var T=!0;(d||4&p)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),T=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),T&&h.rebuildPath(e,c?u:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!i&&(n.strokeFirst?(s&&h2(e,n),l&&h0(e,n)):(l&&h0(e,n),s&&h2(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof lb){3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),h9(e,t,p,u,n);var g,v,y,x,_,b=m.text;if(null!=b&&(b+=""),b){e.font=m.font||nk,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var w=void 0,S=void 0;e.setLineDash&&m.lineDash&&(w=(_=hK(t))[0],S=_[1]),w&&(e.setLineDash(w),e.lineDashOffset=S),m.strokeFirst?(hJ(m)&&e.strokeText(b,m.x,m.y),h1(m)&&e.fillText(b,m.x,m.y)):(h1(m)&&e.fillText(b,m.x,m.y),hJ(m)&&e.strokeText(b,m.x,m.y)),w&&e.setLineDash([])}}else t instanceof lC?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),r=u,h8(e,pe(t,n.inHover),p&&pe(p,n.inHover),r,n),function(e,t,n){var i=t.__image=ll(n.image,t.__image,t,t.onload);if(i&&lc(i)){var r=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,d=o-u,h=s-c;e.drawImage(i,u,c,d,h,r,a,o,s)}else e.drawImage(i,r,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(e,t,n){var i,r,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=t.getCursor(),r=a.length;i<r;i++){var l=a[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pn(e,l,s,i===r-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pn(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&i&&h7(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var pi=new hN,pr=new rY(100),pa=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function po(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&pi.delete(e);var a=pi.get(e);if(a)return a;var o=nU(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,u=0;u<pa.length;++u){var c=o[pa[u]];if(null!=c&&!n3(c)&&!n5(c)&&!n8(c)&&"boolean"!=typeof c){l=!1;break}s.push(c)}if(l){t=s.join(",")+(r?"-svg":"");var d=pr.get(t);d&&(r?e.svgElement=d:e.image=d)}var h=function e(t){if(!t||0===t.length)return[[0,0]];if(n8(t)){var n=Math.ceil(t);return[[n,n]]}for(var i=!0,r=0;r<t.length;++r)if(!n8(t[r])){i=!1;break}if(i)return e([t]);for(var a=[],r=0;r<t.length;++r)if(n8(t[r])){var n=Math.ceil(t[r]);a.push([n,n])}else{var n=nZ(t[r],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n8(e)){var t=Math.ceil(e);return[t,t]}var n=nZ(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n5(t))return[[t]];for(var n=!0,i=0;i<t.length;++i)if(!n5(t[i])){n=!1;break}if(n)return e([t]);for(var r=[],i=0;i<t.length;++i)n5(t[i])?r.push([t[i]]):r.push(t[i]);return r}(o.symbol),m=nZ(h,function(e){return ps(e)}),g=ps(p),v=!r&&nM.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=oo(e,m[t]);for(var i=1,t=0,n=f.length;t<n;++t)i=oo(i,f[t].length);e*=i;var r=g*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(r,o.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,a=v.getContext("2d")),function(){a&&(a.clearRect(0,0,v.width,v.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-g,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var d=u/2%f.length,m=0,_=0,b=0;m<2*x.width;){for(var w=0,t=0;t<h[c].length;++t)w+=h[c][t];if(w<=0)break;if(_%2==0){var S=(1-o.symbolSize)*.5,C=m+h[c][_]*S,j=s+p[l]*S,T=h[c][_]*o.symbolSize,k=p[l]*o.symbolSize,I=b/2%f[d].length;!function(e,t,s,l,u){var c=r?1:n,d=hY(u,e*c,t*c,s*c,l*c,o.color,o.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(d);h&&y.children.push(h)}else pt(a,d)}(C,j,T,k,f[d][I])}m+=h[c][_],++b,++_===h[c].length&&(_=0)}++c===h.length&&(c=0)}s+=p[l],++u,++l===p.length&&(l=0)}}(),l&&pr.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=r?1:1/n,pi.set(e,s),e.dirty=!1,s}function ps(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var pl=new iO,pu={},pc="__flagInMainProcess",pd="__pendingUpdate",ph="__needsUpdateStatus",pp=/^[a-zA-Z0-9_]+$/;function pf(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:pg(this,e,t)}}function pm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return pg(this,e,t)}}function pg(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),iO.prototype[t].apply(e,n)}var pv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t}(iO),py=pv.prototype;py.on=pm("on"),py.off=pm("off");var px=function(e){function t(t,n,i){var r=e.call(this,new hM)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},n5(n)&&(n=pT[n]),r._dom=t,i.ssr;var a=r._zr=a8(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ii(i.useDirtyRect,!1),useCoarsePointer:ii(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=function(e,t,n){var i,r,a,o,s,l=0,u=0,c=null;function d(){u=new Date().getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];i=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):r>=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}(n0(a.flush,a),17),(n=nW(n))&&cc(n,!0),r._theme=n,r._locale=function(e){if(!n5(e))return nG(nW(e),nW(l2.EN),!1);var t=l2[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nW(t):nG(nW(t),nW(l2.EN),!1)}(i.locale||l4),r._coordSysMgr=new u0;var o=r._api=Q(r);function s(e,t){return e.__prio-t.__prio}return rf(pj,s),rf(pS,s),r._scheduler=new hc(r,o,pS,pj),r._messageCenter=new pv,r._initEvents(),r.resize=n0(r.resize,r),a.animation.on("frame",r._onframe,r),$(a,r),X(a,r),r[iu]=!0,r}return nC(t,e),t.prototype._onframe=function(){if(!this._disposed){et(this);var e=this._scheduler;if(this[pd]){var t=this[pd].silent;this[pc]=!0;try{E(this),V.update.call(this,null,this[pd].updateParams)}catch(e){throw this[pc]=!1,this[pd]=null,e}this._zr.flush(),this[pc]=!1,this[pd]=null,U.call(this,t),q.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),G(this,i),e.performVisualTasks(i),J(this,this._model,r,"remain",{}),n-=new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[pc]){if(this._disposed)return void this.id;if(n9(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,a=t.transition,t=t.notMerge),this[pc]=!0,!this._model||t){var i,r,a,o=new u3(this._api),s=this._theme,l=this._model=new u$;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:r},pC);var u={seriesTransition:a,optionChanged:!0};if(n)this[pd]={silent:i,updateParams:u},this[pc]=!1,this.getZr().wakeUp();else{try{E(this),V.update.call(this,null,u)}catch(e){throw this[pd]=null,this[pc]=!1,e}this._ssr||this._zr.flush(),this[pd]=null,this[pc]=!1,U.call(this,i),q.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nT.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nT.svgSupported){var e=this._zr;return nK(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;nK(t,function(e){n.eachComponent({mainType:e},function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nK(i,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,a=1/0;if(!pM[n])return this.getDataURL(e);var o=a,s=a,l=-a,u=-a,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();nK(pI,function(a,d){if(a.group===n){var h=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nW(e)),p=a.getDom().getBoundingClientRect();o=i(p.left,o),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}}),o*=d,s*=d,l*=d,u*=d;var h=l-o,p=u-s,f=nM.createCanvas(),m=a8(f,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lM({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),nK(c,function(e){var t=new lC({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var g="";return nK(c,function(e){var t=e.left-o,n=e.top-s;g+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return W(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return W(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nK(o_(this._model,e),function(e,i){i.indexOf("Models")>=0&&nK(e,function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=o_(this._model,e,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(i,r,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;nK(p_,function(e){var t=function(t){var n,r=i.getModel(),a=t.target;if("globalout"===e?n={}:a&&hA(a,function(e){var t=oN(e);if(t&&null!=t.dataIndex){var i=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=nY({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&r.getComponent(o,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:u},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)}),nK(pw,function(e,t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),nK(["selectchanged"],function(e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var i=n.getModel();e.isFromClick?(hz("map","selectchanged",t,i,e),hz("pie","selectchanged",t,i,e)):"select"===e.fromAction?(hz("map","selected",t,i,e),hz("pie","selected",t,i,e)):"unselect"===e.fromAction&&(hz("map","unselected",t,i,e),hz("pie","unselected",t,i,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pD,""):e[pD]="");var e,t=this._api,n=this._model;nK(this._componentsViews,function(e){e.dispose(n,t)}),nK(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pI[this.id]},t.prototype.resize=function(e){if(!this[pc]){if(this._disposed)return void this.id;this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[pd]&&(null==i&&(i=this[pd].silent),n=!0,this[pd]=null),this[pc]=!0;try{n&&E(this),V.update.call(this,{type:"resize",animation:nY({duration:0},e&&e.animation)})}catch(e){throw this[pc]=!1,e}this[pc]=!1,U.call(this,i),q.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(n9(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pk[e]){var n=pk[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=nY({},e);return t.type=pw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((n9(t)||(t={silent:!!t}),pb[e.type])&&this._model){if(this[pc])return void this._pendingActions.push(e);var n=t.silent;Y.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&nT.browser.weChat&&this._throttledZrFlush(),U.call(this,n),q.call(this,n)}},t.prototype.updateLabelLayout=function(){pl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,i,r){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(e(s[l],n,i,r),r);else t.z=n,t.zlevel=i,r=Math.max(t.z2,r);if(a&&(a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+2)),o){var u=t.textGuideLineConfig;o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}(e,n,i,-1/0),!0})}}function i(e,t){t.eachRendered(function(e){if(!le(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function r(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),a=i.get("duration"),o=a>0?{duration:a,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!le(e)){if(e instanceof sC&&((n=sk(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(i=e.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),e.__dirty){var n,i,a=e.prevStates;a&&e.useStates(a)}if(r){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}E=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),B(e,!0),B(e,!1),t.plan()},B=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=oT(e.type);(c=new(t?da.getClass(d.main,d.sub):d9.getClass(d.sub))).init(n,s),a[u]=c,r.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||i.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(var l=0;l<r.length;){var c=r[l];c.__alive?l++:(t||c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),r.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H=function(e,t,n,i,r){var a,o=e._model;if(o.setUpdatePayload(n),!i)return void nK([].concat(e._componentsViews).concat(e._chartsViews),c);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}null!=u&&(a=ip(),nK(ol(u),function(e){var t=of(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s8(n))if(t instanceof c9)n.type!==sO||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var a=ov(r,t);a=(n3(a)?a[0]:a)||0;var o=r.getItemGraphicEl(a);if(!o)for(var s=r.count(),l=0;!o&&l<s;)o=r.getItemGraphicEl(l++);if(o){var u=oN(o);sQ(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&sQ(i,c,d,n)}}}(t,n,e._api);else{var i=s0(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,o=i.dispatchers;n.type===sO&&r&&!n.notBlur&&s1(t.mainType,t.componentIndex,e._api),o&&nK(o,function(e){n.type===sO?sX(e):sK(e)})}else if(s5(n)&&t instanceof c9){if(e._api,s5(n)){var s=n.dataType,l=ov(t.getData(s),n);n3(l)||(l=[l]),t[n.type===sP?"toggleSelect":n.type===sA?"select":"unselect"](l,s)}s2(t),ee(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])},e)},V={prepareAndUpdate:function(e){E(this),V.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),o.create(i,r),s.performDataProcessorTasks(i,t),G(this,i),o.update(i,r),e(i),s.performVisualTasks(i,t),K(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),pl.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var a=[];i.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=ip();i.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,i,r,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),J(this,i,r,t,{},o),pl.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),d9.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),K(this,n,this._api,t,{}),pl.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(e){e.getData().clearAllVisual()}),d9.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(e,r){if("series"!==e){var a=n.getViewOfComponentModel(r);a&&a.__alive&&a.updateVisual(r,i,n._api,t)}}),i.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)}),pl.trigger("afterupdate",i,this._api))},updateLayout:function(e){V.update.call(this,e)}},W=function(e,t,n,i){if(e._disposed)return void e.id;for(var r,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=o_(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(r=u[t](a,s,i)))return r}},G=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(e){i.updateStreamModes(e,n[e.__viewId])})},Y=function(e,t){var n,i=this,r=this.getModel(),a=e.type,o=e.escapeConnect,s=pb[a],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),d=null!=u[0]&&oT(u[0]);this[pc]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=nZ(e.batch,function(t){return(t=nU(nY({},t),e)).batch=null,t}));var f=[],m=s5(e),g=s8(e);if(g&&sJ(this._api),nK(h,function(t){if((n=(n=s.action(t,i._model,i._api))||nY({},t)).type=l.event||n.type,f.push(n),g){var r=ob(e),a=r.queryOptionMap;H(i,c,t,r.mainTypeSpecified?a.keys()[0]:"series"),ee(i)}else m?(H(i,c,t,"series"),ee(i)):d&&H(i,c,t,d.main,d.sub)}),"none"!==c&&!g&&!m&&!d)try{this[pd]?(E(this),V.update.call(this,e),this[pd]=null):V[c].call(this,e)}catch(e){throw this[pc]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[pc]=!1,!t){var v=this._messageCenter;if(v.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],r.eachSeries(function(e){nK(e.getAllData(),function(t){t.data;var n=t.type,i=e.getSelectedDataIndices();if(i.length>0){var r={dataIndex:i,seriesIndex:e.seriesIndex};null!=n&&(r.dataType=n),y.push(r)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(x.type,x)}}},U=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Y.call(this,n,e)}},q=function(e){e||this.trigger("updated")},$=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[pd]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},X=function(e,t){e.on("mouseover",function(e){var n,i,r,a,o,s=hA(e.target,s4);s&&(n=t._api,a=(r=s0((i=oN(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,o=r.focusSelf,a?(o&&s1(i.componentMainType,i.componentIndex,n),nK(a,function(t){return sq(t,e)})):(sQ(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&s1(i.componentMainType,i.componentIndex,n),sq(s,e)),ee(t))}).on("mouseout",function(e){var n,i,r,a=hA(e.target,s4);a&&(sJ(n=t._api),(r=s0((i=oN(a)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?nK(r,function(t){return s$(t,e)}):s$(a,e),ee(t))}).on("click",function(e){var n=hA(e.target,function(e){return null!=oN(e).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=oN(n);t._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},K=function(e,t,n,i,r){!function(e){var t=[],n=[],i=!1;if(e.eachComponent(function(e,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:r.componentIndex,type:e,key:s})}),i){var r,a,o=t.concat(n);rf(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nK(o,function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)})}}(t),Z(e,t,n,i,r),nK(e._chartsViews,function(e){e.__alive=!1}),J(e,t,n,i,r),nK(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Z=function(e,t,a,o,s,l){nK(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,a,o),n(s,e),r(s,e)})},J=function(e,t,a,o,s,l){var u,c,d,h,p=e._scheduler;s=nY(s||{},{updatedSeries:t.getSeries()}),pl.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,r,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,o),i(t,s),l&&l.get(t.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,r=s,a=n.get("blendMode")||null,r.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),s2(t)}),p.unfinished=f||p.unfinished,pl.trigger("series:layoutlabels",t,a,s),pl.trigger("series:transition",t,a,s),t.eachSeries(function(t){var i=e._chartsMap[t.__viewId];n(t,i),r(t,i)}),u=e,c=t,d=u._zr.storage,h=0,d.traverse(function(e){!e.isGroup&&h++}),!(h>c.get("hoverLayerThreshold"))||nT.node||nT.worker||c.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=u._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),pl.trigger("series:afterupdate",t,a,s)},ee=function(e){e[ph]=!0,e.getZr().wakeUp()},et=function(e){e[ph]&&(e.getZr().storage.traverse(function(e){le(e)||t(e)}),e[ph]=!1)},Q=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return nC(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sX(t,n),ee(e)},n.prototype.leaveEmphasis=function(t,n){sK(t,n),ee(e)},n.prototype.enterBlur=function(t){sG(t,sB),ee(e)},n.prototype.leaveBlur=function(t){sG(t,sH),ee(e)},n.prototype.enterSelect=function(t){sG(t,sV),ee(e)},n.prototype.leaveSelect=function(t){sG(t,sW),ee(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(uQ))(e)}}(),t}(iO).prototype;px.on=pf("on"),px.off=pf("off"),px.one=function(e,t,n){var i=this;this.on.call(this,e,function n(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];t&&t.apply&&t.apply(this,r),i.off(e,n)},n)};var p_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],pb={},pw={},pS=[],pC=[],pj=[],pT={},pk={},pI={},pM={},pD="_echarts_instance_";function pO(e){0>nq(pC,e)&&pC.push(e)}function pz(e,t){pL(pS,e,t,2e3)}function pA(e,t){pl.on(e,t)}function pR(e,t,n){n4(t)&&(n=t,t="");var i=n9(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),pw[t=e.event]||(is(pp.test(i)&&pp.test(t)),pb[i]||(pb[i]={action:n,actionInfo:e}),pw[t]=i)}function pP(e,t){pL(pj,e,t,1e3,"layout")}function pN(e,t){pL(pj,e,t,3e3,"visual")}var pF=[];function pL(e,t,n,i,r){if((n4(t)||n9(t))&&(n=t,t=i),!(nq(pF,n)>=0)){pF.push(n);var a=hc.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function pE(e){return null==e?0:e.length||1}function pB(e){return e}pN(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),a=ho(e,i)(r),o=r.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=hs(e,i),l=a[s],u=n4(l)?l:null,c="auto"===a.fill||"auto"===a.stroke;if(!a[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||n4(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||n4(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=nY({},a);r[s]=u(i),t.setItemVisual(n,"style",r)}}}}),pN(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=ho(e,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){hl.option=n[i];var o=r(hl);nY(e.ensureUniqueItemVisual(t,"style"),o),hl.option.decal&&(e.setItemVisual(t,"decal",hl.option.decal),hl.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pN(4500,{performRawSeries:!0,overallReset:function(e){var t=ip();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),hi(e).scope=r}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),i={},r=t.getData(),a=hi(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=hs(t,o);r.each(function(e){i[r.getRawIndex(e)]=e}),n.each(function(e){var o=i[e];if(r.getItemVisual(o,"colorFromPalette")){var l=r.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,a,c)}})}})}}),pN(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},a=!1,o=0;o<hD.length;o++){var s=hD[o],l=e.get(s);n4(l)?(a=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(nY({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=n1(r);return{dataEach:a?function(t,n){for(var i=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,r[s](i,a))}}:null}}}}}),pN(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<hO.length;i++){var r=hO[i],a=n.getShallow(r,!0);null!=a&&e.setItemVisual(t,r,a)}}:null}}}),pN(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=po(n,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=po(r,t))}})}),pO(cc),pz(900,function(e){var t=ip();e.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(cd)}),pk.default=function(e,t){nU(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new a2,r=new lM({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(r);var a=new lz({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lM({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return i.add(o),t.showSpinner&&((n=new d1({shape:{startAngle:-hu/2,endAngle:-hu/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*hu/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*hu/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner&&i?0:5+i/2)+(t.showSpinner?0:i/2)+(i?0:s),u=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i},pR({type:sO,event:sO,update:sO},iy),pR({type:sz,event:sz,update:sz},iy),pR({type:sA,event:sA,update:sA},iy),pR({type:sR,event:sR,update:sR},iy),pR({type:sP,event:sP,update:sP},iy),pT.light={color:hS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hS]},pT.dark=hI;var pH=function(){function e(e,t,n,i,r,a){this._old=e,this._new=t,this._oldKeyGetter=n||pB,this._newKeyGetter=i||pB,this.context=r,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=Array(e.length),r=Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var a=0;a<e.length;a++){var o=i[a],s=n[o],l=pE(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],a=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<r.length;o++){var s=r[o],l=n[s],u=i[s],c=pE(l),d=pE(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],a=pE(r);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(r[o]);else 1===a&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,a=0;a<e.length;a++){var o="_ec_"+this[i](e[a],a);if(r||(n[a]=o),t){var s=t[o],l=pE(s);0===l?(t[o]=a,r&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pV=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pW(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pG=function(e){this.otherDims={},null!=e&&nY(this,e)};var pY=oy(),pU={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pq=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pX(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return ii(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=cx(this.source),n=!(e>30),i="",r=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=pU[l]||"f",u&&(i+=u.uid),i+="$"}var h=this.source;return{dimensions:r,hash:[h.seriesLayoutBy,h.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var a=this.getSourceDimension(t);a&&(i=a.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function p$(e){for(var t=ip(),n=0;n<(e||[]).length;n++){var i=e[n],r=n9(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function pX(e){var t=pY(e);return t.dimNameMap||(t.dimNameMap=p$(e.dimensionsDefine))}var pK=n9,pZ="u"<typeof Int32Array?Array:Int32Array,pJ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pQ=["_approximateExtent"],p1=function(){function e(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;e instanceof pq?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=n5(c)?new pG({name:c}):c instanceof pG?c:new pG(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(h),r[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(o[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=ip();nK(a,function(e){f.set(r[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n8(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r,a,o,s,l,u,c,d,h,p,f,m,g=this;if(e instanceof cQ&&(m=e),!m){var v=this.dimensions,y=cp(e)||nX(e)?new c_(e,v.length):e;m=new cQ;var x=nZ(v,function(e){return{type:g._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(i=this,r=this._schema,o=(a={}).encode={},s=ip(),l=[],u=[],c={},nK(i.dimensions,function(e){var t=i.getDimensionInfo(e),n=t.coordDim;if(n){var r,a=t.coordDimIndex;pW(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(r=t.type)&&"time"!==r&&(l[0]=e),pW(c,n)[a]=i.getDimensionIndex(t.name)),t.defaultTooltip&&u.push(e)}uR.each(function(e,n){var i=pW(o,n),r=t.otherDims[n];null!=r&&!1!==r&&(i[r]=t.name)})}),d=[],h={},s.each(function(e,t){var n=o[t];h[t]=n[0],d=d.concat(n)}),a.dataDimsOnCoord=d,a.dataDimIndicesOnCoord=nZ(d,function(e){return i.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=h,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=u,a.userOutput=new pV(c,r),a),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,r=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=i;o<r;o++){var s=o-i;this._nameList[o]=t[s],a&&el(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==uE&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===uP&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&n9(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==i[o]&&null!=u&&(i[o]=of(u,null));var c=l.id;null==r[o]&&null!=c&&(r[o]=of(c,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)el(this,o);en(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){pK(e)?nY(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=er(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return ei(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return n3(e)?i.getValues(nZ(e,function(e){return n._getStoreDimIndex(e)}),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return -1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n&&n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){n4(e)&&(n=t,t=e,e=[]);var i=n||this,r=nZ(ea(e),this._getStoreDimIndex,this);this._store.each(r,i?n0(t,i):t)},e.prototype.filterSelf=function(e,t,n){n4(e)&&(n=t,t=e,e=[]);var i=n||this,r=nZ(ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?n0(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=n1(e),r=[];return nK(i,function(i){var a=t._getStoreDimIndex(i);n[a]=e[i],r.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){n4(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,a=nZ(ea(e),this._getStoreDimIndex,this),o=es(this);return o._store=this._store.map(a,r?n0(t,r):t),o},e.prototype.modify=function(e,t,n,i){var r=n||i||this,a=nZ(ea(e),this._getStoreDimIndex,this);this._store.modify(a,r?n0(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=es(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.minmaxDownSample=function(e,t){var n=es(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=es(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new lQ(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pH(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ei(e,t)},function(e){return ei(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},pK(e)?nY(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(n3(r=this.getVisual(t))?r=r.slice():pK(r)&&(r=nY({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,pK(t)?nY(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){pK(e)?nY(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?nY(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oF(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){nK(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nZ(this.dimensions,this._getDimInfo,this),this.hostModel)),eo(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];n4(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ia(arguments)))})},e.internalField=void(en=function(e){var t=e._invertedIndicesMap;nK(t,function(n,i){var r=e._dimInfos[i],a=r.ordinalMeta,o=e._store;if(a){n=t[i]=new pZ(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(r.storeDimIndex,s)]=s}})},er=function(e,t,n){return of(e._getCategory(t,n),null)},ei=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=er(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},ea=function(e){return n3(e)||(e=null!=e?[e]:[]),e},es=function(t){var n=new e(t._schema?t._schema:nZ(t.dimensions,t._getDimInfo,t),t.hostModel);return eo(n,t),n},eo=function(e,t){nK(pJ.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nK(pQ,function(n){e[n]=nW(t[n])}),e._calculationInfo=nY({},t._calculationInfo)},el=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=i[t];if(null==o&&null!=r&&(n[t]=o=er(e,r,t)),null==s&&null!=a&&(i[t]=s=er(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),i[t]=s}}),e}();function p0(e,t){return function(e,t){cp(e)||(e=cm(e));var n,i,r,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],u=ip(),c=[],d=(n=e,i=s,r=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,a||0),nK(i,function(e){var t;n9(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),h=t.canOmitUnusedDimensions&&d>30,p=l===e.dimensionsDefine,f=p?pX(e):p$(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,d));for(var g=ip(m),v=new cq(d),y=0;y<v.length;y++)v[y]=-1;function x(e){var t=v[e];if(t<0){var n=l[e],i=n9(n)?n:{name:n},r=new pG,a=i.name;null!=a&&null!=f.get(a)&&(r.name=r.displayName=a),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var o=c.length;return v[e]=o,r.storeDimIndex=e,c.push(r),r}return c[t]}if(!h)for(var y=0;y<d;y++)x(y);g.each(function(e,t){var n=ol(e).slice();if(1===n.length&&!n5(n[0])&&n[0]<0)return void g.set(t,!1);var i=g.set(t,[]);nK(n,function(e,n){var r=n5(e)?f.get(e):e;null!=r&&r<d&&(i[n]=r,b(x(r),t,n))})});var _=0;function b(e,t,n){null!=uR.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,u.set(t,!0))}nK(s,function(e){if(n5(e))r=e,i={};else{var t,n,i,r=(i=e).name,a=i.ordinalMeta;i.ordinalMeta=null,(i=nY({},i)).ordinalMeta=a,t=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var o=g.get(r);if(!1!==o){if(!(o=ol(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;_<d&&null!=x(_).coordDim;)_++;_<d&&o.push(_++)}nK(o,function(e,a){var o=x(e);if(p&&null!=i.type&&(o.type=i.type),b(nU(o,i),r,a),null==o.name&&t){var s=t[a];n9(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nU(o.otherDims,n)})}});var w=t.generateCoord,S=t.generateCoordCount,C=null!=S;S=w?S||1:0;var j=w||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(h)nK(c,function(e){T(e)}),c.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var k=0;k<d;k++){var I=x(k);null==I.coordDim&&(I.coordDim=function(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}(j,u,C),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),T(I),null==I.type&&(1===uW(e,k)||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(e){for(var t=ip(),n=0;n<e.length;n++){var i=e[n],r=i.name,a=t.get(r)||0;a>0&&(i.name=r+(a-1)),a++,t.set(r,a)}}(c),new pq({source:e,dimensions:c,fullDimensionCount:d,dimensionOmitted:h})}(e,t).dimensions}var p2=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();oz(p2);var p3=0,p4=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++p3}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&nZ(i,p5);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n5(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ip(this.categories))},e}();function p5(e){return n9(e)&&null!=e.value?e.value:e+""}function p8(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function p9(e,t){return e>=t[0]&&e<=t[1]}function p6(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function p7(e,t){return e*(t[1]-t[0])+t[0]}var fe=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new p4({})),n3(i)&&(i=new p4({categories:nZ(i,function(e){return n9(e)?e.value:e})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return nC(t,e),t.prototype.parse=function(e){return null==e?NaN:n5(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return p9(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p6(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(p7(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null==e){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);r<o;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<a;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(p2);p2.registerClass(fe);var ft=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return nC(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p9(e,this._extent)},t.prototype.normalize=function(e){return p6(e,this._extent)},t.prototype.scale=function(e){return p7(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a7(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!t)return a;n[0]<i[0]&&(e?a.push({value:a6(i[0]-t,r)}):a.push({value:n[0]}));for(var o=i[0];o<=i[1]&&(a.push({value:o}),(o=a6(o+t,r))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:i[1];return n[1]>s&&(e?a.push({value:a6(s+t,r)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var a=t[r],o=t[r-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var c=a6(o.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=a7(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=a6(e.value,n,!0);if(isNaN(or(i)))return n5(i)?i:"-";var r=(i+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a,o,s,l,u,c,d=(s=e,u=(l={}).interval=oi((i[1]-i[0])/s,!0),null!=t&&u<t&&(u=l.interval=t),null!=n&&u>n&&(u=l.interval=n),c=l.intervalPrecision=a7(u)+2,a=l.niceTickExtent=[a6(Math.ceil(i[0]/u)*u,c),a6(Math.floor(i[1]/u)*u,c)],o=i,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p8(a,0,o),p8(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=d.intervalPrecision,this._interval=d.interval,this._niceExtent=d.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=a6(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=a6(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(p2);p2.registerClass(ft);var fn=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},fi=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return nC(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return ui(e.value,l6[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(un(this._minLevelUnit))]||l6.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,r){var a=null;if(n5(n))a=n;else if(n4(n))a=n(e.value,t,{level:e.level});else{var o=nY({},l8);if(e.level>0)for(var s=0;s<l7.length;++s)o[l7[s]]="{primary|"+o[l7[s]]+"}";var l=n?!1===n.inherit?n:nU(n,o):o,u=ur(e.value,r);if(l[u])a=l[u];else if(l.inherit){for(var c=ue.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(n3(a)){var d=null==e.level?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return ui(new Date(e.value),a,r,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=function(e,t,n,i){for(var r=0,a=[],o=[],s=0,l=0,u=0;u<ue.length&&r++<1e4;++u){var c,d=un(ue[u]);if((c=ue[u])===un(c)&&(!function(e,r,a){var o=[],s=!r.length;if(!function(e,t,n,i){var r=ot(t),a=ot(n),o=function(e){return ua(r,e,i)===ua(a,e,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(un(e),i[0],i[1],n)){s&&(r=[{value:function(e,t,n){var i=new Date(e);switch(un(t)){case"year":case"month":i[up(n)](0);case"day":i[uf(n)](1);case"hour":i[um(n)](0);case"minute":i[ug(n)](0);case"second":i[uv(n)](0),i[uy(n)](0)}return i.getTime()}(new Date(i[0]),e,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var u=r[l].value,c=r[l+1].value;if(u!==c){var d,h,p,f=void 0,m=void 0,g=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=uo(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(d=t/2592e6)>6?6:d>3?3:d>2?2:1,m=us(n),g=up(n);break;case"week":case"half-week":case"day":f=(h=t/864e5)>16?16:h>7.5?7:h>3.5?4:h>1.5?2:1,m=ul(n),g=uf(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=uu(n),g=um(n);break;case"minute":f=fa(t,!0),m=uc(n),g=ug(n);break;case"second":f=fa(t,!1),m=ud(n),g=uv(n);break;case"millisecond":f=oi(t,!0),m=uh(n),g=uy(n)}!function(e,t,n,r,a,o,s){for(var l=new Date(t),u=t,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}(f,u,c,m,g,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(ue[u],a[a.length-1]||[],o),d!==(ue[u+1]?un(ue[u+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var h=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(h.push(o[p]),f>=i[0]&&f<=i[1]&&s++)}var m=(i[1]-i[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(h),s>m||e===ue[u]))break}o=[]}}for(var g=nQ(nZ(a,function(e){return nQ(e,function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd})}),function(e){return e.length>0}),v=[],y=g.length-1,u=0;u<g.length;++u)for(var x=g[u],_=0;_<x.length;++_)v.push({value:x[_].value,level:y-u});v.sort(function(e,t){return e.value-t.value});for(var b=[],u=0;u<v.length;++u)(0===u||v[u].value!==v[u-1].value)&&b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(r)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=fr.length,o=Math.min(fn(fr,this._approxInterval,0,a),a-1);this._interval=fr[o][1],this._minLevelUnit=fr[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n8(e)?e:+ot(e)},t.prototype.contain=function(e){return p9(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p6(this.parse(e),this._extent)},t.prototype.scale=function(e){return p7(e,this._extent)},t.type="time",t}(ft),fr=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function fa(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}p2.registerClass(fi);var fo=p2.prototype,fs=ft.prototype,fl=Math.floor,fu=Math.ceil,fc=Math.pow,fd=Math.log,fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ft,t._interval=0,t}return nC(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return nZ(fs.getTicks.call(this,e),function(e){var t=e.value,r=a6(fc(this.base,t));return r=t===n[0]&&this._fixMin?a6(r,a7(i[0])):r,{value:r=t===n[1]&&this._fixMax?a6(r,a7(i[1])):r}},this)},t.prototype.setExtent=function(e,t){var n=fd(this.base);e=fd(Math.max(0,e))/n,t=fd(Math.max(0,t))/n,fs.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,i=fo.getExtent.call(this);i[0]=fc(n,i[0]),i[1]=fc(n,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=(e=i[0],a6(e,a7(r[0])))),this._fixMax&&(i[1]=(t=i[1],a6(t,a7(r[1])))),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fd(e[0])/fd(t),e[1]=fd(e[1])/fd(t),fo.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var i=Math.pow(10,on(n));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[a6(fu(t[0]/i)*i),a6(fl(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){fs.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p9(e=fd(e)/fd(this.base),this._extent)},t.prototype.normalize=function(e){return p6(e=fd(e)/fd(this.base),this._extent)},t.prototype.scale=function(e){return e=p7(e,this._extent),fc(this.base,e)},t.type="log",t}(p2),fp=fh.prototype;function ff(e,t,n){this._prepareParams(e,t,n)}fp.getMinorTicks=fs.getMinorTicks,fp.getLabel=fs.getLabel,p2.registerClass(fh),ff.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=t.get("min",!0);null==r&&(r=t.get("startValue",!0));var a=this._modelMinRaw=r;n4(a)?this._modelMinNum=fv(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=fv(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(n4(o)?this._modelMaxNum=fv(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=fv(e,o)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=n3(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aU(l[0],1),aU(l[1],1)]}},ff.prototype.calculate=function(){var e,t,n=this._isOrdinal,i=this._dataMin,r=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:r-i||Math.abs(i),l="dataMin"===this._modelMinRaw?i:this._modelMinNum,u="dataMax"===this._modelMaxRaw?r:this._modelMaxNum,c=null!=l,d=null!=u;null==l&&(l=n?a?0:NaN:i-o[0]*s),null==u&&(u=n?a?a-1:NaN:r+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var h=(e=l)!=e||(t=u)!=t||n&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,c=!0),null!=f&&(u=f,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:h}},ff.prototype.modifyDataMinMax=function(e,t){this[fg[e]]=t},ff.prototype.setDeterminedMinMax=function(e,t){this[fm[e]]=t},ff.prototype.freeze=function(){this.frozen=!0};var fm={min:"_determinedMin",max:"_determinedMax"},fg={min:"_dataMin",max:"_dataMax"};function fv(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function fy(){}function fx(e,t){var n;return function(e,t,n,i,r){n=n||lt;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||lt).rich;if(n){t=t||{};for(var i=n1(n),r=0;r<i.length;r++)t[i[r]]=1}e=e.parentModel}return t}(t);if(l){for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);la(a[u]={},c,s,n,i,r,!1,!0)}}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),la(e,t,s,n,i,r,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}fy.prototype.getNeedCrossZero=function(){return!this.option.scale},fy.prototype.getCoordSysModel=function(){};var f_=[];function fb(){var e=null!==oW&&oW.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}nC(fb,oW),fb.prototype.traverse=function(e,t){e.call(t,this)},fb.prototype.useStyle=function(){this.style={}},fb.prototype.getCursor=function(){return this._cursor},fb.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fb.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fb.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fb.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fb.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fb.prototype.getDisplayables=function(){return this._displayables},fb.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fb.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},fb.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},fb.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new re(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(f_)),e.union(i)}this._rect=e}return this._rect},fb.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(e,t))return!0}return!1};var fw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return nC(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),sC.prototype.getBoundingRect.call(this)},t}(sC),fS=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function fC(e){var t=c9.extend(e);return c9.registerClass(t),t}function fj(e){var t=d9.extend(e);return d9.registerClass(t),t}nC(function(e,t,n,i,r,a){var o=j.call(this,r)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=a||!1,o},j=fS),nC(function(e,t,n,i,r){var a=T.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=r||!1,a},T=fS);var fT=[],fk={registerPreprocessor:pO,registerProcessor:pz,registerPostInit:function(e){pA("afterinit",e)},registerPostUpdate:function(e){pA("afterupdate",e)},registerUpdateLifecycle:pA,registerAction:pR,registerCoordinateSystem:function(e,t){u0.register(e,t)},registerLayout:pP,registerVisual:pN,registerTransform:function(e){var t=(e=nW(e)).type;t||cR("");var n=t.split(":");2!==n.length&&cR("");var i=!1;"echarts"===n[0]&&(t=n[1],i=!0),e.__isBuiltIn=i,cV.set(t,e)},registerLoading:function(e,t){pk[e]=t},registerMap:function(e,t,n){var i=pu.registerMap;i&&i(e,t,n)},registerImpl:function(e,t){pu[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uI,ComponentView:da,SeriesModel:c9,ChartView:d9,registerComponentModel:function(e){uI.registerClass(e)},registerComponentView:function(e){da.registerClass(e)},registerSeriesModel:function(e){c9.registerClass(e)},registerChartView:function(e){d9.registerClass(e)},registerSubTypeDefaulter:function(e,t){uI.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a3[e]=t}};function fI(e){n3(e)?nK(e,function(e){fI(e)}):nq(fT,e)>=0||(fT.push(e),n4(e)&&(e={install:e}),e.install(fk))}var fM=2*Math.PI,fD=sc.CMD,fO=["top","right","bottom","left"];function fz(e,t,n,i,r,a,o,s){var l=n-e,u=i-t,c=Math.sqrt(l*l+u*u),d=((r-e)*(l/=c)+(a-t)*(u/=c))/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var h=o[0]=e+d*l,p=o[1]=t+d*u;return Math.sqrt((h-r)*(h-r)+(p-a)*(p-a))}function fA(e,t,n,i,r,a,o){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=o[0]=Math.min(Math.max(r,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var fR=[],fP=new i0,fN=new i0,fF=new i0,fL=new i0,fE=new i0;function fB(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=r.candidates||fO,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),d=c&&i1([],c),h=t.get("length2")||0;u&&fF.copy(u);for(var p=0;p<o.length;p++){!function(e,t,n,i,r){var a=n.width,o=n.height;switch(e){case"top":i.set(n.x+a/2,n.y-0),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+0),r.set(0,1);break;case"left":i.set(n.x-0,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+0,n.y+o/2),r.set(1,0)}}(o[p],0,s,fP,fL),i0.scaleAndAdd(fN,fP,fL,h),fN.transform(d);var f=e.getBoundingRect(),m=u?u.distance(fN):e instanceof sC?function(e,t,n){for(var i,r,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var m=u;switch(f){case fD.M:s=c[p++],l=c[p++],a=s,o=l;break;case fD.L:m=fz(a,o,c[p],c[p+1],d,h,fR,!0),a=c[p++],o=c[p++];break;case fD.C:m=rR(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,fR),a=c[p++],o=c[p++];break;case fD.Q:m=rE(a,o,c[p++],c[p++],c[p],c[p+1],d,h,fR),a=c[p++],o=c[p++];break;case fD.A:var g=c[p++],v=c[p++],y=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*y+g,r=Math.sin(_)*x+v,p<=1&&(s=i,l=r);var S=(d-g)*x/y+g;m=function(e,t,n,i,r,a,o,s,l){var u=Math.sqrt((o-=e)*o+(s-=t)*s),c=(o/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(i-r)%fM<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var h=i;i=sp(r),r=sp(h)}else i=sp(i),r=sp(r);i>r&&(r+=fM);var p=Math.atan2(s,o);if(p<0&&(p+=fM),p>=i&&p<=r||p+fM>=i&&p+fM<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,m=n*Math.sin(i)+t,g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(g-o)*(g-o)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(x))}(g,v,x,_,_+b,w,S,h,fR),a=Math.cos(_+b)*y+g,o=Math.sin(_+b)*x+v;break;case fD.R:m=fA(s=a=c[p++],l=o=c[p++],c[p++],c[p++],d,h,fR);break;case fD.Z:m=fz(a,o,s,l,d,h,fR,!0),a=s,o=l}m<u&&(u=m,n.set(fR[0],fR[1]))}return u}(fN,e.path,fF):function(e,t,n){var i=fA(t.x,t.y,t.width,t.height,e.x,e.y,fR);return n.set(fR[0],fR[1]),i}(fN,f,fF);m<l&&(l=m,fN.transform(c),fF.transform(c),fF.toArray(a[0]),fN.toArray(a[1]),fP.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fP.fromArray(e[0]),fN.fromArray(e[1]),fF.fromArray(e[2]),i0.sub(fL,fP,fN),i0.sub(fE,fF,fN);var n=fL.len(),i=fE.len();if(!(n<.001)&&!(i<.001)&&(fL.scale(1/n),fE.scale(1/i),Math.cos(t)<fL.dot(fE))){var r=fz(fN.x,fN.y,fF.x,fF.y,fP.x,fP.y,fH,!1);fV.fromArray(fH),fV.scaleAndAdd(fE,r/Math.tan(Math.PI-t));var a=fF.x!==fN.x?(fV.x-fN.x)/(fF.x-fN.x):(fV.y-fN.y)/(fF.y-fN.y);if(isNaN(a))return;a<0?i0.copy(fV,fN):a>1&&i0.copy(fV,fF),fV.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fH=[],fV=new i0;function fW(e,t,n,i){var r="normal"===n,a=r?e:e.ensureState(n);a.ignore=t;var o=i.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):a.style=s}function fG(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=iS(i[0],i[1]),a=iS(i[1],i[2]);if(!r||!a){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var o=Math.min(r,a)*n,s=ij([],i[1],i[0],o/r),l=ij([],i[1],i[2],o/a),u=ij([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}var fY=[0,0],fU=[0,0],fq=new i0,f$=new i0,fX=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i0;for(var n=0;n<2;n++)this._axes[n]=new i0;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,a=e.y,o=r+e.width,s=a+e.height;if(n[0].set(r,a),n[1].set(o,a),n[2].set(o,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);i0.sub(i[0],n[1],n[0]),i0.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return(fq.set(1/0,1/0),f$.set(0,0),!this._intersectCheckOneSide(this,e,fq,f$,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,fq,f$,i,-1)&&(n=!1,i))?n:(i||i0.copy(t,n?fq:f$),n)},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,fY),this._getProjMinMaxOnAxis(s,t._corners,fU),fY[1]<fU[0]||fY[0]>fU[1]){if(o=!1,r)return o;var u=Math.abs(fU[0]-fY[1]),c=Math.abs(fY[0]-fU[1]);Math.min(u,c)>i.len()&&(u<c?i0.scale(i,l,-u*a):i0.scale(i,l,c*a))}else if(n){var u=Math.abs(fU[0]-fY[1]),c=Math.abs(fY[0]-fU[1]);Math.min(u,c)<n.len()&&(u<c?i0.scale(n,l,u*a):i0.scale(n,l,-c*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,a=t[0].dot(i)+r[e],o=a,s=a,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}();function fK(e,t,n,i,r,a){var o,s,l,u=e.length;if(!(u<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var c=0,d=!1,h=[],p=0,f=0;f<u;f++){var m=e[f],g=m.rect;(o=g[t]-c)<0&&(g[t]-=o,m.label[t]-=o,d=!0);var v=Math.max(-o,0);h.push(v),p+=v,c=g[t]+g[n]}p>0&&a&&w(-p/u,0,u);var y=e[0],x=e[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&C(-s),l<0&&C(l),d}function _(){s=y.rect[t]-i,l=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,u);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(d=!0);for(var a=i;a<r;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function S(i,r){for(var a=[],o=0,s=1;s<u;s++){var l=e[s-1].rect,c=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(c),o+=c}if(o){var d=Math.min(Math.abs(i)/o,r);if(i>0)for(var s=0;s<u-1;s++){var h=a[s]*d;w(h,0,s+1)}else for(var s=u-1;s>0;s--){var h=a[s-1]*d;w(-h,s,u)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(u-1)),i=0;i<u-1;i++)if(t>0?w(n,0,i+1):w(-n,u-i-1,u),(e-=n)<=0)return}}var fZ=["align","verticalAlign","width","height","fontSize"],fJ=new aL,fQ=oy(),f1=oy();function f0(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var f2=["x","y","rotation"],f3=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var a,o=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();re.applyTransform(u,u,l),l?fJ.setLocalTransform(l):(fJ.x=fJ.y=fJ.rotation=fJ.originX=fJ.originY=0,fJ.scaleX=fJ.scaleY=1),fJ.rotation=sp(fJ.rotation);var c=i.__hostTarget;if(c){a=c.getBoundingRect().plain();var d=c.getComputedTransform();re.applyTransform(a,a,d)}var h=a&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:fJ.x,y:fJ.y,scaleX:fJ.scaleX,scaleY:fJ.scaleY,rotation:fJ.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(n4(i)||n1(i).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var r=e.getTextContent(),a=oN(e);r&&!r.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,r,i)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],a=r.label,o=a.__hostTarget,s=r.defaultAttr,l=void 0;l=(l=n4(r.layoutOption)?r.layoutOption(function(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(i&&i.shape.points)}}(r,o)):r.layoutOption)||{},r.computedLayoutOption=l;var u=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(a.x=a9(l.x,t),a.setStyle("x",0),c=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=a9(l.y,n),a.setStyle("y",0),c=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var d=o.getTextGuideLine();d&&(d.setShape({points:l.labelLinePoints}),c=!1)}fQ(a).needsUpdateLabelLine=c,a.rotation=null!=l.rotate?l.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var h=0;h<fZ.length;h++){var p=fZ[h];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=r.seriesModel;null!=r.dataIndex&&(f=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),a.on("drag",function(e,t){return function(){fB(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,a=r.getComputedTransform(),o=r.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=r.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new fX(o,a):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:o,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),r=nQ(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=nQ(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});fK(r,"x","width",0,t,void 0),fK(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new re(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var a=e[r],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fX(f.localRect,f.transform)),d||(d=new fX(s,l)),d.intersect(f.obb)))){h=!0;break}}h?(i(u),c&&i(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(nQ(i,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nK(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!i,o=t.getTextContent();!a&&o&&(a=fQ(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=oN(e),r=i.dataIndex;if(n&&null!=r){var a=t.getData(i.dataType),o=a.getItemModel(r),s={},l=a.getItemVisual(r,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var u=o.getModel("labelLine");!function(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(!r){i&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=r.ignore,l=0;l<sD.length;l++){var u=sD[l],c=t[u],d="normal"===u;if(c){var h=c.get("show");if((d?s:ii(r.states[u]&&r.states[u].ignore,s))||!ii(h,o)){var p=d?i:i&&i.states[u];p&&(p.ignore=!0),i&&fW(i,!0,u,c);continue}!i&&(i=new dY,e.setTextGuideLine(i),d||!s&&o||fW(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),fW(i,!1,u,c)}}if(i){nU(i.style,n),i.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=fG}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<sM.length;i++){var r=sM[i];n[r]=e.getModel([r,t])}return n}(o),s),fB(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!le(e))){var r=fQ(n),a=r.oldLayout,o=oN(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(a){n.attr(a);var c=e.prevStates;c&&(nq(c,"select")>=0&&n.attr(r.oldLayoutSelect),nq(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),s6(n,l,t,s)}else if(n.attr(l),!lo(n).valueAnimation){var d=ii(n.style.opacity,1);n.style.opacity=0,s7(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};f0(h,l,f2),f0(h,n.states.select,f2)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};f0(p,l,f2),f0(p,n.states.emphasis,f2)}var f=lo(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,g=ii(f.interpolatedValue,f.prevValue),v=f.value;n.percent=0,(null==f.prevValue?s7:s6)(n,{percent:1},t,s,null,function(e){var i=function(e,t,n,i,r){var a=null==t||"auto"===t;if(null==i)return i;if(n8(i)){var o,s=(i-(o=n||0))*r+o;return a6(s,a?Math.max(a7(n||0),a7(i)):t)}if(n5(i))return r<1?n:i;for(var l=[],u=Math.max(n?n.length:0,i.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)l[c]=(r<1&&n?n:i)[c];else{var h=n&&n[c]?n[c]:0,p=i[c],s=(p-h)*r+h;l[c]=a6(s,a?Math.max(a7(h),a7(p)):t)}}return l}(u,f.precision,g,v,e);f.interpolatedValue=1===e?null:i,function(e,t){for(var n=0;n<sM.length;n++){var i=sM[n],r=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=r}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}(n,function(e,t,n){var i,r=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=n4(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:i},u=0;u<sM.length;u++){var c=sM[u],d=t[c];l[c]=ii(r?r.getFormattedLabel(a,c,null,o,d&&d.get("formatter")):null,i)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(i):i+""},f.statesModels,i))})}}if(i&&!i.ignore&&!i.invisible){var r=f1(i),a=r.oldLayout,y={points:i.shape.points};a?(i.attr({shape:a}),s6(i,{shape:y},t)):(i.setShape(y),i.style.strokePercent=0,s7(i,{style:{strokePercent:1}},t)),r.oldLayout=y}},e}(),f4=oy();function f5(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=f4(t).labelManager;i||(i=f4(t).labelManager=new f3),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=f4(t).labelManager;n.updatedSeries.forEach(function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}function f8(e,t,n){var i=nM.createCanvas(),r=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=a*n,i}fI(f5);var f9=function(e){function t(t,n,i){var r,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,i=i||aM,"string"==typeof t?r=f8(t,n,i):n9(t)&&(t=(r=t).id),a.id=t,a.dom=r;var o=r.style;return o&&(ig(r),r.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=i,a}return nC(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f8("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,a=[],o=this.maxRepaintRectCount,s=!1,l=new re(0,0,0,0);function u(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new re(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new re(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<i&&(i=f,r=u)}}if(s&&(a[r].union(e),n=!0),!n){var t=new re(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,i,!0,!0),p=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=t[c],h=d&&d.shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&u(p)}}do{r=!1;for(var c=0;c<a.length;){if(a[c].isZero()){a.splice(c,1);continue}for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(r=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(r);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,a=i.width,o=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/u,o/u));var d=this.domBack;function h(e,n,i,a){if(r.clearRect(e,n,i,a),t&&"transparent"!==t){var o=void 0;it(t)?(o=(t.global||t.__width===i&&t.__height===a)&&t.__canvasGradient||hq(r,t,{x:0,y:0,width:i,height:a}),t.__canvasGradient=o,t.__width=i,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,o=h3(r,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=o||t,r.fillRect(e,n,i,a),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,e,n,i,a),r.restore())}!n||s?h(0,0,a,o):n.length&&nK(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(iO),f6=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=nY({},n||{}),this.dpr=n.devicePixelRatio||aM,this._singleCanvas=r,this.root=e,e.style&&(ig(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(r){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var u=new f9(e,this,this.dpr);u.__builtin__=!0,u.initContext(),o[314159]=u,u.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=hX(e,0,n),this._height=hX(e,1,n);var c,d,h,p=this._domRoot=(c=this._width,d=this._height,(h=document.createElement("div")).style.cssText=["position:relative","width:"+c+"px","height:"+d+"px","padding:0;margin:0;border-width:0"].join(";")+";",h);e.appendChild(p)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var a=i[r],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===r?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t,n=e.length,i=this._hoverlayer;if(i&&i.clear(),n){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),t||(t=i.ctx).save(),pn(t,o,r,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){pt(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),a=r.finished,o=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;I(function(){s._paintList(e,t,n,i)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,d=this,h=0;h<r.length;h++)!function(o){var s,l=r[o],h=l.ctx,p=a&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,g=m&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-g>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)}(h);return nT.wxa&&nK(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,i,r,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(pn(o,e,r,a),e.setPrevPaintRect(s))}else pn(o,e,r,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new f9("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nG(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nG(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,o=null,s=-1;if(!n[e]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){if(r>0&&e>i[0]){for(s=0;s<r-1&&(!(i[s]<e)||!(i[s+1]>e));s++);o=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__&&e.call(t,a,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__||e.call(t,a,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,i,r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(i=0;i<e.length;i++){var a=e[i],l=a.zlevel,u=void 0;n!==l&&(n=l,s=0),a.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),u.__builtin__||nV("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&a.__dirty&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,nK(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nG(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];(r===e||r===e+.01)&&nG(this._layers[r],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(nq(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=hX(r,0,i),t=hX(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new f9("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++)pn(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),f7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nC(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new c1(this),c0(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),c0(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:uH},t}(uI),me=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nC(t,e),t.type="dataset",t}(da);fI([function(e){e.registerPainter("canvas",f6)},function(e){e.registerComponentModel(f7),e.registerComponentView(me)}]),fI(f5),fC({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new p1(p0(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fj({type:"wordCloud",render:function(e,t,n){var i=this.group;i.removeAll();var r=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=r.getItemModel(o),u=new lz({style:fx(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});u.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:r.getItemVisual(o,"style").fill,fontSize:n}),i.add(u),r.setItemGraphicEl(o,u),u.ensureState("emphasis").style=fx(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),u.ensureState("blur").style=fx(l.getModel(["blur","textStyle"]),{state:"blur"}),s3(u,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),u.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},u.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var i=parseInt(n.data.substr(t.length),36);e[i]&&(e[i](),e[i]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var i=e.length;return e.push(n),window.postMessage(t+i.toString(36),"*"),i}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var mt=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),mn=function(){if(mt){for(var e,t,n=document.createElement("canvas").getContext("2d"),i=20;i;){if(n.font=i.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return i+1;e=n.measureText("W").width,t=n.measureText("m").width,i--}return 0}}(),mi=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},mr=function(e){for(var t,n,i=e.length;i;)t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n;return e},ma={},mo=function(e,t){if(mt){var n,i,r,a,o,s,l,u,c,d=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var h={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in h&&(h[p]=t[p]);if("function"!=typeof h.weightFactor){var f=h.weightFactor;h.weightFactor=function(e){return e*f}}if("function"!=typeof h.shape)switch(h.shape){case"circle":default:h.shape="circle";break;case"cardioid":h.shape=function(e){return 1-Math.sin(e)};break;case"diamond":h.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":h.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":h.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":h.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":h.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":h.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}h.gridSize=Math.max(Math.floor(h.gridSize),4);var m=h.gridSize,g=m-h.maskGapWidth,v=Math.abs(h.maxRotation-h.minRotation),y=Math.min(h.maxRotation,h.minRotation),x=h.rotationStep;switch(h.color){case"random-dark":l=function(){return N(10,50)};break;case"random-light":l=function(){return N(50,90)};break;default:"function"==typeof h.color&&(l=h.color)}"function"==typeof h.fontWeight&&(u=h.fontWeight);var _=null;"function"==typeof h.classes&&(_=h.classes);var b=!1,w=[],S=function(e){var t,n,i=e.currentTarget,r=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-r.left,o=n-r.top,s=Math.floor(a*(i.width/r.width||1)/m),l=Math.floor(o*(i.height/r.height||1)/m);return w[s]?w[s][l]:null},C=function(e){var t=S(e);if(c!==t){if(c=t,!t)return void h.hover(void 0,void 0,e);h.hover(t.item,t.dimension,e)}},j=function(e){var t=S(e);t&&(h.click(t.item,t.dimension,e),e.preventDefault())},T=[],k=function(e){if(T[e])return T[e];var t=8*e,n=t,i=[];for(0===e&&i.push([a[0],a[1],0]);n--;){var r=1;"circle"!==h.shape&&(r=h.shape(n/t*2*Math.PI)),i.push([a[0]+e*r*Math.cos(-n/t*2*Math.PI),a[1]+e*r*Math.sin(-n/t*2*Math.PI)*h.ellipticity,n/t*2*Math.PI])}return T[e]=i,i},I=function(){return h.abortThreshold>0&&new Date().getTime()-s>h.abortThreshold},M=function(e,t,n,i){var r,a,o,s,l=h.weightFactor(t);if(l<=h.minSize)return!1;var c=1;l<mn&&(c=function(){for(var e=2;e*l<mn;)e+=2;return e}()),r=u?u(e,t,l,i):h.fontWeight;var d=document.createElement("canvas"),p=d.getContext("2d",{willReadFrequently:!0});p.font=r+" "+(l*c).toString(10)+"px "+h.fontFamily;var f=p.measureText(e).width/c,g=Math.max(l*c,p.measureText("m").width,p.measureText("W").width)/c,v=f+2*g,y=3*g,x=Math.ceil(v/m),_=Math.ceil(y/m),b=-f/2,w=-(.4*g),S=Math.ceil(((v=x*m)*Math.abs(Math.sin(n))+(y=_*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((v*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),j=C*m,T=S*m;d.setAttribute("width",j),d.setAttribute("height",T),p.scale(1/c,1/c),p.translate(j*c/2,T*c/2),p.rotate(-n),p.font=r+" "+(l*c).toString(10)+"px "+h.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,b*c,(w+.5*l)*c);var k=p.getImageData(0,0,j,T).data;if(I())return!1;for(var M=[],D=C,O=[S/2,C/2,S/2,C/2];D--;)for(a=S;a--;){s=m;n:for(;s--;)for(o=m;o--;)if(k[((a*m+s)*j+(D*m+o))*4+3]){M.push([D,a]),D<O[3]&&(O[3]=D),D>O[1]&&(O[1]=D),a<O[0]&&(O[0]=a),a>O[2]&&(O[2]=a);break n}}return{mu:c,occupied:M,bounds:O,gw:C,gh:S,fillTextOffsetX:b,fillTextOffsetY:w,fillTextWidth:f,fillTextHeight:g,fontSize:l}},D=function(e,t,a,o,s){for(var l=s.length;l--;){var u=e+s[l][0],c=t+s[l][1];if(u>=i||c>=r||u<0||c<0){if(!h.drawOutOfBound)return!1;continue}if(!n[u][c])return!1}return!0},O=function(t,n,i,r,a,o,s,c,d,p){var f,g,v,y=i.fontSize;f=l?l(r,a,y,o,s,p):h.color,g=u?u(r,a,y,p):h.fontWeight,v=_?_(r,a,y,p):h.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=i.mu;a.save(),a.scale(1/o,1/o),a.font=g+" "+(y*o).toString(10)+"px "+h.fontFamily,a.fillStyle=f,a.translate((t+i.gw/2)*m*o,(n+i.gh/2)*m*o),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(r,i.fillTextOffsetX*o,(i.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-c/Math.PI*180+"deg) ",1!==i.mu&&(l+="translateX(-"+i.fillTextWidth/4+"px) scale("+1/i.mu+")");var u={position:"absolute",display:"block",font:g+" "+y*i.mu+"px "+h.fontFamily,left:(t+i.gw/2)*m+i.fillTextOffsetX+"px",top:(n+i.gh/2)*m+i.fillTextOffsetY+"px",width:i.fillTextWidth+"px",height:i.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(u.color=f),s.textContent=r,u)s.style[p]=u[p];if(d)for(var x in d)s.setAttribute(x,d[x]);v&&(s.className+=v),e.appendChild(s)}})},z=function(t,a,o,s,l){t>=i||a>=r||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,g,g),b&&(w[t][a]={item:l,dimension:s}))},A=function(t,n,a,o,s,l){var u,c,d=s.occupied,p=h.drawMask;if(p&&((u=e[0].getContext("2d")).save(),u.fillStyle=h.maskColor),b){var f=s.bounds;c={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var g=d.length;g--;){var v=t+d[g][0],y=n+d[g][1];v>=i||y>=r||v<0||y<0||z(v,y,p,c,l)}p&&u.restore()},R=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,u=0===h.rotateRatio||Math.random()>h.rotateRatio?0:0===v?y:y+Math.round(Math.random()*v/x)*x,c=mi(t),d=M(a,s,u,c);if(!d||I())return!1;if(!h.drawOutOfBound&&!h.shrinkToFit){var p=d.bounds;if(p[1]-p[3]+1>i||p[2]-p[0]+1>r)return!1}for(var f=o+1;f--;){var m=k(o-f);h.shuffle&&mr(m=[].concat(m));for(var g=0;g<m.length;g++){var _=function(e){var n=Math.floor(e[0]-d.gw/2),i=Math.floor(e[1]-d.gh/2),r=d.gw,h=d.gh;return!!D(n,i,r,h,d.occupied)&&(O(n,i,d,a,s,o-f,e[2],u,l,c),A(n,i,r,h,d,t),{gx:n,gy:i,rot:u,info:d})}(m[g]);if(_)return _}}return h.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},P=function(t,n,i){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:i||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:i||{}});e.dispatchEvent(n)},this)};!function(){var t,l,u=e[0];if(u.getContext)i=Math.ceil(u.width/m),r=Math.ceil(u.height/m);else{var p=u.getBoundingClientRect();i=Math.ceil(p.width/m),r=Math.ceil(p.height/m)}if(P("wordcloudstart",!0)){if(a=h.origin?[h.origin[0]/m,h.origin[1]/m]:[i/2,r/2],o=Math.floor(Math.sqrt(i*i+r*r)),n=[],!u.getContext||h.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=h.backgroundColor,t.clearRect(0,0,i*(m+1),r*(m+1)),t.fillRect(0,0,i*(m+1),r*(m+1))}else e.textContent="",e.style.backgroundColor=h.backgroundColor,e.style.position="relative"}),f=i;f--;)for(n[f]=[],g=r;g--;)n[f][g]=!0;else{var f,g,v,y,x,_=document.createElement("canvas").getContext("2d");_.fillStyle=h.backgroundColor,_.fillRect(0,0,1,1);var S=_.getImageData(0,0,1,1).data,T=u.getContext("2d").getImageData(0,0,i*m,r*m).data;for(f=i;f--;)for(n[f]=[],g=r;g--;){x=m;n:for(;x--;)for(y=m;y--;)for(v=4;v--;)if(T[((g*m+x)*i*m+(f*m+y))*4+v]!==S[v]){n[f][g]=!1;break n}!1!==n[f][g]&&(n[f][g]=!0)}T=_=S=void 0}if(h.hover||h.click){for(b=!0,f=i+1;f--;)w[f]=[];h.hover&&u.addEventListener("mousemove",C),h.click&&(u.addEventListener("click",j),u.addEventListener("touchstart",j),u.addEventListener("touchend",function(e){e.preventDefault()}),u.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),u.addEventListener("wordcloudstart",function e(){u.removeEventListener("wordcloudstart",e),u.removeEventListener("mousemove",C),u.removeEventListener("click",j),c=void 0})}v=0;var k=!0;h.layoutAnimation?0!==h.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){k=!1});var M=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},D=function e(){M("wordcloudstart",e),l(ma[d])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",D),ma[d]=(h.layoutAnimation?t:setTimeout)(function e(){if(k){if(v>=h.list.length){l(ma[d]),P("wordcloudstop",!1),M("wordcloudstart",D),delete ma[d];return}s=new Date().getTime();var n=R(h.list[v],0),i=!P("wordclouddrawn",!0,{item:h.list[v],drawn:n});if(I()||i){l(ma[d]),h.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),M("wordcloudstart",D);return}v++,ma[d]=t(e,h.wait)}},h.wait)}}()}function N(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(mo.isSupported=mt,mo.minFontSize=mn,!mo.isSupported)throw Error("Sorry your browser not support wordCloud");pP(function(e,t){e.eachSeriesByType("wordCloud",function(n){var i,r,a,o,s=function(e,t,n){n=io(n||0);var i=t.width,r=t.height,a=a9(e.left,i),o=a9(e.top,r),s=a9(e.right,i),l=a9(e.bottom,r),u=a9(e.width,i),c=a9(e.height,r),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-h-a),isNaN(c)&&(c=r-l-d-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=i-s-u-h),isNaN(o)&&(o=r-l-c-d),e.left||e.right){case"center":a=i/2-u/2-n[3];break;case"right":a=i-u-h}switch(e.top||e.bottom){case"middle":case"center":o=r/2-c/2-n[0];break;case"bottom":o=r-c-d}a=a||0,o=o||0,isNaN(u)&&(u=i-h-a-(s||0)),isNaN(c)&&(c=r-d-o-(l||0));var f=new re(a+n[3],o+n[0],u,c);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),u=n.get("maskImage"),c=u?u.width/u.height:1;l&&(i=s,r=c,a=i.width,a>(o=i.height)*r?(i.x+=(a-o*r)/2,i.width=o*r):(i.y+=(o-a/r)/2,i.height=a/r));var d=n.getData(),h=document.createElement("canvas");h.width=s.width,h.height=s.height;var p=h.getContext("2d");if(u)try{p.drawImage(u,0,0,h.width,h.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),i=t.createImageData(n),r=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];r+=l,++a}}for(var u=r/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>u?(i.data[o]=0,i.data[o+1]=0,i.data[o+2]=0,i.data[o+3]=0):(i.data[o]=255,i.data[o+1]=255,i.data[o+2]=255,i.data[o+3]=255)}t.putImageData(i,0,0)}(h)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),g=d.getDataExtent("value"),v=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}mo(h,{list:d.mapArray("value",function(e,t){var n,i,r,a,o,s,l,u,c,h=d.getItemModel(t);return[d.getName(t),h.get("textStyle.fontSize",!0)||(n=e,i=g,r=f,a=i[0],o=i[1],s=r[0],l=r[1],u=o-a,c=l-s,0===u?0===c?s:(s+l)/2:n===a?s:n===o?l:(n-a)/u*c+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*v,maxRotation:m[1]*v,clearCanvas:!u,rotateRatio:1,rotationStep:n.get("rotationStep")*v,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),h.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){h.removeEventListener("wordclouddrawn",x),h.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pO(function(e){var t=(e||{}).series;n3(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(e){e&&nK(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nK(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};i(t.normal),i(t.emphasis)}})}),fC({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new p1(p0(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let ms=(k={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var i=t.phase/Math.PI/2*t.waveLength,r=t.cx-t.radius+i-2*t.radius;e.moveTo(r,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,u,c,d=o%4,h=(s=o*t.waveLength/4,l=d,u=t.waveLength,c=t.amplitude,0===l?[[s+.5*u/Math.PI/2,c/2],[s+.5*u/Math.PI,c],[s+u/4,c]]:1===l?[[s+.5*u/Math.PI/2*(Math.PI-2),c],[s+.5*u/Math.PI/2*(Math.PI-1),c/2],[s+u/4,0]]:2===l?[[s+.5*u/Math.PI/2,-c/2],[s+.5*u/Math.PI,-c],[s+u/4,-c]]:[[s+.5*u/Math.PI/2*(Math.PI-2),-c],[s+.5*u/Math.PI/2*(Math.PI-1),-c/2],[s+u/4,0]]);e.bezierCurveTo(h[0][0]+r,-h[0][1]+t.waterLevel,h[1][0]+r,-h[1][1]+t.waterLevel,h[2][0]+r,-h[2][1]+t.waterLevel),o===n-1&&(a=h[2][0])}t.inverse?(e.lineTo(a+r,t.cy-t.radiusY),e.lineTo(r,t.cy-t.radiusY)):(e.lineTo(a+r,t.cy+t.radiusY),e.lineTo(r,t.cy+t.radiusY)),e.lineTo(r,t.waterLevel),e.closePath()}},sC.extend(k));function ml(e){return e&&0===e.indexOf("path://")}fj({type:"liquidFill",render:function(e,t,n){var i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S=this,C=this.group;C.removeAll();var j=e.getData(),T=j.getItemModel(0),k=T.get("center"),I=T.get("radius"),M=n.getWidth(),D=n.getHeight(),O=Math.min(M,D),z=0,A=0,R=e.get("outline.show");R&&(z=e.get("outline.borderDistance"),A=a9(e.get("outline.itemStyle.borderWidth"),O));var P=a9(k[0],M),N=a9(k[1],D),F=!1,L=e.get("shape");"container"===L?(F=!0,b=[(_=[M/2,D/2])[0]-A/2,_[1]-A/2],w=[a9(z,M),a9(z,D)],I=[Math.max(b[0]-w[0],0),Math.max(b[1]-w[1],0)]):I=Math.max((b=(_=a9(I,O)/2)-A/2)-(w=a9(z,O)),0),R&&(Y().style.lineWidth=A,C.add(Y()));var E=F?0:P-I,B=F?0:N-I,H=null;C.add(((i=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.fill=null,i.z2=5,(r=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.stroke=null,(a=new a2).add(i),a.add(r),a));var V=this._data,W=[];function G(e,t){if(L)if(ml(L)){var n=d2(L.slice(7),{}),i=n.getBoundingRect(),r=i.width,a=i.height;r>a?(a=2*e/r*a,r=2*e):(r=2*e/a*r,a=2*e);var o=t?0:P-r/2,s=t?0:N-a/2;return n=d2(L.slice(7),{},new re(o,s,r,a)),t&&(n.x=-r/2,n.y=-a/2),n}else if(F){var l=t?-e[0]:P-e[0],u=t?-e[1]:N-e[1];return hY("rect",l,u,2*e[0],2*e[1])}else{var l=t?-e:P-e,u=t?-e:N-e;return"pin"===L?u+=e:"arrow"===L&&(u-=e),hY(L,l,u,2*e,2*e)}return new dS({shape:{cx:t?0:P,cy:t?0:N,r:e}})}function Y(){var t=G(_);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function U(t,n,i){var r=F?I[0]:I,a=F?D/2:I,o=j.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),u=a9(o.get("amplitude"),2*a),c=a9(o.get("waveLength"),2*r),d=a-j.get("value",t)*a*2;l=i?i.shape.phase:"auto"===l?t*Math.PI/4:l;var h=s.getItemStyle();if(!h.fill){var p=e.get("color"),f=t%p.length;h.fill=p[f]}var m=new ms({shape:{waveLength:c,radius:r,radiusY:a,cx:2*r,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:n},style:h,x:P,y:N});m.shape._waterLevel=d;var g=o.getModel("emphasis.itemStyle").getItemStyle();g.lineWidth=0,m.ensureState("emphasis").style=g,s3(m);var v=G(I,!0);return v.setStyle({fill:"white"}),m.setClipPath(v),m}function q(e,t,n){var i,r=j.getItemModel(e),a=r.get("period"),o=r.get("direction"),s=j.get("value",e),l=r.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var u=0;u="auto"===a?0===(i=j.count())?5e3:5e3*(.2+(i-e)/i*.8):"function"==typeof a?a(s,e):a;var c=0;"right"===o||null==o?c=Math.PI:"left"===o?c=-Math.PI:"none"===o?c=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&r.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(u/2,{phase:c+l}).when(u,{phase:2*c+l}).during(function(){H&&H.dirty(!0)}).start()}j.diff(V).add(function(t){var n=U(t,!1),i=n.shape.waterLevel;n.shape.waterLevel=F?D/2:I,s7(n,{shape:{waterLevel:i}},e),n.z2=2,q(t,n,null),C.add(n),j.setItemGraphicEl(t,n),W.push(n)}).update(function(t,n){for(var i=V.getItemGraphicEl(n),r=U(t,!1,i),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];r.shape.hasOwnProperty(l)&&(a[l]=r.shape[l])}for(var u={},c=["fill","opacity","shadowBlur","shadowColor"],s=0;s<c.length;++s){var l=c[s];r.style.hasOwnProperty(l)&&(u[l]=r.style[l])}F&&(a.radiusY=D/2),s6(i,{shape:a,x:r.x,y:r.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?s6(i,{style:u},e):i.useStyle(u);var d=i.getClipPath(),h=r.getClipPath();i.setClipPath(r.getClipPath()),i.shape.inverse=r.inverse,d&&h&&S._shape===L&&!ml(L)&&s6(h,{shape:d.shape},e,{isFrom:!0}),q(t,i,i),C.add(i),j.setItemGraphicEl(t,i),W.push(i)}).remove(function(e){var t=V.getItemGraphicEl(e);C.remove(t)}).execute(),T.get("label.show")&&C.add((o=W,c=T.getModel("label"),d={z2:10,shape:{x:E,y:B,width:(F?I[0]:I)*2,height:(F?I[1]:I)*2},style:{fill:"transparent"},textConfig:{position:c.get("position")||"inside"},silent:!0},Object.assign((h={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*j.get("value",0),u=j.getName(0)||e.name,isNaN(l)||(u=l.toFixed(0)+"%"),null==s?u:s),textAlign:c.get("align"),textVerticalAlign:c.get("baseline")}}).style,fx(c)),p=new lM(d),(f=new lM(d)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lz(h),g=new lz(h),p.setTextContent(m),f.setTextContent(g),v=c.get("insideColor"),g.style.fill=v,(y=new a2).add(p),y.add(f),x=G(I,!0),(H=new fw({shape:{paths:o},x:P,y:N})).setClipPath(x),f.setClipPath(H),y)),this._shape=L,this._data=j},dispose:function(){}});var mu=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"65","size":"550","name":"新疆维吾尔自治区","cp":[84.9023,42.148],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7588],[96.416,42.7148],[95.9766,42.4951],[96.0645,42.3193],[96.2402,42.2314],[95.9766,41.9238],[95.2734,41.6162],[95.1855,41.792],[94.5703,41.4844],[94.043,41.0889],[93.8672,40.6934],[93.0762,40.6494],[92.6367,39.6387],[92.373,39.3311],[92.373,39.1113],[92.373,39.0234],[90.1758,38.4961],[90.3516,38.2324],[90.6152,38.3203],[90.5273,37.8369],[91.0547,37.4414],[91.3184,37.0898],[90.7031,36.7822],[90.791,36.6064],[91.0547,36.5186],[91.0547,36.0791],[90.8789,36.0352],[90,36.2549],[89.9121,36.0791],[89.7363,36.0791],[89.209,36.2988],[88.7695,36.3428],[88.5938,36.4746],[87.3633,36.4307],[86.2207,36.167],[86.1328,35.8594],[85.6055,35.6836],[85.0781,35.7275],[84.1992,35.376],[83.1445,35.4199],[82.8809,35.6836],[82.4414,35.7275],[82.002,35.332],[81.6504,35.2441],[80.4199,35.4199],[80.2441,35.2881],[80.332,35.1563],[80.2441,35.2002],[79.8926,34.8047],[79.8047,34.4971],[79.1016,34.4531],[79.0137,34.3213],[78.2227,34.7168],[78.0469,35.2441],[78.0469,35.5078],[77.4316,35.4639],[76.8164,35.6396],[76.5527,35.8594],[76.2012,35.8154],[75.9375,36.0352],[76.0254,36.4746],[75.8496,36.6943],[75.498,36.7383],[75.4102,36.958],[75.0586,37.002],[74.8828,36.9141],[74.7949,37.0459],[74.5313,37.0898],[74.5313,37.2217],[74.8828,37.2217],[75.1465,37.4414],[74.8828,37.5732],[74.9707,37.749],[74.8828,38.4521],[74.3555,38.6719],[74.1797,38.6719],[74.0918,38.54],[73.8281,38.584],[73.7402,38.8477],[73.8281,38.9795],[73.4766,39.375],[73.916,39.5068],[73.916,39.6826],[73.8281,39.7705],[74.0039,40.0342],[74.8828,40.3418],[74.7949,40.5176],[75.2344,40.4297],[75.5859,40.6494],[75.7617,40.2979],[76.377,40.3857],[76.9043,41.001],[77.6074,41.001],[78.1348,41.2207],[78.1348,41.3965],[80.1563,42.0557],[80.2441,42.2754],[80.1563,42.627],[80.2441,42.8467],[80.5078,42.8906],[80.4199,43.0664],[80.7715,43.1982],[80.4199,44.165],[80.4199,44.6045],[79.9805,44.8242],[79.9805,44.9561],[81.7383,45.3955],[82.0898,45.2197],[82.5293,45.2197],[82.2656,45.6592],[83.0566,47.2412],[83.6719,47.0215],[84.7266,47.0215],[84.9023,46.8896],[85.5176,47.0654],[85.6934,47.2852],[85.5176,48.1201],[85.7813,48.4277],[86.5723,48.5596],[86.8359,48.8232],[86.748,48.9551],[86.8359,49.1309],[87.8027,49.1748],[87.8906,48.999],[87.7148,48.9111],[88.0664,48.7354],[87.9785,48.6035],[88.5059,48.3838],[88.6816,48.1641],[89.1211,47.9883],[89.5605,48.0322],[89.7363,47.8564],[90.0879,47.8564],[90.3516,47.6807],[90.5273,47.2412],[90.8789,46.9775],[91.0547,46.582],[90.8789,46.3184],[91.0547,46.0107],[90.7031,45.7471],[90.7031,45.5273],[90.8789,45.2197],[91.582,45.0879],[93.5156,44.9561],[94.7461,44.3408],[95.3613,44.2969],[95.3613,44.0332],[95.5371,43.9014],[95.8887,43.2422],[96.3281,42.9346],[96.416,42.7588]]]}},{"type":"Feature","properties":{"id":"54","size":"550","name":"西藏自治区","cp":[87.8695,31.6846],"childNum":7},"geometry":{"type":"Polygon","coordinates":[[[79.0137,34.3213],[79.1016,34.4531],[79.8047,34.4971],[79.8926,34.8047],[80.2441,35.2002],[80.332,35.1563],[80.2441,35.2881],[80.4199,35.4199],[81.6504,35.2441],[82.002,35.332],[82.4414,35.7275],[82.8809,35.6836],[83.1445,35.4199],[84.1992,35.376],[85.0781,35.7275],[85.6055,35.6836],[86.1328,35.8594],[86.2207,36.167],[87.3633,36.4307],[88.5938,36.4746],[88.7695,36.3428],[89.209,36.2988],[89.7363,36.0791],[89.3848,36.0352],[89.4727,35.9033],[89.7363,35.7715],[89.7363,35.4199],[89.4727,35.376],[89.4727,35.2441],[89.5605,34.8926],[89.8242,34.8486],[89.7363,34.6729],[89.8242,34.3652],[89.6484,34.0137],[90.0879,33.4863],[90.7031,33.1348],[91.4063,33.1348],[91.9336,32.8271],[92.1973,32.8271],[92.2852,32.7393],[92.9883,32.7393],[93.5156,32.4756],[93.7793,32.5635],[94.1309,32.4316],[94.6582,32.6074],[95.1855,32.4316],[95.0098,32.2998],[95.1855,32.3438],[95.2734,32.2119],[95.3613,32.168],[95.3613,31.9922],[95.4492,31.8164],[95.8008,31.6846],[95.9766,31.8164],[96.1523,31.5967],[96.2402,31.9482],[96.5039,31.7285],[96.8555,31.6846],[96.7676,31.9922],[97.2949,32.0801],[97.3828,32.5635],[97.7344,32.5195],[98.1738,32.3438],[98.4375,31.8604],[98.877,31.4209],[98.6133,31.2012],[98.9648,30.7617],[99.1406,29.2676],[98.9648,29.1357],[98.9648,28.8281],[98.7891,28.8721],[98.7891,29.0039],[98.7012,28.916],[98.6133,28.5205],[98.7891,28.3447],[98.7012,28.2129],[98.3496,28.125],[98.2617,28.3887],[98.1738,28.125],[97.5586,28.5205],[97.2949,28.0811],[97.3828,27.9053],[97.0313,27.7295],[96.5039,28.125],[95.7129,28.2568],[95.3613,28.125],[95.2734,27.9492],[94.2188,27.5537],[93.8672,27.0264],[93.6035,26.9385],[92.1094,26.8506],[92.0215,27.4658],[91.582,27.5537],[91.582,27.9053],[91.4063,28.0371],[91.0547,27.8613],[90.7031,28.0811],[89.8242,28.2129],[89.6484,28.1689],[89.1211,27.5977],[89.1211,27.334],[89.0332,27.2021],[88.7695,27.4219],[88.8574,27.9932],[88.6816,28.125],[88.1543,27.9053],[87.8906,27.9492],[87.7148,27.8174],[87.0996,27.8174],[86.748,28.125],[86.5723,28.125],[86.4844,27.9053],[86.1328,28.125],[86.0449,27.9053],[85.6934,28.3447],[85.6055,28.2568],[85.166,28.3447],[85.166,28.6523],[84.9023,28.5645],[84.4629,28.7402],[84.2871,28.8721],[84.1992,29.2236],[84.1113,29.2676],[83.584,29.1797],[83.2324,29.5752],[82.1777,30.0586],[82.0898,30.3223],[81.3867,30.3662],[81.2109,30.0146],[81.0352,30.2344],[80.0684,30.5859],[79.7168,30.9375],[79.0137,31.0693],[78.75,31.333],[78.8379,31.5967],[78.6621,31.8164],[78.75,31.9043],[78.4863,32.124],[78.3984,32.5195],[78.75,32.6953],[78.9258,32.3438],[79.2773,32.5635],[79.1016,33.1787],[78.6621,33.6621],[78.6621,34.1016],[78.9258,34.1455],[79.0137,34.3213]]]}},{"type":"Feature","properties":{"id":"15","size":"450","name":"内蒙古自治区","cp":[112.5977,46.3408],"childNum":12},"geometry":{"type":"Polygon","coordinates":[[[97.207,42.8027],[99.4922,42.583],[100.8105,42.6709],[101.7773,42.4951],[102.041,42.2314],[102.7441,42.1436],[103.3594,41.8799],[103.8867,41.792],[104.502,41.8799],[104.502,41.6602],[105.0293,41.5723],[105.7324,41.9238],[107.4023,42.4512],[109.4238,42.4512],[110.3906,42.7588],[111.0059,43.3301],[111.9727,43.6816],[111.9727,43.8135],[111.4453,44.3848],[111.7969,45],[111.9727,45.0879],[113.6426,44.7363],[114.1699,44.9561],[114.5215,45.3955],[115.6641,45.4395],[116.1914,45.7031],[116.2793,45.9668],[116.543,46.2744],[117.334,46.3623],[117.4219,46.582],[117.7734,46.5381],[118.3008,46.7578],[118.7402,46.7139],[118.916,46.7578],[119.0918,46.6699],[119.707,46.626],[119.9707,46.7139],[119.707,47.1973],[118.4766,47.9883],[117.8613,48.0322],[117.334,47.6807],[116.8066,47.9004],[116.1914,47.8564],[115.9277,47.6807],[115.5762,47.9004],[115.4883,48.1641],[115.8398,48.252],[115.8398,48.5596],[116.7188,49.834],[117.7734,49.5264],[118.5645,49.9219],[119.2676,50.0977],[119.3555,50.3174],[119.1797,50.3613],[119.5313,50.7568],[119.5313,50.8887],[119.707,51.0645],[120.1465,51.6797],[120.6738,51.9434],[120.7617,52.1191],[120.7617,52.251],[120.5859,52.3389],[120.6738,52.5146],[120.4102,52.6465],[120.0586,52.6025],[120.0586,52.7344],[120.8496,53.2617],[121.4648,53.3496],[121.8164,53.042],[121.2012,52.5586],[121.6406,52.4268],[121.7285,52.2949],[121.9922,52.2949],[122.168,52.5146],[122.6953,52.251],[122.6074,52.0752],[122.959,51.3281],[123.3105,51.2402],[123.6621,51.3721],[124.3652,51.2842],[124.541,51.3721],[124.8926,51.3721],[125.0684,51.6357],[125.332,51.6357],[126.0352,51.0205],[125.7715,50.7568],[125.7715,50.5371],[125.332,50.1416],[125.1563,49.834],[125.2441,49.1748],[124.8047,49.1309],[124.4531,48.1201],[124.2773,48.5156],[122.4316,47.373],[123.0469,46.7139],[123.3984,46.8896],[123.3984,46.9775],[123.4863,46.9775],[123.5742,46.8457],[123.5742,46.8896],[123.5742,46.6699],[123.0469,46.582],[123.2227,46.2305],[122.7832,46.0107],[122.6953,45.7031],[122.4316,45.8789],[122.2559,45.791],[121.8164,46.0107],[121.7285,45.7471],[121.9043,45.7031],[122.2559,45.2637],[122.0801,44.8682],[122.3438,44.2529],[123.1348,44.4727],[123.4863,43.7256],[123.3105,43.5059],[123.6621,43.374],[123.5742,43.0225],[123.3105,42.9785],[123.1348,42.8027],[122.7832,42.7148],[122.3438,42.8467],[122.3438,42.6709],[121.9922,42.7148],[121.7285,42.4512],[121.4648,42.4951],[120.498,42.0996],[120.1465,41.7041],[119.8828,42.1875],[119.5313,42.3633],[119.3555,42.2754],[119.2676,41.7041],[119.4434,41.6162],[119.2676,41.3086],[118.3887,41.3086],[118.125,41.748],[118.3008,41.792],[118.3008,42.0996],[118.125,42.0557],[117.9492,42.2314],[118.0371,42.4072],[117.7734,42.627],[117.5098,42.583],[117.334,42.4512],[116.8945,42.4072],[116.8066,42.0117],[116.2793,42.0117],[116.0156,41.792],[115.9277,41.9238],[115.2246,41.5723],[114.9609,41.6162],[114.873,42.0996],[114.5215,42.1436],[114.1699,41.792],[114.2578,41.5723],[113.9063,41.4404],[113.9941,41.2207],[113.9063,41.1328],[114.082,40.7373],[114.082,40.5176],[113.8184,40.5176],[113.5547,40.3418],[113.2031,40.3857],[112.7637,40.166],[112.3242,40.2539],[111.9727,39.5947],[111.4453,39.6387],[111.3574,39.4189],[111.0938,39.375],[111.0938,39.5947],[110.6543,39.2871],[110.127,39.4629],[110.2148,39.2871],[109.8633,39.2432],[109.9512,39.1553],[108.9844,38.3203],[109.0723,38.0127],[108.8965,37.9688],[108.8086,38.0127],[108.7207,37.7051],[108.1934,37.6172],[107.666,37.8809],[107.3145,38.1006],[106.7871,38.1885],[106.5234,38.3203],[106.9629,38.9795],[106.7871,39.375],[106.3477,39.2871],[105.9082,38.7158],[105.8203,37.793],[104.3262,37.4414],[103.4473,37.8369],[103.3594,38.0127],[103.5352,38.1445],[103.4473,38.3643],[104.2383,38.9795],[104.0625,39.4189],[103.3594,39.3311],[103.0078,39.1113],[102.4805,39.2432],[101.8652,39.1113],[102.041,38.8916],[101.7773,38.6719],[101.3379,38.7598],[101.25,39.0234],[100.9863,38.9355],[100.8105,39.4189],[100.5469,39.4189],[100.0195,39.7705],[99.4922,39.8584],[100.1074,40.2539],[100.1953,40.6494],[99.9316,41.001],[99.2285,40.8691],[99.0527,40.6934],[98.9648,40.7813],[98.7891,40.6055],[98.5254,40.7373],[98.6133,40.6494],[98.3496,40.5615],[98.3496,40.9131],[97.4707,41.4844],[97.8223,41.6162],[97.8223,41.748],[97.207,42.8027]]]}},{"type":"Feature","properties":{"id":"63","size":"800","name":"青海省","cp":[95.2402,35.4199],"childNum":8},"geometry":{"type":"Polygon","coordinates":[[[89.7363,36.0791],[89.9121,36.0791],[90,36.2549],[90.8789,36.0352],[91.0547,36.0791],[91.0547,36.5186],[90.791,36.6064],[90.7031,36.7822],[91.3184,37.0898],[91.0547,37.4414],[90.5273,37.8369],[90.6152,38.3203],[90.3516,38.2324],[90.1758,38.4961],[92.373,39.0234],[92.373,39.1113],[93.1641,39.1992],[93.1641,38.9795],[93.6914,38.9355],[93.8672,38.7158],[94.3066,38.7598],[94.5703,38.3643],[95.0098,38.4082],[95.4492,38.2764],[95.7129,38.3643],[96.2402,38.1006],[96.416,38.2324],[96.6797,38.1885],[96.6797,38.4521],[97.1191,38.584],[97.0313,39.1992],[98.1738,38.8037],[98.3496,39.0234],[98.6133,38.9355],[98.7891,39.0674],[99.1406,38.9355],[99.8438,38.3643],[100.1953,38.2764],[100.0195,38.4521],[100.1074,38.4961],[100.459,38.2764],[100.7227,38.2324],[101.1621,37.8369],[101.5137,37.8809],[101.7773,37.6172],[101.9531,37.7051],[102.1289,37.4414],[102.5684,37.1777],[102.4805,36.958],[102.6563,36.8262],[102.5684,36.7383],[102.832,36.3428],[103.0078,36.2549],[102.9199,36.0791],[102.9199,35.9033],[102.6563,35.7715],[102.832,35.5957],[102.4805,35.5957],[102.3047,35.4199],[102.3926,35.2002],[101.9531,34.8486],[101.9531,34.6289],[102.2168,34.4092],[102.1289,34.2773],[101.6895,34.1016],[100.9863,34.3652],[100.8105,34.2773],[101.25,33.6621],[101.5137,33.7061],[101.6016,33.5303],[101.7773,33.5303],[101.6895,33.3105],[101.7773,33.2227],[101.6016,33.1348],[101.1621,33.2227],[101.25,32.6953],[100.7227,32.6514],[100.7227,32.5195],[100.3711,32.7393],[100.1074,32.6514],[100.1074,32.8711],[99.8438,33.0029],[99.7559,32.7393],[99.2285,32.915],[99.2285,33.0469],[98.877,33.1787],[98.4375,34.0576],[97.8223,34.1895],[97.6465,34.1016],[97.7344,33.9258],[97.3828,33.8818],[97.4707,33.5742],[97.7344,33.3984],[97.3828,32.8711],[97.4707,32.6953],[97.7344,32.5195],[97.3828,32.5635],[97.2949,32.0801],[96.7676,31.9922],[96.8555,31.6846],[96.5039,31.7285],[96.2402,31.9482],[96.1523,31.5967],[95.9766,31.8164],[95.8008,31.6846],[95.4492,31.8164],[95.3613,31.9922],[95.3613,32.168],[95.2734,32.2119],[95.1855,32.3438],[95.0098,32.2998],[95.1855,32.4316],[94.6582,32.6074],[94.1309,32.4316],[93.7793,32.5635],[93.5156,32.4756],[92.9883,32.7393],[92.2852,32.7393],[92.1973,32.8271],[91.9336,32.8271],[91.4063,33.1348],[90.7031,33.1348],[90.0879,33.4863],[89.6484,34.0137],[89.8242,34.3652],[89.7363,34.6729],[89.8242,34.8486],[89.5605,34.8926],[89.4727,35.2441],[89.4727,35.376],[89.7363,35.4199],[89.7363,35.7715],[89.4727,35.9033],[89.3848,36.0352],[89.7363,36.0791]]]}},{"type":"Feature","properties":{"id":"51","size":"900","name":"四川省","cp":[101.9199,30.1904],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[101.7773,33.5303],[101.8652,33.5742],[101.9531,33.4424],[101.8652,33.0908],[102.4805,33.4424],[102.2168,33.9258],[102.9199,34.3213],[103.0957,34.1895],[103.1836,33.7939],[104.1504,33.6182],[104.2383,33.3984],[104.4141,33.3105],[104.3262,33.2227],[104.4141,33.0469],[104.3262,32.8711],[104.4141,32.7393],[105.2051,32.6074],[105.3809,32.7393],[105.3809,32.8711],[105.4688,32.915],[105.5566,32.7393],[106.084,32.8711],[106.084,32.7393],[106.3477,32.6514],[107.0508,32.6953],[107.1387,32.4756],[107.2266,32.4316],[107.4023,32.5195],[108.0176,32.168],[108.2813,32.2559],[108.5449,32.2119],[108.3691,32.168],[108.2813,31.9043],[108.5449,31.6846],[108.1934,31.5088],[107.9297,30.8496],[107.4902,30.8496],[107.4023,30.7617],[107.4902,30.6299],[107.0508,30.0146],[106.7871,30.0146],[106.6113,30.3223],[106.2598,30.1904],[105.8203,30.4541],[105.6445,30.2783],[105.5566,30.1025],[105.7324,29.8828],[105.293,29.5313],[105.4688,29.3115],[105.7324,29.2676],[105.8203,28.96],[106.2598,28.8721],[106.3477,28.5205],[105.9961,28.7402],[105.6445,28.4326],[105.9082,28.125],[106.1719,28.125],[106.3477,27.8174],[105.6445,27.6416],[105.5566,27.7734],[105.293,27.7295],[105.2051,27.9932],[105.0293,28.0811],[104.8535,27.9053],[104.4141,27.9492],[104.3262,28.0371],[104.4141,28.125],[104.4141,28.2568],[104.2383,28.4326],[104.4141,28.6084],[103.8867,28.6523],[103.7988,28.3008],[103.4473,28.125],[103.4473,27.7734],[102.9199,27.29],[103.0078,26.3672],[102.6563,26.1914],[102.5684,26.3672],[102.1289,26.1035],[101.8652,26.0596],[101.6016,26.2354],[101.6895,26.3672],[101.4258,26.5869],[101.4258,26.8066],[101.4258,26.7188],[101.1621,27.0264],[101.1621,27.1582],[100.7227,27.8613],[100.3711,27.8174],[100.2832,27.7295],[100.0195,28.125],[100.1953,28.3447],[99.668,28.8281],[99.4043,28.5205],[99.4043,28.1689],[99.2285,28.3008],[99.1406,29.2676],[98.9648,30.7617],[98.6133,31.2012],[98.877,31.4209],[98.4375,31.8604],[98.1738,32.3438],[97.7344,32.5195],[97.4707,32.6953],[97.3828,32.8711],[97.7344,33.3984],[97.4707,33.5742],[97.3828,33.8818],[97.7344,33.9258],[97.6465,34.1016],[97.8223,34.1895],[98.4375,34.0576],[98.877,33.1787],[99.2285,33.0469],[99.2285,32.915],[99.7559,32.7393],[99.8438,33.0029],[100.1074,32.8711],[100.1074,32.6514],[100.3711,32.7393],[100.7227,32.5195],[100.7227,32.6514],[101.25,32.6953],[101.1621,33.2227],[101.6016,33.1348],[101.7773,33.2227],[101.6895,33.3105],[101.7773,33.5303]]]}},{"type":"Feature","properties":{"id":"23","size":"700","name":"黑龙江省","cp":[126.1445,48.7156],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[121.4648,53.3496],[123.6621,53.5693],[124.8926,53.0859],[125.0684,53.2178],[125.5957,53.0859],[125.6836,52.9102],[126.123,52.7783],[126.0352,52.6025],[126.2109,52.5146],[126.3867,52.2949],[126.3867,52.207],[126.5625,52.1631],[126.4746,51.9434],[126.9141,51.3721],[126.8262,51.2842],[127.002,51.3281],[126.9141,51.1084],[127.2656,50.7568],[127.3535,50.2734],[127.6172,50.2295],[127.5293,49.8779],[127.793,49.6143],[128.7598,49.5703],[129.1113,49.3506],[129.4629,49.4385],[130.2539,48.8672],[130.6934,48.8672],[130.5176,48.6475],[130.8691,48.2959],[130.6934,48.1201],[131.0449,47.6807],[132.5391,47.7246],[132.627,47.9443],[133.0664,48.1201],[133.5059,48.1201],[134.209,48.3838],[135.0879,48.4277],[134.7363,48.252],[134.5605,47.9883],[134.7363,47.6807],[134.5605,47.4609],[134.3848,47.4609],[134.209,47.2852],[134.209,47.1533],[133.8574,46.5381],[133.9453,46.2744],[133.5059,45.835],[133.418,45.5713],[133.2422,45.5273],[133.0664,45.1318],[132.8906,45.0439],[131.9238,45.3516],[131.5723,45.0439],[131.0449,44.8682],[131.3086,44.0771],[131.2207,43.7256],[131.3086,43.4619],[130.8691,43.418],[130.5176,43.6377],[130.3418,43.9893],[129.9902,43.8574],[129.9023,44.0332],[129.8145,43.9014],[129.2871,43.8135],[129.1992,43.5938],[128.8477,43.5498],[128.4961,44.165],[128.4082,44.4727],[128.0566,44.3408],[128.0566,44.1211],[127.7051,44.1211],[127.5293,44.6045],[127.0898,44.6045],[127.002,44.7803],[127.0898,45],[126.9141,45.1318],[126.5625,45.2637],[126.0352,45.1758],[125.7715,45.3076],[125.6836,45.5273],[125.0684,45.3955],[124.8926,45.5273],[124.3652,45.4395],[124.0137,45.7471],[123.9258,46.2305],[123.2227,46.2305],[123.0469,46.582],[123.5742,46.6699],[123.5742,46.8896],[123.5742,46.8457],[123.4863,46.9775],[123.3984,46.9775],[123.3984,46.8896],[123.0469,46.7139],[122.4316,47.373],[124.2773,48.5156],[124.4531,48.1201],[124.8047,49.1309],[125.2441,49.1748],[125.1563,49.834],[125.332,50.1416],[125.7715,50.5371],[125.7715,50.7568],[126.0352,51.0205],[125.332,51.6357],[125.0684,51.6357],[124.8926,51.3721],[124.541,51.3721],[124.3652,51.2842],[123.6621,51.3721],[123.3105,51.2402],[122.959,51.3281],[122.6074,52.0752],[122.6953,52.251],[122.168,52.5146],[121.9922,52.2949],[121.7285,52.2949],[121.6406,52.4268],[121.2012,52.5586],[121.8164,53.042],[121.4648,53.3496]]]}},{"type":"Feature","properties":{"id":"62","size":"690","name":"甘肃省","cp":[99.7129,38.166],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7148],[97.207,42.8027],[97.8223,41.748],[97.8223,41.6162],[97.4707,41.4844],[98.3496,40.9131],[98.3496,40.5615],[98.6133,40.6494],[98.5254,40.7373],[98.7891,40.6055],[98.9648,40.7813],[99.0527,40.6934],[99.2285,40.8691],[99.9316,41.001],[100.1953,40.6494],[100.1074,40.2539],[99.4922,39.8584],[100.0195,39.7705],[100.5469,39.4189],[100.8105,39.4189],[100.9863,38.9355],[101.25,39.0234],[101.3379,38.7598],[101.7773,38.6719],[102.041,38.8916],[101.8652,39.1113],[102.4805,39.2432],[103.0078,39.1113],[103.3594,39.3311],[104.0625,39.4189],[104.2383,38.9795],[103.4473,38.3643],[103.5352,38.1445],[103.3594,38.0127],[103.4473,37.8369],[104.3262,37.4414],[104.5898,37.4414],[104.5898,37.2217],[104.8535,37.2217],[105.293,36.8262],[105.2051,36.6943],[105.4688,36.123],[105.293,35.9912],[105.3809,35.7715],[105.7324,35.7275],[105.8203,35.5518],[105.9961,35.4639],[105.9082,35.4199],[105.9961,35.4199],[106.084,35.376],[106.2598,35.4199],[106.3477,35.2441],[106.5234,35.332],[106.4355,35.6836],[106.6992,35.6836],[106.9629,35.8154],[106.875,36.123],[106.5234,36.2549],[106.5234,36.4746],[106.4355,36.5625],[106.6113,36.7822],[106.6113,37.0898],[107.3145,37.0898],[107.3145,36.9141],[108.7207,36.3428],[108.6328,35.9912],[108.5449,35.8594],[108.6328,35.5518],[108.5449,35.2881],[107.7539,35.2881],[107.7539,35.1123],[107.8418,35.0244],[107.666,34.9365],[107.2266,34.8926],[106.9629,35.0684],[106.6113,35.0684],[106.5234,34.7607],[106.3477,34.585],[106.6992,34.3213],[106.5234,34.2773],[106.6113,34.1455],[106.4355,33.9258],[106.5234,33.5303],[105.9961,33.6182],[105.7324,33.3984],[105.9961,33.1787],[105.9082,33.0029],[105.4688,32.915],[105.3809,32.8711],[105.3809,32.7393],[105.2051,32.6074],[104.4141,32.7393],[104.3262,32.8711],[104.4141,33.0469],[104.3262,33.2227],[104.4141,33.3105],[104.2383,33.3984],[104.1504,33.6182],[103.1836,33.7939],[103.0957,34.1895],[102.9199,34.3213],[102.2168,33.9258],[102.4805,33.4424],[101.8652,33.0908],[101.9531,33.4424],[101.8652,33.5742],[101.7773,33.5303],[101.6016,33.5303],[101.5137,33.7061],[101.25,33.6621],[100.8105,34.2773],[100.9863,34.3652],[101.6895,34.1016],[102.1289,34.2773],[102.2168,34.4092],[101.9531,34.6289],[101.9531,34.8486],[102.3926,35.2002],[102.3047,35.4199],[102.4805,35.5957],[102.832,35.5957],[102.6563,35.7715],[102.9199,35.9033],[102.9199,36.0791],[103.0078,36.2549],[102.832,36.3428],[102.5684,36.7383],[102.6563,36.8262],[102.4805,36.958],[102.5684,37.1777],[102.1289,37.4414],[101.9531,37.7051],[101.7773,37.6172],[101.5137,37.8809],[101.1621,37.8369],[100.7227,38.2324],[100.459,38.2764],[100.1074,38.4961],[100.0195,38.4521],[100.1953,38.2764],[99.8438,38.3643],[99.1406,38.9355],[98.7891,39.0674],[98.6133,38.9355],[98.3496,39.0234],[98.1738,38.8037],[97.0313,39.1992],[97.1191,38.584],[96.6797,38.4521],[96.6797,38.1885],[96.416,38.2324],[96.2402,38.1006],[95.7129,38.3643],[95.4492,38.2764],[95.0098,38.4082],[94.5703,38.3643],[94.3066,38.7598],[93.8672,38.7158],[93.6914,38.9355],[93.1641,38.9795],[93.1641,39.1992],[92.373,39.1113],[92.373,39.3311],[92.6367,39.6387],[93.0762,40.6494],[93.8672,40.6934],[94.043,41.0889],[94.5703,41.4844],[95.1855,41.792],[95.2734,41.6162],[95.9766,41.9238],[96.2402,42.2314],[96.0645,42.3193],[95.9766,42.4951],[96.416,42.7148]]]}},{"type":"Feature","properties":{"id":"53","size":"1200","name":"云南省","cp":[101.0652,25.1807],"childNum":16},"geometry":{"type":"Polygon","coordinates":[[[98.1738,28.125],[98.2617,28.3887],[98.3496,28.125],[98.7012,28.2129],[98.7891,28.3447],[98.6133,28.5205],[98.7012,28.916],[98.7891,29.0039],[98.7891,28.8721],[98.9648,28.8281],[98.9648,29.1357],[99.1406,29.2676],[99.2285,28.3008],[99.4043,28.1689],[99.4043,28.5205],[99.668,28.8281],[100.1953,28.3447],[100.0195,28.125],[100.2832,27.7295],[100.3711,27.8174],[100.7227,27.8613],[101.1621,27.1582],[101.1621,27.0264],[101.4258,26.7188],[101.4258,26.8066],[101.4258,26.5869],[101.6895,26.3672],[101.6016,26.2354],[101.8652,26.0596],[102.1289,26.1035],[102.5684,26.3672],[102.6563,26.1914],[103.0078,26.3672],[102.9199,27.29],[103.4473,27.7734],[103.4473,28.125],[103.7988,28.3008],[103.8867,28.6523],[104.4141,28.6084],[104.2383,28.4326],[104.4141,28.2568],[104.4141,28.125],[104.3262,28.0371],[104.4141,27.9492],[104.8535,27.9053],[105.0293,28.0811],[105.2051,27.9932],[105.293,27.7295],[105.2051,27.3779],[104.5898,27.334],[104.4141,27.4658],[104.1504,27.2461],[103.8867,27.4219],[103.623,27.0264],[103.7109,26.9824],[103.7109,26.7627],[103.8867,26.543],[104.4141,26.6748],[104.6777,26.4111],[104.3262,25.708],[104.8535,25.2246],[104.5898,25.0488],[104.6777,24.9609],[104.502,24.7412],[104.6777,24.3457],[104.7656,24.4775],[105.0293,24.4336],[105.2051,24.082],[105.4688,24.0381],[105.5566,24.126],[105.9961,24.126],[106.1719,23.8184],[106.1719,23.5547],[105.6445,23.4229],[105.5566,23.2031],[105.293,23.3789],[104.8535,23.1592],[104.7656,22.8516],[104.3262,22.6758],[104.1504,22.8076],[103.9746,22.5439],[103.623,22.7637],[103.5352,22.5879],[103.3594,22.8076],[103.0957,22.4561],[102.4805,22.7637],[102.3047,22.4121],[101.8652,22.3682],[101.7773,22.5],[101.6016,22.1924],[101.8652,21.6211],[101.7773,21.1377],[101.6016,21.2256],[101.25,21.1816],[101.1621,21.7529],[100.6348,21.4453],[100.1074,21.4893],[99.9316,22.0605],[99.2285,22.1484],[99.4043,22.5879],[99.3164,22.7197],[99.4922,23.0713],[98.877,23.2031],[98.7012,23.9502],[98.877,24.126],[98.1738,24.082],[97.7344,23.8623],[97.5586,23.9063],[97.7344,24.126],[97.6465,24.4336],[97.5586,24.4336],[97.5586,24.7412],[97.7344,24.8291],[97.8223,25.2686],[98.1738,25.4004],[98.1738,25.6201],[98.3496,25.5762],[98.5254,25.8398],[98.7012,25.8838],[98.6133,26.0596],[98.7012,26.1475],[98.7891,26.5869],[98.7012,27.5098],[98.5254,27.6416],[98.3496,27.5098],[98.1738,28.125]]]}},{"type":"Feature","properties":{"id":"45","size":"1450","name":"广西壮族自治区","cp":[107.7813,23.6426],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[104.502,24.7412],[104.6777,24.6094],[105.2051,24.9609],[105.9961,24.6533],[106.1719,24.7852],[106.1719,24.9609],[106.875,25.1807],[107.0508,25.2686],[106.9629,25.4883],[107.2266,25.6201],[107.4902,25.2246],[107.7539,25.2246],[107.8418,25.1367],[108.1055,25.2246],[108.1934,25.4443],[108.3691,25.5322],[108.6328,25.3125],[108.6328,25.5762],[109.0723,25.5322],[108.9844,25.752],[109.3359,25.708],[109.5117,26.0156],[109.7754,25.8838],[109.9512,26.1914],[110.2148,25.9717],[110.5664,26.3232],[111.1816,26.3232],[111.2695,26.2354],[111.2695,25.8838],[111.4453,25.8398],[111.0059,25.0049],[111.0938,24.9609],[111.3574,25.1367],[111.5332,24.6533],[111.709,24.7852],[112.0605,24.7412],[111.8848,24.6533],[112.0605,24.3457],[111.8848,24.2139],[111.8848,23.9941],[111.7969,23.8184],[111.6211,23.8184],[111.6211,23.6865],[111.3574,23.4668],[111.4453,23.0273],[111.2695,22.8076],[110.7422,22.5439],[110.7422,22.2803],[110.6543,22.1484],[110.3027,22.1484],[110.3027,21.8848],[109.9512,21.8408],[109.8633,21.665],[109.7754,21.6211],[109.7754,21.4014],[109.5996,21.4453],[109.1602,21.3574],[109.248,20.874],[109.0723,20.9619],[109.0723,21.5332],[108.7207,21.5332],[108.6328,21.665],[108.2813,21.4893],[107.8418,21.6211],[107.4023,21.6211],[107.0508,21.7969],[107.0508,21.9287],[106.6992,22.0166],[106.6113,22.4121],[106.7871,22.7637],[106.6992,22.8955],[105.9082,22.9395],[105.5566,23.0713],[105.5566,23.2031],[105.6445,23.4229],[106.1719,23.5547],[106.1719,23.8184],[105.9961,24.126],[105.5566,24.126],[105.4688,24.0381],[105.2051,24.082],[105.0293,24.4336],[104.7656,24.4775],[104.6777,24.3457],[104.502,24.7412]]]}},{"type":"Feature","properties":{"id":"43","size":"1700","name":"湖南省","cp":[111.5332,27.3779],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[109.248,28.4766],[109.248,29.1357],[109.5117,29.6191],[109.6875,29.6191],[109.7754,29.751],[110.4785,29.6631],[110.6543,29.751],[110.4785,30.0146],[110.8301,30.1465],[111.7969,29.9268],[112.2363,29.5313],[112.5,29.6191],[112.6758,29.5752],[112.9395,29.7949],[113.0273,29.751],[112.9395,29.4873],[113.0273,29.4434],[113.5547,29.8389],[113.5547,29.707],[113.7305,29.5752],[113.6426,29.3115],[113.7305,29.0918],[113.9063,29.0479],[114.1699,28.8281],[114.082,28.5645],[114.2578,28.3447],[113.7305,27.9492],[113.6426,27.5977],[113.6426,27.3779],[113.8184,27.29],[113.7305,27.1143],[113.9063,26.9385],[113.9063,26.6309],[114.082,26.5869],[113.9941,26.1914],[114.2578,26.1475],[113.9941,26.0596],[113.9063,25.4443],[113.6426,25.3125],[113.2031,25.5322],[112.8516,25.3564],[113.0273,25.2246],[113.0273,24.9609],[112.8516,24.917],[112.5879,25.1367],[112.2363,25.1807],[112.1484,24.873],[112.0605,24.7412],[111.709,24.7852],[111.5332,24.6533],[111.3574,25.1367],[111.0938,24.9609],[111.0059,25.0049],[111.4453,25.8398],[111.2695,25.8838],[111.2695,26.2354],[111.1816,26.3232],[110.5664,26.3232],[110.2148,25.9717],[109.9512,26.1914],[109.7754,25.8838],[109.5117,26.0156],[109.4238,26.2793],[109.248,26.3232],[109.4238,26.5869],[109.3359,26.7188],[109.5117,26.8066],[109.5117,27.0264],[109.3359,27.1582],[108.8965,27.0264],[108.8086,27.1143],[109.4238,27.5977],[109.3359,27.9053],[109.3359,28.2568],[109.248,28.4766]]]}},{"type":"Feature","properties":{"id":"61","size":"1150","name":"陕西省","cp":[109.5996,35.7396],"childNum":10},"geometry":{"type":"Polygon","coordinates":[[[105.4688,32.915],[105.9082,33.0029],[105.9961,33.1787],[105.7324,33.3984],[105.9961,33.6182],[106.5234,33.5303],[106.4355,33.9258],[106.6113,34.1455],[106.5234,34.2773],[106.6992,34.3213],[106.3477,34.585],[106.5234,34.7607],[106.6113,35.0684],[106.9629,35.0684],[107.2266,34.8926],[107.666,34.9365],[107.8418,35.0244],[107.7539,35.1123],[107.7539,35.2881],[108.5449,35.2881],[108.6328,35.5518],[108.5449,35.8594],[108.6328,35.9912],[108.7207,36.3428],[107.3145,36.9141],[107.3145,37.0898],[107.3145,37.6172],[107.666,37.8809],[108.1934,37.6172],[108.7207,37.7051],[108.8086,38.0127],[108.8965,37.9688],[109.0723,38.0127],[108.9844,38.3203],[109.9512,39.1553],[109.8633,39.2432],[110.2148,39.2871],[110.127,39.4629],[110.6543,39.2871],[111.0938,39.5947],[111.0938,39.375],[111.1816,39.2432],[110.918,38.7158],[110.8301,38.4961],[110.4785,38.1885],[110.4785,37.9688],[110.8301,37.6611],[110.3906,37.002],[110.4785,36.123],[110.5664,35.6396],[110.2148,34.8926],[110.2148,34.6729],[110.3906,34.585],[110.4785,34.2334],[110.6543,34.1455],[110.6543,33.8379],[111.0059,33.5303],[111.0059,33.2666],[110.7422,33.1348],[110.5664,33.2666],[110.3027,33.1787],[109.5996,33.2666],[109.4238,33.1348],[109.7754,33.0469],[109.7754,32.915],[110.127,32.7393],[110.127,32.6074],[109.6875,32.6074],[109.5117,32.4316],[109.5996,31.7285],[109.248,31.7285],[109.0723,31.9482],[108.5449,32.2119],[108.2813,32.2559],[108.0176,32.168],[107.4023,32.5195],[107.2266,32.4316],[107.1387,32.4756],[107.0508,32.6953],[106.3477,32.6514],[106.084,32.7393],[106.084,32.8711],[105.5566,32.7393],[105.4688,32.915]]]}},{"type":"Feature","properties":{"id":"44","size":"1600","name":"广东省","cp":[113.4668,22.8076],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[109.7754,21.4014],[109.7754,21.6211],[109.8633,21.665],[109.9512,21.8408],[110.3027,21.8848],[110.3027,22.1484],[110.6543,22.1484],[110.7422,22.2803],[110.7422,22.5439],[111.2695,22.8076],[111.4453,23.0273],[111.3574,23.4668],[111.6211,23.6865],[111.6211,23.8184],[111.7969,23.8184],[111.8848,23.9941],[111.8848,24.2139],[112.0605,24.3457],[111.8848,24.6533],[112.0605,24.7412],[112.1484,24.873],[112.2363,25.1807],[112.5879,25.1367],[112.8516,24.917],[113.0273,24.9609],[113.0273,25.2246],[112.8516,25.3564],[113.2031,25.5322],[113.6426,25.3125],[113.9063,25.4443],[113.9941,25.2686],[114.6094,25.4004],[114.7852,25.2686],[114.6973,25.1367],[114.4336,24.9609],[114.1699,24.6973],[114.4336,24.5215],[115.4004,24.7852],[115.8398,24.5654],[115.752,24.7852],[115.9277,24.917],[116.2793,24.7852],[116.3672,24.873],[116.543,24.6094],[116.7188,24.6533],[116.9824,24.1699],[116.9824,23.9063],[117.1582,23.5547],[117.334,23.2471],[116.8945,23.3789],[116.6309,23.1152],[116.543,22.8516],[115.9277,22.7197],[115.6641,22.7637],[115.5762,22.6318],[115.0488,22.6758],[114.6094,22.3682],[114.3457,22.5439],[113.9941,22.5],[113.8184,22.1924],[114.3457,22.1484],[114.4336,22.0166],[114.082,21.9287],[113.9941,21.7969],[113.5547,22.0166],[113.1152,21.8408],[112.9395,21.5771],[112.4121,21.4453],[112.2363,21.5332],[111.5332,21.4893],[111.2695,21.3574],[110.7422,21.3574],[110.6543,21.2256],[110.7422,20.918],[110.4785,20.874],[110.6543,20.2588],[110.5664,20.2588],[110.3906,20.127],[110.0391,20.127],[109.8633,20.127],[109.8633,20.3027],[109.5996,20.918],[109.7754,21.4014],[109.7754,21.4014]],[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}},{"type":"Feature","properties":{"id":"22","size":"1120","name":"吉林省","cp":[125.7746,43.5938],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[123.2227,46.2305],[123.9258,46.2305],[124.0137,45.7471],[124.3652,45.4395],[124.8926,45.5273],[125.0684,45.3955],[125.6836,45.5273],[125.7715,45.3076],[126.0352,45.1758],[126.5625,45.2637],[126.9141,45.1318],[127.0898,45],[127.002,44.7803],[127.0898,44.6045],[127.5293,44.6045],[127.7051,44.1211],[128.0566,44.1211],[128.0566,44.3408],[128.4082,44.4727],[128.4961,44.165],[128.8477,43.5498],[129.1992,43.5938],[129.2871,43.8135],[129.8145,43.9014],[129.9023,44.0332],[129.9902,43.8574],[130.3418,43.9893],[130.5176,43.6377],[130.8691,43.418],[131.3086,43.4619],[131.3086,43.3301],[131.1328,42.9346],[130.4297,42.7148],[130.6055,42.6709],[130.6055,42.4512],[130.2539,42.7588],[130.2539,42.8906],[130.166,42.9785],[129.9023,43.0225],[129.7266,42.4951],[129.375,42.4512],[128.9355,42.0117],[128.0566,42.0117],[128.3203,41.5723],[128.1445,41.3525],[127.0898,41.5283],[127.1777,41.5723],[126.9141,41.792],[126.6504,41.6602],[126.4746,41.3965],[126.123,40.957],[125.6836,40.8691],[125.5957,40.9131],[125.7715,41.2207],[125.332,41.6602],[125.332,41.9678],[125.4199,42.0996],[125.332,42.1436],[124.8926,42.8027],[124.8926,43.0664],[124.7168,43.0664],[124.4531,42.8467],[124.2773,43.2422],[123.8379,43.4619],[123.6621,43.374],[123.3105,43.5059],[123.4863,43.7256],[123.1348,44.4727],[122.3438,44.2529],[122.0801,44.8682],[122.2559,45.2637],[121.9043,45.7031],[121.7285,45.7471],[121.8164,46.0107],[122.2559,45.791],[122.4316,45.8789],[122.6953,45.7031],[122.7832,46.0107],[123.2227,46.2305]]]}},{"type":"Feature","properties":{"id":"13","size":"1300","name":"河北省","cp":[115.4004,39.4688],"childNum":11},"geometry":{"type":"MultiPolygon","coordinates":[[[[114.5215,39.5068],[114.3457,39.8584],[113.9941,39.9902],[114.5215,40.3418],[114.3457,40.3857],[114.2578,40.6055],[114.082,40.7373],[113.9063,41.1328],[113.9941,41.2207],[113.9063,41.4404],[114.2578,41.5723],[114.1699,41.792],[114.5215,42.1436],[114.873,42.0996],[114.9609,41.6162],[115.2246,41.5723],[115.9277,41.9238],[116.0156,41.792],[116.2793,42.0117],[116.8066,42.0117],[116.8945,42.4072],[117.334,42.4512],[117.5098,42.583],[117.7734,42.627],[118.0371,42.4072],[117.9492,42.2314],[118.125,42.0557],[118.3008,42.0996],[118.3008,41.792],[118.125,41.748],[118.3887,41.3086],[119.2676,41.3086],[118.8281,40.8252],[119.2676,40.5176],[119.5313,40.5615],[119.707,40.1221],[119.8828,39.9463],[119.5313,39.6826],[119.4434,39.4189],[118.916,39.0674],[118.4766,38.9355],[118.125,39.0234],[118.0371,39.1992],[118.0371,39.2432],[117.8613,39.4189],[117.9492,39.5947],[117.6855,39.5947],[117.5098,39.7705],[117.5098,39.9902],[117.6855,39.9902],[117.6855,40.0781],[117.4219,40.21],[117.2461,40.5176],[117.4219,40.6494],[116.9824,40.6934],[116.6309,41.0449],[116.3672,40.9131],[116.4551,40.7813],[116.1914,40.7813],[116.1035,40.6055],[115.752,40.5615],[115.9277,40.2539],[115.4004,39.9463],[115.4883,39.6387],[115.752,39.5068],[116.1914,39.5947],[116.3672,39.4629],[116.543,39.5947],[116.8066,39.5947],[116.8945,39.1113],[116.7188,38.9355],[116.7188,38.8037],[117.2461,38.54],[117.5977,38.6279],[117.9492,38.3203],[117.4219,37.8369],[116.8066,37.8369],[116.4551,37.4854],[116.2793,37.5732],[116.2793,37.3535],[116.0156,37.3535],[115.752,36.9141],[115.3125,36.5186],[115.4883,36.167],[115.3125,36.0791],[115.1367,36.2109],[114.9609,36.0791],[114.873,36.123],[113.7305,36.3428],[113.4668,36.6504],[113.7305,36.8701],[113.7305,37.1338],[114.1699,37.6611],[113.9941,37.7051],[113.8184,38.1445],[113.5547,38.2764],[113.5547,38.54],[113.8184,38.8037],[113.8184,38.9355],[113.9063,39.0234],[114.3457,39.0674],[114.5215,39.5068]]],[[[117.2461,40.0781],[117.1582,39.8145],[117.1582,39.6387],[116.8945,39.6826],[116.8945,39.8145],[116.8066,39.9902],[117.2461,40.0781]]]]}},{"type":"Feature","properties":{"id":"42","size":"1500","name":"湖北省","cp":[112.2363,31.1572],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.2148,31.1572],[110.127,31.377],[109.6875,31.5527],[109.7754,31.6846],[109.5996,31.7285],[109.5117,32.4316],[109.6875,32.6074],[110.127,32.6074],[110.127,32.7393],[109.7754,32.915],[109.7754,33.0469],[109.4238,33.1348],[109.5996,33.2666],[110.3027,33.1787],[110.5664,33.2666],[110.7422,33.1348],[111.0059,33.2666],[111.5332,32.6074],[112.3242,32.3438],[113.2031,32.4316],[113.4668,32.2998],[113.7305,32.4316],[113.8184,31.8604],[113.9941,31.7725],[114.1699,31.8604],[114.5215,31.7725],[114.6094,31.5527],[114.7852,31.4648],[115.1367,31.5967],[115.2246,31.4209],[115.4004,31.4209],[115.5762,31.2012],[116.0156,31.0254],[115.752,30.6738],[116.1035,30.1904],[116.1035,29.8389],[115.9277,29.707],[115.4883,29.7949],[114.873,29.3994],[114.2578,29.3555],[113.9063,29.0479],[113.7305,29.0918],[113.6426,29.3115],[113.7305,29.5752],[113.5547,29.707],[113.5547,29.8389],[113.0273,29.4434],[112.9395,29.4873],[113.0273,29.751],[112.9395,29.7949],[112.6758,29.5752],[112.5,29.6191],[112.2363,29.5313],[111.7969,29.9268],[110.8301,30.1465],[110.4785,30.0146],[110.6543,29.751],[110.4785,29.6631],[109.7754,29.751],[109.6875,29.6191],[109.5117,29.6191],[109.248,29.1357],[109.0723,29.3555],[108.9844,29.3115],[108.6328,29.8389],[108.457,29.7949],[108.5449,30.2344],[108.457,30.4102],[108.6328,30.5859],[108.8086,30.498],[109.0723,30.6299],[109.1602,30.542],[109.248,30.6299],[109.4238,30.542],[109.8633,30.8936],[110.0391,30.8057],[110.2148,31.1572]]]}},{"type":"Feature","properties":{"id":"52","size":"2000","name":"贵州省","cp":[106.6113,26.9385],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[104.1504,27.2461],[104.4141,27.4658],[104.5898,27.334],[105.2051,27.3779],[105.293,27.7295],[105.5566,27.7734],[105.6445,27.6416],[106.3477,27.8174],[106.1719,28.125],[105.9082,28.125],[105.6445,28.4326],[105.9961,28.7402],[106.3477,28.5205],[106.5234,28.5645],[106.4355,28.7842],[106.5234,28.7842],[106.6113,28.6523],[106.6113,28.5205],[106.6992,28.4766],[106.875,28.7842],[107.4023,28.8721],[107.4023,29.1797],[107.5781,29.2236],[107.8418,29.1357],[107.8418,29.0039],[108.2813,29.0918],[108.3691,28.6523],[108.5449,28.6523],[108.5449,28.3887],[108.7207,28.4766],[108.7207,28.2129],[109.0723,28.2129],[109.248,28.4766],[109.3359,28.2568],[109.3359,27.9053],[109.4238,27.5977],[108.8086,27.1143],[108.8965,27.0264],[109.3359,27.1582],[109.5117,27.0264],[109.5117,26.8066],[109.3359,26.7188],[109.4238,26.5869],[109.248,26.3232],[109.4238,26.2793],[109.5117,26.0156],[109.3359,25.708],[108.9844,25.752],[109.0723,25.5322],[108.6328,25.5762],[108.6328,25.3125],[108.3691,25.5322],[108.1934,25.4443],[108.1055,25.2246],[107.8418,25.1367],[107.7539,25.2246],[107.4902,25.2246],[107.2266,25.6201],[106.9629,25.4883],[107.0508,25.2686],[106.875,25.1807],[106.1719,24.9609],[106.1719,24.7852],[105.9961,24.6533],[105.2051,24.9609],[104.6777,24.6094],[104.502,24.7412],[104.6777,24.9609],[104.5898,25.0488],[104.8535,25.2246],[104.3262,25.708],[104.6777,26.4111],[104.4141,26.6748],[103.8867,26.543],[103.7109,26.7627],[103.7109,26.9824],[103.623,27.0264],[103.8867,27.4219],[104.1504,27.2461]]]}},{"type":"Feature","properties":{"id":"37","size":"1500","name":"山东省","cp":[118.7402,36.4307],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[115.4883,36.167],[115.3125,36.5186],[115.752,36.9141],[116.0156,37.3535],[116.2793,37.3535],[116.2793,37.5732],[116.4551,37.4854],[116.8066,37.8369],[117.4219,37.8369],[117.9492,38.3203],[118.125,38.1445],[118.916,38.1445],[119.3555,37.6611],[119.0039,37.5293],[119.0039,37.3535],[119.3555,37.1338],[119.707,37.1338],[119.8828,37.3975],[120.498,37.8369],[120.5859,38.1445],[120.9375,38.4521],[121.0254,37.8369],[121.2012,37.6611],[121.9043,37.4854],[122.168,37.6172],[122.2559,37.4854],[122.6074,37.4854],[122.6953,37.3535],[122.6074,36.9141],[122.4316,36.7822],[121.8164,36.8701],[121.7285,36.6943],[121.1133,36.6064],[121.1133,36.4307],[121.377,36.2549],[120.7617,36.167],[120.9375,35.8594],[120.6738,36.0352],[119.707,35.4639],[119.9707,34.9805],[119.3555,35.0244],[119.2676,35.1123],[118.916,35.0244],[118.7402,34.7168],[118.4766,34.6729],[118.3887,34.4092],[118.2129,34.4092],[118.125,34.6289],[117.9492,34.6729],[117.5977,34.4531],[117.334,34.585],[117.2461,34.4531],[116.8066,34.9365],[116.4551,34.8926],[116.3672,34.6289],[116.1914,34.585],[115.5762,34.585],[115.4004,34.8486],[114.7852,35.0684],[115.0488,35.376],[115.2246,35.4199],[115.4883,35.7275],[116.1035,36.0791],[115.3125,35.8154],[115.4883,36.167]]]}},{"type":"Feature","properties":{"id":"36","size":"1700","name":"江西省","cp":[116.0156,27.29],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[114.2578,28.3447],[114.082,28.5645],[114.1699,28.8281],[113.9063,29.0479],[114.2578,29.3555],[114.873,29.3994],[115.4883,29.7949],[115.9277,29.707],[116.1035,29.8389],[116.2793,29.7949],[116.7188,30.0586],[116.8945,29.9268],[116.7188,29.751],[116.7188,29.6191],[117.1582,29.707],[117.0703,29.8389],[117.1582,29.9268],[117.5098,29.6191],[118.0371,29.5752],[118.2129,29.3994],[118.0371,29.1797],[118.0371,29.0479],[118.3887,28.7842],[118.4766,28.3447],[118.4766,28.3008],[118.3008,28.0811],[117.7734,27.8174],[117.5098,27.9932],[116.9824,27.6416],[117.1582,27.29],[117.0703,27.1143],[116.543,26.8066],[116.6309,26.4551],[116.3672,26.2354],[116.4551,26.1035],[116.1914,25.8838],[116.0156,25.2686],[115.8398,25.2246],[115.9277,24.917],[115.752,24.7852],[115.8398,24.5654],[115.4004,24.7852],[114.4336,24.5215],[114.1699,24.6973],[114.4336,24.9609],[114.6973,25.1367],[114.7852,25.2686],[114.6094,25.4004],[113.9941,25.2686],[113.9063,25.4443],[113.9941,26.0596],[114.2578,26.1475],[113.9941,26.1914],[114.082,26.5869],[113.9063,26.6309],[113.9063,26.9385],[113.7305,27.1143],[113.8184,27.29],[113.6426,27.3779],[113.6426,27.5977],[113.7305,27.9492],[114.2578,28.3447]]]}},{"type":"Feature","properties":{"id":"41","size":"1700","name":"河南省","cp":[113.0668,33.8818],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.3906,34.585],[110.8301,34.6289],[111.1816,34.8047],[111.5332,34.8486],[111.7969,35.0684],[112.0605,35.0684],[112.0605,35.2881],[112.7637,35.2002],[113.1152,35.332],[113.6426,35.6836],[113.7305,36.3428],[114.873,36.123],[114.9609,36.0791],[115.1367,36.2109],[115.3125,36.0791],[115.4883,36.167],[115.3125,35.8154],[116.1035,36.0791],[115.4883,35.7275],[115.2246,35.4199],[115.0488,35.376],[114.7852,35.0684],[115.4004,34.8486],[115.5762,34.585],[116.1914,34.585],[116.1914,34.4092],[116.543,34.2773],[116.6309,33.9258],[116.1914,33.7061],[116.0156,33.9697],[115.6641,34.0576],[115.5762,33.9258],[115.5762,33.6621],[115.4004,33.5303],[115.3125,33.1787],[114.873,33.1348],[114.873,33.0029],[115.1367,32.8711],[115.2246,32.6074],[115.5762,32.4316],[115.8398,32.5195],[115.9277,31.7725],[115.4883,31.6846],[115.4004,31.4209],[115.2246,31.4209],[115.1367,31.5967],[114.7852,31.4648],[114.6094,31.5527],[114.5215,31.7725],[114.1699,31.8604],[113.9941,31.7725],[113.8184,31.8604],[113.7305,32.4316],[113.4668,32.2998],[113.2031,32.4316],[112.3242,32.3438],[111.5332,32.6074],[111.0059,33.2666],[111.0059,33.5303],[110.6543,33.8379],[110.6543,34.1455],[110.4785,34.2334],[110.3906,34.585]]]}},{"type":"Feature","properties":{"id":"21","size":"1500","name":"辽宁省","cp":[122.0438,41.0889],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[119.2676,41.3086],[119.4434,41.6162],[119.2676,41.7041],[119.3555,42.2754],[119.5313,42.3633],[119.8828,42.1875],[120.1465,41.7041],[120.498,42.0996],[121.4648,42.4951],[121.7285,42.4512],[121.9922,42.7148],[122.3438,42.6709],[122.3438,42.8467],[122.7832,42.7148],[123.1348,42.8027],[123.3105,42.9785],[123.5742,43.0225],[123.6621,43.374],[123.8379,43.4619],[124.2773,43.2422],[124.4531,42.8467],[124.7168,43.0664],[124.8926,43.0664],[124.8926,42.8027],[125.332,42.1436],[125.4199,42.0996],[125.332,41.9678],[125.332,41.6602],[125.7715,41.2207],[125.5957,40.9131],[125.6836,40.8691],[124.541,40.21],[124.1016,39.6826],[123.3984,39.6826],[123.1348,39.4189],[123.1348,39.0234],[122.0801,39.0234],[121.5527,38.7158],[121.1133,38.6719],[120.9375,38.9795],[121.377,39.1992],[121.2012,39.5508],[122.0801,40.3857],[121.9922,40.6934],[121.7285,40.8252],[121.2012,40.8252],[120.5859,40.21],[119.8828,39.9463],[119.707,40.1221],[119.5313,40.5615],[119.2676,40.5176],[118.8281,40.8252],[119.2676,41.3086]]]}},{"type":"Feature","properties":{"id":"14","size":"1450","name":"山西省","cp":[112.4121,37.6611],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[110.918,38.7158],[111.1816,39.2432],[111.0938,39.375],[111.3574,39.4189],[111.4453,39.6387],[111.9727,39.5947],[112.3242,40.2539],[112.7637,40.166],[113.2031,40.3857],[113.5547,40.3418],[113.8184,40.5176],[114.082,40.5176],[114.082,40.7373],[114.2578,40.6055],[114.3457,40.3857],[114.5215,40.3418],[113.9941,39.9902],[114.3457,39.8584],[114.5215,39.5068],[114.3457,39.0674],[113.9063,39.0234],[113.8184,38.9355],[113.8184,38.8037],[113.5547,38.54],[113.5547,38.2764],[113.8184,38.1445],[113.9941,37.7051],[114.1699,37.6611],[113.7305,37.1338],[113.7305,36.8701],[113.4668,36.6504],[113.7305,36.3428],[113.6426,35.6836],[113.1152,35.332],[112.7637,35.2002],[112.0605,35.2881],[112.0605,35.0684],[111.7969,35.0684],[111.5332,34.8486],[111.1816,34.8047],[110.8301,34.6289],[110.3906,34.585],[110.2148,34.6729],[110.2148,34.8926],[110.5664,35.6396],[110.4785,36.123],[110.3906,37.002],[110.8301,37.6611],[110.4785,37.9688],[110.4785,38.1885],[110.8301,38.4961],[110.918,38.7158]]]}},{"type":"Feature","properties":{"id":"34","size":"1700","name":"安徽省","cp":[117.2461,32.0361],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[116.6309,33.9258],[116.543,34.2773],[116.1914,34.4092],[116.1914,34.585],[116.3672,34.6289],[116.8945,34.4092],[117.1582,34.0576],[117.5977,34.0137],[117.7734,33.7061],[118.125,33.75],[117.9492,33.2227],[118.0371,33.1348],[118.2129,33.2227],[118.3008,32.7832],[118.7402,32.7393],[118.916,32.959],[119.1797,32.8271],[119.1797,32.4756],[118.5645,32.5635],[118.6523,32.2119],[118.4766,32.168],[118.3887,31.9482],[118.916,31.5527],[118.7402,31.377],[118.8281,31.2451],[119.3555,31.2891],[119.4434,31.1572],[119.6191,31.1133],[119.6191,31.0693],[119.4434,30.6738],[119.2676,30.6299],[119.3555,30.4102],[118.916,30.3223],[118.916,29.9707],[118.7402,29.707],[118.2129,29.3994],[118.0371,29.5752],[117.5098,29.6191],[117.1582,29.9268],[117.0703,29.8389],[117.1582,29.707],[116.7188,29.6191],[116.7188,29.751],[116.8945,29.9268],[116.7188,30.0586],[116.2793,29.7949],[116.1035,29.8389],[116.1035,30.1904],[115.752,30.6738],[116.0156,31.0254],[115.5762,31.2012],[115.4004,31.4209],[115.4883,31.6846],[115.9277,31.7725],[115.8398,32.5195],[115.5762,32.4316],[115.2246,32.6074],[115.1367,32.8711],[114.873,33.0029],[114.873,33.1348],[115.3125,33.1787],[115.4004,33.5303],[115.5762,33.6621],[115.5762,33.9258],[115.6641,34.0576],[116.0156,33.9697],[116.1914,33.7061],[116.6309,33.9258]]]}},{"type":"Feature","properties":{"id":"35","size":"2000","name":"福建省","cp":[118.3008,25.9277],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[118.4766,28.3008],[118.8281,28.2568],[118.7402,28.0371],[118.916,27.4658],[119.2676,27.4219],[119.6191,27.6855],[119.7949,27.29],[120.2344,27.4219],[120.4102,27.1582],[120.7617,27.0264],[120.6738,26.8945],[120.2344,26.8506],[120.2344,26.7188],[120.4102,26.6748],[120.498,26.3672],[120.2344,26.2793],[120.4102,26.1475],[120.0586,26.1914],[119.9707,25.9277],[119.7949,25.9277],[119.9707,25.4004],[119.7949,25.2686],[119.5313,25.1367],[119.4434,25.0049],[119.2676,25.0928],[118.916,24.8291],[118.6523,24.5215],[118.4766,24.5215],[118.4766,24.4336],[118.2129,24.3457],[118.2129,24.1699],[117.8613,23.9941],[117.7734,23.7744],[117.5098,23.5986],[117.1582,23.5547],[116.9824,23.9063],[116.9824,24.1699],[116.7188,24.6533],[116.543,24.6094],[116.3672,24.873],[116.2793,24.7852],[115.9277,24.917],[115.8398,25.2246],[116.0156,25.2686],[116.1914,25.8838],[116.4551,26.1035],[116.3672,26.2354],[116.6309,26.4551],[116.543,26.8066],[117.0703,27.1143],[117.1582,27.29],[116.9824,27.6416],[117.5098,27.9932],[117.7734,27.8174],[118.3008,28.0811],[118.4766,28.3008]]]}},{"type":"Feature","properties":{"id":"33","size":"2100","name":"浙江省","cp":[120.498,29.0918],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[118.2129,29.3994],[118.7402,29.707],[118.916,29.9707],[118.916,30.3223],[119.3555,30.4102],[119.2676,30.6299],[119.4434,30.6738],[119.6191,31.0693],[119.6191,31.1133],[119.9707,31.1572],[120.498,30.8057],[120.9375,31.0254],[121.2891,30.6738],[121.9922,30.8057],[122.6953,30.8936],[122.8711,30.7178],[122.959,30.1465],[122.6074,30.1025],[122.6074,29.9268],[122.168,29.5313],[122.3438,28.8721],[121.9922,28.8721],[121.9922,28.4326],[121.7285,28.3447],[121.7285,28.2129],[121.4648,28.2129],[121.5527,28.0371],[121.2891,27.9492],[121.1133,27.4219],[120.6738,27.334],[120.6738,27.1582],[120.9375,27.0264],[120.7617,27.0264],[120.4102,27.1582],[120.2344,27.4219],[119.7949,27.29],[119.6191,27.6855],[119.2676,27.4219],[118.916,27.4658],[118.7402,28.0371],[118.8281,28.2568],[118.4766,28.3008],[118.4766,28.3447],[118.3887,28.7842],[118.0371,29.0479],[118.0371,29.1797],[118.2129,29.3994]]]}},{"type":"Feature","properties":{"id":"32","size":"1950","name":"江苏省","cp":[118.8586,32.915],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[116.3672,34.6289],[116.4551,34.8926],[116.8066,34.9365],[117.2461,34.4531],[117.334,34.585],[117.5977,34.4531],[117.9492,34.6729],[118.125,34.6289],[118.2129,34.4092],[118.3887,34.4092],[118.4766,34.6729],[118.7402,34.7168],[118.916,35.0244],[119.2676,35.1123],[119.3555,35.0244],[119.3555,34.8486],[119.707,34.585],[120.3223,34.3652],[120.9375,33.0469],[121.0254,32.6514],[121.377,32.4756],[121.4648,32.168],[121.9043,31.9922],[121.9922,31.6846],[121.9922,31.5967],[121.2012,31.8604],[121.1133,31.7285],[121.377,31.5088],[121.2012,31.4648],[120.9375,31.0254],[120.498,30.8057],[119.9707,31.1572],[119.6191,31.1133],[119.4434,31.1572],[119.3555,31.2891],[118.8281,31.2451],[118.7402,31.377],[118.916,31.5527],[118.3887,31.9482],[118.4766,32.168],[118.6523,32.2119],[118.5645,32.5635],[119.1797,32.4756],[119.1797,32.8271],[118.916,32.959],[118.7402,32.7393],[118.3008,32.7832],[118.2129,33.2227],[118.0371,33.1348],[117.9492,33.2227],[118.125,33.75],[117.7734,33.7061],[117.5977,34.0137],[117.1582,34.0576],[116.8945,34.4092],[116.3672,34.6289]]]}},{"type":"Feature","properties":{"id":"50","size":"2380","name":"重庆市","cp":[107.7539,30.1904],"childNum":40},"geometry":{"type":"Polygon","coordinates":[[[108.5449,31.6846],[108.2813,31.9043],[108.3691,32.168],[108.5449,32.2119],[109.0723,31.9482],[109.248,31.7285],[109.5996,31.7285],[109.7754,31.6846],[109.6875,31.5527],[110.127,31.377],[110.2148,31.1572],[110.0391,30.8057],[109.8633,30.8936],[109.4238,30.542],[109.248,30.6299],[109.1602,30.542],[109.0723,30.6299],[108.8086,30.498],[108.6328,30.5859],[108.457,30.4102],[108.5449,30.2344],[108.457,29.7949],[108.6328,29.8389],[108.9844,29.3115],[109.0723,29.3555],[109.248,29.1357],[109.248,28.4766],[109.0723,28.2129],[108.7207,28.2129],[108.7207,28.4766],[108.5449,28.3887],[108.5449,28.6523],[108.3691,28.6523],[108.2813,29.0918],[107.8418,29.0039],[107.8418,29.1357],[107.5781,29.2236],[107.4023,29.1797],[107.4023,28.8721],[106.875,28.7842],[106.6992,28.4766],[106.6113,28.5205],[106.6113,28.6523],[106.5234,28.7842],[106.4355,28.7842],[106.5234,28.5645],[106.3477,28.5205],[106.2598,28.8721],[105.8203,28.96],[105.7324,29.2676],[105.4688,29.3115],[105.293,29.5313],[105.7324,29.8828],[105.5566,30.1025],[105.6445,30.2783],[105.8203,30.4541],[106.2598,30.1904],[106.6113,30.3223],[106.7871,30.0146],[107.0508,30.0146],[107.4902,30.6299],[107.4023,30.7617],[107.4902,30.8496],[107.9297,30.8496],[108.1934,31.5088],[108.5449,31.6846]]]}},{"type":"Feature","properties":{"id":"64","size":"2100","name":"宁夏回族自治区","cp":[105.9961,37.3096],"childNum":5},"geometry":{"type":"Polygon","coordinates":[[[104.3262,37.4414],[105.8203,37.793],[105.9082,38.7158],[106.3477,39.2871],[106.7871,39.375],[106.9629,38.9795],[106.5234,38.3203],[106.7871,38.1885],[107.3145,38.1006],[107.666,37.8809],[107.3145,37.6172],[107.3145,37.0898],[106.6113,37.0898],[106.6113,36.7822],[106.4355,36.5625],[106.5234,36.4746],[106.5234,36.2549],[106.875,36.123],[106.9629,35.8154],[106.6992,35.6836],[106.4355,35.6836],[106.5234,35.332],[106.3477,35.2441],[106.2598,35.4199],[106.084,35.376],[105.9961,35.4199],[106.084,35.4639],[105.9961,35.4639],[105.8203,35.5518],[105.7324,35.7275],[105.3809,35.7715],[105.293,35.9912],[105.4688,36.123],[105.2051,36.6943],[105.293,36.8262],[104.8535,37.2217],[104.5898,37.2217],[104.5898,37.4414],[104.3262,37.4414]]]}},{"type":"Feature","properties":{"id":"46","size":"4500","name":"海南省","cp":[109.9512,19.2041],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[108.6328,19.3799],[109.0723,19.6436],[109.248,19.9512],[109.5996,20.0391],[110.0391,20.127],[110.3906,20.127],[110.5664,20.2588],[110.6543,20.2588],[111.0938,19.9512],[111.2695,19.9951],[110.6543,19.1602],[110.5664,18.6768],[110.2148,18.5889],[110.0391,18.3691],[109.8633,18.3691],[109.6875,18.1055],[108.9844,18.2813],[108.6328,18.457],[108.6328,19.3799]]]}},{"type":"Feature","properties":{"id":"71","size":"3000","name":"台湾省","cp":[120.0254,23.5986],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[121.9043,25.0488],[121.9922,25.0049],[121.8164,24.7412],[121.9043,24.5654],[121.6406,24.0381],[121.377,23.1152],[121.0254,22.6758],[120.8496,22.0605],[120.7617,21.9287],[120.6738,22.3242],[120.2344,22.5879],[120.0586,23.0713],[120.1465,23.6865],[121.0254,25.0488],[121.5527,25.3125],[121.9043,25.0488]]]}},{"type":"Feature","properties":{"id":"11","size":"5000","name":"北京市","cp":[116.4551,40.2539],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[117.4219,40.21],[117.334,40.1221],[117.2461,40.0781],[116.8066,39.9902],[116.8945,39.8145],[116.8945,39.6826],[116.8066,39.5947],[116.543,39.5947],[116.3672,39.4629],[116.1914,39.5947],[115.752,39.5068],[115.4883,39.6387],[115.4004,39.9463],[115.9277,40.2539],[115.752,40.5615],[116.1035,40.6055],[116.1914,40.7813],[116.4551,40.7813],[116.3672,40.9131],[116.6309,41.0449],[116.9824,40.6934],[117.4219,40.6494],[117.2461,40.5176],[117.4219,40.21]]]}},{"type":"Feature","properties":{"id":"12","size":"5000","name":"天津市","cp":[117.4219,39.4189],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[116.8066,39.5947],[116.8945,39.6826],[117.1582,39.6387],[117.1582,39.8145],[117.2461,40.0781],[117.334,40.1221],[117.4219,40.21],[117.6855,40.0781],[117.6855,39.9902],[117.5098,39.9902],[117.5098,39.7705],[117.6855,39.5947],[117.9492,39.5947],[117.8613,39.4189],[118.0371,39.2432],[118.0371,39.1992],[117.8613,39.1113],[117.5977,38.6279],[117.2461,38.54],[116.7188,38.8037],[116.7188,38.9355],[116.8945,39.1113],[116.8066,39.5947]]]}},{"type":"Feature","properties":{"id":"31","size":"7500","name":"上海市","cp":[121.4648,31.2891],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[120.9375,31.0254],[121.2012,31.4648],[121.377,31.5088],[121.1133,31.7285],[121.2012,31.8604],[121.9922,31.5967],[121.9043,31.1572],[121.9922,30.8057],[121.2891,30.6738],[120.9375,31.0254]]]}},{"type":"Feature","properties":{"id":"81","size":"18000","name":"香港特别行政区","cp":[114.1178,22.3242],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[114.6094,22.4121],[114.5215,22.1484],[114.3457,22.1484],[113.9063,22.1484],[113.8184,22.1924],[113.9063,22.4121],[114.1699,22.5439],[114.3457,22.5439],[114.4336,22.5439],[114.4336,22.4121],[114.6094,22.4121]]]}},{"type":"Feature","properties":{"id":"82","size":"27","name":"澳门特别行政区","cp":[111.5547,22.1484],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}}]}');nw.registerMap("china",mu);var mc=d(185),md=d.n(mc);let mh=em().div`
|
|
1247
|
+
`)(console,Math,Date,Array,Object,String,Number,Boolean,n,i,{item:e,sourceId:e.id,arg:a})}catch(e){return console.error("点击事件脚本执行失败:",e),null}}}};var nj=d(190),nT=function(e,t){return(nT=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function nk(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nT(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nI=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nM=new function(){this.browser=new nI,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nM.wxa=!0,nM.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?nM.worker=!0:!nM.hasGlobalWindow||"Deno"in window?(nM.node=!0,nM.svgSupported=!0):(e=navigator.userAgent,n=(t=nM).browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e),i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported="u">typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="u">typeof document,s=document.documentElement.style,t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9);var nD="12px sans-serif",nO=function(e){var t={};if("u"<typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-20)/100;t[i]=r}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nz={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!v){var n=nz.createCanvas();v=n&&n.getContext("2d")}if(v)return y!==t&&(y=v.font=t||nD),v.measureText(e);e=e||"",t=t||nD;var i=/((?:\d+)?\.?\d*)px/.exec(t),r=i&&+i[1]||12,a=0;if(t.indexOf("mono")>=0)a=r*e.length;else for(var o=0;o<e.length;o++){var s=nO[e[o]];a+=null==s?r:s*r}return{width:a}},loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}},nA=n0(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nR=n0(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nP=Object.prototype.toString,nN=Array.prototype,nF=nN.forEach,nL=nN.filter,nE=nN.slice,nB=nN.map,nH=(function(){}).constructor,nV=nH?nH.prototype:null,nW="__proto__",nG=2311;function nY(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"u">typeof console&&console.error.apply(console,e)}function nU(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nP.call(e);if("[object Array]"===n){if(!e[ih]){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=nU(e[i])}}else if(nR[n]){if(!e[ih]){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!nA[n]&&!e[ih]&&!ir(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nW&&(t[o]=nU(e[o]));return t}function nq(e,t,n){if(!ie(t)||!ie(e))return n?nU(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==nW){var r=e[i],a=t[i];!(ie(a)&&ie(r))||n8(a)||n8(r)||ir(a)||ir(r)||it(a)||it(r)||a[ih]||r[ih]?!n&&i in e||(e[i]=nU(t[i])):nq(r,a,n)}return e}function n$(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nW&&(e[n]=t[n]);return e}function nX(e,t,n){for(var i=n3(t),r=0,a=i.length;r<a;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nK(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return -1}function nZ(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var a=i[r];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nX(e,t,n)}function nJ(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nQ(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nF)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function n1(e,t,n){if(!e)return[];if(!t)return il(e);if(e.map&&e.map===nB)return e.map(t,n);for(var i=[],r=0,a=e.length;r<a;r++)i.push(t.call(n,e[r],r,e));return i}function n0(e,t,n,i){if(e&&t){for(var r=0,a=e.length;r<a;r++)n=t.call(i,n,e[r],r,e);return n}}function n2(e,t,n){if(!e)return[];if(!t)return il(e);if(e.filter&&e.filter===nL)return e.filter(t,n);for(var i=[],r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function n3(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}nz.createCanvas;var n4=nV&&n9(nV.bind)?nV.call.bind(nV.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(nE.call(arguments)))}};function n5(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nE.call(arguments)))}}function n8(e){return Array.isArray?Array.isArray(e):"[object Array]"===nP.call(e)}function n9(e){return"function"==typeof e}function n6(e){return"string"==typeof e}function n7(e){return"number"==typeof e}function ie(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function it(e){return!!nA[nP.call(e)]}function ii(e){return!!nR[nP.call(e)]}function ir(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ia(e){return null!=e.colorStops}function io(e,t){return null!=e?e:t}function is(e,t,n){return null!=e?e:null!=t?t:n}function il(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nE.apply(e,t)}function iu(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ic(e,t){if(!e)throw Error(t)}function id(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ih="__ec_primitive__",ip=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return n3(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),im="function"==typeof Map,ig=function(){function e(t){var n=n8(t);this.data=im?new Map:new ip;var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&nQ(t,r)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},e.prototype.keys=function(){var e=this.data.keys();return im?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function iv(e){return new ig(e)}function iy(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&n$(n,t),n}function ix(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function i_(e,t){return e.hasOwnProperty(t)}function ib(){}var iw=180/Math.PI;function iS(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function iC(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ij(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function iT(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ik=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function iI(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function iM(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function iD(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function iO(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var iz=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},iA=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new iz(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(r,a,e),this.handler.dispatchToElement(new iz(t,e),"drag",e.event);var o=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new iz(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new iz(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new iz(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new iz(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),iR=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var o=0;o<r[e].length;o++)if(r[e][o].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,a=n[e].length;r<a;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var a=t.length,o=i.length,s=0;s<o;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var a=t.length,o=t[a-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),iP=Math.log(2);function iN(e,t,n,i,r,a){var o=i+"-"+r,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/iP);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;!(f&r)&&(d+=(p%2?-1:1)*e[n][h]*iN(e,t-1,c,u,r|f,a),p++)}return a[o]=d,d}function iF(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=iN(n,8,0,0,0,i);if(0!==r){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*iN(n,7,+(0===o),1<<o,1<<s,i)/r*t[o];return function(e,t,n){var i=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/i,e[1]=(t*a[3]+n*a[4]+a[5])/i}}}var iL="___zrEVENTSAVED";function iE(e){return"CANVAS"===e.nodeName.toUpperCase()}var iB=/([&<>"'])/g,iH={"&":"&","<":"<",">":">",'"':""","'":"'"};function iV(e){return null==e?"":(e+"").replace(iB,function(e,t){return iH[t]})}var iW=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,iG=[],iY=nM.browser.firefox&&39>+nM.browser.version.split(".")[0];function iU(e,t,n,i){return n=n||{},i?iq(e,t,n):iY&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):iq(e,t,n),n}function iq(e,t,n){if(nM.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(iE(e)){var a=e.getBoundingClientRect();n.zrX=i-a.left,n.zrY=r-a.top;return}if(function(e,t,n,i,r){if(t.getBoundingClientRect&&nM.domSupported&&!iE(t)){var a=t[iL]||(t[iL]={}),o=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;o.push(h,p),l=l&&a&&h===a[d]&&p===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=o,t[i]=n?iF(s,o):iF(o,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,i),!0}return!1}(iG,e,i,r)){n.zrX=iG[0],n.zrY=iG[1];return}}n.zrX=n.zrY=0}function i$(e){return e||window.event}function iX(e,t,n){if(null!=(t=i$(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&iU(e,r,t,n)}else{iU(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;return null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&iW.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var iK=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},iZ=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},a=0,o=i.length;a<o;a++){var s=i[a],l=iU(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in iQ)if(iQ.hasOwnProperty(t)){var n=iQ[t](this._track,e);if(n)return n}},e}();function iJ(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var iQ={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=iJ(i)/iJ(r);isFinite(a)||(a=1),t.pinchScale=a;var o=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function i1(){return[1,0,0,1,0,0]}function i0(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function i2(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function i3(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*r)*l,e[5]=(a*r-n*s)*l,e):null}var i4=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),i5=Math.min,i8=Math.max,i9=new i4,i6=new i4,i7=new i4,re=new i4,rt=new i4,rn=new i4,ri=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=i5(e.x,this.x),n=i5(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=i8(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=i8(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t,n,i,r=e.width/this.width,a=e.height/this.height,o=i1();return i2(o,o,[-this.x,-this.y]),n=(t=[r,a])[0],i=t[1],o[0]=o[0]*n,o[1]=o[1]*i,o[2]=o[2]*n,o[3]=o[3]*i,o[4]=o[4]*n,o[5]=o[5]*i,i2(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this.x,r=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height,d=!(r<s||l<i||o<u||c<a);if(n){var h=1/0,p=0,f=Math.abs(r-s),m=Math.abs(l-i),g=Math.abs(o-u),v=Math.abs(c-a),y=Math.min(f,m),x=Math.min(g,v);r<s||l<i?y>p&&(p=y,f<m?i4.set(rn,-f,0):i4.set(rn,m,0)):y<h&&(h=y,f<m?i4.set(rt,f,0):i4.set(rt,-m,0)),o<u||c<a?x>p&&(p=x,g<v?i4.set(rn,0,-g):i4.set(rn,0,v)):y<h&&(h=y,g<v?i4.set(rt,0,g):i4.set(rt,0,-v))}return n&&i4.copy(n,d?rt:rn),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(!i){t!==n&&e.copy(t,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],a=i[3],o=i[4],s=i[5];t.x=n.x*r+o,t.y=n.y*a+s,t.width=n.width*r,t.height=n.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}i9.x=i7.x=n.x,i9.y=re.y=n.y,i6.x=re.x=n.x+n.width,i6.y=i7.y=n.y+n.height,i9.transform(i),re.transform(i),i6.transform(i),i7.transform(i),t.x=i5(i9.x,i6.x,i7.x,re.x),t.y=i5(i9.y,i6.y,i7.y,re.y);var l=i8(i9.x,i6.x,i7.x,re.x),u=i8(i9.y,i6.y,i7.y,re.y);t.width=l-t.x,t.height=u-t.y},e}(),rr="silent";function ra(){iK(this.event)}var ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return nk(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(iR),rs=function(e,t){this.x=e,this.y=t},rl=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ru=new ri(0,0,0,0),rc=function(e){function t(t,n,i,r,a){var o=e.call(this)||this;return o._hovered=new rs(0,0),o.storage=t,o.painter=n,o.painterRoot=r,o._pointerSize=a,i=i||new ro,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new iA(o),o}return nk(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nQ(rl,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=rh(this,t,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?new rs(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new rs(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r,a="on"+t,o={type:t,event:n,target:(r=e).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ra};i&&(i[a]&&(o.cancelBubble=!!i[a].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new rs(e,t);if(rd(i,r,e,t,n),this._pointerSize&&!r.target){for(var a=[],o=this._pointerSize,s=o/2,l=new ri(e-s,t-s,o,o),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ru.copy(c.getBoundingRect()),c.transform&&ru.applyTransform(c.transform),ru.intersect(l)&&a.push(c))}if(a.length){for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d)if(rd(a,r,e+p*Math.cos(f),t+p*Math.sin(f),n),r.target)return r}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new iZ);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var a=new rs;a.target=i.target,this.dispatchToElement(a,r,i.event)}},t}(iR);function rd(e,t,n,i,r){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==r&&!o.ignore&&(s=function(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||rr}return!1}(o,n,i))&&(t.topTarget||(t.topTarget=o),s!==rr)){t.target=o;break}}}function rh(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}function rp(e,t,n,i){var r=t+1;if(r===n)return 1;if(0>i(e[r++],e[t])){for(;r<n&&0>i(e[r],e[r-1]);)r++;var a=e,o=t,s=r;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function rf(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var a,o=e[i],s=t,l=i;s<l;)0>r(o,e[a=s+l>>>1])?l=a:s=a+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function rm(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])>0){for(s=i-r;l<s&&a(e,t[n+r+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&0>=a(e,t[n+r-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function rg(e,t,n,i,r,a){var o=0,s=0,l=1;if(0>a(e,t[n+r])){for(s=r+1;l<s&&0>a(e,t[n+r-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(e,t[n+r+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var c=o+(l-o>>>1);0>a(e,t[n+c])?l=c:o=c+1}return l}function rv(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var a=0;if(r<32){a=rp(e,n,i,t),rf(e,n,i,n+a,t);return}var o=function(e,t){var n,i,r=7,a=0,o=[];function s(s){var l=n[s],u=i[s],c=n[s+1],d=i[s+1];i[s]=u+d,s===a-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),a--;var h=rg(e[c],e,l,u,0,t);l+=h,0==(u-=h)||0!==(d=rm(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,i,a,s){var l,u,c,d=0;for(d=0;d<i;d++)o[d]=e[n+d];var h=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(d=0;d<i;d++)e[f+d]=o[h+d];return}if(1===i){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h];return}for(var m=r;;){l=0,u=0,c=!1;do if(0>t(e[p],o[h])){if(e[f++]=e[p++],u++,l=0,0==--s){c=!0;break}}else if(e[f++]=o[h++],l++,u=0,1==--i){c=!0;break}while((l|u)<m);if(c)break;do{if(0!==(l=rg(e[p],o,h,i,0,t))){for(d=0;d<l;d++)e[f+d]=o[h+d];if(f+=l,h+=l,(i-=l)<=1){c=!0;break}}if(e[f++]=e[p++],0==--s){c=!0;break}if(0!==(u=rm(o[h],e,p,s,0,t))){for(d=0;d<u;d++)e[f+d]=e[p+d];if(f+=u,p+=u,0==(s-=u)){c=!0;break}}if(e[f++]=o[h++],1==--i){c=!0;break}m--}while(l>=7||u>=7);if(c)break;m<0&&(m=0),m+=2}if((r=m)<1&&(r=1),1===i){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h]}else if(0===i)throw Error();else for(d=0;d<i;d++)e[f+d]=o[h+d]}(l,u,c,d):function(n,i,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+i-1,c=s-1,d=a+s-1,h=0,p=0;if(e[d--]=e[u--],0==--i){for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l];return}if(1===s){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c];return}for(var f=r;;){var m=0,g=0,v=!1;do if(0>t(o[c],e[u])){if(e[d--]=e[u--],m++,g=0,0==--i){v=!0;break}}else if(e[d--]=o[c--],g++,m=0,1==--s){v=!0;break}while((m|g)<f);if(v)break;do{if(0!=(m=i-rg(o[c],e,n,i,i-1,t))){for(d-=m,u-=m,i-=m,p=d+1,h=u+1,l=m-1;l>=0;l--)e[p+l]=e[h+l];if(0===i){v=!0;break}}if(e[d--]=o[c--],1==--s){v=!0;break}if(0!=(g=s-rm(e[u],o,0,s,s-1,t))){for(d-=g,c-=g,s-=g,p=d+1,h=c+1,l=0;l<g;l++)e[p+l]=o[h+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0==--i){v=!0;break}f--}while(m>=7||g>=7);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c]}else if(0===s)throw Error();else for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l]}(l,u,c,d))}return n=[],i=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,i[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(r);do{if((a=rp(e,n,i,t))<s){var l=r;l>s&&(l=s),rf(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(0!==r);o.forceMergeRuns()}}nQ(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){rc.prototype[e]=function(t){var n,i,r=t.zrX,a=t.zrY,o=rh(this,r,a);if("mouseup"===e&&o||(i=(n=this.findHover(r,a)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||iT(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var ry=!1;function rx(){ry||(ry=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function r_(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rb=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=r_}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,rv(n,r_)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var r=i,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(rx(),e.z=0),isNaN(e.z2)&&(rx(),e.z2=0),isNaN(e.zlevel)&&(rx(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=nK(this._roots,e);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();I=nM.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var rw={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-rw.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rw.bounceIn(2*e):.5*rw.bounceOut(2*e-1)+.5}},rS=Math.pow,rC=Math.sqrt,rj=rC(3),rT=1/3,rk=iS(),rI=iS(),rM=iS();function rD(e){return e>-1e-8&&e<1e-8}function rO(e){return e>1e-8||e<-1e-8}function rz(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function rA(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)}function rR(e,t,n,i,r,a){var o=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,p=0;if(rD(c)&&rD(d))if(rD(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=d*d-4*c*h;if(rD(m)){var g=d/c,f=-s/o+g,v=-g/2;f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v)}else if(m>0){var y=rC(m),x=c*s+1.5*o*(-d+y),_=c*s+1.5*o*(-d-y),f=(-s-((x=x<0?-rS(-x,rT):rS(x,rT))+(_=_<0?-rS(-_,rT):rS(_,rT))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var b=Math.acos((2*c*s-3*o*d)/(2*rC(c*c*c)))/3,w=rC(c),S=Math.cos(b),f=(-s-2*w*S)/(3*o),v=(-s+w*(S+rj*Math.sin(b)))/(3*o),C=(-s+w*(S-rj*Math.sin(b)))/(3*o);f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v),C>=0&&C<=1&&(a[p++]=C)}}return p}function rP(e,t,n,i,r){var a=6*n-12*t+6*e,o=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(rD(o)){if(rO(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(rD(c))r[0]=-a/(2*o);else if(c>0){var d=rC(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function rN(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,d=(c-u)*r+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=i}function rF(e,t,n,i,r,a,o,s,l,u,c){var d,h,p,f,m,g=.005,v=1/0;rk[0]=l,rk[1]=u;for(var y=0;y<1;y+=.05)rI[0]=rz(e,n,r,o,y),rI[1]=rz(t,i,a,s,y),(f=ik(rk,rI))<v&&(d=y,v=f);v=1/0;for(var x=0;x<32&&!(g<1e-4);x++)h=d-g,p=d+g,rI[0]=rz(e,n,r,o,h),rI[1]=rz(t,i,a,s,h),f=ik(rI,rk),h>=0&&f<v?(d=h,v=f):(rM[0]=rz(e,n,r,o,p),rM[1]=rz(t,i,a,s,p),m=ik(rM,rk),p<=1&&m<v?(d=p,v=m):g*=.5);return c&&(c[0]=rz(e,n,r,o,d),c[1]=rz(t,i,a,s,d)),rC(v)}function rL(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function rE(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function rB(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function rH(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function rV(e,t,n,i,r,a,o,s,l){var u,c=.005,d=1/0;rk[0]=o,rk[1]=s;for(var h=0;h<1;h+=.05){rI[0]=rL(e,n,r,h),rI[1]=rL(t,i,a,h);var p=ik(rk,rI);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var m=u-c,g=u+c;rI[0]=rL(e,n,r,m),rI[1]=rL(t,i,a,m);var p=ik(rI,rk);if(m>=0&&p<d)u=m,d=p;else{rM[0]=rL(e,n,r,g),rM[1]=rL(t,i,a,g);var v=ik(rM,rk);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=rL(e,n,r,u),l[1]=rL(t,i,a,u)),rC(d)}var rW=/cubic-bezier\(([0-9,\.e ]+)\)/;function rG(e){var t=e&&rW.exec(e);if(t){var n=t[1].split(","),i=+id(n[0]),r=+id(n[1]),a=+id(n[2]),o=+id(n[3]);if(isNaN(i+r+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:rR(0,i,a,1,e,s)&&rz(0,r,o,1,s[0])}}}var rY=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ib,this.ondestroy=e.ondestroy||ib,this.onrestart=e.onrestart||ib,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,o=a?a(r):r;if(this.onframe(o),1===r)if(!this.loop)return!0;else this._startTime=e-i%n,this._pausedTime=0,this.onrestart();return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=n9(e)?e:rw[e]||rG(e)},e}(),rU=function(e){this.value=e},rq=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new rU(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),r$=function(){function e(e){this._list=new rq,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new rU(t),o.key=e,n.insertEntry(o),i[e]=o}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),rX={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 rK(e){return(e=Math.round(e))<0?0:e>255?255:e}function rZ(e){return e<0?0:e>1?1:e}function rJ(e){return e.length&&"%"===e.charAt(e.length-1)?rK(parseFloat(e)/100*255):rK(parseInt(e,10))}function rQ(e){return e.length&&"%"===e.charAt(e.length-1)?rZ(parseFloat(e)/100):rZ(parseFloat(e))}function r1(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function r0(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function r2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var r3=new r$(20),r4=null;function r5(e,t){r4&&r2(r4,t),r4=r3.put(e,r4||t.slice())}function r8(e,t){if(e){t=t||[];var n=r3.get(e);if(n)return r2(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in rX)return r2(t,rX[i]),r5(e,t),t;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var a=parseInt(i.slice(1,4),16);return a>=0&&a<=4095?(r0(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===r?parseInt(i.slice(4),16)/15:1),r5(e,t),t):void r0(t,0,0,0,1)}if(7===r||9===r){var a=parseInt(i.slice(1,7),16);return a>=0&&a<=0xffffff?(r0(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===r?parseInt(i.slice(7),16)/255:1),r5(e,t),t):void r0(t,0,0,0,1)}return}var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===r){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?r0(t,+u[0],+u[1],+u[2],1):r0(t,0,0,0,1);c=rQ(u.pop());case"rgb":if(u.length>=3)return r0(t,rJ(u[0]),rJ(u[1]),rJ(u[2]),3===u.length?c:rQ(u[3])),r5(e,t),t;return void r0(t,0,0,0,1);case"hsla":if(4!==u.length)return void r0(t,0,0,0,1);return u[3]=rQ(u[3]),r9(u,t),r5(e,t),t;case"hsl":if(3!==u.length)return void r0(t,0,0,0,1);return r9(u,t),r5(e,t),t;default:return}}r0(t,0,0,0,1)}}function r9(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=rQ(e[1]),r=rQ(e[2]),a=r<=.5?r*(i+1):r+i-r*i,o=2*r-a;return r0(t=t||[],rK(255*r1(o,a,n+1/3)),rK(255*r1(o,a,n)),rK(255*r1(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function r6(e,t){var n=r8(e);if(n){for(var i=0;i<3;i++)t<0?n[i]=n[i]*(1-t)|0:n[i]=(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return r7(n,4===n.length?"rgba":"rgb")}}function r7(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function ae(e,t){var n=r8(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var at=new r$(100);function an(e){if(n6(e)){var t=at.get(e);return t||(t=r6(e,-.1),at.put(e,t)),t}if(ia(e)){var n=n$({},e);return n.colorStops=n1(e.colorStops,function(e){return{offset:e.offset,color:r6(e.color,-.1)}}),n}return e}nM.hasGlobalWindow&&n9(window.btoa);var ai=Array.prototype.slice;function ar(e,t,n,i){for(var r,a=t.length,o=0;o<a;o++)e[o]=(r=t[o],(n[o]-r)*i+r);return e}function aa(e,t,n,i){for(var r=t.length,a=0;a<r;a++)e[a]=t[a]+n[a]*i;return e}function ao(e,t,n,i){for(var r=t.length,a=r&&t[0].length,o=0;o<r;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*i}return e}function as(e){if(nJ(e)){var t=e.length;if(nJ(e[0])){for(var n=[],i=0;i<t;i++)n.push(ai.call(e[i]));return n}return ai.call(e)}return e}function al(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function au(e){return 4===e||5===e}function ac(e){return 1===e||2===e}var ad=[0,0,0,0],ah=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,a=!1,o=6,s=t;if(nJ(t)){var l=nJ(t&&t[0])?2:1;o=l,(1!==l||n7(t[0]))&&(2!==l||n7(t[0][0]))||(a=!0)}else if(n7(t)&&t==t)o=0;else if(n6(t))if(isNaN(+t)){var u=r8(t);u&&(s=u,o=3)}else o=0;else if(ia(t)){var c=n$({},s);(c.colorStops=n1(t.colorStops,function(e){return{offset:e.offset,color:r8(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=c}0===r?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=n9(n)?n:rw[n]||rG(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var i=this.valType,r=n.length,a=n[r-1],o=this.discrete,s=ac(i),l=au(i),u=0;u<r;u++){var c=n[u],d=c.value,h=a.value;c.percent=c.time/e,!o&&(s&&u!==r-1?function(e,t,n){if(e.push&&t.push){var i=e.length,r=t.length;if(i!==r)if(i>r)e.length=r;else for(var a=i;a<r;a++)e.push(1===n?t[a]:ai.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(d,h,i):l&&function(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,a=Math.min(n,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,i);s++)r.push({offset:o.offset,color:o.color.slice()})}(d.colorStops,h.colorStops))}if(!o&&5!==i&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=aa([],n[u].value,p,-1):ac(i)&&(n[u].additiveValue=1===i?aa([],n[u].value,p,-1):ao([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var f=r.percent-i.percent,m=0===f?1:p((t-i.percent)/f,1);r.easingFunc&&(m=r.easingFunc(m));var g=a?this._additiveValue:d?ad:e[c];if((ac(s)||d)&&!g&&(g=this._additiveValue=[]),this.discrete)e[c]=m<1?i.rawValue:r.rawValue;else if(ac(s))1===s?ar(g,i[o],r[o],m):function(e,t,n,i){for(var r=t.length,a=r&&t[0].length,o=0;o<r;o++){e[o]||(e[o]=[]);for(var s,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*i+s)}}(g,i[o],r[o],m);else if(au(s)){var v,y,x,_,b,w=i[o],S=r[o],C=4===s;(e[c]={type:C?"linear":"radial",x:(v=w.x,(S.x-v)*m+v),y:(y=w.y,(S.y-y)*m+y),colorStops:n1(w.colorStops,function(e,t){var n,i=S.colorStops[t];return{offset:(n=e.offset,(i.offset-n)*m+n),color:al(ar([],e.color,i.color,m))}}),global:S.global},C)?(e[c].x2=(x=w.x2,(S.x2-x)*m+x),e[c].y2=(_=w.y2,(S.y2-_)*m+_)):e[c].r=(b=w.r,(S.r-b)*m+b)}else if(d)ar(g,i[o],r[o],m),a||(e[c]=al(g));else{var j,T=(j=i[o],(r[o]-j)*m+j);a?this._additiveValue=T:e[c]=T}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;0===t?e[n]=e[n]+i:3===t?(r8(e[n],ad),aa(ad,ad,i,1),e[n]=al(ad)):1===t?aa(e[n],e[n],i,1):2===t&&ao(e[n],e[n],i,1)},e}(),ap=function(){function e(e,t,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i)?nY("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,n3(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,a=0;a<n.length;a++){var o=n[a],s=r[o];if(!s){s=r[o]=new ah(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=al(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,as(l),i),this._trackKeys.push(o)}s.addKeyframe(e,as(t[o]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],o=this._tracks[a],s=this._getAdditiveTrack(a),l=o.keyframes,u=l.length;if(o.prepare(i,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new rY({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,a=0;a<i.length;a++)if(i[a]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return n1(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var a=n[e[r]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}for(var o=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],a=this._tracks[r];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[r]=as(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||n3(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var o=a.pop();r.addKeyframe(o.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();function af(){return new Date().getTime()}var am=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(t=t||{}).stage||{},n}return nk(t,e),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 t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=af()-this._pausedTime,n=t-this._time,i=this._head;i;){var r=i.next;i.step(t,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,I(function t(){e._running&&(I(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=af(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=af(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=af()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new ap(e,t.loop);return this.addAnimator(n),n},t}(iR),ag=nM.domSupported,av=(_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=n1(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return _.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:b}),ay=["mousemove","mouseup"],ax=["pointermove","pointerup"],a_=!1;function ab(e){var t=e.pointerType;return"pen"===t||"touch"===t}function aw(e){e&&(e.zrByTouch=!0)}function aS(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var aC=function(e,t){this.stopPropagation=ib,this.stopImmediatePropagation=ib,this.preventDefault=ib,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},aj={mousedown:function(e){e=iX(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=iX(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=iX(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){aS(this,(e=iX(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){a_=!0,e=iX(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){a_||(e=iX(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){aw(e=iX(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),aj.mousemove.call(this,e),aj.mousedown.call(this,e)},touchmove:function(e){aw(e=iX(this.dom,e)),this.handler.processGesture(e,"change"),aj.mousemove.call(this,e)},touchend:function(e){aw(e=iX(this.dom,e)),this.handler.processGesture(e,"end"),aj.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&aj.click.call(this,e)},pointerdown:function(e){aj.mousedown.call(this,e)},pointermove:function(e){ab(e)||aj.mousemove.call(this,e)},pointerup:function(e){aj.mouseup.call(this,e)},pointerout:function(e){ab(e)||aj.mouseout.call(this,e)}};nQ(["click","dblclick","contextmenu"],function(e){aj[e]=function(t){t=iX(this.dom,t),this.trigger(e,t)}});var aT={pointermove:function(e){ab(e)||aT.mousemove.call(this,e)},pointerup:function(e){aT.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function ak(e,t,n,i){var r;e.mounted[t]=n,e.listenerOpts[t]=i,r=e.domTarget,r.addEventListener(t,n,i)}function aI(e){var t,n,i,r=e.mounted;for(var a in r)r.hasOwnProperty(a)&&(t=e.domTarget,n=r[a],i=e.listenerOpts[a],t.removeEventListener(a,n,i));e.mounted={}}var aM=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aD=function(e){function t(t,n){var i,r,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new aM(t,aj),ag&&(a._globalHandlerScope=new aM(document,aT)),r=(i=a._localHandlerScope).domHandlers,nM.pointerEventsSupported?nQ(av.pointer,function(e){ak(i,e,function(t){r[e].call(a,t)})}):(nM.touchEventsSupported&&nQ(av.touch,function(e){ak(i,e,function(t){r[e].call(a,t),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),nQ(av.mouse,function(e){ak(i,e,function(t){t=i$(t),i.touching||r[e].call(a,t)})})),a}return nk(t,e),t.prototype.dispose=function(){aI(this._localHandlerScope),ag&&aI(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,ag&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nM.pointerEventsSupported?nQ(ax,n):nM.touchEventsSupported||nQ(ay,n);function n(n){ak(t,n,function(i){if(!aS(e,(i=i$(i)).target)){var r;r=i,i=iX(e.dom,new aC(e,r),!0),t.domHandlers[n].call(e,i)}},{capture:!0})}}(this,t):aI(t)}},t}(iR),aO=1;nM.hasGlobalWindow&&(aO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var az=aO,aA="#333",aR="#ccc",aP=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aN(e){return e>5e-5||e<-5e-5}var aF=[],aL=[],aE=i1(),aB=Math.abs,aH=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aN(this.rotation)||aN(this.x)||aN(this.y)||aN(this.scaleX-1)||aN(this.scaleY-1)||aN(this.skewX)||aN(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),i=this.transform;if(!(n||t)){i&&(aP(i),this.invTransform=null);return}i=i||i1(),n?this.getLocalTransform(i):aP(i),t&&(n?i0(i,t,i):((e=i)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=i,this._resolveGlobalScaleRatio(i)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aF);var n=aF[0]<0?-1:1,i=aF[1]<0?-1:1,r=((aF[0]-n)*t+n)/aF[0]||0,a=((aF[1]-i)*t+i)/aF[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||i1(),i3(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||i1(),i0(aL,e.invTransform,t),t=aL);var n=this.originX,i=this.originY;(n||i)&&(aE[4]=n,aE[5]=i,i0(aL,t,aE),aL[4]-=n,aL[5]-=i,t=aL),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=e||[],t)?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&iM(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&iM(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&aB(e[0]-1)>1e-10&&aB(e[3]-1)>1e-10?Math.sqrt(aB(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,i=0;i<aV.length;i++){var r=aV[i];t[r]=n[r]}},t.getLocalTransform=function(e,t){t=t||[];var n,i,r,a,o,s,l,u,c,d,h,p=e.originX||0,f=e.originY||0,m=e.scaleX,g=e.scaleY,v=e.anchorX,y=e.anchorY,x=e.rotation||0,_=e.x,b=e.y,w=e.skewX?Math.tan(e.skewX):0,S=e.skewY?Math.tan(-e.skewY):0;if(p||f||v||y){var C=p+v,j=f+y;t[4]=-C*m-w*j*g,t[5]=-j*g-S*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=g,t[1]=S*m,t[2]=w*g,x&&(n=t,void 0===r&&(r=[0,0]),a=(i=t)[0],o=i[2],s=i[4],l=i[1],u=i[3],c=i[5],d=Math.sin(x),h=Math.cos(x),n[0]=a*h+l*d,n[1]=-a*d+l*h,n[2]=o*h+u*d,n[3]=-o*d+h*u,n[4]=h*(s-r[0])+d*(c-r[1])+r[0],n[5]=h*(c-r[1])-d*(s-r[0])+r[1]),t[4]+=p+_,t[5]+=f+b,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aV=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aW={};function aG(e,t){var n=aW[t=t||nD];n||(n=aW[t]=new r$(500));var i=n.get(e);return null==i&&(i=nz.measureText(e,t).width,n.put(e,i)),i}function aY(e,t,n,i){var r=aG(e,t),a=a$(t);return new ri(aU(0,r,n),aq(0,a,i),r,a)}function aU(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aq(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function a$(e){return aG("国",e)}function aX(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aK(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=aX(i[0],n.width),u+=aX(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+o,u+=s,d="middle";break;case"top":l+=o/2,u-=r,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+r,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=o-r,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=r,c="center";break;case"insideBottom":l+=o/2,u+=a-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=o-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=a-r,d="bottom";break;case"insideBottomRight":l+=o-r,u+=a-r,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var aZ="__zr_normal__",aJ=aV.concat(["ignore"]),aQ=n0(aV,function(e,t){return e[t]=!0,e},{ignore:!1}),a1={},a0=new ri(0,0,0,0),a2=function(){function e(e){this.id=nG++,this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,a=void 0,o=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){n.layoutRect?a0.copy(n.layoutRect):a0.copy(this.getBoundingRect()),i||a0.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(a1,n,a0):aK(a1,n,a0),r.x=a1.x,r.y=a1.y,a=a1.align,o=a1.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var c=void 0,d=void 0;"center"===u?(c=.5*a0.width,d=.5*a0.height):(c=aX(u[0],a0.width),d=aX(u[1],a0.height)),l=!0,r.originX=-r.x+c+(i?0:a0.x),r.originY=-r.y+d+(i?0:a0.y)}}null!=n.rotation&&(r.rotation=n.rotation);var h=n.offset;h&&(r.x+=h[0],r.y+=h[1],l||(r.originX=-h[0],r.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,g=void 0,v=void 0;p&&this.canBeInsideText()?(m=n.insideFill,g=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==g||"auto"===g)&&(g=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,g=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==g||"auto"===g)&&(g=this.getOutsideStroke(m),v=!0)),((m=m||"#000")!==f.fill||g!==f.stroke||v!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=g,f.autoStroke=v,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?aR:aA},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&r8(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+255*!r*(1-i);return n[3]=1,r7(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},n$(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(ie(e))for(var n=n3(e),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,e[r])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===aZ)){var a=i.targetName,o=a?t[a]:t;i.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aJ)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(aZ,!1,e)},e.prototype.useState=function(e,t,n,i){var r,a=e===aZ;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nK(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(r=this.stateProxy(e)),r||(r=this.states&&this.states[e]),!r&&!a)return void nY("State "+e+" not exists.");a||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,r,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,a=e.length,o=a===r.length;if(o){for(var s=0;s<a;s++)if(e[s]!==r[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=nK(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=nK(i,e),a=nK(i,t)>=0;r>=0?a?i.splice(r,1):i[r]=t:n&&!a&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];n$(n,r),r.textConfig&&n$(t=t||{},r.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,a){var o=!(t&&i);t&&t.textConfig?(this.textConfig=n$({},i?this.textConfig:n.textConfig),n$(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<aJ.length;u++){var c=aJ[u],d=r&&aQ[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:o&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new aH,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),n$(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=new ap(e?this[e]:this,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,n=nK(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],a=0;a<i;a++){var o=n[a];e&&e!==o.scope?r.push(o):o.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){a3(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){a3(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=a3(this,t,n,i),a=0;a<r.length;a++)r[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,i,r){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function a3(e,t,n,i,r){var a=[];!function e(t,n,i,r,a,o,s,l){for(var u=n3(r),c=a.duration,d=a.delay,h=a.additive,p=a.setToFinal,f=!ie(o),m=t.animators,g=[],v=0;v<u.length;v++){var y=u[v],x=r[y];if(null!=x&&null!=i[y]&&(f||o[y]))if(!ie(x)||nJ(x)||ia(x))g.push(y);else{if(n){l||(i[y]=x,t.updateDuringAnimation(n));continue}e(t,y,i[y],x,a,o&&o[y],s,l)}else l||(i[y]=x,t.updateDuringAnimation(n),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<m.length;b++){var w=m[b];if(w.targetName===n&&w.stopTracks(g)){var S=nK(m,w);m.splice(S,1)}}if(a.force||(_=(g=n2(g,function(e){var t,n;return!((t=r[e])===(n=i[e])||nJ(t)&&nJ(n)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,n))})).length),_>0||a.force&&!s.length){var C=void 0,j=void 0,T=void 0;if(l){j={},p&&(C={});for(var b=0;b<_;b++){var y=g[b];j[y]=i[y],p?C[y]=r[y]:i[y]=r[y]}}else if(p){T={};for(var b=0;b<_;b++){var y=g[b];T[y]=as(i[y]),function(e,t,n){if(nJ(t[n]))if(nJ(e[n])||(e[n]=[]),ii(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),a4(e[n],t[n],i))}else{var r=t[n],a=e[n],o=r.length;if(nJ(r[0]))for(var s=r[0].length,l=0;l<o;l++)a[l]?a4(a[l],r[l],s):a[l]=Array.prototype.slice.call(r[l]);else a4(a,r,o);a.length=r.length}else e[n]=t[n]}(i,r,y)}}var w=new ap(i,!1,!1,h?n2(m,function(e){return e.targetName===n}):null);w.targetName=n,a.scope&&(w.scope=a.scope),p&&C&&w.whenWithKeys(0,C,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==c?500:c,l?j:r,g).delay(d||0),t.addAnimator(w,n),s.push(w)}}(e,"",e,t,n=n||{},i,a,r);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},d=function(){--o<=0&&(s?l&&l():u&&u())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var h=0;h<a.length;h++){var p=a[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function a4(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}nZ(a2,iR),nZ(a2,aH);var a5=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return nk(t,e),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 t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[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,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=nK(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=nK(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new ri(0,0,0,0),n=e||this._children,i=[],r=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(i);l?(ri.applyTransform(t,s,l),(r=r||t.clone()).union(t)):(r=r||s.clone()).union(s)}}return r||t},t}(a2);a5.prototype.type="group";var a8={},a9={},a6=function(){function e(e,t,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new rb,o=n.renderer||"canvas";a8[o]||(o=n3(a8)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new a8[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=nM.node||nM.worker||l?null:new aD(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?nM.touchEventsSupported:!!c)&&(i=io(n.pointerSize,44)),this.handler=new rc(a,s,u,s.root,i),this.animation=new am({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return .4>ae(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=ae(t[r].color,1);return(n/=i)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=af();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=af();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){!this._disposed&&(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof a5&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a9[e]}},e}();function a7(e,t){var n=new a6(nG++,e,t);return a9[n.id]=n,n}function oe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n6(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function ot(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function on(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,i,r,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return i=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,r=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:r-1-a)-i)}var oi=/^(?:(\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 or(e){if(e instanceof Date)return e;if(n6(e)){var t=oi.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return null==e?new Date(NaN):new Date(Math.round(e))}function oa(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function oo(e,t){var n=oa(e),i=Math.pow(10,n),r=e/i;return e=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function os(e){var t=parseFloat(e);return t==e&&(0!==t||!n6(e)||0>=e.indexOf("x"))?t:NaN}function ol(){return Math.round(9*Math.random())}function ou(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var oc="series\0";function od(e){return e instanceof Array?e:null==e?[]:[e]}function oh(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var op=["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 of(e){return!ie(e)||n8(e)||e instanceof Date?e:e.value}function om(e,t,n){var i=ov(t[e],null),r=ov(n[e],null);return null!=i&&null!=r&&i===r}function og(e){return ov(e,"")}function ov(e,t){return null==e?t:n6(e)?e:n7(e)||"[object String]"===nP.call(e)?e+"":t}function oy(e){var t=e.name;return!!(t&&t.indexOf(oc))}function ox(e){return e&&null!=e.id&&0===og(e.id).indexOf("\0_ec_\0")}function o_(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?n8(t.dataIndex)?n1(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?n8(t.name)?n1(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function ob(){var e="__ec_inner_"+ow++;return function(t){return t[e]||(t[e]={})}}var ow=ol();function oS(e,t,n){var i=oC(t,n),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=n?n.defaultMainType:null;return!r&&s&&a.set(s,{}),a.each(function(t,i){var r=oT(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[i+"Models"]=r.models,o[i+"Model"]=r.models[0]}),o}function oC(e,t){if(n6(e)){var n,i={};i[e+"Index"]=0,n=i}else n=e;var r=iv(),a={},o=!1;return nQ(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nK(t.includeMainTypes,s)||(o=o||!!s,(r.get(s)||r.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:r,others:a}}var oj={useDefault:!0,enableAll:!1,enableNone:!1};function oT(e,t,n,i){i=i||oj;var r=n.index,a=n.id,o=n.name,s={models:null,specified:null!=r||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(ic(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===r&&(ic(i.enableAll,'`"all"` is not a valid value on index option.'),r=a=o=null),s.models=e.queryComponents({mainType:t,index:r,id:a,name:o})),s}var ok="___EC__COMPONENT__CONTAINER___",oI="___EC__EXTENDED_CLASS___";function oM(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function oD(e,t){e.$constructor=e,e.extend=function(e){var t,n,i=this;if(n9(t=i)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return nk(t,e),t}(i);else{var r=n=function(){(e.$constructor||i).apply(this,arguments)},a=r.prototype;function o(){}for(var s in o.prototype=this.prototype,r.prototype=new o,a)a.hasOwnProperty(s)&&(r.prototype[s]=a[s]);r.prototype.constructor=r,r.superClass=this}return n$(n.prototype,e),n[oI]=!0,n.extend=this.extend,n.superCall=oA,n.superApply=oR,n.superClass=i,n}}function oO(e,t){e.extend=t.extend}var oz=Math.round(10*Math.random());function oA(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function oR(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oP(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){ic(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var i,r,a=oM(n);a.sub?a.sub!==ok&&(((r=t[(i=a).main])&&r[ok]||((r=t[i.main]={})[ok]=!0),r)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[ok]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=oM(e),i=[],r=t[n.main];return r&&r[ok]?nQ(r,function(e,t){t!==ok&&i.push(e)}):i.push(r),i},e.hasClass=function(e){return!!t[oM(e).main]},e.getAllClassMainTypes=function(){var e=[];return nQ(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[oM(e).main];return n&&n[ok]}}function oN(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(i&&nK(i,s)>=0||r&&0>nK(r,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oF=oN([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oL=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oF(this,e,t)},e}(),oE=ob(),oB=function(e,t,n,i){if(i){var r=oE(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=oE(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t,r.ssrType="chart"})}},oH="__zr_style_"+Math.round(10*Math.random()),oV={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oW={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oV[oH]=!0;var oG=["z","z2","invisible"],oY=["invisible"],oU=function(e){var t;function n(t){return e.call(this,t)||this}return nk(n,e),n.prototype._init=function(t){for(var n=n3(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,i){var r,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,a=e,o=t,oq.copy(r.getBoundingRect()),r.transform&&oq.applyTransform(r.transform),o$.width=a,o$.height=o,!oq.intersect(o$))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,o=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ri(0,0,0,0)),t?ri.applyTransform(e,n,t):e.copy(n),(r||a||o)&&(e.width+=2*r+Math.abs(a),e.height+=2*r+Math.abs(o),e.x=Math.min(e.x,e.x+a-r),e.y=Math.min(e.y,e.y+o-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ri(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:n$(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return iy(oV,e)},n.prototype.useStyle=function(e){e[oH]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oH]},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,oG)},n.prototype._applyStateObj=function(t,n,i,r,a,o){e.prototype._applyStateObj.call(this,t,n,i,r,a,o);var s,l=!(n&&r);if(n&&n.style?a?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=n3(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}for(var p=n3(s),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oY:oG,d=0;d<f.length;d++){var h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},n.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var a=t[r];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(e,t){return n$(e,t),e},n.prototype.getAnimationStyleProps=function(){return oW},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(a2),oq=new ri(0,0,0,0),o$=new ri(0,0,0,0),oX=Math.min,oK=Math.max,oZ=Math.sin,oJ=Math.cos,oQ=2*Math.PI,o1=iS(),o0=iS(),o2=iS();function o3(e,t,n,i,r,a){r[0]=oX(e,n),r[1]=oX(t,i),a[0]=oK(e,n),a[1]=oK(t,i)}var o4=[],o5=[],o8={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o9=[],o6=[],o7=[],se=[],st=[],sn=[],si=Math.min,sr=Math.max,sa=Math.cos,so=Math.sin,ss=Math.abs,sl=Math.PI,su=2*sl,sc="u">typeof Float32Array,sd=[];function sh(e){return Math.round(e/sl*1e8)/1e8%2*sl}var sp=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=ss(n/az/e)||0,this._uy=ss(n/az/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(o8.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=ss(e-this._xi),i=ss(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(o8.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,t,n,i,r,a){return this._drawPendingPt(),this.addData(o8.C,e,t,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(o8.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,t,n,i,r,a){this._drawPendingPt(),sd[0]=i,sd[1]=r,(o=sh(sd[0]))<0&&(o+=su),s=o-sd[0],l=sd[1]+s,!a&&l-o>=su?l=o+su:a&&o-l>=su?l=o-su:!a&&o>l?l=o+(su-sh(o-l)):a&&o<l&&(l=o-(su-sh(l-o))),sd[0]=o,sd[1]=l,i=sd[0];var o,s,l,u=(r=sd[1])-i;return this.addData(o8.A,e,t,n,n,i,u,0,+!a),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=sa(r)*n+e,this._yi=so(r)*n+t,this},t.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},t.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(o8.R,e,t,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(o8.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&sc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();sc&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<t;r++)for(var a=e[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},t.prototype.addData=function(e,t,n,i,r,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o7[0]=o7[1]=st[0]=st[1]=Number.MAX_VALUE,se[0]=se[1]=sn[0]=sn[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],i=t[e+1],r=n,a=i),o){case o8.M:n=r=t[e++],i=a=t[e++],st[0]=r,st[1]=a,sn[0]=r,sn[1]=a;break;case o8.L:o3(n,i,t[e],t[e+1],st,sn),n=t[e++],i=t[e++];break;case o8.C:!function(e,t,n,i,r,a,o,s,l,u){var c=rP(e,n,r,o,o4);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<c;d++){var h=rz(e,n,r,o,o4[d]);l[0]=oX(h,l[0]),u[0]=oK(h,u[0])}c=rP(t,i,a,s,o5);for(var d=0;d<c;d++){var p=rz(t,i,a,s,o5[d]);l[1]=oX(p,l[1]),u[1]=oK(p,u[1])}l[0]=oX(e,l[0]),u[0]=oK(e,u[0]),l[0]=oX(o,l[0]),u[0]=oK(o,u[0]),l[1]=oX(t,l[1]),u[1]=oK(t,u[1]),l[1]=oX(s,l[1]),u[1]=oK(s,u[1])}(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],st,sn),n=t[e++],i=t[e++];break;case o8.Q:!function(e,t,n,i,r,a,o,s){var l=oK(oX(rB(e,n,r),1),0),u=oK(oX(rB(t,i,a),1),0),c=rL(e,n,r,l),d=rL(t,i,a,u);o[0]=oX(e,r,c),o[1]=oX(t,a,d),s[0]=oK(e,r,c),s[1]=oK(t,a,d)}(n,i,t[e++],t[e++],t[e],t[e+1],st,sn),n=t[e++],i=t[e++];break;case o8.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(r=sa(h)*c+l,a=so(h)*d+u),function(e,t,n,i,r,a,o,s,l){var u=Math.abs(r-a);if(u%oQ<1e-4&&u>1e-4){s[0]=e-n,s[1]=t-i,l[0]=e+n,l[1]=t+i;return}if(o1[0]=oJ(r)*n+e,o1[1]=oZ(r)*i+t,o0[0]=oJ(a)*n+e,o0[1]=oZ(a)*i+t,iD(s,o1,o0),iO(l,o1,o0),(r%=oQ)<0&&(r+=oQ),(a%=oQ)<0&&(a+=oQ),r>a&&!o?a+=oQ:r<a&&o&&(r+=oQ),o){var c=a;a=r,r=c}for(var d=0;d<a;d+=Math.PI/2)d>r&&(o2[0]=oJ(d)*n+e,o2[1]=oZ(d)*i+t,iD(s,o2,s),iO(l,o2,l))}(l,u,c,d,h,p,f,st,sn),n=sa(p)*c+l,i=so(p)*d+u;break;case o8.R:o3(r=n=t[e++],a=i=t[e++],r+t[e++],a+t[e++],st,sn);break;case o8.Z:n=r,i=a}iD(o7,o7,st),iO(se,se,sn)}return 0===e&&(o7[0]=o7[1]=se[0]=se[1]=0),new ri(o7[0],o7[1],se[0]-o7[0],se[1]-o7[1])},t.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(r=e[d],a=e[d+1],o=r,s=a);var f=-1;switch(h){case o8.M:r=o=e[d++],a=s=e[d++];break;case o8.L:var m=e[d++],g=e[d++],v=m-r,y=g-a;(ss(v)>n||ss(y)>i||d===t-1)&&(f=Math.sqrt(v*v+y*y),r=m,a=g);break;case o8.C:var x=e[d++],_=e[d++],m=e[d++],g=e[d++],b=e[d++],w=e[d++];f=function(e,t,n,i,r,a,o,s,l){for(var u=e,c=t,d=0,h=1;h<=10;h++){var p=.1*h,f=rz(e,n,r,o,p),m=rz(t,i,a,s,p),g=f-u,v=m-c;d+=Math.sqrt(g*g+v*v),u=f,c=m}return d}(r,a,x,_,m,g,b,w,0),r=b,a=w;break;case o8.Q:var x=e[d++],_=e[d++],m=e[d++],g=e[d++];f=function(e,t,n,i,r,a,o){for(var s=e,l=t,u=0,c=1;c<=10;c++){var d=.1*c,h=rL(e,n,r,d),p=rL(t,i,a,d),f=h-s,m=p-l;u+=Math.sqrt(f*f+m*m),s=h,l=p}return u}(r,a,x,_,m,g,0),r=m,a=g;break;case o8.A:var S=e[d++],C=e[d++],j=e[d++],T=e[d++],k=e[d++],I=e[d++],M=I+k;d+=1,p&&(o=sa(k)*j+S,s=so(k)*T+C),f=sr(j,T)*si(su,Math.abs(I)),r=sa(M)*j+S,a=so(M)*T+C;break;case o8.R:o=r=e[d++],s=a=e[d++],f=2*e[d++]+2*e[d++];break;case o8.Z:var v=o-r,y=s-a;f=Math.sqrt(v*v+y*y),r=o,a=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var n,i,r,a,o,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,m=this._len,g=t<1,v=0,y=0,x=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<m;){var b=h[_++],w=1===_;switch(w&&(r=h[_],a=h[_+1],n=r,i=a),b!==o8.L&&x>0&&(e.lineTo(c,d),x=0),b){case o8.M:n=r=h[_++],i=a=h[_++],e.moveTo(r,a);break;case o8.L:o=h[_++],s=h[_++];var S=ss(o-r),C=ss(s-a);if(S>p||C>f){if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(r*(1-T)+o*T,a*(1-T)+s*T);break e}v+=j}e.lineTo(o,s),r=o,a=s,x=0}else{var k=S*S+C*C;k>x&&(c=o,d=s,x=k)}break;case o8.C:var I=h[_++],M=h[_++],D=h[_++],O=h[_++],z=h[_++],A=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;rN(r,I,D,z,T,o9),rN(a,M,O,A,T,o6),e.bezierCurveTo(o9[1],o6[1],o9[2],o6[2],o9[3],o6[3]);break e}v+=j}e.bezierCurveTo(I,M,D,O,z,A),r=z,a=A;break;case o8.Q:var I=h[_++],M=h[_++],D=h[_++],O=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;rH(r,I,D,T,o9),rH(a,M,O,T,o6),e.quadraticCurveTo(o9[1],o6[1],o9[2],o6[2]);break e}v+=j}e.quadraticCurveTo(I,M,D,O),r=D,a=O;break;case o8.A:var R=h[_++],P=h[_++],N=h[_++],F=h[_++],L=h[_++],E=h[_++],B=h[_++],H=!h[_++],V=N>F?N:F,W=ss(N-F)>.001,G=L+E,Y=!1;if(g){var j=l[y++];v+j>u&&(G=L+E*(u-v)/j,Y=!0),v+=j}if(W&&e.ellipse?e.ellipse(R,P,N,F,B,L,G,H):e.arc(R,P,V,L,G,H),Y)break e;w&&(n=sa(L)*N+R,i=so(L)*F+P),r=sa(G)*N+R,a=so(G)*F+P;break;case o8.R:n=r=h[_],i=a=h[_+1],o=h[_++],s=h[_++];var U=h[_++],q=h[_++];if(g){var j=l[y++];if(v+j>u){var $=u-v;e.moveTo(o,s),e.lineTo(o+si($,U),s),($-=U)>0&&e.lineTo(o+U,s+si($,q)),($-=q)>0&&e.lineTo(o+sr(U-$,0),s+q),($-=U)>0&&e.lineTo(o,s+sr(q-$,0));break e}v+=j}e.rect(o,s,U,q);break;case o8.Z:if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(r*(1-T)+n*T,a*(1-T)+i*T);break e}v+=j}e.closePath(),r=n,a=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=o8,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function sf(e,t,n,i,r,a,o){if(0===r)return!1;var s=0,l=e;if(o>t+r&&o>i+r||o<t-r&&o<i-r||a>e+r&&a>n+r||a<e-r&&a<n-r)return!1;if(e===n)return Math.abs(a-e)<=r/2;s=(t-i)/(e-n);var u=s*a-o+(l=(e*i-n*t)/(e-n));return u*u/(s*s+1)<=r/2*r/2}var sm=2*Math.PI;function sg(e){return(e%=sm)<0&&(e+=sm),e}var sv=2*Math.PI;function sy(e,t,n,i,r,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(1===o||0===o)&&(s=i<t?.5:-.5);var l=o*(n-e)+e;return l===r?1/0:l>r?s:0}var sx=sp.CMD,s_=2*Math.PI,sb=[-1,-1,-1],sw=[-1,-1];function sS(e,t,n,i,r){for(var a,o,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var m,g,v,y,x,_,b,w,S,C,j,T,k,I,M=s[f++],D=1===f;switch(M===sx.M&&f>1&&!n&&(u+=sy(c,d,h,p,i,r)),D&&(c=s[f],d=s[f+1],h=c,p=d),M){case sx.M:h=s[f++],p=s[f++],c=h,d=p;break;case sx.L:if(n){if(sf(c,d,s[f],s[f+1],t,i,r))return!0}else u+=sy(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sx.C:if(n){if(m=c,g=d,v=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==t&&(!(r>g+t)||!(r>y+t)||!(r>_+t)||!(r>w+t))&&(!(r<g-t)||!(r<y-t)||!(r<_-t)||!(r<w-t))&&(!(i>m+t)||!(i>v+t)||!(i>x+t)||!(i>b+t))&&(!(i<m-t)||!(i<v-t)||!(i<x-t)||!(i<b-t))&&rF(m,g,v,y,x,_,b,w,i,r,null)<=t/2)return!0}else u+=function(e,t,n,i,r,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var c=rR(t,i,a,s,u,sb);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,m=0;m<c;m++){var g=sb[m],v=0===g||1===g?.5:1;rz(e,n,r,o,g)<l||(h<0&&(h=rP(t,i,a,s,sw),sw[1]<sw[0]&&h>1&&function(){var e=sw[0];sw[0]=sw[1],sw[1]=e}(),p=rz(t,i,a,s,sw[0]),h>1&&(f=rz(t,i,a,s,sw[1]))),2===h?g<sw[0]?d+=p<t?v:-v:g<sw[1]?d+=f<p?v:-v:d+=s<f?v:-v:g<sw[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sx.Q:if(n){if(S=c,C=d,j=s[f++],T=s[f++],k=s[f],I=s[f+1],0!==t&&(!(r>C+t)||!(r>T+t)||!(r>I+t))&&(!(r<C-t)||!(r<T-t)||!(r<I-t))&&(!(i>S+t)||!(i>j+t)||!(i>k+t))&&(!(i<S-t)||!(i<j-t)||!(i<k-t))&&rV(S,C,j,T,k,I,i,r,null)<=t/2)return!0}else u+=function(e,t,n,i,r,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=function(e,t,n,i,r){var a=e-2*t+n,o=2*(t-e),s=e-i,l=0;if(rD(a)){if(rO(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(rD(c)){var u=-o/(2*a);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var d=rC(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}(t,i,a,s,sb);if(0===l)return 0;var u=rB(t,i,a);if(u>=0&&u<=1){for(var c=0,d=rL(t,i,a,u),h=0;h<l;h++){var p=0===sb[h]||1===sb[h]?.5:1,f=rL(e,n,r,sb[h]);f<o||(sb[h]<u?c+=d<t?p:-p:c+=a<d?p:-p)}return c}var p=0===sb[0]||1===sb[0]?.5:1,f=rL(e,n,r,sb[0]);return f<o?0:a<t?p:-p}(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case sx.A:var O=s[f++],z=s[f++],A=s[f++],R=s[f++],P=s[f++],N=s[f++];f+=1;var F=!!(1-s[f++]);a=Math.cos(P)*A+O,o=Math.sin(P)*R+z,D?(h=a,p=o):u+=sy(c,d,a,o,i,r);var L=(i-O)*R/A+O;if(n){if(function(e,t,n,i,r,a,o,s,l){if(0===o)return!1;var u=Math.sqrt((s-=e)*s+(l-=t)*l);if(u-o>n||u+o<n)return!1;if(Math.abs(i-r)%sv<1e-4)return!0;if(a){var c=i;i=sg(r),r=sg(c)}else i=sg(i),r=sg(r);i>r&&(r+=sv);var d=Math.atan2(l,s);return d<0&&(d+=sv),d>=i&&d<=r||d+sv>=i&&d+sv<=r}(O,z,R,P,P+N,F,t,L,r))return!0}else u+=function(e,t,n,i,r,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sb[0]=-l,sb[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=s_-1e-4){i=0,r=s_;var c=a?1:-1;return o>=sb[0]+e&&o<=sb[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=s_,r+=s_);for(var h=0,p=0;p<2;p++){var f=sb[p];if(f+e>o){var m=Math.atan2(s,f),c=a?1:-1;m<0&&(m=s_+m),(m>=i&&m<=r||m+s_>=i&&m+s_<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}(O,z,R,P,P+N,F,L,r);c=Math.cos(P+N)*A+O,d=Math.sin(P+N)*R+z;break;case sx.R:h=c=s[f++],p=d=s[f++];var E=s[f++],B=s[f++];if(a=h+E,o=p+B,n){if(sf(h,p,a,p,t,i,r)||sf(a,p,a,o,t,i,r)||sf(a,o,h,o,t,i,r)||sf(h,o,h,p,t,i,r))return!0}else u+=sy(a,p,a,o,i,r),u+=sy(h,o,h,p,i,r);break;case sx.Z:if(n){if(sf(c,d,h,p,t,i,r))return!0}else u+=sy(c,d,h,p,i,r);c=h,d=p}}return n||1e-4>Math.abs(d-p)||(u+=sy(c,d,h,p,i,r)||0),0!==u}var sC=nX({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oV),sj={style:nX({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oW.style)},sT=aV.concat(["invisible","culling","z","z2","zlevel","parent"]),sk=function(e){var t;function n(t){return e.call(this,t)||this}return nk(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(e){t.buildPath(e,t.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<sT.length;++s)r[sT[s]]=this[sT[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=n3(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var a=n[r],o=t[a];"style"===a?this.style?n$(this.style,o):this.useStyle(o):"shape"===a?n$(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n6(e)){var t=ae(e,0);return t>.5?aA:t>.2?"#eee":aR}else if(e)return aR}return aA},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n6(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>ae(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new sp(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},n.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),sS(a,o/s,!0,e,t)))return!0}if(this.hasFill())return sS(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:n$(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return iy(sC,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=n$({},this.shape))},n.prototype._applyStateObj=function(t,n,i,r,a,o){e.prototype._applyStateObj.call(this,t,n,i,r,a,o);var s,l=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=n$({},i.shape),n$(s,n.shape)):(s=n$({},r?this.shape:i.shape),n$(s,n.shape)):l&&(s=i.shape),s)if(a){this.shape=n$({},this.shape);for(var u={},c=n3(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var a=t[r];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return sj},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return nk(n,t),n.prototype.getDefaultStyle=function(){return nU(e.style)},n.prototype.getDefaultShape=function(){return nU(e.shape)},n}(n);for(var i in e)"function"==typeof e[i]&&(t.prototype[i]=e[i]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oU),sI=1,sM={},sD=ob(),sO=ob(),sz=["emphasis","blur","select"],sA=["normal","emphasis","blur","select"],sR="highlight",sP="downplay",sN="select",sF="unselect",sL="toggleSelect";function sE(e){return null!=e&&"none"!==e}function sB(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sH(e){sB(e,"emphasis",2)}function sV(e){2===e.hoverState&&sB(e,"normal",0)}function sW(e){sB(e,"blur",1)}function sG(e){1===e.hoverState&&sB(e,"normal",0)}function sY(e){e.selected=!0}function sU(e){e.selected=!1}function sq(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function s$(e,t){var n,i,r,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var r=n&&nK(n,"select")>=0,a=!1;if(e instanceof sk){var o=sD(e),s=r&&o.selectFill||o.normalFill,l=r&&o.selectStroke||o.normalStroke;if(sE(s)||sE(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(a=!0,i=n$({},i),(u=n$({},u)).fill=s):!sE(u.fill)&&sE(s)?(a=!0,i=n$({},i),(u=n$({},u)).fill=an(s)):!sE(u.stroke)&&sE(l)&&(a||(i=n$({},i),u=n$({},u)),u.stroke=an(l)),i.style=u}}if(i&&null==i.z2){a||(i=n$({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:10)}return i}(this,0,t,s);else if("blur"===e)return n=s,i=nK(this.currentStates,e)>=0,r=this.style.opacity,a=i?null:function(e,t,n,i){for(var r=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=r[s];a[s]=null==l?i&&i[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=n$({},n),o=n$({opacity:i?r:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=n$({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function sX(e){e.stateProxy=s$;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=s$),n&&(n.stateProxy=s$)}function sK(e,t){s1(e,t)||e.__highByOuter||sq(e,sH)}function sZ(e,t){s1(e,t)||e.__highByOuter||sq(e,sV)}function sJ(e,t){e.__highByOuter|=1<<(t||0),sq(e,sH)}function sQ(e,t){(e.__highByOuter&=~(1<<(t||0)))||sq(e,sV)}function s1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function s0(e){var t=e.getModel(),n=[],i=[];t.eachComponent(function(t,r){var a=sO(r),o="series"===t,s=o?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);o||i.push(s),a.isBlured&&(s.group.traverse(function(e){sG(e)}),o&&n.push(r)),a.isBlured=!1}),nQ(i,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function s2(e,t,n,i){var r=i.getModel();function a(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&sq(i,sG)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=r.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(e){var r=o===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===t&&r)){if(i.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&r&&"self"===t||sW(e)}),nJ(t))a(e.getData(),t);else if(ie(t))for(var d=n3(t),h=0;h<d.length;h++)a(e.getData(d[h]),t[d[h]]);l.push(e),sO(e).isBlured=!0}}),r.eachComponent(function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function s3(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){sO(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(e){sW(e)})}}}function s4(e,t,n,i){var r,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=i.getModel().getComponent(e,t);if(!o)return a;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===oE(l[u]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function s5(e){nQ(e.getAllData(),function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,i)?sq(t,sY):sq(t,sU)})})}function s8(e,t,n){var i,r,a,o,s,l;r=false,(i=e).highDownSilentOnTouch&&(i.__highDownSilentOnTouch=i.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r),sq(e,sX),a=e,o=t,s=n,l=oE(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s9(e){return!!(e&&e.__highDownDispatcher)}function s6(e){var t=e.type;return t===sN||t===sF||t===sL}function s7(e){var t=e.type;return t===sR||t===sP}function le(e,t,n,i,r,a,o){var s,l=!1;n9(r)?(o=a,a=r,r=null):ie(r)&&(a=r.cb,o=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,i,r){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var u=void 0,c=void 0,d=void 0;return i?(u=io(i.duration,200),c=io(i.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(d=a.delay)),n9(d)&&(d=d(n,r)),n9(u)&&(u=u(n)),{duration:u||0,delay:d,easing:c}}(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function lt(e,t,n,i,r,a){le("update",e,t,n,i,r,a)}function ln(e,t,n,i,r,a){le("enter",e,t,n,i,r,a)}function li(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}ob();var lr={},la=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lo=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ls=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ll(e,t,n,i,r,a,o,s){n=!r&&n||lr;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=io(t.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),a||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=io(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=io(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=io(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(e.opacity=d),r||a||null!=e.fill||!i.inheritColor||(e.fill=i.inheritColor);for(var m=0;m<la.length;m++){var g=la[m],v=io(t.getShallow(g),n[g]);null!=v&&(e[g]=v)}for(var m=0;m<lo.length;m++){var g=lo[m],v=t.getShallow(g);null!=v&&(e[g]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!i.disableBox){for(var m=0;m<ls.length;m++){var g=ls[m],v=t.getShallow(g);null!=v&&(e[g]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var lu=ob(),lc=new r$(50);function ld(e,t,n,i,r){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=lc.get(e),o={hostEl:n,cb:i,cbPayload:r};return a?lp(t=a.image)||a.pending.push(o):((t=nz.loadImage(e,lh,lh)).__zrImageSrc=e,lc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function lh(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function lp(e){return e&&e.width&&e.height}var lf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lm(e,t,n,i){var r=n$({},i=i||{});r.font=t,n=io(n,"..."),r.maxIterations=io(i.maxIterations,2);var a=r.minChar=io(i.minChar,0);r.cnCharWidth=aG("国",t);var o=r.ascCharWidth=aG("a",t);r.placeholder=io(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=aG(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function lg(e,t,n){var i=n.containerWidth,r=n.font,a=n.contentWidth;if(!i){e.textLine="",e.isTruncated=!1;return}var o=aG(t,r);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,i){for(var r=0,a=0,o=e.length;a<o&&r<t;a++){var s=e.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aG(t=t.substr(0,l),r)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lv=function(){},ly=function(e){this.tokens=[],e&&(this.tokens=e)},lx=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function l_(e,t,n,i,r){var a,o,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,d=!1;if(i){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aX(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(a=t.split("\n"),d=!0),i.accumWidth=f}else{var m=lw(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var v=a[g],y=new lv;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[g]:aG(v,c),g||d)u.push(new ly([y]));else{var x=(u[u.length-1]||(u[0]=new ly)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(v||!_||s)&&x.push(y)}}}var lb=n0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lw(e,t,n,i,r){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"===h){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=aG(h,t),f=!i&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!lb[e]}(h);if(a.length?c+p>n:r+c+p>n){c?(s||l)&&(f?(s||(s=l,l="",c=u=0),a.push(s),o.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=p)):f?(a.push(l),o.push(u),l=h,u=p):(a.push(h),o.push(p));continue}c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h)}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:o}}var lS=nX({strokeFirst:!0,font:nD,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sC),lC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nk(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return iy(lS,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,i){var r=((e||"")+"").split("\n");if(1===r.length)return aY(r[0],t,n,i);for(var a=new ri(0,0,0,0),o=0;o<r.length;o++){var s=aY(r[o],t,n,i);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oU);lC.prototype.type="tspan";var lj=nX({x:0,y:0},oV),lT={style:nX({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oW.style)},lk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nk(t,e),t.prototype.createStyle=function(e){return iy(lj,e)},t.prototype._getSize=function(e){var t,n=this.style,i=n[e];if(null!=i)return i;var r=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!r)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?r[e]:r[e]/r[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ri(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oU);lk.prototype.type="image";var lI=Math.round;function lM(e,t,n){if(!t)return e;var i=lI(2*e);return(i+lI(t))%2==0?i/2:(i+(n?1:-1))/2}var lD=function(){this.x=0,this.y=0,this.width=0,this.height=0},lO={},lz=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new lD},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v=function(e,t,n){if(t){var i=t.x,r=t.y,a=t.width,o=t.height;e.x=i,e.y=r,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=lM(i,s,!0),e.y=lM(r,s,!0),e.width=Math.max(lM(i+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lM(r+o,s,!1)-e.y,+(0!==o))),e}}(lO,t,this.style);p=v.x,f=v.y,m=v.width,g=v.height,v.r=t.r,t=v}else p=t.x,f=t.y,m=t.width,g=t.height;t.r?(l=(n=t).x,u=n.y,c=n.width,d=n.height,h=n.r,c<0&&(l+=c,c=-c),d<0&&(u+=d,d=-d),"number"==typeof h?i=r=a=o=h:h instanceof Array?1===h.length?i=r=a=o=h[0]:2===h.length?(i=a=h[0],r=o=h[1]):3===h.length?(i=h[0],r=o=h[1],a=h[2]):(i=h[0],r=h[1],a=h[2],o=h[3]):i=r=a=o=0,i+r>c&&(s=i+r,i*=c/s,r*=c/s),a+o>c&&(s=a+o,a*=c/s,o*=c/s),r+a>d&&(s=r+a,r*=d/s,a*=d/s),i+o>d&&(s=i+o,i*=d/s,o*=d/s),e.moveTo(l+i,u),e.lineTo(l+c-r,u),0!==r&&e.arc(l+c-r,u+r,r,-Math.PI/2,0),e.lineTo(l+c,u+d-a),0!==a&&e.arc(l+c-a,u+d-a,a,0,Math.PI/2),e.lineTo(l+o,u+d),0!==o&&e.arc(l+o,u+d-o,o,Math.PI/2,Math.PI),e.lineTo(l,u+i),0!==i&&e.arc(l+i,u+i,i,Math.PI,1.5*Math.PI)):e.rect(p,f,m,g)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(sk);lz.prototype.type="rect";var lA={fill:"#000"},lR={style:nX({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},oW.style)},lP=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lA,n.attr(t),n}return nk(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,lB(e=this.style),nQ(e.rich,lB),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ri(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var a=t[r],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||o.clone()).union(o)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lA},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return n$(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=n3(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},n$(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return lR},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||nD,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,a=t.font,o=a$(a),s=io(t.lineHeight,o),l=!!t.backgroundColor,u="truncate"===t.lineOverflow,c=!1,d=t.width,h=(n=null!=d&&("break"===i||"breakAll"===i)?e?lw(e,t.font,d,"breakAll"===i,0).lines:[]:e?e.split("\n"):[]).length*s,p=io(t.height,h);if(h>p&&u){var f=Math.floor(p/s);c=c||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===i&&null!=d)for(var m=lm(d,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},v=0;v<n.length;v++)lg(g,n[v],m),n[v]=g.textLine,c=c||g.isTruncated;for(var y=p,x=0,v=0;v<n.length;v++)x=Math.max(aG(n[v],a),x);null==d&&(d=x);var _=x;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],d+=r[1]+r[3]),l&&(_=d),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:h,width:d,isTruncated:c}}(lG(e),e),r=lY(e),a=!!e.backgroundColor,o=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,d=this._defaultStyle;this.isTruncated=!!i.isTruncated;var h=e.x||0,p=e.y||0,f=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",g=h,v=aq(p,i.contentHeight,m);if(r||n){var y=aU(h,s,f),x=aq(p,o,m);r&&this._renderBackground(e,e,y,x,s,o)}v+=c/2,n&&(g=lW(h,f,n),"top"===m?v+=n[0]:"bottom"===m&&(v-=n[2]));for(var _=0,b=!1,w=lV("fill"in e?e.fill:(b=!0,d.fill)),S=lH("stroke"in e?e.stroke:a||d.autoStroke&&!b?null:(_=2,d.stroke)),C=e.textShadowBlur>0,j=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=i.calculatedLineHeight,k=0;k<u.length;k++){var I=this._getOrCreateChild(lC),M=I.createStyle();I.useStyle(M),M.text=u[k],M.x=g,M.y=v,f&&(M.textAlign=f),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,C&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=e.lineWidth||_,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),M.font=t,lE(M,e),v+=c,j&&I.setBoundingRect(new ri(aU(M.x,l,M.textAlign),aq(M.y,T,M.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,i=new lx;if(null!=e&&(e+=""),!e)return i;for(var r=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=r?{width:r,accumWidth:0,breakAll:"breakAll"===o}:null,l=lf.lastIndex=0;null!=(n=lf.exec(e));){var u=n.index;u>l&&l_(i,e.substring(l,u),t,s),l_(i,n[2],t,s,n[1]),l=lf.lastIndex}l<e.length&&l_(i,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,g={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}t:for(var y=0;y<i.lines.length;y++){for(var x=i.lines[y],_=0,b=0,w=0;w<x.tokens.length;w++){var S=x.tokens[w],C=S.styleName&&t.rich[S.styleName]||{},j=S.textPadding=C.padding,T=j?j[1]+j[3]:0,k=S.font=C.font||t.font;S.contentHeight=a$(k);var I=io(C.height,S.contentHeight);if(S.innerHeight=I,j&&(I+=j[0]+j[2]),S.height=I,S.lineHeight=is(C.lineHeight,t.lineHeight,I),S.align=C&&C.align||t.align,S.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&d+S.lineHeight>a){var M=i.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),i.lines=i.lines.slice(0,y+1)):i.lines=i.lines.slice(0,y),i.isTruncated=i.isTruncated||i.lines.length<M;break t}var D=C.width,O=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,c.push(S),S.contentWidth=aG(S.text,k);else{if(O){var z=C.backgroundColor,A=z&&z.image;A&&lp(A=function(e){if("string"!=typeof e)return e;var t=lc.get(e);return t&&t.image}(A))&&(S.width=Math.max(S.width,A.width*I/A.height))}var R=f&&null!=r?r-b:null;null!=R&&R<S.width?!O||R<T?(S.text="",S.width=S.contentWidth=0):(!function(e,t,n,i,r,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=lm(n,i,r,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)lg(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(g,S.text,R-T,k,t.ellipsis,{minChar:t.truncateMinChar}),S.text=g.text,i.isTruncated=i.isTruncated||g.isTruncated,S.width=S.contentWidth=aG(S.text,k)):S.contentWidth=aG(S.text,k)}S.width+=T,b+=S.width,C&&(_=Math.max(_,S.lineHeight))}v(x,b,_)}i.outerWidth=i.width=io(r,h),i.outerHeight=i.height=io(a,d),i.contentHeight=d,i.contentWidth=h,p&&(i.outerWidth+=p[1]+p[3],i.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var S=c[y],P=S.percentWidth;S.width=parseInt(P,10)/100*i.width}return i}(lG(e),e),n=t.width,i=t.outerWidth,r=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=aU(o,i,u),h=aq(s,r,c),p=d,f=h;a&&(p+=a[3],f+=a[0]);var m=p+n;lY(e)&&this._renderBackground(e,e,d,h,i,r);for(var g=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,C=p,j=m,T=_-1,k=void 0;S<_&&(!(k=x[S]).align||"left"===k.align);)this._placeToken(k,e,b,f,C,"left",g),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=x[T]).align;)this._placeToken(k,e,b,f,j,"right",g),w-=k.width,j-=k.width,T--;for(C+=(n-(C-p)-(m-j)-w)/2;S<=T;)k=x[S],this._placeToken(k,e,b,f,C+k.width/2,"center",g),C+=k.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,i,r,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2),!e.isLineHolder&&lY(s)&&this._renderBackground(s,t,"right"===a?r-e.width:"center"===a?r-e.width/2:r,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(r=lW(r,a,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(lC),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,m=!1,g=0,v=lV("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lH("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||o||f.autoStroke&&!m?null:(g=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=r,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline="middle",p.font=e.font||nD,p.opacity=is(s.opacity,t.opacity,1),lE(p,s),y&&(p.lineWidth=is(s.lineWidth,t.lineWidth,g),p.lineDash=io(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new ri(aU(p.x,_,p.textAlign),aq(p.y,b,p.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,i,r,a){var o,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){(o=this._getOrCreateChild(lz)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=i,m.width=r,m.height=a,m.r=p,o.dirtyShape()}if(h){var g=o.style;g.fill=l||null,g.fillOpacity=io(e.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(lk)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=a}if(u&&c){var g=o.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=io(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=is(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,i="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(i=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),i&&id(i)||e.textFont||e.font},t}(oU),lN={left:!0,right:1,center:1},lF={top:1,bottom:1,middle:1},lL=["fontStyle","fontWeight","fontSize","fontFamily"];function lE(e,t){for(var n=0;n<lL.length;n++){var i=lL[n],r=t[i];null!=r&&(e[i]=r)}}function lB(e){if(e){e.font=lP.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lN[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lF[n]?n:"top",e.padding&&(e.padding=iu(e.padding))}}function lH(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lV(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lW(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lG(e){var t=e.text;return null!=t&&(t+=""),t}function lY(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lU=["textStyle","color"],lq=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],l$=new lP,lX=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lU):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),id([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lq.length;n++)t[lq[n]]=this.getShallow(lq[n]);return l$.useStyle(t),l$.update(),l$.getBoundingRect()},e}(),lK=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lZ=oN(lK),lJ=function(){function e(){}return e.prototype.getLineStyle=function(e){return lZ(this,e)},e}(),lQ=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],l1=oN(lQ),l0=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return l1(this,e,t)},e}(),l2=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){nq(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null;return new e(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nU(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nM.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();oD(l2),w=["__\0is_clz",oz++].join("_"),l2.prototype[w]=!0,l2.isInstance=function(e){return!!(e&&e[w])},nZ(l2,lJ),nZ(l2,l0),nZ(l2,oL),nZ(l2,lX);var l3=Math.round(10*Math.random());function l4(e){return[e||"",l3++].join("_")}var l5={},l8={},l9=nM.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l6(e,t){l8[e=e.toUpperCase()]=new l2(t),l5[e]=t}l6("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),l6("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var l7={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},ue="{yyyy}-{MM}-{dd}",ut={year:"{yyyy}",month:"{yyyy}-{MM}",day:ue,hour:ue+" "+l7.hour,minute:ue+" "+l7.minute,second:ue+" "+l7.second,millisecond:l7.none},un=["year","month","day","hour","minute","second","millisecond"],ui=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ur(e,t){return e+="","0000".substr(0,t-e.length)+e}function ua(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function uo(e,t,n,i){var r=or(e),a=r[uu(n)](),o=r[uc(n)]()+1,s=Math.floor((o-1)/3)+1,l=r[ud(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[uh(n)](),d=(c-1)%12+1,h=r[up(n)](),p=r[uf(n)](),f=r[um(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=(i instanceof l2?i:l8[i||l9]||l8.EN).getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ur(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ur(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ur(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ur(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ur(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,ur(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ur(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ur(f,3)).replace(/{S}/g,f+"")}function us(e,t){var n=or(e),i=n[uc(t)]()+1,r=n[ud(t)](),a=n[uh(t)](),o=n[up(t)](),s=n[uf(t)](),l=0===n[um(t)](),u=l&&0===s,c=u&&0===o,d=c&&0===a,h=d&&1===r;if(h&&1===i)return"year";if(h)return"month";if(d)return"day";if(c)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function ul(e,t,n){var i=n7(e)?or(e):e;switch(t=t||us(e,n)){case"year":return i[uu(n)]();case"half-year":return+(i[uc(n)]()>=6);case"quarter":return Math.floor((i[uc(n)]()+1)/4);case"month":return i[uc(n)]();case"day":return i[ud(n)]();case"half-day":return i[uh(n)]()/24;case"hour":return i[uh(n)]();case"minute":return i[up(n)]();case"second":return i[uf(n)]();case"millisecond":return i[um(n)]()}}function uu(e){return e?"getUTCFullYear":"getFullYear"}function uc(e){return e?"getUTCMonth":"getMonth"}function ud(e){return e?"getUTCDate":"getDate"}function uh(e){return e?"getUTCHours":"getHours"}function up(e){return e?"getUTCMinutes":"getMinutes"}function uf(e){return e?"getUTCSeconds":"getSeconds"}function um(e){return e?"getUTCMilliseconds":"getMilliseconds"}function ug(e){return e?"setUTCMonth":"setMonth"}function uv(e){return e?"setUTCDate":"setDate"}function uy(e){return e?"setUTCHours":"setHours"}function ux(e){return e?"setUTCMinutes":"setMinutes"}function u_(e){return e?"setUTCSeconds":"setSeconds"}function ub(e){return e?"setUTCMilliseconds":"setMilliseconds"}var uw=["a","b","c","d","e","f","g"],uS=function(e,t){return"{"+e+(null==t?"":t)+"}"},uC=["left","right","top","bottom","width","height"],uj=[["width","left","right"],["height","top","bottom"]];function uT(e,t,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=h.width+(f?-f.x+h.x:0);(c=a+m)>i||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);(d=o+g)>r||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)})}function uk(e){var t=e.layoutMode||e.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function uI(e,t,n){var i=n&&n.ignoreSize;n8(i)||(i=[i,i]);var r=o(uj[0],0),a=o(uj[1],1);function o(n,r){var a={},o=0,u={},c=0;if(nQ(n,function(t){u[t]=e[t]}),nQ(n,function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++}),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2===c||!o)return u;if(o>=2)return a;for(var d=0;d<n.length;d++){var h=n[d];if(!s(a,h)&&s(e,h)){a[h]=e[h];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){nQ(e,function(e){t[e]=n[e]})}u(uj[0],e,r),u(uj[1],e,a)}n5(uT,"vertical"),n5(uT,"horizontal");function uM(e,t){return t&&e&&nQ(uC,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var uD=ob(),uO=function(e){var t;function n(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=l4("ec_cpt_model"),r}return nk(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uk(this),i=n?uM({},e):{};nq(e,t.getTheme().get(this.mainType)),nq(e,this.getDefaultOption()),n&&uI(e,i,n)},n.prototype.mergeOption=function(e,t){nq(this.option,e,!0);var n=uk(this);n&&uI(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[oI]))return e.defaultOption;var t=uD(this);if(!t.defaultOption){for(var n=[],i=e;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var a={},o=n.length-1;o>=0;o--)a=nq(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return oT(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(l2);oO(uO,l2),oP(uO),S={},uO.registerSubTypeDefaulter=function(e,t){S[oM(e).main]=t},uO.determineSubType=function(e,t){var n=t.type;if(!n){var i=oM(e).main;uO.hasSubTypes(e)&&S[i]&&(n=S[i](t))}return n};var uz=function(e){var t=[];return nQ(uO.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=n1(t,function(e){return oM(e).main}),"dataset"!==e&&0>=nK(t,"dataset")&&t.unshift("dataset"),t};function uA(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}uO.topologicalTravel=function(e,t,n,i){if(e.length){var r,a,o,s=(a={},o=[],nQ(r=t,function(e){var t,n,i,s=uA(a,e),l=(t=s.originalDeps=uz(e),n=r,i=[],nQ(t,function(e){nK(n,e)>=0&&i.push(e)}),i);s.entryCount=l.length,0===s.entryCount&&o.push(e),nQ(l,function(t){0>nK(s.predecessor,t)&&s.predecessor.push(t);var n=uA(a,t);0>nK(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,u=s.noEntryList,c={};for(nQ(e,function(e){c[e]=!0});u.length;){var d=u.pop(),h=l[d],p=!!c[d];p&&(n.call(i,d,h.originalDeps.slice()),delete c[d]),nQ(h.successor,p?m:f)}nQ(c,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,f(e)}};var uR="";"u">typeof navigator&&(uR=navigator.platform||"");var uP="rgba(0, 0, 0, 0.2)";let uN={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uP,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uP,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uP,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uP,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uP,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uP,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uR.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uF=iv(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),uL="original",uE="arrayRows",uB="objectRows",uH="keyedColumns",uV="typedArray",uW="unknown",uG="column",uY=ob();function uU(e,t){return function(e,t,n,i,r,a){var o,s,l;if(ii(e))return 3;if(i){var u=i[a];ie(u)?(s=u.name,l=u.type):n6(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===uE)if("row"===n){for(var c=e[a],d=0;d<(c||[]).length&&d<5;d++)if(null!=(o=m(c[r+d])))return o}else for(var d=0;d<e.length&&d<5;d++){var h=e[r+d];if(h&&null!=(o=m(h[a])))return o}else if(t===uB){if(!s)return 3;for(var d=0;d<e.length&&d<5;d++){var p=e[d];if(p&&null!=(o=m(p[s])))return o}}else if(t===uH){if(!s)return 3;var c=e[s];if(!c||ii(c))return 3;for(var d=0;d<c.length&&d<5;d++)if(null!=(o=m(c[d])))return o}else if(t===uL)for(var d=0;d<e.length&&d<5;d++){var p=e[d],f=of(p);if(!n8(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n6(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var uq=iv(),u$=ob();ob();var uX=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,i,r,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=o&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,o):n;if((c=c||n)&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}(this,u$,od(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=u$)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),uK="\0_ec_inner",uZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nk(t,e),t.prototype.init=function(e,t,n,i,r,a){i=i||{},this.option=null,this._theme=new l2(i),this._locale=new l2(r),this._optionManager=a},t.prototype.setOption=function(e,t,n){var i=u1(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,u1(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):O(this,r),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=i.getMediaOption(this);o.length&&nQ(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],o=iv(),s=t&&t.replaceMergeMainTypeMap;uY(this).datasetMap=iv(),nQ(e,function(e,t){null!=e&&(uO.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nU(e):nq(n[t],e,!0))}),s&&s.each(function(e,t){uO.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),uO.topologicalTravel(a,uO.getAllClassMainTypes(),function(t){var a,o,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S,C,j,T=function(e,t,n){var i=uq.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}(this,t,od(e[t])),k=i.get(t),I=k?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",D=(y=k,x=T,_="normalMerge"===I,b="replaceMerge"===I,w="replaceAll"===I,y=y||[],x=(x||[]).slice(),S=iv(),nQ(x,function(e,t){if(!ie(e)){x[t]=null;return}}),C=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var a=e[r];a&&null!=a.id&&t.set(a.id,r),i.push({existing:"replaceMerge"===n||ox(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}(y,S,I),(_||b)&&(a=C,o=y,l=S,nQ(u=x,function(e,t){if(e&&null!=e.id){var n=og(e.id),i=l.get(n);if(null!=i){var r=a[i];ic(!r.newOption,'Duplicated option on id "'+n+'".'),r.newOption=e,r.existing=o[i],u[t]=null}}})),_&&(c=C,nQ(d=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<c.length;n++){var i=c[n].existing;if(!c[n].newOption&&i&&(null==i.id||null==e.id)&&!ox(e)&&!ox(i)&&om("name",i,e)){c[n].newOption=e,d[t]=null;return}}})),_||b?(h=C,p=x,f=b,nQ(p,function(e){if(e){for(var t,n=0;(t=h[n])&&(t.newOption||ox(t.existing)||t.existing&&null!=e.id&&!om("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):h.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):w&&(m=C,nQ(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),g=C,v=iv(),nQ(g,function(e){var t=e.existing;t&&v.set(t.id,e)}),nQ(g,function(e){var t=e.newOption;ic(!t||null==t.id||!v.get(t.id)||v.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&v.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nQ(g,function(e,t){var n=e.existing,i=e.newOption,r=e.keyInfo;if(ie(i)){if(r.name=null!=i.name?og(i.name):n?n.name:oc+t,n)r.id=og(n.id);else if(null!=i.id)r.id=og(i.id);else{var a=0;do r.id="\0"+r.name+"\0"+a++;while(v.get(r.id))}v.set(r.id,e)}}),C);nQ(D,function(e){var n,i,r,a,o=e.newOption;ie(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,i=o,r=e.existing,a=uO,i.type?i.type:r?r.subType:a.determineSubType(n,i)))}),n[t]=null,i.set(t,null),r.set(t,0);var O=[],z=[],A=0;nQ(D,function(e,n){var i=e.existing,r=e.newOption;if(r){var a="series"===t,o=uO.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(j)return;j=!0}if(i&&i.constructor===o)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=n$({componentIndex:n},e.keyInfo);n$(i=new o(r,this,this,s),s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(O.push(i.option),z.push(i),A++):(O.push(void 0),z.push(void 0))},this),n[t]=O,i.set(t,z),r.set(t,A),"series"===t&&M(this)},this),this._seriesIndices||M(this)},t.prototype.getOption=function(){var e=nU(this.option);return nQ(e,function(t,n){if(uO.hasClass(n)){for(var i=od(t),r=i.length,a=!1,o=r-1;o>=0;o--)i[o]&&!ox(i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,e[n]=i}}),delete e[uK],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t){for(var r=0;r<n.length;r++)if(n[r])return n[r]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var i=e.index,r=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=i?(t=[],nQ(od(i),function(e){o[e]&&t.push(o[e])})):t=null!=r?uJ("id",r,o):null!=a?uJ("name",a,o):n2(o,function(e){return!!e}),uQ(t,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",i=s+"Id",r=s+"Name",t&&(null!=t[n]||null!=t[i]||null!=t[r])?{mainType:s,index:t[n],id:t[i],name:t[r]}:null);return a=uQ(l?this.queryComponents(l):n2(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?n2(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(n9(e))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var a=n[r];a&&e.call(t,i,a,a.componentIndex)}});else for(var r=n6(e)?i.get(e):ie(e)?this.findComponents(e):null,a=0;r&&a<r.length;a++){var o=r[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ov(e,null);return n2(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return n2(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return n2(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){D(this),nQ(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)},this)},t.prototype.eachRawSeries=function(e,t){nQ(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){D(this),nQ(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return nQ(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return D(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){D(this);var n=[];nQ(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=iv(n)},t.prototype.restoreData=function(e){M(this);var t=this._componentsMap,n=[];t.each(function(e,t){uO.hasClass(t)&&n.push(t)}),uO.topologicalTravel(n,uO.getAllClassMainTypes(),function(n){nQ(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e))&&t.restoreData()})})},t.internalField=void(M=function(e){var t=e._seriesIndices=[];nQ(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=iv(t)},D=function(e){},O=function(e,t){e.option={},e.option[uK]=1,e._componentsMap=iv({series:[]}),e._componentsCount=iv();var n,i,r,a=t.aria;ie(a)&&null==a.enabled&&(a.enabled=!0),n=t,i=e._theme.option,r=n.color&&!n.colorLayer,nQ(i,function(e,t){("colorLayer"!==t||!r)&&(uO.hasClass(t)||("object"==typeof e?n[t]=n[t]?nq(n[t],e,!1):nU(e):null==n[t]&&(n[t]=e)))}),nq(t,uN,!1),e._mergeOption(t,null)}),t}(l2);function uJ(e,t,n){if(n8(t)){var i=iv();return nQ(t,function(e){null!=e&&null!=ov(e,null)&&i.set(e,!0)}),n2(n,function(t){return t&&i.get(t[e])})}var r=ov(t,null);return n2(n,function(t){return t&&null!=r&&t[e]===r})}function uQ(e,t){return t.hasOwnProperty("subType")?n2(e,function(e){return e&&e.subType===t.subType}):e}function u1(e){var t=iv();return e&&nQ(od(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nZ(uZ,uX);var u0=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let u2=function(e){nQ(u0,function(t){this[t]=n4(e[t],e)},this)};var u3={},u4=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nQ(u3,function(i,r){var a=i.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nQ(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){u3[e]=t},e.get=function(e){return u3[e]},e}(),u5=/^(min|max)?(.+)$/,u8=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nQ(od(e.series),function(e){e&&e.data&&ii(e.data)&&(e.data[ih]=!0)}),nQ(od(e.dataset),function(e){e&&e.source&&ii(e.source)&&(e.source[ih]=!0)})),e=nU(e);var i=this._optionBackup,r=function(e,t,n){var i,r,a=[],o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);function h(e){nQ(t,function(t){t(e,n)})}return o?(r=o).timeline||(r.timeline=s):((d||c)&&(e.options=e.media=null),r=e),c&&n8(u)&&nQ(u,function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))}),h(r),nQ(l,function(e){return h(e)}),nQ(a,function(e){return h(e.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:a}}(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],nU(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=nU(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)(function(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return nQ(e,function(e,t){var n=t.match(u5);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=i[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(r=!1)}}),r})(a[u].query,i,r)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=n1(s,function(e){return nU(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),u9=ie,u6=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u7(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=u6.length;n<i;n++){var r=u6[n],a=t.normal,o=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?nq(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),o&&o[r]&&(e[r]=e[r]||{},e[r].emphasis?nq(e[r].emphasis,o[r]):e[r].emphasis=o[r],o[r]=null)}}function ce(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,nX(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function ct(e){ce(e,"itemStyle"),ce(e,"lineStyle"),ce(e,"areaStyle"),ce(e,"label"),ce(e,"labelLine"),ce(e,"upperLabel"),ce(e,"edgeLabel")}function cn(e,t){var n=u9(e)&&e[t],i=u9(n)&&n.textStyle;if(i)for(var r=0,a=op.length;r<a;r++){var o=op[r];i.hasOwnProperty(o)&&(n[o]=i[o])}}function ci(e){e&&(ct(e),cn(e,"label"),e.emphasis&&cn(e.emphasis,"label"))}function cr(e){return n8(e)?e:e?[e]:[]}function ca(e){return(n8(e)?e[0]:e)||{}}function co(e){e&&nQ(cs,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var cs=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cl=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function cc(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<cu.length;n++){var i=cu[n][1],r=cu[n][0];null!=t[i]&&(t[r]=t[i])}}function cd(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function ch(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function cp(e,t){var n;nQ(cr(e.series),function(e){u9(e)&&function(e){if(u9(e)){u7(e),ct(e),cn(e,"label"),cn(e,"upperLabel"),cn(e,"edgeLabel"),e.emphasis&&(cn(e.emphasis,"label"),cn(e.emphasis,"upperLabel"),cn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(u7(t),ci(t));var n=e.markLine;n&&(u7(n),ci(n));var i=e.markArea;i&&ci(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!ii(a))for(var o=0;o<a.length;o++)ci(a[o]);nQ(e.categories,function(e){ct(e)})}if(r&&!ii(r))for(var o=0;o<r.length;o++)ci(r[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)ci(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)n8(l[o])?(ci(l[o][0]),ci(l[o][1])):ci(l[o]);"gauge"===e.type?(cn(e,"axisLabel"),cn(e,"title"),cn(e,"detail")):"treemap"===e.type?(ce(e.breadcrumb,"itemStyle"),nQ(e.levels,function(e){ct(e)})):"tree"===e.type&&ct(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nQ(n,function(t){nQ(cr(e[t]),function(e){e&&(cn(e,"axisLabel"),cn(e.axisPointer,"label"))})}),nQ(cr(e.parallel),function(e){var t=e&&e.parallelAxisDefault;cn(t,"axisLabel"),cn(t&&t.axisPointer,"label")}),nQ(cr(e.calendar),function(e){ce(e,"itemStyle"),cn(e,"dayLabel"),cn(e,"monthLabel"),cn(e,"yearLabel")}),nQ(cr(e.radar),function(e){cn(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nQ(cr(e.geo),function(e){u9(e)&&(ci(e),nQ(cr(e.regions),function(e){ci(e)}))}),nQ(cr(e.timeline),function(e){ci(e),ce(e,"label"),ce(e,"itemStyle"),ce(e,"controlStyle",!0);var t=e.data;n8(t)&&nQ(t,function(e){ie(e)&&(ce(e,"label"),ce(e,"itemStyle"))})}),nQ(cr(e.toolbox),function(e){ce(e,"iconStyle"),nQ(e.feature,function(e){ce(e,"iconStyle")})}),cn(ca(e.axisPointer),"label"),cn(ca(e.tooltip).axisPointer,"label"),e.series=od(e.series),nQ(e.series,function(e){if(ie(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),cd(e.label);var n=e.data;if(n&&!ii(n))for(var i=0;i<n.length;i++)cd(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(e,"pointer.color");null!=r&&function(e,t,n,i){for(var r,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[r=a[s]]&&(o[r]={}),o=o[r];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){cc(e),cc(e.backgroundStyle),cc(e.emphasis);var n=e.data;if(n&&!ii(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(cc(n[i]),cc(n[i]&&n[i].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),ch(e),function e(t,n){if(t)for(var i=0;i<t.length;i++)n(t[i]),t[i]&&e(t[i].children,n)}(e.data,ch)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nX(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),co(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nQ(cl,function(t){var n=e[t];n&&(n8(n)||(n=[n]),nQ(n,function(e){co(e)}))})}function cf(e){nQ(e,function(t,n){var i=[],r=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,u,c){var d,h,p=o.get(t.stackedDimension,c);if(isNaN(p))return r;s?h=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var f=NaN,m=n-1;m>=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=function(e,t){var n=Math.max(on(e),on(t)),i=e+t;return n>20?i:ot(i,n)}(p,v),f=v;break}}}return i[0]=p,i[1]=f,i})})}var cm=function(e){this.data=e.data||(e.sourceFormat===uH?{}:[]),this.sourceFormat=e.sourceFormat||uW,this.seriesLayoutBy=e.seriesLayoutBy||uG,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&1===uU(this,n)&&(i.type="ordinal")}};function cg(e){return e instanceof cm}function cv(e,t,n){n=n||cx(e);var i=t.seriesLayoutBy,r=function(e,t,n,i,r){if(!e)return{dimensionsDefine:c_(r),startIndex:o,dimensionsDetectedCount:a};if(t===uE){var a,o;"auto"===i||null==i?cb(function(e){null!=e&&"-"!==e&&(n6(e)?null==o&&(o=1):o=0)},n,e,10):o=n7(i)?i:+!!i,r||1!==o||(r=[],cb(function(e,t){r[t]=null!=e?e+"":""},n,e,1/0)),a=r?r.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===uB)r||(r=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return n3(t)}(e));else if(t===uH)r||(r=[],nQ(e,function(e,t){r.push(t)}));else if(t===uL){var s=of(e[0]);a=n8(s)&&s.length||1}return{startIndex:o,dimensionsDefine:c_(r),dimensionsDetectedCount:a}}(e,n,i,t.sourceHeader,t.dimensions);return new cm({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:nU(t)})}function cy(e){return new cm({data:e,sourceFormat:ii(e)?uV:uL})}function cx(e){var t=uW;if(ii(e))t=uV;else if(n8(e)){0===e.length&&(t=uE);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(n8(r)||ii(r)){t=uE;break}else if(ie(r)){t=uB;break}}}}else if(ie(e)){for(var a in e)if(i_(e,a)&&nJ(e[a])){t=uH;break}}return t}function c_(e){if(e){var t=iv();return n1(e,function(e,n){var i={name:(e=ie(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i})}}function cb(e,t,n,i){if("row"===t)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else for(var a=n[0]||[],r=0;r<a.length&&r<i;r++)e(a[r],r)}function cw(e){var t=e.sourceFormat;return t===uB||t===uH}var cS=function(){var e;function t(e,t){var n=cg(e)?e:cy(e);this._source=n;var i=this._data=n.data;n.sourceFormat===uV&&(this._offset=0,this._dimSize=t,this._data=i),N(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){N=function(e,r,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine;n$(e,P[cD(o,s)]),o===uV?(e.getItem=t,e.count=i,e.fillStorage=n):(e.getItem=n4(function(e,t){return cj[cD(e,t)]}(o,s),null,r,l,u),e.count=n4(function(e,t){return ck[cD(e,t)]}(o,s),null,r,l,u))};var e,t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,a=0;a<i;a++)t[a]=n[r+a];return t},n=function(e,t,n,i){for(var r=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=i[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],h=0;h<c;h++){var p=r[h*a+o];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[uE+"_"+uG]={pure:!0,appendData:r},e[uE+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[uB]={pure:!0,appendData:r},e[uH]={pure:!0,appendData:function(e){var t=this._data;nQ(e,function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])})}},e[uL]={appendData:r},e[uV]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},P=e}(),t}(),cC=function(e,t,n,i){return e[i]},cj=((z={})[uE+"_"+uG]=function(e,t,n,i){return e[i+t]},z[uE+"_row"]=function(e,t,n,i,r){i+=t;for(var a=r||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[i]:null}return a},z[uB]=cC,z[uH]=function(e,t,n,i,r){for(var a=r||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[i]:null}return a},z[uL]=cC,z),cT=function(e,t,n){return e.length},ck=((A={})[uE+"_"+uG]=function(e,t,n){return Math.max(0,e.length-t)},A[uE+"_row"]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},A[uB]=cT,A[uH]=function(e,t,n){var i=e[n[0].name];return i?i.length:0},A[uL]=cT,A),cI=function(e,t,n){return e[t]},cM=((R={})[uE]=cI,R[uB]=function(e,t,n){return e[n]},R[uH]=cI,R[uL]=function(e,t,n){var i=of(e);return i instanceof Array?i[t]:i},R[uV]=cI,R);function cD(e,t){return e===uE?e+"_"+t:e}function cO(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),a=r.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=r.getDimensionProperty(o);return cM[a](i,o,s)}var l=i;return a===uL&&(l=of(i)),l}}}var cz=/\{@(.+?)\}/g,cA=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:r,data:o,dataType:t,value:i,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=i&&n8(s.value)&&(s.value=s.value[i]),r||(r=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),n9(r))?(s.status=t,s.dimensionIndex=i,r(s)):n6(r)?(function(e,t,n){n8(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var o=uw[a];e=e.replace(uS(o),uS(o,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(uS(uw[l],s),u)}return e})(r,s).replace(cz,function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=cO(o,e,r);if(a&&n8(a.interpolatedValue)){var l=o.getDimensionIndex(r);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return cO(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function cR(e){return new cP(e)}var cP=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n,i,r,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(i=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),u=this._modDataCount||0,c=((n=e&&e.modBy)>=1||(n=1),n),d=e&&e.modDataCount||0;(l!==c||u!==d)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(o)),this._modBy=c,this._modDataCount=d;var h=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(r||p<f)){var m=this._progress;if(n8(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,f,c,d);else this._doProgress(m,p,f,c,d)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){cN.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:cN.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),n8(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),cN=function(){var e,t,n,i,r,a={reset:function(l,u,c,d){t=l,e=u,n=c,r=Math.ceil((i=d)/n),a.next=n>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%r*n+Math.ceil(t/r),o=t>=e?null:a<i?a:t;return t++,o}}();function cF(e){throw Error(e)}function cL(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n7(e)||null==e||"-"===e||(e=+or(e)),null==e||""===e?NaN:Number(e))}iv({number:function(e){return parseFloat(e)},time:function(e){return+or(e)},trim:function(e){return n6(e)?id(e):e}});var cE={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(e,t){n7(t)||cF(""),this._opFn=cE[e],this._rvalFloat=os(t)}).prototype.evaluate=function(e){return n7(e)?this._opFn(e,this._rvalFloat):this._opFn(os(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n7(e)?e:os(e),i=n7(t)?t:os(t),r=isNaN(n),a=isNaN(i);if(r&&(n=this._incomparable),a&&(i=this._incomparable),r&&a){var o=n6(e),s=n6(t);o&&(n=s?e:0),s&&(i=o?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=os(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=os(e)===this._rvalFloat)}return this._isEQ?t:!t};var cB=function(){function e(){}return e.prototype.getRawData=function(){throw Error("not supported")},e.prototype.getRawDataItem=function(e){throw Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return cL(e,t)},e}();function cH(e){return cU(e.sourceFormat)||cF(""),e.data}function cV(e){var t=e.sourceFormat,n=e.data;if(cU(t)||cF(""),t===uE){for(var i=[],r=0,a=n.length;r<a;r++)i.push(n[r].slice());return i}if(t===uB){for(var i=[],r=0,a=n.length;r<a;r++)i.push(n$({},n[r]));return i}}function cW(e,t,n){if(null!=n){if(n7(n)||!isNaN(n)&&!i_(t,n))return e[n];else if(i_(t,n))return t[n]}}function cG(e){return nU(e)}var cY=iv();function cU(e){return e===uE||e===uB}var cq="undefined",c$=typeof Uint32Array===cq?Array:Uint32Array,cX=typeof Uint16Array===cq?Array:Uint16Array,cK=typeof Int32Array===cq?Array:Int32Array,cZ=typeof Float64Array===cq?Array:Float64Array,cJ={float:cZ,int:cK,ordinal:Array,number:Array,time:cZ};function cQ(e){return e>65535?c$:cX}function c1(){return[1/0,-1/0]}function c0(e,t,n,i,r){var a=cJ[n||"float"];if(r){var o=e[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(i)}var c2=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=iv()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=F[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],cw(i),this._dimensions=n1(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new cJ[t||"float"](this._rawCount),this._rawExtent[r]=c1(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,a=i.ordinalOffset||0,o=n.length;0===a&&(r[e]=c1());for(var s=r[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=o,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),l=0;l<r;l++){var u=i[l];c0(n,l,u.type,s,!0)}for(var c=[],d=o;d<s;d++)for(var h=d-o,p=0;p<r;p++){var u=i[p],f=F.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=n1(a,function(e){return e.property}),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=c1()),c0(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var d=[],h=e;h<t;h++){d=i.getItem(h,d);for(var p=0;p<o;p++){var f=r[p],m=this._dimValueGetter(d,l[p],h,p);f[h]=m;var g=s[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;for(var r=0,a=i.length;r<a;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var a=this.get(e,i);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return -1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var a=(i+r)/2|0;if(t[a]<e)i=a+1;else{if(!(t[a]>e))return a;r=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],r=[];if(!i)return r;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-i[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<a||d===a&&c>=0&&o<0)&&(a=d,o=c,s=0),c===o&&(r[s++]=l))}return r.length=s,r},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{var n=cQ(this._rawCount);e=new n(this.count());for(var r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(cQ(n._rawCount))(i),a=[],o=e.length,s=0,l=e[0],u=n._chunks,c=0;c<i;c++){var d=void 0,h=n.getRawIndex(c);if(0===o)d=t(c);else if(1===o)d=t(u[l][h],c);else{for(var p=0;p<o;p++)a[p]=u[e[p]][h];a[p]=c,d=t.apply(null,a)}d&&(r[s++]=h)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=n3(e),r=i.length;if(!r)return this;var a=t.count(),o=new(cQ(t._rawCount))(a),s=0,l=i[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===r){for(var f=d[i[0]],m=0;m<n;m++){var g=f[m];(g>=u&&g<=c||isNaN(g))&&(o[s++]=p),p++}h=!0}else if(2===r){for(var f=d[i[0]],v=d[i[1]],y=e[i[1]][0],x=e[i[1]][1],m=0;m<n;m++){var g=f[m],_=v[m];(g>=u&&g<=c||isNaN(g))&&(_>=y&&_<=x||isNaN(_))&&(o[s++]=p),p++}h=!0}}if(!h)if(1===r)for(var m=0;m<a;m++){var b=t.getRawIndex(m),g=d[i[0]][b];(g>=u&&g<=c||isNaN(g))&&(o[s++]=b)}else for(var m=0;m<a;m++){for(var w=!0,b=t.getRawIndex(m),S=0;S<r;S++){var C=i[S],g=d[C][b];(g<e[C][0]||g>e[C][1])&&(w=!1)}w&&(o[s++]=t.getRawIndex(m))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],a=t.length,o=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=c1();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),h=0;h<a;h++)s[h]=i[t[h]][d];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var u=0;u<p.length;u++){var f=t[u],m=p[u],g=l[f],v=i[f];v&&(v[d]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(cQ(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),m=(f+p)/2,g=0,v=p;v<f;v++){var y=this.getRawIndex(v),x=o[y];isNaN(x)||(g+=x)}g/=f-p;var _=h,b=Math.min(h+u,s),w=h-1,S=o[c];n=-1,r=_;for(var C=-1,j=0,v=_;v<b;v++){var y=this.getRawIndex(v),x=o[y];if(isNaN(x)){j++,C<0&&(C=y);continue}(i=Math.abs((w-m)*(x-S)-(w-v)*(g-S)))>n&&(n=i,r=y)}j>0&&j<b-_&&(d[l++]=Math.min(C,r),r=Math.max(C,r)),d[l++]=r,c=r}return d[l++]=this.getRawIndex(s-1),a._count=l,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,r=Math.floor(1/t),a=i[e],o=this.count(),s=new(cQ(this._rawCount))(2*Math.ceil(o/r)),l=0,u=0;u<o;u+=r){var c=u,d=a[this.getRawIndex(c)],h=u,p=a[this.getRawIndex(h)],f=r;u+r>o&&(f=o-u);for(var m=0;m<f;m++){var g=a[this.getRawIndex(u+m)];g<d&&(d=g,c=u+m),g>p&&(p=g,h=u+m)}var v=this.getRawIndex(c),y=this.getRawIndex(h);c<h?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),a=r._chunks,o=[],s=Math.floor(1/t),l=a[e],u=this.count(),c=r._rawExtent[e]=c1(),d=new(cQ(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(o.length=s=u-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var g=n(o),v=this.getRawIndex(Math.min(p+i(o,g)||0,u-1));l[v]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=v}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,a=this.count();r<a;r++){var o=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][o],r);break;case 2:t(i[e[0]][o],i[e[1]][o],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][o];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],i=c1();if(!n)return i;var r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=i)[0],o=t[1],s=0;s<r;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,a=t&&n0(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<r.length;o++)i._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(r[o]):r[o];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=nU(this._extent),e._rawExtent=nU(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return cL(e[i],this._dimensions[i])}F={arrayRows:e,objectRows:function(e,t,n,i){return cL(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return cL(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),c3=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(c5(n)){var a=void 0,o=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=ii(a=n.get("data",!0))?uV:uL,t=[];var u=this._getSourceMetaRawOption()||{},c=s&&s.metaRawOption||{},d=io(u.seriesLayoutBy,c.seriesLayoutBy)||null,h=io(u.sourceHeader,c.sourceHeader),p=io(u.dimensions,c.dimensions);e=d!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||p?[cv(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:p},o)]:[]}else if(r){var f=this._applyTransform(i);e=f.sourceList,t=f.upstreamSignList}else e=[cv(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,i=this._sourceHost,r=i.get("transform",!0),a=i.get("fromTransformResult",!0);null!=a&&1!==e.length&&c8("");var o=[],s=[];return(nQ(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||c8(""),o.push(t),s.push(e._getVersionSign())}),r)?n=function(e,t,n){var i=od(e),r=i.length;r||cF("");for(var a=0;a<r;a++)t=function(e,t,n,i){t.length||cF(""),ie(e)||cF("");var r=e.type,a=cY.get(r);a||cF("");var o=n1(t,function(e){return function(e,t){var n=new cB,i=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==uG&&cF("");var o=[],s={},l=e.dimensionsDefine;if(l)nQ(l,function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};o.push(i),null!=n&&(i_(s,n)&&cF(""),s[n]=i)});else for(var u=0;u<e.dimensionsDetectedCount||0;u++)o.push({index:u});var c=cj[cD(r,uG)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(i,a,o,e)},n.getRawData=n4(cH,null,e)),n.cloneRawData=n4(cV,null,e),n.count=n4(ck[cD(r,uG)],null,i,a,o);var d=cM[r];n.retrieveValue=function(e,t){return h(c(i,a,o,e),t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=n4(cW,null,o,s),n.cloneAllDimensionInfo=n4(cG,null,o),n}(e,a)});return n1(od(a.transform({upstream:o[0],upstreamList:o,config:nU(e.config)})),function(e,n){ie(e)||cF(""),e.data||cF(""),cU(cx(e.data))||cF("");var i,r=t[0];if(r&&0===n&&!e.dimensions){var a=r.startIndex;a&&(e.data=r.data.slice(0,a).concat(e.data)),i={seriesLayoutBy:uG,sourceHeader:a,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:uG,sourceHeader:0,dimensions:e.dimensions};return cv(e.data,i,null)})}(i[a],t,0,0),a!==r-1&&(t.length=Math.max(t.length,1));return t}(r,o,{datasetIndex:i.componentIndex}):null!=a&&(n=[new cm({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nU(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var a=r[n];if(!a){var o=this._getUpstreamSourceManagers()[0];c5(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new c2).initData(new cS(t,e.length),e),r[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(c5(e)){var t=function(e){if(!e.get("data",!0))return oT(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},oj).models[0]}(e);return t?[t.getSourceManager()]:[]}return n1(e.get("transform",!0)||e.get("fromTransformResult",!0)?oT(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},oj).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;return c5(i)?(e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function c4(e){e.option.transform&&(e.option.transform[ih]=!0)}function c5(e){return"series"===e.mainType}function c8(e){throw Error(e)}function c9(){this.richTextStyles={},this._nextStyleNameId=ol()}c9.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},c9.prototype.makeTooltipMarker=function(e,t,n){var i,r,a,o,s,l,u="richText"===n?this._generateStyleName():null,c=(o=(a=n6(i={color:t,type:e,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=a.type,r=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+iV(o)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+iV(o)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n6(c)?c:(this.richTextStyles[u]=c.style,c.content)},c9.prototype.wrapRichTextStyle=function(e,t){var n={};n8(t)?nQ(t,function(e){return n$(n,e)}):n$(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"};var c6=ob();function c7(e,t){return e.getName(t)||e.getId(t)}var de=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return nk(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=cR({count:dn,reset:di}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(c6(this).sourceManager=new c3(this)).prepareSource();var i=this.getInitialData(e,n);da(i,this),this.dataTask.context.data=i,c6(this).dataBeforeProcessed=i,dt(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uk(this),i=n?uM({},e):{},r=this.subType;uO.hasClass(r)&&(r+="Series"),nq(e,t.getTheme().get(this.subType)),nq(e,this.getDefaultOption()),oh(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&uI(e,i,n)},n.prototype.mergeOption=function(e,t){e=nq(this.option,e,!0),this.fillDataTextStyle(e.data);var n=uk(this);n&&uI(this.option,e,n);var i=c6(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);da(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,c6(this).dataBeforeProcessed=r,dt(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(e){if(e&&!ii(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&oh(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=dl(this);if(!t)return c6(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=dl(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}c6(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return iv(e)},n.prototype.getSourceManager=function(){return c6(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return c6(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,i,r,a,o,s,l,u=e.series,c=e.dataIndex,d=e.multipleSeries,h=u.getData(),p=h.mapDimensionsAll("defaultedTooltip"),f=p.length,m=u.getRawValue(c),g=n8(m),v=(n=n||"transparent",n6(t=u.getData().getItemVisual(c,"style")[u.visualDrawType])?t:ie(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||g&&!f){var y=function(e,t,n,i,r){var a=t.getData(),o=n0(e,function(e,t,n){var i=a.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(e,t){var n,i=a.getDimensionInfo(t);i&&!1!==i.otherDims.tooltip&&(o?u.push(((n={markerType:"subItem",markerColor:r,name:i.displayName,value:e,valueType:i.type}).type="nameValue",n)):(s.push(e),l.push(i.type)))}return i.length?nQ(i,function(e){c(cO(a,n,e),e)}):nQ(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(m,u,c,p,v);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=h.getDimensionInfo(p[0]);l=a=cO(h,c,p[0]),o=x.type}else l=a=g?m[0]:m;var _=oy(u),b=_&&u.name||"",w=h.getName(c),S=d?b:w;return(r={header:b,noHeader:d||!_,sortParam:l,blocks:[((i={markerType:"item",markerColor:v,name:S,noName:!id(S),value:a,valueType:o,dataIndex:c}).type="nameValue",i)].concat(s||[])}).type="section",r}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nM.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=uX.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=c7(r,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=n3(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[c7(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,i,r=this.option,a=r.selectedMode,o=t.length;if(a&&o){if("series"===a)r.selectedMap="all";else if("multiple"===a){ie(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<o;l++){var u=t[l],c=c7(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===a||!0===a){var d=t[o-1],c=c7(e,d);(n={})[c]=!0,r.selectedMap=n,this._selectedDataIndicesMap=((i={})[c]=e.getRawIndex(d),i)}}},n.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},n.registerClass=function(e){return uO.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(uO);function dt(e){var t,n,i,r=e.name;oy(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),i=[],nQ(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function dn(e){return e.model.getRawData().count()}function di(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),dr}function dr(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function da(e,t){nQ(function(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];for(var r=e.length,i=0;i<t.length;i++)n[i+r]=t[i];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,n5(ds,t))})}function ds(e,t){var n=dl(e);return n&&n.setOutputEnd((t||this).count()),t}function dl(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}nZ(de,cA),nZ(de,uX),oO(de,uO);var du=function(){function e(){this.group=new a5,this.uid=l4("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();oD(du),oP(du);var dc=sp.CMD,dd=[[],[],[]],dh=Math.sqrt,dp=Math.atan2,df=Math.sqrt,dm=Math.sin,dg=Math.cos,dv=Math.PI;function dy(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dx(e,t){return(e[0]*t[0]+e[1]*t[1])/(dy(e)*dy(t))}function d_(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dx(e,t))}function db(e,t,n,i,r,a,o,s,l,u,c){var d=dv/180*l,h=dg(d)*(e-n)/2+dm(d)*(t-i)/2,p=-1*dm(d)*(e-n)/2+dg(d)*(t-i)/2,f=h*h/(o*o)+p*p/(s*s);f>1&&(o*=df(f),s*=df(f));var m=(r===a?-1:1)*df((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,g=m*o*p/s,v=-(m*s)*h/o,y=(e+n)/2+dg(d)*g-dm(d)*v,x=(t+i)/2+dm(d)*g+dg(d)*v,_=d_([1,0],[(h-g)/o,(p-v)/s]),b=[(h-g)/o,(p-v)/s],w=[(-1*h-g)/o,(-1*p-v)/s],S=d_(b,w);if(-1>=dx(b,w)&&(S=dv),dx(b,w)>=1&&(S=0),S<0){var C=Math.round(S/dv*1e6)/1e6;S=2*dv+C%2*dv}c.addData(u,y,x,o,s,_,S,d,a)}var dw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,dC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nk(t,e),t.prototype.applyTransform=function(e){},t}(sk),dj=function(){this.cx=0,this.cy=0,this.r=0},dT=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new dj},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(sk);dT.prototype.type="circle";var dk=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dI=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new dk},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=t.rx,a=t.ry,o=.5522848*r,s=.5522848*a;e.moveTo(n-r,i),e.bezierCurveTo(n-r,i-s,n-o,i-a,n,i-a),e.bezierCurveTo(n+o,i-a,n+r,i-s,n+r,i),e.bezierCurveTo(n+r,i+s,n+o,i+a,n,i+a),e.bezierCurveTo(n-o,i+a,n-r,i+s,n-r,i),e.closePath()},t}(sk);dI.prototype.type="ellipse";var dM=Math.PI,dD=2*dM,dO=Math.sin,dz=Math.cos,dA=Math.acos,dR=Math.atan2,dP=Math.abs,dN=Math.sqrt,dF=Math.max,dL=Math.min;function dE(e,t,n,i,r,a,o){var s=e-n,l=t-i,u=(o?a:-a)/dN(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=i+d,g=(h+f)/2,v=(p+m)/2,y=f-h,x=m-p,_=y*y+x*x,b=r-a,w=h*m-f*p,S=(x<0?-1:1)*dN(dF(0,b*b*_-w*w)),C=(w*x-y*S)/_,j=(-w*y-x*S)/_,T=(w*x+y*S)/_,k=(-w*y+x*S)/_,I=C-g,M=j-v,D=T-g,O=k-v;return I*I+M*M>D*D+O*O&&(C=T,j=k),{cx:C,cy:j,x0:-c,y0:-d,x1:C*(r/b-1),y1:j*(r/b-1)}}var dB=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},dH=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new dB},t.prototype.buildPath=function(e,t){!function(e,t){var n,i=dF(t.r,0),r=dF(t.r0||0,0),a=i>0,o=r>0;if(a||o){if(a||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,p=dP(u-l),f=p>dD&&p%dD;if(f>1e-4&&(p=f),i>1e-4)if(p>dD-1e-4)e.moveTo(c+i*dz(l),d+i*dO(l)),e.arc(c,d,i,l,u,!h),r>1e-4&&(e.moveTo(c+r*dz(u),d+r*dO(u)),e.arc(c,d,r,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,j=void 0,T=void 0,k=void 0,I=void 0,M=void 0,D=void 0,O=i*dz(l),z=i*dO(l),A=r*dz(u),R=r*dO(u),P=p>1e-4;if(P){var N=t.cornerRadius;N&&(m=(n=function(e){var t;if(n8(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(N))[0],g=n[1],v=n[2],y=n[3]);var F=dP(i-r)/2;if(x=dL(F,v),_=dL(F,y),b=dL(F,m),w=dL(F,g),j=S=dF(x,_),T=C=dF(b,w),(S>1e-4||C>1e-4)&&(k=i*dz(u),I=i*dO(u),M=r*dz(l),D=r*dO(l),p<dM)){var L=function(e,t,n,i,r,a,o,s){var l=n-e,u=i-t,c=o-r,d=s-a,h=d*l-c*u;if(!(h*h<1e-4))return h=(c*(t-a)-d*(e-r))/h,[e+h*l,t+h*u]}(O,z,M,D,k,I,A,R);if(L){var E=O-L[0],B=z-L[1],H=k-L[0],V=I-L[1],W=1/dO(dA((E*H+B*V)/(dN(E*E+B*B)*dN(H*H+V*V)))/2),G=dN(L[0]*L[0]+L[1]*L[1]);j=dL(S,(i-G)/(W+1)),T=dL(C,(r-G)/(W-1))}}}if(P)if(j>1e-4){var Y=dL(v,j),U=dL(y,j),q=dE(M,D,O,z,i,Y,h),$=dE(k,I,A,R,i,U,h);e.moveTo(c+q.cx+q.x0,d+q.cy+q.y0),j<S&&Y===U?e.arc(c+q.cx,d+q.cy,j,dR(q.y0,q.x0),dR($.y0,$.x0),!h):(Y>0&&e.arc(c+q.cx,d+q.cy,Y,dR(q.y0,q.x0),dR(q.y1,q.x1),!h),e.arc(c,d,i,dR(q.cy+q.y1,q.cx+q.x1),dR($.cy+$.y1,$.cx+$.x1),!h),U>0&&e.arc(c+$.cx,d+$.cy,U,dR($.y1,$.x1),dR($.y0,$.x0),!h))}else e.moveTo(c+O,d+z),e.arc(c,d,i,l,u,!h);else e.moveTo(c+O,d+z);if(r>1e-4&&P)if(T>1e-4){var Y=dL(m,T),U=dL(g,T),q=dE(A,R,k,I,r,-U,h),$=dE(O,z,M,D,r,-Y,h);e.lineTo(c+q.cx+q.x0,d+q.cy+q.y0),T<C&&Y===U?e.arc(c+q.cx,d+q.cy,T,dR(q.y0,q.x0),dR($.y0,$.x0),!h):(U>0&&e.arc(c+q.cx,d+q.cy,U,dR(q.y0,q.x0),dR(q.y1,q.x1),!h),e.arc(c,d,r,dR(q.cy+q.y1,q.cx+q.x1),dR($.cy+$.y1,$.cx+$.x1),h),Y>0&&e.arc(c+$.cx,d+$.cy,Y,dR($.y1,$.x1),dR($.y0,$.x0),!h))}else e.lineTo(c+A,d+R),e.arc(c,d,r,u,l,h);else e.lineTo(c+A,d+R)}else e.moveTo(c,d);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(sk);dH.prototype.type="sector";var dV=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dW=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new dV},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(sk);function dG(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var a=function(e,t,n,i){var r,a,o,s,l=[],u=[],c=[],d=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)iD(o,o,e[h]),iO(s,s,e[h]);iD(o,o,i[0]),iO(s,s,i[1])}for(var h=0,p=e.length;h<p;h++){var f,m,g,v=e[h];if(n)r=e[h?h-1:p-1],a=e[(h+1)%p];else if(0===h||h===p-1){l.push([(f=e[h])[0],f[1]]);continue}else r=e[h-1],a=e[h+1];m=a,g=r,u[0]=m[0]-g[0],u[1]=m[1]-g[1],ij(u,u,t);var y=iT(v,r),x=iT(v,a),_=y+x;0!==_&&(y/=_,x/=_),ij(c,u,-y),ij(d,u,x);var b=iC([],v,c),w=iC([],v,d);i&&(iO(b,b,o),iD(b,b,s),iO(w,w,o),iD(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var o=r.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=r[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);for(var s=1,d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}dW.prototype.type="ring";var dY=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dU=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultShape=function(){return new dY},t.prototype.buildPath=function(e,t){dG(e,t,!0)},t}(sk);dU.prototype.type="polygon";var dq=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},d$=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dq},t.prototype.buildPath=function(e,t){dG(e,t,!1)},t}(sk);d$.prototype.type="polyline";var dX={},dK=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},dZ=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dK},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,i,r,a,o=function(e,t,n){if(t){var i=t.x1,r=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=r,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(lI(2*i)===lI(2*r)&&(e.x1=e.x2=lM(i,s,!0)),lI(2*a)===lI(2*o)&&(e.y1=e.y2=lM(a,s,!0))),e}}(dX,t,this.style);n=o.x1,i=o.y1,r=o.x2,a=o.y2}else n=t.x1,i=t.y1,r=t.x2,a=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,a=i*(1-s)+a*s),e.lineTo(r,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(sk);dZ.prototype.type="line";var dJ=[],dQ=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function d1(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?rA:rz)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?rA:rz)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?rE:rL)(e.x1,e.cpx1,e.x2,t),(n?rE:rL)(e.y1,e.cpy1,e.y2,t)]}var d0=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dQ},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(rH(n,o,r,c,dJ),o=dJ[1],r=dJ[2],rH(i,s,a,c,dJ),s=dJ[1],a=dJ[2]),e.quadraticCurveTo(o,s,r,a)):(c<1&&(rN(n,o,l,r,c,dJ),o=dJ[1],l=dJ[2],r=dJ[3],rN(i,s,u,a,c,dJ),s=dJ[1],u=dJ[2],a=dJ[3]),e.bezierCurveTo(o,s,l,u,r,a)))},t.prototype.pointAt=function(e){return d1(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=d1(this.shape,e,!0),i=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===i?(n[0]=0,n[1]=0):(n[0]=n[0]/i,n[1]=n[1]/i),n},t}(sk);d0.prototype.type="bezier-curve";var d2=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},d3=function(e){function t(t){return e.call(this,t)||this}return nk(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d2},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,a,o,!s)},t}(sk);d3.prototype.type="arc";var d4={};function d5(e,t,n,i){var r,a,o=new dC((r=function(e){var t,n=new sp;if(!e)return n;var i=0,r=0,a=0,o=0,s=sp.CMD,l=e.match(dw);if(!l)return n;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(dS)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var g=0;g<f;){var v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=i,j=r,T=void 0,k=void 0;switch(d){case"l":i+=p[g++],r+=p[g++],h=s.L,n.addData(h,i,r);break;case"L":i=p[g++],r=p[g++],h=s.L,n.addData(h,i,r);break;case"m":i+=p[g++],r+=p[g++],h=s.M,n.addData(h,i,r),a=i,o=r,d="l";break;case"M":i=p[g++],r=p[g++],h=s.M,n.addData(h,i,r),a=i,o=r,d="L";break;case"h":i+=p[g++],h=s.L,n.addData(h,i,r);break;case"H":i=p[g++],h=s.L,n.addData(h,i,r);break;case"v":r+=p[g++],h=s.L,n.addData(h,i,r);break;case"V":r=p[g++],h=s.L,n.addData(h,i,r);break;case"C":h=s.C,n.addData(h,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),i=p[g-2],r=p[g-1];break;case"c":h=s.C,n.addData(h,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r),i+=p[g-2],r+=p[g-1];break;case"S":v=i,y=r,T=n.len(),k=n.data,t===s.C&&(v+=i-k[T-4],y+=r-k[T-3]),h=s.C,C=p[g++],j=p[g++],i=p[g++],r=p[g++],n.addData(h,v,y,C,j,i,r);break;case"s":v=i,y=r,T=n.len(),k=n.data,t===s.C&&(v+=i-k[T-4],y+=r-k[T-3]),h=s.C,C=i+p[g++],j=r+p[g++],i+=p[g++],r+=p[g++],n.addData(h,v,y,C,j,i,r);break;case"Q":C=p[g++],j=p[g++],i=p[g++],r=p[g++],h=s.Q,n.addData(h,C,j,i,r);break;case"q":C=p[g++]+i,j=p[g++]+r,i+=p[g++],r+=p[g++],h=s.Q,n.addData(h,C,j,i,r);break;case"T":v=i,y=r,T=n.len(),k=n.data,t===s.Q&&(v+=i-k[T-4],y+=r-k[T-3]),i=p[g++],r=p[g++],h=s.Q,n.addData(h,v,y,i,r);break;case"t":v=i,y=r,T=n.len(),k=n.data,t===s.Q&&(v+=i-k[T-4],y+=r-k[T-3]),i+=p[g++],r+=p[g++],h=s.Q,n.addData(h,v,y,i,r);break;case"A":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=i,j=r,i=p[g++],db(C,j,i,r=p[g++],w,S,x,_,b,h=s.A,n);break;case"a":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=i,j=r,i+=p[g++],db(C,j,i,r+=p[g++],w,S,x,_,b,h=s.A,n)}}("z"===d||"Z"===d)&&(h=s.Z,n.addData(h),i=a,r=o),t=h}return n.toStatic(),n}(e),(a=n$({},t)).buildPath=function(e){if(null!=e.setData){e.setData(r.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;r.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,i,r,a,o,s,l=e.data,u=e.len(),c=dc.M,d=dc.C,h=dc.L,p=dc.R,f=dc.A,m=dc.Q;for(r=0,a=0;r<u;){switch(n=l[r++],a=r,i=0,n){case c:case h:i=1;break;case d:i=3;break;case m:i=2;break;case f:var g=t[4],v=t[5],y=dh(t[0]*t[0]+t[1]*t[1]),x=dh(t[2]*t[2]+t[3]*t[3]),_=dp(-t[1]/x,t[0]/y);l[r]*=y,l[r++]+=g,l[r]*=x,l[r++]+=v,l[r++]*=y,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,a=r;break;case p:s[0]=l[r++],s[1]=l[r++],iM(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],iM(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<i;o++){var b=dd[o];b[0]=l[r++],b[1]=l[r++],iM(b,b,t),l[a++]=b[0],l[a++]=b[1]}}e.increaseVersion()}}(r,e),this.dirtyShape()},a));return n&&("center"===i&&(n=d8(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function d8(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}function d9(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}d4.circle=dT,d4.ellipse=dI,d4.sector=dH,d4.ring=dW,d4.polygon=dU,d4.polyline=d$,d4.rect=lz,d4.line=dZ,d4.bezierCurve=d0,d4.arc=d3;var d6=ob(),d7=(C=ob(),function(e){var t=C(e),n=e.pipelineContext,i=!!t.large,r=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==a||r!==o)&&"reset"}),he=function(){function e(){this.group=new a5,this.uid=l4("viewChart"),this.renderTask=cR({plan:hi,reset:hr}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&hn(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&hn(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){var t=this.group;if(t)if(n8(t))for(var n=0;n<t.length;n++)d9(t[n],e);else d9(t,e)},e.markUpdateMethod=function(e,t){d6(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function ht(e,t,n){e&&s9(e)&&("emphasis"===t?sJ:sQ)(e,n)}function hn(e,t,n){var i,r,a=o_(e,t),o=t&&null!=t.highlightKey?(null==(r=sM[i=t.highlightKey])&&sI<=32&&(r=sM[i]=sI++),r):null;null!=a?nQ(od(a),function(t){ht(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){ht(e,n,o)})}function hi(e){return d7(e.model)}function hr(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&d6(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,i,r),ha[l]}oD(he,["dispose"]),oP(he);var ha={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ho=ob(),hs={itemStyle:oN(lQ,!0),lineStyle:oN(lK,!0)},hl={lineStyle:"stroke",itemStyle:"fill"};function hu(e,t){var n=e.visualStyleMapper||hs[t];return n||(console.warn("Unknown style type '"+t+"'."),hs.itemStyle)}function hc(e,t){var n=e.visualDrawType||hl[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var hd=new l2,hh=Math.PI,hp=function(){function e(e,t,n,i){this._stageTaskMap=iv(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount,o=null!=a?Math.ceil(a/r):null;return{step:r,modBy:o,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=iv();e.eachSeries(function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;nQ(this._allHandlers,function(i){var r=e.get(i.uid)||e.set(i.uid,{});ic(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)},this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=n,a.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nQ(e,function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){o(i,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(r=!0)}else u&&u.each(function(s,l){o(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,a=t.seriesTaskMap,o=t.seriesTaskMap=iv(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=o.set(s,a&&a.get(s)||cR({plan:hy,reset:hx,count:hw}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,a=t.overallTask=t.overallTask||cR({reset:hf});a.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var o=a.agentStubMap,s=a.agentStubMap=iv(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,cR({reset:hm,onDirty:hv})));n.context={model:e,overallProgress:c},n.agent=a,n.__block=c,r._pipe(e,n)}ic(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,i).each(h):(c=!1,nQ(n.getSeries(),h)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);i.head||(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return n9(e)&&(e={overallReset:e,seriesType:function(e){L=null;try{e(hS,hC)}catch(e){}return L}(e)}),e.uid=l4("stageHandler"),t&&(e.visualType=t),e},e}();function hf(e){e.overallReset(e.ecModel,e.api,e.payload)}function hm(e){return e.overallProgress&&hg}function hg(){this.agent.dirty(),this.getDownstream().dirty()}function hv(){this.agent&&this.agent.dirty()}function hy(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function hx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=od(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?n1(t,function(e,t){return hb(t)}):h_}var h_=hb(0);function hb(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var a=t.start;a<t.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(t,i)}}function hw(e){return e.data.count()}var hS={},hC={};function hj(e,t){for(var n in t.prototype)e[n]=ib}hj(hS,uZ),hj(hC,u2),hS.eachSeriesByType=hS.eachRawSeriesByType=function(e){L=e},hS.eachComponent=function(e){"series"===e.mainType&&e.subType&&(L=e.subType)};var hT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],hk="#B9B8CE",hI="#100C2A",hM=function(){return{axisLine:{lineStyle:{color:hk}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hD=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hO={darkMode:!0,color:hD,backgroundColor:hI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:hk},pageTextStyle:{color:hk}},textStyle:{color:hk},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:hk}},dataZoom:{borderColor:"#71708A",textStyle:{color:hk},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:hk}},timeline:{lineStyle:{color:hk},label:{color:hk},controlStyle:{color:hk,borderColor:hk}},calendar:{itemStyle:{color:hI},dayLabel:{color:hk},monthLabel:{color:hk},yearLabel:{color:hk}},timeAxis:hM(),logAxis:hM(),valueAxis:hM(),categoryAxis:hM(),line:{symbol:"circle"},graph:{color:hD},gauge:{title:{color:hk},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:hk},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hO.categoryAxis.splitLine.show=!1;var hz=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(n6(e)){var r=oM(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nQ(e,function(e,r){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hA=["symbol","symbolSize","symbolRotate","symbolOffset"],hR=hA.concat(["symbolKeepAspect"]);function hP(e,t,n,i,r){var a=e+t;n.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,o=r.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var l=e.getData(),u=o_(l,r.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:n8(u)?l.getName(u[0]):l.getName(u),selected:n6(i)?i:n$({},i)})}})}function hN(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var hF=Math.round(9*Math.random()),hL="function"==typeof Object.defineProperty,hE=function(){function e(){this._id="__ec_inner_"+hF++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return hL?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),hB=sk.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),hH=sk.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),hV=sk.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),p=.6*o,f=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),hW=sk.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),hG={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},hY={};nQ({line:dZ,rect:lz,roundRect:lz,square:lz,circle:dT,diamond:hH,pin:hV,arrow:hW,triangle:hB},function(e,t){hY[t]=new e});var hU=sk.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=aK(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=hY[i];r||(r=hY[i="rect"]),hG[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function hq(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function h$(e,t,n,i,r,a,o){var s,l,u,c,d,h=0===e.indexOf("empty");return(h&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new ri(t,n,i,r),u=o?"center":"cover",d=c=new lk({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===u){var t={width:e.width,height:e.height};c.setStyle(d8(l,t))}}})):d=0===e.indexOf("path://")?d5(e.slice(7),{},new ri(t,n,i,r),o?"center":"cover"):new hU({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),d.__isEmptyBrush=h,d.setColor=hq,a&&d.setColor(a),d}function hX(e){return isFinite(e)}function hK(e,t,n){for(var i,r,a,o,s,l,u,c,d,h,p="radial"===t.type?(a=Math.min(i=n.width,r=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*i+n.x,s=s*r+n.y,l*=a),o=hX(o)?o:.5,s=hX(s)?s:.5,l=l>=0&&hX(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(u=null==t.x?0:t.x,c=null==t.x2?1:t.x2,d=null==t.y?0:t.y,h=null==t.y2?0:t.y2,t.global||(u=u*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),u=hX(u)?u:0,c=hX(c)?c:1,d=hX(d)?d:0,h=hX(h)?h:0,e.createLinearGradient(u,d,c,h)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function hZ(e){return parseInt(e,10)}function hJ(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||hZ(s[i])||hZ(e.style[i]))-(hZ(s[a])||0)-(hZ(s[o])||0)|0}function hQ(e){var t,n,i=e.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n7(t)?[t]:n8(t)?t:null:null),a=i.lineDashOffset;if(r){var o=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(r=n1(r,function(e){return e/o}),a/=o)}return[r,a]}var h1=new sp(!0);function h0(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function h2(e){return"string"==typeof e&&"none"!==e}function h3(e){var t=e.fill;return null!=t&&"none"!==t}function h4(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function h5(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function h8(e,t,n){var i=ld(t.image,t.__image,n);if(lp(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*iw),a.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(a)}return r}}var h9=["shadowBlur","shadowOffsetX","shadowOffsetY"],h6=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h7(e,t,n,i,r){var a=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){pn(e,r),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oV.opacity:o}(i||t.blend!==n.blend)&&(a||(pn(e,r),a=!0),e.globalCompositeOperation=t.blend||oV.blend);for(var s=0;s<h9.length;s++){var l=h9[s];(i||t[l]!==n[l])&&(a||(pn(e,r),a=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(a||(pn(e,r),a=!0),e.shadowColor=t.shadowColor||oV.shadowColor),a}function pe(e,t,n,i,r){var a=pi(t,r.inHover),o=i?null:n&&pi(n,r.inHover)||{};if(a===o)return!1;var s=h7(e,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(pn(e,r),s=!0),h2(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(pn(e,r),s=!0),h2(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(pn(e,r),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(pn(e,r),s=!0),e.lineWidth=l)}for(var u=0;u<h6.length;u++){var c=h6[u],d=c[0];(i||a[d]!==o[d])&&(s||(pn(e,r),s=!0),e[d]=a[d]||c[1])}return s}function pt(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function pn(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function pi(e,t){return t&&e.__hoverStyle||e.style}function pr(e,t){pa(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pa(e,t,n,i){var r,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(!s||function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,s)){if(s&&s.length&&(pn(e,n),e.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){pn(e,n),e.save();for(var c=!1,d=0;d<o.length;d++){var h=o[d];c=c||h.isZeroArea(),pt(e,h),e.beginPath(),h.buildPath(e,h.shape),e.clip()}n.allClipped=c,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(u=l=!0);var f=t instanceof sk&&t.autoBatch&&(v=h3(g=t.style),y=h0(g),!(g.lineDash||!(v^y)||v&&"string"!=typeof g.fill||y&&"string"!=typeof g.stroke||g.strokePercent<1||g.strokeOpacity<1||g.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||pn(e,n):(pn(e,n),pt(e,t));var m=pi(t,n.inHover);if(t instanceof sk)1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),pe(e,t,p,u,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var r,a,o,s=h0(n),l=h3(n),u=n.strokePercent,c=u<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||h1,p=t.__dirty;if(!i){var f=n.fill,m=n.stroke,g=l&&!!f.colorStops,v=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0;(g||v)&&(C=t.getBoundingRect()),g&&(_=p?hK(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(b=p?hK(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=p||!t.__canvasFillPattern?h8(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(S=p||!t.__canvasStrokePattern?h8(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:y&&(w?e.fillStyle=w:l=!1),v?e.strokeStyle=b:x&&(S?e.strokeStyle=S:s=!1)}var j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(r=hQ(t))[0],o=r[1]);var T=!0;(d||4&p)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),T=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),T&&h.rebuildPath(e,c?u:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!i&&(n.strokeFirst?(s&&h5(e,n),l&&h4(e,n)):(l&&h4(e,n),s&&h5(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof lC){3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),pe(e,t,p,u,n);var g,v,y,x,_,b=m.text;if(null!=b&&(b+=""),b){e.font=m.font||nD,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var w=void 0,S=void 0;e.setLineDash&&m.lineDash&&(w=(_=hQ(t))[0],S=_[1]),w&&(e.setLineDash(w),e.lineDashOffset=S),m.strokeFirst?(h0(m)&&e.strokeText(b,m.x,m.y),h3(m)&&e.fillText(b,m.x,m.y)):(h3(m)&&e.fillText(b,m.x,m.y),h0(m)&&e.strokeText(b,m.x,m.y)),w&&e.setLineDash([])}}else t instanceof lk?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),r=u,h7(e,pi(t,n.inHover),p&&pi(p,n.inHover),r,n),function(e,t,n){var i=t.__image=ld(n.image,t.__image,t,t.onload);if(i&&lp(i)){var r=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,d=o-u,h=s-c;e.drawImage(i,u,c,d,h,r,a,o,s)}else e.drawImage(i,r,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(e,t,n){var i,r,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=t.getCursor(),r=a.length;i<r;i++){var l=a[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(e,l,s,i===r-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&i&&pn(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var po=new hE,ps=new r$(100),pl=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pu(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&po.delete(e);var a=po.get(e);if(a)return a;var o=nX(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,u=0;u<pl.length;++u){var c=o[pl[u]];if(null!=c&&!n8(c)&&!n6(c)&&!n7(c)&&"boolean"!=typeof c){l=!1;break}s.push(c)}if(l){t=s.join(",")+(r?"-svg":"");var d=ps.get(t);d&&(r?e.svgElement=d:e.image=d)}var h=function e(t){if(!t||0===t.length)return[[0,0]];if(n7(t)){var n=Math.ceil(t);return[[n,n]]}for(var i=!0,r=0;r<t.length;++r)if(!n7(t[r])){i=!1;break}if(i)return e([t]);for(var a=[],r=0;r<t.length;++r)if(n7(t[r])){var n=Math.ceil(t[r]);a.push([n,n])}else{var n=n1(t[r],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n7(e)){var t=Math.ceil(e);return[t,t]}var n=n1(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n6(t))return[[t]];for(var n=!0,i=0;i<t.length;++i)if(!n6(t[i])){n=!1;break}if(n)return e([t]);for(var r=[],i=0;i<t.length;++i)n6(t[i])?r.push([t[i]]):r.push(t[i]);return r}(o.symbol),m=n1(h,function(e){return pc(e)}),g=pc(p),v=!r&&nz.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=ou(e,m[t]);for(var i=1,t=0,n=f.length;t<n;++t)i=ou(i,f[t].length);e*=i;var r=g*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(r,o.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,a=v.getContext("2d")),function(){a&&(a.clearRect(0,0,v.width,v.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-g,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var d=u/2%f.length,m=0,_=0,b=0;m<2*x.width;){for(var w=0,t=0;t<h[c].length;++t)w+=h[c][t];if(w<=0)break;if(_%2==0){var S=(1-o.symbolSize)*.5,C=m+h[c][_]*S,j=s+p[l]*S,T=h[c][_]*o.symbolSize,k=p[l]*o.symbolSize,I=b/2%f[d].length;!function(e,t,s,l,u){var c=r?1:n,d=h$(u,e*c,t*c,s*c,l*c,o.color,o.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(d);h&&y.children.push(h)}else pr(a,d)}(C,j,T,k,f[d][I])}m+=h[c][_],++b,++_===h[c].length&&(_=0)}++c===h.length&&(c=0)}s+=p[l],++u,++l===p.length&&(l=0)}}(),l&&ps.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=r?1:1/n,po.set(e,s),e.dirty=!1,s}function pc(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var pd=new iR,ph={},pp="__flagInMainProcess",pf="__pendingUpdate",pm="__needsUpdateStatus",pg=/^[a-zA-Z0-9_]+$/;function pv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:px(this,e,t)}}function py(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return px(this,e,t)}}function px(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),iR.prototype[t].apply(e,n)}var p_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nk(t,e),t}(iR),pb=p_.prototype;pb.on=py("on"),pb.off=py("off");var pw=function(e){function t(t,n,i){var r=e.call(this,new hz)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},n6(n)&&(n=pM[n]),r._dom=t,i.ssr;var a=r._zr=a7(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:io(i.useDirtyRect,!1),useCoarsePointer:io(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=function(e,t,n){var i,r,a,o,s,l=0,u=0,c=null;function d(){u=new Date().getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];i=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):r>=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}(n4(a.flush,a),17),(n=nU(n))&&cp(n,!0),r._theme=n,r._locale=function(e){if(!n6(e))return nq(nU(e),nU(l5.EN),!1);var t=l5[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nU(t):nq(nU(t),nU(l5.EN),!1)}(i.locale||l9),r._coordSysMgr=new u4;var o=r._api=Q(r);function s(e,t){return e.__prio-t.__prio}return rv(pI,s),rv(pT,s),r._scheduler=new hp(r,o,pT,pI),r._messageCenter=new p_,r._initEvents(),r.resize=n4(r.resize,r),a.animation.on("frame",r._onframe,r),$(a,r),X(a,r),r[ih]=!0,r}return nk(t,e),t.prototype._onframe=function(){if(!this._disposed){et(this);var e=this._scheduler;if(this[pf]){var t=this[pf].silent;this[pp]=!0;try{E(this),V.update.call(this,null,this[pf].updateParams)}catch(e){throw this[pp]=!1,this[pf]=null,e}this._zr.flush(),this[pp]=!1,this[pf]=null,U.call(this,t),q.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),G(this,i),e.performVisualTasks(i),J(this,this._model,r,"remain",{}),n-=new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[pp]){if(this._disposed)return void this.id;if(ie(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,a=t.transition,t=t.notMerge),this[pp]=!0,!this._model||t){var i,r,a,o=new u8(this._api),s=this._theme,l=this._model=new uZ;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:r},pk);var u={seriesTransition:a,optionChanged:!0};if(n)this[pf]={silent:i,updateParams:u},this[pp]=!1,this.getZr().wakeUp();else{try{E(this),V.update.call(this,null,u)}catch(e){throw this[pf]=null,this[pp]=!1,e}this._ssr||this._zr.flush(),this[pf]=null,this[pp]=!1,U.call(this,i),q.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nM.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nM.svgSupported){var e=this._zr;return nQ(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;nQ(t,function(e){n.eachComponent({mainType:e},function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nQ(i,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,a=1/0;if(!pz[n])return this.getDataURL(e);var o=a,s=a,l=-a,u=-a,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();nQ(pO,function(a,d){if(a.group===n){var h=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nU(e)),p=a.getDom().getBoundingClientRect();o=i(p.left,o),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}}),o*=d,s*=d,l*=d,u*=d;var h=l-o,p=u-s,f=nz.createCanvas(),m=a7(f,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lz({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),nQ(c,function(e){var t=new lk({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var g="";return nQ(c,function(e){var t=e.left-o,n=e.top-s;g+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return W(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return W(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nQ(oS(this._model,e),function(e,i){i.indexOf("Models")>=0&&nQ(e,function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=oS(this._model,e,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(i,r,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;nQ(pS,function(e){var t=function(t){var n,r=i.getModel(),a=t.target;if("globalout"===e?n={}:a&&hN(a,function(e){var t=oE(e);if(t&&null!=t.dataIndex){var i=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=n$({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&r.getComponent(o,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:u},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)}),nQ(pj,function(e,t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),nQ(["selectchanged"],function(e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var i=n.getModel();e.isFromClick?(hP("map","selectchanged",t,i,e),hP("pie","selectchanged",t,i,e)):"select"===e.fromAction?(hP("map","selected",t,i,e),hP("pie","selected",t,i,e)):"unselect"===e.fromAction&&(hP("map","unselected",t,i,e),hP("pie","unselected",t,i,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pA,""):e[pA]="");var e,t=this._api,n=this._model;nQ(this._componentsViews,function(e){e.dispose(n,t)}),nQ(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pO[this.id]},t.prototype.resize=function(e){if(!this[pp]){if(this._disposed)return void this.id;this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[pf]&&(null==i&&(i=this[pf].silent),n=!0,this[pf]=null),this[pp]=!0;try{n&&E(this),V.update.call(this,{type:"resize",animation:n$({duration:0},e&&e.animation)})}catch(e){throw this[pp]=!1,e}this[pp]=!1,U.call(this,i),q.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(ie(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pD[e]){var n=pD[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=n$({},e);return t.type=pj[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((ie(t)||(t={silent:!!t}),pC[e.type])&&this._model){if(this[pp])return void this._pendingActions.push(e);var n=t.silent;Y.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&nM.browser.weChat&&this._throttledZrFlush(),U.call(this,n),q.call(this,n)}},t.prototype.updateLabelLayout=function(){pd.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,i,r){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(e(s[l],n,i,r),r);else t.z=n,t.zlevel=i,r=Math.max(t.z2,r);if(a&&(a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+2)),o){var u=t.textGuideLineConfig;o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}(e,n,i,-1/0),!0})}}function i(e,t){t.eachRendered(function(e){if(!li(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function r(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),a=i.get("duration"),o=a>0?{duration:a,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!li(e)){if(e instanceof sk&&((n=sD(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(i=e.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),e.__dirty){var n,i,a=e.prevStates;a&&e.useStates(a)}if(r){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}E=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),B(e,!0),B(e,!1),t.plan()},B=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=oM(e.type);(c=new(t?du.getClass(d.main,d.sub):he.getClass(d.sub))).init(n,s),a[u]=c,r.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||i.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(var l=0;l<r.length;){var c=r[l];c.__alive?l++:(t||c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),r.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H=function(e,t,n,i,r){var a,o=e._model;if(o.setUpdatePayload(n),!i)return void nQ([].concat(e._componentsViews).concat(e._chartsViews),c);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}null!=u&&(a=iv(),nQ(od(u),function(e){var t=ov(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s7(n))if(t instanceof de)n.type!==sR||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var a=o_(r,t);a=(n8(a)?a[0]:a)||0;var o=r.getItemGraphicEl(a);if(!o)for(var s=r.count(),l=0;!o&&l<s;)o=r.getItemGraphicEl(l++);if(o){var u=oE(o);s2(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&s2(i,c,d,n)}}}(t,n,e._api);else{var i=s4(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,o=i.dispatchers;n.type===sR&&r&&!n.notBlur&&s3(t.mainType,t.componentIndex,e._api),o&&nQ(o,function(e){n.type===sR?sJ(e):sQ(e)})}else if(s6(n)&&t instanceof de){if(e._api,s6(n)){var s=n.dataType,l=o_(t.getData(s),n);n8(l)||(l=[l]),t[n.type===sL?"toggleSelect":n.type===sN?"select":"unselect"](l,s)}s5(t),ee(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])},e)},V={prepareAndUpdate:function(e){E(this),V.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),o.create(i,r),s.performDataProcessorTasks(i,t),G(this,i),o.update(i,r),e(i),s.performVisualTasks(i,t),K(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),pd.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var a=[];i.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=iv();i.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,i,r,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),J(this,i,r,t,{},o),pd.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),he.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),K(this,n,this._api,t,{}),pd.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(e){e.getData().clearAllVisual()}),he.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(e,r){if("series"!==e){var a=n.getViewOfComponentModel(r);a&&a.__alive&&a.updateVisual(r,i,n._api,t)}}),i.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)}),pd.trigger("afterupdate",i,this._api))},updateLayout:function(e){V.update.call(this,e)}},W=function(e,t,n,i){if(e._disposed)return void e.id;for(var r,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=oS(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(r=u[t](a,s,i)))return r}},G=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(e){i.updateStreamModes(e,n[e.__viewId])})},Y=function(e,t){var n,i=this,r=this.getModel(),a=e.type,o=e.escapeConnect,s=pC[a],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),d=null!=u[0]&&oM(u[0]);this[pp]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=n1(e.batch,function(t){return(t=nX(n$({},t),e)).batch=null,t}));var f=[],m=s6(e),g=s7(e);if(g&&s0(this._api),nQ(h,function(t){if((n=(n=s.action(t,i._model,i._api))||n$({},t)).type=l.event||n.type,f.push(n),g){var r=oC(e),a=r.queryOptionMap;H(i,c,t,r.mainTypeSpecified?a.keys()[0]:"series"),ee(i)}else m?(H(i,c,t,"series"),ee(i)):d&&H(i,c,t,d.main,d.sub)}),"none"!==c&&!g&&!m&&!d)try{this[pf]?(E(this),V.update.call(this,e),this[pf]=null):V[c].call(this,e)}catch(e){throw this[pp]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[pp]=!1,!t){var v=this._messageCenter;if(v.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],r.eachSeries(function(e){nQ(e.getAllData(),function(t){t.data;var n=t.type,i=e.getSelectedDataIndices();if(i.length>0){var r={dataIndex:i,seriesIndex:e.seriesIndex};null!=n&&(r.dataType=n),y.push(r)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(x.type,x)}}},U=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Y.call(this,n,e)}},q=function(e){e||this.trigger("updated")},$=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[pf]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},X=function(e,t){e.on("mouseover",function(e){var n,i,r,a,o,s=hN(e.target,s9);s&&(n=t._api,a=(r=s4((i=oE(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,o=r.focusSelf,a?(o&&s3(i.componentMainType,i.componentIndex,n),nQ(a,function(t){return sK(t,e)})):(s2(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&s3(i.componentMainType,i.componentIndex,n),sK(s,e)),ee(t))}).on("mouseout",function(e){var n,i,r,a=hN(e.target,s9);a&&(s0(n=t._api),(r=s4((i=oE(a)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?nQ(r,function(t){return sZ(t,e)}):sZ(a,e),ee(t))}).on("click",function(e){var n=hN(e.target,function(e){return null!=oE(e).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=oE(n);t._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},K=function(e,t,n,i,r){!function(e){var t=[],n=[],i=!1;if(e.eachComponent(function(e,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:r.componentIndex,type:e,key:s})}),i){var r,a,o=t.concat(n);rv(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nQ(o,function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)})}}(t),Z(e,t,n,i,r),nQ(e._chartsViews,function(e){e.__alive=!1}),J(e,t,n,i,r),nQ(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Z=function(e,t,a,o,s,l){nQ(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,a,o),n(s,e),r(s,e)})},J=function(e,t,a,o,s,l){var u,c,d,h,p=e._scheduler;s=n$(s||{},{updatedSeries:t.getSeries()}),pd.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,r,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,o),i(t,s),l&&l.get(t.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,r=s,a=n.get("blendMode")||null,r.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),s5(t)}),p.unfinished=f||p.unfinished,pd.trigger("series:layoutlabels",t,a,s),pd.trigger("series:transition",t,a,s),t.eachSeries(function(t){var i=e._chartsMap[t.__viewId];n(t,i),r(t,i)}),u=e,c=t,d=u._zr.storage,h=0,d.traverse(function(e){!e.isGroup&&h++}),!(h>c.get("hoverLayerThreshold"))||nM.node||nM.worker||c.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=u._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),pd.trigger("series:afterupdate",t,a,s)},ee=function(e){e[pm]=!0,e.getZr().wakeUp()},et=function(e){e[pm]&&(e.getZr().storage.traverse(function(e){li(e)||t(e)}),e[pm]=!1)},Q=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return nk(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sJ(t,n),ee(e)},n.prototype.leaveEmphasis=function(t,n){sQ(t,n),ee(e)},n.prototype.enterBlur=function(t){sq(t,sW),ee(e)},n.prototype.leaveBlur=function(t){sq(t,sG),ee(e)},n.prototype.enterSelect=function(t){sq(t,sY),ee(e)},n.prototype.leaveSelect=function(t){sq(t,sU),ee(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(u2))(e)}}(),t}(iR).prototype;pw.on=pv("on"),pw.off=pv("off"),pw.one=function(e,t,n){var i=this;this.on.call(this,e,function n(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];t&&t.apply&&t.apply(this,r),i.off(e,n)},n)};var pS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],pC={},pj={},pT=[],pk=[],pI=[],pM={},pD={},pO={},pz={},pA="_echarts_instance_";function pR(e){0>nK(pk,e)&&pk.push(e)}function pP(e,t){pH(pT,e,t,2e3)}function pN(e,t){pd.on(e,t)}function pF(e,t,n){n9(t)&&(n=t,t="");var i=ie(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),pj[t=e.event]||(ic(pg.test(i)&&pg.test(t)),pC[i]||(pC[i]={action:n,actionInfo:e}),pj[t]=i)}function pL(e,t){pH(pI,e,t,1e3,"layout")}function pE(e,t){pH(pI,e,t,3e3,"visual")}var pB=[];function pH(e,t,n,i,r){if((n9(t)||ie(t))&&(n=t,t=i),!(nK(pB,n)>=0)){pB.push(n);var a=hp.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function pV(e){return null==e?0:e.length||1}function pW(e){return e}pE(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),a=hu(e,i)(r),o=r.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=hc(e,i),l=a[s],u=n9(l)?l:null,c="auto"===a.fill||"auto"===a.stroke;if(!a[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||n9(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||n9(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=n$({},a);r[s]=u(i),t.setItemVisual(n,"style",r)}}}}),pE(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=hu(e,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){hd.option=n[i];var o=r(hd);n$(e.ensureUniqueItemVisual(t,"style"),o),hd.option.decal&&(e.setItemVisual(t,"decal",hd.option.decal),hd.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pE(4500,{performRawSeries:!0,overallReset:function(e){var t=iv();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ho(e).scope=r}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),i={},r=t.getData(),a=ho(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=hc(t,o);r.each(function(e){i[r.getRawIndex(e)]=e}),n.each(function(e){var o=i[e];if(r.getItemVisual(o,"colorFromPalette")){var l=r.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,a,c)}})}})}}),pE(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},a=!1,o=0;o<hA.length;o++){var s=hA[o],l=e.get(s);n9(l)?(a=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(n$({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=n3(r);return{dataEach:a?function(t,n){for(var i=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,r[s](i,a))}}:null}}}}}),pE(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<hR.length;i++){var r=hR[i],a=n.getShallow(r,!0);null!=a&&e.setItemVisual(t,r,a)}}:null}}}),pE(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=pu(n,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=pu(r,t))}})}),pR(cp),pP(900,function(e){var t=iv();e.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(cf)}),pD.default=function(e,t){nX(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new a5,r=new lz({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(r);var a=new lP({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lz({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return i.add(o),t.showSpinner&&((n=new d3({shape:{startAngle:-hh/2,endAngle:-hh/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*hh/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*hh/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner&&i?0:5+i/2)+(t.showSpinner?0:i/2)+(i?0:s),u=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i},pF({type:sR,event:sR,update:sR},ib),pF({type:sP,event:sP,update:sP},ib),pF({type:sN,event:sN,update:sN},ib),pF({type:sF,event:sF,update:sF},ib),pF({type:sL,event:sL,update:sL},ib),pM.light={color:hT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hT]},pM.dark=hO;var pG=function(){function e(e,t,n,i,r,a){this._old=e,this._new=t,this._oldKeyGetter=n||pW,this._newKeyGetter=i||pW,this.context=r,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=Array(e.length),r=Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var a=0;a<e.length;a++){var o=i[a],s=n[o],l=pV(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],a=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<r.length;o++){var s=r[o],l=n[s],u=i[s],c=pV(l),d=pV(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],a=pV(r);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(r[o]);else 1===a&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,a=0;a<e.length;a++){var o="_ec_"+this[i](e[a],a);if(r||(n[a]=o),t){var s=t[o],l=pV(s);0===l?(t[o]=a,r&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pY=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pU(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pq=function(e){this.otherDims={},null!=e&&n$(this,e)};var p$=ob(),pX={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pK=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pJ(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return io(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=cw(this.source),n=!(e>30),i="",r=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=pX[l]||"f",u&&(i+=u.uid),i+="$"}var h=this.source;return{dimensions:r,hash:[h.seriesLayoutBy,h.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var a=this.getSourceDimension(t);a&&(i=a.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function pZ(e){for(var t=iv(),n=0;n<(e||[]).length;n++){var i=e[n],r=ie(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function pJ(e){var t=p$(e);return t.dimNameMap||(t.dimNameMap=pZ(e.dimensionsDefine))}var pQ=ie,p1="u"<typeof Int32Array?Array:Int32Array,p0=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],p2=["_approximateExtent"],p3=function(){function e(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;e instanceof pK?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=n6(c)?new pq({name:c}):c instanceof pq?c:new pq(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(h),r[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(o[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=iv();nQ(a,function(e){f.set(r[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n7(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r,a,o,s,l,u,c,d,h,p,f,m,g=this;if(e instanceof c2&&(m=e),!m){var v=this.dimensions,y=cg(e)||nJ(e)?new cS(e,v.length):e;m=new c2;var x=n1(v,function(e){return{type:g._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(i=this,r=this._schema,o=(a={}).encode={},s=iv(),l=[],u=[],c={},nQ(i.dimensions,function(e){var t=i.getDimensionInfo(e),n=t.coordDim;if(n){var r,a=t.coordDimIndex;pU(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(r=t.type)&&"time"!==r&&(l[0]=e),pU(c,n)[a]=i.getDimensionIndex(t.name)),t.defaultTooltip&&u.push(e)}uF.each(function(e,n){var i=pU(o,n),r=t.otherDims[n];null!=r&&!1!==r&&(i[r]=t.name)})}),d=[],h={},s.each(function(e,t){var n=o[t];h[t]=n[0],d=d.concat(n)}),a.dataDimsOnCoord=d,a.dataDimIndicesOnCoord=n1(d,function(e){return i.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=h,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=u,a.userOutput=new pY(c,r),a),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,r=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=i;o<r;o++){var s=o-i;this._nameList[o]=t[s],a&&el(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==uV&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===uL&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&ie(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==i[o]&&null!=u&&(i[o]=ov(u,null));var c=l.id;null==r[o]&&null!=c&&(r[o]=ov(c,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)el(this,o);en(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){pQ(e)?n$(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=er(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return ei(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return n8(e)?i.getValues(n1(e,function(e){return n._getStoreDimIndex(e)}),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return -1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n&&n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){n9(e)&&(n=t,t=e,e=[]);var i=n||this,r=n1(ea(e),this._getStoreDimIndex,this);this._store.each(r,i?n4(t,i):t)},e.prototype.filterSelf=function(e,t,n){n9(e)&&(n=t,t=e,e=[]);var i=n||this,r=n1(ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?n4(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=n3(e),r=[];return nQ(i,function(i){var a=t._getStoreDimIndex(i);n[a]=e[i],r.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){n9(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,a=n1(ea(e),this._getStoreDimIndex,this),o=es(this);return o._store=this._store.map(a,r?n4(t,r):t),o},e.prototype.modify=function(e,t,n,i){var r=n||i||this,a=n1(ea(e),this._getStoreDimIndex,this);this._store.modify(a,r?n4(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=es(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.minmaxDownSample=function(e,t){var n=es(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=es(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new l2(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pG(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ei(e,t)},function(e){return ei(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},pQ(e)?n$(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(n8(r=this.getVisual(t))?r=r.slice():pQ(r)&&(r=n$({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,pQ(t)?n$(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){pQ(e)?n$(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?n$(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oB(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){nQ(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:n1(this.dimensions,this._getDimInfo,this),this.hostModel)),eo(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];n9(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(il(arguments)))})},e.internalField=void(en=function(e){var t=e._invertedIndicesMap;nQ(t,function(n,i){var r=e._dimInfos[i],a=r.ordinalMeta,o=e._store;if(a){n=t[i]=new p1(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(r.storeDimIndex,s)]=s}})},er=function(e,t,n){return ov(e._getCategory(t,n),null)},ei=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=er(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},ea=function(e){return n8(e)||(e=null!=e?[e]:[]),e},es=function(t){var n=new e(t._schema?t._schema:n1(t.dimensions,t._getDimInfo,t),t.hostModel);return eo(n,t),n},eo=function(e,t){nQ(p0.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nQ(p2,function(n){e[n]=nU(t[n])}),e._calculationInfo=n$({},t._calculationInfo)},el=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=i[t];if(null==o&&null!=r&&(n[t]=o=er(e,r,t)),null==s&&null!=a&&(i[t]=s=er(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),i[t]=s}}),e}();function p4(e,t){return function(e,t){cg(e)||(e=cy(e));var n,i,r,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],u=iv(),c=[],d=(n=e,i=s,r=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,a||0),nQ(i,function(e){var t;ie(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),h=t.canOmitUnusedDimensions&&d>30,p=l===e.dimensionsDefine,f=p?pJ(e):pZ(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,d));for(var g=iv(m),v=new cK(d),y=0;y<v.length;y++)v[y]=-1;function x(e){var t=v[e];if(t<0){var n=l[e],i=ie(n)?n:{name:n},r=new pq,a=i.name;null!=a&&null!=f.get(a)&&(r.name=r.displayName=a),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var o=c.length;return v[e]=o,r.storeDimIndex=e,c.push(r),r}return c[t]}if(!h)for(var y=0;y<d;y++)x(y);g.each(function(e,t){var n=od(e).slice();if(1===n.length&&!n6(n[0])&&n[0]<0)return void g.set(t,!1);var i=g.set(t,[]);nQ(n,function(e,n){var r=n6(e)?f.get(e):e;null!=r&&r<d&&(i[n]=r,b(x(r),t,n))})});var _=0;function b(e,t,n){null!=uF.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,u.set(t,!0))}nQ(s,function(e){if(n6(e))r=e,i={};else{var t,n,i,r=(i=e).name,a=i.ordinalMeta;i.ordinalMeta=null,(i=n$({},i)).ordinalMeta=a,t=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var o=g.get(r);if(!1!==o){if(!(o=od(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;_<d&&null!=x(_).coordDim;)_++;_<d&&o.push(_++)}nQ(o,function(e,a){var o=x(e);if(p&&null!=i.type&&(o.type=i.type),b(nX(o,i),r,a),null==o.name&&t){var s=t[a];ie(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nX(o.otherDims,n)})}});var w=t.generateCoord,S=t.generateCoordCount,C=null!=S;S=w?S||1:0;var j=w||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(h)nQ(c,function(e){T(e)}),c.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var k=0;k<d;k++){var I=x(k);null==I.coordDim&&(I.coordDim=function(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}(j,u,C),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),T(I),null==I.type&&(1===uU(e,k)||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(e){for(var t=iv(),n=0;n<e.length;n++){var i=e[n],r=i.name,a=t.get(r)||0;a>0&&(i.name=r+(a-1)),a++,t.set(r,a)}}(c),new pK({source:e,dimensions:c,fullDimensionCount:d,dimensionOmitted:h})}(e,t).dimensions}var p5=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();oP(p5);var p8=0,p9=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++p8}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&n1(i,p6);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n6(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=iv(this.categories))},e}();function p6(e){return ie(e)&&null!=e.value?e.value:e+""}function p7(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function fe(e,t){return e>=t[0]&&e<=t[1]}function ft(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function fn(e,t){return e*(t[1]-t[0])+t[0]}var fi=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new p9({})),n8(i)&&(i=new p9({categories:n1(i,function(e){return ie(e)?e.value:e})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return nk(t,e),t.prototype.parse=function(e){return null==e?NaN:n6(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return fe(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return ft(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(fn(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null==e){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);r<o;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<a;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(p5);p5.registerClass(fi);var fr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return nk(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fe(e,this._extent)},t.prototype.normalize=function(e){return ft(e,this._extent)},t.prototype.scale=function(e){return fn(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=on(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!t)return a;n[0]<i[0]&&(e?a.push({value:ot(i[0]-t,r)}):a.push({value:n[0]}));for(var o=i[0];o<=i[1]&&(a.push({value:o}),(o=ot(o+t,r))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:i[1];return n[1]>s&&(e?a.push({value:ot(s+t,r)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var a=t[r],o=t[r-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var c=ot(o.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=on(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=ot(e.value,n,!0);if(isNaN(os(i)))return n6(i)?i:"-";var r=(i+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a,o,s,l,u,c,d=(s=e,u=(l={}).interval=oo((i[1]-i[0])/s,!0),null!=t&&u<t&&(u=l.interval=t),null!=n&&u>n&&(u=l.interval=n),c=l.intervalPrecision=on(u)+2,a=l.niceTickExtent=[ot(Math.ceil(i[0]/u)*u,c),ot(Math.floor(i[1]/u)*u,c)],o=i,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p7(a,0,o),p7(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=d.intervalPrecision,this._interval=d.interval,this._niceExtent=d.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=ot(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=ot(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(p5);p5.registerClass(fr);var fa=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},fo=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return nk(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return uo(e.value,ut[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ua(this._minLevelUnit))]||ut.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,r){var a=null;if(n6(n))a=n;else if(n9(n))a=n(e.value,t,{level:e.level});else{var o=n$({},l7);if(e.level>0)for(var s=0;s<un.length;++s)o[un[s]]="{primary|"+o[un[s]]+"}";var l=n?!1===n.inherit?n:nX(n,o):o,u=us(e.value,r);if(l[u])a=l[u];else if(l.inherit){for(var c=ui.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(n8(a)){var d=null==e.level?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return uo(new Date(e.value),a,r,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=function(e,t,n,i){for(var r=0,a=[],o=[],s=0,l=0,u=0;u<ui.length&&r++<1e4;++u){var c,d=ua(ui[u]);if((c=ui[u])===ua(c)&&(!function(e,r,a){var o=[],s=!r.length;if(!function(e,t,n,i){var r=or(t),a=or(n),o=function(e){return ul(r,e,i)===ul(a,e,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(ua(e),i[0],i[1],n)){s&&(r=[{value:function(e,t,n){var i=new Date(e);switch(ua(t)){case"year":case"month":i[ug(n)](0);case"day":i[uv(n)](1);case"hour":i[uy(n)](0);case"minute":i[ux(n)](0);case"second":i[u_(n)](0),i[ub(n)](0)}return i.getTime()}(new Date(i[0]),e,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var u=r[l].value,c=r[l+1].value;if(u!==c){var d,h,p,f=void 0,m=void 0,g=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=uu(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(d=t/2592e6)>6?6:d>3?3:d>2?2:1,m=uc(n),g=ug(n);break;case"week":case"half-week":case"day":f=(h=t/864e5)>16?16:h>7.5?7:h>3.5?4:h>1.5?2:1,m=ud(n),g=uv(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=uh(n),g=uy(n);break;case"minute":f=fl(t,!0),m=up(n),g=ux(n);break;case"second":f=fl(t,!1),m=uf(n),g=u_(n);break;case"millisecond":f=oo(t,!0),m=um(n),g=ub(n)}!function(e,t,n,r,a,o,s){for(var l=new Date(t),u=t,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}(f,u,c,m,g,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(ui[u],a[a.length-1]||[],o),d!==(ui[u+1]?ua(ui[u+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var h=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(h.push(o[p]),f>=i[0]&&f<=i[1]&&s++)}var m=(i[1]-i[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(h),s>m||e===ui[u]))break}o=[]}}for(var g=n2(n1(a,function(e){return n2(e,function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd})}),function(e){return e.length>0}),v=[],y=g.length-1,u=0;u<g.length;++u)for(var x=g[u],_=0;_<x.length;++_)v.push({value:x[_].value,level:y-u});v.sort(function(e,t){return e.value-t.value});for(var b=[],u=0;u<v.length;++u)(0===u||v[u].value!==v[u-1].value)&&b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(r)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=fs.length,o=Math.min(fa(fs,this._approxInterval,0,a),a-1);this._interval=fs[o][1],this._minLevelUnit=fs[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n7(e)?e:+or(e)},t.prototype.contain=function(e){return fe(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ft(this.parse(e),this._extent)},t.prototype.scale=function(e){return fn(e,this._extent)},t.type="time",t}(fr),fs=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function fl(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}p5.registerClass(fo);var fu=p5.prototype,fc=fr.prototype,fd=Math.floor,fh=Math.ceil,fp=Math.pow,ff=Math.log,fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new fr,t._interval=0,t}return nk(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return n1(fc.getTicks.call(this,e),function(e){var t=e.value,r=ot(fp(this.base,t));return r=t===n[0]&&this._fixMin?ot(r,on(i[0])):r,{value:r=t===n[1]&&this._fixMax?ot(r,on(i[1])):r}},this)},t.prototype.setExtent=function(e,t){var n=ff(this.base);e=ff(Math.max(0,e))/n,t=ff(Math.max(0,t))/n,fc.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,i=fu.getExtent.call(this);i[0]=fp(n,i[0]),i[1]=fp(n,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=(e=i[0],ot(e,on(r[0])))),this._fixMax&&(i[1]=(t=i[1],ot(t,on(r[1])))),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=ff(e[0])/ff(t),e[1]=ff(e[1])/ff(t),fu.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var i=Math.pow(10,oa(n));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[ot(fh(t[0]/i)*i),ot(fd(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){fc.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fe(e=ff(e)/ff(this.base),this._extent)},t.prototype.normalize=function(e){return ft(e=ff(e)/ff(this.base),this._extent)},t.prototype.scale=function(e){return e=fn(e,this._extent),fp(this.base,e)},t.type="log",t}(p5),fg=fm.prototype;function fv(e,t,n){this._prepareParams(e,t,n)}fg.getMinorTicks=fc.getMinorTicks,fg.getLabel=fc.getLabel,p5.registerClass(fm),fv.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=t.get("min",!0);null==r&&(r=t.get("startValue",!0));var a=this._modelMinRaw=r;n9(a)?this._modelMinNum=f_(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=f_(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(n9(o)?this._modelMaxNum=f_(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=f_(e,o)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=n8(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aX(l[0],1),aX(l[1],1)]}},fv.prototype.calculate=function(){var e,t,n=this._isOrdinal,i=this._dataMin,r=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:r-i||Math.abs(i),l="dataMin"===this._modelMinRaw?i:this._modelMinNum,u="dataMax"===this._modelMaxRaw?r:this._modelMaxNum,c=null!=l,d=null!=u;null==l&&(l=n?a?0:NaN:i-o[0]*s),null==u&&(u=n?a?a-1:NaN:r+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var h=(e=l)!=e||(t=u)!=t||n&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,c=!0),null!=f&&(u=f,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:h}},fv.prototype.modifyDataMinMax=function(e,t){this[fx[e]]=t},fv.prototype.setDeterminedMinMax=function(e,t){this[fy[e]]=t},fv.prototype.freeze=function(){this.frozen=!0};var fy={min:"_determinedMin",max:"_determinedMax"},fx={min:"_dataMin",max:"_dataMax"};function f_(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function fb(){}function fw(e,t){var n;return function(e,t,n,i,r){n=n||lr;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||lr).rich;if(n){t=t||{};for(var i=n3(n),r=0;r<i.length;r++)t[i[r]]=1}e=e.parentModel}return t}(t);if(l){for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);ll(a[u]={},c,s,n,i,r,!1,!0)}}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),ll(e,t,s,n,i,r,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}fb.prototype.getNeedCrossZero=function(){return!this.option.scale},fb.prototype.getCoordSysModel=function(){};var fS=[];function fC(){var e=null!==oU&&oU.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}nk(fC,oU),fC.prototype.traverse=function(e,t){e.call(t,this)},fC.prototype.useStyle=function(){this.style={}},fC.prototype.getCursor=function(){return this._cursor},fC.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fC.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fC.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fC.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fC.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fC.prototype.getDisplayables=function(){return this._displayables},fC.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fC.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},fC.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},fC.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ri(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(fS)),e.union(i)}this._rect=e}return this._rect},fC.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(e,t))return!0}return!1};var fj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return nk(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),sk.prototype.getBoundingRect.call(this)},t}(sk),fT=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function fk(e){var t=de.extend(e);return de.registerClass(t),t}function fI(e){var t=he.extend(e);return he.registerClass(t),t}nk(function(e,t,n,i,r,a){var o=j.call(this,r)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=a||!1,o},j=fT),nk(function(e,t,n,i,r){var a=T.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=r||!1,a},T=fT);var fM=[],fD={registerPreprocessor:pR,registerProcessor:pP,registerPostInit:function(e){pN("afterinit",e)},registerPostUpdate:function(e){pN("afterupdate",e)},registerUpdateLifecycle:pN,registerAction:pF,registerCoordinateSystem:function(e,t){u4.register(e,t)},registerLayout:pL,registerVisual:pE,registerTransform:function(e){var t=(e=nU(e)).type;t||cF("");var n=t.split(":");2!==n.length&&cF("");var i=!1;"echarts"===n[0]&&(t=n[1],i=!0),e.__isBuiltIn=i,cY.set(t,e)},registerLoading:function(e,t){pD[e]=t},registerMap:function(e,t,n){var i=ph.registerMap;i&&i(e,t,n)},registerImpl:function(e,t){ph[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uO,ComponentView:du,SeriesModel:de,ChartView:he,registerComponentModel:function(e){uO.registerClass(e)},registerComponentView:function(e){du.registerClass(e)},registerSeriesModel:function(e){de.registerClass(e)},registerChartView:function(e){he.registerClass(e)},registerSubTypeDefaulter:function(e,t){uO.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a8[e]=t}};function fO(e){n8(e)?nQ(e,function(e){fO(e)}):nK(fM,e)>=0||(fM.push(e),n9(e)&&(e={install:e}),e.install(fD))}var fz=2*Math.PI,fA=sp.CMD,fR=["top","right","bottom","left"];function fP(e,t,n,i,r,a,o,s){var l=n-e,u=i-t,c=Math.sqrt(l*l+u*u),d=((r-e)*(l/=c)+(a-t)*(u/=c))/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var h=o[0]=e+d*l,p=o[1]=t+d*u;return Math.sqrt((h-r)*(h-r)+(p-a)*(p-a))}function fN(e,t,n,i,r,a,o){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=o[0]=Math.min(Math.max(r,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var fF=[],fL=new i4,fE=new i4,fB=new i4,fH=new i4,fV=new i4;function fW(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=r.candidates||fR,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),d=c&&i3([],c),h=t.get("length2")||0;u&&fB.copy(u);for(var p=0;p<o.length;p++){!function(e,t,n,i,r){var a=n.width,o=n.height;switch(e){case"top":i.set(n.x+a/2,n.y-0),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+0),r.set(0,1);break;case"left":i.set(n.x-0,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+0,n.y+o/2),r.set(1,0)}}(o[p],0,s,fL,fH),i4.scaleAndAdd(fE,fL,fH,h),fE.transform(d);var f=e.getBoundingRect(),m=u?u.distance(fE):e instanceof sk?function(e,t,n){for(var i,r,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var m=u;switch(f){case fA.M:s=c[p++],l=c[p++],a=s,o=l;break;case fA.L:m=fP(a,o,c[p],c[p+1],d,h,fF,!0),a=c[p++],o=c[p++];break;case fA.C:m=rF(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,fF),a=c[p++],o=c[p++];break;case fA.Q:m=rV(a,o,c[p++],c[p++],c[p],c[p+1],d,h,fF),a=c[p++],o=c[p++];break;case fA.A:var g=c[p++],v=c[p++],y=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*y+g,r=Math.sin(_)*x+v,p<=1&&(s=i,l=r);var S=(d-g)*x/y+g;m=function(e,t,n,i,r,a,o,s,l){var u=Math.sqrt((o-=e)*o+(s-=t)*s),c=(o/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(i-r)%fz<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var h=i;i=sg(r),r=sg(h)}else i=sg(i),r=sg(r);i>r&&(r+=fz);var p=Math.atan2(s,o);if(p<0&&(p+=fz),p>=i&&p<=r||p+fz>=i&&p+fz<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,m=n*Math.sin(i)+t,g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(g-o)*(g-o)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(x))}(g,v,x,_,_+b,w,S,h,fF),a=Math.cos(_+b)*y+g,o=Math.sin(_+b)*x+v;break;case fA.R:m=fN(s=a=c[p++],l=o=c[p++],c[p++],c[p++],d,h,fF);break;case fA.Z:m=fP(a,o,s,l,d,h,fF,!0),a=s,o=l}m<u&&(u=m,n.set(fF[0],fF[1]))}return u}(fE,e.path,fB):function(e,t,n){var i=fN(t.x,t.y,t.width,t.height,e.x,e.y,fF);return n.set(fF[0],fF[1]),i}(fE,f,fB);m<l&&(l=m,fE.transform(c),fB.transform(c),fB.toArray(a[0]),fE.toArray(a[1]),fL.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fL.fromArray(e[0]),fE.fromArray(e[1]),fB.fromArray(e[2]),i4.sub(fH,fL,fE),i4.sub(fV,fB,fE);var n=fH.len(),i=fV.len();if(!(n<.001)&&!(i<.001)&&(fH.scale(1/n),fV.scale(1/i),Math.cos(t)<fH.dot(fV))){var r=fP(fE.x,fE.y,fB.x,fB.y,fL.x,fL.y,fG,!1);fY.fromArray(fG),fY.scaleAndAdd(fV,r/Math.tan(Math.PI-t));var a=fB.x!==fE.x?(fY.x-fE.x)/(fB.x-fE.x):(fY.y-fE.y)/(fB.y-fE.y);if(isNaN(a))return;a<0?i4.copy(fY,fE):a>1&&i4.copy(fY,fB),fY.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fG=[],fY=new i4;function fU(e,t,n,i){var r="normal"===n,a=r?e:e.ensureState(n);a.ignore=t;var o=i.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):a.style=s}function fq(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=iT(i[0],i[1]),a=iT(i[1],i[2]);if(!r||!a){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var o=Math.min(r,a)*n,s=iI([],i[1],i[0],o/r),l=iI([],i[1],i[2],o/a),u=iI([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}var f$=[0,0],fX=[0,0],fK=new i4,fZ=new i4,fJ=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i4;for(var n=0;n<2;n++)this._axes[n]=new i4;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,a=e.y,o=r+e.width,s=a+e.height;if(n[0].set(r,a),n[1].set(o,a),n[2].set(o,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);i4.sub(i[0],n[1],n[0]),i4.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return(fK.set(1/0,1/0),fZ.set(0,0),!this._intersectCheckOneSide(this,e,fK,fZ,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,fK,fZ,i,-1)&&(n=!1,i))?n:(i||i4.copy(t,n?fK:fZ),n)},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,f$),this._getProjMinMaxOnAxis(s,t._corners,fX),f$[1]<fX[0]||f$[0]>fX[1]){if(o=!1,r)return o;var u=Math.abs(fX[0]-f$[1]),c=Math.abs(f$[0]-fX[1]);Math.min(u,c)>i.len()&&(u<c?i4.scale(i,l,-u*a):i4.scale(i,l,c*a))}else if(n){var u=Math.abs(fX[0]-f$[1]),c=Math.abs(f$[0]-fX[1]);Math.min(u,c)<n.len()&&(u<c?i4.scale(n,l,u*a):i4.scale(n,l,-c*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,a=t[0].dot(i)+r[e],o=a,s=a,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}();function fQ(e,t,n,i,r,a){var o,s,l,u=e.length;if(!(u<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var c=0,d=!1,h=[],p=0,f=0;f<u;f++){var m=e[f],g=m.rect;(o=g[t]-c)<0&&(g[t]-=o,m.label[t]-=o,d=!0);var v=Math.max(-o,0);h.push(v),p+=v,c=g[t]+g[n]}p>0&&a&&w(-p/u,0,u);var y=e[0],x=e[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&C(-s),l<0&&C(l),d}function _(){s=y.rect[t]-i,l=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,u);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(d=!0);for(var a=i;a<r;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function S(i,r){for(var a=[],o=0,s=1;s<u;s++){var l=e[s-1].rect,c=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(c),o+=c}if(o){var d=Math.min(Math.abs(i)/o,r);if(i>0)for(var s=0;s<u-1;s++){var h=a[s]*d;w(h,0,s+1)}else for(var s=u-1;s>0;s--){var h=a[s-1]*d;w(-h,s,u)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(u-1)),i=0;i<u-1;i++)if(t>0?w(n,0,i+1):w(-n,u-i-1,u),(e-=n)<=0)return}}var f1=["align","verticalAlign","width","height","fontSize"],f0=new aH,f2=ob(),f3=ob();function f4(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var f5=["x","y","rotation"],f8=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var a,o=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();ri.applyTransform(u,u,l),l?f0.setLocalTransform(l):(f0.x=f0.y=f0.rotation=f0.originX=f0.originY=0,f0.scaleX=f0.scaleY=1),f0.rotation=sg(f0.rotation);var c=i.__hostTarget;if(c){a=c.getBoundingRect().plain();var d=c.getComputedTransform();ri.applyTransform(a,a,d)}var h=a&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:f0.x,y:f0.y,scaleX:f0.scaleX,scaleY:f0.scaleY,rotation:f0.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(n9(i)||n3(i).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var r=e.getTextContent(),a=oE(e);r&&!r.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,r,i)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],a=r.label,o=a.__hostTarget,s=r.defaultAttr,l=void 0;l=(l=n9(r.layoutOption)?r.layoutOption(function(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(i&&i.shape.points)}}(r,o)):r.layoutOption)||{},r.computedLayoutOption=l;var u=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(a.x=oe(l.x,t),a.setStyle("x",0),c=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=oe(l.y,n),a.setStyle("y",0),c=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var d=o.getTextGuideLine();d&&(d.setShape({points:l.labelLinePoints}),c=!1)}f2(a).needsUpdateLabelLine=c,a.rotation=null!=l.rotate?l.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var h=0;h<f1.length;h++){var p=f1[h];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=r.seriesModel;null!=r.dataIndex&&(f=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),a.on("drag",function(e,t){return function(){fW(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,a=r.getComputedTransform(),o=r.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=r.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new fJ(o,a):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:o,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),r=n2(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=n2(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});fQ(r,"x","width",0,t,void 0),fQ(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new ri(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var a=e[r],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fJ(f.localRect,f.transform)),d||(d=new fJ(s,l)),d.intersect(f.obb)))){h=!0;break}}h?(i(u),c&&i(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(n2(i,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nQ(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!i,o=t.getTextContent();!a&&o&&(a=f2(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=oE(e),r=i.dataIndex;if(n&&null!=r){var a=t.getData(i.dataType),o=a.getItemModel(r),s={},l=a.getItemVisual(r,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var u=o.getModel("labelLine");!function(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(!r){i&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=r.ignore,l=0;l<sA.length;l++){var u=sA[l],c=t[u],d="normal"===u;if(c){var h=c.get("show");if((d?s:io(r.states[u]&&r.states[u].ignore,s))||!io(h,o)){var p=d?i:i&&i.states[u];p&&(p.ignore=!0),i&&fU(i,!0,u,c);continue}!i&&(i=new d$,e.setTextGuideLine(i),d||!s&&o||fU(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),fU(i,!1,u,c)}}if(i){nX(i.style,n),i.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=fq}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<sz.length;i++){var r=sz[i];n[r]=e.getModel([r,t])}return n}(o),s),fW(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!li(e))){var r=f2(n),a=r.oldLayout,o=oE(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(a){n.attr(a);var c=e.prevStates;c&&(nK(c,"select")>=0&&n.attr(r.oldLayoutSelect),nK(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),lt(n,l,t,s)}else if(n.attr(l),!lu(n).valueAnimation){var d=io(n.style.opacity,1);n.style.opacity=0,ln(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};f4(h,l,f5),f4(h,n.states.select,f5)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};f4(p,l,f5),f4(p,n.states.emphasis,f5)}var f=lu(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,g=io(f.interpolatedValue,f.prevValue),v=f.value;n.percent=0,(null==f.prevValue?ln:lt)(n,{percent:1},t,s,null,function(e){var i=function(e,t,n,i,r){var a=null==t||"auto"===t;if(null==i)return i;if(n7(i)){var o,s=(i-(o=n||0))*r+o;return ot(s,a?Math.max(on(n||0),on(i)):t)}if(n6(i))return r<1?n:i;for(var l=[],u=Math.max(n?n.length:0,i.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)l[c]=(r<1&&n?n:i)[c];else{var h=n&&n[c]?n[c]:0,p=i[c],s=(p-h)*r+h;l[c]=ot(s,a?Math.max(on(h),on(p)):t)}}return l}(u,f.precision,g,v,e);f.interpolatedValue=1===e?null:i,function(e,t){for(var n=0;n<sz.length;n++){var i=sz[n],r=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=r}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}(n,function(e,t,n){var i,r=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=n9(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:i},u=0;u<sz.length;u++){var c=sz[u],d=t[c];l[c]=io(r?r.getFormattedLabel(a,c,null,o,d&&d.get("formatter")):null,i)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(i):i+""},f.statesModels,i))})}}if(i&&!i.ignore&&!i.invisible){var r=f3(i),a=r.oldLayout,y={points:i.shape.points};a?(i.attr({shape:a}),lt(i,{shape:y},t)):(i.setShape(y),i.style.strokePercent=0,ln(i,{style:{strokePercent:1}},t)),r.oldLayout=y}},e}(),f9=ob();function f6(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=f9(t).labelManager;i||(i=f9(t).labelManager=new f8),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=f9(t).labelManager;n.updatedSeries.forEach(function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}function f7(e,t,n){var i=nz.createCanvas(),r=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=a*n,i}fO(f6);var me=function(e){function t(t,n,i){var r,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,i=i||az,"string"==typeof t?r=f7(t,n,i):ie(t)&&(t=(r=t).id),a.id=t,a.dom=r;var o=r.style;return o&&(ix(r),r.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=i,a}return nk(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f7("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,a=[],o=this.maxRepaintRectCount,s=!1,l=new ri(0,0,0,0);function u(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new ri(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new ri(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<i&&(i=f,r=u)}}if(s&&(a[r].union(e),n=!0),!n){var t=new ri(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,i,!0,!0),p=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=t[c],h=d&&d.shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&u(p)}}do{r=!1;for(var c=0;c<a.length;){if(a[c].isZero()){a.splice(c,1);continue}for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(r=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(r);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,a=i.width,o=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/u,o/u));var d=this.domBack;function h(e,n,i,a){if(r.clearRect(e,n,i,a),t&&"transparent"!==t){var o=void 0;ia(t)?(o=(t.global||t.__width===i&&t.__height===a)&&t.__canvasGradient||hK(r,t,{x:0,y:0,width:i,height:a}),t.__canvasGradient=o,t.__width=i,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,o=h8(r,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=o||t,r.fillRect(e,n,i,a),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,e,n,i,a),r.restore())}!n||s?h(0,0,a,o):n.length&&nQ(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(iR),mt=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=n$({},n||{}),this.dpr=n.devicePixelRatio||az,this._singleCanvas=r,this.root=e,e.style&&(ix(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(r){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var u=new me(e,this,this.dpr);u.__builtin__=!0,u.initContext(),o[314159]=u,u.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=hJ(e,0,n),this._height=hJ(e,1,n);var c,d,h,p=this._domRoot=(c=this._width,d=this._height,(h=document.createElement("div")).style.cssText=["position:relative","width:"+c+"px","height:"+d+"px","padding:0;margin:0;border-width:0"].join(";")+";",h);e.appendChild(p)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var a=i[r],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===r?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t,n=e.length,i=this._hoverlayer;if(i&&i.clear(),n){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),t||(t=i.ctx).save(),pa(t,o,r,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){pr(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),a=r.finished,o=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;I(function(){s._paintList(e,t,n,i)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,d=this,h=0;h<r.length;h++)!function(o){var s,l=r[o],h=l.ctx,p=a&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,g=m&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-g>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)}(h);return nM.wxa&&nQ(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,i,r,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(pa(o,e,r,a),e.setPrevPaintRect(s))}else pa(o,e,r,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new me("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nq(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nq(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,o=null,s=-1;if(!n[e]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){if(r>0&&e>i[0]){for(s=0;s<r-1&&(!(i[s]<e)||!(i[s+1]>e));s++);o=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__&&e.call(t,a,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__||e.call(t,a,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,i,r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(i=0;i<e.length;i++){var a=e[i],l=a.zlevel,u=void 0;n!==l&&(n=l,s=0),a.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),u.__builtin__||nY("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&a.__dirty&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,nQ(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nq(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];(r===e||r===e+.01)&&nq(this._layers[r],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(nK(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=hJ(r,0,i),t=hJ(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new me("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++)pa(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nk(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new c3(this),c4(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),c4(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:uG},t}(uO),mi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nk(t,e),t.type="dataset",t}(du);fO([function(e){e.registerPainter("canvas",mt)},function(e){e.registerComponentModel(mn),e.registerComponentView(mi)}]),fO(f6),fk({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new p3(p4(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fI({type:"wordCloud",render:function(e,t,n){var i=this.group;i.removeAll();var r=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=r.getItemModel(o),u=new lP({style:fw(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});u.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:r.getItemVisual(o,"style").fill,fontSize:n}),i.add(u),r.setItemGraphicEl(o,u),u.ensureState("emphasis").style=fw(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),u.ensureState("blur").style=fw(l.getModel(["blur","textStyle"]),{state:"blur"}),s8(u,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),u.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},u.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var i=parseInt(n.data.substr(t.length),36);e[i]&&(e[i](),e[i]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var i=e.length;return e.push(n),window.postMessage(t+i.toString(36),"*"),i}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var mr=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),ma=function(){if(mr){for(var e,t,n=document.createElement("canvas").getContext("2d"),i=20;i;){if(n.font=i.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return i+1;e=n.measureText("W").width,t=n.measureText("m").width,i--}return 0}}(),mo=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},ms=function(e){for(var t,n,i=e.length;i;)t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n;return e},ml={},mu=function(e,t){if(mr){var n,i,r,a,o,s,l,u,c,d=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var h={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in h&&(h[p]=t[p]);if("function"!=typeof h.weightFactor){var f=h.weightFactor;h.weightFactor=function(e){return e*f}}if("function"!=typeof h.shape)switch(h.shape){case"circle":default:h.shape="circle";break;case"cardioid":h.shape=function(e){return 1-Math.sin(e)};break;case"diamond":h.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":h.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":h.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":h.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":h.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":h.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}h.gridSize=Math.max(Math.floor(h.gridSize),4);var m=h.gridSize,g=m-h.maskGapWidth,v=Math.abs(h.maxRotation-h.minRotation),y=Math.min(h.maxRotation,h.minRotation),x=h.rotationStep;switch(h.color){case"random-dark":l=function(){return N(10,50)};break;case"random-light":l=function(){return N(50,90)};break;default:"function"==typeof h.color&&(l=h.color)}"function"==typeof h.fontWeight&&(u=h.fontWeight);var _=null;"function"==typeof h.classes&&(_=h.classes);var b=!1,w=[],S=function(e){var t,n,i=e.currentTarget,r=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-r.left,o=n-r.top,s=Math.floor(a*(i.width/r.width||1)/m),l=Math.floor(o*(i.height/r.height||1)/m);return w[s]?w[s][l]:null},C=function(e){var t=S(e);if(c!==t){if(c=t,!t)return void h.hover(void 0,void 0,e);h.hover(t.item,t.dimension,e)}},j=function(e){var t=S(e);t&&(h.click(t.item,t.dimension,e),e.preventDefault())},T=[],k=function(e){if(T[e])return T[e];var t=8*e,n=t,i=[];for(0===e&&i.push([a[0],a[1],0]);n--;){var r=1;"circle"!==h.shape&&(r=h.shape(n/t*2*Math.PI)),i.push([a[0]+e*r*Math.cos(-n/t*2*Math.PI),a[1]+e*r*Math.sin(-n/t*2*Math.PI)*h.ellipticity,n/t*2*Math.PI])}return T[e]=i,i},I=function(){return h.abortThreshold>0&&new Date().getTime()-s>h.abortThreshold},M=function(e,t,n,i){var r,a,o,s,l=h.weightFactor(t);if(l<=h.minSize)return!1;var c=1;l<ma&&(c=function(){for(var e=2;e*l<ma;)e+=2;return e}()),r=u?u(e,t,l,i):h.fontWeight;var d=document.createElement("canvas"),p=d.getContext("2d",{willReadFrequently:!0});p.font=r+" "+(l*c).toString(10)+"px "+h.fontFamily;var f=p.measureText(e).width/c,g=Math.max(l*c,p.measureText("m").width,p.measureText("W").width)/c,v=f+2*g,y=3*g,x=Math.ceil(v/m),_=Math.ceil(y/m),b=-f/2,w=-(.4*g),S=Math.ceil(((v=x*m)*Math.abs(Math.sin(n))+(y=_*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((v*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),j=C*m,T=S*m;d.setAttribute("width",j),d.setAttribute("height",T),p.scale(1/c,1/c),p.translate(j*c/2,T*c/2),p.rotate(-n),p.font=r+" "+(l*c).toString(10)+"px "+h.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,b*c,(w+.5*l)*c);var k=p.getImageData(0,0,j,T).data;if(I())return!1;for(var M=[],D=C,O=[S/2,C/2,S/2,C/2];D--;)for(a=S;a--;){s=m;n:for(;s--;)for(o=m;o--;)if(k[((a*m+s)*j+(D*m+o))*4+3]){M.push([D,a]),D<O[3]&&(O[3]=D),D>O[1]&&(O[1]=D),a<O[0]&&(O[0]=a),a>O[2]&&(O[2]=a);break n}}return{mu:c,occupied:M,bounds:O,gw:C,gh:S,fillTextOffsetX:b,fillTextOffsetY:w,fillTextWidth:f,fillTextHeight:g,fontSize:l}},D=function(e,t,a,o,s){for(var l=s.length;l--;){var u=e+s[l][0],c=t+s[l][1];if(u>=i||c>=r||u<0||c<0){if(!h.drawOutOfBound)return!1;continue}if(!n[u][c])return!1}return!0},O=function(t,n,i,r,a,o,s,c,d,p){var f,g,v,y=i.fontSize;f=l?l(r,a,y,o,s,p):h.color,g=u?u(r,a,y,p):h.fontWeight,v=_?_(r,a,y,p):h.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=i.mu;a.save(),a.scale(1/o,1/o),a.font=g+" "+(y*o).toString(10)+"px "+h.fontFamily,a.fillStyle=f,a.translate((t+i.gw/2)*m*o,(n+i.gh/2)*m*o),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(r,i.fillTextOffsetX*o,(i.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-c/Math.PI*180+"deg) ",1!==i.mu&&(l+="translateX(-"+i.fillTextWidth/4+"px) scale("+1/i.mu+")");var u={position:"absolute",display:"block",font:g+" "+y*i.mu+"px "+h.fontFamily,left:(t+i.gw/2)*m+i.fillTextOffsetX+"px",top:(n+i.gh/2)*m+i.fillTextOffsetY+"px",width:i.fillTextWidth+"px",height:i.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(u.color=f),s.textContent=r,u)s.style[p]=u[p];if(d)for(var x in d)s.setAttribute(x,d[x]);v&&(s.className+=v),e.appendChild(s)}})},z=function(t,a,o,s,l){t>=i||a>=r||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,g,g),b&&(w[t][a]={item:l,dimension:s}))},A=function(t,n,a,o,s,l){var u,c,d=s.occupied,p=h.drawMask;if(p&&((u=e[0].getContext("2d")).save(),u.fillStyle=h.maskColor),b){var f=s.bounds;c={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var g=d.length;g--;){var v=t+d[g][0],y=n+d[g][1];v>=i||y>=r||v<0||y<0||z(v,y,p,c,l)}p&&u.restore()},R=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,u=0===h.rotateRatio||Math.random()>h.rotateRatio?0:0===v?y:y+Math.round(Math.random()*v/x)*x,c=mo(t),d=M(a,s,u,c);if(!d||I())return!1;if(!h.drawOutOfBound&&!h.shrinkToFit){var p=d.bounds;if(p[1]-p[3]+1>i||p[2]-p[0]+1>r)return!1}for(var f=o+1;f--;){var m=k(o-f);h.shuffle&&ms(m=[].concat(m));for(var g=0;g<m.length;g++){var _=function(e){var n=Math.floor(e[0]-d.gw/2),i=Math.floor(e[1]-d.gh/2),r=d.gw,h=d.gh;return!!D(n,i,r,h,d.occupied)&&(O(n,i,d,a,s,o-f,e[2],u,l,c),A(n,i,r,h,d,t),{gx:n,gy:i,rot:u,info:d})}(m[g]);if(_)return _}}return h.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},P=function(t,n,i){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:i||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:i||{}});e.dispatchEvent(n)},this)};!function(){var t,l,u=e[0];if(u.getContext)i=Math.ceil(u.width/m),r=Math.ceil(u.height/m);else{var p=u.getBoundingClientRect();i=Math.ceil(p.width/m),r=Math.ceil(p.height/m)}if(P("wordcloudstart",!0)){if(a=h.origin?[h.origin[0]/m,h.origin[1]/m]:[i/2,r/2],o=Math.floor(Math.sqrt(i*i+r*r)),n=[],!u.getContext||h.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=h.backgroundColor,t.clearRect(0,0,i*(m+1),r*(m+1)),t.fillRect(0,0,i*(m+1),r*(m+1))}else e.textContent="",e.style.backgroundColor=h.backgroundColor,e.style.position="relative"}),f=i;f--;)for(n[f]=[],g=r;g--;)n[f][g]=!0;else{var f,g,v,y,x,_=document.createElement("canvas").getContext("2d");_.fillStyle=h.backgroundColor,_.fillRect(0,0,1,1);var S=_.getImageData(0,0,1,1).data,T=u.getContext("2d").getImageData(0,0,i*m,r*m).data;for(f=i;f--;)for(n[f]=[],g=r;g--;){x=m;n:for(;x--;)for(y=m;y--;)for(v=4;v--;)if(T[((g*m+x)*i*m+(f*m+y))*4+v]!==S[v]){n[f][g]=!1;break n}!1!==n[f][g]&&(n[f][g]=!0)}T=_=S=void 0}if(h.hover||h.click){for(b=!0,f=i+1;f--;)w[f]=[];h.hover&&u.addEventListener("mousemove",C),h.click&&(u.addEventListener("click",j),u.addEventListener("touchstart",j),u.addEventListener("touchend",function(e){e.preventDefault()}),u.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),u.addEventListener("wordcloudstart",function e(){u.removeEventListener("wordcloudstart",e),u.removeEventListener("mousemove",C),u.removeEventListener("click",j),c=void 0})}v=0;var k=!0;h.layoutAnimation?0!==h.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){k=!1});var M=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},D=function e(){M("wordcloudstart",e),l(ml[d])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",D),ml[d]=(h.layoutAnimation?t:setTimeout)(function e(){if(k){if(v>=h.list.length){l(ml[d]),P("wordcloudstop",!1),M("wordcloudstart",D),delete ml[d];return}s=new Date().getTime();var n=R(h.list[v],0),i=!P("wordclouddrawn",!0,{item:h.list[v],drawn:n});if(I()||i){l(ml[d]),h.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),M("wordcloudstart",D);return}v++,ml[d]=t(e,h.wait)}},h.wait)}}()}function N(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(mu.isSupported=mr,mu.minFontSize=ma,!mu.isSupported)throw Error("Sorry your browser not support wordCloud");pL(function(e,t){e.eachSeriesByType("wordCloud",function(n){var i,r,a,o,s=function(e,t,n){n=iu(n||0);var i=t.width,r=t.height,a=oe(e.left,i),o=oe(e.top,r),s=oe(e.right,i),l=oe(e.bottom,r),u=oe(e.width,i),c=oe(e.height,r),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-h-a),isNaN(c)&&(c=r-l-d-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=i-s-u-h),isNaN(o)&&(o=r-l-c-d),e.left||e.right){case"center":a=i/2-u/2-n[3];break;case"right":a=i-u-h}switch(e.top||e.bottom){case"middle":case"center":o=r/2-c/2-n[0];break;case"bottom":o=r-c-d}a=a||0,o=o||0,isNaN(u)&&(u=i-h-a-(s||0)),isNaN(c)&&(c=r-d-o-(l||0));var f=new ri(a+n[3],o+n[0],u,c);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),u=n.get("maskImage"),c=u?u.width/u.height:1;l&&(i=s,r=c,a=i.width,a>(o=i.height)*r?(i.x+=(a-o*r)/2,i.width=o*r):(i.y+=(o-a/r)/2,i.height=a/r));var d=n.getData(),h=document.createElement("canvas");h.width=s.width,h.height=s.height;var p=h.getContext("2d");if(u)try{p.drawImage(u,0,0,h.width,h.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),i=t.createImageData(n),r=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];r+=l,++a}}for(var u=r/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>u?(i.data[o]=0,i.data[o+1]=0,i.data[o+2]=0,i.data[o+3]=0):(i.data[o]=255,i.data[o+1]=255,i.data[o+2]=255,i.data[o+3]=255)}t.putImageData(i,0,0)}(h)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),g=d.getDataExtent("value"),v=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}mu(h,{list:d.mapArray("value",function(e,t){var n,i,r,a,o,s,l,u,c,h=d.getItemModel(t);return[d.getName(t),h.get("textStyle.fontSize",!0)||(n=e,i=g,r=f,a=i[0],o=i[1],s=r[0],l=r[1],u=o-a,c=l-s,0===u?0===c?s:(s+l)/2:n===a?s:n===o?l:(n-a)/u*c+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*v,maxRotation:m[1]*v,clearCanvas:!u,rotateRatio:1,rotationStep:n.get("rotationStep")*v,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),h.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){h.removeEventListener("wordclouddrawn",x),h.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pR(function(e){var t=(e||{}).series;n8(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(e){e&&nQ(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nQ(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};i(t.normal),i(t.emphasis)}})}),fk({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new p3(p4(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let mc=(k={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var i=t.phase/Math.PI/2*t.waveLength,r=t.cx-t.radius+i-2*t.radius;e.moveTo(r,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,u,c,d=o%4,h=(s=o*t.waveLength/4,l=d,u=t.waveLength,c=t.amplitude,0===l?[[s+.5*u/Math.PI/2,c/2],[s+.5*u/Math.PI,c],[s+u/4,c]]:1===l?[[s+.5*u/Math.PI/2*(Math.PI-2),c],[s+.5*u/Math.PI/2*(Math.PI-1),c/2],[s+u/4,0]]:2===l?[[s+.5*u/Math.PI/2,-c/2],[s+.5*u/Math.PI,-c],[s+u/4,-c]]:[[s+.5*u/Math.PI/2*(Math.PI-2),-c],[s+.5*u/Math.PI/2*(Math.PI-1),-c/2],[s+u/4,0]]);e.bezierCurveTo(h[0][0]+r,-h[0][1]+t.waterLevel,h[1][0]+r,-h[1][1]+t.waterLevel,h[2][0]+r,-h[2][1]+t.waterLevel),o===n-1&&(a=h[2][0])}t.inverse?(e.lineTo(a+r,t.cy-t.radiusY),e.lineTo(r,t.cy-t.radiusY)):(e.lineTo(a+r,t.cy+t.radiusY),e.lineTo(r,t.cy+t.radiusY)),e.lineTo(r,t.waterLevel),e.closePath()}},sk.extend(k));function md(e){return e&&0===e.indexOf("path://")}fI({type:"liquidFill",render:function(e,t,n){var i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S=this,C=this.group;C.removeAll();var j=e.getData(),T=j.getItemModel(0),k=T.get("center"),I=T.get("radius"),M=n.getWidth(),D=n.getHeight(),O=Math.min(M,D),z=0,A=0,R=e.get("outline.show");R&&(z=e.get("outline.borderDistance"),A=oe(e.get("outline.itemStyle.borderWidth"),O));var P=oe(k[0],M),N=oe(k[1],D),F=!1,L=e.get("shape");"container"===L?(F=!0,b=[(_=[M/2,D/2])[0]-A/2,_[1]-A/2],w=[oe(z,M),oe(z,D)],I=[Math.max(b[0]-w[0],0),Math.max(b[1]-w[1],0)]):I=Math.max((b=(_=oe(I,O)/2)-A/2)-(w=oe(z,O)),0),R&&(Y().style.lineWidth=A,C.add(Y()));var E=F?0:P-I,B=F?0:N-I,H=null;C.add(((i=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.fill=null,i.z2=5,(r=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.stroke=null,(a=new a5).add(i),a.add(r),a));var V=this._data,W=[];function G(e,t){if(L)if(md(L)){var n=d5(L.slice(7),{}),i=n.getBoundingRect(),r=i.width,a=i.height;r>a?(a=2*e/r*a,r=2*e):(r=2*e/a*r,a=2*e);var o=t?0:P-r/2,s=t?0:N-a/2;return n=d5(L.slice(7),{},new ri(o,s,r,a)),t&&(n.x=-r/2,n.y=-a/2),n}else if(F){var l=t?-e[0]:P-e[0],u=t?-e[1]:N-e[1];return h$("rect",l,u,2*e[0],2*e[1])}else{var l=t?-e:P-e,u=t?-e:N-e;return"pin"===L?u+=e:"arrow"===L&&(u-=e),h$(L,l,u,2*e,2*e)}return new dT({shape:{cx:t?0:P,cy:t?0:N,r:e}})}function Y(){var t=G(_);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function U(t,n,i){var r=F?I[0]:I,a=F?D/2:I,o=j.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),u=oe(o.get("amplitude"),2*a),c=oe(o.get("waveLength"),2*r),d=a-j.get("value",t)*a*2;l=i?i.shape.phase:"auto"===l?t*Math.PI/4:l;var h=s.getItemStyle();if(!h.fill){var p=e.get("color"),f=t%p.length;h.fill=p[f]}var m=new mc({shape:{waveLength:c,radius:r,radiusY:a,cx:2*r,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:n},style:h,x:P,y:N});m.shape._waterLevel=d;var g=o.getModel("emphasis.itemStyle").getItemStyle();g.lineWidth=0,m.ensureState("emphasis").style=g,s8(m);var v=G(I,!0);return v.setStyle({fill:"white"}),m.setClipPath(v),m}function q(e,t,n){var i,r=j.getItemModel(e),a=r.get("period"),o=r.get("direction"),s=j.get("value",e),l=r.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var u=0;u="auto"===a?0===(i=j.count())?5e3:5e3*(.2+(i-e)/i*.8):"function"==typeof a?a(s,e):a;var c=0;"right"===o||null==o?c=Math.PI:"left"===o?c=-Math.PI:"none"===o?c=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&r.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(u/2,{phase:c+l}).when(u,{phase:2*c+l}).during(function(){H&&H.dirty(!0)}).start()}j.diff(V).add(function(t){var n=U(t,!1),i=n.shape.waterLevel;n.shape.waterLevel=F?D/2:I,ln(n,{shape:{waterLevel:i}},e),n.z2=2,q(t,n,null),C.add(n),j.setItemGraphicEl(t,n),W.push(n)}).update(function(t,n){for(var i=V.getItemGraphicEl(n),r=U(t,!1,i),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];r.shape.hasOwnProperty(l)&&(a[l]=r.shape[l])}for(var u={},c=["fill","opacity","shadowBlur","shadowColor"],s=0;s<c.length;++s){var l=c[s];r.style.hasOwnProperty(l)&&(u[l]=r.style[l])}F&&(a.radiusY=D/2),lt(i,{shape:a,x:r.x,y:r.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?lt(i,{style:u},e):i.useStyle(u);var d=i.getClipPath(),h=r.getClipPath();i.setClipPath(r.getClipPath()),i.shape.inverse=r.inverse,d&&h&&S._shape===L&&!md(L)&<(h,{shape:d.shape},e,{isFrom:!0}),q(t,i,i),C.add(i),j.setItemGraphicEl(t,i),W.push(i)}).remove(function(e){var t=V.getItemGraphicEl(e);C.remove(t)}).execute(),T.get("label.show")&&C.add((o=W,c=T.getModel("label"),d={z2:10,shape:{x:E,y:B,width:(F?I[0]:I)*2,height:(F?I[1]:I)*2},style:{fill:"transparent"},textConfig:{position:c.get("position")||"inside"},silent:!0},Object.assign((h={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*j.get("value",0),u=j.getName(0)||e.name,isNaN(l)||(u=l.toFixed(0)+"%"),null==s?u:s),textAlign:c.get("align"),textVerticalAlign:c.get("baseline")}}).style,fw(c)),p=new lz(d),(f=new lz(d)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lP(h),g=new lP(h),p.setTextContent(m),f.setTextContent(g),v=c.get("insideColor"),g.style.fill=v,(y=new a5).add(p),y.add(f),x=G(I,!0),(H=new fj({shape:{paths:o},x:P,y:N})).setClipPath(x),f.setClipPath(H),y)),this._shape=L,this._data=j},dispose:function(){}});var mh=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"65","size":"550","name":"新疆维吾尔自治区","cp":[84.9023,42.148],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7588],[96.416,42.7148],[95.9766,42.4951],[96.0645,42.3193],[96.2402,42.2314],[95.9766,41.9238],[95.2734,41.6162],[95.1855,41.792],[94.5703,41.4844],[94.043,41.0889],[93.8672,40.6934],[93.0762,40.6494],[92.6367,39.6387],[92.373,39.3311],[92.373,39.1113],[92.373,39.0234],[90.1758,38.4961],[90.3516,38.2324],[90.6152,38.3203],[90.5273,37.8369],[91.0547,37.4414],[91.3184,37.0898],[90.7031,36.7822],[90.791,36.6064],[91.0547,36.5186],[91.0547,36.0791],[90.8789,36.0352],[90,36.2549],[89.9121,36.0791],[89.7363,36.0791],[89.209,36.2988],[88.7695,36.3428],[88.5938,36.4746],[87.3633,36.4307],[86.2207,36.167],[86.1328,35.8594],[85.6055,35.6836],[85.0781,35.7275],[84.1992,35.376],[83.1445,35.4199],[82.8809,35.6836],[82.4414,35.7275],[82.002,35.332],[81.6504,35.2441],[80.4199,35.4199],[80.2441,35.2881],[80.332,35.1563],[80.2441,35.2002],[79.8926,34.8047],[79.8047,34.4971],[79.1016,34.4531],[79.0137,34.3213],[78.2227,34.7168],[78.0469,35.2441],[78.0469,35.5078],[77.4316,35.4639],[76.8164,35.6396],[76.5527,35.8594],[76.2012,35.8154],[75.9375,36.0352],[76.0254,36.4746],[75.8496,36.6943],[75.498,36.7383],[75.4102,36.958],[75.0586,37.002],[74.8828,36.9141],[74.7949,37.0459],[74.5313,37.0898],[74.5313,37.2217],[74.8828,37.2217],[75.1465,37.4414],[74.8828,37.5732],[74.9707,37.749],[74.8828,38.4521],[74.3555,38.6719],[74.1797,38.6719],[74.0918,38.54],[73.8281,38.584],[73.7402,38.8477],[73.8281,38.9795],[73.4766,39.375],[73.916,39.5068],[73.916,39.6826],[73.8281,39.7705],[74.0039,40.0342],[74.8828,40.3418],[74.7949,40.5176],[75.2344,40.4297],[75.5859,40.6494],[75.7617,40.2979],[76.377,40.3857],[76.9043,41.001],[77.6074,41.001],[78.1348,41.2207],[78.1348,41.3965],[80.1563,42.0557],[80.2441,42.2754],[80.1563,42.627],[80.2441,42.8467],[80.5078,42.8906],[80.4199,43.0664],[80.7715,43.1982],[80.4199,44.165],[80.4199,44.6045],[79.9805,44.8242],[79.9805,44.9561],[81.7383,45.3955],[82.0898,45.2197],[82.5293,45.2197],[82.2656,45.6592],[83.0566,47.2412],[83.6719,47.0215],[84.7266,47.0215],[84.9023,46.8896],[85.5176,47.0654],[85.6934,47.2852],[85.5176,48.1201],[85.7813,48.4277],[86.5723,48.5596],[86.8359,48.8232],[86.748,48.9551],[86.8359,49.1309],[87.8027,49.1748],[87.8906,48.999],[87.7148,48.9111],[88.0664,48.7354],[87.9785,48.6035],[88.5059,48.3838],[88.6816,48.1641],[89.1211,47.9883],[89.5605,48.0322],[89.7363,47.8564],[90.0879,47.8564],[90.3516,47.6807],[90.5273,47.2412],[90.8789,46.9775],[91.0547,46.582],[90.8789,46.3184],[91.0547,46.0107],[90.7031,45.7471],[90.7031,45.5273],[90.8789,45.2197],[91.582,45.0879],[93.5156,44.9561],[94.7461,44.3408],[95.3613,44.2969],[95.3613,44.0332],[95.5371,43.9014],[95.8887,43.2422],[96.3281,42.9346],[96.416,42.7588]]]}},{"type":"Feature","properties":{"id":"54","size":"550","name":"西藏自治区","cp":[87.8695,31.6846],"childNum":7},"geometry":{"type":"Polygon","coordinates":[[[79.0137,34.3213],[79.1016,34.4531],[79.8047,34.4971],[79.8926,34.8047],[80.2441,35.2002],[80.332,35.1563],[80.2441,35.2881],[80.4199,35.4199],[81.6504,35.2441],[82.002,35.332],[82.4414,35.7275],[82.8809,35.6836],[83.1445,35.4199],[84.1992,35.376],[85.0781,35.7275],[85.6055,35.6836],[86.1328,35.8594],[86.2207,36.167],[87.3633,36.4307],[88.5938,36.4746],[88.7695,36.3428],[89.209,36.2988],[89.7363,36.0791],[89.3848,36.0352],[89.4727,35.9033],[89.7363,35.7715],[89.7363,35.4199],[89.4727,35.376],[89.4727,35.2441],[89.5605,34.8926],[89.8242,34.8486],[89.7363,34.6729],[89.8242,34.3652],[89.6484,34.0137],[90.0879,33.4863],[90.7031,33.1348],[91.4063,33.1348],[91.9336,32.8271],[92.1973,32.8271],[92.2852,32.7393],[92.9883,32.7393],[93.5156,32.4756],[93.7793,32.5635],[94.1309,32.4316],[94.6582,32.6074],[95.1855,32.4316],[95.0098,32.2998],[95.1855,32.3438],[95.2734,32.2119],[95.3613,32.168],[95.3613,31.9922],[95.4492,31.8164],[95.8008,31.6846],[95.9766,31.8164],[96.1523,31.5967],[96.2402,31.9482],[96.5039,31.7285],[96.8555,31.6846],[96.7676,31.9922],[97.2949,32.0801],[97.3828,32.5635],[97.7344,32.5195],[98.1738,32.3438],[98.4375,31.8604],[98.877,31.4209],[98.6133,31.2012],[98.9648,30.7617],[99.1406,29.2676],[98.9648,29.1357],[98.9648,28.8281],[98.7891,28.8721],[98.7891,29.0039],[98.7012,28.916],[98.6133,28.5205],[98.7891,28.3447],[98.7012,28.2129],[98.3496,28.125],[98.2617,28.3887],[98.1738,28.125],[97.5586,28.5205],[97.2949,28.0811],[97.3828,27.9053],[97.0313,27.7295],[96.5039,28.125],[95.7129,28.2568],[95.3613,28.125],[95.2734,27.9492],[94.2188,27.5537],[93.8672,27.0264],[93.6035,26.9385],[92.1094,26.8506],[92.0215,27.4658],[91.582,27.5537],[91.582,27.9053],[91.4063,28.0371],[91.0547,27.8613],[90.7031,28.0811],[89.8242,28.2129],[89.6484,28.1689],[89.1211,27.5977],[89.1211,27.334],[89.0332,27.2021],[88.7695,27.4219],[88.8574,27.9932],[88.6816,28.125],[88.1543,27.9053],[87.8906,27.9492],[87.7148,27.8174],[87.0996,27.8174],[86.748,28.125],[86.5723,28.125],[86.4844,27.9053],[86.1328,28.125],[86.0449,27.9053],[85.6934,28.3447],[85.6055,28.2568],[85.166,28.3447],[85.166,28.6523],[84.9023,28.5645],[84.4629,28.7402],[84.2871,28.8721],[84.1992,29.2236],[84.1113,29.2676],[83.584,29.1797],[83.2324,29.5752],[82.1777,30.0586],[82.0898,30.3223],[81.3867,30.3662],[81.2109,30.0146],[81.0352,30.2344],[80.0684,30.5859],[79.7168,30.9375],[79.0137,31.0693],[78.75,31.333],[78.8379,31.5967],[78.6621,31.8164],[78.75,31.9043],[78.4863,32.124],[78.3984,32.5195],[78.75,32.6953],[78.9258,32.3438],[79.2773,32.5635],[79.1016,33.1787],[78.6621,33.6621],[78.6621,34.1016],[78.9258,34.1455],[79.0137,34.3213]]]}},{"type":"Feature","properties":{"id":"15","size":"450","name":"内蒙古自治区","cp":[112.5977,46.3408],"childNum":12},"geometry":{"type":"Polygon","coordinates":[[[97.207,42.8027],[99.4922,42.583],[100.8105,42.6709],[101.7773,42.4951],[102.041,42.2314],[102.7441,42.1436],[103.3594,41.8799],[103.8867,41.792],[104.502,41.8799],[104.502,41.6602],[105.0293,41.5723],[105.7324,41.9238],[107.4023,42.4512],[109.4238,42.4512],[110.3906,42.7588],[111.0059,43.3301],[111.9727,43.6816],[111.9727,43.8135],[111.4453,44.3848],[111.7969,45],[111.9727,45.0879],[113.6426,44.7363],[114.1699,44.9561],[114.5215,45.3955],[115.6641,45.4395],[116.1914,45.7031],[116.2793,45.9668],[116.543,46.2744],[117.334,46.3623],[117.4219,46.582],[117.7734,46.5381],[118.3008,46.7578],[118.7402,46.7139],[118.916,46.7578],[119.0918,46.6699],[119.707,46.626],[119.9707,46.7139],[119.707,47.1973],[118.4766,47.9883],[117.8613,48.0322],[117.334,47.6807],[116.8066,47.9004],[116.1914,47.8564],[115.9277,47.6807],[115.5762,47.9004],[115.4883,48.1641],[115.8398,48.252],[115.8398,48.5596],[116.7188,49.834],[117.7734,49.5264],[118.5645,49.9219],[119.2676,50.0977],[119.3555,50.3174],[119.1797,50.3613],[119.5313,50.7568],[119.5313,50.8887],[119.707,51.0645],[120.1465,51.6797],[120.6738,51.9434],[120.7617,52.1191],[120.7617,52.251],[120.5859,52.3389],[120.6738,52.5146],[120.4102,52.6465],[120.0586,52.6025],[120.0586,52.7344],[120.8496,53.2617],[121.4648,53.3496],[121.8164,53.042],[121.2012,52.5586],[121.6406,52.4268],[121.7285,52.2949],[121.9922,52.2949],[122.168,52.5146],[122.6953,52.251],[122.6074,52.0752],[122.959,51.3281],[123.3105,51.2402],[123.6621,51.3721],[124.3652,51.2842],[124.541,51.3721],[124.8926,51.3721],[125.0684,51.6357],[125.332,51.6357],[126.0352,51.0205],[125.7715,50.7568],[125.7715,50.5371],[125.332,50.1416],[125.1563,49.834],[125.2441,49.1748],[124.8047,49.1309],[124.4531,48.1201],[124.2773,48.5156],[122.4316,47.373],[123.0469,46.7139],[123.3984,46.8896],[123.3984,46.9775],[123.4863,46.9775],[123.5742,46.8457],[123.5742,46.8896],[123.5742,46.6699],[123.0469,46.582],[123.2227,46.2305],[122.7832,46.0107],[122.6953,45.7031],[122.4316,45.8789],[122.2559,45.791],[121.8164,46.0107],[121.7285,45.7471],[121.9043,45.7031],[122.2559,45.2637],[122.0801,44.8682],[122.3438,44.2529],[123.1348,44.4727],[123.4863,43.7256],[123.3105,43.5059],[123.6621,43.374],[123.5742,43.0225],[123.3105,42.9785],[123.1348,42.8027],[122.7832,42.7148],[122.3438,42.8467],[122.3438,42.6709],[121.9922,42.7148],[121.7285,42.4512],[121.4648,42.4951],[120.498,42.0996],[120.1465,41.7041],[119.8828,42.1875],[119.5313,42.3633],[119.3555,42.2754],[119.2676,41.7041],[119.4434,41.6162],[119.2676,41.3086],[118.3887,41.3086],[118.125,41.748],[118.3008,41.792],[118.3008,42.0996],[118.125,42.0557],[117.9492,42.2314],[118.0371,42.4072],[117.7734,42.627],[117.5098,42.583],[117.334,42.4512],[116.8945,42.4072],[116.8066,42.0117],[116.2793,42.0117],[116.0156,41.792],[115.9277,41.9238],[115.2246,41.5723],[114.9609,41.6162],[114.873,42.0996],[114.5215,42.1436],[114.1699,41.792],[114.2578,41.5723],[113.9063,41.4404],[113.9941,41.2207],[113.9063,41.1328],[114.082,40.7373],[114.082,40.5176],[113.8184,40.5176],[113.5547,40.3418],[113.2031,40.3857],[112.7637,40.166],[112.3242,40.2539],[111.9727,39.5947],[111.4453,39.6387],[111.3574,39.4189],[111.0938,39.375],[111.0938,39.5947],[110.6543,39.2871],[110.127,39.4629],[110.2148,39.2871],[109.8633,39.2432],[109.9512,39.1553],[108.9844,38.3203],[109.0723,38.0127],[108.8965,37.9688],[108.8086,38.0127],[108.7207,37.7051],[108.1934,37.6172],[107.666,37.8809],[107.3145,38.1006],[106.7871,38.1885],[106.5234,38.3203],[106.9629,38.9795],[106.7871,39.375],[106.3477,39.2871],[105.9082,38.7158],[105.8203,37.793],[104.3262,37.4414],[103.4473,37.8369],[103.3594,38.0127],[103.5352,38.1445],[103.4473,38.3643],[104.2383,38.9795],[104.0625,39.4189],[103.3594,39.3311],[103.0078,39.1113],[102.4805,39.2432],[101.8652,39.1113],[102.041,38.8916],[101.7773,38.6719],[101.3379,38.7598],[101.25,39.0234],[100.9863,38.9355],[100.8105,39.4189],[100.5469,39.4189],[100.0195,39.7705],[99.4922,39.8584],[100.1074,40.2539],[100.1953,40.6494],[99.9316,41.001],[99.2285,40.8691],[99.0527,40.6934],[98.9648,40.7813],[98.7891,40.6055],[98.5254,40.7373],[98.6133,40.6494],[98.3496,40.5615],[98.3496,40.9131],[97.4707,41.4844],[97.8223,41.6162],[97.8223,41.748],[97.207,42.8027]]]}},{"type":"Feature","properties":{"id":"63","size":"800","name":"青海省","cp":[95.2402,35.4199],"childNum":8},"geometry":{"type":"Polygon","coordinates":[[[89.7363,36.0791],[89.9121,36.0791],[90,36.2549],[90.8789,36.0352],[91.0547,36.0791],[91.0547,36.5186],[90.791,36.6064],[90.7031,36.7822],[91.3184,37.0898],[91.0547,37.4414],[90.5273,37.8369],[90.6152,38.3203],[90.3516,38.2324],[90.1758,38.4961],[92.373,39.0234],[92.373,39.1113],[93.1641,39.1992],[93.1641,38.9795],[93.6914,38.9355],[93.8672,38.7158],[94.3066,38.7598],[94.5703,38.3643],[95.0098,38.4082],[95.4492,38.2764],[95.7129,38.3643],[96.2402,38.1006],[96.416,38.2324],[96.6797,38.1885],[96.6797,38.4521],[97.1191,38.584],[97.0313,39.1992],[98.1738,38.8037],[98.3496,39.0234],[98.6133,38.9355],[98.7891,39.0674],[99.1406,38.9355],[99.8438,38.3643],[100.1953,38.2764],[100.0195,38.4521],[100.1074,38.4961],[100.459,38.2764],[100.7227,38.2324],[101.1621,37.8369],[101.5137,37.8809],[101.7773,37.6172],[101.9531,37.7051],[102.1289,37.4414],[102.5684,37.1777],[102.4805,36.958],[102.6563,36.8262],[102.5684,36.7383],[102.832,36.3428],[103.0078,36.2549],[102.9199,36.0791],[102.9199,35.9033],[102.6563,35.7715],[102.832,35.5957],[102.4805,35.5957],[102.3047,35.4199],[102.3926,35.2002],[101.9531,34.8486],[101.9531,34.6289],[102.2168,34.4092],[102.1289,34.2773],[101.6895,34.1016],[100.9863,34.3652],[100.8105,34.2773],[101.25,33.6621],[101.5137,33.7061],[101.6016,33.5303],[101.7773,33.5303],[101.6895,33.3105],[101.7773,33.2227],[101.6016,33.1348],[101.1621,33.2227],[101.25,32.6953],[100.7227,32.6514],[100.7227,32.5195],[100.3711,32.7393],[100.1074,32.6514],[100.1074,32.8711],[99.8438,33.0029],[99.7559,32.7393],[99.2285,32.915],[99.2285,33.0469],[98.877,33.1787],[98.4375,34.0576],[97.8223,34.1895],[97.6465,34.1016],[97.7344,33.9258],[97.3828,33.8818],[97.4707,33.5742],[97.7344,33.3984],[97.3828,32.8711],[97.4707,32.6953],[97.7344,32.5195],[97.3828,32.5635],[97.2949,32.0801],[96.7676,31.9922],[96.8555,31.6846],[96.5039,31.7285],[96.2402,31.9482],[96.1523,31.5967],[95.9766,31.8164],[95.8008,31.6846],[95.4492,31.8164],[95.3613,31.9922],[95.3613,32.168],[95.2734,32.2119],[95.1855,32.3438],[95.0098,32.2998],[95.1855,32.4316],[94.6582,32.6074],[94.1309,32.4316],[93.7793,32.5635],[93.5156,32.4756],[92.9883,32.7393],[92.2852,32.7393],[92.1973,32.8271],[91.9336,32.8271],[91.4063,33.1348],[90.7031,33.1348],[90.0879,33.4863],[89.6484,34.0137],[89.8242,34.3652],[89.7363,34.6729],[89.8242,34.8486],[89.5605,34.8926],[89.4727,35.2441],[89.4727,35.376],[89.7363,35.4199],[89.7363,35.7715],[89.4727,35.9033],[89.3848,36.0352],[89.7363,36.0791]]]}},{"type":"Feature","properties":{"id":"51","size":"900","name":"四川省","cp":[101.9199,30.1904],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[101.7773,33.5303],[101.8652,33.5742],[101.9531,33.4424],[101.8652,33.0908],[102.4805,33.4424],[102.2168,33.9258],[102.9199,34.3213],[103.0957,34.1895],[103.1836,33.7939],[104.1504,33.6182],[104.2383,33.3984],[104.4141,33.3105],[104.3262,33.2227],[104.4141,33.0469],[104.3262,32.8711],[104.4141,32.7393],[105.2051,32.6074],[105.3809,32.7393],[105.3809,32.8711],[105.4688,32.915],[105.5566,32.7393],[106.084,32.8711],[106.084,32.7393],[106.3477,32.6514],[107.0508,32.6953],[107.1387,32.4756],[107.2266,32.4316],[107.4023,32.5195],[108.0176,32.168],[108.2813,32.2559],[108.5449,32.2119],[108.3691,32.168],[108.2813,31.9043],[108.5449,31.6846],[108.1934,31.5088],[107.9297,30.8496],[107.4902,30.8496],[107.4023,30.7617],[107.4902,30.6299],[107.0508,30.0146],[106.7871,30.0146],[106.6113,30.3223],[106.2598,30.1904],[105.8203,30.4541],[105.6445,30.2783],[105.5566,30.1025],[105.7324,29.8828],[105.293,29.5313],[105.4688,29.3115],[105.7324,29.2676],[105.8203,28.96],[106.2598,28.8721],[106.3477,28.5205],[105.9961,28.7402],[105.6445,28.4326],[105.9082,28.125],[106.1719,28.125],[106.3477,27.8174],[105.6445,27.6416],[105.5566,27.7734],[105.293,27.7295],[105.2051,27.9932],[105.0293,28.0811],[104.8535,27.9053],[104.4141,27.9492],[104.3262,28.0371],[104.4141,28.125],[104.4141,28.2568],[104.2383,28.4326],[104.4141,28.6084],[103.8867,28.6523],[103.7988,28.3008],[103.4473,28.125],[103.4473,27.7734],[102.9199,27.29],[103.0078,26.3672],[102.6563,26.1914],[102.5684,26.3672],[102.1289,26.1035],[101.8652,26.0596],[101.6016,26.2354],[101.6895,26.3672],[101.4258,26.5869],[101.4258,26.8066],[101.4258,26.7188],[101.1621,27.0264],[101.1621,27.1582],[100.7227,27.8613],[100.3711,27.8174],[100.2832,27.7295],[100.0195,28.125],[100.1953,28.3447],[99.668,28.8281],[99.4043,28.5205],[99.4043,28.1689],[99.2285,28.3008],[99.1406,29.2676],[98.9648,30.7617],[98.6133,31.2012],[98.877,31.4209],[98.4375,31.8604],[98.1738,32.3438],[97.7344,32.5195],[97.4707,32.6953],[97.3828,32.8711],[97.7344,33.3984],[97.4707,33.5742],[97.3828,33.8818],[97.7344,33.9258],[97.6465,34.1016],[97.8223,34.1895],[98.4375,34.0576],[98.877,33.1787],[99.2285,33.0469],[99.2285,32.915],[99.7559,32.7393],[99.8438,33.0029],[100.1074,32.8711],[100.1074,32.6514],[100.3711,32.7393],[100.7227,32.5195],[100.7227,32.6514],[101.25,32.6953],[101.1621,33.2227],[101.6016,33.1348],[101.7773,33.2227],[101.6895,33.3105],[101.7773,33.5303]]]}},{"type":"Feature","properties":{"id":"23","size":"700","name":"黑龙江省","cp":[126.1445,48.7156],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[121.4648,53.3496],[123.6621,53.5693],[124.8926,53.0859],[125.0684,53.2178],[125.5957,53.0859],[125.6836,52.9102],[126.123,52.7783],[126.0352,52.6025],[126.2109,52.5146],[126.3867,52.2949],[126.3867,52.207],[126.5625,52.1631],[126.4746,51.9434],[126.9141,51.3721],[126.8262,51.2842],[127.002,51.3281],[126.9141,51.1084],[127.2656,50.7568],[127.3535,50.2734],[127.6172,50.2295],[127.5293,49.8779],[127.793,49.6143],[128.7598,49.5703],[129.1113,49.3506],[129.4629,49.4385],[130.2539,48.8672],[130.6934,48.8672],[130.5176,48.6475],[130.8691,48.2959],[130.6934,48.1201],[131.0449,47.6807],[132.5391,47.7246],[132.627,47.9443],[133.0664,48.1201],[133.5059,48.1201],[134.209,48.3838],[135.0879,48.4277],[134.7363,48.252],[134.5605,47.9883],[134.7363,47.6807],[134.5605,47.4609],[134.3848,47.4609],[134.209,47.2852],[134.209,47.1533],[133.8574,46.5381],[133.9453,46.2744],[133.5059,45.835],[133.418,45.5713],[133.2422,45.5273],[133.0664,45.1318],[132.8906,45.0439],[131.9238,45.3516],[131.5723,45.0439],[131.0449,44.8682],[131.3086,44.0771],[131.2207,43.7256],[131.3086,43.4619],[130.8691,43.418],[130.5176,43.6377],[130.3418,43.9893],[129.9902,43.8574],[129.9023,44.0332],[129.8145,43.9014],[129.2871,43.8135],[129.1992,43.5938],[128.8477,43.5498],[128.4961,44.165],[128.4082,44.4727],[128.0566,44.3408],[128.0566,44.1211],[127.7051,44.1211],[127.5293,44.6045],[127.0898,44.6045],[127.002,44.7803],[127.0898,45],[126.9141,45.1318],[126.5625,45.2637],[126.0352,45.1758],[125.7715,45.3076],[125.6836,45.5273],[125.0684,45.3955],[124.8926,45.5273],[124.3652,45.4395],[124.0137,45.7471],[123.9258,46.2305],[123.2227,46.2305],[123.0469,46.582],[123.5742,46.6699],[123.5742,46.8896],[123.5742,46.8457],[123.4863,46.9775],[123.3984,46.9775],[123.3984,46.8896],[123.0469,46.7139],[122.4316,47.373],[124.2773,48.5156],[124.4531,48.1201],[124.8047,49.1309],[125.2441,49.1748],[125.1563,49.834],[125.332,50.1416],[125.7715,50.5371],[125.7715,50.7568],[126.0352,51.0205],[125.332,51.6357],[125.0684,51.6357],[124.8926,51.3721],[124.541,51.3721],[124.3652,51.2842],[123.6621,51.3721],[123.3105,51.2402],[122.959,51.3281],[122.6074,52.0752],[122.6953,52.251],[122.168,52.5146],[121.9922,52.2949],[121.7285,52.2949],[121.6406,52.4268],[121.2012,52.5586],[121.8164,53.042],[121.4648,53.3496]]]}},{"type":"Feature","properties":{"id":"62","size":"690","name":"甘肃省","cp":[99.7129,38.166],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7148],[97.207,42.8027],[97.8223,41.748],[97.8223,41.6162],[97.4707,41.4844],[98.3496,40.9131],[98.3496,40.5615],[98.6133,40.6494],[98.5254,40.7373],[98.7891,40.6055],[98.9648,40.7813],[99.0527,40.6934],[99.2285,40.8691],[99.9316,41.001],[100.1953,40.6494],[100.1074,40.2539],[99.4922,39.8584],[100.0195,39.7705],[100.5469,39.4189],[100.8105,39.4189],[100.9863,38.9355],[101.25,39.0234],[101.3379,38.7598],[101.7773,38.6719],[102.041,38.8916],[101.8652,39.1113],[102.4805,39.2432],[103.0078,39.1113],[103.3594,39.3311],[104.0625,39.4189],[104.2383,38.9795],[103.4473,38.3643],[103.5352,38.1445],[103.3594,38.0127],[103.4473,37.8369],[104.3262,37.4414],[104.5898,37.4414],[104.5898,37.2217],[104.8535,37.2217],[105.293,36.8262],[105.2051,36.6943],[105.4688,36.123],[105.293,35.9912],[105.3809,35.7715],[105.7324,35.7275],[105.8203,35.5518],[105.9961,35.4639],[105.9082,35.4199],[105.9961,35.4199],[106.084,35.376],[106.2598,35.4199],[106.3477,35.2441],[106.5234,35.332],[106.4355,35.6836],[106.6992,35.6836],[106.9629,35.8154],[106.875,36.123],[106.5234,36.2549],[106.5234,36.4746],[106.4355,36.5625],[106.6113,36.7822],[106.6113,37.0898],[107.3145,37.0898],[107.3145,36.9141],[108.7207,36.3428],[108.6328,35.9912],[108.5449,35.8594],[108.6328,35.5518],[108.5449,35.2881],[107.7539,35.2881],[107.7539,35.1123],[107.8418,35.0244],[107.666,34.9365],[107.2266,34.8926],[106.9629,35.0684],[106.6113,35.0684],[106.5234,34.7607],[106.3477,34.585],[106.6992,34.3213],[106.5234,34.2773],[106.6113,34.1455],[106.4355,33.9258],[106.5234,33.5303],[105.9961,33.6182],[105.7324,33.3984],[105.9961,33.1787],[105.9082,33.0029],[105.4688,32.915],[105.3809,32.8711],[105.3809,32.7393],[105.2051,32.6074],[104.4141,32.7393],[104.3262,32.8711],[104.4141,33.0469],[104.3262,33.2227],[104.4141,33.3105],[104.2383,33.3984],[104.1504,33.6182],[103.1836,33.7939],[103.0957,34.1895],[102.9199,34.3213],[102.2168,33.9258],[102.4805,33.4424],[101.8652,33.0908],[101.9531,33.4424],[101.8652,33.5742],[101.7773,33.5303],[101.6016,33.5303],[101.5137,33.7061],[101.25,33.6621],[100.8105,34.2773],[100.9863,34.3652],[101.6895,34.1016],[102.1289,34.2773],[102.2168,34.4092],[101.9531,34.6289],[101.9531,34.8486],[102.3926,35.2002],[102.3047,35.4199],[102.4805,35.5957],[102.832,35.5957],[102.6563,35.7715],[102.9199,35.9033],[102.9199,36.0791],[103.0078,36.2549],[102.832,36.3428],[102.5684,36.7383],[102.6563,36.8262],[102.4805,36.958],[102.5684,37.1777],[102.1289,37.4414],[101.9531,37.7051],[101.7773,37.6172],[101.5137,37.8809],[101.1621,37.8369],[100.7227,38.2324],[100.459,38.2764],[100.1074,38.4961],[100.0195,38.4521],[100.1953,38.2764],[99.8438,38.3643],[99.1406,38.9355],[98.7891,39.0674],[98.6133,38.9355],[98.3496,39.0234],[98.1738,38.8037],[97.0313,39.1992],[97.1191,38.584],[96.6797,38.4521],[96.6797,38.1885],[96.416,38.2324],[96.2402,38.1006],[95.7129,38.3643],[95.4492,38.2764],[95.0098,38.4082],[94.5703,38.3643],[94.3066,38.7598],[93.8672,38.7158],[93.6914,38.9355],[93.1641,38.9795],[93.1641,39.1992],[92.373,39.1113],[92.373,39.3311],[92.6367,39.6387],[93.0762,40.6494],[93.8672,40.6934],[94.043,41.0889],[94.5703,41.4844],[95.1855,41.792],[95.2734,41.6162],[95.9766,41.9238],[96.2402,42.2314],[96.0645,42.3193],[95.9766,42.4951],[96.416,42.7148]]]}},{"type":"Feature","properties":{"id":"53","size":"1200","name":"云南省","cp":[101.0652,25.1807],"childNum":16},"geometry":{"type":"Polygon","coordinates":[[[98.1738,28.125],[98.2617,28.3887],[98.3496,28.125],[98.7012,28.2129],[98.7891,28.3447],[98.6133,28.5205],[98.7012,28.916],[98.7891,29.0039],[98.7891,28.8721],[98.9648,28.8281],[98.9648,29.1357],[99.1406,29.2676],[99.2285,28.3008],[99.4043,28.1689],[99.4043,28.5205],[99.668,28.8281],[100.1953,28.3447],[100.0195,28.125],[100.2832,27.7295],[100.3711,27.8174],[100.7227,27.8613],[101.1621,27.1582],[101.1621,27.0264],[101.4258,26.7188],[101.4258,26.8066],[101.4258,26.5869],[101.6895,26.3672],[101.6016,26.2354],[101.8652,26.0596],[102.1289,26.1035],[102.5684,26.3672],[102.6563,26.1914],[103.0078,26.3672],[102.9199,27.29],[103.4473,27.7734],[103.4473,28.125],[103.7988,28.3008],[103.8867,28.6523],[104.4141,28.6084],[104.2383,28.4326],[104.4141,28.2568],[104.4141,28.125],[104.3262,28.0371],[104.4141,27.9492],[104.8535,27.9053],[105.0293,28.0811],[105.2051,27.9932],[105.293,27.7295],[105.2051,27.3779],[104.5898,27.334],[104.4141,27.4658],[104.1504,27.2461],[103.8867,27.4219],[103.623,27.0264],[103.7109,26.9824],[103.7109,26.7627],[103.8867,26.543],[104.4141,26.6748],[104.6777,26.4111],[104.3262,25.708],[104.8535,25.2246],[104.5898,25.0488],[104.6777,24.9609],[104.502,24.7412],[104.6777,24.3457],[104.7656,24.4775],[105.0293,24.4336],[105.2051,24.082],[105.4688,24.0381],[105.5566,24.126],[105.9961,24.126],[106.1719,23.8184],[106.1719,23.5547],[105.6445,23.4229],[105.5566,23.2031],[105.293,23.3789],[104.8535,23.1592],[104.7656,22.8516],[104.3262,22.6758],[104.1504,22.8076],[103.9746,22.5439],[103.623,22.7637],[103.5352,22.5879],[103.3594,22.8076],[103.0957,22.4561],[102.4805,22.7637],[102.3047,22.4121],[101.8652,22.3682],[101.7773,22.5],[101.6016,22.1924],[101.8652,21.6211],[101.7773,21.1377],[101.6016,21.2256],[101.25,21.1816],[101.1621,21.7529],[100.6348,21.4453],[100.1074,21.4893],[99.9316,22.0605],[99.2285,22.1484],[99.4043,22.5879],[99.3164,22.7197],[99.4922,23.0713],[98.877,23.2031],[98.7012,23.9502],[98.877,24.126],[98.1738,24.082],[97.7344,23.8623],[97.5586,23.9063],[97.7344,24.126],[97.6465,24.4336],[97.5586,24.4336],[97.5586,24.7412],[97.7344,24.8291],[97.8223,25.2686],[98.1738,25.4004],[98.1738,25.6201],[98.3496,25.5762],[98.5254,25.8398],[98.7012,25.8838],[98.6133,26.0596],[98.7012,26.1475],[98.7891,26.5869],[98.7012,27.5098],[98.5254,27.6416],[98.3496,27.5098],[98.1738,28.125]]]}},{"type":"Feature","properties":{"id":"45","size":"1450","name":"广西壮族自治区","cp":[107.7813,23.6426],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[104.502,24.7412],[104.6777,24.6094],[105.2051,24.9609],[105.9961,24.6533],[106.1719,24.7852],[106.1719,24.9609],[106.875,25.1807],[107.0508,25.2686],[106.9629,25.4883],[107.2266,25.6201],[107.4902,25.2246],[107.7539,25.2246],[107.8418,25.1367],[108.1055,25.2246],[108.1934,25.4443],[108.3691,25.5322],[108.6328,25.3125],[108.6328,25.5762],[109.0723,25.5322],[108.9844,25.752],[109.3359,25.708],[109.5117,26.0156],[109.7754,25.8838],[109.9512,26.1914],[110.2148,25.9717],[110.5664,26.3232],[111.1816,26.3232],[111.2695,26.2354],[111.2695,25.8838],[111.4453,25.8398],[111.0059,25.0049],[111.0938,24.9609],[111.3574,25.1367],[111.5332,24.6533],[111.709,24.7852],[112.0605,24.7412],[111.8848,24.6533],[112.0605,24.3457],[111.8848,24.2139],[111.8848,23.9941],[111.7969,23.8184],[111.6211,23.8184],[111.6211,23.6865],[111.3574,23.4668],[111.4453,23.0273],[111.2695,22.8076],[110.7422,22.5439],[110.7422,22.2803],[110.6543,22.1484],[110.3027,22.1484],[110.3027,21.8848],[109.9512,21.8408],[109.8633,21.665],[109.7754,21.6211],[109.7754,21.4014],[109.5996,21.4453],[109.1602,21.3574],[109.248,20.874],[109.0723,20.9619],[109.0723,21.5332],[108.7207,21.5332],[108.6328,21.665],[108.2813,21.4893],[107.8418,21.6211],[107.4023,21.6211],[107.0508,21.7969],[107.0508,21.9287],[106.6992,22.0166],[106.6113,22.4121],[106.7871,22.7637],[106.6992,22.8955],[105.9082,22.9395],[105.5566,23.0713],[105.5566,23.2031],[105.6445,23.4229],[106.1719,23.5547],[106.1719,23.8184],[105.9961,24.126],[105.5566,24.126],[105.4688,24.0381],[105.2051,24.082],[105.0293,24.4336],[104.7656,24.4775],[104.6777,24.3457],[104.502,24.7412]]]}},{"type":"Feature","properties":{"id":"43","size":"1700","name":"湖南省","cp":[111.5332,27.3779],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[109.248,28.4766],[109.248,29.1357],[109.5117,29.6191],[109.6875,29.6191],[109.7754,29.751],[110.4785,29.6631],[110.6543,29.751],[110.4785,30.0146],[110.8301,30.1465],[111.7969,29.9268],[112.2363,29.5313],[112.5,29.6191],[112.6758,29.5752],[112.9395,29.7949],[113.0273,29.751],[112.9395,29.4873],[113.0273,29.4434],[113.5547,29.8389],[113.5547,29.707],[113.7305,29.5752],[113.6426,29.3115],[113.7305,29.0918],[113.9063,29.0479],[114.1699,28.8281],[114.082,28.5645],[114.2578,28.3447],[113.7305,27.9492],[113.6426,27.5977],[113.6426,27.3779],[113.8184,27.29],[113.7305,27.1143],[113.9063,26.9385],[113.9063,26.6309],[114.082,26.5869],[113.9941,26.1914],[114.2578,26.1475],[113.9941,26.0596],[113.9063,25.4443],[113.6426,25.3125],[113.2031,25.5322],[112.8516,25.3564],[113.0273,25.2246],[113.0273,24.9609],[112.8516,24.917],[112.5879,25.1367],[112.2363,25.1807],[112.1484,24.873],[112.0605,24.7412],[111.709,24.7852],[111.5332,24.6533],[111.3574,25.1367],[111.0938,24.9609],[111.0059,25.0049],[111.4453,25.8398],[111.2695,25.8838],[111.2695,26.2354],[111.1816,26.3232],[110.5664,26.3232],[110.2148,25.9717],[109.9512,26.1914],[109.7754,25.8838],[109.5117,26.0156],[109.4238,26.2793],[109.248,26.3232],[109.4238,26.5869],[109.3359,26.7188],[109.5117,26.8066],[109.5117,27.0264],[109.3359,27.1582],[108.8965,27.0264],[108.8086,27.1143],[109.4238,27.5977],[109.3359,27.9053],[109.3359,28.2568],[109.248,28.4766]]]}},{"type":"Feature","properties":{"id":"61","size":"1150","name":"陕西省","cp":[109.5996,35.7396],"childNum":10},"geometry":{"type":"Polygon","coordinates":[[[105.4688,32.915],[105.9082,33.0029],[105.9961,33.1787],[105.7324,33.3984],[105.9961,33.6182],[106.5234,33.5303],[106.4355,33.9258],[106.6113,34.1455],[106.5234,34.2773],[106.6992,34.3213],[106.3477,34.585],[106.5234,34.7607],[106.6113,35.0684],[106.9629,35.0684],[107.2266,34.8926],[107.666,34.9365],[107.8418,35.0244],[107.7539,35.1123],[107.7539,35.2881],[108.5449,35.2881],[108.6328,35.5518],[108.5449,35.8594],[108.6328,35.9912],[108.7207,36.3428],[107.3145,36.9141],[107.3145,37.0898],[107.3145,37.6172],[107.666,37.8809],[108.1934,37.6172],[108.7207,37.7051],[108.8086,38.0127],[108.8965,37.9688],[109.0723,38.0127],[108.9844,38.3203],[109.9512,39.1553],[109.8633,39.2432],[110.2148,39.2871],[110.127,39.4629],[110.6543,39.2871],[111.0938,39.5947],[111.0938,39.375],[111.1816,39.2432],[110.918,38.7158],[110.8301,38.4961],[110.4785,38.1885],[110.4785,37.9688],[110.8301,37.6611],[110.3906,37.002],[110.4785,36.123],[110.5664,35.6396],[110.2148,34.8926],[110.2148,34.6729],[110.3906,34.585],[110.4785,34.2334],[110.6543,34.1455],[110.6543,33.8379],[111.0059,33.5303],[111.0059,33.2666],[110.7422,33.1348],[110.5664,33.2666],[110.3027,33.1787],[109.5996,33.2666],[109.4238,33.1348],[109.7754,33.0469],[109.7754,32.915],[110.127,32.7393],[110.127,32.6074],[109.6875,32.6074],[109.5117,32.4316],[109.5996,31.7285],[109.248,31.7285],[109.0723,31.9482],[108.5449,32.2119],[108.2813,32.2559],[108.0176,32.168],[107.4023,32.5195],[107.2266,32.4316],[107.1387,32.4756],[107.0508,32.6953],[106.3477,32.6514],[106.084,32.7393],[106.084,32.8711],[105.5566,32.7393],[105.4688,32.915]]]}},{"type":"Feature","properties":{"id":"44","size":"1600","name":"广东省","cp":[113.4668,22.8076],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[109.7754,21.4014],[109.7754,21.6211],[109.8633,21.665],[109.9512,21.8408],[110.3027,21.8848],[110.3027,22.1484],[110.6543,22.1484],[110.7422,22.2803],[110.7422,22.5439],[111.2695,22.8076],[111.4453,23.0273],[111.3574,23.4668],[111.6211,23.6865],[111.6211,23.8184],[111.7969,23.8184],[111.8848,23.9941],[111.8848,24.2139],[112.0605,24.3457],[111.8848,24.6533],[112.0605,24.7412],[112.1484,24.873],[112.2363,25.1807],[112.5879,25.1367],[112.8516,24.917],[113.0273,24.9609],[113.0273,25.2246],[112.8516,25.3564],[113.2031,25.5322],[113.6426,25.3125],[113.9063,25.4443],[113.9941,25.2686],[114.6094,25.4004],[114.7852,25.2686],[114.6973,25.1367],[114.4336,24.9609],[114.1699,24.6973],[114.4336,24.5215],[115.4004,24.7852],[115.8398,24.5654],[115.752,24.7852],[115.9277,24.917],[116.2793,24.7852],[116.3672,24.873],[116.543,24.6094],[116.7188,24.6533],[116.9824,24.1699],[116.9824,23.9063],[117.1582,23.5547],[117.334,23.2471],[116.8945,23.3789],[116.6309,23.1152],[116.543,22.8516],[115.9277,22.7197],[115.6641,22.7637],[115.5762,22.6318],[115.0488,22.6758],[114.6094,22.3682],[114.3457,22.5439],[113.9941,22.5],[113.8184,22.1924],[114.3457,22.1484],[114.4336,22.0166],[114.082,21.9287],[113.9941,21.7969],[113.5547,22.0166],[113.1152,21.8408],[112.9395,21.5771],[112.4121,21.4453],[112.2363,21.5332],[111.5332,21.4893],[111.2695,21.3574],[110.7422,21.3574],[110.6543,21.2256],[110.7422,20.918],[110.4785,20.874],[110.6543,20.2588],[110.5664,20.2588],[110.3906,20.127],[110.0391,20.127],[109.8633,20.127],[109.8633,20.3027],[109.5996,20.918],[109.7754,21.4014],[109.7754,21.4014]],[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}},{"type":"Feature","properties":{"id":"22","size":"1120","name":"吉林省","cp":[125.7746,43.5938],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[123.2227,46.2305],[123.9258,46.2305],[124.0137,45.7471],[124.3652,45.4395],[124.8926,45.5273],[125.0684,45.3955],[125.6836,45.5273],[125.7715,45.3076],[126.0352,45.1758],[126.5625,45.2637],[126.9141,45.1318],[127.0898,45],[127.002,44.7803],[127.0898,44.6045],[127.5293,44.6045],[127.7051,44.1211],[128.0566,44.1211],[128.0566,44.3408],[128.4082,44.4727],[128.4961,44.165],[128.8477,43.5498],[129.1992,43.5938],[129.2871,43.8135],[129.8145,43.9014],[129.9023,44.0332],[129.9902,43.8574],[130.3418,43.9893],[130.5176,43.6377],[130.8691,43.418],[131.3086,43.4619],[131.3086,43.3301],[131.1328,42.9346],[130.4297,42.7148],[130.6055,42.6709],[130.6055,42.4512],[130.2539,42.7588],[130.2539,42.8906],[130.166,42.9785],[129.9023,43.0225],[129.7266,42.4951],[129.375,42.4512],[128.9355,42.0117],[128.0566,42.0117],[128.3203,41.5723],[128.1445,41.3525],[127.0898,41.5283],[127.1777,41.5723],[126.9141,41.792],[126.6504,41.6602],[126.4746,41.3965],[126.123,40.957],[125.6836,40.8691],[125.5957,40.9131],[125.7715,41.2207],[125.332,41.6602],[125.332,41.9678],[125.4199,42.0996],[125.332,42.1436],[124.8926,42.8027],[124.8926,43.0664],[124.7168,43.0664],[124.4531,42.8467],[124.2773,43.2422],[123.8379,43.4619],[123.6621,43.374],[123.3105,43.5059],[123.4863,43.7256],[123.1348,44.4727],[122.3438,44.2529],[122.0801,44.8682],[122.2559,45.2637],[121.9043,45.7031],[121.7285,45.7471],[121.8164,46.0107],[122.2559,45.791],[122.4316,45.8789],[122.6953,45.7031],[122.7832,46.0107],[123.2227,46.2305]]]}},{"type":"Feature","properties":{"id":"13","size":"1300","name":"河北省","cp":[115.4004,39.4688],"childNum":11},"geometry":{"type":"MultiPolygon","coordinates":[[[[114.5215,39.5068],[114.3457,39.8584],[113.9941,39.9902],[114.5215,40.3418],[114.3457,40.3857],[114.2578,40.6055],[114.082,40.7373],[113.9063,41.1328],[113.9941,41.2207],[113.9063,41.4404],[114.2578,41.5723],[114.1699,41.792],[114.5215,42.1436],[114.873,42.0996],[114.9609,41.6162],[115.2246,41.5723],[115.9277,41.9238],[116.0156,41.792],[116.2793,42.0117],[116.8066,42.0117],[116.8945,42.4072],[117.334,42.4512],[117.5098,42.583],[117.7734,42.627],[118.0371,42.4072],[117.9492,42.2314],[118.125,42.0557],[118.3008,42.0996],[118.3008,41.792],[118.125,41.748],[118.3887,41.3086],[119.2676,41.3086],[118.8281,40.8252],[119.2676,40.5176],[119.5313,40.5615],[119.707,40.1221],[119.8828,39.9463],[119.5313,39.6826],[119.4434,39.4189],[118.916,39.0674],[118.4766,38.9355],[118.125,39.0234],[118.0371,39.1992],[118.0371,39.2432],[117.8613,39.4189],[117.9492,39.5947],[117.6855,39.5947],[117.5098,39.7705],[117.5098,39.9902],[117.6855,39.9902],[117.6855,40.0781],[117.4219,40.21],[117.2461,40.5176],[117.4219,40.6494],[116.9824,40.6934],[116.6309,41.0449],[116.3672,40.9131],[116.4551,40.7813],[116.1914,40.7813],[116.1035,40.6055],[115.752,40.5615],[115.9277,40.2539],[115.4004,39.9463],[115.4883,39.6387],[115.752,39.5068],[116.1914,39.5947],[116.3672,39.4629],[116.543,39.5947],[116.8066,39.5947],[116.8945,39.1113],[116.7188,38.9355],[116.7188,38.8037],[117.2461,38.54],[117.5977,38.6279],[117.9492,38.3203],[117.4219,37.8369],[116.8066,37.8369],[116.4551,37.4854],[116.2793,37.5732],[116.2793,37.3535],[116.0156,37.3535],[115.752,36.9141],[115.3125,36.5186],[115.4883,36.167],[115.3125,36.0791],[115.1367,36.2109],[114.9609,36.0791],[114.873,36.123],[113.7305,36.3428],[113.4668,36.6504],[113.7305,36.8701],[113.7305,37.1338],[114.1699,37.6611],[113.9941,37.7051],[113.8184,38.1445],[113.5547,38.2764],[113.5547,38.54],[113.8184,38.8037],[113.8184,38.9355],[113.9063,39.0234],[114.3457,39.0674],[114.5215,39.5068]]],[[[117.2461,40.0781],[117.1582,39.8145],[117.1582,39.6387],[116.8945,39.6826],[116.8945,39.8145],[116.8066,39.9902],[117.2461,40.0781]]]]}},{"type":"Feature","properties":{"id":"42","size":"1500","name":"湖北省","cp":[112.2363,31.1572],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.2148,31.1572],[110.127,31.377],[109.6875,31.5527],[109.7754,31.6846],[109.5996,31.7285],[109.5117,32.4316],[109.6875,32.6074],[110.127,32.6074],[110.127,32.7393],[109.7754,32.915],[109.7754,33.0469],[109.4238,33.1348],[109.5996,33.2666],[110.3027,33.1787],[110.5664,33.2666],[110.7422,33.1348],[111.0059,33.2666],[111.5332,32.6074],[112.3242,32.3438],[113.2031,32.4316],[113.4668,32.2998],[113.7305,32.4316],[113.8184,31.8604],[113.9941,31.7725],[114.1699,31.8604],[114.5215,31.7725],[114.6094,31.5527],[114.7852,31.4648],[115.1367,31.5967],[115.2246,31.4209],[115.4004,31.4209],[115.5762,31.2012],[116.0156,31.0254],[115.752,30.6738],[116.1035,30.1904],[116.1035,29.8389],[115.9277,29.707],[115.4883,29.7949],[114.873,29.3994],[114.2578,29.3555],[113.9063,29.0479],[113.7305,29.0918],[113.6426,29.3115],[113.7305,29.5752],[113.5547,29.707],[113.5547,29.8389],[113.0273,29.4434],[112.9395,29.4873],[113.0273,29.751],[112.9395,29.7949],[112.6758,29.5752],[112.5,29.6191],[112.2363,29.5313],[111.7969,29.9268],[110.8301,30.1465],[110.4785,30.0146],[110.6543,29.751],[110.4785,29.6631],[109.7754,29.751],[109.6875,29.6191],[109.5117,29.6191],[109.248,29.1357],[109.0723,29.3555],[108.9844,29.3115],[108.6328,29.8389],[108.457,29.7949],[108.5449,30.2344],[108.457,30.4102],[108.6328,30.5859],[108.8086,30.498],[109.0723,30.6299],[109.1602,30.542],[109.248,30.6299],[109.4238,30.542],[109.8633,30.8936],[110.0391,30.8057],[110.2148,31.1572]]]}},{"type":"Feature","properties":{"id":"52","size":"2000","name":"贵州省","cp":[106.6113,26.9385],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[104.1504,27.2461],[104.4141,27.4658],[104.5898,27.334],[105.2051,27.3779],[105.293,27.7295],[105.5566,27.7734],[105.6445,27.6416],[106.3477,27.8174],[106.1719,28.125],[105.9082,28.125],[105.6445,28.4326],[105.9961,28.7402],[106.3477,28.5205],[106.5234,28.5645],[106.4355,28.7842],[106.5234,28.7842],[106.6113,28.6523],[106.6113,28.5205],[106.6992,28.4766],[106.875,28.7842],[107.4023,28.8721],[107.4023,29.1797],[107.5781,29.2236],[107.8418,29.1357],[107.8418,29.0039],[108.2813,29.0918],[108.3691,28.6523],[108.5449,28.6523],[108.5449,28.3887],[108.7207,28.4766],[108.7207,28.2129],[109.0723,28.2129],[109.248,28.4766],[109.3359,28.2568],[109.3359,27.9053],[109.4238,27.5977],[108.8086,27.1143],[108.8965,27.0264],[109.3359,27.1582],[109.5117,27.0264],[109.5117,26.8066],[109.3359,26.7188],[109.4238,26.5869],[109.248,26.3232],[109.4238,26.2793],[109.5117,26.0156],[109.3359,25.708],[108.9844,25.752],[109.0723,25.5322],[108.6328,25.5762],[108.6328,25.3125],[108.3691,25.5322],[108.1934,25.4443],[108.1055,25.2246],[107.8418,25.1367],[107.7539,25.2246],[107.4902,25.2246],[107.2266,25.6201],[106.9629,25.4883],[107.0508,25.2686],[106.875,25.1807],[106.1719,24.9609],[106.1719,24.7852],[105.9961,24.6533],[105.2051,24.9609],[104.6777,24.6094],[104.502,24.7412],[104.6777,24.9609],[104.5898,25.0488],[104.8535,25.2246],[104.3262,25.708],[104.6777,26.4111],[104.4141,26.6748],[103.8867,26.543],[103.7109,26.7627],[103.7109,26.9824],[103.623,27.0264],[103.8867,27.4219],[104.1504,27.2461]]]}},{"type":"Feature","properties":{"id":"37","size":"1500","name":"山东省","cp":[118.7402,36.4307],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[115.4883,36.167],[115.3125,36.5186],[115.752,36.9141],[116.0156,37.3535],[116.2793,37.3535],[116.2793,37.5732],[116.4551,37.4854],[116.8066,37.8369],[117.4219,37.8369],[117.9492,38.3203],[118.125,38.1445],[118.916,38.1445],[119.3555,37.6611],[119.0039,37.5293],[119.0039,37.3535],[119.3555,37.1338],[119.707,37.1338],[119.8828,37.3975],[120.498,37.8369],[120.5859,38.1445],[120.9375,38.4521],[121.0254,37.8369],[121.2012,37.6611],[121.9043,37.4854],[122.168,37.6172],[122.2559,37.4854],[122.6074,37.4854],[122.6953,37.3535],[122.6074,36.9141],[122.4316,36.7822],[121.8164,36.8701],[121.7285,36.6943],[121.1133,36.6064],[121.1133,36.4307],[121.377,36.2549],[120.7617,36.167],[120.9375,35.8594],[120.6738,36.0352],[119.707,35.4639],[119.9707,34.9805],[119.3555,35.0244],[119.2676,35.1123],[118.916,35.0244],[118.7402,34.7168],[118.4766,34.6729],[118.3887,34.4092],[118.2129,34.4092],[118.125,34.6289],[117.9492,34.6729],[117.5977,34.4531],[117.334,34.585],[117.2461,34.4531],[116.8066,34.9365],[116.4551,34.8926],[116.3672,34.6289],[116.1914,34.585],[115.5762,34.585],[115.4004,34.8486],[114.7852,35.0684],[115.0488,35.376],[115.2246,35.4199],[115.4883,35.7275],[116.1035,36.0791],[115.3125,35.8154],[115.4883,36.167]]]}},{"type":"Feature","properties":{"id":"36","size":"1700","name":"江西省","cp":[116.0156,27.29],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[114.2578,28.3447],[114.082,28.5645],[114.1699,28.8281],[113.9063,29.0479],[114.2578,29.3555],[114.873,29.3994],[115.4883,29.7949],[115.9277,29.707],[116.1035,29.8389],[116.2793,29.7949],[116.7188,30.0586],[116.8945,29.9268],[116.7188,29.751],[116.7188,29.6191],[117.1582,29.707],[117.0703,29.8389],[117.1582,29.9268],[117.5098,29.6191],[118.0371,29.5752],[118.2129,29.3994],[118.0371,29.1797],[118.0371,29.0479],[118.3887,28.7842],[118.4766,28.3447],[118.4766,28.3008],[118.3008,28.0811],[117.7734,27.8174],[117.5098,27.9932],[116.9824,27.6416],[117.1582,27.29],[117.0703,27.1143],[116.543,26.8066],[116.6309,26.4551],[116.3672,26.2354],[116.4551,26.1035],[116.1914,25.8838],[116.0156,25.2686],[115.8398,25.2246],[115.9277,24.917],[115.752,24.7852],[115.8398,24.5654],[115.4004,24.7852],[114.4336,24.5215],[114.1699,24.6973],[114.4336,24.9609],[114.6973,25.1367],[114.7852,25.2686],[114.6094,25.4004],[113.9941,25.2686],[113.9063,25.4443],[113.9941,26.0596],[114.2578,26.1475],[113.9941,26.1914],[114.082,26.5869],[113.9063,26.6309],[113.9063,26.9385],[113.7305,27.1143],[113.8184,27.29],[113.6426,27.3779],[113.6426,27.5977],[113.7305,27.9492],[114.2578,28.3447]]]}},{"type":"Feature","properties":{"id":"41","size":"1700","name":"河南省","cp":[113.0668,33.8818],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.3906,34.585],[110.8301,34.6289],[111.1816,34.8047],[111.5332,34.8486],[111.7969,35.0684],[112.0605,35.0684],[112.0605,35.2881],[112.7637,35.2002],[113.1152,35.332],[113.6426,35.6836],[113.7305,36.3428],[114.873,36.123],[114.9609,36.0791],[115.1367,36.2109],[115.3125,36.0791],[115.4883,36.167],[115.3125,35.8154],[116.1035,36.0791],[115.4883,35.7275],[115.2246,35.4199],[115.0488,35.376],[114.7852,35.0684],[115.4004,34.8486],[115.5762,34.585],[116.1914,34.585],[116.1914,34.4092],[116.543,34.2773],[116.6309,33.9258],[116.1914,33.7061],[116.0156,33.9697],[115.6641,34.0576],[115.5762,33.9258],[115.5762,33.6621],[115.4004,33.5303],[115.3125,33.1787],[114.873,33.1348],[114.873,33.0029],[115.1367,32.8711],[115.2246,32.6074],[115.5762,32.4316],[115.8398,32.5195],[115.9277,31.7725],[115.4883,31.6846],[115.4004,31.4209],[115.2246,31.4209],[115.1367,31.5967],[114.7852,31.4648],[114.6094,31.5527],[114.5215,31.7725],[114.1699,31.8604],[113.9941,31.7725],[113.8184,31.8604],[113.7305,32.4316],[113.4668,32.2998],[113.2031,32.4316],[112.3242,32.3438],[111.5332,32.6074],[111.0059,33.2666],[111.0059,33.5303],[110.6543,33.8379],[110.6543,34.1455],[110.4785,34.2334],[110.3906,34.585]]]}},{"type":"Feature","properties":{"id":"21","size":"1500","name":"辽宁省","cp":[122.0438,41.0889],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[119.2676,41.3086],[119.4434,41.6162],[119.2676,41.7041],[119.3555,42.2754],[119.5313,42.3633],[119.8828,42.1875],[120.1465,41.7041],[120.498,42.0996],[121.4648,42.4951],[121.7285,42.4512],[121.9922,42.7148],[122.3438,42.6709],[122.3438,42.8467],[122.7832,42.7148],[123.1348,42.8027],[123.3105,42.9785],[123.5742,43.0225],[123.6621,43.374],[123.8379,43.4619],[124.2773,43.2422],[124.4531,42.8467],[124.7168,43.0664],[124.8926,43.0664],[124.8926,42.8027],[125.332,42.1436],[125.4199,42.0996],[125.332,41.9678],[125.332,41.6602],[125.7715,41.2207],[125.5957,40.9131],[125.6836,40.8691],[124.541,40.21],[124.1016,39.6826],[123.3984,39.6826],[123.1348,39.4189],[123.1348,39.0234],[122.0801,39.0234],[121.5527,38.7158],[121.1133,38.6719],[120.9375,38.9795],[121.377,39.1992],[121.2012,39.5508],[122.0801,40.3857],[121.9922,40.6934],[121.7285,40.8252],[121.2012,40.8252],[120.5859,40.21],[119.8828,39.9463],[119.707,40.1221],[119.5313,40.5615],[119.2676,40.5176],[118.8281,40.8252],[119.2676,41.3086]]]}},{"type":"Feature","properties":{"id":"14","size":"1450","name":"山西省","cp":[112.4121,37.6611],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[110.918,38.7158],[111.1816,39.2432],[111.0938,39.375],[111.3574,39.4189],[111.4453,39.6387],[111.9727,39.5947],[112.3242,40.2539],[112.7637,40.166],[113.2031,40.3857],[113.5547,40.3418],[113.8184,40.5176],[114.082,40.5176],[114.082,40.7373],[114.2578,40.6055],[114.3457,40.3857],[114.5215,40.3418],[113.9941,39.9902],[114.3457,39.8584],[114.5215,39.5068],[114.3457,39.0674],[113.9063,39.0234],[113.8184,38.9355],[113.8184,38.8037],[113.5547,38.54],[113.5547,38.2764],[113.8184,38.1445],[113.9941,37.7051],[114.1699,37.6611],[113.7305,37.1338],[113.7305,36.8701],[113.4668,36.6504],[113.7305,36.3428],[113.6426,35.6836],[113.1152,35.332],[112.7637,35.2002],[112.0605,35.2881],[112.0605,35.0684],[111.7969,35.0684],[111.5332,34.8486],[111.1816,34.8047],[110.8301,34.6289],[110.3906,34.585],[110.2148,34.6729],[110.2148,34.8926],[110.5664,35.6396],[110.4785,36.123],[110.3906,37.002],[110.8301,37.6611],[110.4785,37.9688],[110.4785,38.1885],[110.8301,38.4961],[110.918,38.7158]]]}},{"type":"Feature","properties":{"id":"34","size":"1700","name":"安徽省","cp":[117.2461,32.0361],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[116.6309,33.9258],[116.543,34.2773],[116.1914,34.4092],[116.1914,34.585],[116.3672,34.6289],[116.8945,34.4092],[117.1582,34.0576],[117.5977,34.0137],[117.7734,33.7061],[118.125,33.75],[117.9492,33.2227],[118.0371,33.1348],[118.2129,33.2227],[118.3008,32.7832],[118.7402,32.7393],[118.916,32.959],[119.1797,32.8271],[119.1797,32.4756],[118.5645,32.5635],[118.6523,32.2119],[118.4766,32.168],[118.3887,31.9482],[118.916,31.5527],[118.7402,31.377],[118.8281,31.2451],[119.3555,31.2891],[119.4434,31.1572],[119.6191,31.1133],[119.6191,31.0693],[119.4434,30.6738],[119.2676,30.6299],[119.3555,30.4102],[118.916,30.3223],[118.916,29.9707],[118.7402,29.707],[118.2129,29.3994],[118.0371,29.5752],[117.5098,29.6191],[117.1582,29.9268],[117.0703,29.8389],[117.1582,29.707],[116.7188,29.6191],[116.7188,29.751],[116.8945,29.9268],[116.7188,30.0586],[116.2793,29.7949],[116.1035,29.8389],[116.1035,30.1904],[115.752,30.6738],[116.0156,31.0254],[115.5762,31.2012],[115.4004,31.4209],[115.4883,31.6846],[115.9277,31.7725],[115.8398,32.5195],[115.5762,32.4316],[115.2246,32.6074],[115.1367,32.8711],[114.873,33.0029],[114.873,33.1348],[115.3125,33.1787],[115.4004,33.5303],[115.5762,33.6621],[115.5762,33.9258],[115.6641,34.0576],[116.0156,33.9697],[116.1914,33.7061],[116.6309,33.9258]]]}},{"type":"Feature","properties":{"id":"35","size":"2000","name":"福建省","cp":[118.3008,25.9277],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[118.4766,28.3008],[118.8281,28.2568],[118.7402,28.0371],[118.916,27.4658],[119.2676,27.4219],[119.6191,27.6855],[119.7949,27.29],[120.2344,27.4219],[120.4102,27.1582],[120.7617,27.0264],[120.6738,26.8945],[120.2344,26.8506],[120.2344,26.7188],[120.4102,26.6748],[120.498,26.3672],[120.2344,26.2793],[120.4102,26.1475],[120.0586,26.1914],[119.9707,25.9277],[119.7949,25.9277],[119.9707,25.4004],[119.7949,25.2686],[119.5313,25.1367],[119.4434,25.0049],[119.2676,25.0928],[118.916,24.8291],[118.6523,24.5215],[118.4766,24.5215],[118.4766,24.4336],[118.2129,24.3457],[118.2129,24.1699],[117.8613,23.9941],[117.7734,23.7744],[117.5098,23.5986],[117.1582,23.5547],[116.9824,23.9063],[116.9824,24.1699],[116.7188,24.6533],[116.543,24.6094],[116.3672,24.873],[116.2793,24.7852],[115.9277,24.917],[115.8398,25.2246],[116.0156,25.2686],[116.1914,25.8838],[116.4551,26.1035],[116.3672,26.2354],[116.6309,26.4551],[116.543,26.8066],[117.0703,27.1143],[117.1582,27.29],[116.9824,27.6416],[117.5098,27.9932],[117.7734,27.8174],[118.3008,28.0811],[118.4766,28.3008]]]}},{"type":"Feature","properties":{"id":"33","size":"2100","name":"浙江省","cp":[120.498,29.0918],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[118.2129,29.3994],[118.7402,29.707],[118.916,29.9707],[118.916,30.3223],[119.3555,30.4102],[119.2676,30.6299],[119.4434,30.6738],[119.6191,31.0693],[119.6191,31.1133],[119.9707,31.1572],[120.498,30.8057],[120.9375,31.0254],[121.2891,30.6738],[121.9922,30.8057],[122.6953,30.8936],[122.8711,30.7178],[122.959,30.1465],[122.6074,30.1025],[122.6074,29.9268],[122.168,29.5313],[122.3438,28.8721],[121.9922,28.8721],[121.9922,28.4326],[121.7285,28.3447],[121.7285,28.2129],[121.4648,28.2129],[121.5527,28.0371],[121.2891,27.9492],[121.1133,27.4219],[120.6738,27.334],[120.6738,27.1582],[120.9375,27.0264],[120.7617,27.0264],[120.4102,27.1582],[120.2344,27.4219],[119.7949,27.29],[119.6191,27.6855],[119.2676,27.4219],[118.916,27.4658],[118.7402,28.0371],[118.8281,28.2568],[118.4766,28.3008],[118.4766,28.3447],[118.3887,28.7842],[118.0371,29.0479],[118.0371,29.1797],[118.2129,29.3994]]]}},{"type":"Feature","properties":{"id":"32","size":"1950","name":"江苏省","cp":[118.8586,32.915],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[116.3672,34.6289],[116.4551,34.8926],[116.8066,34.9365],[117.2461,34.4531],[117.334,34.585],[117.5977,34.4531],[117.9492,34.6729],[118.125,34.6289],[118.2129,34.4092],[118.3887,34.4092],[118.4766,34.6729],[118.7402,34.7168],[118.916,35.0244],[119.2676,35.1123],[119.3555,35.0244],[119.3555,34.8486],[119.707,34.585],[120.3223,34.3652],[120.9375,33.0469],[121.0254,32.6514],[121.377,32.4756],[121.4648,32.168],[121.9043,31.9922],[121.9922,31.6846],[121.9922,31.5967],[121.2012,31.8604],[121.1133,31.7285],[121.377,31.5088],[121.2012,31.4648],[120.9375,31.0254],[120.498,30.8057],[119.9707,31.1572],[119.6191,31.1133],[119.4434,31.1572],[119.3555,31.2891],[118.8281,31.2451],[118.7402,31.377],[118.916,31.5527],[118.3887,31.9482],[118.4766,32.168],[118.6523,32.2119],[118.5645,32.5635],[119.1797,32.4756],[119.1797,32.8271],[118.916,32.959],[118.7402,32.7393],[118.3008,32.7832],[118.2129,33.2227],[118.0371,33.1348],[117.9492,33.2227],[118.125,33.75],[117.7734,33.7061],[117.5977,34.0137],[117.1582,34.0576],[116.8945,34.4092],[116.3672,34.6289]]]}},{"type":"Feature","properties":{"id":"50","size":"2380","name":"重庆市","cp":[107.7539,30.1904],"childNum":40},"geometry":{"type":"Polygon","coordinates":[[[108.5449,31.6846],[108.2813,31.9043],[108.3691,32.168],[108.5449,32.2119],[109.0723,31.9482],[109.248,31.7285],[109.5996,31.7285],[109.7754,31.6846],[109.6875,31.5527],[110.127,31.377],[110.2148,31.1572],[110.0391,30.8057],[109.8633,30.8936],[109.4238,30.542],[109.248,30.6299],[109.1602,30.542],[109.0723,30.6299],[108.8086,30.498],[108.6328,30.5859],[108.457,30.4102],[108.5449,30.2344],[108.457,29.7949],[108.6328,29.8389],[108.9844,29.3115],[109.0723,29.3555],[109.248,29.1357],[109.248,28.4766],[109.0723,28.2129],[108.7207,28.2129],[108.7207,28.4766],[108.5449,28.3887],[108.5449,28.6523],[108.3691,28.6523],[108.2813,29.0918],[107.8418,29.0039],[107.8418,29.1357],[107.5781,29.2236],[107.4023,29.1797],[107.4023,28.8721],[106.875,28.7842],[106.6992,28.4766],[106.6113,28.5205],[106.6113,28.6523],[106.5234,28.7842],[106.4355,28.7842],[106.5234,28.5645],[106.3477,28.5205],[106.2598,28.8721],[105.8203,28.96],[105.7324,29.2676],[105.4688,29.3115],[105.293,29.5313],[105.7324,29.8828],[105.5566,30.1025],[105.6445,30.2783],[105.8203,30.4541],[106.2598,30.1904],[106.6113,30.3223],[106.7871,30.0146],[107.0508,30.0146],[107.4902,30.6299],[107.4023,30.7617],[107.4902,30.8496],[107.9297,30.8496],[108.1934,31.5088],[108.5449,31.6846]]]}},{"type":"Feature","properties":{"id":"64","size":"2100","name":"宁夏回族自治区","cp":[105.9961,37.3096],"childNum":5},"geometry":{"type":"Polygon","coordinates":[[[104.3262,37.4414],[105.8203,37.793],[105.9082,38.7158],[106.3477,39.2871],[106.7871,39.375],[106.9629,38.9795],[106.5234,38.3203],[106.7871,38.1885],[107.3145,38.1006],[107.666,37.8809],[107.3145,37.6172],[107.3145,37.0898],[106.6113,37.0898],[106.6113,36.7822],[106.4355,36.5625],[106.5234,36.4746],[106.5234,36.2549],[106.875,36.123],[106.9629,35.8154],[106.6992,35.6836],[106.4355,35.6836],[106.5234,35.332],[106.3477,35.2441],[106.2598,35.4199],[106.084,35.376],[105.9961,35.4199],[106.084,35.4639],[105.9961,35.4639],[105.8203,35.5518],[105.7324,35.7275],[105.3809,35.7715],[105.293,35.9912],[105.4688,36.123],[105.2051,36.6943],[105.293,36.8262],[104.8535,37.2217],[104.5898,37.2217],[104.5898,37.4414],[104.3262,37.4414]]]}},{"type":"Feature","properties":{"id":"46","size":"4500","name":"海南省","cp":[109.9512,19.2041],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[108.6328,19.3799],[109.0723,19.6436],[109.248,19.9512],[109.5996,20.0391],[110.0391,20.127],[110.3906,20.127],[110.5664,20.2588],[110.6543,20.2588],[111.0938,19.9512],[111.2695,19.9951],[110.6543,19.1602],[110.5664,18.6768],[110.2148,18.5889],[110.0391,18.3691],[109.8633,18.3691],[109.6875,18.1055],[108.9844,18.2813],[108.6328,18.457],[108.6328,19.3799]]]}},{"type":"Feature","properties":{"id":"71","size":"3000","name":"台湾省","cp":[120.0254,23.5986],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[121.9043,25.0488],[121.9922,25.0049],[121.8164,24.7412],[121.9043,24.5654],[121.6406,24.0381],[121.377,23.1152],[121.0254,22.6758],[120.8496,22.0605],[120.7617,21.9287],[120.6738,22.3242],[120.2344,22.5879],[120.0586,23.0713],[120.1465,23.6865],[121.0254,25.0488],[121.5527,25.3125],[121.9043,25.0488]]]}},{"type":"Feature","properties":{"id":"11","size":"5000","name":"北京市","cp":[116.4551,40.2539],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[117.4219,40.21],[117.334,40.1221],[117.2461,40.0781],[116.8066,39.9902],[116.8945,39.8145],[116.8945,39.6826],[116.8066,39.5947],[116.543,39.5947],[116.3672,39.4629],[116.1914,39.5947],[115.752,39.5068],[115.4883,39.6387],[115.4004,39.9463],[115.9277,40.2539],[115.752,40.5615],[116.1035,40.6055],[116.1914,40.7813],[116.4551,40.7813],[116.3672,40.9131],[116.6309,41.0449],[116.9824,40.6934],[117.4219,40.6494],[117.2461,40.5176],[117.4219,40.21]]]}},{"type":"Feature","properties":{"id":"12","size":"5000","name":"天津市","cp":[117.4219,39.4189],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[116.8066,39.5947],[116.8945,39.6826],[117.1582,39.6387],[117.1582,39.8145],[117.2461,40.0781],[117.334,40.1221],[117.4219,40.21],[117.6855,40.0781],[117.6855,39.9902],[117.5098,39.9902],[117.5098,39.7705],[117.6855,39.5947],[117.9492,39.5947],[117.8613,39.4189],[118.0371,39.2432],[118.0371,39.1992],[117.8613,39.1113],[117.5977,38.6279],[117.2461,38.54],[116.7188,38.8037],[116.7188,38.9355],[116.8945,39.1113],[116.8066,39.5947]]]}},{"type":"Feature","properties":{"id":"31","size":"7500","name":"上海市","cp":[121.4648,31.2891],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[120.9375,31.0254],[121.2012,31.4648],[121.377,31.5088],[121.1133,31.7285],[121.2012,31.8604],[121.9922,31.5967],[121.9043,31.1572],[121.9922,30.8057],[121.2891,30.6738],[120.9375,31.0254]]]}},{"type":"Feature","properties":{"id":"81","size":"18000","name":"香港特别行政区","cp":[114.1178,22.3242],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[114.6094,22.4121],[114.5215,22.1484],[114.3457,22.1484],[113.9063,22.1484],[113.8184,22.1924],[113.9063,22.4121],[114.1699,22.5439],[114.3457,22.5439],[114.4336,22.5439],[114.4336,22.4121],[114.6094,22.4121]]]}},{"type":"Feature","properties":{"id":"82","size":"27","name":"澳门特别行政区","cp":[111.5547,22.1484],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}}]}');nj.registerMap("china",mh);var mp=d(185),mf=d.n(mp);let mm=em().div`
|
|
1174
1248
|
text-align: center;
|
|
1175
1249
|
color: #a7a7a7;
|
|
1176
1250
|
background: #f5f5f5;
|
|
@@ -1178,7 +1252,7 @@
|
|
|
1178
1252
|
user-select: none;
|
|
1179
1253
|
cursor: pointer;
|
|
1180
1254
|
font-size: 12px;
|
|
1181
|
-
`,
|
|
1255
|
+
`,mg=em().div`
|
|
1182
1256
|
text-align: center;
|
|
1183
1257
|
color: #a7a7a7;
|
|
1184
1258
|
background: #f5f5f5;
|
|
@@ -1186,7 +1260,7 @@
|
|
|
1186
1260
|
user-select: none;
|
|
1187
1261
|
cursor: pointer;
|
|
1188
1262
|
font-size: 12px;
|
|
1189
|
-
`,
|
|
1263
|
+
`,mv=[{group:"基础组件",key:"b-text",label:"文本",icon:"icon-text",component:e=>{let{id:t,text:n,tag:i="span",item:r,style:a={},customStyle:o={},className:s,classNames:l=[]}=e,{handleEvent:u}=nC(r),c=(0,eh.useMemo)(()=>({...(null==r?void 0:r.style)||{},...o||{},...a||{}}),[r,o,a]);return(0,ed.jsx)(i||"span",{id:t,style:c,className:(l||[]).join(" ")+" "+s,onClick:()=>{u("click")},children:n})},formComponent:e=>{var t,n,i,r,a,o;let{model:s,onChange:l}=e,u=(e,t)=>l&&l({...s,[e]:t}),c=(e,t)=>{let n={...s.customStyle||{},[e]:t};l&&l({...s,customStyle:n})};return(0,ed.jsxs)(ti.Form,{layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"文本内容",children:(0,ed.jsx)(ti.Input.TextArea,{size:"small",value:s.text,onChange:e=>u("text",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"HTML标签",children:(0,ed.jsx)(ti.Select,{size:"small",value:s.tag,onChange:e=>u("tag",e),options:[{value:"span",label:"span"},{value:"a",label:"a"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"类名",children:(0,ed.jsx)(ti.Select,{size:"small",value:s.classNames,mode:"tags",onChange:e=>u("classNames",e)})}),(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,ed.jsxs)(ti.Space.Compact,{children:[(0,ed.jsxs)(ti.Select,{size:"small",value:null==(t=s.customStyle)?void 0:t.fontFamily,style:{width:90},onChange:e=>c("fontFamily",e),children:[(0,ed.jsx)(ti.Select.Option,{value:"'黑体', 'SimHei', sans-serif",children:"黑体"}),(0,ed.jsx)(ti.Select.Option,{value:"'宋体', 'SimSun', serif",children:"宋体"}),(0,ed.jsx)(ti.Select.Option,{value:"'仿宋', 'FangSong', serif",children:"仿宋"}),(0,ed.jsx)(ti.Select.Option,{value:"'楷体', 'KaiTi', serif",children:"楷体"}),(0,ed.jsx)(ti.Select.Option,{value:"Arial, sans-serif",children:"Arial"})]}),(0,ed.jsx)(ti.Select,{size:"small",value:null==(n=s.customStyle)?void 0:n.fontSize,style:{width:90},onChange:e=>c("fontSize",e),children:["12px","14px","16px","20px","22px","24px","32px","48px"].map(e=>(0,ed.jsx)(ti.Select.Option,{value:e,children:e},e))}),(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==(i=s.customStyle)?void 0:i.color,onChange:e=>c("color",e.toHexString()),allowClear:!0})]}),(0,ed.jsxs)(ti.Space.Compact,{children:[(0,ed.jsx)(ti.Button,{type:(null==(r=s.customStyle)?void 0:r.fontWeight)==="bold"?"primary":void 0,size:"small",onClick:()=>{var e;return c("fontWeight",(null==(e=s.customStyle)?void 0:e.fontWeight)==="bold"?"normal":"bold")},children:"B"}),(0,ed.jsx)(ti.Button,{type:(null==(a=s.customStyle)?void 0:a.fontStyle)==="italic"?"primary":void 0,size:"small",onClick:()=>{var e;return c("fontStyle",(null==(e=s.customStyle)?void 0:e.fontStyle)==="italic"?"normal":"italic")},children:"I"}),(0,ed.jsx)(ti.Button,{type:(null==(o=s.customStyle)?void 0:o.textDecoration)==="underline"?"primary":void 0,size:"small",onClick:()=>{var e;return c("textDecoration",(null==(e=s.customStyle)?void 0:e.textDecoration)==="underline"?"none":"underline")},children:"U"})]})]})]})},defaultOptions:{style:{},props:{text:"文本内容",classNames:[],customStyle:{fontSize:14,color:"#444444",fontFamily:"'宋体', 'SimSun', serif",fontWeight:"normal",fontStyle:"normal",textDecoration:"none"}}},events:[{name:"点击",handler:"click"}]},{group:"基础组件",key:"b-image",label:"图片",icon:"icon-image",component:e=>{let{id:t,src:n,alt:i,width:r,height:a,href:o,className:s}=e,l=(0,ed.jsx)("img",{id:t,src:n,alt:i,style:{width:r,height:a},className:s});return o&&o.length?(0,ed.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",children:l}):(0,ed.jsx)("div",{children:l})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r={Authorization:`Bearer ${localStorage.getItem("ASKDATA_TOKEN")||""}`};return(0,ed.jsxs)(ti.Form,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:["图片URL",(0,ed.jsx)(ti.Upload,{name:"file",multiple:!1,accept:".png,.jpg,.jpeg",headers:r,action:"/api/datareport/upload",showUploadList:!1,beforeUpload:e=>{let t=e.type.startsWith("image/");return t||ti.message.error("上传封面只能是图片文件"),t},onChange:e=>{if("done"===e.file.status){var t;i("src",null==(t=e.file.response)?void 0:t.data),ti.message.success("上传成功")}else"error"===e.file.status&&ti.message.error("上传失败")},children:(0,ed.jsx)(ti.Button,{size:"small",type:"link",icon:(0,ed.jsx)(te.UploadOutlined,{})})})]}),children:(0,ed.jsx)(ti.Input,{size:"small",value:t.src,onChange:e=>i("src",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"图片替代文本",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.alt,onChange:e=>i("alt",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"图片链接",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.href,onChange:e=>i("href",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"图片宽度",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.width,onChange:e=>i("width",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"图片高度",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.height,onChange:e=>i("height",e.target.value)})})]})},defaultOptions:{props:{src:"https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png",alt:"",href:"",width:"100%",height:"auto"}}},{group:"基础组件",key:"b-button",label:"按钮",icon:"icon-button",component:e=>{let{id:t,text:n="按钮",type:i="middle",icon:r,size:a,block:o=!1,shape:s="default",ghost:l=!1,item:u,style:c,className:d}=e,{handleCallback:h}=(0,eh.useContext)(ev),{handleEvent:p}=nC(u),f="danger"===i,m="string"==typeof r?r?(0,ed.jsx)(tn,{type:r}):void 0:r;return(0,ed.jsx)(ti.Button,{id:t,type:f?"default":i,icon:m,size:a,block:o,shape:["round","circle"].includes(s)?s:void 0,ghost:l,danger:f,onClick:()=>{h(u,!1,(e,t)=>{console.log("点击回调:",{target:e,data:t})}),p("click")},style:c,className:d,children:n})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"文本",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.text,onChange:e=>i("text",e.target.value),placeholder:"请输入按钮文本"})}),(0,ed.jsx)(ti.Form.Item,{label:"图标",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.icon,onChange:e=>i("icon",e.target.value),placeholder:"请输入按钮图标(antdv 1.7.8)"})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.type,onChange:e=>i("type",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(ti.Radio.Button,{value:"link",children:"链接"}),(0,ed.jsx)(ti.Radio.Button,{value:"dashed",children:"虚线"}),(0,ed.jsx)(ti.Radio.Button,{value:"text",children:"文本"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"形状",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.shape,onChange:e=>i("shape",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"round",children:"圆角"}),(0,ed.jsx)(ti.Radio.Button,{value:"circle",children:"圆形"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"块级",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.block,onChange:e=>i("block",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"幽灵",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.ghost,onChange:e=>i("ghost",e)})})]})},defaultOptions:{props:{type:"primary",size:"default",shape:"default",block:!1,ghost:!1,text:"按钮文本",icon:""},cascadeIds:[],events:[]},events:[{name:"点击",handler:"click"}]},{group:"基础组件",key:"b-page-header",label:"页面标题",icon:"icon-page-header",component:e=>{let{id:t,title:n,subTitle:i,item:r,ancestors:a,style:o={},className:s}=e,l=(0,eh.useMemo)(()=>!r.children||Array.isArray(r.children)||"object"!=typeof r.children?null:r.children.extra||[],[r]),[u,c]=(0,eh.useState)(l||[]);return(0,eh.useEffect)(()=>{c(l||[])},[l]),(0,ed.jsxs)(np,{id:t,style:{...o},className:s,children:[(0,ed.jsxs)("div",{className:"title",children:[(0,ed.jsx)("span",{className:"main",children:n}),i&&(0,ed.jsx)("span",{className:"sub",children:i})]}),(0,ed.jsx)("div",{children:(0,ed.jsx)(tv,{list:u,ancestors:[...a,r],onListChange:e=>{let t=[...e];r.children.extra=t,c(t)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value),placeholder:"请输入标题"})}),(0,ed.jsx)(ti.Form.Item,{label:"副标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.subTitle,onChange:e=>i("subTitle",e.target.value),placeholder:"请输入副标题"})})]})},defaultOptions:{props:{title:"标题",subTitle:"副标题"},children:{extra:[]}}},{group:"基础组件",key:"b-table",label:"数据表格",icon:"icon-table",component:e=>{let{id:t,item:n,columns:i=[],dataKey:r="",pageSize:a=10,bordered:o=!0,size:s,showHeader:l=!0,showSizeChanger:u=!0,showQuickJumper:c=!0,hideOnSinglePage:d=!0,showTotal:h=!0,style:p={},className:f,headerCellClassNames:m=[],bodyCellClassNames:g=[],paginationRootClassNames:v=[],paginationItemClassNames:y=[]}=e,{initCallback:x,globalVars:_,env:b}=(0,eh.useContext)(ev),[w,S]=(0,eh.useState)({current:1,pageSize:a}),C=nf({item:n,query:w}),j=i.map(e=>({...e,render:e.customRender&&("string"!=typeof e.customRender||""!==e.customRender.trim())?(t,n,i)=>{let r=(e.customRender||"").replace(/{\s*{\s*([^}]+)\s*}\s*}/g,(e,r)=>{try{return Function("console","Math","Date","Array","Object","String","Number","Boolean","$g","$e","text","record","index",`
|
|
1190
1264
|
"use strict";
|
|
1191
1265
|
const window = undefined;
|
|
1192
1266
|
const document = undefined;
|
|
@@ -1196,7 +1270,7 @@
|
|
|
1196
1270
|
const module = undefined;
|
|
1197
1271
|
const exports = undefined;
|
|
1198
1272
|
return ${r};
|
|
1199
|
-
`)(console,Math,Date,Array,Object,String,Number,Boolean,_,b.global,t,n,i)}catch{return""}});return(0,ed.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})}:e.render})),T=(0,eh.useMemo)(()=>{if(!r||""===r.trim())return C||[];let e=r.split("."),t=C||[];for(let n of e)if(t[n])t=t[n];else{t=[];break}return t||[]},[r,C]),k=(0,eh.useMemo)(()=>!!a&&{total:(T||[]).length,current:w.current,pageSize:w.pageSize,size:s,showSizeChanger:u,showQuickJumper:c,hideOnSinglePage:d,pageSizeOptions:["10","20","30","40"],showTotal:h?(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`:void 0,locale:{items_per_page:"/ 页",jump_to:"跳转至第",page:"页"},onChange:(e,t)=>{S({current:e,pageSize:t})},onShowSizeChange:(e,t)=>{S({current:e,pageSize:t})}},[T,w,a,s,u,c,d,h]),I=()=>{console.log("callback table")};return(0,eh.useEffect)(()=>{S({current:1,pageSize:a})},[a]),(0,eh.useEffect)(()=>{x({id:n.id,callback:I})},[]),(0,ed.jsx)(ti.Table,{id:t,dataSource:T||[],columns:j,pagination:k,bordered:o,size:s,showHeader:"boolean"!=typeof l||l,rowKey:(e,t)=>String(t),style:{padding:1,...p},className:f,classNames:{header:{cell:(m||[]).join(" ")},body:{cell:(g||[]).join(" ")},pagination:{root:(v||[]).join(" "),item:(y||[]).join(" ")}}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n)=>{let r=[...t.columns||[]];r[e]={...r[e],...n},i("columns",r)},[a,o]=(0,eh.useState)(!1),[s,l]=(0,eh.useState)(null),u=null!=s&&t.columns[s]?t.columns[s]:{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1,customRender:"",className:""},c=[{title:"列名",dataIndex:"title"},{title:"数据索引",dataIndex:"dataIndex",render:e=>"string"==typeof e?e:e.join(".")},{title:"操作",width:80,align:"center",render:(e,n,r)=>(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{l(r),o(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...t.columns||[]]).splice(r,1),i("columns",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]})}];return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"数据键",tooltip:"数据键用于指定数据来源中的数据项,例如:'data.items'",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.dataKey,onChange:e=>i("dataKey",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"边框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.bordered,onChange:e=>i("bordered",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示表头",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showHeader,onChange:e=>i("showHeader",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示分页大小选择器",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showSizeChanger,onChange:e=>i("showSizeChanger",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示快速跳转",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showQuickJumper,onChange:e=>i("showQuickJumper",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"隐藏单页分页",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.hideOnSinglePage,onChange:e=>i("hideOnSinglePage",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示分页总数",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showTotal,onChange:e=>i("showTotal",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页大小",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.pageSize,onChange:e=>i("pageSize",e)})})]}),(0,ed.jsx)(ti.Divider,{children:"表格列设置"}),(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.columns,rowKey:(e,t)=>String(t),columns:c,pagination:!1,bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",onClick:()=>{i("columns",[...t.columns||[],{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1}])},block:!0,children:"添加列"}),(0,ed.jsx)(ti.Divider,{style:{marginTop:10},children:"样式设置"}),(0,ed.jsx)(ti.Form.Item,{label:"表头单元格类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.headerCellClassNames||[],onChange:e=>i("headerCellClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"表格单元格类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.bodyCellClassNames||[],onChange:e=>i("bodyCellClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页根类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.paginationRootClassNames||[],onChange:e=>i("paginationRootClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页项类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.paginationItemClassNames||[],onChange:e=>i("paginationItemClassNames",e)})}),(0,ed.jsx)(ti.Modal,{title:"编辑列",open:a,footer:null,width:400,onCancel:()=>o(!1),children:(0,ed.jsx)(ti.Form,{layout:"vertical",size:"small",children:(0,ed.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"列名",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.title,onChange:e=>r(s,{title:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"数据索引",style:{marginBottom:10},children:(0,ed.jsx)(ti.Select,{mode:"tags",value:"string"==typeof u.dataIndex?[u.dataIndex]:u.dataIndex,onChange:e=>r(s,{dataIndex:e})})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.width,onChange:e=>r(s,{width:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"对齐",style:{marginBottom:10},children:(0,ed.jsxs)(ti.Radio.Group,{value:u.align,onChange:e=>r(s,{align:e.target.value}),children:[(0,ed.jsx)(ti.Radio.Button,{value:"left",children:(0,ed.jsx)(te.AlignLeftOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"center",children:(0,ed.jsx)(te.AlignCenterOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"right",children:(0,ed.jsx)(te.AlignRightOutlined,{})})]})}),(0,ed.jsx)(ti.Form.Item,{label:"省略",style:{marginBottom:10},children:(0,ed.jsx)(ti.Switch,{checked:!!u.ellipsis,onChange:e=>r(s,{ellipsis:e})})}),(0,ed.jsx)(ti.Form.Item,{label:"自定义渲染",tooltip:"支持自定义渲染,使用{{}}包裹表达式,例如:{{text}},{{record.变量名}},{{index}},{{$g.变量名}},{{$e.变量名}}",style:{gridColumn:"span 2 / span 2",marginBottom:10},children:(0,ed.jsx)(ti.Input.TextArea,{value:u.customRender,onChange:e=>r(s,{customRender:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"类名",style:{gridColumn:"span 2 / span 2",marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.className,onChange:e=>r(s,{className:e.target.value})})})]})})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'[{"name":"苹果","count":12},{"name":"华为","count":803},{"name":"OPPO","count":654},{"name":"vivo","count":719}]'},props:{size:"default",bordered:!0,showHeader:!0,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:!0,pageSize:10,columns:[{title:"品牌",dataIndex:"name"},{title:"日销量(件)",dataIndex:"count"}]}}},{group:"基础组件",key:"b-list",label:"列表",icon:"icon-unordered-list",component:e=>{let{id:t,pageSize:n=10,bordered:i=!0,size:r="default",itemLayout:a="horizontal",item:o,split:s=!0,style:l={},className:u}=e,{initCallback:c}=(0,eh.useContext)(ev),[d,h]=(0,eh.useState)(0),p=
|
|
1273
|
+
`)(console,Math,Date,Array,Object,String,Number,Boolean,_,b.global,t,n,i)}catch{return""}});return(0,ed.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})}:e.render})),T=(0,eh.useMemo)(()=>{if(!r||""===r.trim())return C||[];let e=r.split("."),t=C||[];for(let n of e)if(t[n])t=t[n];else{t=[];break}return t||[]},[r,C]),k=(0,eh.useMemo)(()=>!!a&&{total:(T||[]).length,current:w.current,pageSize:w.pageSize,size:s,showSizeChanger:u,showQuickJumper:c,hideOnSinglePage:d,pageSizeOptions:["10","20","30","40"],showTotal:h?(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`:void 0,locale:{items_per_page:"/ 页",jump_to:"跳转至第",page:"页"},onChange:(e,t)=>{S({current:e,pageSize:t})},onShowSizeChange:(e,t)=>{S({current:e,pageSize:t})}},[T,w,a,s,u,c,d,h]),I=()=>{console.log("callback table")};return(0,eh.useEffect)(()=>{S({current:1,pageSize:a})},[a]),(0,eh.useEffect)(()=>{x({id:n.id,callback:I})},[]),(0,ed.jsx)(ti.Table,{id:t,dataSource:T||[],columns:j,pagination:k,bordered:o,size:s,showHeader:"boolean"!=typeof l||l,rowKey:(e,t)=>String(t),style:{padding:1,...p},className:f,classNames:{header:{cell:(m||[]).join(" ")},body:{cell:(g||[]).join(" ")},pagination:{root:(v||[]).join(" "),item:(y||[]).join(" ")}}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n)=>{let r=[...t.columns||[]];r[e]={...r[e],...n},i("columns",r)},[a,o]=(0,eh.useState)(!1),[s,l]=(0,eh.useState)(null),u=null!=s&&t.columns[s]?t.columns[s]:{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1,customRender:"",className:""},c=[{title:"列名",dataIndex:"title"},{title:"数据索引",dataIndex:"dataIndex",render:e=>"string"==typeof e?e:e.join(".")},{title:"操作",width:80,align:"center",render:(e,n,r)=>(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{l(r),o(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...t.columns||[]]).splice(r,1),i("columns",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]})}];return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"数据键",tooltip:"数据键用于指定数据来源中的数据项,例如:'data.items'",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.dataKey,onChange:e=>i("dataKey",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"边框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.bordered,onChange:e=>i("bordered",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示表头",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showHeader,onChange:e=>i("showHeader",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示分页大小选择器",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showSizeChanger,onChange:e=>i("showSizeChanger",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示快速跳转",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showQuickJumper,onChange:e=>i("showQuickJumper",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"隐藏单页分页",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.hideOnSinglePage,onChange:e=>i("hideOnSinglePage",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示分页总数",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showTotal,onChange:e=>i("showTotal",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页大小",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.pageSize,onChange:e=>i("pageSize",e)})})]}),(0,ed.jsx)(ti.Divider,{children:"表格列设置"}),(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.columns,rowKey:(e,t)=>String(t),columns:c,pagination:!1,bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",onClick:()=>{i("columns",[...t.columns||[],{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1}])},block:!0,children:"添加列"}),(0,ed.jsx)(ti.Divider,{style:{marginTop:10},children:"样式设置"}),(0,ed.jsx)(ti.Form.Item,{label:"表头单元格类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.headerCellClassNames||[],onChange:e=>i("headerCellClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"表格单元格类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.bodyCellClassNames||[],onChange:e=>i("bodyCellClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页根类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.paginationRootClassNames||[],onChange:e=>i("paginationRootClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"分页项类名",layout:"vertical",children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:t.paginationItemClassNames||[],onChange:e=>i("paginationItemClassNames",e)})}),(0,ed.jsx)(ti.Modal,{title:"编辑列",open:a,footer:null,width:400,onCancel:()=>o(!1),children:(0,ed.jsx)(ti.Form,{layout:"vertical",size:"small",children:(0,ed.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"列名",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.title,onChange:e=>r(s,{title:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"数据索引",style:{marginBottom:10},children:(0,ed.jsx)(ti.Select,{mode:"tags",value:"string"==typeof u.dataIndex?[u.dataIndex]:u.dataIndex,onChange:e=>r(s,{dataIndex:e})})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.width,onChange:e=>r(s,{width:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"对齐",style:{marginBottom:10},children:(0,ed.jsxs)(ti.Radio.Group,{value:u.align,onChange:e=>r(s,{align:e.target.value}),children:[(0,ed.jsx)(ti.Radio.Button,{value:"left",children:(0,ed.jsx)(te.AlignLeftOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"center",children:(0,ed.jsx)(te.AlignCenterOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"right",children:(0,ed.jsx)(te.AlignRightOutlined,{})})]})}),(0,ed.jsx)(ti.Form.Item,{label:"省略",style:{marginBottom:10},children:(0,ed.jsx)(ti.Switch,{checked:!!u.ellipsis,onChange:e=>r(s,{ellipsis:e})})}),(0,ed.jsx)(ti.Form.Item,{label:"自定义渲染",tooltip:"支持自定义渲染,使用{{}}包裹表达式,例如:{{text}},{{record.变量名}},{{index}},{{$g.变量名}},{{$e.变量名}}",style:{gridColumn:"span 2 / span 2",marginBottom:10},children:(0,ed.jsx)(ti.Input.TextArea,{value:u.customRender,onChange:e=>r(s,{customRender:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"类名",style:{gridColumn:"span 2 / span 2",marginBottom:10},children:(0,ed.jsx)(ti.Input,{value:u.className,onChange:e=>r(s,{className:e.target.value})})})]})})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'[{"name":"苹果","count":12},{"name":"华为","count":803},{"name":"OPPO","count":654},{"name":"vivo","count":719}]'},props:{size:"default",bordered:!0,showHeader:!0,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:!0,pageSize:10,columns:[{title:"品牌",dataIndex:"name"},{title:"日销量(件)",dataIndex:"count"}]}}},{group:"基础组件",key:"b-list",label:"列表",icon:"icon-unordered-list",component:e=>{let{id:t,pageSize:n=10,bordered:i=!0,size:r="default",itemLayout:a="horizontal",item:o,split:s=!0,style:l={},className:u}=e,{initCallback:c}=(0,eh.useContext)(ev),[d,h]=(0,eh.useState)(0),p=nf({item:o,signal:d}),f=(0,eh.useMemo)(()=>p||[],[p]),m=(0,eh.useMemo)(()=>!!n&&!(n<=f.length)&&{total:f.length,pageSize:n,size:"default"===r?void 0:r,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,pageSizeOptions:["10","20","30","40"],showTotal:(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`},[n,f.length,r]),g=["p-list",a?`p-list--${a}`:void 0,r?`p-list--${r}`:void 0,s?"p-list--split":void 0,i?"p-list--bordered":void 0,u],v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&h(e=>e+1),{target:o,data:p}};return(0,eh.useEffect)(()=>{c({id:o.id,callback:v})},[]),(0,ed.jsxs)("div",{id:t,style:{display:"flex",flexDirection:"column",...l},className:g.filter(Boolean).join(" "),children:[(0,ed.jsx)(nS,{list:f,split:s,bordered:i,size:r,itemLayout:a}),m&&(0,ed.jsx)(ti.Pagination,{...m})]})},formComponent:e=>{let{model:t,onChange:n}=e,[i]=ti.Form.useForm();return(0,eh.useEffect)(()=>{i.setFieldsValue({size:t.size||"default",itemLayout:t.itemLayout||"horizontal",bordered:t.bordered??!1,split:t.split??!0,pageSize:t.pageSize||10})},[t,i]),(0,ed.jsxs)(ti.Form,{form:i,labelCol:{span:12},wrapperCol:{span:12},onValuesChange:e=>{null==n||n({...t,...e})},children:[(0,ed.jsx)(ti.Form.Item,{label:"大小",name:"size",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"布局",name:"itemLayout",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(ti.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(ti.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"边框",name:"bordered",valuePropName:"checked",children:(0,ed.jsx)(ti.Switch,{size:"small"})}),(0,ed.jsx)(ti.Form.Item,{label:"分割线",name:"split",valuePropName:"checked",children:(0,ed.jsx)(ti.Switch,{size:"small"})}),(0,ed.jsx)(ti.Form.Item,{label:"分页大小",name:"pageSize",children:(0,ed.jsx)(ti.InputNumber,{size:"small"})})]})},defaultOptions:{datasource:{source:"custom",custom:"[]"},props:{size:"default",itemLayout:"horizontal",bordered:!0,split:!0,pageSize:10}}},{group:"基础组件",key:"b-html",label:"HTML",icon:"icon-html",component:e=>{let{id:t,template:n="",item:i,style:r,className:a,classNames:o=[]}=e,{initCallback:s,globalVars:l,env:u}=(0,eh.useContext)(ev),{handleEvent:c}=nC(i),[d,h]=(0,eh.useState)(0),p=nf({item:i,signal:d}),f=(0,eh.useMemo)(()=>Array.isArray(p)?[]:Object.keys(p||{}),[p]),m=(0,eh.useMemo)(()=>f.map(e=>null==p?void 0:p[e]),[f,p]),g=(0,eh.useMemo)(()=>(n||"").replace(/{\s*{\s*([^}]+)\s*}\s*}/g,(e,t)=>{try{return Function("$g","$e",...f,`
|
|
1200
1274
|
"use strict";
|
|
1201
1275
|
const window = undefined;
|
|
1202
1276
|
const document = undefined;
|
|
@@ -1206,7 +1280,7 @@
|
|
|
1206
1280
|
const module = undefined;
|
|
1207
1281
|
const exports = undefined;
|
|
1208
1282
|
return ${t};
|
|
1209
|
-
`)(l,u.global,...m)}catch{return""}}),[n,m,l,u]),v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&h(e=>e+1),{target:i,data:p}};return(0,eh.useEffect)(()=>{s({id:i.id,callback:v})},[]),(0,ed.jsx)("div",{id:t,style:r,className:(o||[]).join(" ")+" "+a,dangerouslySetInnerHTML:{__html:g},onClick:()=>{c("click")}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(0,eh.useRef)(null),r=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsx)("div",{children:(0,ed.jsxs)(ti.Form,{layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"类名",children:(0,ed.jsx)(ti.Select,{size:"small",value:t.classNames,mode:"tags",onChange:e=>r("classNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)(ti.Space,{children:["模板",(0,ed.jsx)(ti.Tooltip,{title:(0,ed.jsxs)(ed.Fragment,{children:["模板语法参考",(0,ed.jsxs)("ul",{style:{padding:0,listStyle:"none"},children:[(0,ed.jsxs)("li",{children:["变量调用:",`{{变量名}}`]}),(0,ed.jsxs)("li",{children:["环境变量:",`{{$e.变量名}}`]}),(0,ed.jsxs)("li",{children:["全局变量:",`{{$g.变量名}}`]})]})]}),children:(0,ed.jsx)(te.InfoCircleOutlined,{})})]}),(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=i.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tn,{type:"icon-formate"})," 格式化"]})]}),className:"ant-form-item-label-space",children:(0,ed.jsx)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:(0,ed.jsx)(ts(),{onMount:e=>{i.current={editor:e}},height:"300px",defaultLanguage:"html",value:t.template,onChange:e=>r("template",e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'{"name": "Confucius"}'},props:{template:"<div>{{name}}, welcome to the world of programming.</div>"}},events:[{name:"点击",handler:"click"}]},{group:"基础组件",key:"b-echarts",label:"图表",icon:"icon-echarts",component:e=>{let{id:t,script:n="",item:i,height:r=400,style:a,className:o}=e,{initCallback:s,globalVars:l,env:u}=(0,eh.useContext)(ev),c=(0,eh.useRef)(null),[d,h]=(0,eh.useState)(null),[p,f]=(0,eh.useState)(0),m=
|
|
1283
|
+
`)(l,u.global,...m)}catch{return""}}),[n,m,l,u]),v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&h(e=>e+1),{target:i,data:p}};return(0,eh.useEffect)(()=>{s({id:i.id,callback:v})},[]),(0,ed.jsx)("div",{id:t,style:r,className:(o||[]).join(" ")+" "+a,dangerouslySetInnerHTML:{__html:g},onClick:()=>{c("click")}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(0,eh.useRef)(null),r=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsx)("div",{children:(0,ed.jsxs)(ti.Form,{layout:"vertical",children:[(0,ed.jsx)(ti.Form.Item,{label:"类名",children:(0,ed.jsx)(ti.Select,{size:"small",value:t.classNames,mode:"tags",onChange:e=>r("classNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)(ti.Space,{children:["模板",(0,ed.jsx)(ti.Tooltip,{title:(0,ed.jsxs)(ed.Fragment,{children:["模板语法参考",(0,ed.jsxs)("ul",{style:{padding:0,listStyle:"none"},children:[(0,ed.jsxs)("li",{children:["变量调用:",`{{变量名}}`]}),(0,ed.jsxs)("li",{children:["环境变量:",`{{$e.变量名}}`]}),(0,ed.jsxs)("li",{children:["全局变量:",`{{$g.变量名}}`]})]})]}),children:(0,ed.jsx)(te.InfoCircleOutlined,{})})]}),(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=i.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tn,{type:"icon-formate"})," 格式化"]})]}),className:"ant-form-item-label-space",children:(0,ed.jsx)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:(0,ed.jsx)(ts(),{onMount:e=>{i.current={editor:e}},height:"300px",defaultLanguage:"html",value:t.template,onChange:e=>r("template",e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'{"name": "Confucius"}'},props:{template:"<div>{{name}}, welcome to the world of programming.</div>"}},events:[{name:"点击",handler:"click"}]},{group:"基础组件",key:"b-echarts",label:"图表",icon:"icon-echarts",component:e=>{let{id:t,script:n="",item:i,height:r=400,style:a,className:o}=e,{initCallback:s,globalVars:l,env:u}=(0,eh.useContext)(ev),c=(0,eh.useRef)(null),[d,h]=(0,eh.useState)(null),[p,f]=(0,eh.useState)(0),m=nf({item:i,signal:p}),{handleEvent:g}=nC(i),v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return arguments.length>1&&arguments[1],e&&f(e=>e+1),{target:i,data:m}};return(0,eh.useEffect)(()=>{let e=(e=>{try{return JSON.parse(e)}catch(t){try{return Function("echarts","console","Math","Date","Array","Object","String","Number","Boolean","$g","$e","data",`
|
|
1210
1284
|
"use strict";
|
|
1211
1285
|
const window = undefined;
|
|
1212
1286
|
const document = undefined;
|
|
@@ -1216,7 +1290,7 @@
|
|
|
1216
1290
|
const module = undefined;
|
|
1217
1291
|
const exports = undefined;
|
|
1218
1292
|
${e}
|
|
1219
|
-
`)(
|
|
1293
|
+
`)(nj,console,Math,Date,Array,Object,String,Number,Boolean,l,u.global,m)}catch(e){return null}}})(n);if(d&&e){try{d.setOption(e)}catch(e){console.error("ECharts 设置配置失败:",e)}setTimeout(()=>d.resize(),50)}},[d,n,m,l,u]),(0,eh.useEffect)(()=>{d&&(()=>{if(!d)return;let e=(i.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{});["click","dblclick","selectchanged"].forEach(t=>{var n;d.off(t),(null==(n=e[t])?void 0:n.length)&&d.on(t,e=>{g(t,e)})})})()},[d,i.events]),(0,eh.useEffect)(()=>{if(!c.current)return;let e=nj.init(c.current);h(e);let t=()=>e.resize();return window.addEventListener("resize",t),s({id:i.id,callback:v}),()=>{window.removeEventListener("resize",t),e.dispose()}},[]),(0,ed.jsx)("div",{id:t,style:{width:"100%",height:r,...a},className:o,children:(0,ed.jsx)("div",{ref:c,style:{width:"100%",height:r,...a}})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(0,eh.useRef)(null);return(0,ed.jsxs)(ti.Form,{children:[(0,ed.jsx)(ti.Form.Item,{label:"高度",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.InputNumber,{value:t.height,size:"small",min:10,max:1e3,suffix:"px",onChange:e=>n&&n({...t,height:e})})}),(0,ed.jsx)(ti.Form.Item,{layout:"vertical",label:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)(ti.Space,{children:["Echarts 渲染脚本"," ",(0,ed.jsx)(ti.Tooltip,{title:(0,ed.jsxs)(ed.Fragment,{children:["模板语法参考",(0,ed.jsxs)("ul",{style:{padding:0,listStyle:"none"},children:[(0,ed.jsxs)("li",{children:["变量调用:",`{{变量名}}`]}),(0,ed.jsxs)("li",{children:["环境变量:",`{{$e.变量名}}`]}),(0,ed.jsxs)("li",{children:["全局变量:",`{{$g.变量名}}`]}),(0,ed.jsxs)("li",{children:["函数参数:","{{data}}"]})]})]}),children:(0,ed.jsx)(te.InfoCircleOutlined,{})})]}),(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=i.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tn,{type:"icon-formate"})," 格式化"]})]}),className:"ant-form-item-label-space",children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:["function getOptions(data) ","{"," "]}),(0,ed.jsx)(ts(),{onMount:e=>{i.current={editor:e}},height:"400px",defaultLanguage:"javascript",value:t.script,onChange:e=>{let i;return i=e||"",n&&n({...t,script:i||""})},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:"}"})]})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'[{"name":"Mon","value":150},{"name":"Tue","value":230},{"name":"Wed","value":224},{"name":"Thu","value":218},{"name":"Fri","value":135},{"name":"Sat","value":147},{"name":"Sun","value":260}]'},props:{script:`
|
|
1220
1294
|
return {
|
|
1221
1295
|
xAxis: { type: 'category', data: data.map(i => i.name) },
|
|
1222
1296
|
yAxis: { type: 'value' },
|
|
@@ -1235,4 +1309,4 @@ return {
|
|
|
1235
1309
|
div.ant-anchor-link + div.ant-anchor-link {
|
|
1236
1310
|
margin-top: ${s||30}px;
|
|
1237
1311
|
}
|
|
1238
|
-
`;return(0,ed.jsx)("div",{id:t,className:(p||[]).join(" ")+" "+h,children:(0,ed.jsx)(g,{style:i,items:m,offsetTop:l,getContainer:()=>f?document.querySelector(".center > .body.beautified_scrollbar.always"):window,classNames:{item:(u||[]).join(" "),itemTitle:(c||[]).join(" "),indicator:(d||[]).join(" ")},styles:{item:{paddingTop:0,paddingBottom:0},itemTitle:{},indicator:{left:`${r||0}px !important`,width:`${o||2}px !important`}}})})},formComponent:e=>{var t;let{model:n,onChange:i}=e,{schema:r}=(0,eh.useContext)(ev),a=(e,t)=>i&&i({...n,[e]:t}),o=(e,t)=>{let i=[...n.items||[]];i[e]={...i[e],...t},a("items",i)},[s,l]=(0,eh.useState)(!1),[u,c]=(0,eh.useState)(null),d=null!=u&&(null==(t=n.items)?void 0:t[u])?n.items[u]:{title:"",href:"",key:""},h=[{title:"标题",dataIndex:"title",render:e=>(0,ed.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},{title:"操作",width:80,align:"center",render:(e,t,i)=>(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{c(i),l(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...n.items||[]]).splice(i,1),a("items",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]})}],p=(0,eh.useMemo)(()=>{let e=[],t=n=>{Array.isArray(n)&&n.forEach(n=>{e.push(n),Array.isArray(n.children)?t(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>t(n.children[e]))})};return t((null==r?void 0:r.items)||[]),e},[r]);return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"线位置(left)",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.linePosition,suffix:"px",onChange:e=>a("linePosition",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"线颜色",children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:n.lineColor,onChange:e=>a("lineColor",e.toHexString()),allowClear:!0})}),(0,ed.jsx)(ti.Form.Item,{label:"线宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.lineWidth,suffix:"px",onChange:e=>a("lineWidth",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.gap,suffix:"px",onChange:e=>a("gap",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"顶部偏移量",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.offsetTop,suffix:"px",onChange:e=>a("offsetTop",e)})}),(0,ed.jsx)(ti.Divider,{style:{marginTop:10},children:"样式设置"}),(0,ed.jsx)(ti.Form.Item,{label:"根类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{size:"small",value:n.classNames,mode:"tags",onChange:e=>a("classNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"链接项类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.itemClassNames||[],onChange:e=>a("itemClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"标题文字类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.itemTitleClassNames||[],onChange:e=>a("itemTitleClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"指示器类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.indicatorClassNames||[],onChange:e=>a("indicatorClassNames",e)})})]}),(0,ed.jsx)(ti.Divider,{children:"锚点项设置"}),(0,ed.jsx)(ti.Table,{size:"small",dataSource:n.items,rowKey:(e,t)=>String(t),columns:h,pagination:!1,bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",onClick:()=>{a("items",[...n.items||[],{title:"",href:"",key:""}])},block:!0,children:"添加列"}),(0,ed.jsx)(ti.Modal,{title:"编辑列",open:s,footer:null,width:400,onCancel:()=>l(!1),children:(0,ed.jsxs)(ti.Form,{layout:"vertical",size:"small",children:[(0,ed.jsx)(ti.Form.Item,{label:"锚点内容",tooltip:"支持HTML标签",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input.TextArea,{value:d.title,onChange:e=>o(u,{title:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"锚点链接",style:{marginBottom:10},children:(0,ed.jsx)(ti.AutoComplete,{value:d.href,onChange:e=>o(u,{href:e}),options:p.map(e=>({value:e.id,label:e.name}))})})]})})]})},defaultOptions:{props:{items:[{href:"#item1",title:"<i class='icon-dict'></i>项目1"},{href:"#item2",title:"<i class='icon-dict'></i>项目2"},{href:"#item3",title:"<i class='icon-dict'></i>项目3"}],linePosition:10,lineColor:"rgba(5, 5, 5, 0.06)",lineWidth:2,gap:30,itemClassNames:[],itemTitleClassNames:[],indicatorClassNames:[]}}},{group:"表单组件",key:"b-input",label:"输入框",icon:"icon-form-input",component:e=>{let{id:t,var:n="",placeholder:i="",prefix:r,suffix:a,size:o,allowClear:s=!1,search:l=!1,item:u,value:c,onChange:d,onSearch:h,style:p={},className:f}=e,{handleCallback:m,setVar:g}=(0,eh.useContext)(ev),v=e=>{d&&d(e),u&&n&&g(u,n,e)};return l?(0,ed.jsx)(ti.Input.Search,{id:t,value:c,size:o,allowClear:s,placeholder:i,onChange:e=>v(e.target.value),onSearch:()=>{h&&h(c||""),m(u)},style:{...p},className:f}):(0,ed.jsx)(ti.Input,{id:t,value:c,size:o,allowClear:s,placeholder:i,prefix:"string"==typeof r?void 0:r,suffix:"string"==typeof a?void 0:a,onChange:e=>v(e.target.value),style:{...p},className:f})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"搜索框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.search,onChange:e=>i("search",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"占位符",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.placeholder,onChange:e=>i("placeholder",e.target.value),placeholder:"请输入占位符"})}),!t.search&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Form.Item,{label:"前缀",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.prefix,onChange:e=>i("prefix",e.target.value),placeholder:"请输入前缀"})}),(0,ed.jsx)(ti.Form.Item,{label:"后缀",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.suffix,onChange:e=>i("suffix",e.target.value),placeholder:"请输入后缀"})})]}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,search:!1,prefix:"",suffix:"",placeholder:"请输入"},cascadeIds:[]}},{group:"表单组件",key:"b-input-number",label:"数字输入框",icon:"icon-form-input-number",component:e=>{let{id:t,var:n="",value:i,size:r,placeholder:a="请输入",min:o=0,max:s=Number.MAX_SAFE_INTEGER,step:l=1,precision:u=0,item:c,onChange:d,style:h={},className:p}=e,{handleCallback:f,setVar:m}=(0,eh.useContext)(ev);return(0,ed.jsx)(ti.InputNumber,{id:t,value:i,placeholder:a,size:r,min:o,max:s,step:l,precision:u,onChange:e=>{var t;return t=e??void 0,void(d&&d(t),c&&n&&m(c,n,t),f(c))},style:{width:"100%",...h},className:p})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"最小值",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.min,onChange:e=>i("min",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"最大值",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.max,onChange:e=>i("max",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"步长",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.step,onChange:e=>i("step",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,prefix:"",suffix:"",placeholder:"请输入",step:1,min:0,max:100,precision:0},cascadeIds:[]}},{group:"表单组件",key:"b-select",label:"选择框",icon:"icon-form-select",component:e=>{let{id:t,var:n="",size:i,placeholder:r="请选择",allowClear:a=!1,multiple:o=!1,options:s=[],item:l,value:u,onChange:c,style:d={},className:h}=e,{handleCallback:p,setVar:f}=(0,eh.useContext)(ev);return(0,ed.jsx)(ti.Select,{id:t,value:u,size:i,placeholder:r,allowClear:a,mode:o?"multiple":void 0,options:s,onChange:e=>{c&&c(e),l&&n&&f(l,n,e),p(l)},style:{width:"100%",...d},className:h})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"占位符",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.placeholder,onChange:e=>i("placeholder",e.target.value),placeholder:"请输入占位符"})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"多选",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.multiple,onChange:e=>i("multiple",e)})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-capsule",label:"胶囊选择器",icon:"icon-form-capsule",component:e=>{let{id:t,var:n="",size:i="middle",options:r=[],item:a,onChange:o,style:s,className:l}=e,{handleCallback:u,setVar:c}=(0,eh.useContext)(ev);return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(ti.Radio.Group,{id:t,size:i,buttonStyle:"solid",onChange:e=>{var t;return t=e.target.value,void(o&&o(t),a&&n&&c(a,n,t),u(a))},style:s,className:l,children:r.map(e=>(0,ed.jsx)(ti.Radio.Button,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-checkbox",label:"复选框",icon:"icon-form-checkbox",component:e=>{let{id:t,var:n="",layout:i="horizontal",lineNumber:r=3,options:a=[],item:o,onChange:s,style:l,className:u}=e,{handleCallback:c,setVar:d}=(0,eh.useContext)(ev),h={...l,display:"grid"===i?"grid":"flex",gap:"grid"===i?void 0:"8px",flexDirection:"vertical"===i?"column":"row",gridTemplateColumns:"grid"===i?`repeat(${r}, 1fr)`:void 0};return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(ti.Checkbox.Group,{onChange:e=>{s&&s(e),o&&n&&d(o,n,e),c(o)},style:h,className:u,children:a.map(e=>(0,ed.jsx)(ti.Checkbox,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"布局",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.layout,onChange:e=>i("layout",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(ti.Radio.Button,{value:"vertical",children:"垂直"}),(0,ed.jsx)(ti.Radio.Button,{value:"grid",children:"网格"})]})}),"grid"===t.layout&&(0,ed.jsx)(ti.Form.Item,{label:"网格行数",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.lineNumber,onChange:e=>i("lineNumber",e),min:1,max:10})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",layout:"horizontal",lineNumber:3,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-date-picker",label:"日期选择器",icon:"icon-form-date-picker",component:e=>{let{id:t,var:n="",size:i,allowClear:r=!1,type:a="date",showTime:o=!1,value:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(ev),f=e=>{u&&u(e),l&&n&&p(l,n,e),h(l)};if("time"===a){let e="string"==typeof s&&s?md()(s,"HH:mm"):void 0;return(0,ed.jsx)(ti.TimePicker,{id:t,value:e,format:"HH:mm",placeholder:"请选择时间",size:i,allowClear:r,onChange:e=>f(e?e.format("HH:mm"):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("month"===a||"year"===a){let e="month"===a?"YYYY-MM":"YYYY",n="string"==typeof s&&s?md()(s,e):void 0;return(0,ed.jsx)(ti.DatePicker,{id:t,picker:a,value:n,format:e,placeholder:"month"===a?"请选择月份":"请选择年份",size:i,allowClear:r,onChange:t=>f(t?t.format(e):void 0),onPanelChange:t=>f(t?t.format(e):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("range"===a){let e=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",n=Array.isArray(s)&&s[0]?md()(s[0],e):void 0,a=Array.isArray(s)&&s[1]?md()(s[1],e):void 0;return(0,ed.jsx)(ti.DatePicker.RangePicker,{id:t,value:[n,a],format:e,placeholder:["开始日期","结束日期"],size:i,allowClear:r,showTime:o,onChange:t=>f(t&&t[0]&&t[1]?[t[0].format(e),t[1].format(e)]:void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}let m=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",g="string"==typeof s&&s?md()(s,m):void 0;return(0,ed.jsx)(ti.DatePicker,{id:t,value:g,format:m,placeholder:"请选择日期",size:i,allowClear:r,showTime:o,style:{...(null==l?void 0:l.style)||{},...c},className:d,onChange:e=>f(e?e.format(m):void 0)})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.type,onChange:e=>i("type",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"date",children:"日期"}),(0,ed.jsx)(ti.Radio.Button,{value:"time",children:"时间"}),(0,ed.jsx)(ti.Radio.Button,{value:"month",children:"月份"}),(0,ed.jsx)(ti.Radio.Button,{value:"year",children:"年份"}),(0,ed.jsx)(ti.Radio.Button,{value:"range",children:"日期范围"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示时间",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showTime,onChange:e=>i("showTime",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,showTime:!1,type:"date"},cascadeIds:[]}},{group:"表单组件",key:"b-switch",label:"开关",icon:"icon-form-switch",component:e=>{let{id:t,var:n="",checked:i,disabled:r,size:a="default",checkedChildren:o,unCheckedChildren:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(ev);return(0,ed.jsx)("span",{children:(0,ed.jsx)(ti.Switch,{id:t,checked:i,disabled:r,size:"small"===a?"small":void 0,checkedChildren:o,unCheckedChildren:s,onChange:e=>{u&&u(e),l&&n&&p(l,n,e),h(l)},style:c,className:d})})},formComponent:e=>{let{model:t,onChange:n}=e;return(0,ed.jsx)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>{let i;return i=e.target.value,n&&n({...t,var:i})},placeholder:"请输入变量名"})})})},defaultOptions:{props:{var:"",size:"default",checkedChildren:"开",unCheckedChildren:"关"},cascadeIds:[]}},{group:"容器组件",key:"b-space",label:"容器",icon:"icon-space",component:e=>{let{id:t,align:n="start",size:i="small",direction:r="horizontal",item:a,ancestors:o,style:s={},className:l}=e,[u,c]=(0,eh.useState)(a.children||[]),d=(0,eh.useMemo)(()=>({...s,...a.style||{},alignItems:n,flexDirection:r,gap:i}),[a,n,i,r]);return(0,eh.useEffect)(()=>{c(a.children||[])},[a.children]),(0,ed.jsx)(tg,{rootComponent:ti.Space,rootData:{id:t,style:d,className:l},item:a,ancestors:[...o,a],list:u,onListChange:e=>{a.children=e,c(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"方向",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.direction,onChange:e=>i("direction",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(ti.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"对齐",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.align,onChange:e=>i("align",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"start",children:"开始"}),(0,ed.jsx)(ti.Radio.Button,{value:"end",children:"结束"}),(0,ed.jsx)(ti.Radio.Button,{value:"center",children:"居中"}),(0,ed.jsx)(ti.Radio.Button,{value:"baseline",children:"基线"})]})})]})},defaultOptions:{props:{align:"flex-start",direction:"row",size:"8px"},children:[]}},{group:"容器组件",key:"b-card",label:"卡片",icon:"icon-card",component:e=>{let{id:t,bordered:n=!1,size:i="default",title:r,hoverable:a=!1,shadow:o=!0,item:s,ancestors:l,style:u,className:c}=e,d=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.title||[],[s]),[h,p]=(0,eh.useState)(d||[]),f=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.extra||[],[s]),[m,g]=(0,eh.useState)(f||[]),v=(0,eh.useMemo)(()=>s.children?Array.isArray(s.children)?s.children:"object"!=typeof s.children?null:s.children.body||[]:null,[s]),[y,x]=(0,eh.useState)(v||[]),_=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.actions||[],[s]),[b,w]=(0,eh.useState)(_||[]);return(0,eh.useEffect)(()=>{p(d||[])},[d]),(0,eh.useEffect)(()=>{g(f||[])},[f]),(0,eh.useEffect)(()=>{x(v||[])},[v]),(0,eh.useEffect)(()=>{w(_||[])},[_]),(0,ed.jsx)(ti.Card,{id:t,variant:n?"outlined":"borderless",size:i,hoverable:a,className:[o?"ant-card-shadow":void 0,c].filter(Boolean).join(" "),title:(null==r?void 0:r.length)&&!(null==d?void 0:d.length)?r:d?(0,ed.jsx)(tg,{ancestors:[...l,s],list:h,onListChange:e=>{s.children.title=e,p(e)}}):r,extra:f&&(0,ed.jsx)(tg,{ancestors:[...l,s],list:m,onListChange:e=>{s.children.extra=e,g(e)}}),actions:_&&[(0,ed.jsx)(tg,{ancestors:[...l,s],list:b,onListChange:e=>{s.children.actions=e,w(e)}})],styles:{header:{borderBottom:"none"}},style:u,children:v&&(0,ed.jsx)(tg,{ancestors:[...l,s],list:y,onListChange:e=>{Array.isArray(s.children)?s.children=e:s.children.body=e,x(e)}})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"边框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.bordered,onChange:e=>i("bordered",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"悬停效果",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.hoverable,onChange:e=>i("hoverable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"阴影",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.shadow,onChange:e=>i("shadow",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"})]})})]})},defaultOptions:{props:{title:"标题",bordered:!0,hoverable:!0,shadow:!0,size:"default"},children:{title:[],extra:[],body:[],actions:[]}}},{group:"容器组件",key:"b-row",label:"栅格行",icon:"icon-grid-row",component:e=>{let{id:t,gutter:n,item:i,ancestors:r,style:a,className:o}=e,[s,l]=(0,eh.useState)(i.children||[]);return(0,eh.useEffect)(()=>{l(i.children||[])},[i.children]),(0,ed.jsx)(tg,{rootComponent:ti.Row,rootData:{id:t,gutter:n,style:i.style||a,className:i.className||o},item:i,ancestors:[...r,i],list:s,onListChange:e=>{i.children=e,l(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=t.gutter||[0,0];return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"列间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:r[0],min:0,step:4,onChange:e=>i("gutter",[e||0,r[1]])})}),(0,ed.jsx)(ti.Form.Item,{label:"行间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:r[1],min:0,step:4,onChange:e=>i("gutter",[r[0],e||0])})})]})},defaultOptions:{props:{gutter:[12,12]},children:[]}},{group:"容器组件",key:"b-col",label:"栅格列",icon:"icon-grid-columns",component:e=>{let{id:t,span:n=24,xs:i,sm:r,md:a,lg:o,xl:s,xxl:l,item:u,ancestors:c,style:d={},className:h}=e,{deviceWidth:p}=(0,eh.useContext)(ev),[f,m]=(0,eh.useState)(u.children||[]),g=(0,eh.useMemo)(()=>{let e=p||1600,t=null;return e<576&&i&&(t=i),e>=576&&r&&(t=r),e>=768&&a&&(t=a),e>=992&&o&&(t=o),e>=1200&&s&&(t=s),e>=1600&&l&&(t=l),t||n},[i,r,a,o,s,l,n,p]);return(0,eh.useEffect)(()=>{m(u.children||[])},[u.children]),(0,ed.jsx)(tg,{rootComponent:ti.Col,rootData:{id:t||u.id,span:g,style:{...u.style||{},...d},className:h},item:u,ancestors:[...c,u],list:f,onListChange:e=>{u.children=e,m(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"默认列数",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.span,min:0,max:24,step:4,onChange:e=>i("span",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xs"," ",(0,ed.jsx)(ti.Tooltip,{title:"<576px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xs,min:0,max:24,step:4,onChange:e=>i("xs",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["sm"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥576px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.sm,min:0,max:24,step:4,onChange:e=>i("sm",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["md"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥768px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.md,min:0,max:24,step:4,onChange:e=>i("md",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["lg"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥992px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.lg,min:0,max:24,step:4,onChange:e=>i("lg",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xl"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥1200px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xl,min:0,max:24,step:4,onChange:e=>i("xl",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xxl"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥1600px 响应式栅格",children:(0,ed.jsx)(ns,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xxl,min:0,max:24,step:4,onChange:e=>i("xxl",e||0)})})]})},defaultOptions:{props:{xs:24,sm:12,md:12,lg:6,xl:6,xxl:6,span:8},children:[]}},{group:"容器组件",key:"b-modal",label:"弹窗",icon:"icon-modal",component:e=>{let{id:t,item:n,ancestors:i,style:r={},className:a,footer:o=!0,...s}=e,{designable:l,selectedItem:u,setSelectedItem:c,initCallback:d,initMethod:h}=(0,eh.useContext)(ev),[p,f]=(0,eh.useState)(!1),[m,g]=(0,eh.useState)(n.children||[]),{handleEvent:v}=nb(n),y=()=>{f(!0)};(0,eh.useEffect)(()=>{g(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let i=t.getBoundingClientRect();if(0===i.width&&0===i.height){e.style.display="none";return}e.style.display="flex";let r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${i.top+r-22}px`,e.style.left=`${i.left+a-1}px`})()},0)},[p]),(0,eh.useEffect)(()=>{d({id:n.id,callback:y}),h({id:n.id,method:{open:()=>f(!0),close:()=>f(!1)}})},[]);let x=[a,"drag-container","page-item-component",u===n?"selected":"",l?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[l&&(0,ed.jsxs)(mh,{id:p?void 0:t||n.id,onDoubleClick:()=>f(!0),className:x,children:["弹窗:",n.name,"(",n.id,")"]}),(0,ed.jsx)(ti.Modal,{...s,open:p,onCancel:()=>f(!1),afterOpenChange:e=>{v(e?"open":"close")},getContainer:()=>l?document.querySelector(".page-canvas"):document.body,style:{...n.style||{},...r,paddingBottom:0},className:a,modalRender:e=>(0,ed.jsx)("div",{id:p?t||n.id:void 0,onClick:()=>c(n),children:e}),footer:o?void 0:null,children:(0,ed.jsx)(tg,{ancestors:[...i,n],list:m,onListChange:e=>{n.children=e,g(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:t.width,suffix:"px",onChange:e=>i("width",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>i("okText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>i("cancelText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.okType,onChange:e=>i("okType",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(ti.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.closable,onChange:e=>i("closable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(nl,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.keyboard,onChange:e=>i("keyboard",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.mask,onChange:e=>i("mask",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(nl,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.maskClosable,onChange:e=>i("maskClosable",e)})}),(0,ed.jsx)(ti.Divider,{children:"组件方法"}),(0,ed.jsx)(ti.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开模态框"},{key:"close",label:"close",children:"关闭模态框"}]})]})},defaultOptions:{props:{title:"标题",width:400,okType:"primary",okText:"确定",cancelText:"取消",maskClosable:!0,mask:!0,closable:!0,keyboard:!0,footer:!1},children:[]},events:[{name:"打开",handler:"open"},{name:"关闭",handler:"close"}]},{group:"容器组件",key:"b-drawer",label:"抽屉",icon:"icon-drawer",component:e=>{let{id:t,item:n,ancestors:i,style:r={},className:a,footer:o=!0,okType:s="primary",okText:l="确定",cancelText:u="取消",resizable:c=!0,...d}=e,{designable:h,selectedItem:p,setSelectedItem:f,initCallback:m,initMethod:g}=(0,eh.useContext)(ev),[v,y]=(0,eh.useState)(!1),[x,_]=(0,eh.useState)(n.children||[]),[b,w]=(0,eh.useState)(d.size||400),{handleEvent:S}=nb(n),C=()=>{y(!0)};(0,eh.useEffect)(()=>{w(d.size||400)},[d.size]),(0,eh.useEffect)(()=>{_(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let i=t.getBoundingClientRect();if(0===i.width&&0===i.height){e.style.display="none";return}e.style.display="flex";let r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${i.top+r-22}px`,e.style.left=`${i.left+a-1}px`})()},0)},[v]),(0,eh.useEffect)(()=>{m({id:n.id,callback:C}),g({id:n.id,method:{open:()=>y(!0),close:()=>y(!1)}})},[]);let j=[a,"drag-container","page-item-component",p===n?"selected":"",h?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[h&&(0,ed.jsxs)(mp,{id:v?void 0:t||n.id,onDoubleClick:()=>y(!0),className:j,children:["抽屉:",n.name,"(",n.id,")"]}),(0,ed.jsx)(ti.Drawer,{...d,id:t||n.id,open:v,size:b,onClose:()=>y(!1),afterOpenChange:e=>{S(e?"open":"close")},getContainer:()=>h?document.querySelector(".page-canvas"):document.body,push:{distance:0},style:{...n.style||{},...r,paddingBottom:0},className:a,onClick:()=>f(n),footer:o?(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{onClick:()=>y(!1),children:u}),(0,ed.jsx)(ti.Button,{type:s,children:l})]}):null,resizable:{onResize:w},children:(0,ed.jsx)(tg,{ancestors:[...i,n],list:x,onListChange:e=>{n.children=e,_(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:t.size,suffix:"px",onChange:e=>i("size",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"抽屉位置",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.placement,onChange:e=>i("placement",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"top",children:"顶部"}),(0,ed.jsx)(ti.Radio.Button,{value:"bottom",children:"底部"}),(0,ed.jsx)(ti.Radio.Button,{value:"left",children:"左侧"}),(0,ed.jsx)(ti.Radio.Button,{value:"right",children:"右侧"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>i("okText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>i("cancelText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.okType,onChange:e=>i("okType",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(ti.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.closable,onChange:e=>i("closable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(nu,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.keyboard,onChange:e=>i("keyboard",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.mask,onChange:e=>i("mask",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(nu,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.maskClosable,onChange:e=>i("maskClosable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"可调整大小",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.resizable,onChange:e=>i("resizable",e)})}),(0,ed.jsx)(ti.Divider,{children:"组件方法"}),(0,ed.jsx)(ti.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开抽屉"},{key:"close",label:"close",children:"关闭抽屉"}]})]})},defaultOptions:{props:{title:"标题",size:400,placement:"right",okType:"primary",okText:"确定",cancelText:"取消",closable:!0,keyboard:!0,maskClosable:!0,mask:!0,resizable:!0,footer:!1},children:[]},events:[{name:"打开",handler:"open"},{name:"关闭",handler:"close"}]}]})(),h})());
|
|
1312
|
+
`;return(0,ed.jsx)("div",{id:t,className:(p||[]).join(" ")+" "+h,children:(0,ed.jsx)(g,{style:i,items:m,offsetTop:l,getContainer:()=>f?document.querySelector(".center > .body.beautified_scrollbar.always"):window,classNames:{item:(u||[]).join(" "),itemTitle:(c||[]).join(" "),indicator:(d||[]).join(" ")},styles:{item:{paddingTop:0,paddingBottom:0},itemTitle:{},indicator:{left:`${r||0}px !important`,width:`${o||2}px !important`}}})})},formComponent:e=>{var t;let{model:n,onChange:i}=e,{schema:r}=(0,eh.useContext)(ev),a=(e,t)=>i&&i({...n,[e]:t}),o=(e,t)=>{let i=[...n.items||[]];i[e]={...i[e],...t},a("items",i)},[s,l]=(0,eh.useState)(!1),[u,c]=(0,eh.useState)(null),d=null!=u&&(null==(t=n.items)?void 0:t[u])?n.items[u]:{title:"",href:"",key:""},h=[{title:"标题",dataIndex:"title",render:e=>(0,ed.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},{title:"操作",width:80,align:"center",render:(e,t,i)=>(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{c(i),l(!0)},children:(0,ed.jsx)(te.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...n.items||[]]).splice(i,1),a("items",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})]})}],p=(0,eh.useMemo)(()=>{let e=[],t=n=>{Array.isArray(n)&&n.forEach(n=>{e.push(n),Array.isArray(n.children)?t(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>t(n.children[e]))})};return t((null==r?void 0:r.items)||[]),e},[r]);return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"线位置(left)",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.linePosition,suffix:"px",onChange:e=>a("linePosition",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"线颜色",children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:n.lineColor,onChange:e=>a("lineColor",e.toHexString()),allowClear:!0})}),(0,ed.jsx)(ti.Form.Item,{label:"线宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.lineWidth,suffix:"px",onChange:e=>a("lineWidth",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.gap,suffix:"px",onChange:e=>a("gap",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"顶部偏移量",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:n.offsetTop,suffix:"px",onChange:e=>a("offsetTop",e)})}),(0,ed.jsx)(ti.Divider,{style:{marginTop:10},children:"样式设置"}),(0,ed.jsx)(ti.Form.Item,{label:"根类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{size:"small",value:n.classNames,mode:"tags",onChange:e=>a("classNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"链接项类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.itemClassNames||[],onChange:e=>a("itemClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"标题文字类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.itemTitleClassNames||[],onChange:e=>a("itemTitleClassNames",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"指示器类名",layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},children:(0,ed.jsx)(ti.Select,{mode:"tags",size:"small",value:n.indicatorClassNames||[],onChange:e=>a("indicatorClassNames",e)})})]}),(0,ed.jsx)(ti.Divider,{children:"锚点项设置"}),(0,ed.jsx)(ti.Table,{size:"small",dataSource:n.items,rowKey:(e,t)=>String(t),columns:h,pagination:!1,bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",onClick:()=>{a("items",[...n.items||[],{title:"",href:"",key:""}])},block:!0,children:"添加列"}),(0,ed.jsx)(ti.Modal,{title:"编辑列",open:s,footer:null,width:400,onCancel:()=>l(!1),children:(0,ed.jsxs)(ti.Form,{layout:"vertical",size:"small",children:[(0,ed.jsx)(ti.Form.Item,{label:"锚点内容",tooltip:"支持HTML标签",style:{marginBottom:10},children:(0,ed.jsx)(ti.Input.TextArea,{value:d.title,onChange:e=>o(u,{title:e.target.value})})}),(0,ed.jsx)(ti.Form.Item,{label:"锚点链接",style:{marginBottom:10},children:(0,ed.jsx)(ti.AutoComplete,{value:d.href,onChange:e=>o(u,{href:e}),options:p.map(e=>({value:e.id,label:e.name}))})})]})})]})},defaultOptions:{props:{items:[{href:"#item1",title:"<i class='icon-dict'></i>项目1"},{href:"#item2",title:"<i class='icon-dict'></i>项目2"},{href:"#item3",title:"<i class='icon-dict'></i>项目3"}],linePosition:10,lineColor:"rgba(5, 5, 5, 0.06)",lineWidth:2,gap:30,itemClassNames:[],itemTitleClassNames:[],indicatorClassNames:[]}}},{group:"表单组件",key:"b-input",label:"输入框",icon:"icon-form-input",component:e=>{let{id:t,var:n="",placeholder:i="",prefix:r,suffix:a,size:o,allowClear:s=!1,search:l=!1,item:u,value:c,onChange:d,onSearch:h,style:p={},className:f}=e,{handleCallback:m,setVar:g}=(0,eh.useContext)(ev),v=e=>{d&&d(e),u&&n&&g(u,n,e)};return l?(0,ed.jsx)(ti.Input.Search,{id:t,value:c,size:o,allowClear:s,placeholder:i,onChange:e=>v(e.target.value),onSearch:()=>{h&&h(c||""),m(u)},style:{...p},className:f}):(0,ed.jsx)(ti.Input,{id:t,value:c,size:o,allowClear:s,placeholder:i,prefix:"string"==typeof r?void 0:r,suffix:"string"==typeof a?void 0:a,onChange:e=>v(e.target.value),style:{...p},className:f})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"搜索框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.search,onChange:e=>i("search",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"占位符",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.placeholder,onChange:e=>i("placeholder",e.target.value),placeholder:"请输入占位符"})}),!t.search&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ti.Form.Item,{label:"前缀",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.prefix,onChange:e=>i("prefix",e.target.value),placeholder:"请输入前缀"})}),(0,ed.jsx)(ti.Form.Item,{label:"后缀",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.suffix,onChange:e=>i("suffix",e.target.value),placeholder:"请输入后缀"})})]}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,search:!1,prefix:"",suffix:"",placeholder:"请输入"},cascadeIds:[]}},{group:"表单组件",key:"b-input-number",label:"数字输入框",icon:"icon-form-input-number",component:e=>{let{id:t,var:n="",value:i,size:r,placeholder:a="请输入",min:o=0,max:s=Number.MAX_SAFE_INTEGER,step:l=1,precision:u=0,item:c,onChange:d,style:h={},className:p}=e,{handleCallback:f,setVar:m}=(0,eh.useContext)(ev);return(0,ed.jsx)(ti.InputNumber,{id:t,value:i,placeholder:a,size:r,min:o,max:s,step:l,precision:u,onChange:e=>{var t;return t=e??void 0,void(d&&d(t),c&&n&&m(c,n,t),f(c))},style:{width:"100%",...h},className:p})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"最小值",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.min,onChange:e=>i("min",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"最大值",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.max,onChange:e=>i("max",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"步长",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.step,onChange:e=>i("step",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,prefix:"",suffix:"",placeholder:"请输入",step:1,min:0,max:100,precision:0},cascadeIds:[]}},{group:"表单组件",key:"b-select",label:"选择框",icon:"icon-form-select",component:e=>{let{id:t,var:n="",size:i,placeholder:r="请选择",allowClear:a=!1,multiple:o=!1,options:s=[],item:l,value:u,onChange:c,style:d={},className:h}=e,{handleCallback:p,setVar:f}=(0,eh.useContext)(ev);return(0,ed.jsx)(ti.Select,{id:t,value:u,size:i,placeholder:r,allowClear:a,mode:o?"multiple":void 0,options:s,onChange:e=>{c&&c(e),l&&n&&f(l,n,e),p(l)},style:{width:"100%",...d},className:h})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"占位符",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.placeholder,onChange:e=>i("placeholder",e.target.value),placeholder:"请输入占位符"})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"多选",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.multiple,onChange:e=>i("multiple",e)})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-capsule",label:"胶囊选择器",icon:"icon-form-capsule",component:e=>{let{id:t,var:n="",size:i="middle",options:r=[],item:a,onChange:o,style:s,className:l}=e,{handleCallback:u,setVar:c}=(0,eh.useContext)(ev);return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(ti.Radio.Group,{id:t,size:i,buttonStyle:"solid",onChange:e=>{var t;return t=e.target.value,void(o&&o(t),a&&n&&c(a,n,t),u(a))},style:s,className:l,children:r.map(e=>(0,ed.jsx)(ti.Radio.Button,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-checkbox",label:"复选框",icon:"icon-form-checkbox",component:e=>{let{id:t,var:n="",layout:i="horizontal",lineNumber:r=3,options:a=[],item:o,onChange:s,style:l,className:u}=e,{handleCallback:c,setVar:d}=(0,eh.useContext)(ev),h={...l,display:"grid"===i?"grid":"flex",gap:"grid"===i?void 0:"8px",flexDirection:"vertical"===i?"column":"row",gridTemplateColumns:"grid"===i?`repeat(${r}, 1fr)`:void 0};return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(ti.Checkbox.Group,{onChange:e=>{s&&s(e),o&&n&&d(o,n,e),c(o)},style:h,className:u,children:a.map(e=>(0,ed.jsx)(ti.Checkbox,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=(e,n,r)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:r},i("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.label,onChange:e=>r(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(ti.Input,{size:"small",value:t.value,onChange:e=>r(n,"value",e.target.value)})},{title:"操作",render:(e,n,r)=>(0,ed.jsx)(ti.Space,{children:(0,ed.jsx)(ti.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(r,1),i("options",e)},children:(0,ed.jsx)(te.DeleteOutlined,{})})})}];return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"布局",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.layout,onChange:e=>i("layout",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(ti.Radio.Button,{value:"vertical",children:"垂直"}),(0,ed.jsx)(ti.Radio.Button,{value:"grid",children:"网格"})]})}),"grid"===t.layout&&(0,ed.jsx)(ti.Form.Item,{label:"网格行数",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.lineNumber,onChange:e=>i("lineNumber",e),min:1,max:10})}),(0,ed.jsxs)(ti.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(ti.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(ti.Button,{size:"small",block:!0,onClick:()=>{i("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",layout:"horizontal",lineNumber:3,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-date-picker",label:"日期选择器",icon:"icon-form-date-picker",component:e=>{let{id:t,var:n="",size:i,allowClear:r=!1,type:a="date",showTime:o=!1,value:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(ev),f=e=>{u&&u(e),l&&n&&p(l,n,e),h(l)};if("time"===a){let e="string"==typeof s&&s?mf()(s,"HH:mm"):void 0;return(0,ed.jsx)(ti.TimePicker,{id:t,value:e,format:"HH:mm",placeholder:"请选择时间",size:i,allowClear:r,onChange:e=>f(e?e.format("HH:mm"):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("month"===a||"year"===a){let e="month"===a?"YYYY-MM":"YYYY",n="string"==typeof s&&s?mf()(s,e):void 0;return(0,ed.jsx)(ti.DatePicker,{id:t,picker:a,value:n,format:e,placeholder:"month"===a?"请选择月份":"请选择年份",size:i,allowClear:r,onChange:t=>f(t?t.format(e):void 0),onPanelChange:t=>f(t?t.format(e):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("range"===a){let e=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",n=Array.isArray(s)&&s[0]?mf()(s[0],e):void 0,a=Array.isArray(s)&&s[1]?mf()(s[1],e):void 0;return(0,ed.jsx)(ti.DatePicker.RangePicker,{id:t,value:[n,a],format:e,placeholder:["开始日期","结束日期"],size:i,allowClear:r,showTime:o,onChange:t=>f(t&&t[0]&&t[1]?[t[0].format(e),t[1].format(e)]:void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}let m=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",g="string"==typeof s&&s?mf()(s,m):void 0;return(0,ed.jsx)(ti.DatePicker,{id:t,value:g,format:m,placeholder:"请选择日期",size:i,allowClear:r,showTime:o,style:{...(null==l?void 0:l.style)||{},...c},className:d,onChange:e=>f(e?e.format(m):void 0)})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>i("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.type,onChange:e=>i("type",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"date",children:"日期"}),(0,ed.jsx)(ti.Radio.Button,{value:"time",children:"时间"}),(0,ed.jsx)(ti.Radio.Button,{value:"month",children:"月份"}),(0,ed.jsx)(ti.Radio.Button,{value:"year",children:"年份"}),(0,ed.jsx)(ti.Radio.Button,{value:"range",children:"日期范围"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"清除图标",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>i("allowClear",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示时间",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.showTime,onChange:e=>i("showTime",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,showTime:!1,type:"date"},cascadeIds:[]}},{group:"表单组件",key:"b-switch",label:"开关",icon:"icon-form-switch",component:e=>{let{id:t,var:n="",checked:i,disabled:r,size:a="default",checkedChildren:o,unCheckedChildren:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(ev);return(0,ed.jsx)("span",{children:(0,ed.jsx)(ti.Switch,{id:t,checked:i,disabled:r,size:"small"===a?"small":void 0,checkedChildren:o,unCheckedChildren:s,onChange:e=>{u&&u(e),l&&n&&p(l,n,e),h(l)},style:c,className:d})})},formComponent:e=>{let{model:t,onChange:n}=e;return(0,ed.jsx)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Form.Item,{label:"变量名",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.var,onChange:e=>{let i;return i=e.target.value,n&&n({...t,var:i})},placeholder:"请输入变量名"})})})},defaultOptions:{props:{var:"",size:"default",checkedChildren:"开",unCheckedChildren:"关"},cascadeIds:[]}},{group:"容器组件",key:"b-space",label:"容器",icon:"icon-space",component:e=>{let{id:t,align:n="start",size:i="small",direction:r="horizontal",item:a,ancestors:o,style:s={},className:l}=e,[u,c]=(0,eh.useState)(a.children||[]),d=(0,eh.useMemo)(()=>({...s,...a.style||{},alignItems:n,flexDirection:r,gap:i}),[a,n,i,r]);return(0,eh.useEffect)(()=>{c(a.children||[])},[a.children]),(0,ed.jsx)(tv,{rootComponent:ti.Space,rootData:{id:t,style:d,className:l},item:a,ancestors:[...o,a],list:u,onListChange:e=>{a.children=e,c(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(ti.Form.Item,{label:"方向",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.direction,onChange:e=>i("direction",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(ti.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(ti.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(ti.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"对齐",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.align,onChange:e=>i("align",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"start",children:"开始"}),(0,ed.jsx)(ti.Radio.Button,{value:"end",children:"结束"}),(0,ed.jsx)(ti.Radio.Button,{value:"center",children:"居中"}),(0,ed.jsx)(ti.Radio.Button,{value:"baseline",children:"基线"})]})})]})},defaultOptions:{props:{align:"flex-start",direction:"row",size:"8px"},children:[]}},{group:"容器组件",key:"b-card",label:"卡片",icon:"icon-card",component:e=>{let{id:t,bordered:n=!1,size:i="default",title:r,hoverable:a=!1,shadow:o=!0,item:s,ancestors:l,style:u,className:c}=e,d=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.title||[],[s]),[h,p]=(0,eh.useState)(d||[]),f=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.extra||[],[s]),[m,g]=(0,eh.useState)(f||[]),v=(0,eh.useMemo)(()=>s.children?Array.isArray(s.children)?s.children:"object"!=typeof s.children?null:s.children.body||[]:null,[s]),[y,x]=(0,eh.useState)(v||[]),_=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.actions||[],[s]),[b,w]=(0,eh.useState)(_||[]);return(0,eh.useEffect)(()=>{p(d||[])},[d]),(0,eh.useEffect)(()=>{g(f||[])},[f]),(0,eh.useEffect)(()=>{x(v||[])},[v]),(0,eh.useEffect)(()=>{w(_||[])},[_]),(0,ed.jsx)(ti.Card,{id:t,variant:n?"outlined":"borderless",size:i,hoverable:a,className:[o?"ant-card-shadow":void 0,c].filter(Boolean).join(" "),title:(null==r?void 0:r.length)&&!(null==d?void 0:d.length)?r:d?(0,ed.jsx)(tv,{ancestors:[...l,s],list:h,onListChange:e=>{s.children.title=e,p(e)}}):r,extra:f&&(0,ed.jsx)(tv,{ancestors:[...l,s],list:m,onListChange:e=>{s.children.extra=e,g(e)}}),actions:_&&[(0,ed.jsx)(tv,{ancestors:[...l,s],list:b,onListChange:e=>{s.children.actions=e,w(e)}})],styles:{header:{borderBottom:"none"}},style:u,children:v&&(0,ed.jsx)(tv,{ancestors:[...l,s],list:y,onListChange:e=>{Array.isArray(s.children)?s.children=e:s.children.body=e,x(e)}})})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"边框",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.bordered,onChange:e=>i("bordered",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"悬停效果",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.hoverable,onChange:e=>i("hoverable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"阴影",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:!!t.shadow,onChange:e=>i("shadow",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"大小",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.size,onChange:e=>i("size",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"small",children:"小"})]})})]})},defaultOptions:{props:{title:"标题",bordered:!0,hoverable:!0,shadow:!0,size:"default"},children:{title:[],extra:[],body:[],actions:[]}}},{group:"容器组件",key:"b-row",label:"栅格行",icon:"icon-grid-row",component:e=>{let{id:t,gutter:n,item:i,ancestors:r,style:a,className:o}=e,[s,l]=(0,eh.useState)(i.children||[]);return(0,eh.useEffect)(()=>{l(i.children||[])},[i.children]),(0,ed.jsx)(tv,{rootComponent:ti.Row,rootData:{id:t,gutter:n,style:i.style||a,className:i.className||o},item:i,ancestors:[...r,i],list:s,onListChange:e=>{i.children=e,l(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i}),r=t.gutter||[0,0];return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"列间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:r[0],min:0,step:4,onChange:e=>i("gutter",[e||0,r[1]])})}),(0,ed.jsx)(ti.Form.Item,{label:"行间距",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:r[1],min:0,step:4,onChange:e=>i("gutter",[r[0],e||0])})})]})},defaultOptions:{props:{gutter:[12,12]},children:[]}},{group:"容器组件",key:"b-col",label:"栅格列",icon:"icon-grid-columns",component:e=>{let{id:t,span:n=24,xs:i,sm:r,md:a,lg:o,xl:s,xxl:l,item:u,ancestors:c,style:d={},className:h}=e,{deviceWidth:p}=(0,eh.useContext)(ev),[f,m]=(0,eh.useState)(u.children||[]),g=(0,eh.useMemo)(()=>{let e=p||1600,t=null;return e<576&&i&&(t=i),e>=576&&r&&(t=r),e>=768&&a&&(t=a),e>=992&&o&&(t=o),e>=1200&&s&&(t=s),e>=1600&&l&&(t=l),t||n},[i,r,a,o,s,l,n,p]);return(0,eh.useEffect)(()=>{m(u.children||[])},[u.children]),(0,ed.jsx)(tv,{rootComponent:ti.Col,rootData:{id:t||u.id,span:g,style:{...u.style||{},...d},className:h},item:u,ancestors:[...c,u],list:f,onListChange:e=>{u.children=e,m(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(ti.Form.Item,{label:"默认列数",children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.span,min:0,max:24,step:4,onChange:e=>i("span",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xs"," ",(0,ed.jsx)(ti.Tooltip,{title:"<576px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xs,min:0,max:24,step:4,onChange:e=>i("xs",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["sm"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥576px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.sm,min:0,max:24,step:4,onChange:e=>i("sm",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["md"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥768px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.md,min:0,max:24,step:4,onChange:e=>i("md",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["lg"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥992px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.lg,min:0,max:24,step:4,onChange:e=>i("lg",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xl"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥1200px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xl,min:0,max:24,step:4,onChange:e=>i("xl",e||0)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xxl"," ",(0,ed.jsx)(ti.Tooltip,{title:"≥1600px 响应式栅格",children:(0,ed.jsx)(nc,{})})]}),children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:t.xxl,min:0,max:24,step:4,onChange:e=>i("xxl",e||0)})})]})},defaultOptions:{props:{xs:24,sm:12,md:12,lg:6,xl:6,xxl:6,span:8},children:[]}},{group:"容器组件",key:"b-modal",label:"弹窗",icon:"icon-modal",component:e=>{let{id:t,item:n,ancestors:i,style:r={},className:a,footer:o=!0,...s}=e,{designable:l,selectedItem:u,setSelectedItem:c,initCallback:d,initMethod:h}=(0,eh.useContext)(ev),[p,f]=(0,eh.useState)(!1),[m,g]=(0,eh.useState)(n.children||[]),{handleEvent:v}=nC(n),y=()=>{f(!0)};(0,eh.useEffect)(()=>{g(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let i=t.getBoundingClientRect();if(0===i.width&&0===i.height){e.style.display="none";return}e.style.display="flex";let r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${i.top+r-22}px`,e.style.left=`${i.left+a-1}px`})()},0)},[p]),(0,eh.useEffect)(()=>{d({id:n.id,callback:y}),h({id:n.id,method:{open:()=>f(!0),close:()=>f(!1)}})},[]);let x=[a,"drag-container","page-item-component",u===n?"selected":"",l?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[l&&(0,ed.jsxs)(mm,{id:p?void 0:t||n.id,onDoubleClick:()=>f(!0),className:x,children:["弹窗:",n.name,"(",n.id,")"]}),(0,ed.jsx)(ti.Modal,{...s,open:p,onCancel:()=>f(!1),afterOpenChange:e=>{v(e?"open":"close")},getContainer:()=>l?document.querySelector(".page-canvas"):document.body,style:{...n.style||{},...r,paddingBottom:0},className:a,modalRender:e=>(0,ed.jsx)("div",{id:p?t||n.id:void 0,onClick:()=>c(n),children:e}),footer:o?void 0:null,children:(0,ed.jsx)(tv,{ancestors:[...i,n],list:m,onListChange:e=>{n.children=e,g(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:t.width,suffix:"px",onChange:e=>i("width",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>i("okText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>i("cancelText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.okType,onChange:e=>i("okType",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(ti.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.closable,onChange:e=>i("closable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(nd,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.keyboard,onChange:e=>i("keyboard",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.mask,onChange:e=>i("mask",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(nd,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.maskClosable,onChange:e=>i("maskClosable",e)})}),(0,ed.jsx)(ti.Divider,{children:"组件方法"}),(0,ed.jsx)(ti.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开模态框"},{key:"close",label:"close",children:"关闭模态框"}]})]})},defaultOptions:{props:{title:"标题",width:400,okType:"primary",okText:"确定",cancelText:"取消",maskClosable:!0,mask:!0,closable:!0,keyboard:!0,footer:!1},children:[]},events:[{name:"打开",handler:"open"},{name:"关闭",handler:"close"}]},{group:"容器组件",key:"b-drawer",label:"抽屉",icon:"icon-drawer",component:e=>{let{id:t,item:n,ancestors:i,style:r={},className:a,footer:o=!0,okType:s="primary",okText:l="确定",cancelText:u="取消",resizable:c=!0,...d}=e,{designable:h,selectedItem:p,setSelectedItem:f,initCallback:m,initMethod:g}=(0,eh.useContext)(ev),[v,y]=(0,eh.useState)(!1),[x,_]=(0,eh.useState)(n.children||[]),[b,w]=(0,eh.useState)(d.size||400),{handleEvent:S}=nC(n),C=()=>{y(!0)};(0,eh.useEffect)(()=>{w(d.size||400)},[d.size]),(0,eh.useEffect)(()=>{_(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let i=t.getBoundingClientRect();if(0===i.width&&0===i.height){e.style.display="none";return}e.style.display="flex";let r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${i.top+r-22}px`,e.style.left=`${i.left+a-1}px`})()},0)},[v]),(0,eh.useEffect)(()=>{m({id:n.id,callback:C}),g({id:n.id,method:{open:()=>y(!0),close:()=>y(!1)}})},[]);let j=[a,"drag-container","page-item-component",p===n?"selected":"",h?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[h&&(0,ed.jsxs)(mg,{id:v?void 0:t||n.id,onDoubleClick:()=>y(!0),className:j,children:["抽屉:",n.name,"(",n.id,")"]}),(0,ed.jsx)(ti.Drawer,{...d,id:t||n.id,open:v,size:b,onClose:()=>y(!1),afterOpenChange:e=>{S(e?"open":"close")},getContainer:()=>h?document.querySelector(".page-canvas"):document.body,push:{distance:0},style:{...n.style||{},...r,paddingBottom:0},className:a,onClick:()=>f(n),footer:o?(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Button,{onClick:()=>y(!1),children:u}),(0,ed.jsx)(ti.Button,{type:s,children:l})]}):null,resizable:{onResize:w},children:(0,ed.jsx)(tv,{ancestors:[...i,n],list:x,onListChange:e=>{n.children=e,_(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,i=(e,i)=>n&&n({...t,[e]:i});return(0,ed.jsxs)(ti.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(ti.Form.Item,{label:"标题",children:(0,ed.jsx)(ti.Input,{size:"small",value:t.title,onChange:e=>i("title",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"宽度",children:(0,ed.jsx)(ti.InputNumber,{size:"small",style:{width:"100px"},value:t.size,suffix:"px",onChange:e=>i("size",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"抽屉位置",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.placement,onChange:e=>i("placement",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"top",children:"顶部"}),(0,ed.jsx)(ti.Radio.Button,{value:"bottom",children:"底部"}),(0,ed.jsx)(ti.Radio.Button,{value:"left",children:"左侧"}),(0,ed.jsx)(ti.Radio.Button,{value:"right",children:"右侧"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>i("okText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(ti.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>i("cancelText",e.target.value)})}),(0,ed.jsx)(ti.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(ti.Radio.Group,{size:"small",value:t.okType,onChange:e=>i("okType",e.target.value),children:[(0,ed.jsx)(ti.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(ti.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(ti.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(ti.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.closable,onChange:e=>i("closable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(nh,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.keyboard,onChange:e=>i("keyboard",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.mask,onChange:e=>i("mask",e)})}),(0,ed.jsx)(ti.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(ti.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(nh,{})})]}),children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.maskClosable,onChange:e=>i("maskClosable",e)})}),(0,ed.jsx)(ti.Form.Item,{label:"可调整大小",children:(0,ed.jsx)(ti.Switch,{size:"small",checked:t.resizable,onChange:e=>i("resizable",e)})}),(0,ed.jsx)(ti.Divider,{children:"组件方法"}),(0,ed.jsx)(ti.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开抽屉"},{key:"close",label:"close",children:"关闭抽屉"}]})]})},defaultOptions:{props:{title:"标题",size:400,placement:"right",okType:"primary",okText:"确定",cancelText:"取消",closable:!0,keyboard:!0,maskClosable:!0,mask:!0,resizable:!0,footer:!1},children:[]},events:[{name:"打开",handler:"open"},{name:"关闭",handler:"close"}]}]})(),h})());
|