(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0046":function(e,t,n){var i=n("6d8b"),r=i.each,o=i.createHashMap,a=n("4f85"),s=n("3301"),l=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return c(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function c(e,t){if(!e.encodeDefine){var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(n){var i=e.encodeDefine=o();r(n.dimensions,(function(e){var t=u(e);i.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},"004f":function(e,t,n){var i=n("6d8b"),r=n("72b6"),o=n("2306"),a=n("a15a"),s=a.createSymbol,l=n("f934"),c=n("cbb0"),u=r.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,a=r.getFont(),s=r.getTextColor(),c=this._getItemAlign(),u=t.itemSize,h=this._getViewData(),d=h.endsText,f=i.retrieve(t.get("showLabel",!0),!d);function A(r){var l=r.piece,h=new o.Group;h.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,u[0],u[1]]),f){var A=this.visualMapModel.getValueState(d);h.add(new o.Text({style:{x:"right"===c?-n:u[0]+n,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:a,textFill:s,opacity:"outOfRange"===A?.5:1}}))}e.add(h)}d&&this._renderEndsText(e,d[0],u,f,c),i.each(h.viewPieceList,A,this),d&&this._renderEndsText(e,d[1],u,f,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,i,r){if(t){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=i.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(s(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,r=i.clone(n.selected),o=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[o]=!0,i.each(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=u;e.exports=h},"007d":function(e,t,n){var i=n("3eba");n("cb8f"),n("a96b"),n("42f6"),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ba":function(e,t,n){var i=n("3eba"),r=n("6d8b"),o=n("e46b"),a=n("e0d3"),s=a.defaultEmphasis,l=n("0f99"),c=l.makeSeriesEncodeForNameBased,u=n("c4a3"),h=i.extendSeriesModel({type:"series.funnel",init:function(e){h.superApply(this,"init",arguments),this.legendVisualProvider=new u(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(c,this)})},_defaultLabelLine:function(e){s(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),n=h.superCall(this,"getDataParams",e),i=t.mapDimension("value"),r=t.getSum(i);return n.percent=r?+(t.get(i,e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),d=h;e.exports=d},"00d8":function(e,t,n){var i=n("6d8b");function r(e,t){return t=t||[0,0],i.map([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function o(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(r,e)}}}e.exports=o},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"0141":function(e,t,n){var i=n("6d8b"),r=n("9850"),o=n("6cc5"),a=n("5b87");function s(e,t,n,i){o.call(this,e),this.map=t;var r=a.load(t,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function l(e,t,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;nl)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"04d1":function(e,t,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"04f6":function(e,t){var n=32,i=7;function r(e){var t=0;while(e>=n)t|=1&e,e>>=1;return e+t}function o(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function a(e,t,n){n--;while(t>>1,r(a,e[o])<0?l=o:s=o+1;var c=i-s;switch(c){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:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function l(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}a++;while(a>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function c(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function u(e,t){var n,r,o=i,a=0,s=0;a=e.length;var u=[];function h(e,t){n[s]=e,r[s]=t,s+=1}function d(){while(s>1){var e=s-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;A(e)}}function f(){while(s>1){var e=s-2;e>0&&r[e-1]=i||g>=i);if(m)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===r){for(h=0;h=0;h--)e[g+h]=e[p+h];if(0===r){b=!0;break}}if(e[A--]=u[f--],1===--s){b=!0;break}if(y=s-l(e[d],u,0,s,s-1,t),0!==y){for(A-=y,f-=y,s-=y,g=A+1,p=f+1,h=0;h=i||y>=i);if(b)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===s){for(A-=r,d-=r,g=A+1,p=d+1,h=r-1;h>=0;h--)e[g+h]=e[p+h];e[A]=u[f]}else{if(0===s)throw new Error;for(p=A-(s-1),h=0;h=0;h--)e[g+h]=e[p+h];e[A]=u[f]}else for(p=A-(s-1),h=0;hd&&(f=d),s(e,i,i+f,i+c,t),c=f}h.pushRun(i,c),h.mergeRuns(),l-=c,i+=c}while(0!==l);h.forceMergeRuns()}}e.exports=h},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"0655":function(e,t,n){var i=n("8728"),r=1e-8;function o(e,t){return Math.abs(e-t).5?t:e}function d(e,t,n,i,r){var o=e.length;if(1===r)for(var a=0;ar;if(o)e.length=r;else for(var a=i;a=0;n--)if(T[n]<=t)break;n=Math.min(n,w-2)}else{for(n=V;nt)break;n=Math.min(n-1,w-2)}V=n,$=t;var i=T[n+1]-T[n];if(0!==i)if(N=(t-T[n])/i,b)if(R=E[n],U=E[0===n?n:n-1],Q=E[n>w-2?w-1:n+1],H=E[n>w-3?w-1:n+2],C)p(U,R,Q,H,N,N*N,N*N*N,c(e,s),k);else{if(S)r=p(U,R,Q,H,N,N*N,N*N*N,j,1),r=v(j);else{if(B)return h(R,Q,N);r=g(U,R,Q,H,N,N*N,N*N*N)}m(e,s,r)}else if(C)d(E[n],E[n+1],N,c(e,s),k);else{var r;if(S)d(E[n],E[n+1],N,j,1),r=v(j);else{if(B)return h(E[n],E[n+1],N);r=u(E[n],E[n+1],N)}m(e,s,r)}},K=new i({target:e._target,life:x,loop:e._loop,delay:e._delay,onframe:z,ondestroy:n});return t&&"spline"!==t&&(K.easing=t),K}}}var w=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||l,this._setter=i||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};w.prototype={when:function(e,t){var n=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==e&&n[i].push({time:0,value:m(r)})}n[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;et&&(t=i.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=r.clone(e)},getValueState:function(e){var t=a.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(t,n){var r=a.findPieceIndex(t,this._pieceList);r===e&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],n=[],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function d(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var f=u;e.exports=f},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,d=a.f;while(c>u){var f,A=l(arguments[u++]),p=h?r(A).concat(h(A)):r(A),g=p.length,m=0;while(g>m)f=p[m++],i&&!d.call(A,f)||(n[f]=A[f])}return n}:c},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"07d7":function(e,t,n){var i=n("6d8b"),r=n("41ef"),o=n("607d"),a=n("65ed"),s=n("22d1"),l=n("eda2"),c=i.each,u=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+e+"s "+t+",top "+e+"s "+t;return i.map(h,(function(e){return e+"transition:"+n})).join(";")}function A(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=e.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),c(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function p(e){var t=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.getModel("textStyle"),a=e.get("padding");return n&&t.push(f(n)),i&&(s.canvasSupported?t.push("background-Color:"+i):(t.push("background-Color:#"+r.toHex(i)),t.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(n){var i="border-"+n,r=u(i),o=e.get(r);null!=o&&t.push(i+":"+o+("color"===n?"":"px"))})),t.push(A(o)),null!=a&&t.push("padding:"+l.normalizeCssArray(a).join("px ")+"px"),t.join(";")+";"}function g(e,t,n,i,r){var o=t&&t.painter;if(n){var s=o&&o.getViewportRoot();s&&a.transformLocalCoord(e,s,document.body,i,r)}else{e[0]=i,e[1]=r;var l=o&&o.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function m(e,t,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],g(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(i):e.appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=r.handler,n=r.painter.getViewportRoot();o.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}m.prototype={constructor:m,_enterable:!0,update:function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),i=t*this._zr.getHeight();this.moveTo(n,i)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText=d+p(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;g(n,this._zr,this._appendToBody,e,t);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}};var v=m;e.exports=v},"07e6":function(e,t,n){n("4d85"),n("a753")},"0817":function(e,t,n){var i=n("3eba");n("f306"),n("0046"),n("60d7");var r=n("ab71");i.registerVisual(r)},"085d":function(e,t,n){var i=n("3eba");n("bd92"),n("19e2");var r=n("eabf"),o=n("4c99"),a=n("09b1");i.registerPreprocessor(r),i.registerVisual(o),i.registerLayout(a)},"08c3":function(e,t,n){var i=n("6d8b"),r=n("84ce"),o=function(e,t,n,i){r.call(this,e,t,n),this.type=i||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(o,r);var a=o;e.exports=a},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"09b1":function(e,t,n){var i=n("2306"),r=i.subPixelOptimize,o=n("cccd"),a=n("3842"),s=a.parsePercent,l=n("6d8b"),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:o(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=f(e,n),o=0,a=1,s=["x","y"],l=n.mapDimension(s[o]),c=n.mapDimension(s[a],!0),h=c[0],A=c[1],p=c[2],g=c[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==l||c.length<4))return{progress:e.pipelineContext.large?v:m};function m(e,n){var s;while(null!=(s=e.next())){var c=n.get(l,s),u=n.get(h,s),f=n.get(A,s),m=n.get(p,s),v=n.get(g,s),y=Math.min(u,f),b=Math.max(u,f),w=B(y,c),x=B(b,c),_=B(m,c),C=B(v,c),S=[];k(S,x,0),k(S,w,1),S.push(E(C),E(x),E(_),E(w)),n.setItemLayout(s,{sign:d(n,s,u,f,A),initBaseline:u>f?x[a]:w[a],ends:S,brushRect:T(m,v,c)})}function B(e,n){var i=[];return i[o]=n,i[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function k(e,t,n){var a=t.slice(),s=t.slice();a[o]=r(a[o]+i/2,1,!1),s[o]=r(s[o]-i/2,1,!0),n?e.push(a,s):e.push(s,a)}function T(e,t,n){var r=B(e,n),s=B(t,n);return r[o]-=i/2,s[o]-=i/2,{x:r[0],y:r[1],width:a?i:s[0]-r[0],height:a?s[1]-r[1]:i}}function E(e){return e[o]=r(e[o],1),e}}function v(e,n){var i,r,s=new u(4*e.count),c=0,f=[],m=[];while(null!=(r=e.next())){var v=n.get(l,r),y=n.get(h,r),b=n.get(A,r),w=n.get(p,r),x=n.get(g,r);isNaN(v)||isNaN(w)||isNaN(x)?(s[c++]=NaN,c+=3):(s[c++]=d(n,r,y,b,A),f[o]=v,f[a]=w,i=t.dataToPoint(f,null,m),s[c++]=i?i[0]:NaN,s[c++]=i?i[1]:NaN,f[a]=x,i=t.dataToPoint(f,null,m),s[c++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function d(e,t,n,i,r){var o;return o=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,o}function f(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=s(c(e.get("barMaxWidth"),r),r),a=s(c(e.get("barMinWidth"),1),r),l=e.get("barWidth");return null!=l?s(l,r):Math.max(Math.min(r/2,o),a)}e.exports=h},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a4f":function(e,t,n){var i=n("3eba"),r=n("f934");n("365b"),n("c03d");var o=n("793f");if(!o.isSupported)throw new Error("Sorry your browser not support wordCloud");function a(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),i=t.createImageData(n),r=0,o=0,a=0;a128){var l=n.data[a]+n.data[a+1]+n.data[a+2];r+=l,++o}}var c=r/o;for(a=0;ac?(i.data[a]=0,i.data[a+1]=0,i.data[a+2]=0,i.data[a+3]=0):(i.data[a]=255,i.data[a+1]=255,i.data[a+2]=255,i.data[a+3]=255)}t.putImageData(i,0,0)}i.registerLayout((function(e,t){e.eachSeriesByType("wordCloud",(function(n){var s=r.getLayoutRect(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.getData(),c=document.createElement("canvas");c.width=s.width,c.height=s.height;var u=c.getContext("2d"),h=n.get("maskImage");if(h)try{u.drawImage(h,0,0,c.width,c.height),a(c)}catch(v){console.error("Invalid mask image"),console.error(v.toString())}var d=n.get("sizeRange"),f=n.get("rotationRange"),A=l.getDataExtent("value"),p=Math.PI/180,g=n.get("gridSize");function m(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/g,e.detail.drawn.gy+=s.y/g,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}o(c,{list:l.mapArray("value",(function(e,t){var n=l.getItemModel(t);return[l.getName(t),n.get("textStyle.normal.textSize",!0)||i.number.linearMap(e,A,d),t]})).sort((function(e,t){return t[1]-e[1]})),fontFamily:n.get("textStyle.normal.fontFamily")||n.get("textStyle.emphasis.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.normal.fontWeight")||n.get("textStyle.emphasis.fontWeight")||e.get("textStyle.fontWeight"),gridSize:g,ellipticity:s.height/s.width,minRotation:f[0]*p,maxRotation:f[1]*p,clearCanvas:!h,rotateRatio:1,rotationStep:n.get("rotationStep")*p,drawOutOfBound:n.get("drawOutOfBound"),shuffle:!1,shape:n.get("shape")}),c.addEventListener("wordclouddrawn",m),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){c.removeEventListener("wordclouddrawn",m),c.addEventListener("wordclouddrawn",(function(e){e.preventDefault()}))}}}))})),i.registerPreprocessor((function(e){var t=(e||{}).series;!i.util.isArray(t)&&(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(e){e&&i.util.each(n,(function(t){e.hasOwnProperty(t)&&(e["text"+i.format.capitalFirst(t)]=e[t])}))}i.util.each(t,(function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};r(t.normal),r(t.emphasis)}}))}))},"0a6d":function(e,t,n){n("e4d1"),n("7f72")},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},"0b44":function(e,t,n){var i=n("607d"),r=function(){this._track=[]};function o(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function a(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}r.prototype={constructor:r,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var r=e.touches;if(r){for(var o={points:[],touches:[],target:t,event:e},a=0,s=r.length;a1&&i&&i.length>1){var s=o(i)/o(r);!isFinite(s)&&(s=1),t.pinchScale=s;var l=a(i);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=r;e.exports=l},"0b4b":function(e,t,n){n("d28f"),n("f14c"),n("0ee7"),n("ebf9")},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c12":function(e,t){function n(){}function i(e,t,n,i){for(var r=0,o=t.length,a=0,s=0;r=a&&h+1>=s){for(var d=[],f=0;f=a&&f+1>=s)return i(o,c.components,t,e);u[n]=c}else u[n]=void 0}l++}while(l<=c){var p=A();if(p)return p}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){var r=t.length,o=n.length,a=e.newPos,s=a-i,l=0;while(a+1r&&(r=t);var s=r%2?r+2:r+3;a=[];for(var l=0;l=0)&&(F=e);var P=new l.Text({position:E(t.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(P.style,P.hoverStyle={},y,b,{labelFetcher:F,labelDataIndex:L,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!v){var N=[1/u[0],1/u[1]];l.updateProps(P,{scale:N},e)}n.add(P)}if(s)s.setItemGraphicEl(o,n);else{c=e.getRegionModel(t.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var U=n.__regions||(n.__regions=[]);U.push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(n,m),h.add(n)})),this._updateController(e,t,n),A(this,e,h,n,r),p(e,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&i.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var r=e.coordinateSystem,a=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=r.getZoom(),a.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,o.updateViewOnPan(l,e.dx,e.dy),n.dispatchAction(i.extend(u(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,o.updateViewOnZoom(l,e.scale,e.originX,e.originY),n.dispatchAction(i.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),a.setPointerChecker((function(t,i,o){return r.getViewRectAfterRoam().contain(i,o)&&!s(t,n,e)}))}};var m=g;e.exports=m},"0cb2":function(e,t,n){var i=n("7b0b"),r=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var h=n+e.length,d=l.length,f=s;return void 0!==c&&(c=i(c),f=a),o.call(u,f,(function(i,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(h);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return i;if(s>d){var u=r(s/10);return 0===u?i:u<=d?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):i}a=l[s-1]}return void 0===a?"":a}))}},"0cde":function(e,t,n){var i=n("1687"),r=n("401b"),o=i.identity,a=5e-5;function s(e){return e>a||e<-a}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),r=this.transform;if(n||t){r=r||i.create(),n?this.getLocalTransform(r):o(r),t&&(n?i.mul(r,e.transform,r):i.copy(r,e.transform)),this.transform=r;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*a+s)/u[0]||0,h=((u[1]-l)*a+l)/u[1]||0;r[0]*=c,r[1]*=c,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&o(r)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var h=[],d=i.create();c.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=this.position,r=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],r[0]=t,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(i.mul(h,e.invTransform,t),t=h);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(h,t,d),h[4]-=n[0],h[5]-=n[1],t=h),this.setLocalTransform(t)}},c.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):(e[0]=1,e[1]=1,e)},c.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},c.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(e,t){t=t||[],o(t);var n=e.origin,r=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),i.scale(t,t,r),a&&i.rotate(t,t,a),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var f=l;e.exports=f},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0da8":function(e,t,n){var i=n("19eb"),r=n("9850"),o=n("6d8b"),a=n("5e76");function s(e){i.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var r=this._image=a.createOrUpdateImage(i,this._image,this,this.onload);if(r&&a.isImageReady(r)){var o=n.x||0,s=n.y||0,l=n.width,c=n.height,u=r.width/r.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=r.width,c=r.height),this.setTransform(e),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;e.drawImage(r,h,d,n.sWidth,n.sHeight,o,s,l,c)}else if(n.sx&&n.sy){h=n.sx,d=n.sy;var f=l-h,A=c-d;e.drawImage(r,h,d,f,A,o,s,l,c)}else e.drawImage(r,o,s,l,c);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new r(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(s,i);var l=s;e.exports=l},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e0f":function(e,t,n){var i=n("5f14"),r=n("6d8b");function o(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var o=1/0,a=-1/0;r.each(n,(function(e){var t=e.getLayout().value;ta&&(a=t)})),r.each(n,(function(t){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",r)}))}}))}e.exports=o},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0ee7":function(e,t,n){var i=n("6d8b"),r=n("2306"),o=n("f934"),a=n("5e97"),s=r.Group,l=["width","height"],c=["x","y"],u=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,o,a,s,l){var c=this;u.superCall(this,"renderInner",e,t,n,o,a,s,l);var h=this._controllerGroup,d=t.get("pageIconSize",!0);i.isArray(d)||(d=[d,d]),A("pagePrev",0);var f=t.getModel("pageTextStyle");function A(e,n){var a=e+"DataIndex",s=r.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:i.bind(c._pageGo,c,a,t,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=e,h.add(s)}h.add(new r.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),A("pageNext",1)},layoutInner:function(e,t,n,r,a,s){var u=this.getSelectorGroup(),h=e.getOrient().index,d=l[h],f=c[h],A=l[1-h],p=c[1-h];a&&o.box("horizontal",u,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),m=u.getBoundingRect(),v=[-m.x,-m.y],y=i.clone(n);a&&(y[d]=n[d]-m[d]-g);var b=this._layoutContentAndController(e,r,y,h,d,A,p);if(a){if("end"===s)v[h]+=b[d]+g;else{var w=m[d]+g;v[h]-=w,b[f]-=w}b[d]+=m[d]+g,v[1-h]+=b[p]+b[A]/2-m[A]/2,b[A]=Math.max(b[A],m[A]),b[p]=Math.min(b[p],m[p]+v[1-h]),u.attr("position",v)}return b},_layoutContentAndController:function(e,t,n,a,s,l,c){var u=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;o.box(e.get("orient"),u,e.get("itemGap"),a?n.width:null,a?null:n.height),o.box("horizontal",d,e.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),A=d.getBoundingRect(),p=this._showController=f[s]>n[s],g=[-f.x,-f.y];t||(g[a]=u.position[a]);var m=[0,0],v=[-A.x,-A.y],y=i.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var b=e.get("pageButtonPosition",!0);"end"===b?v[a]+=n[s]-A[s]:m[a]+=A[s]+y}v[1-a]+=f[l]/2-A[l]/2,u.attr("position",g),h.attr("position",m),d.attr("position",v);var w={x:0,y:0};if(w[s]=p?n[s]:f[s],w[l]=Math.max(f[l],A[l]),w[c]=Math.min(0,A[c]+v[1-a]),h.__rectSize=n[s],p){var x={x:0,y:0};x[s]=Math.max(n[s]-A[s]-y,0),x[l]=w[l],h.setClipPath(new r.Rect({shape:x})),h.__rectSize=x[s]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(e);return null!=_.pageIndex&&r.updateProps(u,{position:_.contentPosition},!!p&&e),this._updatePageInfoView(e,_),w},_pageGo:function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=l[r],a=c[r],s=this._findTargetItemIndex(t),u=n.children(),h=u[s],d=u.length,f=d?1:0,A={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return A;var p=b(h);A.contentPosition[r]=-p.s;for(var g=s+1,m=p,v=p,y=null;g<=d;++g)y=b(u[g]),(!y&&v.e>m.s+i||y&&!w(y,m.s))&&(m=v.i>m.i?v:y,m&&(null==A.pageNextDataIndex&&(A.pageNextDataIndex=m.i),++A.pageCount)),v=y;for(g=s-1,m=p,v=p,y=null;g>=-1;--g)y=b(u[g]),y&&w(v,y.s)||!(m.i=t&&e.s<=t+i}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n}}),h=u;e.exports=h},"0f55":function(e,t,n){var i=n("6d8b"),r=n("84ce"),o=function(e,t,n,i,o){r.call(this,e,t,n),this.type=i||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(o,r);var a=o;e.exports=a},"0f99":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("e0d3")),o=r.makeInner,a=r.getDataItemValue,s=n("6d8b"),l=s.createHashMap,c=s.each,u=s.map,h=s.isArray,d=s.isString,f=s.isObject,A=s.isTypedArray,p=s.isArrayLike,g=s.extend,m=(s.assert,n("ec6f")),v=n("93d0"),y=v.SOURCE_FORMAT_ORIGINAL,b=v.SOURCE_FORMAT_ARRAY_ROWS,w=v.SOURCE_FORMAT_OBJECT_ROWS,x=v.SOURCE_FORMAT_KEYED_COLUMNS,_=v.SOURCE_FORMAT_UNKNOWN,C=v.SOURCE_FORMAT_TYPED_ARRAY,S=v.SERIES_LAYOUT_BY_ROW,B={Must:1,Might:2,Not:3},k=o();function T(e){var t=e.option.source,n=_;if(A(t))n=C;else if(h(t)){0===t.length&&(n=b);for(var i=0,r=t.length;i0&&(s=this.getLineLength(i)/c*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=u;h&&(d=u(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var f=i.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(i)}));l||f.done((function(){r.remove(i)})),f.start()}this._period=s,this._loop=l}},h.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},h.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},h.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=e.position,a=[o[0],o[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var h=u(t[0],i[0],n[0],r),d=u(t[1],i[1],n[1],r);if(e.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastTb)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10cc":function(e,t,n){var i=n("3eba"),r=n("6d8b"),o=n("9850"),a=n("2b8c"),s=n("a890"),l=n("88b3"),c=n("bd9e"),u=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=i.PRIORITY.VISUAL.BRUSH;function A(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new c(t.option,e);n.setInputRanges(t.areas,e)}))}function p(e,t,n,i,r){if(r){var o=e.getZr();if(!o[d]){o[h]||(o[h]=g);var a=l.createOrUpdate(o,h,n,t);a(e,i)}}}function g(e,t){if(!e.isDisposed()){var n=e.getZr();n[d]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[d]=!1}}function m(e,t,n,i){for(var r=0,o=t.length;rt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&x(t)}};function x(e){return new o(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=A},"10d5":function(e,t,n){e.exports=n("250d")},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1111:function(e,t,n){var i=n("3eba");n("67a8"),n("4784");var r=n("7f96"),o=n("87c3");i.registerVisual(r("effectScatter","circle")),i.registerLayout(o("effectScatter"))},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),h=n("9263"),d=n("9f7f"),f=n("d039"),A=d.UNSUPPORTED_Y,p=[].push,g=Math.min,m=4294967295,v=!f((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));i("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var s,l,c,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,A=new RegExp(e.source,d+"g");while(s=h.call(A,i)){if(l=A.lastIndex,l>f&&(u.push(i.slice(f,s.index)),s.length>1&&s.index=o))break;A.lastIndex===s.index&&A.lastIndex++}return f===i.length?!c&&A.test("")||u.push(""):u.push(i.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,this,e,r,i!==t);if(a.done)return a.value;var h=o(this),d=String(e),f=s(h,RegExp),p=h.unicode,v=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(A?"g":"y"),y=new f(A?"^(?:"+h.source+")":h,v),b=void 0===r?m:r>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];var w=0,x=0,_=[];while(x0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var g=u;if(null!=p.color&&(g=r.defaults({color:p.color},u)),p=r.merge(r.clone(p),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:o,axisType:l,axisLabel:c,name:p.text,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:A},!1),h||(p.name=""),"string"===typeof d){var m=p.name;p.name=d.replace("{value}",null!=m?m:"")}else"function"===typeof d&&(p.name=d(p.name,p));var v=r.extend(new a(p,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this.getIndicatorModels=function(){return p}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),h=u;e.exports=h},1792:function(e,t){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function i(e,t){if("china"===e){var i=n[t.name];if(i){var r=t.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}e.exports=i},"17b8":function(e,t,n){var i=n("3014"),r=i.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=r},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=r("forEach");e.exports=o?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"17d6":function(e,t,n){var i=n("6d8b"),r=n("22d1"),o=n("e0d3"),a=o.makeInner,s=a(),l=i.each;function c(e,t,n){if(!r.node){var i=t.getZr();s(i).records||(s(i).records={}),u(i,t);var o=s(i).records[e]||(s(i).records[e]={});o.handler=n}}function u(e,t){function n(n,i){e.on(n,(function(n){var r=A(t);l(s(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),h(r.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,n("click",i.curry(f,"click")),n("mousemove",i.curry(f,"mousemove")),n("globalout",d))}function h(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function d(e,t,n){e.handler("leave",null,n)}function f(e,t,n,i){t.handler(e,n,i)}function A(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function p(e,t){if(!r.node){var n=t.getZr(),i=(s(n).records||{})[e];i&&(s(n).records[e]=null)}}t.register=c,t.unregister=p},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var i=n("6ca1"),r=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"18c0":function(e,t,n){var i=n("6d8b"),r=n("e0d8"),o=n("8e43"),a=r.prototype,s=r.extend({type:"ordinal",init:function(e,t){e&&!i.isArray(e)||(e=new o({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;e.exports=l},1917:function(e,t){t.f={}.propertyIsEnumerable},1953:function(e,t,n){var i=n("2449"),r=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=r},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19e2":function(e,t,n){var i=n("6d8b"),r=n("e887"),o=n("2306"),a=n("cbe5"),s=n("b0af"),l=s.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),a=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,c=t.getItemLayout(n);if(a&&p(l,c))return;s=A(c,n,!0),o.initProps(s,{shape:{points:c.ends}},e,n),g(s,t,n,r),i.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,c){var u=n.getItemGraphicEl(c);if(t.hasValue(s)){var h=t.getItemLayout(s);a&&p(l,h)?i.remove(u):(u?o.updateProps(u,{shape:{points:h.ends}},e,s):u=A(h,s),g(u,t,s,r),i.add(u),t.setItemGraphicEl(s,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),y(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o,a=i.getItemLayout(n);o=A(a,n),g(o,i,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){y(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),f=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))}});function A(e,t,n){var i=e.ends;return new f({shape:{points:n?m(i,e):i},z2:100})}function p(e,t){for(var n=!0,i=0;i0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(c).getItemStyle(h);t.useStyle(a),t.style.fill=null,t.style.stroke=o}var w=d;e.exports=w},"19eb":function(e,t,n){var i=n("6d8b"),r=n("2b61"),o=n("d5b7"),a=n("9e2e");function s(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new r(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new r(e,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,o),i.mixin(s,a);var l=s;e.exports=l},"19fa":function(e,t,n){var i=n("fc5e"),r=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var i=n("77e9"),r=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1ab3":function(e,t,n){var i=n("6d8b"),r=n("2306"),o=n("e887");function a(e,t,n,i){var r=t.getData(),o=this.dataIndex,a=r.getName(o),l=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),r.each((function(e){s(r.getItemGraphicEl(e),r.getItemLayout(e),t.isSelected(r.getName(e)),l,n)}))}function s(e,t,n,i,r){var o=(t.startAngle+t.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?i:0,c=[a*l,s*l];r?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,o=new r.Text;this.add(n),this.add(i),this.add(o),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,n){var o=this.childAt(0),a=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),h=e.getItemLayout(t),d=i.extend({},h);d.label=null;var f=c.getShallow("animationTypeUpdate");if(n){o.setShape(d);var A=c.getShallow("animationType");"scale"===A?(o.shape.r=h.r0,r.initProps(o,{shape:{r:h.r}},c,t)):(o.shape.endAngle=h.startAngle,r.updateProps(o,{shape:{endAngle:h.endAngle}},c,t))}else"expansion"===f?o.setShape(d):r.updateProps(o,{shape:d},c,t);var p=e.getItemVisual(t,"color");o.useStyle(i.defaults({lineJoin:"bevel",fill:p},u.getModel("itemStyle").getItemStyle())),o.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&o.attr("cursor",g),s(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var m=!n&&"transition"===f;this._updateLabel(e,t,m),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var n=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(a.ignore=a.hoverIgnore,l.ignore=l.hoverIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r+c.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,l.ignore=l.normalIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},c._updateLabel=function(e,t,n){var i=this.childAt(1),o=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))o.ignore=o.normalIgnore=o.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},d={x:c.x,y:c.y};n?(r.updateProps(i,{shape:h},a,t),r.updateProps(o,{style:d},a,t)):(i.attr({shape:h}),o.attr({style:d})),o.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var f=s.getModel("label"),A=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");r.setLabelStyle(o.style,o.hoverStyle={},f,A,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!f.get("show"),o.hoverIgnore=!A.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!g.get("show"),i.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&!0===m&&(m=.4),i.setShape({smooth:m})}},i.inherits(l,r.Group);var u=o.extend({type:"pie",init:function(){var e=new r.Group;this._sectorGroup=e},render:function(e,t,n,r){if(!r||r.from!==this.uid){var o=e.getData(),s=this._data,c=this.group,u=t.get("animation"),h=!s,d=e.get("animationType"),f=e.get("animationTypeUpdate"),A=i.curry(a,this.uid,e,u,n),p=e.get("selectedMode");if(o.diff(s).add((function(e){var t=new l(o,e);h&&"scale"!==d&&t.eachChild((function(e){e.stopAnimation(!0)})),p&&t.on("click",A),o.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);h||"transition"===f||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(o,e),n.off("click"),p&&n.on("click",A),c.add(n),o.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);c.remove(t)})).execute(),u&&o.count()>0&&(h?"scale"!==d:"transition"!==f)){for(var g=o.getItemLayout(0),m=1;isNaN(g.startAngle)&&m=i.r0}}}),h=u;e.exports=h},"1b8d":function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e32":function(e,t,n){var i=n("6d8b"),r=n("3842"),o=r.parsePercent,a=n("ee1a"),s=a.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function u(e,t,n){var r={},o=h(i.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=c(n,i),u=l(e),h=o[a][u],d=h.offset,f=h.width,A=n.getOtherAxis(i),p=e.coordinateSystem.cx,g=e.coordinateSystem.cy,m=e.get("barMinHeight")||0,v=e.get("barMinAngle")||0;r[u]=r[u]||[];for(var y=t.mapDimension(A.dim),b=t.mapDimension(i.dim),w=s(t,y),x="radius"!==i.dim||!e.get("roundCap",!0),_="radius"===A.dim?A.dataToRadius(0):A.dataToAngle(0),C=0,S=t.count();C=0?"p":"n",O=_;if(w&&(r[u][M]||(r[u][M]={p:_,n:_}),O=r[u][M][D]),"radius"===A.dim){var F=A.dataToRadius(I)-_,L=i.dataToAngle(M);Math.abs(F)=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)}});e.exports=r},"1f1a":function(e,t,n){var i=n("6d8b"),r=n("e0d3"),o=n("6cb7"),a=n("4319"),s=n("7023"),l=n("eeea"),c=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),r.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=i.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new a(n,t)),e}),i.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var n=this.getRegionModel(e),i=n.get(("normal"===t?"":t+".")+"label.formatter"),r={name:e};return"function"===typeof i?(r.status=t,i(r)):"string"===typeof i?i.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});i.mixin(c,s);var u=c;e.exports=u},"1fab":function(e,t){var n=Array.prototype.slice,i=function(e){this._$handlers={},this._$eventProcessor=e};function r(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}function o(e,t,n,i,o,a){var s=e._$handlers;if("function"===typeof n&&(o=i,i=n,n=null),!i||!t)return e;n=r(e,n),s[t]||(s[t]=[]);for(var l=0;l3&&(r=n.call(r,1));for(var a=t.length,s=0;s4&&(r=n.call(r,1,r.length-1));for(var a=r[r.length-1],s=t.length,l=0;lthis._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,r,o){return this.addData(c.C,e,t,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,r,o):this._ctx.bezierCurveTo(e,t,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(e,t,n,i){return this.addData(c.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,r,o){return this.addData(c.A,e,t,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=g(r)*n+e,this._yi=m(r)*n+t,this},arcTo:function(e,t,n,i,r){return this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(c.R,e,t,n,i),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;nt.length&&(this._expandData(),t=this.data);for(var n=0;n0&&f<=e||u<0&&f>=e||0===u&&(h>0&&g<=t||h<0&&g>=t))i=this._dashIdx,n=a[i],f+=u*n,g+=h*n,this._dashIdx=(i+1)%m,u>0&&fl||h>0&&gc||s[i%2?"moveTo":"lineTo"](u>=0?A(f,e):p(f,e),h>=0?A(g,t):p(g,t));u=f-e,h=g-t,this._dashOffset=-v(u*u+h*h)},_dashedBezierTo:function(e,t,n,r,o,a){var s,l,c,u,h,d=this._dashSum,f=this._dashOffset,A=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,y=i.cubicAt,b=0,w=this._dashIdx,x=A.length,_=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=y(g,e,n,o,s+.1)-y(g,e,n,o,s),c=y(m,t,r,a,s+.1)-y(m,t,r,a,s),b+=v(l*l+c*c);for(;wf)break;s=(_-f)/b;while(s<=1)u=y(g,e,n,o,s),h=y(m,t,r,a,s),w%2?p.moveTo(u,h):p.lineTo(u,h),s+=A[w]/b,w=(w+1)%x;w%2!==0&&p.lineTo(o,a),l=o-u,c=a-h,this._dashOffset=-v(l*l+c*c)},_dashedQuadraticTo:function(e,t,n,i){var r=n,o=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,b&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,s=0,l=0;ll||y(a-r)>u||d===h-1)&&(e.lineTo(o,a),i=o,r=a);break;case c.C:e.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.Q:e.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.A:var A=s[d++],p=s[d++],v=s[d++],b=s[d++],w=s[d++],x=s[d++],_=s[d++],C=s[d++],S=v>b?v:b,B=v>b?1:v/b,k=v>b?b/v:1,T=Math.abs(v-b)>.001,E=w+x;T?(e.translate(A,p),e.rotate(_),e.scale(B,k),e.arc(0,0,S,w,E,1-C),e.scale(1/B,1/k),e.rotate(-_),e.translate(-A,-p)):e.arc(A,p,S,w,E,1-C),1===d&&(t=g(w)*v+A,n=m(w)*b+p),i=g(E)*v+A,r=m(E)*b+p;break;case c.R:t=i=s[d],n=r=s[d+1],e.rect(s[d++],s[d++],s[d++],s[d++]);break;case c.Z:e.closePath(),i=t,r=n}}}},w.CMD=c;var x=w;e.exports=x},2114:function(e,t,n){var i=n("313e");function r(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var o=i.extendComponentView({type:"bmap",render:function(e,t,n){var o=!0,a=e.getBMap(),s=n.getZr().painter.getViewportRoot(),l=e.coordinateSystem,c=function(t,i){if(!o){var r=s.parentNode.parentNode.parentNode,a=[-parseInt(r.style.left,10)||0,-parseInt(r.style.top,10)||0];s.style.left=a[0]+"px",s.style.top=a[1]+"px",l.setMapOffset(a),e.__mapOffset=a,n.dispatchAction({type:"bmapRoam"})}};function u(){o||n.dispatchAction({type:"bmapRoam"})}a.removeEventListener("moving",this._oldMoveHandler),a.removeEventListener("moveend",this._oldMoveHandler),a.removeEventListener("zoomend",this._oldZoomEndHandler),a.addEventListener("moving",c),a.addEventListener("moveend",c),a.addEventListener("zoomend",u),this._oldMoveHandler=c,this._oldZoomEndHandler=u;var h=e.get("roam");h&&"scale"!==h?a.enableDragging():a.disableDragging(),h&&"move"!==h?(a.enableScrollWheelZoom(),a.enableDoubleClickZoom(),a.enablePinchToZoom()):(a.disableScrollWheelZoom(),a.disableDoubleClickZoom(),a.disablePinchToZoom());var d=e.__mapStyle,f=e.get("mapStyle")||{},A=JSON.stringify(f);JSON.stringify(d)!==A&&(r(g)||a.setMapStyle(i.util.clone(f)),e.__mapStyle=JSON.parse(A));var p=e.__mapStyle2,g=e.get("mapStyleV2")||{},m=JSON.stringify(g);JSON.stringify(p)!==m&&(r(g)||a.setMapStyleV2(i.util.clone(g)),e.__mapStyle2=JSON.parse(m)),o=!1}});e.exports=o},2145:function(e,t){var n={};function i(e,t){n[e]=t}function r(e){return n[e]}t.register=i,t.get=r},2163:function(e,t,n){var i=n("4f85"),r=n("06c7"),o=n("eda2"),a=o.encodeHTML,s=n("4319"),l=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new s(n,this,this.ecModel),o=r.createTree(t,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=i),e}))}var l=0;o.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=u})),o.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,n=t.root.children[0],i=t.getNodeByDataIndex(e),r=i.getValue(),o=i.name;while(i&&i!==n)o=i.parentNode.name+"."+o,i=i.parentNode;return a(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},"216a":function(e,t,n){var i=n("6d8b"),r=n("3842"),o=n("eda2"),a=n("944e"),s=n("89e3"),l=s.prototype,c=Math.ceil,u=Math.floor,h=1e3,d=60*h,f=60*d,A=24*f,p=function(e,t,n,i){while(n>>1;e[r][1]n&&(s=n);var l=m.length,h=p(m,s,0,l),d=m[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var A=o/f,g=r.nice(A/e,!0);f*=g}var v=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,y=[Math.round(c((i[0]-v)/f)*f+v),Math.round(u((i[1]-v)/f)*f+v)];a.fixExtent(y,i),this._stepLvl=d,this._interval=f,this._niceExtent=y},parse:function(e){return+r.parseDate(e)}});i.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var m=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",A],["MM-dd\nyyyy",2*A],["MM-dd\nyyyy",3*A],["MM-dd\nyyyy",4*A],["MM-dd\nyyyy",5*A],["MM-dd\nyyyy",6*A],["week",7*A],["MM-dd\nyyyy",10*A],["week",14*A],["week",21*A],["month",31*A],["week",42*A],["month",62*A],["week",70*A],["quarter",95*A],["month",31*A*4],["month",31*A*5],["half-year",380*A/2],["month",31*A*8],["month",31*A*10],["year",380*A]];g.create=function(e){return new g({useUTC:e.ecModel.get("useUTC")})};var v=g;e.exports=v},"217b":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3301")),o=n("4f85"),a=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=a},"217c":function(e,t,n){var i=n("6d8b"),r=n("6cb7");n("df3a");var o=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&i.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=o},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var r=i&&!0===i.clone;return r&&e(n)?o(t(n),n,i):n}function i(t,i,r){var a=t.slice();return i.forEach((function(i,s){"undefined"===typeof a[s]?a[s]=n(i,r):e(i)?a[s]=o(t[s],i,r):-1===t.indexOf(i)&&a.push(n(i,r))})),a}function r(t,i,r){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],r)})),Object.keys(i).forEach((function(s){e(i[s])&&t[s]?a[s]=o(t[s],i[s],r):a[s]=n(i[s],r)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:i},l=s.arrayMerge||i;return a?Array.isArray(e)?l(e,t,o):n(t,o):r(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function i(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var r=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,s=r.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var c,u=function(e,t){void 0===e&&(e="");var i=n(l,t||{}),r=o(i);return""+e+""},h=r.svg,d=r.xlink,f={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[h.name]=h.uri,c[d.name]=d.uri,c)},A=function(e){this.config=n(f,e||{}),this.symbols=[]};A.prototype.add=function(e){var t=this,n=t.symbols,i=this.find(e.id);return i?(n[n.indexOf(i)]=e,!1):(n.push(e),!0)},A.prototype.remove=function(e){var t=this,n=t.symbols,i=this.find(e);return!!i&&(n.splice(n.indexOf(i),1),i.destroy(),!0)},A.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},A.prototype.has=function(e){return null!==this.find(e)},A.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return u(n,t)},A.prototype.toString=function(){return this.stringify()},A.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var p=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};p.prototype.stringify=function(){return this.content},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},m=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(p),v={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},y=function(e){return Array.prototype.slice.call(e,0)},b={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},x=function(e){var t=[];return y(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},_=function(e){return(e||window.location.href).split("#")[0]},C=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,i){w(e,{oldUrl:i,newUrl:n})}))}])},S="linearGradient, radialGradient, pattern, mask, clipPath",B=function(e,t){return void 0===t&&(t=S),y(e.querySelectorAll("symbol")).forEach((function(e){y(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function k(e,t){var n=y(e).reduce((function(e,n){if(!n.attributes)return e;var i=y(n.attributes),r=t?i.filter(t):i;return e.concat(r)}),[]);return n}var T=r.xlink.uri,E="xlink:href",I=/[{}|\\\^\[\]`"<>]/g;function M(e){return e.replace(I,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O(e,t,n){return y(e).forEach((function(e){var i=e.getAttribute(E);if(i&&0===i.indexOf(t)){var r=i.replace(t,n);e.setAttributeNS(T,E,r)}})),e}var F,L=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],P=L.map((function(e){return"["+e+"]"})).join(","),N=function(e,t,n,i){var r=M(n),o=M(i),a=e.querySelectorAll(P),s=k(a,(function(e){var t=e.localName,n=e.value;return-1!==L.indexOf(t)&&-1!==n.indexOf("url("+r)}));s.forEach((function(e){return e.value=e.value.replace(new RegExp(D(r),"g"),o)})),O(t,r,o)},U={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},R=function(e){function t(t){var r=this;void 0===t&&(t={}),e.call(this,n(v,t));var o=i();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(U.MOUNT,(function(){return r.updateUrls("#",l)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,c),s.locationChangeAngularEmitter&&C(s.locationChangeEvent),o.on(U.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&B(e)})),o.on(U.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&B(e.parentNode),(b.isIE()||b.isEdge())&&x(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=b.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,i=t.newUrl;this.updateUrls(n,i)},t.prototype.add=function(t){var n=this,i=e.prototype.add.call(this,t);return this.isMounted&&i&&(t.mount(n.node),this._emitter.emit(U.SYMBOL_MOUNT,t.node)),i},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e;return n.node=i,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(U.SYMBOL_MOUNT,e.node)})),y(i.querySelectorAll("symbol")).forEach((function(e){var t=m.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(U.MOUNT,i),i},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,i=e._emitter;n.forEach((function(e){return e.destroy()})),i.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e,r=n.render();return this.node=r,t&&i.childNodes[0]?i.insertBefore(r,i.childNodes[0]):i.appendChild(r),this._emitter.emit(U.MOUNT,r),r},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return N(this.node,n,_(e)+"#",_(t)+"#"),!0},Object.defineProperties(t.prototype,r),t}(A),Q=e((function(e){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,i=n.documentElement.doScroll,r="DOMContentLoaded",o=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(r,e=function(){n.removeEventListener(r,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),H="__SVG_SPRITE_NODE__",V="__SVG_SPRITE__",$=!!window[V];$?F=window[V]:(F=new R({attrs:{id:H,"aria-hidden":"true"}}),window[V]=F);var j=function(){var e=document.getElementById(H);e?F.attach(e):F.mount(document.body,!0)};document.body?j():Q(j);var z=F;return z}))}).call(this,n("c8ba"))},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,h,d,f,A,p,g,m=n&&n.that,v=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=a(t,m,1+v+b),x=function(e){return u&&l(u),new c(!0,e)},_=function(e){return v?(i(e),b?w(e[0],e[1],x):w(e[0],e[1])):b?w(e,x):w(e)};if(y)u=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(r(h)){for(d=0,f=o(e.length);f>d;d++)if(A=_(e[d]),A&&A instanceof c)return A;return new c(!1)}u=h.call(e)}p=u.next;while(!(g=p.call(u)).done){try{A=_(g.value)}catch(C){throw l(u),C}if("object"==typeof A&&A&&A instanceof c)return A}return new c(!1)}},"22d1":function(e,t){var n={};n="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r(navigator.userAgent);var i=n;function r(e){var t={},n={},i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(e);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}e.exports=i},"22da":function(e,t,n){var i=n("f934");function r(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,n,i=[e];while(t=i.pop())if(n=t.children,t.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){u(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=h(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function a(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:g}function l(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n}function c(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function h(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),o=f(o),s&&o){r=d(r),a=f(a),r.hierNode.ancestor=e;var g=s.hierNode.prelim+h-o.hierNode.prelim-c+i(s,o);g>0&&(p(A(s,e,n),e,g),c+=g,l+=g),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!d(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!f(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function d(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function A(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function p(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function g(e,t){return e.parentNode===t.parentNode?1:2}t.init=r,t.firstWalk=o,t.secondWalk=a,t.separation=s,t.radialCoordinate=l,t.getViewRect=c},2306:function(e,t,n){var i=n("6d8b"),r=n("342d"),o=n("41ef"),a=n("1687"),s=n("401b"),l=n("cbe5"),c=n("0cde"),u=n("0da8");t.Image=u;var h=n("e1fc");t.Group=h;var d=n("76a5");t.Text=d;var f=n("d9fc");t.Circle=f;var A=n("4aa2");t.Sector=A;var p=n("4573");t.Ring=p;var g=n("87b1");t.Polygon=g;var m=n("d498");t.Polyline=m;var v=n("c7a2");t.Rect=v;var y=n("cb11");t.Line=y;var b=n("ac0f");t.BezierCurve=b;var w=n("8d32");t.Arc=w;var x=n("d4c6");t.CompoundPath=x;var _=n("48a9");t.LinearGradient=_;var C=n("dded");t.RadialGradient=C;var S=n("9850");t.BoundingRect=S;var B=n("392f");t.IncrementalDisplayable=B;var k=n("9cf9"),T=Math.max,E=Math.min,I={},M=1,D={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},O="emphasis",F="normal",L=1,P={},N={};function U(e){return l.extend(e)}function R(e,t){return r.extendFromString(e,t)}function Q(e,t){N[e]=t}function H(e){if(N.hasOwnProperty(e))return N[e]}function V(e,t,n,i){var o=r.createFromString(e,t);return n&&("center"===i&&(n=j(n,o.getBoundingRect())),K(o,n)),o}function $(e,t,n){var i=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(j(t,r))}}});return i}function j(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var z=r.mergePath;function K(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function G(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function W(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var Y=k.subPixelOptimize;function q(e){return null!=e&&"none"!==e}var X=i.createHashMap(),Z=0;function J(e){if("string"!==typeof e)return e;var t=X.get(e);return t||(t=o.lift(e,-.1),Z<1e4&&(X.set(e,t),Z++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i=e.style;for(var r in t)null!=t[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,i=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=i?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var r=e,o=e.style;i&&(r=n.addHover(e),o=r.style),Ce(o),i||ee(r),o.extendFrom(t),ne(o,t,"fill"),ne(o,t,"stroke"),_e(o),i||(e.dirty(!1),e.z2+=M)}}}function ne(e,t,n){!q(t[n])&&q(e[n])&&(e[n]=J(e[n]))}function ie(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,i=e.__cachedNormalStl;i&&(Ce(n),e.setStyle(i),_e(n));var r=e.__cachedNormalZ2;null!=r&&e.z2-r===M&&(e.z2=r)}}function re(e,t,n){var i,r=F,o=F;e.__highlighted&&(r=O,i=!0),t(e,n),e.__highlighted&&(o=O,i=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,o)}function oe(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ie(e),te(e))}function ae(e){!ue(this,e)&&!this.__highByOuter&&re(this,te)}function se(e){!ue(this,e)&&!this.__highByOuter&&re(this,ie)}function le(e){this.__highByOuter|=1<<(e||0),re(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&re(this,ie)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function he(e,t){de(e,!0),re(e,oe,t)}function de(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var i=n?"off":"on";e[i]("mouseover",ae)[i]("mouseout",se),e[i]("emphasis",le)[i]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function fe(e){return!(!e||!e.__highDownDispatcher)}function Ae(e){var t=P[e];return null==t&&L<=32&&(t=P[e]=L++),t}function pe(e,t,n,r,o,a,s){o=o||I;var l,c=o.labelFetcher,u=o.labelDataIndex,h=o.labelDimIndex,d=o.labelProp,f=n.getShallow("show"),A=r.getShallow("show");(f||A)&&(c&&(l=c.getFormattedLabel(u,"normal",null,h,d)),null==l&&(l=i.isFunction(o.defaultText)?o.defaultText(u,o):o.defaultText));var p=f?l:null,g=A?i.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,h,d):null,l):null;null==p&&null==g||(me(e,n,a,o),me(t,r,s,o,!0)),e.text=p,t.text=g}function ge(e,t,n){var r=e.style;t&&(Ce(r),e.setStyle(t),_e(r)),r=e.__hoverStl,n&&r&&(Ce(r),i.extend(r,n),_e(r))}function me(e,t,n,r,o){return ye(e,t,r,o),n&&i.extend(e,n),e}function ve(e,t,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,ye(e,t,r,i)}function ye(e,t,n,r){if(n=n||I,n.isRectText){var o;n.getTextPosition?o=n.getTextPosition(t,r):(o=t.getShallow("position")||(r?null:"inside"),"outside"===o&&(o="top")),e.textPosition=o,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=i.retrieve2(t.getShallow("distance"),r?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=be(t);if(u)for(var h in s={},u)if(u.hasOwnProperty(h)){var d=t.getModel(["rich",h]);we(s[h]={},d,c,n,r)}return e.rich=s,we(e,t,c,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function be(e){var t;while(e&&e!==e.ecModel){var n=(e.option||I).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}function we(e,t,n,r,o,a){n=!o&&n||I,e.textFill=xe(t.getShallow("color"),r)||n.color,e.textStroke=xe(t.getShallow("textBorderColor"),r)||n.textBorderColor,e.textStrokeWidth=i.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(e.insideRollbackOpt=r,_e(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&r.disableBox||(e.textBackgroundColor=xe(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=xe(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function xe(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function _e(e){var t,n=e.textPosition,i=e.insideRollbackOpt;if(i&&null==e.textFill){var r=i.autoColor,o=i.isRectText,a=i.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=r)}e.insideRollback=t}function Ce(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Se(e,t){var n=t&&t.getModel("textStyle");return i.trim([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(" "))}function Be(e,t,n,i,r,o){"function"===typeof r&&(o=r,r=null);var a=i&&i.isAnimationEnabled();if(a){var s=e?"Update":"",l=i.getShallow("animationDuration"+s),c=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),"function"===typeof l&&(l=l(r)),l>0?t.animateTo(n,l,u||0,c,o,!!o):(t.stopAnimation(),t.attr(n),o&&o())}else t.stopAnimation(),t.attr(n),o&&o()}function ke(e,t,n,i,r){Be(!0,e,t,n,i,r)}function Te(e,t,n,i,r){Be(!1,e,t,n,i,r)}function Ee(e,t){var n=a.identity([]);while(e&&e!==t)a.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function Ie(e,t,n){return t&&!i.isArrayLike(t)&&(t=c.getLocalTransform(t)),n&&(t=a.invert([],t)),s.applyTransform([],e,t)}function Me(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Ie(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function De(e,t,n,r){if(e&&t){var o=a(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=o[e.anid];if(t){var i=l(e);e.attr(l(t)),ke(e,i,n,e.dataIndex)}}}))}function a(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=i.extend({},e.shape)),t}}function Oe(e,t){return i.map(e,(function(e){var n=e[0];n=T(n,t.x),n=E(n,t.x+t.width);var i=e[1];return i=T(i,t.y),i=E(i,t.y+t.height),[n,i]}))}function Fe(e,t){var n=T(e.x,t.x),i=E(e.x+e.width,t.x+t.width),r=T(e.y,t.y),o=E(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Le(e,t,n){t=i.extend({rectHover:!0},t);var r=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),i.defaults(r,n),new u(t)):V(e.replace("path://",""),t,n,"center")}function Pe(e,t,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var g=Ue(f,A,u,h)/d;return!(g<0||g>1)}function Ue(e,t,n,i){return e*i-n*t}function Re(e){return e<=1e-6&&e>=-1e-6}Q("circle",f),Q("sector",A),Q("ring",p),Q("polygon",g),Q("polyline",m),Q("rect",v),Q("line",y),Q("bezierCurve",b),Q("arc",w),t.Z2_EMPHASIS_LIFT=M,t.CACHED_LABEL_STYLE_PROPERTIES=D,t.extendShape=U,t.extendPath=R,t.registerShape=Q,t.getShapeClass=H,t.makePath=V,t.makeImage=$,t.mergePath=z,t.resizePath=K,t.subPixelOptimizeLine=G,t.subPixelOptimizeRect=W,t.subPixelOptimize=Y,t.setElementHoverStyle=oe,t.setHoverStyle=he,t.setAsHighDownDispatcher=de,t.isHighDownDispatcher=fe,t.getHighlightDigit=Ae,t.setLabelStyle=pe,t.modifyLabelStyle=ge,t.setTextStyle=me,t.setText=ve,t.getFont=Se,t.updateProps=ke,t.initProps=Te,t.getTransform=Ee,t.applyTransform=Ie,t.transformDirection=Me,t.groupTransition=De,t.clipPointsByRect=Oe,t.clipRectByRect=Fe,t.createIcon=Le,t.linePolygonIntersect=Pe,t.lineLineIntersect=Ne},2325:function(e,t,n){var i=n("6d8b"),r=n("607d"),o=n("2306"),a=n("88b3"),s=n("7dcf"),l=n("3842"),c=n("f934"),u=n("ef6a"),h=o.Rect,d=l.linearMap,f=l.asc,A=i.bind,p=i.each,g=7,m=1,v=30,y="horizontal",b="vertical",w=5,x=["line","bar","candlestick","scatter"],_=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){_.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){_.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){_.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===y?{right:r.width-n.x-n.width,top:r.height-v-g,width:n.width,height:v}:{right:g,top:n.y,width:v,height:n.height},a=c.getLayoutParams(e.option);i.each(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=c.getLayoutRect(a,r,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==y||r?n===y&&r?{scale:a?[-1,1]:[-1,-1]}:n!==b||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([o]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,r=n.getRawData(),a=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=a){var s=r.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],A=[],p=h[1]/(r.count()-1),g=0,m=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(m>0&&t%m)g+=p;else{var n=null==e||isNaN(e)||""===e,i=n?0:d(e,s,u,!0);n&&!c&&t?(f.push([f[f.length-1][0],0]),A.push([A[A.length-1][0],0])):!n&&c&&(f.push([g,0]),A.push([g,0])),f.push([g,i]),A.push([g,i]),g+=p,c=n}}));var v=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:i.defaults({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:A},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(o,a){var s=e.getAxisProxy(o.name,a).getTargetSeriesModels();i.each(s,(function(e){if(!n&&!(!0!==t&&i.indexOf(x,e.get("type"))<0)){var s,l=r.getComponent(o.axis,a).axis,c=C(o.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),n={thisAxis:l,series:e,thisDim:o.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(e.filler=new h({draggable:!0,cursor:S(this._orient),drift:A(this._onDragMove,this,"all"),ondragstart:A(this._showDataInfo,this,!0),ondragend:A(this._onDragEnd,this),onmouseover:A(this._showDataInfo,this,!0),onmouseout:A(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})),p([0,1],(function(e){var r=o.createIcon(a.get("handleIcon"),{cursor:S(this._orient),draggable:!0,drift:A(this._onDragMove,this,e),ondragend:A(this._onDragEnd,this),onmouseover:A(this._showDataInfo,this,!0),onmouseout:A(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(a.getModel("handleStyle").getItemStyle());var c=a.get("handleColor");null!=c&&(r.style.fill=c),i.add(t[e]=r);var u=a.textStyleModel;this.group.add(n[e]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[d(e[0],[0,100],t,!0),d(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];u(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?d(o.minSpan,a,r,!0):null,null!=o.maxSpan?d(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=f([d(i[0],r,a,!0),d(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,i=f(n.slice()),r=this._size;p([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[e],r[1]/2-o/2]})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var h=f(this._handleEnds.slice());function d(e){var t=o.getTransform(n.handles[e].parent,this.group),s=o.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+w,c=o.applyTransform([h[e]+(0===e?-l:l),this._size[1]/2],t);i[e].setStyle({x:c[0],y:c[1],textVerticalAlign:r===y?"middle":s,textAlign:r===y?s:"center",text:a[e]})}d.call(this,0),d.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return i.isFunction(r)?r(e,a):i.isString(r)?r.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,i){this._dragging=!0,r.stop(i.event);var a=this._displayables.barGroup.getLocalTransform(),s=o.applyTransform([t,n],a,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(p(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}})),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function C(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function S(e){return"vertical"===e?"ns-resize":"ew-resize"}var B=_;e.exports=B},"237f":function(e,t,n){var i=n("6d8b"),r=n("6179"),o=n("7368"),a=n("31d9"),s=n("b1d4"),l=n("2039"),c=n("3301");function u(e,t,n,u,h){for(var d=new o(u),f=0;f "+y)),g++)}var b,w=n.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)b=c(e,n);else{var x=l.get(w),_=x&&"view"!==x.type&&x.dimensions||[];i.indexOf(_,"value")<0&&_.concat(["value"]);var C=s(e,{coordDimensions:_});b=new r(C,n),b.initData(e)}var S=new r(["value"],n);return S.initData(p,A),h&&h(b,S),a({mainData:b,struct:d,structAttr:"graph",datas:{node:b,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}e.exports=u},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e0":function(e,t,n){var i=n("6d8b"),r=n("7887"),o=n("89e3"),a=n("3842"),s=n("697e"),l=s.getScaleExtent,c=s.niceScaleExtent,u=n("2039"),h=n("8c2a");function d(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=i.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new r(n,"log"===e.get("axisType")?new h:new o);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},d.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},d.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;ln[0]&&isFinite(p)&&isFinite(n[0]))}else{var f=r.getTicks().length-1;f>o&&(d=s(d));var A=Math.ceil(n[1]/d)*d,p=a.round(A-d*o);r.setExtent(p,A),r.setInterval(d)}}))},d.dimensions=[],d.create=function(e,t){var n=[];return e.eachComponent("radar",(function(i){var r=new d(i,e,t);n.push(r),i.coordinateSystem=r})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},u.register("radar",d);var f=d;e.exports=f},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,d,f,A,p=e.target,g=e.global,m=e.stat;if(u=g?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,u)for(h in t){if(f=t[h],e.noTargetGet?(A=r(u,h),d=A&&A.value):d=u[h],n=c(g?h:p+(m?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof f===typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(u,h,f,e)}}},"23ee":function(e,t,n){var i=n("3eba");n("879e"),n("9704"),n("d747");var r=n("675a"),o=n("7f96"),a=n("2943"),s=n("de6e"),l=n("d357"),c=n("adda"),u=n("5866"),h=n("7b0c");i.registerProcessor(r),i.registerVisual(o("graph","circle",null)),i.registerVisual(a),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),i.registerLayout(u),i.registerCoordinateSystem("graphView",{create:h})},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(o)})),e.exports=l}).call(this,n("4362"))},2449:function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),l=n("eda2"),c=n("38a2"),u=l.addCommas,h=l.encodeHTML;function d(e){s.defaultEmphasis(e,"label",["show"])}var f=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,n,i){var r=this.constructor,a=this.mainType+"Model";n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),s=e[a];n&&n.data?(s?s._mergeOption(n,t,!0):(i&&d(n),o.each(n.data,(function(e){e instanceof Array?(d(e[0]),d(e[1])):d(e)})),s=new r(n,this,t),o.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[a]=s):e[a]=null}),this)},formatTooltip:function(e,t,n,i){var r=this.getData(),a=this.getRawValue(e),s=o.isArray(a)?o.map(a,u).join(", "):u(a),l=r.getName(e),c=h(this.name),d="html"===i?"
":"\n";return(null!=a||l)&&(c+=d),l&&(c+=h(l),null!=a&&(c+=" : ")),null!=a&&(c+=h(s)),c},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(f,c);var A=f;e.exports=A},"24b9":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("f934")),o=n("3842"),a=o.parsePercent,s=o.linearMap;function l(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a1?arguments[1]:void 0)}})},"255c":function(e,t,n){var i=n("3eba"),r=n("d4d1"),o=r.Polygon,a=n("2306"),s=n("6d8b"),l=s.bind,c=s.extend,u=n("80f0"),h=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var i=e.getData(),r=this.group,s=e.getLayerSeries(),h=i.getLayout("layoutInfo"),f=h.rect,A=h.boundaryGap;function p(e){return e.name}r.attr("position",[0,f.y+A[0]]);var g=new u(this._layersSeries||[],s,p,p),m={};function v(t,n,l){var u=this._layers;if("remove"!==t){for(var h,f,A,p=[],g=[],v=s[n].indices,y=0;y'].join("")},a=["initOptions","loading","dataEmpty","judgeWidth","widthChangeDelay"],s=["grid","dataZoom","visualMap","toolbox","title","legend","xAxis","yAxis","radar","tooltip","axisPointer","brush","geo","timeline","graphic","series","backgroundColor","textStyle"],l={th:3,mi:6,bi:9,tr:12},c={zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0,abbrLabel:{th:"k",mi:"m",bi:"b",tr:"t"}},u=1e12,h=1e9,d=1e6,f=1e3;function A(e){return"number"===typeof e&&isNaN(e)}function p(e,t,n,i){var r=e.toString().split("."),o=t-(i||0),a=2===r.length?Math.min(Math.max(r[1].length,o),t):o,s=Math.pow(10,a),l=(n(e+"e+"+a)/s).toFixed(a);if(i>t-a){var c=new RegExp("\\.?0{1,"+(i-(t-a))+"}$");l=l.replace(c,"")}return l}function g(e,t,n,i){var r=Math.abs(t),o=!1,a=!1,s="",c="",A=!1,g=void 0,m=void 0;n=n||"",t=t||0,~n.indexOf("(")?(o=!0,n=n.replace(/[(|)]/g,"")):(~n.indexOf("+")||~n.indexOf("-"))&&(m=~n.indexOf("+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[+|-]/g,"")),~n.indexOf("a")&&(g=n.match(/a(k|m|b|t)?/),g=!!g&&g[1],~n.indexOf(" a")&&(s=" "),n=n.replace(new RegExp(s+"a[kmbt]?"),""),r>=u&&!g||"t"===g?(s+=e.abbrLabel.tr,t/=u):r=h&&!g||"b"===g?(s+=e.abbrLabel.bi,t/=h):r=d&&!g||"m"===g?(s+=e.abbrLabel.mi,t/=d):(r=f&&!g||"k"===g)&&(s+=e.abbrLabel.th,t/=f)),~n.indexOf("[.]")&&(a=!0,n=n.replace("[.]","."));var v=t.toString().split(".")[0],y=n.split(".")[1],b=n.indexOf(","),w=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(y?(~y.indexOf("[")?(y=y.replace("]",""),y=y.split("["),c=p(t,y[0].length+y[1].length,i,y[1].length)):c=p(t,y.length,i),v=c.split(".")[0],c=~c.indexOf(".")?"."+c.split(".")[1]:"",a&&0===+c.slice(1)&&(c="")):v=p(t,0,i),s&&!g&&+v>=1e3&&s!==l.trillion&&(v=""+ +v/1e3,s=l.million),~v.indexOf("-")&&(v=v.slice(1),A=!0),v.length0;x--)v="0"+v;b>-1&&(v=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")),n.indexOf(".")||(v="");var _=v+c+(s||"");return o?_=(o&&A?"(":"")+_+(o&&A?")":""):m>=0?_=0===m?(A?"-":"+")+_:_+(A?"-":"+"):A&&(_="-"+_),_}function m(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}var v={regexp:/%/,format:function(e,t,n,i){var r=~t.indexOf(" %")?" ":"",o=void 0;return i.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?%/,""),o=i._numberToFormat(e,t,n),~o.indexOf(")")?(o=o.split(""),o.splice(-1,0,r+"%"),o=o.join("")):o=o+r+"%",o}},y={},b={};function w(e,t,n){t=t||y.defaultFormat,n=n||Math.round;var i=void 0,r=void 0;if(0===e&&null!==y.zeroFormat)i=y.zeroFormat;else if(null===e&&null!==y.nullFormat)i=y.nullFormat;else{for(var o in b)if(b[o]&&t.match(b[o].regexp)){r=b[o].format;break}r=r||g.bind(null,y),i=r(e,t,n,x)}return i}function x(e,t,n){var i=void 0;return i=0===e||"undefined"===typeof e?0:null===e||A(e)?null:"string"===typeof e?y.zeroFormat&&e===y.zeroFormat?0:y.nullFormat&&e===y.nullFormat||!e.replace(/[^0-9]+/g,"").length?null:+e:+e||null,w(i,t,n)}m(y,c),x.options=y,x._numberToFormat=g.bind(null,y),x.register=function(e,t){b[e]=t},x.unregister=function(e){b[e]=null},x.setOptions=function(e){m(y,e)},x.reset=function(){m(y,c)},x.register("percentage",v);var _="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},C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"-";if(isNaN(e))return i;if(!t)return e;if(L(t))return t(e,x);n=isNaN(n)?0:++n;var r=".["+new Array(n).join(0)+"]",o=t;switch(t){case"KMB":o=n?"0,0"+r+"a":"0,0a";break;case"normal":o=n?"0,0"+r:"0,0";break;case"percent":o=n?"0,0"+r+"%":"0,0.[00]%";break}return x(e,o)},H=function(e){var t={};return Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[e]=n}))})),t},V=function(e){return new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e),i.send(null),i.onload=function(){t(JSON.parse(i.responseText))},i.onerror=function(){n(JSON.parse(i.responseText))}}))},$={},j=function(e){var t=e.position,n=e.positionJsonLink,i=e.beforeRegisterMapOnce,r=e.mapURLProfix,o=n||""+r+t+".json";return $[o]||($[o]=V(o).then((function(e){return i&&(e=i(e)),e}))),$[o]},z=null,K=null,G=function(e,t){return z||(z=new Promise((function(n,i){var r="bmap"+Date.now();window[r]=n;var o=document.createElement("script");o.src=["https://api.map.baidu.com/api?v="+(t||"2.0"),"ak="+e,"callback="+r].join("&"),document.body.appendChild(o)}))),z},W=function(e,t){return K||(K=new Promise((function(n,i){var r="amap"+Date.now();window[r]=n;var o=document.createElement("script");o.src=["https://webapi.amap.com/maps?v="+(t||"1.4.3"),"key="+e,"callback="+r].join("&"),document.body.appendChild(o)}))),K};function Y(e,t,n){void 0!==e[t]?e[t].push(n):e[t]=[n]}var q=.5;function X(e){var t=e.innerRows,n=e.dimAxisName,i=e.dimension,r=e.axisVisible,o=e.dimAxisType,a=e.dims;return i.map((function(e){return{type:"category",name:n,nameLocation:"middle",nameGap:22,data:"value"===o?Z(a):t.map((function(t){return t[e]})),axisLabel:{formatter:function(e){return String(e)}},show:r}}))}function Z(e){for(var t=Math.max.apply(null,e),n=Math.min.apply(null,e),i=[],r=n;r<=t;r++)i.push(r);return i}function J(e){for(var t=e.meaAxisName,n=e.meaAxisType,i=e.axisVisible,r=e.digit,o=e.scale,a=e.min,s=e.max,l={type:"value",axisTick:{show:!1},show:i},c=[],u=function(e){n[e]?c[e]=S({},l,{axisLabel:{formatter:function(t){return Q(t,n[e],r)}}}):c[e]=S({},l),c[e].name=t[e]||"",c[e].scale=o[e]||!1,c[e].min=a[e]||null,c[e].max=s[e]||null},h=0;h<2;h++)u(h);return c}function ee(e){var t=e.axisSite,n=e.isHistogram,i=e.meaAxisType,r=e.digit,a=e.labelMap,s=n?t.right||[]:t.top||[];return a&&(s=s.map((function(e){return void 0===a[e]?e:a[e]}))),{trigger:"axis",formatter:function(e){var t=[];return t.push(e[0].name+"
"),e.forEach((function(e){var n=e.seriesName,a=~s.indexOf(n)?i[1]:i[0];t.push(o(e.color)),t.push(n+": "),t.push(Q(e.value,a,r)),t.push("
")})),t.join("")}}}function te(e,t){for(var n=Math.max.apply(null,t),i=Math.min.apply(null,t),r=[],o=i;o<=n;o++){var a=t.indexOf(o);~a?r.push(e[a]):r.push(null)}return r}function ne(e){var t=e.innerRows,n=e.metrics,i=e.stack,r=e.axisSite,o=e.isHistogram,a=e.labelMap,s=e.itemStyle,l=e.label,c=e.showLine,u=void 0===c?[]:c,h=e.dimAxisType,d=e.barGap,f=e.opacity,A=e.dims,p=[],g={},m=o?r.right||[]:r.top||[],v=o?"yAxisIndex":"xAxisIndex",y=i&&H(i);return n.forEach((function(e){g[e]=[]})),t.forEach((function(e){n.forEach((function(t){g[t].push(e[t])}))})),p=Object.keys(g).map((function(e,t){var n="value"===h?te(g[e],A):g[e],r=C({name:null!=a[e]?a[e]:e,type:~u.indexOf(e)?"line":"bar",data:n},v,~m.indexOf(e)?"1":"0");i&&y[e]&&(r.stack=y[e]),l&&(r.label=l),s&&(r.itemStyle=s);var o=f||E(r,"itemStyle.normal.opacity");return"value"===h&&(r.barGap=d,r.barCategoryGap="1%",null==o&&(o=q)),null!=o&&T(r,"itemStyle.normal.opacity",o),r})),!!p.length&&p}function ie(e){var t=e.metrics,n=e.labelMap,i=e.legendName;if(!i&&!n)return{data:t};var r=n?t.map((function(e){return null==n[e]?e:n[e]})):t;return{data:r,formatter:function(e){return null!=i[e]?i[e]:e}}}function re(e,t){return e.map((function(e){return e[t[0]]}))}var oe=function(e,t,n,i){var r=P(t),o=n.axisSite,a=void 0===o?{}:o,s=n.dimension,l=void 0===s?[e[0]]:s,c=n.stack,u=void 0===c?{}:c,h=n.axisVisible,d=void 0===h||h,f=n.digit,A=void 0===f?2:f,p=n.dataOrder,g=void 0!==p&&p,m=n.scale,v=void 0===m?[!1,!1]:m,y=n.min,b=void 0===y?[null,null]:y,w=n.max,x=void 0===w?[null,null]:w,_=n.legendName,C=void 0===_?{}:_,S=n.labelMap,B=void 0===S?{}:S,k=n.label,T=n.itemStyle,E=n.showLine,I=n.barGap,M=void 0===I?"-100%":I,D=n.opacity,O=i.tooltipVisible,F=i.legendVisible,L=e.slice();a.top&&a.bottom?L=a.top.concat(a.bottom):a.bottom&&!a.right?L=a.bottom:n.metrics?L=n.metrics:L.splice(e.indexOf(l[0]),1);var N=n.xAxisType||["normal","normal"],U=n.yAxisType||"category",R=n.xAxisName||[],Q=n.yAxisName||"",H=!1;if(g){var V=g.label,$=g.order;V&&$?r.sort((function(e,t){return"desc"===$?e[V]-t[V]:t[V]-e[V]})):console.warn("Need to provide name and order parameters")}var j=re(r,l),z=F&&ie({metrics:L,labelMap:B,legendName:C}),K=X({innerRows:r,dimAxisName:Q,dimension:l,axisVisible:d,dimAxisType:U,dims:j}),G=J({meaAxisName:R,meaAxisType:N,axisVisible:d,digit:A,scale:v,min:b,max:x}),W=ne({innerRows:r,metrics:L,stack:u,axisSite:a,isHistogram:H,labelMap:B,itemStyle:T,label:k,showLine:E,dimAxisType:U,dimension:l,barGap:M,opacity:D,dims:j}),Y={axisSite:a,isHistogram:H,meaAxisType:N,digit:A,labelMap:B},q=O&&ee(Y),Z={legend:z,yAxis:K,series:W,xAxis:G,tooltip:q};return Z},ae=function(e,t,n,i){var r=P(t),o=n.axisSite,a=void 0===o?{}:o,s=n.dimension,l=void 0===s?[e[0]]:s,c=n.stack,u=void 0===c?{}:c,h=n.axisVisible,d=void 0===h||h,f=n.digit,A=void 0===f?2:f,p=n.dataOrder,g=void 0!==p&&p,m=n.scale,v=void 0===m?[!1,!1]:m,y=n.min,b=void 0===y?[null,null]:y,w=n.max,x=void 0===w?[null,null]:w,_=n.labelMap,C=void 0===_?{}:_,S=n.legendName,B=void 0===S?{}:S,k=n.label,T=n.itemStyle,E=n.showLine,I=n.barGap,M=void 0===I?"-100%":I,D=n.opacity;if(g){var O=g.label,F=g.order;O&&F?r.sort((function(e,t){return"desc"===F?e[O]-t[O]:t[O]-e[O]})):console.warn("Need to provide name and order parameters")}var L=i.tooltipVisible,N=i.legendVisible,U=e.slice();a.left&&a.right?U=a.left.concat(a.right):a.left&&!a.right?U=a.left:n.metrics?U=n.metrics:U.splice(e.indexOf(l[0]),1);var R=n.yAxisType||["normal","normal"],Q=n.xAxisType||"category",H=n.yAxisName||[],V=n.xAxisName||"",$=!0,j=re(r,l),z=N&&ie({metrics:U,labelMap:C,legendName:B}),K=X({innerRows:r,dimAxisName:V,dimension:l,axisVisible:d,dimAxisType:Q,dims:j}),G=J({meaAxisName:H,meaAxisType:R,axisVisible:d,digit:A,scale:v,min:b,max:x}),W=ne({innerRows:r,metrics:U,stack:u,axisSite:a,isHistogram:$,labelMap:C,itemStyle:T,label:k,showLine:E,dimAxisType:Q,dimension:l,barGap:M,opacity:D,dims:j}),Y={axisSite:a,isHistogram:$,meaAxisType:R,digit:A,labelMap:C},q=L&&ee(Y),Z={legend:z,yAxis:G,series:W,xAxis:K,tooltip:q};return Z},se={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-charts-component-loading"},[n("div",{staticClass:"loader"},[n("div",{staticClass:"loading-spinner"},[n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])])},staticRenderFns:[]},le={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-charts-data-empty"},[e._v(" 暂无数据 ")])},staticRenderFns:[]};function ce(e,t){Object.keys(t).forEach((function(n){var i=t[n];~n.indexOf(".")?T(e,n,i):"function"===typeof i?e[n]=i(e[n]):F(e[n])&&O(e[n][0])?e[n].forEach((function(t,r){e[n][r]=S({},t,i)})):O(e[n])?e[n]=S({},e[n],i):e[n]=i}))}function ue(e,t){Object.keys(t).forEach((function(n){t[n]&&(e[n]=t[n])}))}function he(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}var de={render:function(e){return e("div",{class:[N(this.$options.name||this.$options._componentTag)],style:this.canvasStyle},[e("div",{style:this.canvasStyle,class:{"v-charts-mask-status":this.dataEmpty||this.loading},ref:"canvas"}),e(le,{style:{display:this.dataEmpty?"":"none"}}),e(se,{style:{display:this.loading?"":"none"}}),this.$slots.default])},props:{data:{type:[Object,Array],default:function(){return{}}},settings:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},height:{type:String,default:"400px"},beforeConfig:{type:Function},afterConfig:{type:Function},afterSetOption:{type:Function},afterSetOptionOnce:{type:Function},events:{type:Object},grid:{type:[Object,Array]},colors:{type:Array},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},legendPosition:{type:String},markLine:{type:Object},markArea:{type:Object},markPoint:{type:Object},visualMap:{type:[Object,Array]},dataZoom:{type:[Object,Array]},toolbox:{type:[Object,Array]},initOptions:{type:Object,default:function(){return{}}},title:[Object,Array],legend:[Object,Array],xAxis:[Object,Array],yAxis:[Object,Array],radar:Object,tooltip:Object,axisPointer:[Object,Array],brush:[Object,Array],geo:[Object,Array],timeline:[Object,Array],graphic:[Object,Array],series:[Object,Array],backgroundColor:[Object,String],textStyle:[Object,Array],animation:Object,theme:Object,themeName:String,loading:Boolean,dataEmpty:Boolean,extend:Object,judgeWidth:{type:Boolean,default:!1},widthChangeDelay:{type:Number,default:300},tooltipFormatter:{type:Function},resizeable:{type:Boolean,default:!0},resizeDelay:{type:Number,default:200},changeDelay:{type:Number,default:0},setOptionOpts:{type:[Boolean,Object],default:!0},cancelResizeCheck:Boolean,notSetUnchange:Array,log:Boolean},watch:{data:{deep:!0,handler:function(e){e&&this.changeHandler()}},settings:{deep:!0,handler:function(e){e.type&&this.chartLib&&(this.chartHandler=this.chartLib[e.type]),this.changeHandler()}},width:"nextTickResize",height:"nextTickResize",events:{deep:!0,handler:"createEventProxy"},theme:{deep:!0,handler:"themeChange"},themeName:"themeChange",resizeable:"resizeableHandler"},computed:{canvasStyle:function(){return{width:this.width,height:this.height,position:"relative"}},chartColor:function(){return this.colors||this.theme&&this.theme.color||n}},methods:{dataHandler:function(){if(this.chartHandler){var e=this.data,t=e,n=t.columns,i=void 0===n?[]:n,r=t.rows,o=void 0===r?[]:r,a={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,echarts:this.echarts,color:this.chartColor,tooltipFormatter:this.tooltipFormatter,_once:this._once};this.beforeConfig&&(e=this.beforeConfig(e));var s=this.chartHandler(i,o,this.settings,a);s&&("function"===typeof s.then?s.then(this.optionsHandler):this.optionsHandler(s))}},nextTickResize:function(){this.$nextTick(this.resize)},resize:function(){(this.cancelResizeCheck||this.$el&&this.$el.clientWidth&&this.$el.clientHeight)&&this.echartsResize()},echartsResize:function(){this.echarts&&this.echarts.resize()},optionsHandler:function(t){var n=this;if(this.legendPosition&&t.legend&&(t.legend[this.legendPosition]=10,~["left","right"].indexOf(this.legendPosition)&&(t.legend.top="middle",t.legend.orient="vertical")),t.color=this.chartColor,s.forEach((function(e){n[e]&&(t[e]=n[e])})),this.animation&&he(t,this.animation),this.markArea||this.markLine||this.markPoint){var i={markArea:this.markArea,markLine:this.markLine,markPoint:this.markPoint},r=t.series;F(r)?r.forEach((function(e){ue(e,i)})):O(r)&&ue(r,i)}this.extend&&ce(t,this.extend),this.afterConfig&&(t=this.afterConfig(t));var o=this.setOptionOpts;!this.settings.bmap&&!this.settings.amap||O(o)||(o=!1),this.notSetUnchange&&this.notSetUnchange.length&&(this.notSetUnchange.forEach((function(e){var i=t[e];i&&(R(i,n._store[e])?t[e]=void 0:n._store[e]=P(i))})),O(o)?o.notMerge=!1:o=!1),this._isDestroyed||(this.log&&console.log(t),this.echarts.setOption(t,o),this.$emit("ready",this.echarts,t,e),this._once["ready-once"]||(this._once["ready-once"]=!0,this.$emit("ready-once",this.echarts,t,e)),this.judgeWidth&&this.judgeWidthHandler(t),this.afterSetOption&&this.afterSetOption(this.echarts,t,e),this.afterSetOptionOnce&&!this._once["afterSetOptionOnce"]&&(this._once["afterSetOptionOnce"]=!0,this.afterSetOptionOnce(this.echarts,t,e)))},judgeWidthHandler:function(e){var t=this,n=this.widthChangeDelay,i=this.resize;this.$el.clientWidth||this.$el.clientHeight?i():this.$nextTick((function(e){t.$el.clientWidth||t.$el.clientHeight?i():setTimeout((function(e){i(),t.$el.clientWidth&&t.$el.clientHeight||console.warn(" Can't get dom width or height ")}),n)}))},resizeableHandler:function(e){e&&!this._once.onresize&&this.addResizeListener(),!e&&this._once.onresize&&this.removeResizeListener()},init:function(){if(!this.echarts){var n=this.themeName||this.theme||t;this.echarts=e.init(this.$refs.canvas,n,this.initOptions),this.data&&this.changeHandler(),this.createEventProxy(),this.resizeable&&this.addResizeListener()}},addResizeListener:function(){window.addEventListener("resize",this.resizeHandler),this._once.onresize=!0},removeResizeListener:function(){window.removeEventListener("resize",this.resizeHandler),this._once.onresize=!1},addWatchToProps:function(){var e=this,t=this._watchers.map((function(e){return e.expression}));Object.keys(this.$props).forEach((function(n){if(!~t.indexOf(n)&&!~a.indexOf(n)){var i={};~["[object Object]","[object Array]"].indexOf(M(e.$props[n]))&&(i.deep=!0),e.$watch(n,(function(){e.changeHandler()}),i)}}))},createEventProxy:function(){var e=this,t=this,n=Object.keys(this.events||{});n.length&&n.forEach((function(n){-1===e.registeredEvents.indexOf(n)&&(e.registeredEvents.push(n),e.echarts.on(n,function(e){return function(){if(e in t.events){for(var n=arguments.length,i=Array(n),r=0;r"),e.forEach((function(e){var r=e.seriesName,o=e.data,a=e.marker,l=null,c=~s.indexOf(r)?n[1]:n[0],u=F(o)?o[1]:o;l=Q(u,c,i),t.push(a),t.push(r+": "+l),t.push("
")})),t.join("")}}}function ye(e){var t=e.metrics,n=e.legendName,i=e.labelMap;if(!n&&!i)return{data:t};var r=i?t.map((function(e){return null==i[e]?e:i[e]})):t;return{data:r,formatter:function(e){return null!=n[e]?n[e]:e}}}var be=function(e,t,n,i){t=F(t)?t:[],e=F(e)?e:[];var r=n.axisSite,o=void 0===r?{}:r,a=n.yAxisType,s=void 0===a?["normal","normal"]:a,l=n.xAxisType,c=void 0===l?"category":l,u=n.yAxisName,h=void 0===u?[]:u,d=n.dimension,f=void 0===d?[e[0]]:d,A=n.xAxisName,p=void 0===A?[]:A,g=n.axisVisible,m=void 0===g||g,v=n.area,y=n.stack,b=n.scale,w=void 0===b?[!1,!1]:b,x=n.min,_=void 0===x?[null,null]:x,C=n.max,S=void 0===C?[null,null]:C,B=n.nullAddZero,k=void 0!==B&&B,T=n.digit,E=void 0===T?2:T,I=n.legendName,M=void 0===I?{}:I,D=n.labelMap,O=void 0===D?{}:D,L=n.label,P=n.itemStyle,N=n.lineStyle,U=n.areaStyle,R=i.tooltipVisible,Q=i.legendVisible,H=i.tooltipFormatter,V=e.slice();o.left&&o.right?V=o.left.concat(o.right):o.left&&!o.right?V=o.left:n.metrics?V=n.metrics:V.splice(e.indexOf(f[0]),1);var $=Q&&ye({metrics:V,legendName:M,labelMap:O}),j=R&&ve({axisSite:o,yAxisType:s,digit:E,labelMap:O,xAxisType:c,tooltipFormatter:H}),z=pe({dimension:f,rows:t,xAxisName:p,axisVisible:m,xAxisType:c}),K=me({yAxisName:h,yAxisType:s,axisVisible:m,scale:w,min:_,max:S,digit:E}),G=ge({rows:t,axisSite:o,metrics:V,area:v,stack:y,nullAddZero:k,labelMap:O,label:L,itemStyle:P,lineStyle:N,areaStyle:U,xAxisType:c,dimension:f}),W={legend:$,xAxis:z,series:G,yAxis:K,tooltip:j};return W},we=S({},de,{name:"VeLine",data:function(){return this.chartHandler=be,{}}}),xe=100,_e=[80,100],Ce=[20,100],Se=200;function Be(e){var t=e.innerRows,n=e.dataType,i=e.percentShow,r=e.dimension,o=e.metrics,a=e.radius,s=e.offsetY,l=e.selectedMode,c=e.hoverAnimation,u=e.digit,h=e.roseType,d=e.label,f=e.level,A=e.limitShowNum,p=e.isRing,g=e.labelLine,m=e.itemStyle,v=[],y={},b=[];f?(f.forEach((function(e,t){e.forEach((function(e){Y(y,e,t)}))})),t.forEach((function(e){var t=y[e[r]];t&&t.length&&t.forEach((function(t){Y(b,t,e)}))}))):b.push(t);var w={type:"pie",selectedMode:l,hoverAnimation:c,roseType:h,center:["50%",s]},x=b.length;if(b.forEach((function(e,t){var s=S({data:[]},w),l=a/x;if(t){var c=l+a/(2*x)*(2*t-1),h=c+a/(2*x);s.radius=[c,h]}else s.radius=p?a:l;x>1&&0===t&&(s.label={normal:{position:"inner"}}),d&&(s.label=d),g&&(s.labelLine=g),m&&(s.itemStyle=m),i&&(s.label={normal:{show:!0,position:x>1&&0===t?"inner":"outside",formatter:function(e){var t=[];return t.push(e.name+":"),t.push(Q(e.value,n,u)),t.push("("+e.percent+"%)"),t.join(" ")}}}),s.data=e.map((function(e){return{name:e[r],value:e[o]}})),v.push(s)})),A&&A"+i+":"),n.push(Q(o,t,r)),n.push("("+a+")")}))):(n.push(e.name+":"),n.push(Q(e.value,t,r)),n.push("("+e.percent+"%)")),n.join(" ")}}}var Ee=function(e,t,n,i,r){var o=P(t),a=n.dataType,s=void 0===a?"normal":a,l=n.percentShow,c=n.dimension,u=void 0===c?e[0]:c,h=n.metrics,d=void 0===h?e[1]:h,f=n.roseType,A=void 0!==f&&f,p=n.radius,g=void 0===p?r?A?Ce:_e:xe:p,m=n.offsetY,v=void 0===m?Se:m,y=n.legendLimit,b=void 0===y?30:y,w=n.selectedMode,x=void 0!==w&&w,_=n.hoverAnimation,C=void 0===_||_,S=n.digit,B=void 0===S?2:S,k=n.legendName,T=void 0===k?{}:k,E=n.label,I=void 0!==E&&E,M=n.level,D=void 0!==M&&M,O=n.limitShowNum,F=void 0===O?0:O,L=n.labelLine,N=n.itemStyle,U=i.tooltipVisible,R=i.legendVisible;F&&o.sort((function(e,t){return t[d]-e[d]}));var Q={innerRows:o,dataType:s,percentShow:l,dimension:u,metrics:d,radius:g,offsetY:v,selectedMode:x,hoverAnimation:C,digit:B,roseType:A,label:I,level:D,legendName:T,limitShowNum:F,isRing:r,labelLine:L,itemStyle:N},H=Be(Q),V={innerRows:o,dimension:u,legendLimit:b,legendName:T,level:D,limitShowNum:F},$=R&&ke(V),j=U&&Te({dataType:s,innerRows:o,limitShowNum:F,digit:B,metrics:d,dimension:u}),z={series:H,legend:$,tooltip:j};return z},Ie=function(e,t,n,i){return Ee(e,t,n,i,!0)},Me=S({},de,{name:"VePie",data:function(){return this.chartHandler=Ee,{}}}),De=S({},de,{name:"VeRing",data:function(){return this.chartHandler=Ie,{}}});function Oe(e,t){return{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(n){var i=n[1];return[i.name+"
"+i.seriesName+" :",""+Q(i.value,e,t)].join("")}}}function Fe(e){var t=e.dimension,n=e.rows,i=e.remainStatus,r=e.totalName,o=e.remainName,a=e.labelMap,s=e.xAxisName,l=e.axisVisible,c=[r].concat(n.map((function(e){return e[t]})));return"have-remain"===i&&(c=c.concat([o])),{type:"category",name:a&&a[s]||s,splitLine:{show:!1},data:c,show:l}}function Le(e){var t=e.dataType,n=e.yAxisName,i=e.axisVisible,r=e.digit,o=e.labelMap;return{type:"value",name:null!=o[n]?o[n]:n,axisTick:{show:!1},axisLabel:{formatter:function(e){return Q(e,t,r)}},show:i}}function Pe(e){var t=e.dataType,n=e.rows,i=e.metrics,r=e.totalNum,o=e.remainStatus,a=e.dataSum,s=e.digit,l={type:"bar",stack:"总量"},c=a,u=r,h=void 0,d=void 0,f=n.map((function(e){return e[i]}));"have-remain"===o?(h=[0].concat(n.map((function(e){return u-=e[i],u}))).concat([0]),d=[r].concat(f).concat([r-a])):(h=[0].concat(n.map((function(e){return c-=e[i],c}))),d=[a].concat(f));var A=[];return A.push(S({name:"辅助",itemStyle:{normal:{opacity:0},emphasis:{opacity:0}},data:h},l)),A.push(S({name:"数值",label:{normal:{show:!0,position:"top",formatter:function(e){return Q(e.value,t,s)}}},data:d},l)),A}function Ne(e,t){return t?t>e?"have-remain":"none-remain":"not-total"}var Ue=function(e,t,n,i){var r=n.dataType,o=void 0===r?"normal":r,a=n.dimension,s=void 0===a?e[0]:a,l=n.totalName,c=void 0===l?"总计":l,u=n.totalNum,h=n.remainName,d=void 0===h?"其他":h,f=n.xAxisName,A=void 0===f?s:f,p=n.labelMap,g=void 0===p?{}:p,m=n.axisVisible,v=void 0===m||m,y=n.digit,b=void 0===y?2:y,w=i.tooltipVisible,x=e.slice();x.splice(x.indexOf(s),1);var _=x[0],C=_,S=w&&Oe(o,b),B=parseFloat(t.reduce((function(e,t){return e+Number(t[_])}),0).toFixed(b)),k=Ne(B,u),T={dimension:s,rows:t,remainStatus:k,totalName:c,remainName:d,xAxisName:A,labelMap:g,axisVisible:v},E=Fe(T),I=Le({dataType:o,yAxisName:C,axisVisible:v,digit:b,labelMap:g}),M={dataType:o,rows:t,dimension:s,metrics:_,totalNum:u,remainStatus:k,dataSum:B,digit:b},D=Pe(M),O={tooltip:S,xAxis:E,yAxis:I,series:D};return O},Re=S({},de,{name:"VeWaterfall",data:function(){return this.chartHandler=Ue,{}}});function Qe(e,t){return{trigger:"item",formatter:function(n){var i=[];return i.push(o(n.color)),i.push(n.name+": "+Q(n.data.realValue,e,t)),i.join("")}}}function He(e){var t=e.data,n=e.legendName;return{data:t,formatter:function(e){return null!=n[e]?n[e]:e}}}function Ve(e){var t=e.dimension,n=e.metrics,i=e.rows,r=e.sequence,o=e.ascending,a=e.label,s=e.labelLine,l=e.itemStyle,c=e.filterZero,u=e.useDefaultOrder,h={type:"funnel"},d=i.sort((function(e,n){return r.indexOf(e[t])-r.indexOf(n[t])}));c&&(d=d.filter((function(e){return e[n]})));var f=!1;d.some((function(e,t){if(t&&e[n]>d[t-1][n])return f=!0,!0}));var A=100/d.length;return h.data=f&&!u?d.slice().reverse().map((function(e,i){return{name:e[t],value:(i+1)*A,realValue:e[n]}})):d.map((function(e){return{name:e[t],value:e[n],realValue:e[n]}})),o&&(h.sort="ascending"),a&&(h.label=a),s&&(h.labelLine=s),l&&(h.itemStyle=l),h}var $e=function(e,t,n,i){var r=e.slice(),o=t.slice(),a=n.dataType,s=void 0===a?"normal":a,l=n.dimension,c=void 0===l?r[0]:l,u=n.sequence,h=void 0===u?o.map((function(e){return e[c]})):u,d=n.digit,f=void 0===d?2:d,A=n.ascending,p=n.label,g=n.labelLine,m=n.legendName,v=void 0===m?{}:m,y=n.itemStyle,b=n.filterZero,w=n.useDefaultOrder,x=i.tooltipVisible,_=i.legendVisible,C=void 0;if(n.metrics)C=n.metrics;else{var S=r.slice();S.splice(r.indexOf(c),1),C=S[0]}var B=x&&Qe(s,f),k=_&&He({data:h,legendName:v}),T=Ve({dimension:c,metrics:C,rows:o,sequence:h,ascending:A,label:p,labelLine:g,itemStyle:y,filterZero:b,useDefaultOrder:w}),E={tooltip:B,legend:k,series:T};return E},je=S({},de,{name:"VeFunnel",data:function(){return this.chartHandler=$e,{}}});function ze(e,t,n){var i=e.map((function(e){return e[t]}));return{data:i,formatter:function(e){return null!=n[e]?n[e]:e}}}function Ke(e,t,n){var i=[],r=[];return t.indicator.map((function(t,n){i[n]=e[t.name],r[n]=t.name})),{formatter:function(e){var t=[];return t.push(o(e.color)),t.push(e.name+"
"),e.data.value.forEach((function(e,o){t.push(r[o]+": "),t.push(Q(e,i[o],n)+"
")})),t.join("")}}}function Ge(e,t,n){var i={indicator:[],shape:"circle",splitNumber:5},r={};return e.forEach((function(e){t.forEach((function(t){var i=null!=n[t]?n[t]:t;r[i]?r[i].push(e[t]):r[i]=[e[t]]}))})),i.indicator=Object.keys(r).map((function(e){return{name:e,max:Math.max.apply(null,r[e])}})),i}function We(e){var t=e.rows,n=e.dimension,i=e.metrics,r=e.radar,o=e.label,a=e.itemStyle,s=e.lineStyle,l=e.labelMap,c=e.areaStyle,u={};r.indicator.forEach((function(e,t){var n=e.name;u[n]=t}));var h=t.map((function(e){var t={value:[],name:e[n]};return Object.keys(e).forEach((function(n){if(~i.indexOf(n)){var r=null!=l[n]?u[l[n]]:u[n];t.value[r]=e[n]}})),t})),d={name:n,type:"radar",data:h};return o&&(d.label=o),a&&(d.itemStyle=a),s&&(d.lineStyle=s),c&&(d.areaStyle=c),[d]}var Ye=function(e,t,n,i){var r=n.dataType,o=void 0===r?{}:r,a=n.legendName,s=void 0===a?{}:a,l=n.labelMap,c=void 0===l?{}:l,u=n.dimension,h=void 0===u?e[0]:u,d=n.digit,f=void 0===d?2:d,A=n.label,p=n.itemStyle,g=n.lineStyle,m=n.areaStyle,v=i.tooltipVisible,y=i.legendVisible,b=e.slice();n.metrics?b=n.metrics:b.splice(e.indexOf(h),1);var w=y&&ze(t,h,s),x=Ge(t,b,c),_=v&&Ke(o,x,f),C=We({rows:t,dimension:h,metrics:b,radar:x,label:A,itemStyle:p,lineStyle:g,labelMap:c,areaStyle:m}),S={legend:w,tooltip:_,radar:x,series:C};return S},qe=S({},de,{name:"VeRadar",data:function(){return this.chartHandler=Ye,{}}}),Xe=S({},de,{name:"VeChart",data:function(){return this.chartLib={bar:oe,histogram:ae,line:be,pie:Ee,ring:Ie,funnel:$e,radar:Ye,waterfall:Ue},this.chartHandler=this.chartLib[this.settings.type],{}}});function Ze(e,t,n,i,r,a){return{formatter:function(s){var l=[];return s.name?(l.push(s.name+"
"),i.forEach((function(i,c){var u=null!=a[i]?a[i]:i;l.push(o(r[c])+" "+u+" : "),n[s.name]?l.push(Q(n[s.name][i],e[i],t)):l.push("-"),l.push("
")})),l.join(" ")):""}}}function Je(e){var t=e.position,n=e.selectData,i=e.dimension,r=e.metrics,o=e.rows,a=e.label,s=e.itemStyle,l=e.selectedMode,c=e.roam,u=e.center,h=e.aspectScale,d=e.boundingCoords,f=e.zoom,A=e.labelMap,p=e.scaleLimit,g=e.mapGrid,m=[],v={type:"map",mapType:t};return r.forEach((function(e){var t=S({name:null!=A[e]?A[e]:e,data:[],selectedMode:l,roam:c,center:u,aspectScale:h,boundingCoords:d,zoom:f,scaleLimit:p},v);g&&Object.keys(g).forEach((function(e){t[e]=g[e]})),et(s,t,"itemStyle"),et(a,t,"label"),o.forEach((function(r){t.data.push({name:r[i],value:r[e],selected:n})})),m.push(t)})),m}function et(e,t,n){"object"===("undefined"===typeof e?"undefined":_(e))?t[n]=e:e&&(t[n]={normal:{show:!0},emphasis:{show:!0}})}function tt(e){var t=e.metrics,n=e.legendName,i=e.labelMap;if(!n&&!i)return{data:t};var r=i?t.map((function(e){return null==i[e]?e:i[e]})):t;return{data:r,formatter:function(e){return null!=n[e]?n[e]:e}}}function nt(t,n){var i=t._once,r=t.registerSign,o=t.beforeRegisterMap,a=t.beforeRegisterMapOnce,s=t.registerSignOnce,l=t.position,c=t.specialAreas;i[r]||(o&&(n=o(n)),a&&!i[s]&&(i[s]=!0,n=a(n)),i[r]=!0,e.registerMap(l,n,c))}var it=function(e,t,n,i){var r=n.position,o=void 0===r?"china":r,a=n.selectData,s=void 0!==a&&a,l=n.selectedMode,c=n.label,u=void 0===c||c,h=n.dataType,d=void 0===h?{}:h,f=n.digit,A=void 0===f?2:f,p=n.dimension,g=void 0===p?e[0]:p,m=n.roam,v=n.center,y=n.aspectScale,b=n.boundingCoords,w=n.zoom,x=n.scaleLimit,_=n.legendName,C=void 0===_?{}:_,S=n.labelMap,B=void 0===S?{}:S,k=n.mapGrid,T=n.itemStyle,E=n.positionJsonLink,I=n.beforeRegisterMap,M=n.beforeRegisterMapOnce,D=n.mapURLProfix,O=void 0===D?"https://unpkg.com/echarts@3.6.2/map/json/":D,F=n.specialAreas,L=void 0===F?{}:F,P=n.mapOrigin,N=e.slice();n.metrics?N=n.metrics:N.splice(e.indexOf(g),1);var U=i.tooltipVisible,R=i.legendVisible,Q=i.color,H=i._once,V={};t.forEach((function(e){V[e[g]]=e}));var $=U&&Ze(d,A,V,N,Q,B),z=R&&tt({metrics:N,legendName:C,labelMap:B}),K={position:o,selectData:s,label:u,itemStyle:T,dimension:g,metrics:N,rows:t,selectedMode:l,roam:m,center:v,aspectScale:y,boundingCoords:b,zoom:w,labelMap:B,scaleLimit:x,mapGrid:k},G=Je(K),W={_once:H,beforeRegisterMap:I,beforeRegisterMapOnce:M,registerSign:"MAP_REGISTER_"+o,registerSignOnce:"ONCE_MAP_REGISTER_"+o,position:o,specialAreas:L};return P?(nt(W,P),{series:G,tooltip:$,legend:z}):j({position:o,positionJsonLink:E,beforeRegisterMapOnce:M,mapURLProfix:O}).then((function(e){return nt(W,e),{series:G,tooltip:$,legend:z}}))},rt=S({},de,{name:"VeMap",data:function(){return this.chartHandler=it,{}}}),ot=function(e,t,n,i){var r=n.key,o=n.v,a=n.bmap,s=n.useOuterMap,l=i._once,c="bmap_register";return r||s||console.warn("settings.key must be a string."),l[c]?{}:(l[c]=!0,s?{bmap:a}:G(r,o).then((function(e){return{bmap:a}})))},at=S({},de,{name:"VeBmap",data:function(){return this.chartHandler=ot,{}}}),st=function(e,t,n,i){var r=n.key,o=n.v,a=n.amap,s=n.useOuterMap,l=i._once,c="amap_register";return r||s||console.warn("settings.key must be a string."),l[c]?{}:(l[c]=!0,s?{amap:a}:W(r,o).then((function(e){return{amap:a}})))},lt=S({},de,{name:"VeAmap",data:function(){return this.chartHandler=st,{}}});function ct(e){var t=e.itemDataType,n=e.linksDataType,i=e.digit;return{trigger:"item",formatter:function(e){var r=[],a=e.name,s=e.data,l=e.value,c=e.color;return r.push(o(c)),r.push(a+" : "),s&&s.source?r.push(Q(l,n,i)+"
"):r.push(Q(l,t,i)+"
"),r.join("")}}}function ut(e){var t=e.rows,n=e.dimension,i=e.metrics,r=e.links,o=e.valueFull,a=e.useDataValue,s=e.label,l=e.itemStyle,c=e.lineStyle,u={},h=t.map((function(e){return u[e[n]]=e[i],{name:e[n],value:e[i]}})),d=null;d=a?r.map((function(e){return S({},e,{value:u[e.target]})})):o?r:r.map((function(e){return null==e.value?S({},e,{value:u[e.target]}):e}));var f={type:"sankey",data:h,links:d};return s&&(f.label=s),l&&(f.itemStyle=l),c&&(f.lineStyle=c),[f]}var ht=function(e,t,n,i){var r=n.links,o=n.dimension,a=void 0===o?e[0]:o,s=n.metrics,l=void 0===s?e[1]:s,c=n.dataType,u=void 0===c?["normal","normal"]:c,h=n.digit,d=void 0===h?2:h,f=n.valueFull,A=void 0!==f&&f,p=n.useDataValue,g=void 0!==p&&p,m=n.label,v=n.itemStyle,y=n.lineStyle;if(r){var b=u[0],w=u[1],x=ct({itemDataType:b,linksDataType:w,digit:d}),_=ut({rows:t,dimension:a,metrics:l,links:r,valueFull:A,useDataValue:g,label:m,itemStyle:v,lineStyle:y});return{tooltip:x,series:_}}console.warn("links is needed in settings!")},dt=S({},de,{name:"VeSankey",data:function(){return this.chartHandler=ht,{}}});function ft(e,t){var n=[];return e.forEach((function(e){~n.indexOf(e[t])||n.push(e[t])})),n}function At(e){var t=e.rows,n=e.innerXAxisList,i=e.innerYAxisList,r=e.xDim,o=e.yDim,a=e.metrics,s=e.type,l=e.extraMetrics,c=null;return c="cartesian"===s?t.map((function(e){var t=n.indexOf(e[r]),s=i.indexOf(e[o]),c=a?e[a]:1,u=l.map((function(t){return e[t]||"-"}));return{value:[t,s,c].concat(u)}})):t.map((function(e){var t=a?e[a]:1;return{value:[e[r],e[o],t]}})),c}function pt(e,t){return{type:"category",data:e,name:t,nameLocation:"end",splitArea:{show:!0}}}function gt(e){var t=e.innerMin,n=e.innerMax,o=e.type,a=e.heatColor,s=e.series,l={min:t,max:n,calculable:!0},c=null;return"map"===o?(c={orient:"vertical",left:0,bottom:0,inRange:{color:a||i}},s[0].data.length||(c.show=!1)):c="bmap"===o||"amap"===o?{show:!1,orient:"vertical",left:0,bottom:0,inRange:{color:a||r}}:{orient:"horizontal",left:"center",bottom:10,dimension:2,inRange:a&&{color:a}},S(l,c)}function mt(e){var t=e.chartData;return[{type:"heatmap",data:t}]}function vt(e){var t=e.dataType,n=e.innerXAxisList,i=e.innerYAxisList,r=e.digit,a=e.extraMetrics,s=e.metrics;return{trigger:"item",formatter:function(e){var l=e.color,c=B(e.data.value),u=c[0],h=c[1],d=c[2],f=c.slice(3),A=[];return A.push(n[u]+" ~ "+i[h]+"
"),a.forEach((function(e,t){A.push(e+": "+f[t]+"
")})),A.push(o(l)+" "+s+": "+Q(d,t,r)+"
"),A.join("")}}}var yt=function(t,n,i,r){var o=i.type,a=void 0===o?"cartesian":o,s=i.xAxisList,l=i.yAxisList,c=i.dimension,u=void 0===c?[t[0],t[1]]:c,h=i.metrics,d=void 0===h?t[2]:h,f=i.dataType,A=void 0===f?"normal":f,p=i.min,g=i.max,m=i.digit,v=i.bmap,y=i.amap,b=i.geo,w=i.key,x=i.v,_=void 0===x?"2.0":x,C=i.position,B=i.positionJsonLink,k=i.beforeRegisterMap,T=i.pointSize,E=void 0===T?10:T,I=i.blurSize,M=void 0===I?5:I,D=i.heatColor,O=i.yAxisName,F=i.xAxisName,L=i.beforeRegisterMapOnce,P=i.mapURLProfix,N=void 0===P?"https://unpkg.com/echarts@3.6.2/map/json/":P,U=i.specialAreas,R=void 0===U?{}:U,Q=r.tooltipVisible,H=s,V=l,$=[],z=[],K=u.concat([d]);t.forEach((function(e){~K.indexOf(e)||z.push(e)})),"cartesian"===a?(H&&H.length||(H=ft(n,u[0])),V&&V.length||(V=ft(n,u[1])),$=At({rows:n,innerXAxisList:H,innerYAxisList:V,xDim:u[0],yDim:u[1],metrics:d,type:a,extraMetrics:z})):$=At({rows:n,xDim:u[0],yDim:u[1],metrics:d,type:a,extraMetrics:z});var Y=d?n.map((function(e){return e[d]})):[0,5];Y.length||(Y=[0]);var q=p||Math.min.apply(null,Y),X=g||Math.max.apply(null,Y),Z=pt(H,F),J=pt(V,O),ee=mt({chartData:$}),te=gt({innerMin:q,innerMax:X,type:a,heatColor:D,series:ee}),ne=Q&&vt({dataType:A,innerXAxisList:H,innerYAxisList:V,digit:m,extraMetrics:z,metrics:d}),ie={visualMap:te,series:ee};return"bmap"===a?(S(ie.series[0],{coordinateSystem:"bmap",pointSize:E,blurSize:M}),G(w,_).then((function(e){return S({bmap:v},ie)}))):"map"===a?(ie.series[0].coordinateSystem="geo",j({position:C,positionJsonLink:B,beforeRegisterMapOnce:L,mapURLProfix:N}).then((function(t){var n=S({map:C},b);return k&&(t=k(t)),e.registerMap(C,t,R),S({geo:n},ie)}))):"amap"===a?(S(ie.series[0],{coordinateSystem:"amap",pointSize:E,blurSize:M}),W(w,_).then((function(e){return S({amap:y},ie)}))):S({xAxis:Z,yAxis:J,tooltip:ne},ie)},bt=S({},de,{name:"VeHeatmap",data:function(){return this.chartHandler=yt,{}}});function wt(e,t){return{data:e,formatter:function(e){return null!=t[e]?t[e]:e}}}function xt(e){var t=e.tooltipTrigger;return{trigger:t,formatter:function(t){return F(t)?t.map((function(t){return _t(t,e)})).join(""):_t(t,e)}}}function _t(e,t){var n=t.labelMap,i=t.columns,r=t.dataType,a=t.digit,s=[],l=e.color,c=e.seriesName,u=e.data.value;return s.push(o(l)+" "+c+"
"),u.forEach((function(e,t){var o=n[i[t]]||i[t],l=isNaN(e)?e:Q(e,r[i[t]],a);s.push(o+": "+l+"
")})),s.join("")}function Ct(e){var t=e.xAxisName,n=e.axisVisible,i=e.xAxisType,r=e.rows,o=e.dataLabels,a=e.dimension,s=[];return o.forEach((function(e){var t=r[e];t.forEach((function(e){var t=e[a];t&&!~s.indexOf(t)&&s.push(t)}))})),[{type:i,show:n,name:t,data:s}]}function St(e){var t=e.min,n=e.max,i=e.scale,r=e.yAxisName,o=e.dataType,a=e.metrics,s=e.digit,l=e.axisVisible;return{type:"value",show:l,scale:i,min:t,max:n,axisTick:{show:!1},name:r,axisLabel:{formatter:function(e){return Q(e,o[a[0]],s)}}}}function Bt(e){var t=e.rows,n=e.dataLabels,i=e.columns,r=e.metrics,o=e.dimension,a=e.label,s=e.itemStyle,l=e.symbol,c=e.symbolSizeMax,u=e.symbolSize,h=e.symbolRotate,d=e.symbolOffset,f=e.cursor,A=i.filter((function(e){return!~r.indexOf(e)&&e!==o})),p=[];n.forEach((function(e){t[e].forEach((function(e){p.push(e[r[1]])}))}));var g=Math.max.apply(null,p),m=[];return n.forEach((function(e){var n=[],i=t[e];i.forEach((function(e){var t={value:[]};t.value.push(e[o],e[r[0]],e[r[1]]),A.forEach((function(n){t.value.push(e[n])})),t.symbolSize=u||e[r[1]]/g*c,n.push(t)})),m.push({type:"scatter",data:n,name:e,label:a,itemStyle:s,symbol:l,symbolRotate:h,symbolOffset:d,cursor:f})})),m}var kt=function(e,t,n,i){var r=n.dimension,o=void 0===r?e[0]:r,a=n.metrics,s=void 0===a?[e[1],e[2]]:a,l=n.dataType,c=void 0===l?{}:l,u=n.xAxisType,h=void 0===u?"category":u,d=n.xAxisName,f=n.yAxisName,A=n.digit,p=void 0===A?2:A,g=n.legendName,m=void 0===g?{}:g,v=n.labelMap,y=void 0===v?{}:v,b=n.tooltipTrigger,w=void 0===b?"item":b,x=n.axisVisible,_=void 0===x||x,C=n.symbolSizeMax,B=void 0===C?50:C,k=n.symbol,T=n.symbolSize,E=n.symbolRotate,I=n.symbolOffset,M=n.cursor,D=n.min,O=n.max,L=n.scale,P=n.label,N=n.itemStyle;if(F(t)){var U=S({},n,{xAxisName:d?[d]:void 0,yAxisName:f?[f]:void 0,scale:L?[L]:void 0,min:D?[D]:void 0,max:O?[O]:void 0,dimension:o?[o]:void 0}),R=be(e,t,U,i);return R&&R.series?(R.series.forEach((function(e){S(e,{type:"scatter",symbol:k,symbolSize:T||10,symbolRotate:E,symbolOffset:I,cursor:M,label:P,itemStyle:N})})),R):{}}var Q=i.tooltipVisible,H=i.legendVisible,V=Object.keys(t),$=H&&wt(V,m),j=Q&&xt({tooltipTrigger:w,labelMap:y,columns:e,dataType:c,digit:p}),z=Ct({xAxisName:d,axisVisible:_,xAxisType:h,dataLabels:V,dimension:o,rows:t}),K=St({min:D,max:O,scale:L,yAxisName:f,dataType:c,metrics:s,digit:p,axisVisible:_}),G=Bt({rows:t,dataLabels:V,columns:e,metrics:s,dimension:o,label:P,itemStyle:N,symbol:k,symbolSizeMax:B,symbolSize:T,symbolRotate:E,symbolOffset:I,cursor:M});return{legend:$,tooltip:j,xAxis:z,yAxis:K,series:G}},Tt=S({},de,{name:"VeScatter",data:function(){return this.chartHandler=kt,{}}}),Et=[5,10,20,30],It="日K",Mt="#ec0000",Dt="#00da3c",Ot=50,Ft=100,Lt={show:!1};function Pt(e){var t=e.showMA,n=e.MA,i=e.legendName,r=e.labelMap,o=[It];return t&&(o=o.concat(n.map((function(e){return"MA"+e})))),r&&(o=o.map((function(e){return null==r[e]?e:r[e]}))),{data:o,formatter:function(e){return null!=i[e]?i[e]:e}}}function Nt(e){var t=e.metrics,n=e.dataType,i=e.digit,r=e.labelMap;return{trigger:"axis",axisPointer:{type:"cross"},position:function(e,t,n,i,r){var o={top:10},a=e[0]"),e.forEach((function(e){var s=e.data,l=e.seriesName,c=e.componentSubType,u=e.color,h=null==r[l]?l:r[l];if(a.push(o(u)+" "+h+": "),"candlestick"===c)a.push("
"),t.slice(0,4).forEach((function(e,t){var o=null!=r[e]?r[e]:e,l=Q(s[t+1],n,i);a.push("- "+o+": "+l+"
")}));else if("line"===c){var d=Q(s,n,i);a.push(d+"
")}else if("bar"===c){var f=Q(s[1],n,i);a.push(f+"
")}})),a.join("")}}}function Ut(e){var t=e.downColor,n=e.upColor,i=e.MA,r=e.showMA;return{show:!1,seriesIndex:r?1+i.length:1,dimension:2,pieces:[{value:1,color:t},{value:-1,color:n}]}}function Rt(e){var t=e.showVol;return[{left:"10%",right:"8%",top:"10%",height:t?"50%":"65%",containLabel:!1},{left:"10%",right:"8%",top:"65%",height:"16%",containLabel:!1}]}function Qt(e){var t=e.dims,n="category",i=!0,r=!1,o=Lt,a={onZero:!1},s=Lt,l=Lt,c="dataMin",u="dataMax",h=1;return[{type:n,data:t,scale:i,boundaryGap:r,axisLine:a,splitLine:o,min:c,max:u},{type:n,gridIndex:h,data:t,scale:i,boundaryGap:r,axisLine:a,axisTick:s,splitLine:o,axisLabel:l,min:c,max:u}]}function Ht(e){var t=e.dataType,n=e.digit,i=!0,r=1,o=2,a=Lt,s=Lt,l=Lt,c=Lt,u=function(e){return Q(e,t,n)};return[{scale:i,axisTick:s,axisLabel:{formatter:u}},{scale:i,gridIndex:r,splitNumber:o,axisLine:a,axisTick:s,splitLine:c,axisLabel:l}]}function Vt(e){var t=e.start,n=e.end;return[{type:"inside",xAxisIndex:[0,1],start:t,end:n},{show:!0,xAxisIndex:[0,1],type:"slider",top:"85%",start:t,end:n}]}function $t(e){var t=e.values,n=e.volumes,i=e.upColor,r=e.downColor,o=e.showMA,a=e.MA,s=e.showVol,l=e.labelMap,c=e.digit,u=e.itemStyle,h=u||{normal:{color:i,color0:r,borderColor:null,borderColor0:null}},d={normal:{opacity:.5}},f=[{name:null==l[It]?It:l[It],type:"candlestick",data:t,itemStyle:h}];return o&&a.forEach((function(e){var n="MA"+e;f.push({name:null==l[n]?n:l[n],data:jt(e,t,c),type:"line",lineStyle:d,smooth:!0})})),s&&f.push({name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,data:n}),f}function jt(e,t,n){var i=[];return t.forEach((function(r,o){if(oe[s[1]]?1:-1;U.push([t,e[Q],i])}}));var H=O&&Pt({showMA:v,MA:g,legendName:A,labelMap:d}),V=D&&Nt({metrics:s,dataType:M,digit:c,labelMap:d}),$=b&&Ut({downColor:C,upColor:B,MA:g,showMA:v}),j=x&&Vt({start:T,end:I}),z=Rt({showVol:b}),K=Qt({dims:P}),G=Ht({dataType:M,digit:c}),W=$t({values:N,volumes:U,upColor:B,downColor:C,showMA:v,MA:g,showVol:b,labelMap:d,digit:c,itemStyle:u}),Y={link:{xAxisIndex:"all"}};return{legend:H,tooltip:V,visualMap:$,grid:z,xAxis:K,yAxis:G,dataZoom:j,series:W,axisPointer:Y}},Kt=S({},de,{name:"VeCandle",data:function(){return this.chartHandler=zt,{}}});function Gt(e){var t=e.tooltipFormatter,n=e.dataType,i=e.digit;return{formatter:function(e){var r=e.seriesName,o=e.data,a=o.value,s=o.name;if(t)return t.apply(null,arguments);var l=[];return l.push(r+": "),l.push(Q(a,n[r],i)+" "+s),l.join("")}}}function Wt(e){var t=e.rows,n=e.dimension,i=e.metrics,r=e.digit,o=e.dataType,a=e.labelMap,s=e.seriesMap,l=e.dataName,c=t.map((function(e){var t=e[n],c=s[t],u={type:"gauge",name:null!=a[t]?a[t]:t,data:[{name:l[t]||"",value:e[i]}],detail:{formatter:function(e){return Q(e,o[t],r)}},axisLabel:{formatter:function(e){return Q(e,o[t],r)}}};return c&&Object.keys(c).forEach((function(e){O(u[e])?S(u[e],c[e]):u[e]=c[e]})),u}));return c}var Yt=function(e,t,n,i){var r=n.dimension,o=void 0===r?e[0]:r,a=n.metrics,s=void 0===a?e[1]:a,l=n.digit,c=void 0===l?2:l,u=n.dataType,h=void 0===u?{}:u,d=n.labelMap,f=void 0===d?{}:d,A=n.seriesMap,p=void 0===A?{}:A,g=n.dataName,m=void 0===g?{}:g,v=i.tooltipFormatter,y=i.tooltipVisible,b=y&&Gt({tooltipFormatter:v,dataType:h}),w=Wt({rows:t,dimension:o,metrics:s,digit:c,dataType:h,labelMap:f,seriesMap:p,dataName:m});return{tooltip:b,series:w}},qt=S({},de,{name:"VeGauge",data:function(){return this.chartHandler=Yt,{}}});function Xt(e){var t=e.dimension,n=e.rows,i=n.map((function(e){return e[t]}));return{data:i}}function Zt(e){var t=e.tooltipFormatter;return{trigger:"item",triggerOn:"mousemove",formatter:t}}function Jt(e){var t=e.dimension,n=e.metrics,i=e.rows,r=e.seriesMap,o=[];return i.forEach((function(e){var i=e[t],a=r[i],s={type:"tree",name:e[t],data:e[n]};r[e[t]]&&Object.keys(a).forEach((function(e){O(s[e])?S(s[e],a[e]):s[e]=a[e]})),o.push(s)})),o}var en=function(e,t,n,i){var r=n.dimension,o=void 0===r?e[0]:r,a=n.metrics,s=void 0===a?e[1]:a,l=n.seriesMap,c=void 0===l?{}:l,u=i.legendVisible,h=i.tooltipFormatter,d=i.tooltipVisible,f=Jt({dimension:o,metrics:s,rows:t,seriesMap:c}),A=u&&t.length>1&&Xt({dimension:o,rows:t}),p=d&&Zt({tooltipFormatter:h});return{series:f,legend:A,tooltip:p}},tn=S({},de,{name:"VeTree",data:function(){return this.chartHandler=en,{}}});function nn(e){var t=e.tooltipFormatter,n=e.dataType,i=e.digit;return{show:!0,formatter:function(e){var r=e.seriesName,o=e.value;return t?t.apply(null,arguments):[r+": ",Q(o,n,i)].join("")}}}function rn(e){var t=e.dimension,n=e.metrics,i=e.seriesMap,r=e.rows,o=e.wave,a=o,s=F(i)?i.length:0;return r.slice().map((function(e,r){var l=[],c={type:"liquidFill"},u=e[t],h=Number(e[n]),d={};return F(i)?d=i[r]?i[r]:i[s-1]:O(i[u])&&(d=i[u]),F(o)&&F(o[0])&&(a=F(o[r])?o[r]:o[o.length-1]),l.push({value:h}),a&&a.length&&(l=l.concat(a.map((function(e){return{value:e}})))),c=S(c,{data:l,name:u},d),c}))}var on=function(e,t,n,i){var r=n.dimension,o=void 0===r?e[0]:r,a=n.metrics,s=void 0===a?e[1]:a,l=n.seriesMap,c=void 0===l?{}:l,u=n.dataType,h=void 0===u?"percent":u,d=n.digit,f=void 0===d?2:d,A=n.wave,p=void 0===A?[]:A,g=i.tooltipVisible,m=i.tooltipFormatter,v=g&&nn({tooltipFormatter:m,dataType:h,digit:f}),y=rn({rows:t,columns:e,dimension:o,metrics:s,seriesMap:c,wave:p});return{tooltip:v,series:y}},an=S({},de,{name:"VeLiquidfill",data:function(){return this.chartHandler=on,{}}});function sn(e){var t=e.dimension,n=e.metrics,i=e.rows,r=e.color,o=e.sizeMax,a=e.sizeMin,s=e.shape,l={type:"wordCloud",textStyle:{normal:{color:!F(r)&&r?r:function(){return"rgb("+[Math.round(160*Math.random()),Math.round(160*Math.random()),Math.round(160*Math.random())].join(",")+")"}}},shape:s,sizeRange:[a,o]},c=F(r)?r.length:0,u=i.slice().map((function(e){var i={name:e[t],value:e[n]};return c>0&&(i.textStyle={normal:{color:r[Math.floor(Math.random()*c)]}}),i}));return l.data=u,[l]}function ln(e){var t=e.tooltipFormatter;return{show:!0,formatter:function(e){var n=e.data,i=n.name,r=n.value;return t?t.apply(null,e):i+": "+r}}}var cn=function(e,t,n,i){var r=n.dimension,o=void 0===r?e[0]:r,a=n.metrics,s=void 0===a?e[1]:a,l=n.color,c=void 0===l?"":l,u=n.sizeMax,h=void 0===u?60:u,d=n.sizeMin,f=void 0===d?12:d,A=n.shape,p=void 0===A?"circle":A,g=i.tooltipVisible,m=i.tooltipFormatter,v=sn({dimension:o,metrics:s,rows:t,color:c,sizeMax:h,sizeMin:f,shape:p}),y=g&&ln({tooltipFormatter:m});return{series:v,tooltip:y}},un=S({},de,{name:"VeWordcloud",data:function(){return this.chartHandler=cn,{}}}),hn=[fe,Ae,we,Me,De,Re,je,qe,Xe,rt,at,lt,dt,bt,Tt,Kt,qt,tn,an,un];function dn(e,t){hn.forEach((function(t){e.component(t.name,t)}))}"undefined"!==typeof window&&window.Vue&&dn(window.Vue);var fn={VeBar:fe,VeHistogram:Ae,VeRing:De,VeLine:we,VePie:Me,VeWaterfall:Re,VeFunnel:je,VeRadar:qe,VeChart:Xe,VeMap:rt,VeBmap:at,VeAmap:lt,VeSankey:dt,VeScatter:Tt,VeCandle:Kt,VeGauge:qt,VeTree:tn,VeLiquidfill:an,VeWordcloud:un,install:dn};return fn}))},"282b":function(e,t,n){var i=n("6d8b");function r(e){for(var t=0;t=0||r&&i.indexOf(r,s)<0)){var l=t.getShallow(s);null!=l&&(o[e[a][0]]=l)}}return o}}e.exports=r},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},"292e":function(e,t,n){var i=n("3842"),r=i.parsePercent,o=i.linearMap,a=n("f934"),s=n("bb70"),l=n("6d8b"),c=2*Math.PI,u=Math.PI/180;function h(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function d(e,t,n,i){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),a=h(e,n),d=e.get("center"),f=e.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var A=r(a.width,n.getWidth()),p=r(a.height,n.getHeight()),g=Math.min(A,p),m=r(d[0],A)+a.x,v=r(d[1],p)+a.y,y=r(f[0],g/2),b=r(f[1],g/2),w=-e.get("startAngle")*u,x=e.get("minAngle")*u,_=0;t.each(i,(function(e){!isNaN(e)&&_++}));var C=t.getSum(i),S=Math.PI/(C||_)*2,B=e.get("clockwise"),k=e.get("roseType"),T=e.get("stillShowZeroSum"),E=t.getDataExtent(i);E[0]=0;var I=c,M=0,D=w,O=B?1:-1;if(t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:m,cy:v,r0:y,r:k?NaN:b,viewRect:a});else{i="area"!==k?0===C&&T?S:e*S:c/_,i0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;nl&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2b17":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=(r.isTypedArray,r.extend),a=(r.assert,r.each),s=r.isObject,l=n("e0d3"),c=l.getDataItemValue,u=l.isDataItemOption,h=n("3842"),d=h.parseDate,f=n("ec6f"),A=n("93d0"),p=A.SOURCE_FORMAT_TYPED_ARRAY,g=A.SOURCE_FORMAT_ARRAY_ROWS,m=A.SOURCE_FORMAT_ORIGINAL,v=A.SOURCE_FORMAT_OBJECT_ROWS;function y(e,t){f.isInstance(e)||(e=f.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===p&&(this._offset=0,this._dimSize=t,this._data=n);var r=w[i===g?i+"_"+e.seriesLayoutBy:i];o(this,r)}var b=y.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var w={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:C},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i?@[\\\]^|]/,U=/[\0\t\n\r #/:<>?@[\\\]^|]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Q=/[\t\n\r]/g,H=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(n=$(t.slice(1,-1)),!n)return T;e.host=n}else if(Z(e)){if(t=p(t),N.test(t))return T;if(n=V(t),null===n)return T;e.host=n}else{if(U.test(t))return T;for(n="",i=f(t),r=0;r4)return e;for(n=[],i=0;i1&&"0"==r.charAt(0)&&(o=O.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?L:8==o?F:P).test(r))return e;a=parseInt(r,o)}n.push(a)}for(i=0;i=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),i=0;i6)return;i=0;while(d()){if(r=null,i>0){if(!("."==d()&&i<4))return;h++}if(!D.test(d()))return;while(D.test(d())){if(o=parseInt(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[c]=256*l[c]+r,i++,2!=i&&4!=i||c++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;h++,c++,u=c}}if(null!==u){a=c-u,c=7;while(0!=c&&a>0)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s}else if(8!=c)return;return l},j=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},z=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=j(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},K={},G=d({},K,{" ":1,'"':1,"<":1,">":1,"`":1}),W=d({},G,{"#":1,"?":1,"{":1,"}":1}),Y=d({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(e,t){var n=A(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return h(X,e.scheme)},J=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&I.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},le={},ce={},ue={},he={},de={},fe={},Ae={},pe={},ge={},me={},ve={},ye={},be={},we={},xe={},_e={},Ce={},Se={},Be={},ke=function(e,t,n,r){var o,a,s,l,c=n||ae,u=0,d="",A=!1,p=!1,g=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(R,"")),t=t.replace(Q,""),o=f(t);while(u<=o.length){switch(a=o[u],c){case ae:if(!a||!I.test(a)){if(n)return k;c=le;continue}d+=a.toLowerCase(),c=se;break;case se:if(a&&(M.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return k;d="",c=le,u=0;continue}if(n&&(Z(e)!=h(X,d)||"file"==d&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Z(e)&&X[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=ye:Z(e)&&r&&r.scheme==e.scheme?c=ce:Z(e)?c=fe:"/"==o[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Ce)}break;case le:if(!r||r.cannotBeABaseURL&&"#"!=a)return k;if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Be;break}c="file"==r.scheme?ye:he;continue;case ce:if("/"!=a||"/"!=o[u+1]){c=he;continue}c=Ae,u++;break;case ue:if("/"==a){c=pe;break}c=_e;continue;case he:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&Z(e))c=de;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Se;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=_e;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Be}break;case de:if(!Z(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=_e;continue}c=pe}else c=Ae;break;case fe:if(c=Ae,"/"!=a||"/"!=d.charAt(u+1))continue;u++;break;case Ae:if("/"!=a&&"\\"!=a){c=pe;continue}break;case pe:if("@"==a){A&&(d="%40"+d),A=!0,s=f(d);for(var m=0;m65535)return E;e.port=Z(e)&&b===X[e.scheme]?null:b,d=""}if(n)return;c=xe;continue}return E}d+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)c=be;else{if(!r||"file"!=r.scheme){c=_e;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",c=Se;else{if("#"!=a){ne(o.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),c=_e;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Be}}break;case be:if("/"==a||"\\"==a){c=we;break}r&&"file"==r.scheme&&!ne(o.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=_e;continue;case we:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(d))c=_e;else if(""==d){if(e.host="",n)return;c=xe}else{if(l=H(e,d),l)return l;if("localhost"==e.host&&(e.host=""),n)return;d="",c=xe}continue}d+=a;break;case xe:if(Z(e)){if(c=_e,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(c=_e,"/"!=a))continue}else e.fragment="",c=Be;else e.query="",c=Se;break;case _e:if(a==i||"/"==a||"\\"==a&&Z(e)||!n&&("?"==a||"#"==a)){if(oe(d)?(ie(e),"/"==a||"\\"==a&&Z(e)||e.path.push("")):re(d)?"/"==a||"\\"==a&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==i||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",c=Se):"#"==a&&(e.fragment="",c=Be)}else d+=q(a,W);break;case Ce:"?"==a?(e.query="",c=Se):"#"==a?(e.fragment="",c=Be):a!=i&&(e.path[0]+=q(a,K));break;case Se:n||"#"!=a?a!=i&&("'"==a&&Z(e)?e.query+="%27":e.query+="#"==a?"%23":q(a,K)):(e.fragment="",c=Be);break;case Be:a!=i&&(e.fragment+=q(a,G));break}u++}},Te=function(e){var t,n,i=u(this,Te,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(i,{type:"URL"});if(void 0!==r)if(r instanceof Te)t=_(r);else if(n=ke(t={},String(r)),n)throw TypeError(n);if(n=ke(s,a,null,t),n)throw TypeError(n);var l=s.searchParams=new b,c=w(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},o||(i.href=Ie.call(i),i.origin=Me.call(i),i.protocol=De.call(i),i.username=Oe.call(i),i.password=Fe.call(i),i.host=Le.call(i),i.hostname=Pe.call(i),i.port=Ne.call(i),i.pathname=Ue.call(i),i.search=Re.call(i),i.searchParams=Qe.call(i),i.hash=He.call(i))},Ee=Te.prototype,Ie=function(){var e=_(this),t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",J(e)&&(c+=n+(i?":"+i:"")+"@"),c+=z(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Me=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Te(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&Z(e)?t+"://"+z(e.host)+(null!==n?":"+n:""):"null"},De=function(){return _(this).scheme+":"},Oe=function(){return _(this).username},Fe=function(){return _(this).password},Le=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?z(t):z(t)+":"+n},Pe=function(){var e=_(this).host;return null===e?"":z(e)},Ne=function(){var e=_(this).port;return null===e?"":String(e)},Ue=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=_(this).query;return e?"?"+e:""},Qe=function(){return _(this).searchParams},He=function(){var e=_(this).fragment;return e?"#"+e:""},Ve=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(Ee,{href:Ve(Ie,(function(e){var t=_(this),n=String(e),i=ke(t,n);if(i)throw TypeError(i);w(t.searchParams).updateSearchParams(t.query)})),origin:Ve(Me),protocol:Ve(De,(function(e){var t=_(this);ke(t,String(e)+":",ae)})),username:Ve(Oe,(function(e){var t=_(this),n=f(String(e));if(!ee(t)){t.username="";for(var i=0;i0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i="radial"===t.type?c:l,r=i(e,t,n),o=t.colorStops,a=0;an)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},p=function(e){delete b[e]},d?i=function(e){g.nextTick(_(e))}:v&&v.now?i=function(e){v.now(_(e))}:m&&!h?(r=new m,o=r.port2,r.port1.onmessage=C,i=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&f&&"file:"!==f.protocol&&!s(S)?(i=S,a.addEventListener("message",C,!1)):i=w in u("script")?function(e){c.appendChild(u("script"))[w]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:A,clear:p}},"2cfc":function(e,t,n){var i=n("3eba");n("4338"),n("bcbe"),n("c62c"),n("cb8f"),n("f138"),i.extendComponentView({type:"single"})},"2d00":function(e,t,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]<4?1:i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f31":function(e,t,n){var i=n("3eba"),r=n("ae75");n("10cc"),n("f31f"),n("c2dd"),n("b8ec"),n("fecb"),i.registerPreprocessor(r)},"2f45":function(e,t,n){var i=n("6d8b"),r=i.each,o=i.createHashMap,a=(i.assert,n("4e08")),s=(a.__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},n=t.encode={},i=o(),a=[],l=[],u=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};r(e.dimensions,(function(t){var r=e.getDimensionInfo(t),o=r.coordDim;if(o){var d=r.coordDimIndex;c(n,o)[d]=t,r.isExtraCoord||(i.set(o,1),h(r.type)&&(a[0]=t),c(u.encode,o)[d]=r.index),r.defaultTooltip&&l.push(t)}s.each((function(e,t){var i=c(n,t),o=r.otherDims[t];null!=o&&!1!==o&&(i[o]=r.name)}))}));var d=[],f={};i.each((function(e,t){var i=n[t];f[t]=i[0],d=d.concat(i)})),t.dataDimsOnCoord=d,t.encodeFirstDimNotExtra=f;var A=n.label;A&&A.length&&(a=A.slice());var p=n.tooltip;return p&&p.length?l=p.slice():l.length||(l=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=l,t}function c(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function u(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function h(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=l,t.getDimensionTypeByAxis=u},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=s(e[n],t)})),i}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function h(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},d.prototype.forEachChild=function(e){l(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,f);var A=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;p(e.concat(i),t.getChild(i),n.modules[i])}}A.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},A.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},A.prototype.update=function(e){p([],this.root,e)},A.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new d(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&l(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},A.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},A.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var m=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;x(this,c,[],this._modules.root),w(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:g.config.devtools;u&&o(this)},v={state:{configurable:!0}};function y(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};l(r,(function(t,n){o[n]=h(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:o}),g.config.silent=a,e.strict&&T(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),g.nextTick((function(){return i.$destroy()})))}function x(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=E(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(s,l,i.state)}))}var c=i.context=_(e,a,n);i.forEachMutation((function(t,n){var i=a+n;S(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;B(e,i,r,c)})),i.forEachGetter((function(t,n){var i=a+n;k(e,i,t,c)})),i.forEachChild((function(i,o){x(e,t,n.concat(o),i,r)}))}function _(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=I(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=I(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return E(e.state,n)}}}),r}function C(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function B(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return u(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function k(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function T(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function E(e,t){return t.reduce((function(e,t){return e[t]}),e)}function I(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function M(e){g&&e===g||(g=e,n(g))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},m.prototype.commit=function(e,t,n){var i=this,r=I(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},m.prototype.dispatch=function(e,t){var n=this,i=I(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},m.prototype.subscribe=function(e,t){return y(e,this._subscribers,t)},m.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return y(n,this._actionSubscribers,t)},m.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},m.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},m.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},m.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=E(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),b(this)},m.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},m.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},m.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(m.prototype,v);var D=R((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=Q(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),O=R((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=Q(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),F=R((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||Q(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),L=R((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=Q(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),P=function(e){return{mapState:D.bind(null,e),mapGetters:F.bind(null,e),mapMutations:O.bind(null,e),mapActions:L.bind(null,e)}};function N(e){return U(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function U(e){return Array.isArray(e)||c(e)}function R(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Q(e,t,n){var i=e._modulesNamespaceMap[n];return i}function H(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=s(e.state);"undefined"!==typeof u&&(l&&e.subscribe((function(e,o){var a=s(o);if(n(e,h,a)){var l=j(),c=r(e),d="mutation "+e.type+l;V(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),$(u)}h=a})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var i=j(),r=a(e),s="action "+e.type+i;V(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),$(u)}})))}}function V(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function j(){var e=new Date;return" @ "+K(e.getHours(),2)+":"+K(e.getMinutes(),2)+":"+K(e.getSeconds(),2)+"."+K(e.getMilliseconds(),3)}function z(e,t){return new Array(t+1).join(e)}function K(e,t){return z("0",t-e.toString().length)+e}var G={Store:m,install:M,version:"3.6.2",mapState:D,mapMutations:O,mapGetters:F,mapActions:L,createNamespacedHelpers:P,createLogger:H};t["a"]=G}).call(this,n("c8ba"))},"2f73":function(e,t,n){var i=n("3eba"),r=n("6d8b"),o=n("1e32");n("1ccf"),n("f5e6"),n("792e"),n("cb8f"),n("6acf"),i.registerLayout(r.curry(o,"bar")),i.extendComponentView({type:"polar"})},"2f91":function(e,t){var n=["itemStyle","borderColor"];function i(e,t){var i=e.get("color");e.eachRawSeriesByType("boxplot",(function(t){var r=i[t.seriesIndex%i.length],o=t.getData();o.setVisual({legendSymbol:"roundRect",color:t.get(n)||r}),e.isSeriesFiltered(t)||o.each((function(e){var t=o.getItemModel(e);o.setItemVisual(e,{color:t.get(n,!0)})}))}))}e.exports=i},"2f9a":function(e,t){e.exports=function(){}},3014:function(e,t,n){var i=n("4f85"),r=n("3301"),o=i.extend({type:"series.__base_bar__",getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=o},"301c":function(e,t,n){n("e198")("asyncIterator")},3041:function(e,t,n){var i=n("e1fc"),r=n("0da8"),o=n("76a5"),a=n("d9fc"),s=n("c7a2"),l=n("ae69"),c=n("cb11"),u=n("cbe5"),h=n("87b1"),d=n("d498"),f=n("48a9"),A=n("2b61"),p=n("1687"),g=n("342d"),m=g.createFromString,v=n("6d8b"),y=v.isString,b=v.extend,w=v.defaults,x=v.trim,_=v.each,C=/[\s,]+/;function S(e){if(y(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function B(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}B.prototype.parse=function(e,t){t=t||{};var n=S(e);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(l)&&(l=null),O(n,r,null,!0);var c,u,h=n.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(o){var d=x(o).split(C);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=a&&null!=l&&(u=Q(c,a,l),!t.ignoreViewBox)){var f=r;r=new i,r.add(f),f.scale=u.scale.slice(),f.position=u.position.slice()}return t.ignoreRootClip||null==a||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:a,height:l}})),{root:r,width:a,height:l,viewBoxRect:c,viewBoxTransform:u}},B.prototype._parseNode=function(e,t){var n,i=e.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=T[i];if(r){var o=r.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=o)}}else{r=k[i];r&&(n=r.call(this,e,t),t.add(n))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},B.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new o({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(t,r),O(e,r,this._defs);var a=r.style.fontSize;a&&a<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r};var k={g:function(e,t){var n=new i;return I(t,n),O(e,n,this._defs),n},rect:function(e,t){var n=new s;return I(t,n),O(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new a;return I(t,n),O(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new c;return I(t,n),O(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new l;return I(t,n),O(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=M(n));var i=new h({shape:{points:n||[]}});return I(t,i),O(e,i,this._defs),i},polyline:function(e,t){var n=new u;I(t,n),O(e,n,this._defs);var i=e.getAttribute("points");i&&(i=M(i));var r=new d({shape:{points:i||[]}});return r},image:function(e,t){var n=new r;return I(t,n),O(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,r=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i;return I(t,s),O(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new i;return I(t,s),O(e,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(e,t){var n=e.getAttribute("d")||"",i=m(n);return I(t,i),O(e,i,this._defs),i}},T={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),o=new f(t,n,i,r);return E(e,o),o},radialgradient:function(e){}};function E(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";t.addColorStop(i,r)}n=n.nextSibling}}function I(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),w(t.__inheritedStyle,e.__inheritedStyle))}function M(e){for(var t=x(e).split(C),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||p.create(),s){case"translate":a=x(a).split(C),p.translate(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=x(a).split(C),p.scale(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=x(a).split(C),p.rotate(i,i,parseFloat(a[0]));break;case"skew":a=x(a).split(C),console.warn("Skew transform is not supported yet");break;case"matrix":a=x(a).split(C);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5]);break}}t.setLocalTransform(i)}}var U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function R(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i,r={};U.lastIndex=0;while(null!=(i=U.exec(t)))r[i[1]]=i[2];for(var o in D)D.hasOwnProperty(o)&&null!=r[o]&&(n[D[o]]=r[o]);return n}function Q(e,t,n){var i=t/e.width,r=n/e.height,o=Math.min(i,r),a=[o,o],s=[-(e.x+e.width/2)*o+t/2,-(e.y+e.height/2)*o+n/2];return{scale:a,position:s}}function H(e,t){var n=new B;return n.parse(e,t)}t.parseXML=S,t.makeViewBoxTransform=Q,t.parseSVG=H},"307a":function(e,t,n){var i=n("6d8b"),r=n("eaea"),o=n("3842"),a=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=a[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,c=t.length;a=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(m,20))),p.coord[f]=g.coord[f]=c,r=[p,g,{type:s,valueIndex:r.valueIndex,value:c}]}return r=[a.dataTransform(e,r[0]),a.dataTransform(e,r[1]),i.extend({},r[2])],r[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function d(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,n,i){var r=1-e,o=i.dimensions[e];return d(t[r])&&d(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function A(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(f(1,n,i,e)||f(0,n,i,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function p(e,t,n,i,r){var a,s=i.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get("x"),r.getWidth()),u=o.parsePercent(l.get("y"),r.getHeight());if(isNaN(c)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=s.dimensions,f=e.get(h[0],t),A=e.get(h[1],t);a=s.dataToPoint([f,A])}if("cartesian2d"===s.type){var p=s.getAxis("x"),g=s.getAxis("y");h=s.dimensions;d(e.get(h[0],t))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):d(e.get(h[1],t))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u)}else a=[c,u];e.setItemLayout(t,a)}var g=l.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var i=t.getData(),r=t.__from,o=t.__to;r.each((function(t){p(r,t,!0,e,n),p(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,r){var o=e.coordinateSystem,a=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(a)||c.set(a,new s);this.group.add(u.group);var h=m(o,e,t),d=h.from,f=h.to,A=h.line;t.__from=d,t.__to=f,t.setData(A);var g=t.get("symbol"),v=t.get("symbolSize");function y(t,n,i){var o=t.getItemModel(n);p(t,n,i,e,r),t.setItemVisual(n,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||v[i?0:1],symbol:o.get("symbol",!0)||g[i?0:1],color:o.get("itemStyle.color")||l.getVisual("color")})}i.isArray(g)||(g=[g,g]),"number"===typeof v&&(v=[v,v]),h.from.each((function(e){y(d,e,!0),y(f,e,!1)})),A.each((function(e){var t=A.getItemModel(e).get("lineStyle.color");A.setItemVisual(e,{color:t||d.getItemVisual(e,"color")}),A.setItemLayout(e,[d.getItemLayout(e),f.getItemLayout(e)]),A.setItemVisual(e,{fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol")})})),u.updateData(A),h.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function m(e,t,n){var o;o=e?i.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new r(o,n),l=new r(o,n),c=new r([],n),u=i.map(n.get("data"),i.curry(h,t,e,n));e&&(u=i.filter(u,i.curry(A,e)));var d=e?a.dimValueGetter:function(e){return e.value};return s.initData(i.map(u,(function(e){return e[0]})),null,d),l.initData(i.map(u,(function(e){return e[1]})),null,d),c.initData(i.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}e.exports=g},"30a3":function(e,t,n){var i=n("6d8b"),r=n("607d"),o=r.Dispatcher,a=n("98b7"),s=n("06ad"),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-c)*u+c,a[1]=(a[1]-c)*u+c;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,d.minSpan,d.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:u((function(e,t,n,i,r,o){var a=h[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:u((function(e,t,n,i,r,o){var a=h[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function u(e){return function(t,n,i,r){var a=this._range,s=a.slice(),l=t.axisModels[0];if(l){var c=e(s,l,t,n,i,r);return o(c,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var h={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},d=l;e.exports=d},"32f8":function(e,t,n){var i=n("862d"),r=n("3eba");r.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=i(["value"],e.data),o=new r.List(n,this);return o.initData(e.data),o},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}}}})},3301:function(e,t,n){var i=n("6d8b"),r=n("6179"),o=n("b1d4"),a=n("93d0"),s=a.SOURCE_FORMAT_ORIGINAL,l=n("2f45"),c=l.getDimensionTypeByAxis,u=n("e0d3"),h=u.getDataItemValue,d=n("2039"),f=n("8b7f"),A=f.getCoordSysInfoBySeries,p=n("ec6f"),g=n("ee1a"),m=g.enableDataStack,v=n("0f99"),y=v.makeSeriesEncodeForAxisCoordSys;function b(e,t,n){n=n||{},p.isInstance(e)||(e=p.seriesDataToSource(e));var a,s=t.get("coordinateSystem"),l=d.get(s),u=A(t);u&&(a=i.map(u.coordSysDims,(function(e){var t={name:e},n=u.axisMap.get(e);if(n){var i=n.get("type");t.type=c(i)}return t}))),a||(a=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,g=o(e,{coordDimensions:a,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(y,a,t):null});u&&i.each(g,(function(e,t){var n=e.coordDim,i=u.categoryAxisMap.get(n);i&&(null==h&&(h=t),e.ordinalMeta=i.getOrdinalMeta()),null!=e.otherDims.itemName&&(f=!0)})),f||null==h||(g[h].otherDims.itemName=0);var v=m(t,g),b=new r(g,t);b.setCalculationInfo(v);var x=null!=h&&w(e)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return b.hasItemOption=!1,b.initData(e,null,x),b}function w(e){if(e.sourceFormat===s){var t=x(e.data||[]);return null!=t&&!i.isArray(h(t))}}function x(e){var t=0;while(t0?1:a<0?-1:0}function y(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function b(e,t,n,i,o,a,s,l,u,h){var d=u.valueDim,f=u.categoryDim,A=Math.abs(n[f.wh]),p=e.getItemVisual(t,"symbolSize");r.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[f.index]=c(p[f.index],A),p[d.index]=c(p[d.index],i?A:Math.abs(a)),h.symbolSize=p;var g=h.symbolScale=[p[0]/l,p[1]/l];g[d.index]*=(u.isHorizontal?-1:1)*s}function w(e,t,n,i,r){var o=e.get(f)||0;o&&(p.attr({scale:t.slice(),rotation:n}),p.updateTransform(),o/=p.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o}function x(e,t,n,i,o,a,s,l,h,d,f,A){var p=f.categoryDim,g=f.valueDim,m=A.pxSign,v=Math.max(t[g.index]+l,0),y=v;if(i){var b=Math.abs(h),w=r.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;w.lastIndexOf("!")===w.length-1&&(x=!0,w=w.slice(0,w.length-1)),w=c(w,t[g.index]);var _=Math.max(v+2*w,0),C=x?0:2*w,S=u(i),B=S?i:R((b+C)/_),k=b-B*v;w=k/2/(x?B:B-1),_=v+2*w,C=x?0:2*w,S||"fixed"===i||(B=d?R((Math.abs(d)+C)/_):0),y=B*_-C,A.repeatTimes=B,A.symbolMargin=w}var T=m*(y/2),E=A.pathPosition=[];E[p.index]=n[p.wh]/2,E[g.index]="start"===s?T:"end"===s?h-T:h/2,a&&(E[0]+=a[0],E[1]+=a[1]);var I=A.bundlePosition=[];I[p.index]=n[p.xy],I[g.index]=n[g.xy];var M=A.barRectShape=r.extend({},n);M[g.wh]=m*Math.max(Math.abs(n[g.wh]),Math.abs(E[g.index]+T)),M[p.wh]=n[p.wh];var D=A.clipShape={};D[p.xy]=-n[p.xy],D[p.wh]=f.ecSize[p.wh],D[g.xy]=0,D[g.wh]=n[g.wh]}function _(e){var t=e.symbolPatternSize,n=s(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function C(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(P(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:i<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+s[l.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function p(){P(e,(function(e){e.trigger("emphasis")}))}function g(){P(e,(function(e){e.trigger("normal")}))}}function S(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?N(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=e.__pictorialMainPath=_(n),r.add(o),N(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),M(o,n)}function B(e,t,n){var i=r.extend({},t.barRectShape),a=e.__pictorialBarRect;a?N(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new o.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function k(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,s=r.extend({},n.clipShape),l=t.valueDim,c=n.animationModel,u=n.dataIndex;if(a)o.updateProps(a,{shape:s},c,u);else{s[l.wh]=0,a=new o.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var h={};h[l.wh]=n.clipShape[l.wh],o[i?"updateProps":"initProps"](a,{shape:h},c,u)}}}function T(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=E,n.isAnimationEnabled=I,n}function E(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function M(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function D(e,t,n,i){var r=new o.Group,a=new o.Group;return r.add(a),r.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?C(r,t,n):S(r,t,n),B(r,n,i),k(r,t,n,i),r.__pictorialShapeStr=L(e,n),r.__pictorialSymbolMeta=n,r}function O(e,t,n){var i=n.animationModel,r=n.dataIndex,a=e.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?C(e,t,n,!0):S(e,t,n,!0),B(e,n,!0),k(e,t,n,!0)}function F(e,t,n,i){var a=i.__pictorialBarRect;a&&(a.style.text=null);var s=[];P(i,(function(e){s.push(e)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(e){o.updateProps(e,{scale:[0,0]},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function L(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function P(e,t,n){r.each(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function N(e,t,n,i,r,a){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&o[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function U(e,t,n){var i=n.color,a=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");P(e,(function(e){e.setColor(i),e.setStyle(r.defaults({fill:i,opacity:n.opacity},l)),o.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=n.z2}));var h={},f=t.valueDim.posDesc[+(n.boundingLength>0)],A=e.__pictorialBarRect;d(A.style,h,s,i,t.seriesModel,a,f),o.setHoverStyle(A,h)}function R(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Q=g;e.exports=Q},3397:function(e,t,n){var i=n("7a41");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"340d":function(e,t,n){var i=n("6d8b"),r=n("e887"),o=n("4e47"),a=n("80f0"),s=n("eda2"),l=s.windowOpen,c="sunburstRootToNode",u=r.extend({type:"sunburst",init:function(){},render:function(e,t,n,r){var s=this;this.seriesModel=e,this.api=n,this.ecModel=t;var l=e.getData(),c=l.tree.root,u=e.getViewRoot(),h=this.group,d=e.get("renderLabelForZeroData"),f=[];u.eachNode((function(e){f.push(e)}));var A=this._oldChildren||[];if(m(f,A),b(c,u),r&&r.highlight&&r.highlight.piece){var p=e.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(p)}else if(r&&r.unhighlight){var g=this.virtualPiece;!g&&c.children.length&&(g=c.children[0].piece),g&&g.onNormal()}function m(e,t){function n(e){return e.getId()}function r(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];v(r,o)}0===e.length&&0===t.length||new a(t,e,n,n).add(r).update(r).remove(i.curry(r,null)).execute()}function v(n,i){if(d||!n||n.getValue()||(n=null),n!==c&&i!==c)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",e,t),l.setItemGraphicEl(n.dataIndex,i.piece)):y(i);else if(n){var r=new o(n,e,t);h.add(r),l.setItemGraphicEl(n.dataIndex,r)}}function y(e){e&&e.piece&&(h.remove(e.piece),e.piece=null)}function b(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new o(n,e,t),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(e){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";l(a,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}}),h=u;e.exports=h},"342d":function(e,t,n){var i=n("cbe5"),r=n("20c8"),o=n("ee84"),a=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},h=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},d=function(e,t){return(e[0]*t[1]1&&(u*=a(b),f*=a(b));var w=(r===o?-1:1)*a((u*u*(f*f)-u*u*(y*y)-f*f*(v*v))/(u*u*(y*y)+f*f*(v*v)))||0,x=w*u*y/f,_=w*-f*v/u,C=(e+n)/2+l(m)*x-s(m)*_,S=(t+i)/2+s(m)*x+l(m)*_,B=d([1,0],[(v-x)/u,(y-_)/f]),k=[(v-x)/u,(y-_)/f],T=[(-1*v-x)/u,(-1*y-_)/f],E=d(k,T);h(k,T)<=-1&&(E=c),h(k,T)>=1&&(E=0),0===o&&E>0&&(E-=2*c),1===o&&E<0&&(E+=2*c),g.addData(p,C,S,u,f,B,E,m,o)}var A=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,p=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e){if(!e)return new r;for(var t,n=0,i=0,o=n,a=i,s=new r,l=r.CMD,c=e.match(A),u=0;u=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:v/2},d="vertical"===i?r.height:r.width,f=e.getModel("controlStyle"),A=f.get("show",!0),p=A?f.get("itemSize"):0,g=A?f.get("itemGap"):0,m=p+g,y=e.get("label.rotate")||0;y=y*v/180;var w=f.get("position",!0),x=A&&f.get("showPlayBtn",!0),_=A&&f.get("showPrevBtn",!0),C=A&&f.get("showNextBtn",!0),S=0,B=d;return"left"===w||"bottom"===w?(x&&(o=[0,0],S+=m),_&&(a=[S,0],S+=m),C&&(s=[B-p,0],B-=m)):(x&&(o=[B-p,0],B-=m),_&&(a=[0,0],S+=m),C&&(s=[B-p,0],B-=m)),l=[S,B],e.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:h[i],labelRotation:y,labelPosOpt:n,labelAlign:e.get("label.align")||c[i],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:p,controlGap:g}},_position:function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var a=o.create(),s=r.x,l=r.y+r.height;o.translate(a,a,[-s,-l]),o.rotate(a,a,-v/2),o.translate(a,a,[s,l]),r=r.clone(),r.applyTransform(a)}var c=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),d=n.position,f=i.position;f[0]=d[0]=c[0][0];var A=e.labelPosOpt;if(isNaN(A)){var p="+"===A?0:1;y(d,u,c,1,p),y(f,h,c,1,1-p)}else{p=A>=0?0:1;y(d,u,c,1,p),f[1]=d[1]+A}function g(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.attr("position",d),i.attr("position",f),n.rotation=i.rotation=e.rotation,g(n),g(i)},_createAxis:function(e,t){var n=t.getData(),i=t.get("axisType"),r=d.createScaleByModel(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new c("value",r,e.axisExtent,i);return a.model=t,a},_createGroup:function(e){var t=this["_"+e]=new a.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,r){var o=n.getExtent();r.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,i){var r=i.getData(),o=n.scale.getTicks();m(o,(function(e){var o=n.dataToCoord(e),s=r.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:g(this._changeTimeline,this,e)},h=x(s,l,t,u);a.setHoverStyle(h,c.getItemStyle()),s.get("tooltip")?(h.dataIndex=e,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,i){var r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();m(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new a.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:g(this._changeTimeline,this,r),silent:!1});a.setTextStyle(h.style,l,{text:i.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(h),a.setHoverStyle(h,a.setTextStyle({},c))}),this)}},_renderControl:function(e,t,n,i){var r=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function d(e,n,u,h){if(e){var d={position:e,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:s,onclick:u},f=w(i,n,c,d);t.add(f),a.setHoverStyle(f,l)}}d(e.nextBtnPosition,"controlStyle.nextIcon",g(this._changeTimeline,this,h?"-":"+")),d(e.prevBtnPosition,"controlStyle.prevIcon",g(this._changeTimeline,this,h?"+":"-")),d(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),g(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=g(s._handlePointerDrag,s),e.ondragend=g(s._handlePointerDragend,s),_(e,o,n,i,!0)},onUpdate:function(e){_(e,o,n,i)}};this._currentPointer=x(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=f.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),nl)r.f(e,n=i[l++],t[n]);return e}},3842:function(e,t,n){var i=n("6d8b"),r=1e-4;function o(e){return e.replace(/^\s+|\s+$/g,"")}function a(e,t,n,i){var r=t[1]-t[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*o+n[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?o(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function h(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return i<0?-i:0}var r=t.indexOf(".");return r<0?0:t.length-1-r}function d(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function f(e,t,n){if(!e[t])return 0;var r=i.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;var o=Math.pow(10,n),a=i.map(e,(function(e){return(isNaN(e)?0:e)/r*o*100})),s=100*o,l=i.map(a,(function(e){return Math.floor(e)})),c=i.reduce(l,(function(e,t){return e+t}),0),u=i.map(a,(function(e,t){return e-l[t]}));while(ch&&(h=u[f],d=f);++l[d],u[d]=0,++c}return l[t]/o}var A=9007199254740991;function p(e){var t=2*Math.PI;return(e%t+t)%t}function g(e){return e>-r&&e=10&&t++,t}function w(e,t){var n,i=b(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function x(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function _(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i=0}t.linearMap=a,t.parsePercent=s,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=h,t.getPixelPrecision=d,t.getPercentWithPrecision=f,t.MAX_SAFE_INTEGER=A,t.remRadian=p,t.isRadianAroundZero=g,t.parseDate=v,t.quantity=y,t.quantityExponent=b,t.nice=w,t.quantile=x,t.reformIntervals=_,t.isNumeric=C},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"38a2":function(e,t,n){var i=n("2b17"),r=i.retrieveRawValue,o=n("eda2"),a=o.getTooltipMarker,s=o.formatTpl,l=n("e0d3"),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,h={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"color"),u=n.getItemVisual(e,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),f=c(d),A=this.mainType,p="series"===A,g=n.userOutput;return{componentType:A,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:r,data:s,dataType:t,value:i,color:l,borderColor:u,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:a({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,o){t=t||"normal";var a=this.getData(n),l=a.getItemModel(e),c=this.getDataParams(e,n);null!=i&&c.value instanceof Array&&(c.value=c.value[i]);var h=l.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]);if("function"===typeof h)return c.status=t,c.dimensionIndex=i,h(c);if("string"===typeof h){var d=s(h,c);return d.replace(u,(function(t,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(a,e,n)}))}},getRawValue:function(e,t){return r(this.getData(t),e)},formatTooltip:function(){}};e.exports=h},3901:function(e,t,n){var i=n("282b"),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(e){var t=r(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),i=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[i,i]:[n,n])}};e.exports=o},"392f":function(e,t,n){var i=n("6d8b"),r=i.inherits,o=n("19eb"),a=n("9850");function s(e){o.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;nu)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"3a56":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),l=n("50e5"),c=n("cc39"),u=o.each,h=l.eachAxisDim,d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=f(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this.doInit(i)},mergeOption:function(e){var t=f(e);o.merge(this.option,e,!0),o.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;a.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),A(this,e);var n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,n,i,r){var o=this.dependentModels[t.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new c(t.name,n,this,r));e[t.name+"_"+n]=a}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();h((function(t){var n=t.axisIndex;e[n]=s.normalizeToArray(e[n])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;h((function(n){null!=e[n.axisIndex]&&(t=!0)}),this);var n=e.orient;return null==n&&t?"orient":t?void 0:(null==n&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,i=this.dependentModels;if(e){var r="vertical"===t?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],e=!1):u(i.singleAxis,(function(i){e&&i.get("orient",!0)===t&&(n.singleAxisIndex=[i.componentIndex],e=!1)}))}e&&h((function(t){if(e){var i=[],r=this.dependentModels[t.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var e;return h((function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}}),this),e},eachTargetAxis:function(e,t){var n=this.ecModel;h((function(i){u(this.get(i.axisIndex),(function(r){e.call(t,i,r,this,n)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e){var t=this.option,n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),A(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function A(e,t){var n=e._rangePropMode,i=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,r){var o=null!=t[e[0]],a=null!=t[e[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")}))}var p=d;e.exports=p},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c4e":function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&i(e)?f(c(e),e,t):e}function h(e,t,n){var r=e.slice();return t.forEach((function(t,o){"undefined"===typeof r[o]?r[o]=u(t,n):i(t)?r[o]=f(e[o],t,n):-1===e.indexOf(t)&&r.push(u(t,n))})),r}function d(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){i(t[o])&&e[o]?r[o]=f(e[o],t[o],n):r[o]=u(t[o],n)})),r}function f(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:h},a=i===r;if(a){if(i){var s=o.arrayMerge||h;return s(e,t,n)}return d(e,t,n)}return u(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var A=f;e.exports=A},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("7dd0"),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3cd6":function(e,t,n){var i=n("6d8b"),r=n("48a9"),o=n("607d"),a=n("72b6"),s=n("2306"),l=n("3842"),c=n("ef6a"),u=n("cbb0"),h=n("e0d3"),d=l.linearMap,f=i.each,A=Math.min,p=Math.max,g=12,m=6,v=a.extend({type:"visualMap.continuous",init:function(){v.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,l=this._shapes.barGroup,c=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],l),u=this._applyTransform(0===n?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:i,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,o=this._orient,a=this._useHandle,s=u.getItemAlign(t,this.api,r),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=y()),l.add(n.inRange=y(null,a?C(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),h=p(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,r,h,o,s),this._createHandle(l,1,r,h,o,s)),this._createIndicator(l,r,h,o),e.add(l)},_createHandle:function(e,t,n,r,a){var l=i.bind(this._dragHandle,this,t,!1),c=i.bind(this._dragHandle,this,t,!0),u=y(b(t,r),C(this._orient),l,c);u.position[0]=n[0],e.add(u);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(e){o.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===a?r/2:1.5*r,"horizontal"===a?0===t?-1.5*r:1.5*r:0===t?-r/2:r/2],A=this._shapes;A.handleThumbs[t]=u,A.handleLabelPoints[t]=f,A.handleLabels[t]=d},_createIndicator:function(e,t,n,i){var r=y([[0,0]],"move");r.position[0]=t[0],r.attr({invisible:!0,silent:!0}),e.add(r);var o=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var l=["horizontal"===i?n/2:m+3,0],c=this._shapes;c.indicator=r,c.indicatorLabel=a,c.indicatorLabelPoint=l},_dragHandle:function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(e,r[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[d(t[0],n,i,!0),d(t[1],n,i,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];c(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[d(i[0],r,o,!0),d(i[1],r,o,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(e,t,n,i){var o={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,o),s=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],l=this._createBarPoints(n,s);return{barColor:new r(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;oe[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;f([0,1],(function(a){var l=r[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var c=s.applyTransform(n.handleLabelPoints[a],s.getTransform(l,this.group));o[a].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,l=[0,a[1]],c=d(e,o,l,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=c,h.attr("invisible",!1),h.setShape("points",w(!!n,i,c,a[1]));var f={convertOpacityToAlpha:!0},A=this.getControllerVisual(e,"color",f);h.setStyle("fill",A);var p=s.applyTransform(u.indicatorLabelPoint,s.getTransform(h,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var m=this._applyTransform("left",u.barGroup),v=this._orient;g.setStyle({text:(n||"")+r.formatValueText(t),textVerticalAlign:"horizontal"===v?m:"middle",textAlign:"horizontal"===v?"center":m,x:p[0],y:p[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);i[1]=A(p(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=A(p(r[0],e),r[1]);var a=x(n,o,r),s=[e-a,e+a],l=d(e,r,o,!0),c=[d(s[0],r,o,!0),d(s[1],r,o,!0)];s[0]r[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var f=this._hoverLinkDataIndices,g=[];(t||_(n))&&(g=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var m=h.compressBatches(f,g);this._dispatchHighDown("downplay",u.makeHighDownBatch(m[0],n)),this._dispatchHighDown("highlight",u.makeHighDownBatch(m[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var i=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(t.dataType),o=r.get(n.getDataDimension(r),t.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,r){var o=s.getTransform(t,r?null:this.group);return s[i.isArray(e)?"applyTransform":"transformDirection"](e,o,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(e,t,n,i){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){o.stop(e.event)},ondragend:i})}function b(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function w(e,t,n,i){return e?[[0,-A(t,p(n,0))],[m,0],[0,A(t,p(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function x(e,t,n){var i=g/2,r=e.get("hoverLinkDataSize");return r&&(i=d(r,t,n,!0)/2),i}function _(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function C(e){return"vertical"===e?"ns-resize":"ew-resize"}var S=v;e.exports=S},"3d33":function(e,t,n){ /** * @license * Video.js 6.13.0 * Copyright Brightcove, Inc. * Available under Apache License Version 2.0 * * * Includes vtt.js * Available under Apache License Version 2.0 * */ function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("be09")),o=i(n("ef34")),a=i(n("1b8d")),s=i(n("8c10")),l=i(n("eec7")),c=i(n("2b8c2")),u="6.13.0",h=r.navigator&&r.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(h),f=d?parseFloat(d.pop()):null,A=/iPad/i.test(h),p=/iPhone/i.test(h)&&!A,g=/iPod/i.test(h),m=p||A||g,v=function(){var e=h.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),y=/Android/i.test(h),b=function(){var e=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),w=y&&/webkit/i.test(h)&&b<2.3,x=y&&b<5&&f<537,_=/Firefox/i.test(h),C=/Edge/i.test(h),S=!C&&(/Chrome/i.test(h)||/CriOS/i.test(h)),B=function(){var e=h.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),k=/MSIE\s8\.0/.test(h),T=function(){var e=/MSIE\s(\d+)\.\d/.exec(h),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(t=11),t}(),E=/Safari/i.test(h)&&!S&&!y&&!C,I=(E||m)&&!S,M=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),D=ne()&&"backgroundSize"in r.document.createElement("video").style,O=(Object.freeze||Object)({IS_IPAD:A,IS_IPHONE:p,IS_IPOD:g,IS_IOS:m,IOS_VERSION:v,IS_ANDROID:y,ANDROID_VERSION:b,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:x,IS_FIREFOX:_,IS_EDGE:C,IS_CHROME:S,CHROME_VERSION:B,IS_IE8:k,IE_VERSION:T,IS_SAFARI:E,IS_ANY_SAFARI:I,TOUCH_ENABLED:M,BACKGROUND_SIZE_SUPPORTED:D}),F="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},L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},U=function(e,t){return e.raw=t,e},R=Object.prototype.toString,Q=function(e){return j(e)?Object.keys(e):[]};function H(e,t){Q(e).forEach((function(n){return t(e[n],n)}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Q(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function $(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=o.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(a(Z,e,n)),r.setAttribute(e,n)):"textContent"===e?se(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Be(r,i),r}function se(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ce(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ue(e,t){return e.classList?e.classList.add(t):ce(e,t)||(e.className=(e.className+" "+t).trim()),e}function he(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function de(e,t,n){var i=ce(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ue(e,t):he(e,t),e}function fe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Ae(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,a=i[r].value;"boolean"!==typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function pe(e,t){return e.getAttribute(t)}function ge(e,t,n){e.setAttribute(t,n)}function me(e,t){e.removeAttribute(t)}function ve(){o.body.focus(),o.onselectstart=function(){return!1}}function ye(){o.onselectstart=function(){return!0}}function be(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(X(e,"height"))),n.width||(n.width=parseFloat(X(e,"width"))),n}}function we(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.documentElement,i=o.body,a=n.clientLeft||i.clientLeft||0,s=r.pageXOffset||i.scrollLeft,l=t.left+s-a,c=n.clientTop||i.clientTop||0,u=r.pageYOffset||i.scrollTop,h=t.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function xe(e,t){var n={},i=we(e),r=e.offsetWidth,o=e.offsetHeight,a=i.top,s=i.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-s)/r)),n}function _e(e){return j(e)&&3===e.nodeType}function Ce(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Se(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||_e(e)?e:"string"===typeof e&&/\S/.test(e)?o.createTextNode(e):void 0})).filter((function(e){return e}))}function Be(e,t){return Se(t).forEach((function(t){return e.appendChild(t)})),e}function ke(e,t){return Be(Ce(e),t)}function Te(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===T||0===e.button&&1===e.buttons))}var Ee=oe("querySelector"),Ie=oe("querySelectorAll"),Me=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:ae,textContent:se,prependTo:le,hasClass:ce,addClass:ue,removeClass:he,toggleClass:de,setAttributes:fe,getAttributes:Ae,getAttribute:pe,setAttribute:ge,removeAttribute:me,blockTextSelection:ve,unblockTextSelection:ye,getBoundingClientRect:be,findPosition:we,getPointerPosition:xe,isTextNode:_e,emptyEl:Ce,normalizeContent:Se,appendContent:Be,insertContent:ke,isSingleLeftClick:Te,$:Ee,$$:Ie}),De=1;function Oe(){return De++}var Fe={},Le="vdata"+(new Date).getTime();function Pe(e){var t=e[Le];return t||(t=e[Le]=Oe()),Fe[t]||(Fe[t]={}),Fe[t]}function Ne(e){var t=e[Le];return!!t&&!!Object.getOwnPropertyNames(Fe[t]).length}function Ue(e){var t=e[Le];if(t){delete Fe[t];try{delete e[Le]}catch(n){e.removeAttribute?e.removeAttribute(Le):e[Le]=null}}}function Re(e,t){var n=Pe(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Ue(e)}function Qe(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function He(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var a in e={},i)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&("returnValue"===a&&i.preventDefault||(e[a]=i[a]));if(e.target||(e.target=e.srcElement||o),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=o.documentElement,l=o.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var Ve=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){Ve=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var $e=["touchstart","touchmove"];function je(e,t,n){if(Array.isArray(t))return Qe(je,e,t,n);var i=Pe(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Oe()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=He(t);var r=i.handlers[t.type];if(r)for(var o=r.slice(0),a=0,s=o.length;a-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function ze(e,t,n){if(Ne(e)){var i=Pe(e);if(i.handlers){if(Array.isArray(t))return Qe(ze,e,t,n);var r=function(e,t){i.handlers[t]=[],Re(e,t)};if(void 0!==t){var o=i.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a0)for(var r=0,a=e.length;r0)for(var s=0,l=t.length;s0)for(var c=0,u=n.length;c0)for(var h=0,d=i.length;h=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,o=void 0,a=function(){i.clearTimeout(o),o=null},s=function(){var r=this,a=arguments,s=function(){o=null,s=null,n||e.apply(r,a)};!o&&n&&e.apply(r,a),i.clearTimeout(o),o=i.setTimeout(s,t)};return s.cancel=a,s},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},je(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){ze(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=He(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ke(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var ot=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},at=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},st=function(e){if(!e.nodeName&&!ot(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!at(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ct=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ut=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,o=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],o=t[1]):(i=t[0],r=t[1],o=t[2]),st(i),lt(r),ct(o),o=tt(e,o),{isTargetingSelf:n,target:i,type:r,listener:o}},ht=function(e,t,n,i){st(e),e.nodeName?We[t](e,n,i):e[t](n,i)},dt={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=ae("span",{className:"vjs-event-bus"});return $(e,dt),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var At={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return H(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&ot(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function pt(e,t){return $(e,At),e.state=$({},e.state,t),"function"===typeof e.handleStateChanged&&ot(e)&&e.on("statechanged",e.handleStateChanged),e}function gt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function mt(e,t){return gt(e)===gt(t)}function vt(){for(var e={},t=arguments.length,n=Array(t),i=0;i=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ue(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=vt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return ae(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],a=i&&i.split("-")[0],s=r&&r[a],l=n;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=gt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"===typeof t){o=gt(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!==typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),o=o||r.name&>(r.name()),o&&(this.childNameIndex_[o]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,c=l[i]||null;this.contentEl().insertBefore(r.el(),c)}return r},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}},o=void 0,a=e.getComponent("Tech");o=Array.isArray(n)?n:Object.keys(n),o.concat(Object.keys(this.options_).filter((function(e){return!o.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||gt(t.name));return n&&!a.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return Ee(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Ie(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ce(this.el_,e)},e.prototype.addClass=function(e){ue(this.el_,e)},e.prototype.removeClass=function(e){he(this.el_,e)},e.prototype.toggleClass=function(e,t){de(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return pe(this.el_,e)},e.prototype.setAttribute=function(e,t){ge(this.el_,e,t)},e.prototype.removeAttribute=function(e){me(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+gt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+gt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY,a=Math.sqrt(i*i+o*o);a>n&&(r=!1)}}));var o=function(){r=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(n){if(t=null,!0===r){var o=(new Date).getTime()-e;o0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=gt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function bt(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function wt(e,t,n,i){return bt(e,i,n.length-1),n[i][t]}function xt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:wt.bind(null,"start",0,e),end:wt.bind(null,"end",1,e)}}function _t(e,t){return Array.isArray(e)?xt(e):void 0===e||void 0===t?xt():xt([[e,t]])}function Ct(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=_t(0,0));for(var o=0;ot&&(r=t),n+=r-i;return n/t}yt.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,yt.registerComponent("Component",yt);for(var St={},Bt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],kt=Bt[0],Tt=void 0,Et=0;Et0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L(this,t);var a=N(this,e.call(this));if(!r&&(r=a,k))for(var s in r=o.createElement("custom"),t.prototype)"constructor"!==s&&(r[s]=t.prototype[s]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var a=void 0,s=r.length-1;s>=0;s--)if(r[s].enabled){jt(r,r[s]);break}if(k){for(var l in a=o.createElement("custom"),Vt.prototype)"constructor"!==l&&(a[l]=Vt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(a[c]=t.prototype[c])}return n=N(this,e.call(this,r,a)),a=n,a.changing_=!1,i=a,N(n,i)}return P(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&jt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,jt(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Vt),Kt=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var a=void 0,s=r.length-1;s>=0;s--)if(r[s].selected){Kt(r,r[s]);break}if(k){for(var l in a=o.createElement("custom"),Vt.prototype)"constructor"!==l&&(a[l]=Vt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(a[c]=t.prototype[c])}return n=N(this,e.call(this,r,a)),a=n,a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);var a=void 0;if(k){for(var s in a=o.createElement("custom"),Vt.prototype)"constructor"!==s&&(a[s]=Vt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l])}return n=N(this,e.call(this,r,a)),a=n,i=a,N(n,i)}return P(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Vt),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,e);var n=this;if(k)for(var i in n=o.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,a=t.length;r0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var r=N(this,e.call(this)),a=r;if(k)for(var s in a=o.createElement("custom"),t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);var l={id:i.id||"vjs_track_"+Oe(),kind:i.kind||"",label:i.label||"",language:i.language||""},c=function(e){Object.defineProperty(a,e,{get:function(){return l[e]},set:function(){}})};for(var u in l)c(u);return n=a,N(r,n)}return P(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,a=void 0;i&&(a=o.createElement("div"),a.innerHTML='
',n=a.firstChild,a.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(a));for(var s={},l=0;lx',e=t.firstChild.href}return e},on=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},an=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,o=i+n.host!==t.protocol+t.host;return o},sn=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:on,isCrossOrigin:an}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Y.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},cn=function(e,t){var n={uri:e},i=an(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return Y.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var o=function(){return ln(i,t)};t.tech_.on("vttjsloaded",o),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",o)}))}}else ln(i,t)})))},un=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(L(this,t),!r.tech)throw new Error("A tech was not provided.");var o=vt(r,{kind:Jt[r.kind]||"subtitles",language:r.language||r.srclang||""}),a=en[o.mode]||"disabled",s=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(a="hidden");var l=(n=N(this,e.call(this,o)),n);if(l.tech_=o.tech,k)for(var c in t.prototype)"constructor"!==c&&(l[c]=t.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new qt(l.cues_),h=new qt(l.activeCues_),d=!1,f=tt(l,(function(){this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1)}));return"disabled"!==a&&l.tech_.ready((function(){l.tech_.on("timeupdate",f)}),!0),Object.defineProperty(l,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return a},set:function(e){var t=this;en[e]&&(a=e,"disabled"!==a?this.tech_.ready((function(){t.tech_.on("timeupdate",f)}),!0):this.tech_.off("timeupdate",f),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var o=vt(r,{kind:Zt[r.kind]||""}),a=(n=N(this,e.call(this,o)),n),s=!1;if(k)for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l]);return Object.defineProperty(a,"enabled",{get:function(){return s},set:function(e){"boolean"===typeof e&&e!==s&&(s=e,this.trigger("enabledchange"))}}),o.enabled&&(a.enabled=o.enabled),a.loaded_=!0,i=a,N(n,i)}return P(t,e),t}(tn),dn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var o=vt(r,{kind:Xt[r.kind]||""}),a=(n=N(this,e.call(this,o)),n),s=!1;if(k)for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l]);return Object.defineProperty(a,"selected",{get:function(){return s},set:function(e){"boolean"===typeof e&&e!==s&&(s=e,this.trigger("selectedchange"))}}),o.selected&&(a.selected=o.selected),i=a,N(n,i)}return P(t,e),t}(tn),fn=0,An=1,pn=2,gn=3,mn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var i=N(this,e.call(this)),r=void 0,a=i;if(k)for(var s in a=o.createElement("custom"),t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);var l,c=new un(n);return a.kind=c.kind,a.src=c.src,a.srclang=c.language,a.label=c.label,a["default"]=c["default"],Object.defineProperty(a,"readyState",{get:function(){return r}}),Object.defineProperty(a,"track",{get:function(){return c}}),r=fn,c.addEventListener("loadeddata",(function(){r=pn,a.trigger({type:"load",target:a})})),k?(l=a,N(i,l)):i}return P(t,e),t}(rt);mn.prototype.allowedEvents_={load:"load"},mn.NONE=fn,mn.LOADING=An,mn.LOADED=pn,mn.ERROR=gn;var vn={audio:{ListClass:zt,TrackClass:hn,capitalName:"Audio"},video:{ListClass:Gt,TrackClass:dn,capitalName:"Video"},text:{ListClass:Wt,TrackClass:un,capitalName:"Text"}};Object.keys(vn).forEach((function(e){vn[e].getterName=e+"Tracks",vn[e].privateName=e+"Tracks_"}));var yn={remoteText:{ListClass:Wt,TrackClass:un,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:mn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},bn=vt(vn,yn);function wn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var a=new bn.text.TrackClass(r);return o.addTrack(a),a}yn.names=Object.keys(yn),vn.names=Object.keys(vn),bn.names=[].concat(yn.names).concat(vn.names);var xn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};L(this,t),n.reportTouchActivity=!1;var r=N(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),bn.names.forEach((function(e){var t=bn[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new bn.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return P(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return _t(0,0)},t.prototype.bufferedPercent=function(){return Ct(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(vn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Mt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?_t(0,0):_t()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;vn.names.forEach((function(t){var n=vn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&z(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var t=o.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=gt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=gt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(yt);bn.names.forEach((function(e){var t=bn[e];xn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),xn.prototype.featuresVolumeControl=!0,xn.prototype.featuresMuteControl=!0,xn.prototype.featuresFullscreenResize=!1,xn.prototype.featuresPlaybackRate=!1,xn.prototype.featuresProgressEvents=!1,xn.prototype.featuresSourceset=!1,xn.prototype.featuresTimeupdateEvents=!1,xn.prototype.featuresNativeTextTracks=!1,xn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r3&&void 0!==arguments[3]?arguments[3]:null,r="call"+gt(n),o=e.reduce(Ln(r),i),a=o===Sn,s=a?null:t[n](o);return Pn(e,n,s,a),s}var Dn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},On={setCurrentTime:1},Fn={play:1,pause:1};function Ln(e){return function(t,n){return t===Sn?Sn:n[e]?n[e](t):t}}function Pn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var o=e[r];o[t]&&o[t](i,n)}}function Nn(e){Cn[e.id()]=null}function Un(e,t){var n=Cn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),Cn[e.id()]=[[t,i]],i;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=t[0],s=t.slice(1);if("string"===typeof a)Rn(e,_n[a],n,i,r,o);else if(a){var l=Un(i,a);if(!l.setSource)return r.push(l),Rn(e,s,n,i,r,o);l.setSource($({},e),(function(t,a){if(t)return Rn(e,s,n,i,r,o);r.push(l),Rn(a,e.type===a.type?s:_n[a.type],n,i,r,o)}))}else s.length?Rn(e,s,n,i,r,o):o?n(e,r):Rn(e,_n["*"],n,i,r,!0)}var Qn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=on(e),n=Qn[t.toLowerCase()];return n||""},Vn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=$({innerHTML:'',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=$({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=ae("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,se(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){je(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){ze(o,"keydown",tt(this,this.handleKeyPress))},t}(yt);yt.registerComponent("ClickableComponent",Kn);var Gn=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return P(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=ae("div",{className:"vjs-poster",tabIndex:-1});return D||(this.fallbackImg_=ae("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Ft(this.player_.play()):this.player_.pause())},t}(Kn);yt.registerComponent("PosterImage",Gn);var Wn="#222",Yn="#ccc",qn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Xn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Zn(e,t,n){try{e.style[t]=n}catch(i){return}}var Jn=function(e){function t(n,i,o){L(this,t);var a=N(this,e.call(this,n,i,o)),s=tt(a,a.updateDisplay);return n.on("loadstart",tt(a,a.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",tt(a,a.preselectTrack)),n.ready(tt(a,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",s),n.on("playerresize",s),r.addEventListener&&r.addEventListener("orientationchange",s),n.on("dispose",(function(){return r.removeEventListener("orientationchange",s)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=$({innerHTML:'',className:this.buildCSSClass()},t),n=$({type:"button"},n);var i=yt.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),yt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Kn);yt.registerComponent("Button",ti);var ni=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Ft(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};Ot(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",yt.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);yt.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",yt.registerComponent("PlayToggle",ri);var oi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||a>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},ai=oi;function si(e){ai=e}function li(){ai=oi}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ai(e,t)},ui=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return P(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=ae("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ci(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(yt);ui.prototype.labelText_="Time",ui.prototype.controlText_="Time",yt.registerComponent("TimeDisplay",ui);var hi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ui);hi.prototype.labelText_="Current Time",hi.prototype.controlText_="Current Time",yt.registerComponent("CurrentTimeDisplay",hi);var di=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ui);di.prototype.labelText_="Duration",di.prototype.controlText_="Duration",yt.registerComponent("DurationDisplay",di);var fi=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},t}(yt);yt.registerComponent("TimeDivider",fi);var Ai=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ui);Ai.prototype.labelText_="Remaining Time",Ai.prototype.controlText_="Remaining Time",yt.registerComponent("RemainingTimeDisplay",Ai);var pi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return P(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ae("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(yt);yt.registerComponent("LiveDisplay",pi);var gi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return P(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=$({tabIndex:0},n),i=$({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||S||e.preventDefault(),ve(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ye(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=xe(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(yt);yt.registerComponent("Slider",gi);var mi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var a=0;at.length;u--)this.el_.removeChild(r[u-1]);r.length=t.length},t}(yt);yt.registerComponent("LoadProgressBar",mi);var vi=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=be(this.el_),r=be(this.player_.el()),o=e.width*t;if(r&&i){var a=e.left-r.left+o,s=e.width-o+(r.right-e.right),l=i.width/2;ai.width&&(l=i.width),this.el_.style.right="-"+l+"px",se(this.el_,n)}},t}(yt);yt.registerComponent("TimeTooltip",vi);var yi=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ci(i,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(e,t,r)}))},t}(yt);yi.prototype.options_={children:[]},T&&!(T>8)||m||y||yi.prototype.options_.children.push("timeTooltip"),yt.registerComponent("PlayProgressBar",yi);var bi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ci(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(yt);bi.prototype.options_={children:["timeTooltip"]},yt.registerComponent("MouseTimeDisplay",bi);var wi=5,xi=30,_i=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.setEventHandlers_(),r}return P(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),xi),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),xi)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ci(e,n),ci(n,n)],"{1} of {2}")),this.bar.update(be(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Te(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Te(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Ft(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+wi)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-wi)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(gi);_i.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},T&&!(T>8)||m||y||_i.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),_i.prototype.playerEvent="timeupdate",yt.registerComponent("SeekBar",_i);var Ci=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=be(i),o=xe(i,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(r,o)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(yt);Ci.prototype.options_={children:["seekBar"]},yt.registerComponent("ProgressControl",Ci);var Si=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===o[St.fullscreenEnabled]&&r.disable(),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Si.prototype.controlText_="Fullscreen",yt.registerComponent("FullscreenToggle",Si);var Bi=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},ki=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},t}(yt);yt.registerComponent("VolumeLevel",ki);var Ti=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return P(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Te(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Te(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(gi);Ti.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ti.prototype.playerEvent="volumechange",yt.registerComponent("VolumeBar",Ti);var Ei=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||z(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=N(this,e.call(this,n,i));return Bi(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return P(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(yt);Ei.prototype.options_={children:["volumeBar"]},yt.registerComponent("VolumeControl",Ei);var Ii=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Mi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return Ii(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return P(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;m&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)he(this.el_,"vjs-vol-"+n);ue(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Mi.prototype.controlText_="Mute",yt.registerComponent("MuteToggle",Mi);var Di=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||z(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=N(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return P(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(yt);Di.prototype.options_={children:["muteToggle","volumeControl"]},yt.registerComponent("VolumePanel",Di);var Oi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return P(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ae(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),je(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(yt);yt.registerComponent("Menu",Oi);var Fi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t);var r=N(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return P(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Oi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ae("li",{className:"vjs-menu-title",innerHTML:gt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){je(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){ze(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),m&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(yt);yt.registerComponent("MenuButton",Fi);var Li=function(e){function t(n,i){L(this,t);var r=i.tracks,o=N(this,e.call(this,n,i));if(o.items.length<=1&&o.hide(),!r)return N(o);var a=tt(o,o.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),o.player_.on("ready",a),o.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a)})),o}return P(t,e),t}(Fi);yt.registerComponent("TrackButton",Li);var Pi=function(e){function t(n,i){L(this,t);var r=N(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return P(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",$({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Kn);yt.registerComponent("MenuItem",Pi);var Ni=function(e){function t(n,i){L(this,t);var a=i.track,s=n.textTracks();i.label=a.label||a.language||"Unknown",i.selected="showing"===a.mode;var l=N(this,e.call(this,n,i));l.track=a;var c=function(){for(var e=arguments.length,t=Array(e),n=0;n-1?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Pi);yt.registerComponent("TextTrackMenuItem",Ni);var Ui=function(e){function t(n,i){return L(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,N(this,e.call(this,n,i))}return P(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ni);yt.registerComponent("OffTextTrackMenuItem",Ui);var Ri=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(this,t),i.tracks=n.textTracks(),N(this,e.call(this,n,i))}return P(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Ui(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var a=new t(this.player_,{track:o,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Li);yt.registerComponent("TextTrackButton",Ri);var Qi=function(e){function t(n,i){L(this,t);var r=i.track,o=i.cue,a=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=o.text,i.selected=o.startTime<=a&&a=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(gt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n